Fix generated files.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB 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 GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS 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 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 gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655 done
656
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677 do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
740 fi
741 fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778
779 #
780 # Report the --help message.
781 #
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786 \`configure' configures this package to adapt to many kinds of systems.
787
788 Usage: $0 [OPTION]... [VAR=VALUE]...
789
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
792
793 Defaults for the options are specified in brackets.
794
795 Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806 _ACEOF
807
808 cat <<_ACEOF
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
819
820 For better control, use the options below.
821
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835 _ACEOF
836
837 cat <<\_ACEOF
838
839 Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852 _ACEOF
853 fi
854
855 if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859 Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-targets alternative target configurations
867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
873 --disable-rpath do not hardcode runtime library paths
874 --enable-werror treat compile warnings as errors
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
879
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
885 --with-system-readline use installed readline library
886 --with-expat include expat support (auto/yes/no)
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
889 --without-libexpat-prefix don't search for libexpat in includedir and libdir
890 --without-included-regex don't use included regex; this is the default
891 on systems with version 2 of the GNU C library
892 (use with caution on other system)
893 --with-sysroot=DIR Search for usr/lib et al within DIR.
894 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
895 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
896 --with-tclinclude=DIR Directory where tcl private headers are
897 --with-tkinclude=DIR Directory where tk private headers are
898 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
899 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1014 _ACEOF
1015 exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1024
1025 $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120 done
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
1141 {
1142 (set) 2>&1 |
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
1145 sed -n \
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
1149 *)
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ;;
1153 esac;
1154 }
1155 echo
1156
1157 cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191 echo
1192 sed "/^$/d" confdefs.h | sort
1193 echo
1194 fi
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 exit $exit_status
1202 ' 0
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
1248 fi
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1254 . "$ac_site_file"
1255 fi
1256 done
1257
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
1269 else
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299 echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301 echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1303 fi;;
1304 esac
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1307 case $ac_new_val in
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1311 esac
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 esac
1316 fi
1317 done
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1324 fi
1325
1326 ac_ext=c
1327 ac_cpp='$CPP $CPPFLAGS'
1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
1332
1333 gl_header_list="$gl_header_list stdint.h"
1334 gl_header_list="$gl_header_list wchar.h"
1335 gl_header_list="$gl_header_list string.h"
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353 ac_config_headers="$ac_config_headers config.h:config.in"
1354
1355 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1356 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1357 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1358 if test "${enable_maintainer_mode+set}" = set; then
1359 enableval="$enable_maintainer_mode"
1360 USE_MAINTAINER_MODE=$enableval
1361 else
1362 USE_MAINTAINER_MODE=no
1363 fi;
1364 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1365 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1366
1367
1368 if test $USE_MAINTAINER_MODE = yes; then
1369 MAINTAINER_MODE_TRUE=
1370 MAINTAINER_MODE_FALSE='#'
1371 else
1372 MAINTAINER_MODE_TRUE='#'
1373 MAINTAINER_MODE_FALSE=
1374 fi
1375
1376 MAINT=$MAINTAINER_MODE_TRUE
1377
1378
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 break 2
1406 fi
1407 done
1408 done
1409
1410 fi
1411 fi
1412 CC=$ac_cv_prog_CC
1413 if test -n "$CC"; then
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1416 else
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 fi
1420
1421 fi
1422 if test -z "$ac_cv_prog_CC"; then
1423 ac_ct_CC=$CC
1424 # Extract the first word of "gcc", so it can be a program name with args.
1425 set dummy gcc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1433 else
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_ac_ct_CC="gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445 done
1446 done
1447
1448 fi
1449 fi
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1454 else
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459 CC=$ac_ct_CC
1460 else
1461 CC="$ac_cv_prog_CC"
1462 fi
1463
1464 if test -z "$CC"; then
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}cc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="${ac_tool_prefix}cc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 CC=$ac_cv_prog_CC
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1496 else
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501 fi
1502 if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "cc", so it can be a program name with args.
1505 set dummy cc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 CC=$ac_ct_CC
1540 else
1541 CC="$ac_cv_prog_CC"
1542 fi
1543
1544 fi
1545 if test -z "$CC"; then
1546 # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 ac_prog_rejected=no
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1566 continue
1567 fi
1568 ac_cv_prog_CC="cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572 done
1573 done
1574
1575 if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1578 shift
1579 if test $# != 0; then
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1583 shift
1584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1585 fi
1586 fi
1587 fi
1588 fi
1589 CC=$ac_cv_prog_CC
1590 if test -n "$CC"; then
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1593 else
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598 fi
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1601 for ac_prog in cl
1602 do
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624 done
1625 done
1626
1627 fi
1628 fi
1629 CC=$ac_cv_prog_CC
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1633 else
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1636 fi
1637
1638 test -n "$CC" && break
1639 done
1640 fi
1641 if test -z "$CC"; then
1642 ac_ct_CC=$CC
1643 for ac_prog in cl
1644 do
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680 test -n "$ac_ct_CC" && break
1681 done
1682
1683 CC=$ac_ct_CC
1684 fi
1685
1686 fi
1687
1688
1689 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1690 See \`config.log' for more details." >&5
1691 echo "$as_me: error: no acceptable C compiler found in \$PATH
1692 See \`config.log' for more details." >&2;}
1693 { (exit 1); exit 1; }; }
1694
1695 # Provide some information about the compiler.
1696 echo "$as_me:$LINENO:" \
1697 "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714
1715 cat >conftest.$ac_ext <<_ACEOF
1716 /* confdefs.h. */
1717 _ACEOF
1718 cat confdefs.h >>conftest.$ac_ext
1719 cat >>conftest.$ac_ext <<_ACEOF
1720 /* end confdefs.h. */
1721
1722 int
1723 main ()
1724 {
1725
1726 ;
1727 return 0;
1728 }
1729 _ACEOF
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1734 # of exeext.
1735 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1736 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745 # resort.
1746
1747 # Be careful to initialize this variable, since it used to be cached.
1748 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749 ac_cv_exeext=
1750 # b.out is created by i960 compilers.
1751 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1752 do
1753 test -f "$ac_file" || continue
1754 case $ac_file in
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1756 ;;
1757 conftest.$ac_ext )
1758 # This is the source file.
1759 ;;
1760 [ab].out )
1761 # We found the default executable, but exeext='' is most
1762 # certainly right.
1763 break;;
1764 *.* )
1765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1766 # FIXME: I believe we export ac_cv_exeext for Libtool,
1767 # but it would be cool to find out if it's true. Does anybody
1768 # maintain Libtool? --akim.
1769 export ac_cv_exeext
1770 break;;
1771 * )
1772 break;;
1773 esac
1774 done
1775 else
1776 echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: C compiler cannot create executables
1782 See \`config.log' for more details." >&2;}
1783 { (exit 77); exit 77; }; }
1784 fi
1785
1786 ac_exeext=$ac_cv_exeext
1787 echo "$as_me:$LINENO: result: $ac_file" >&5
1788 echo "${ECHO_T}$ac_file" >&6
1789
1790 # Check the compiler produces executables we can run. If not, either
1791 # the compiler is broken, or we cross compile.
1792 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1793 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1795 # If not cross compiling, check that we can run a simple program.
1796 if test "$cross_compiling" != yes; then
1797 if { ac_try='./$ac_file'
1798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799 (eval $ac_try) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }; }; then
1803 cross_compiling=no
1804 else
1805 if test "$cross_compiling" = maybe; then
1806 cross_compiling=yes
1807 else
1808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1809 If you meant to cross compile, use \`--host'.
1810 See \`config.log' for more details." >&5
1811 echo "$as_me: error: cannot run C compiled programs.
1812 If you meant to cross compile, use \`--host'.
1813 See \`config.log' for more details." >&2;}
1814 { (exit 1); exit 1; }; }
1815 fi
1816 fi
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820
1821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1822 ac_clean_files=$ac_clean_files_save
1823 # Check the compiler produces executables we can run. If not, either
1824 # the compiler is broken, or we cross compile.
1825 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828 echo "${ECHO_T}$cross_compiling" >&6
1829
1830 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1833 (eval $ac_link) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1839 # work properly (i.e., refer to `conftest.exe'), while it won't with
1840 # `rm'.
1841 for ac_file in conftest.exe conftest conftest.*; do
1842 test -f "$ac_file" || continue
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 export ac_cv_exeext
1847 break;;
1848 * ) break;;
1849 esac
1850 done
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1853 See \`config.log' for more details." >&5
1854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1855 See \`config.log' for more details." >&2;}
1856 { (exit 1); exit 1; }; }
1857 fi
1858
1859 rm -f conftest$ac_cv_exeext
1860 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1861 echo "${ECHO_T}$ac_cv_exeext" >&6
1862
1863 rm -f conftest.$ac_ext
1864 EXEEXT=$ac_cv_exeext
1865 ac_exeext=$EXEEXT
1866 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1868 if test "${ac_cv_objext+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 cat >conftest.$ac_ext <<_ACEOF
1872 /* confdefs.h. */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1877
1878 int
1879 main ()
1880 {
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 rm -f conftest.o conftest.obj
1887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888 (eval $ac_compile) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896 break;;
1897 esac
1898 done
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1911 fi
1912 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1913 echo "${ECHO_T}$ac_cv_objext" >&6
1914 OBJEXT=$ac_cv_objext
1915 ac_objext=$OBJEXT
1916 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1927
1928 int
1929 main ()
1930 {
1931 #ifndef __GNUC__
1932 choke me
1933 #endif
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>conftest.er1
1942 ac_status=$?
1943 grep -v '^ *+' conftest.er1 >conftest.err
1944 rm -f conftest.er1
1945 cat conftest.err >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -z "$ac_c_werror_flag"
1949 || test ! -s conftest.err'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 ac_compiler_gnu=yes
1962 else
1963 echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_compiler_gnu=no
1967 fi
1968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1970
1971 fi
1972 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1974 GCC=`test $ac_compiler_gnu = yes && echo yes`
1975 ac_test_CFLAGS=${CFLAGS+set}
1976 ac_save_CFLAGS=$CFLAGS
1977 CFLAGS="-g"
1978 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1979 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1980 if test "${ac_cv_prog_cc_g+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 cat >conftest.$ac_ext <<_ACEOF
1984 /* confdefs.h. */
1985 _ACEOF
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h. */
1989
1990 int
1991 main ()
1992 {
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2001 ac_status=$?
2002 grep -v '^ *+' conftest.er1 >conftest.err
2003 rm -f conftest.er1
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -z "$ac_c_werror_flag"
2008 || test ! -s conftest.err'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_g=yes
2021 else
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_cv_prog_cc_g=no
2026 fi
2027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2038 fi
2039 else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
2045 fi
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 /* confdefs.h. */
2055 _ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2059 #include <stdarg.h>
2060 #include <stdio.h>
2061 #include <sys/types.h>
2062 #include <sys/stat.h>
2063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2064 struct buf { int x; };
2065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2066 static char *e (p, i)
2067 char **p;
2068 int i;
2069 {
2070 return p[i];
2071 }
2072 static char *f (char * (*g) (char **, int), char **p, ...)
2073 {
2074 char *s;
2075 va_list v;
2076 va_start (v,p);
2077 s = g (p, va_arg (v,int));
2078 va_end (v);
2079 return s;
2080 }
2081
2082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2083 function prototypes and stuff, but not '\xHH' hex character constants.
2084 These don't provoke an error unfortunately, instead are silently treated
2085 as 'x'. The following induces an error, until -std1 is added to get
2086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2087 array size at least. It's necessary to write '\x00'==0 to get something
2088 that's true only with -std1. */
2089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2090
2091 int test (int i, double x);
2092 struct s1 {int (*f) (int a);};
2093 struct s2 {int (*f) (double a);};
2094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2095 int argc;
2096 char **argv;
2097 int
2098 main ()
2099 {
2100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 # Don't try gcc -ansi; that turns off useful extensions and
2106 # breaks some systems' header files.
2107 # AIX -qlanglvl=ansi
2108 # Ultrix and OSF/1 -std1
2109 # HP-UX 10.20 and later -Ae
2110 # HP-UX older versions -Aa -D_HPUX_SOURCE
2111 # SVR4 -Xc -D__EXTENSIONS__
2112 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2113 do
2114 CC="$ac_save_CC $ac_arg"
2115 rm -f conftest.$ac_objext
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>conftest.er1
2118 ac_status=$?
2119 grep -v '^ *+' conftest.er1 >conftest.err
2120 rm -f conftest.er1
2121 cat conftest.err >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -z "$ac_c_werror_flag"
2125 || test ! -s conftest.err'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2137 ac_cv_prog_cc_stdc=$ac_arg
2138 break
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 fi
2144 rm -f conftest.err conftest.$ac_objext
2145 done
2146 rm -f conftest.$ac_ext conftest.$ac_objext
2147 CC=$ac_save_CC
2148
2149 fi
2150
2151 case "x$ac_cv_prog_cc_stdc" in
2152 x|xno)
2153 echo "$as_me:$LINENO: result: none needed" >&5
2154 echo "${ECHO_T}none needed" >&6 ;;
2155 *)
2156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2157 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2158 CC="$CC $ac_cv_prog_cc_stdc" ;;
2159 esac
2160
2161 # Some people use a C++ compiler to compile C. Since we use `exit',
2162 # in C++ we need to declare it. In case someone uses the same compiler
2163 # for both compiling C and C++ we need to have the C++ compiler decide
2164 # the declaration of exit, since it's the most demanding environment.
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #ifndef __cplusplus
2167 choke me
2168 #endif
2169 _ACEOF
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 '' \
2194 'extern "C" void std::exit (int) throw (); using std::exit;' \
2195 'extern "C" void std::exit (int); using std::exit;' \
2196 'extern "C" void exit (int) throw ();' \
2197 'extern "C" void exit (int);' \
2198 'void exit (int);'
2199 do
2200 cat >conftest.$ac_ext <<_ACEOF
2201 /* confdefs.h. */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2206 $ac_declaration
2207 #include <stdlib.h>
2208 int
2209 main ()
2210 {
2211 exit (42);
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 :
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 continue
2244 fi
2245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2246 cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h. */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 break
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 rm -f conftest*
2292 if test -n "$ac_declaration"; then
2293 echo '#ifdef __cplusplus' >>confdefs.h
2294 echo $ac_declaration >>confdefs.h
2295 echo '#endif' >>confdefs.h
2296 fi
2297
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 fi
2303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2304 ac_ext=c
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311 cat >>confdefs.h <<\_ACEOF
2312 #define _GNU_SOURCE 1
2313 _ACEOF
2314
2315
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2324 # On Suns, sometimes $CPP names a directory.
2325 if test -n "$CPP" && test -d "$CPP"; then
2326 CPP=
2327 fi
2328 if test -z "$CPP"; then
2329 if test "${ac_cv_prog_CPP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 # Double quotes because CPP needs to be expanded
2333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2334 do
2335 ac_preproc_ok=false
2336 for ac_c_preproc_warn_flag in '' yes
2337 do
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341 # <limits.h> exists even on freestanding compilers.
2342 # On the NeXT, cc -E runs the code through the compiler's parser,
2343 # not just through cpp. "Syntax error" is here to catch this case.
2344 cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h. */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2350 #ifdef __STDC__
2351 # include <limits.h>
2352 #else
2353 # include <assert.h>
2354 #endif
2355 Syntax error
2356 _ACEOF
2357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2368 else
2369 ac_cpp_err=
2370 fi
2371 else
2372 ac_cpp_err=yes
2373 fi
2374 if test -z "$ac_cpp_err"; then
2375 :
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 # Broken: fails on valid input.
2381 continue
2382 fi
2383 rm -f conftest.err conftest.$ac_ext
2384
2385 # OK, works on sane cases. Now check whether non-existent headers
2386 # can be detected and how.
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2393 #include <ac_nonexistent.h>
2394 _ACEOF
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2406 else
2407 ac_cpp_err=
2408 fi
2409 else
2410 ac_cpp_err=yes
2411 fi
2412 if test -z "$ac_cpp_err"; then
2413 # Broken: success on invalid input.
2414 continue
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 # Passes both tests.
2420 ac_preproc_ok=:
2421 break
2422 fi
2423 rm -f conftest.err conftest.$ac_ext
2424
2425 done
2426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2427 rm -f conftest.err conftest.$ac_ext
2428 if $ac_preproc_ok; then
2429 break
2430 fi
2431
2432 done
2433 ac_cv_prog_CPP=$CPP
2434
2435 fi
2436 CPP=$ac_cv_prog_CPP
2437 else
2438 ac_cv_prog_CPP=$CPP
2439 fi
2440 echo "$as_me:$LINENO: result: $CPP" >&5
2441 echo "${ECHO_T}$CPP" >&6
2442 ac_preproc_ok=false
2443 for ac_c_preproc_warn_flag in '' yes
2444 do
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #ifdef __STDC__
2458 # include <limits.h>
2459 #else
2460 # include <assert.h>
2461 #endif
2462 Syntax error
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2477 fi
2478 else
2479 ac_cpp_err=yes
2480 fi
2481 if test -z "$ac_cpp_err"; then
2482 :
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 # Broken: fails on valid input.
2488 continue
2489 fi
2490 rm -f conftest.err conftest.$ac_ext
2491
2492 # OK, works on sane cases. Now check whether non-existent headers
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #include <ac_nonexistent.h>
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2515 fi
2516 else
2517 ac_cpp_err=yes
2518 fi
2519 if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521 continue
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 # Passes both tests.
2527 ac_preproc_ok=:
2528 break
2529 fi
2530 rm -f conftest.err conftest.$ac_ext
2531
2532 done
2533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534 rm -f conftest.err conftest.$ac_ext
2535 if $ac_preproc_ok; then
2536 :
2537 else
2538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552 echo "$as_me:$LINENO: checking for egrep" >&5
2553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2554 if test "${ac_cv_prog_egrep+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2558 then ac_cv_prog_egrep='grep -E'
2559 else ac_cv_prog_egrep='egrep'
2560 fi
2561 fi
2562 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2563 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2564 EGREP=$ac_cv_prog_egrep
2565
2566
2567
2568 echo "$as_me:$LINENO: checking for AIX" >&5
2569 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576 #ifdef _AIX
2577 yes
2578 #endif
2579
2580 _ACEOF
2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 $EGREP "yes" >/dev/null 2>&1; then
2583 echo "$as_me:$LINENO: result: yes" >&5
2584 echo "${ECHO_T}yes" >&6
2585 cat >>confdefs.h <<\_ACEOF
2586 #define _ALL_SOURCE 1
2587 _ACEOF
2588
2589 else
2590 echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6
2592 fi
2593 rm -f conftest*
2594
2595
2596 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2597 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2598 if test "${ac_cv_search_strerror+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 ac_func_search_save_LIBS=$LIBS
2602 ac_cv_search_strerror=no
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 #ifdef __cplusplus
2612 extern "C"
2613 #endif
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616 char strerror ();
2617 int
2618 main ()
2619 {
2620 strerror ();
2621 ;
2622 return 0;
2623 }
2624 _ACEOF
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="none required"
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 fi
2653 rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655 if test "$ac_cv_search_strerror" = no; then
2656 for ac_lib in cposix; do
2657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664
2665 /* Override any gcc2 internal prototype to avoid an error. */
2666 #ifdef __cplusplus
2667 extern "C"
2668 #endif
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671 char strerror ();
2672 int
2673 main ()
2674 {
2675 strerror ();
2676 ;
2677 return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.$ac_objext conftest$ac_exeext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest$ac_exeext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_search_strerror="-l$ac_lib"
2703 break
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 fi
2709 rm -f conftest.err conftest.$ac_objext \
2710 conftest$ac_exeext conftest.$ac_ext
2711 done
2712 fi
2713 LIBS=$ac_func_search_save_LIBS
2714 fi
2715 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2716 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2717 if test "$ac_cv_search_strerror" != no; then
2718 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2719
2720 fi
2721
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_RANLIB+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -n "$RANLIB"; then
2731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746
2747 fi
2748 fi
2749 RANLIB=$ac_cv_prog_RANLIB
2750 if test -n "$RANLIB"; then
2751 echo "$as_me:$LINENO: result: $RANLIB" >&5
2752 echo "${ECHO_T}$RANLIB" >&6
2753 else
2754 echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2756 fi
2757
2758 fi
2759 if test -z "$ac_cv_prog_RANLIB"; then
2760 ac_ct_RANLIB=$RANLIB
2761 # Extract the first word of "ranlib", so it can be a program name with args.
2762 set dummy ranlib; ac_word=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 if test -n "$ac_ct_RANLIB"; then
2769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_RANLIB="ranlib"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784
2785 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2786 fi
2787 fi
2788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2789 if test -n "$ac_ct_RANLIB"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2791 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2792 else
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2795 fi
2796
2797 RANLIB=$ac_ct_RANLIB
2798 else
2799 RANLIB="$ac_cv_prog_RANLIB"
2800 fi
2801
2802 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804 if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <stdlib.h>
2814 #include <stdarg.h>
2815 #include <string.h>
2816 #include <float.h>
2817
2818 int
2819 main ()
2820 {
2821
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 ac_cv_header_stdc=yes
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 ac_cv_header_stdc=no
2854 fi
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856
2857 if test $ac_cv_header_stdc = yes; then
2858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 #include <string.h>
2866
2867 _ACEOF
2868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869 $EGREP "memchr" >/dev/null 2>&1; then
2870 :
2871 else
2872 ac_cv_header_stdc=no
2873 fi
2874 rm -f conftest*
2875
2876 fi
2877
2878 if test $ac_cv_header_stdc = yes; then
2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 #include <stdlib.h>
2887
2888 _ACEOF
2889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2890 $EGREP "free" >/dev/null 2>&1; then
2891 :
2892 else
2893 ac_cv_header_stdc=no
2894 fi
2895 rm -f conftest*
2896
2897 fi
2898
2899 if test $ac_cv_header_stdc = yes; then
2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901 if test "$cross_compiling" = yes; then
2902 :
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ctype.h>
2911 #if ((' ' & 0x0FF) == 0x020)
2912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2914 #else
2915 # define ISLOWER(c) \
2916 (('a' <= (c) && (c) <= 'i') \
2917 || ('j' <= (c) && (c) <= 'r') \
2918 || ('s' <= (c) && (c) <= 'z'))
2919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2920 #endif
2921
2922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2923 int
2924 main ()
2925 {
2926 int i;
2927 for (i = 0; i < 256; i++)
2928 if (XOR (islower (i), ISLOWER (i))
2929 || toupper (i) != TOUPPER (i))
2930 exit(2);
2931 exit (0);
2932 }
2933 _ACEOF
2934 rm -f conftest$ac_exeext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 :
2946 else
2947 echo "$as_me: program exited with status $ac_status" >&5
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 ( exit $ac_status )
2952 ac_cv_header_stdc=no
2953 fi
2954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 fi
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2959 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2960 if test $ac_cv_header_stdc = yes; then
2961
2962 cat >>confdefs.h <<\_ACEOF
2963 #define STDC_HEADERS 1
2964 _ACEOF
2965
2966 fi
2967
2968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2979 inttypes.h stdint.h unistd.h
2980 do
2981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2982 echo "$as_me:$LINENO: checking for $ac_header" >&5
2983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 $ac_includes_default
2994
2995 #include <$ac_header>
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 eval "$as_ac_Header=yes"
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 eval "$as_ac_Header=no"
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 fi
3028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3031 cat >>confdefs.h <<_ACEOF
3032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3033 _ACEOF
3034
3035 fi
3036
3037 done
3038
3039
3040
3041 if test "${ac_cv_header_minix_config_h+set}" = set; then
3042 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3043 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3044 if test "${ac_cv_header_minix_config_h+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 fi
3047 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3048 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3049 else
3050 # Is the header compilable?
3051 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3052 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 $ac_includes_default
3060 #include <minix/config.h>
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_header_compiler=yes
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 ac_header_compiler=no
3090 fi
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3093 echo "${ECHO_T}$ac_header_compiler" >&6
3094
3095 # Is the header present?
3096 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3097 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104 #include <minix/config.h>
3105 _ACEOF
3106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } >/dev/null; then
3114 if test -s conftest.err; then
3115 ac_cpp_err=$ac_c_preproc_warn_flag
3116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 else
3118 ac_cpp_err=
3119 fi
3120 else
3121 ac_cpp_err=yes
3122 fi
3123 if test -z "$ac_cpp_err"; then
3124 ac_header_preproc=yes
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_header_preproc=no
3130 fi
3131 rm -f conftest.err conftest.$ac_ext
3132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3133 echo "${ECHO_T}$ac_header_preproc" >&6
3134
3135 # So? What about this header?
3136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3137 yes:no: )
3138 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3139 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3140 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3141 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3142 ac_header_preproc=yes
3143 ;;
3144 no:yes:* )
3145 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3146 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3147 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3148 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3150 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3152 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3153 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3154 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3155 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3156 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3157 (
3158 cat <<\_ASBOX
3159 ## ------------------------------------------ ##
3160 ## Report this to the AC_PACKAGE_NAME lists. ##
3161 ## ------------------------------------------ ##
3162 _ASBOX
3163 ) |
3164 sed "s/^/$as_me: WARNING: /" >&2
3165 ;;
3166 esac
3167 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3168 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3169 if test "${ac_cv_header_minix_config_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 ac_cv_header_minix_config_h=$ac_header_preproc
3173 fi
3174 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3175 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3176
3177 fi
3178 if test $ac_cv_header_minix_config_h = yes; then
3179 MINIX=yes
3180 else
3181 MINIX=
3182 fi
3183
3184
3185 if test "$MINIX" = yes; then
3186
3187 cat >>confdefs.h <<\_ACEOF
3188 #define _POSIX_SOURCE 1
3189 _ACEOF
3190
3191
3192 cat >>confdefs.h <<\_ACEOF
3193 #define _POSIX_1_SOURCE 2
3194 _ACEOF
3195
3196
3197 cat >>confdefs.h <<\_ACEOF
3198 #define _MINIX 1
3199 _ACEOF
3200
3201 fi
3202
3203
3204
3205 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3206 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3207 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216
3217 # define __EXTENSIONS__ 1
3218 $ac_includes_default
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_safe_to_define___extensions__=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_safe_to_define___extensions__=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 fi
3258 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3259 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3260 test $ac_cv_safe_to_define___extensions__ = yes &&
3261 cat >>confdefs.h <<\_ACEOF
3262 #define __EXTENSIONS__ 1
3263 _ACEOF
3264
3265 cat >>confdefs.h <<\_ACEOF
3266 #define _ALL_SOURCE 1
3267 _ACEOF
3268
3269 cat >>confdefs.h <<\_ACEOF
3270 #define _GNU_SOURCE 1
3271 _ACEOF
3272
3273 cat >>confdefs.h <<\_ACEOF
3274 #define _POSIX_PTHREAD_SEMANTICS 1
3275 _ACEOF
3276
3277 cat >>confdefs.h <<\_ACEOF
3278 #define _TANDEM_SOURCE 1
3279 _ACEOF
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3291 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3292 if test "${am_cv_prog_cc_stdc+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 am_cv_prog_cc_stdc=no
3296 ac_save_CC="$CC"
3297 # Don't try gcc -ansi; that turns off useful extensions and
3298 # breaks some systems' header files.
3299 # AIX -qlanglvl=ansi
3300 # Ultrix and OSF/1 -std1
3301 # HP-UX 10.20 and later -Ae
3302 # HP-UX older versions -Aa -D_HPUX_SOURCE
3303 # SVR4 -Xc -D__EXTENSIONS__
3304 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305 do
3306 CC="$ac_save_CC $ac_arg"
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321 char **p;
3322 int i;
3323 {
3324 return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334 }
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 int argc;
3340 char **argv;
3341
3342 int
3343 main ()
3344 {
3345
3346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 am_cv_prog_cc_stdc="$ac_arg"; break
3375 else
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 fi
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 done
3382 CC="$ac_save_CC"
3383
3384 fi
3385
3386 if test -z "$am_cv_prog_cc_stdc"; then
3387 echo "$as_me:$LINENO: result: none needed" >&5
3388 echo "${ECHO_T}none needed" >&6
3389 else
3390 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3391 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3392 fi
3393 case "x$am_cv_prog_cc_stdc" in
3394 x|xno) ;;
3395 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3396 esac
3397
3398
3399 ac_aux_dir=
3400 for ac_dir in .. $srcdir/..; do
3401 if test -f $ac_dir/install-sh; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f $ac_dir/install.sh; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f $ac_dir/shtool; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
3414 done
3415 if test -z "$ac_aux_dir"; then
3416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3417 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3418 { (exit 1); exit 1; }; }
3419 fi
3420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3423
3424 # Make sure we can run config.sub.
3425 $ac_config_sub sun4 >/dev/null 2>&1 ||
3426 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3427 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3428 { (exit 1); exit 1; }; }
3429
3430 echo "$as_me:$LINENO: checking build system type" >&5
3431 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3432 if test "${ac_cv_build+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 ac_cv_build_alias=$build_alias
3436 test -z "$ac_cv_build_alias" &&
3437 ac_cv_build_alias=`$ac_config_guess`
3438 test -z "$ac_cv_build_alias" &&
3439 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3441 { (exit 1); exit 1; }; }
3442 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3444 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3445 { (exit 1); exit 1; }; }
3446
3447 fi
3448 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3449 echo "${ECHO_T}$ac_cv_build" >&6
3450 build=$ac_cv_build
3451 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3452 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3453 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3454
3455
3456 echo "$as_me:$LINENO: checking host system type" >&5
3457 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3458 if test "${ac_cv_host+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_host_alias=$host_alias
3462 test -z "$ac_cv_host_alias" &&
3463 ac_cv_host_alias=$ac_cv_build_alias
3464 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3465 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3466 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3467 { (exit 1); exit 1; }; }
3468
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3471 echo "${ECHO_T}$ac_cv_host" >&6
3472 host=$ac_cv_host
3473 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3474 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3475 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3476
3477
3478 echo "$as_me:$LINENO: checking target system type" >&5
3479 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3480 if test "${ac_cv_target+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 ac_cv_target_alias=$target_alias
3484 test "x$ac_cv_target_alias" = "x" &&
3485 ac_cv_target_alias=$ac_cv_host_alias
3486 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3487 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3488 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3489 { (exit 1); exit 1; }; }
3490
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3493 echo "${ECHO_T}$ac_cv_target" >&6
3494 target=$ac_cv_target
3495 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3498
3499
3500 # The aliases save the names the user supplied, while $host etc.
3501 # will get canonicalized.
3502 test -n "$target_alias" &&
3503 test "$program_prefix$program_suffix$program_transform_name" = \
3504 NONENONEs,x,x, &&
3505 program_prefix=${target_alias}-
3506
3507
3508 CONFIG_OBS=
3509 CONFIG_DEPS=
3510 CONFIG_SRCS=
3511 ENABLE_CFLAGS=
3512
3513 CONFIG_ALL=
3514 CONFIG_CLEAN=
3515 CONFIG_INSTALL=
3516 CONFIG_UNINSTALL=
3517
3518 # If we haven't got the data from the intl directory,
3519 # assume NLS is disabled.
3520 USE_NLS=no
3521 LIBINTL=
3522 LIBINTL_DEP=
3523 INCINTL=
3524 XGETTEXT=
3525 GMSGFMT=
3526 POSUB=
3527
3528 if test -f ../intl/config.intl; then
3529 . ../intl/config.intl
3530 fi
3531 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3532 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3533 if test x"$USE_NLS" != xyes; then
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 else
3537 echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6
3539
3540 cat >>confdefs.h <<\_ACEOF
3541 #define ENABLE_NLS 1
3542 _ACEOF
3543
3544
3545 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3546 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3547 # Look for .po and .gmo files in the source directory.
3548 CATALOGS=
3549 XLINGUAS=
3550 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3551 # If there aren't any .gmo files the shell will give us the
3552 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3553 # weeded out.
3554 case "$cat" in *\**)
3555 continue;;
3556 esac
3557 # The quadruple backslash is collapsed to a double backslash
3558 # by the backticks, then collapsed again by the double quotes,
3559 # leaving us with one backslash in the sed expression (right
3560 # before the dot that mustn't act as a wildcard).
3561 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3562 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3563 # The user is allowed to set LINGUAS to a list of languages to
3564 # install catalogs for. If it's empty that means "all of them."
3565 if test "x$LINGUAS" = x; then
3566 CATALOGS="$CATALOGS $cat"
3567 XLINGUAS="$XLINGUAS $lang"
3568 else
3569 case "$LINGUAS" in *$lang*)
3570 CATALOGS="$CATALOGS $cat"
3571 XLINGUAS="$XLINGUAS $lang"
3572 ;;
3573 esac
3574 fi
3575 done
3576 LINGUAS="$XLINGUAS"
3577 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3578 echo "${ECHO_T}$LINGUAS" >&6
3579
3580
3581 DATADIRNAME=share
3582
3583 INSTOBJEXT=.mo
3584
3585 GENCAT=gencat
3586
3587 CATOBJEXT=.gmo
3588
3589 fi
3590
3591 localedir='${datadir}/locale'
3592
3593
3594 if test x"$USE_NLS" = xyes; then
3595 CONFIG_ALL="$CONFIG_ALL all-po"
3596 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3597 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3598 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3599 fi
3600
3601
3602 GNULIB_MEMMEM=0;
3603 GNULIB_MEMPCPY=0;
3604 GNULIB_MEMRCHR=0;
3605 GNULIB_STPCPY=0;
3606 GNULIB_STPNCPY=0;
3607 GNULIB_STRCHRNUL=0;
3608 GNULIB_STRDUP=0;
3609 GNULIB_STRNDUP=0;
3610 GNULIB_STRNLEN=0;
3611 GNULIB_STRPBRK=0;
3612 GNULIB_STRSEP=0;
3613 GNULIB_STRSTR=0;
3614 GNULIB_STRCASESTR=0;
3615 GNULIB_STRTOK_R=0;
3616 GNULIB_MBSLEN=0;
3617 GNULIB_MBSNLEN=0;
3618 GNULIB_MBSCHR=0;
3619 GNULIB_MBSRCHR=0;
3620 GNULIB_MBSSTR=0;
3621 GNULIB_MBSCASECMP=0;
3622 GNULIB_MBSNCASECMP=0;
3623 GNULIB_MBSPCASECMP=0;
3624 GNULIB_MBSCASESTR=0;
3625 GNULIB_MBSCSPN=0;
3626 GNULIB_MBSPBRK=0;
3627 GNULIB_MBSSPN=0;
3628 GNULIB_MBSSEP=0;
3629 GNULIB_MBSTOK_R=0;
3630 GNULIB_STRERROR=0;
3631 GNULIB_STRSIGNAL=0;
3632 HAVE_DECL_MEMMEM=1;
3633 HAVE_MEMPCPY=1;
3634 HAVE_DECL_MEMRCHR=1;
3635 HAVE_STPCPY=1;
3636 HAVE_STPNCPY=1;
3637 HAVE_STRCHRNUL=1;
3638 HAVE_DECL_STRDUP=1;
3639 HAVE_STRNDUP=1;
3640 HAVE_DECL_STRNDUP=1;
3641 HAVE_DECL_STRNLEN=1;
3642 HAVE_STRPBRK=1;
3643 HAVE_STRSEP=1;
3644 HAVE_STRCASESTR=1;
3645 HAVE_DECL_STRTOK_R=1;
3646 HAVE_DECL_STRERROR=1;
3647 HAVE_DECL_STRSIGNAL=1;
3648 REPLACE_STRERROR=0;
3649 REPLACE_STRSIGNAL=0;
3650 REPLACE_MEMMEM=0;
3651 REPLACE_STRCASESTR=0;
3652 REPLACE_STRSTR=0;
3653
3654
3655 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3656 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3657 if test "${ac_cv_have_decl_memmem+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 $ac_includes_default
3667 int
3668 main ()
3669 {
3670 #ifndef memmem
3671 char *p = (char *) memmem;
3672 #endif
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_have_decl_memmem=yes
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 ac_cv_have_decl_memmem=no
3706 fi
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3710 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3711 if test $ac_cv_have_decl_memmem = yes; then
3712
3713 cat >>confdefs.h <<_ACEOF
3714 #define HAVE_DECL_MEMMEM 1
3715 _ACEOF
3716
3717
3718 else
3719 cat >>confdefs.h <<_ACEOF
3720 #define HAVE_DECL_MEMMEM 0
3721 _ACEOF
3722
3723
3724 fi
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740 for ac_func in memmem
3741 do
3742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3743 echo "$as_me:$LINENO: checking for $ac_func" >&5
3744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3745 if eval "test \"\${$as_ac_var+set}\" = set"; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3756 #define $ac_func innocuous_$ac_func
3757
3758 /* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char $ac_func (); below.
3760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 <limits.h> exists even on freestanding compilers. */
3762
3763 #ifdef __STDC__
3764 # include <limits.h>
3765 #else
3766 # include <assert.h>
3767 #endif
3768
3769 #undef $ac_func
3770
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 #ifdef __cplusplus
3773 extern "C"
3774 {
3775 #endif
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3778 char $ac_func ();
3779 /* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783 choke me
3784 #else
3785 char (*f) () = $ac_func;
3786 #endif
3787 #ifdef __cplusplus
3788 }
3789 #endif
3790
3791 int
3792 main ()
3793 {
3794 return f != $ac_func;
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_var=yes"
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 eval "$as_ac_var=no"
3827 fi
3828 rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830 fi
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833 if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3836 _ACEOF
3837
3838 else
3839
3840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3841
3842 fi
3843 done
3844
3845
3846
3847 :
3848
3849
3850
3851
3852
3853 if test $ac_cv_have_decl_memmem = no; then
3854 HAVE_DECL_MEMMEM=0
3855 fi
3856 :
3857
3858
3859 echo "$as_me:$LINENO: checking for long long int" >&5
3860 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3861 if test "${ac_cv_type_long_long_int+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 /* For now, do not test the preprocessor; as of 2007 there are too many
3872 implementations with broken preprocessors. Perhaps this can
3873 be revisited in 2012. In the meantime, code should not expect
3874 #if to work with literals wider than 32 bits. */
3875 /* Test literals. */
3876 long long int ll = 9223372036854775807ll;
3877 long long int nll = -9223372036854775807LL;
3878 unsigned long long int ull = 18446744073709551615ULL;
3879 /* Test constant expressions. */
3880 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3881 ? 1 : -1)];
3882 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3883 ? 1 : -1)];
3884 int i = 63;
3885 int
3886 main ()
3887 {
3888 /* Test availability of runtime routines for shift and division. */
3889 long long int llmax = 9223372036854775807ll;
3890 unsigned long long int ullmax = 18446744073709551615ull;
3891 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3892 | (llmax / ll) | (llmax % ll)
3893 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3894 | (ullmax / ull) | (ullmax % ull));
3895 ;
3896 return 0;
3897 }
3898
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 if test "$cross_compiling" = yes; then
3923 ac_cv_type_long_long_int=yes
3924 else
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <limits.h>
3932 #ifndef LLONG_MAX
3933 # define HALF \
3934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3935 # define LLONG_MAX (HALF - 1 + HALF)
3936 #endif
3937 int
3938 main ()
3939 {
3940 long long int n = 1;
3941 int i;
3942 for (i = 0; ; i++)
3943 {
3944 long long int m = n << i;
3945 if (m >> i != n)
3946 return 1;
3947 if (LLONG_MAX / 2 < m)
3948 break;
3949 }
3950 return 0;
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_type_long_long_int=yes
3967 else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ( exit $ac_status )
3973 ac_cv_type_long_long_int=no
3974 fi
3975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976 fi
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ac_cv_type_long_long_int=no
3982 fi
3983 rm -f conftest.err conftest.$ac_objext \
3984 conftest$ac_exeext conftest.$ac_ext
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3987 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3988 if test $ac_cv_type_long_long_int = yes; then
3989
3990 cat >>confdefs.h <<\_ACEOF
3991 #define HAVE_LONG_LONG_INT 1
3992 _ACEOF
3993
3994 fi
3995
3996
3997 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
3998 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
3999 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 cat >conftest.$ac_ext <<_ACEOF
4003
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 /* For now, do not test the preprocessor; as of 2007 there are too many
4010 implementations with broken preprocessors. Perhaps this can
4011 be revisited in 2012. In the meantime, code should not expect
4012 #if to work with literals wider than 32 bits. */
4013 /* Test literals. */
4014 long long int ll = 9223372036854775807ll;
4015 long long int nll = -9223372036854775807LL;
4016 unsigned long long int ull = 18446744073709551615ULL;
4017 /* Test constant expressions. */
4018 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4019 ? 1 : -1)];
4020 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4021 ? 1 : -1)];
4022 int i = 63;
4023 int
4024 main ()
4025 {
4026 /* Test availability of runtime routines for shift and division. */
4027 long long int llmax = 9223372036854775807ll;
4028 unsigned long long int ullmax = 18446744073709551615ull;
4029 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4030 | (llmax / ll) | (llmax % ll)
4031 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4032 | (ullmax / ull) | (ullmax % ull));
4033 ;
4034 return 0;
4035 }
4036
4037 _ACEOF
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_type_unsigned_long_long_int=yes
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 ac_cv_type_unsigned_long_long_int=no
4066 fi
4067 rm -f conftest.err conftest.$ac_objext \
4068 conftest$ac_exeext conftest.$ac_ext
4069 fi
4070 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4071 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4072 if test $ac_cv_type_unsigned_long_long_int = yes; then
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4076 _ACEOF
4077
4078 fi
4079
4080
4081
4082 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4083 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4084 if test "${gl_cv_have_include_next+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 rm -rf conftestd1 conftestd2
4088 mkdir conftestd1 conftestd2
4089 cat <<EOF > conftestd1/conftest.h
4090 #define DEFINED_IN_CONFTESTD1
4091 #include_next <conftest.h>
4092 #ifdef DEFINED_IN_CONFTESTD2
4093 int foo;
4094 #else
4095 #error "include_next doesn't work"
4096 #endif
4097 EOF
4098 cat <<EOF > conftestd2/conftest.h
4099 #ifndef DEFINED_IN_CONFTESTD1
4100 #error "include_next test doesn't work"
4101 #endif
4102 #define DEFINED_IN_CONFTESTD2
4103 EOF
4104 save_CPPFLAGS="$CPPFLAGS"
4105 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4106 cat >conftest.$ac_ext <<_ACEOF
4107 #include <conftest.h>
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 gl_cv_have_include_next=yes
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 gl_cv_have_include_next=no
4137 fi
4138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 CPPFLAGS="$save_CPPFLAGS"
4140 rm -rf conftestd1 conftestd2
4141
4142 fi
4143 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4144 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4145 if test $gl_cv_have_include_next = yes; then
4146
4147
4148 cat >>confdefs.h <<\_ACEOF
4149 #define HAVE_INCLUDE_NEXT 1
4150 _ACEOF
4151
4152
4153 INCLUDE_NEXT=include_next
4154 else
4155 INCLUDE_NEXT=include
4156 fi
4157
4158
4159
4160
4161
4162
4163
4164 for ac_header in $gl_header_list
4165 do
4166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 fi
4173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4175 else
4176 # Is the header compilable?
4177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 $ac_includes_default
4186 #include <$ac_header>
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_header_compiler=yes
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_header_compiler=no
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4219 echo "${ECHO_T}$ac_header_compiler" >&6
4220
4221 # Is the header present?
4222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <$ac_header>
4231 _ACEOF
4232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 else
4244 ac_cpp_err=
4245 fi
4246 else
4247 ac_cpp_err=yes
4248 fi
4249 if test -z "$ac_cpp_err"; then
4250 ac_header_preproc=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_header_preproc=no
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259 echo "${ECHO_T}$ac_header_preproc" >&6
4260
4261 # So? What about this header?
4262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4283 (
4284 cat <<\_ASBOX
4285 ## ------------------------------------------ ##
4286 ## Report this to the AC_PACKAGE_NAME lists. ##
4287 ## ------------------------------------------ ##
4288 _ASBOX
4289 ) |
4290 sed "s/^/$as_me: WARNING: /" >&2
4291 ;;
4292 esac
4293 echo "$as_me:$LINENO: checking for $ac_header" >&5
4294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 eval "$as_ac_Header=\$ac_header_preproc"
4299 fi
4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4302
4303 fi
4304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307 _ACEOF
4308
4309 fi
4310
4311 done
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4325 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4326 if test "${ac_cv_c_restrict+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 ac_cv_c_restrict=no
4330 # The order here caters to the fact that C++ does not require restrict.
4331 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 typedef int * int_ptr;
4339 int foo (int_ptr $ac_kw ip) {
4340 return ip[0];
4341 }
4342 int
4343 main ()
4344 {
4345 int s[1];
4346 int * $ac_kw t = s;
4347 t[0] = 0;
4348 return foo(t)
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_c_restrict=$ac_kw
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 fi
4381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 test "$ac_cv_c_restrict" != no && break
4383 done
4384
4385 fi
4386 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4387 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4388
4389
4390 case $ac_cv_c_restrict in
4391 restrict) ;;
4392 no) cat >>confdefs.h <<\_ACEOF
4393 #define restrict
4394 _ACEOF
4395 ;;
4396 *) cat >>confdefs.h <<_ACEOF
4397 #define restrict $ac_cv_c_restrict
4398 _ACEOF
4399 ;;
4400 esac
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 :
4415
4416
4417
4418
4419
4420
4421
4422 if test $gl_cv_have_include_next = yes; then
4423 gl_cv_next_string_h='<'string.h'>'
4424 else
4425 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4426 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4427 if test "${gl_cv_next_string_h+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430
4431 if test $ac_cv_header_string_h = yes; then
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 #include <string.h>
4439
4440 _ACEOF
4441 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 sed -n '\#/string.h#{
4443 s#.*"\(.*/string.h\)".*#\1#
4444 s#^/[^/]#//&#
4445 p
4446 q
4447 }'`'"'
4448 else
4449 gl_cv_next_string_h='<'string.h'>'
4450 fi
4451
4452 fi
4453 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4454 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4455 fi
4456 NEXT_STRING_H=$gl_cv_next_string_h
4457
4458
4459
4460
4461
4462 GNULIB_WCWIDTH=0;
4463 HAVE_DECL_WCWIDTH=1;
4464 REPLACE_WCWIDTH=0;
4465 WCHAR_H=
4466
4467
4468
4469
4470
4471 if false; then
4472 GL_COND_LIBTOOL_TRUE=
4473 GL_COND_LIBTOOL_FALSE='#'
4474 else
4475 GL_COND_LIBTOOL_TRUE='#'
4476 GL_COND_LIBTOOL_FALSE=
4477 fi
4478
4479 gl_cond_libtool=false
4480 gl_libdeps=
4481 gl_ltlibdeps=
4482
4483
4484
4485 gl_source_base='gnulib'
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 for ac_func in memchr
4496 do
4497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4498 echo "$as_me:$LINENO: checking for $ac_func" >&5
4499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4500 if eval "test \"\${$as_ac_var+set}\" = set"; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4511 #define $ac_func innocuous_$ac_func
4512
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func (); below.
4515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 <limits.h> exists even on freestanding compilers. */
4517
4518 #ifdef __STDC__
4519 # include <limits.h>
4520 #else
4521 # include <assert.h>
4522 #endif
4523
4524 #undef $ac_func
4525
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 #ifdef __cplusplus
4528 extern "C"
4529 {
4530 #endif
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4533 char $ac_func ();
4534 /* The GNU C library defines this for functions which it implements
4535 to always fail with ENOSYS. Some functions are actually named
4536 something starting with __ and the normal name is an alias. */
4537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538 choke me
4539 #else
4540 char (*f) () = $ac_func;
4541 #endif
4542 #ifdef __cplusplus
4543 }
4544 #endif
4545
4546 int
4547 main ()
4548 {
4549 return f != $ac_func;
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.$ac_objext conftest$ac_exeext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_var=yes"
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 eval "$as_ac_var=no"
4582 fi
4583 rm -f conftest.err conftest.$ac_objext \
4584 conftest$ac_exeext conftest.$ac_ext
4585 fi
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4588 if test `eval echo '${'$as_ac_var'}'` = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4591 _ACEOF
4592
4593 else
4594
4595 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4596
4597 fi
4598 done
4599
4600
4601 if test $ac_cv_func_memchr = no; then
4602
4603
4604 for ac_header in bp-sym.h
4605 do
4606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo "$as_me:$LINENO: checking for $ac_header" >&5
4609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 fi
4613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4615 else
4616 # Is the header compilable?
4617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4626 #include <$ac_header>
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_header_compiler=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 ac_header_compiler=no
4656 fi
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4659 echo "${ECHO_T}$ac_header_compiler" >&6
4660
4661 # Is the header present?
4662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <$ac_header>
4671 _ACEOF
4672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } >/dev/null; then
4680 if test -s conftest.err; then
4681 ac_cpp_err=$ac_c_preproc_warn_flag
4682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4683 else
4684 ac_cpp_err=
4685 fi
4686 else
4687 ac_cpp_err=yes
4688 fi
4689 if test -z "$ac_cpp_err"; then
4690 ac_header_preproc=yes
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_header_preproc=no
4696 fi
4697 rm -f conftest.err conftest.$ac_ext
4698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4699 echo "${ECHO_T}$ac_header_preproc" >&6
4700
4701 # So? What about this header?
4702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4703 yes:no: )
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4708 ac_header_preproc=yes
4709 ;;
4710 no:yes:* )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4723 (
4724 cat <<\_ASBOX
4725 ## ------------------------------------------ ##
4726 ## Report this to the AC_PACKAGE_NAME lists. ##
4727 ## ------------------------------------------ ##
4728 _ASBOX
4729 ) |
4730 sed "s/^/$as_me: WARNING: /" >&2
4731 ;;
4732 esac
4733 echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739 fi
4740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742
4743 fi
4744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 _ACEOF
4748
4749 fi
4750
4751 done
4752
4753
4754 fi
4755
4756
4757 echo "$as_me:$LINENO: checking for working memcmp" >&5
4758 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4759 if test "${ac_cv_func_memcmp_working+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test "$cross_compiling" = yes; then
4763 ac_cv_func_memcmp_working=no
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 $ac_includes_default
4772 int
4773 main ()
4774 {
4775
4776 /* Some versions of memcmp are not 8-bit clean. */
4777 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4778 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4779 exit (1);
4780
4781 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4782 or more and with at least one buffer not starting on a 4-byte boundary.
4783 William Lewis provided this test program. */
4784 {
4785 char foo[21];
4786 char bar[21];
4787 int i;
4788 for (i = 0; i < 4; i++)
4789 {
4790 char *a = foo + i;
4791 char *b = bar + i;
4792 strcpy (a, "--------01111111");
4793 strcpy (b, "--------10000000");
4794 if (memcmp (a, b, 16) >= 0)
4795 exit (1);
4796 }
4797 exit (0);
4798 }
4799
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_func_memcmp_working=yes
4816 else
4817 echo "$as_me: program exited with status $ac_status" >&5
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ( exit $ac_status )
4822 ac_cv_func_memcmp_working=no
4823 fi
4824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 fi
4827 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4828 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4829 test $ac_cv_func_memcmp_working = no &&
4830
4831
4832
4833
4834
4835
4836 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4837
4838
4839 if test $ac_cv_func_memcmp_working = no; then
4840
4841 cat >>confdefs.h <<\_ACEOF
4842 #define memcmp rpl_memcmp
4843 _ACEOF
4844
4845 :
4846 fi
4847
4848
4849
4850 if test $ac_cv_have_decl_memmem = yes; then
4851 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4852 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4853 if test "${gl_cv_func_memmem_works+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test "$cross_compiling" = yes; then
4857 gl_cv_func_memmem_works="guessing no"
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865
4866 #include <string.h> /* for memmem */
4867 #include <stdlib.h> /* for malloc */
4868 #include <unistd.h> /* for alarm */
4869
4870 int
4871 main ()
4872 {
4873 size_t m = 1000000;
4874 char *haystack = (char *) malloc (2 * m + 1);
4875 char *needle = (char *) malloc (m + 1);
4876 void *result = 0;
4877 /* Failure to compile this test due to missing alarm is okay,
4878 since all such platforms (mingw) also lack memmem. */
4879 alarm (5);
4880 /* Check for quadratic performance. */
4881 if (haystack && needle)
4882 {
4883 memset (haystack, 'A', 2 * m);
4884 haystack[2 * m] = 'B';
4885 memset (needle, 'A', m);
4886 needle[m] = 'B';
4887 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4888 }
4889 /* Check for empty needle behavior. */
4890 return !result || !memmem ("a", 1, 0, 0);
4891 ;
4892 return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 gl_cv_func_memmem_works=yes
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ( exit $ac_status )
4913 gl_cv_func_memmem_works=no
4914 fi
4915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4916 fi
4917 fi
4918 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4919 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4920 if test "$gl_cv_func_memmem_works" != yes; then
4921 REPLACE_MEMMEM=1
4922
4923
4924
4925
4926
4927
4928
4929 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4930
4931 fi
4932 fi
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 for ac_func in memmem
4947 do
4948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4949 echo "$as_me:$LINENO: checking for $ac_func" >&5
4950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4951 if eval "test \"\${$as_ac_var+set}\" = set"; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4962 #define $ac_func innocuous_$ac_func
4963
4964 /* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func (); below.
4966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 <limits.h> exists even on freestanding compilers. */
4968
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974
4975 #undef $ac_func
4976
4977 /* Override any gcc2 internal prototype to avoid an error. */
4978 #ifdef __cplusplus
4979 extern "C"
4980 {
4981 #endif
4982 /* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984 char $ac_func ();
4985 /* The GNU C library defines this for functions which it implements
4986 to always fail with ENOSYS. Some functions are actually named
4987 something starting with __ and the normal name is an alias. */
4988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989 choke me
4990 #else
4991 char (*f) () = $ac_func;
4992 #endif
4993 #ifdef __cplusplus
4994 }
4995 #endif
4996
4997 int
4998 main ()
4999 {
5000 return f != $ac_func;
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007 (eval $ac_link) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 eval "$as_ac_var=no"
5033 fi
5034 rm -f conftest.err conftest.$ac_objext \
5035 conftest$ac_exeext conftest.$ac_ext
5036 fi
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5039 if test `eval echo '${'$as_ac_var'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5042 _ACEOF
5043
5044 else
5045
5046 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5047
5048 fi
5049 done
5050
5051
5052
5053 :
5054
5055
5056
5057
5058
5059 if test $ac_cv_have_decl_memmem = no; then
5060 HAVE_DECL_MEMMEM=0
5061 fi
5062 :
5063
5064
5065
5066 GNULIB_MEMMEM=1
5067
5068
5069
5070
5071 if test $ac_cv_type_long_long_int = yes; then
5072 HAVE_LONG_LONG_INT=1
5073 else
5074 HAVE_LONG_LONG_INT=0
5075 fi
5076
5077
5078 if test $ac_cv_type_unsigned_long_long_int = yes; then
5079 HAVE_UNSIGNED_LONG_LONG_INT=1
5080 else
5081 HAVE_UNSIGNED_LONG_LONG_INT=0
5082 fi
5083
5084
5085 if test $ac_cv_header_inttypes_h = yes; then
5086 HAVE_INTTYPES_H=1
5087 else
5088 HAVE_INTTYPES_H=0
5089 fi
5090
5091
5092 if test $ac_cv_header_sys_types_h = yes; then
5093 HAVE_SYS_TYPES_H=1
5094 else
5095 HAVE_SYS_TYPES_H=0
5096 fi
5097
5098
5099
5100
5101
5102 :
5103
5104
5105
5106
5107
5108
5109
5110 if test $gl_cv_have_include_next = yes; then
5111 gl_cv_next_stdint_h='<'stdint.h'>'
5112 else
5113 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5114 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5115 if test "${gl_cv_next_stdint_h+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118
5119 if test $ac_cv_header_stdint_h = yes; then
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <stdint.h>
5127
5128 _ACEOF
5129 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 sed -n '\#/stdint.h#{
5131 s#.*"\(.*/stdint.h\)".*#\1#
5132 s#^/[^/]#//&#
5133 p
5134 q
5135 }'`'"'
5136 else
5137 gl_cv_next_stdint_h='<'stdint.h'>'
5138 fi
5139
5140 fi
5141 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5142 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5143 fi
5144 NEXT_STDINT_H=$gl_cv_next_stdint_h
5145
5146
5147
5148 if test $ac_cv_header_stdint_h = yes; then
5149 HAVE_STDINT_H=1
5150 else
5151 HAVE_STDINT_H=0
5152 fi
5153
5154
5155 if test $ac_cv_header_stdint_h = yes; then
5156 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5157 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5158 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 gl_cv_header_working_stdint_h=no
5162 cat >conftest.$ac_ext <<_ACEOF
5163
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169
5170 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5171 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5172 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5173 #include <stdint.h>
5174 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5175 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5176 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5177 #endif
5178
5179
5180 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5181 included before <wchar.h>. */
5182 #include <stddef.h>
5183 #include <signal.h>
5184 #if HAVE_WCHAR_H
5185 # include <stdio.h>
5186 # include <time.h>
5187 # include <wchar.h>
5188 #endif
5189
5190
5191 #ifdef INT8_MAX
5192 int8_t a1 = INT8_MAX;
5193 int8_t a1min = INT8_MIN;
5194 #endif
5195 #ifdef INT16_MAX
5196 int16_t a2 = INT16_MAX;
5197 int16_t a2min = INT16_MIN;
5198 #endif
5199 #ifdef INT32_MAX
5200 int32_t a3 = INT32_MAX;
5201 int32_t a3min = INT32_MIN;
5202 #endif
5203 #ifdef INT64_MAX
5204 int64_t a4 = INT64_MAX;
5205 int64_t a4min = INT64_MIN;
5206 #endif
5207 #ifdef UINT8_MAX
5208 uint8_t b1 = UINT8_MAX;
5209 #else
5210 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5211 #endif
5212 #ifdef UINT16_MAX
5213 uint16_t b2 = UINT16_MAX;
5214 #endif
5215 #ifdef UINT32_MAX
5216 uint32_t b3 = UINT32_MAX;
5217 #endif
5218 #ifdef UINT64_MAX
5219 uint64_t b4 = UINT64_MAX;
5220 #endif
5221 int_least8_t c1 = INT8_C (0x7f);
5222 int_least8_t c1max = INT_LEAST8_MAX;
5223 int_least8_t c1min = INT_LEAST8_MIN;
5224 int_least16_t c2 = INT16_C (0x7fff);
5225 int_least16_t c2max = INT_LEAST16_MAX;
5226 int_least16_t c2min = INT_LEAST16_MIN;
5227 int_least32_t c3 = INT32_C (0x7fffffff);
5228 int_least32_t c3max = INT_LEAST32_MAX;
5229 int_least32_t c3min = INT_LEAST32_MIN;
5230 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5231 int_least64_t c4max = INT_LEAST64_MAX;
5232 int_least64_t c4min = INT_LEAST64_MIN;
5233 uint_least8_t d1 = UINT8_C (0xff);
5234 uint_least8_t d1max = UINT_LEAST8_MAX;
5235 uint_least16_t d2 = UINT16_C (0xffff);
5236 uint_least16_t d2max = UINT_LEAST16_MAX;
5237 uint_least32_t d3 = UINT32_C (0xffffffff);
5238 uint_least32_t d3max = UINT_LEAST32_MAX;
5239 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5240 uint_least64_t d4max = UINT_LEAST64_MAX;
5241 int_fast8_t e1 = INT_FAST8_MAX;
5242 int_fast8_t e1min = INT_FAST8_MIN;
5243 int_fast16_t e2 = INT_FAST16_MAX;
5244 int_fast16_t e2min = INT_FAST16_MIN;
5245 int_fast32_t e3 = INT_FAST32_MAX;
5246 int_fast32_t e3min = INT_FAST32_MIN;
5247 int_fast64_t e4 = INT_FAST64_MAX;
5248 int_fast64_t e4min = INT_FAST64_MIN;
5249 uint_fast8_t f1 = UINT_FAST8_MAX;
5250 uint_fast16_t f2 = UINT_FAST16_MAX;
5251 uint_fast32_t f3 = UINT_FAST32_MAX;
5252 uint_fast64_t f4 = UINT_FAST64_MAX;
5253 #ifdef INTPTR_MAX
5254 intptr_t g = INTPTR_MAX;
5255 intptr_t gmin = INTPTR_MIN;
5256 #endif
5257 #ifdef UINTPTR_MAX
5258 uintptr_t h = UINTPTR_MAX;
5259 #endif
5260 intmax_t i = INTMAX_MAX;
5261 uintmax_t j = UINTMAX_MAX;
5262
5263 #include <limits.h> /* for CHAR_BIT */
5264 #define TYPE_MINIMUM(t) \
5265 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5266 #define TYPE_MAXIMUM(t) \
5267 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5268 struct s {
5269 int check_PTRDIFF:
5270 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5271 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5272 ? 1 : -1;
5273 /* Detect bug in FreeBSD 6.0 / ia64. */
5274 int check_SIG_ATOMIC:
5275 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5276 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5277 ? 1 : -1;
5278 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5279 int check_WCHAR:
5280 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5281 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5282 ? 1 : -1;
5283 /* Detect bug in mingw. */
5284 int check_WINT:
5285 WINT_MIN == TYPE_MINIMUM (wint_t)
5286 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5287 ? 1 : -1;
5288
5289 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5290 int check_UINT8_C:
5291 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5292 int check_UINT16_C:
5293 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5294
5295 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5296 #ifdef UINT8_MAX
5297 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5298 #endif
5299 #ifdef UINT16_MAX
5300 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5301 #endif
5302 #ifdef UINT32_MAX
5303 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5304 #endif
5305 #ifdef UINT64_MAX
5306 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5307 #endif
5308 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5309 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5310 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5311 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5312 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5313 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5314 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5315 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5316 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5317 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5318 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5319 };
5320
5321 int
5322 main ()
5323 {
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 gl_cv_header_working_stdint_h=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 fi
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5360 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5361 fi
5362 if test "$gl_cv_header_working_stdint_h" = yes; then
5363 STDINT_H=
5364 else
5365
5366
5367 for ac_header in sys/inttypes.h sys/bitypes.h
5368 do
5369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 fi
5376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378 else
5379 # Is the header compilable?
5380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 #include <$ac_header>
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_header_compiler=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_header_compiler=no
5419 fi
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6
5423
5424 # Is the header present?
5425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <$ac_header>
5434 _ACEOF
5435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5448 fi
5449 else
5450 ac_cpp_err=yes
5451 fi
5452 if test -z "$ac_cpp_err"; then
5453 ac_header_preproc=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_preproc=no
5459 fi
5460 rm -f conftest.err conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462 echo "${ECHO_T}$ac_header_preproc" >&6
5463
5464 # So? What about this header?
5465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 yes:no: )
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5471 ac_header_preproc=yes
5472 ;;
5473 no:yes:* )
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486 (
5487 cat <<\_ASBOX
5488 ## ------------------------------------------ ##
5489 ## Report this to the AC_PACKAGE_NAME lists. ##
5490 ## ------------------------------------------ ##
5491 _ASBOX
5492 ) |
5493 sed "s/^/$as_me: WARNING: /" >&2
5494 ;;
5495 esac
5496 echo "$as_me:$LINENO: checking for $ac_header" >&5
5497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 eval "$as_ac_Header=\$ac_header_preproc"
5502 fi
5503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5505
5506 fi
5507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510 _ACEOF
5511
5512 fi
5513
5514 done
5515
5516 if test $ac_cv_header_sys_inttypes_h = yes; then
5517 HAVE_SYS_INTTYPES_H=1
5518 else
5519 HAVE_SYS_INTTYPES_H=0
5520 fi
5521
5522 if test $ac_cv_header_sys_bitypes_h = yes; then
5523 HAVE_SYS_BITYPES_H=1
5524 else
5525 HAVE_SYS_BITYPES_H=0
5526 fi
5527
5528
5529
5530 :
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5546 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5547 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5548 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 if test "$cross_compiling" = yes; then
5552 # Depending upon the size, compute the lo and hi bounds.
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559
5560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5561 included before <wchar.h>. */
5562 #include <stddef.h>
5563 #include <signal.h>
5564 #if HAVE_WCHAR_H
5565 # include <stdio.h>
5566 # include <time.h>
5567 # include <wchar.h>
5568 #endif
5569
5570 #include <limits.h>
5571 int
5572 main ()
5573 {
5574 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5575 test_array [0] = 0
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_lo=0 ac_mid=0
5604 while :; do
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611
5612 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5613 included before <wchar.h>. */
5614 #include <stddef.h>
5615 #include <signal.h>
5616 #if HAVE_WCHAR_H
5617 # include <stdio.h>
5618 # include <time.h>
5619 # include <wchar.h>
5620 #endif
5621
5622 #include <limits.h>
5623 int
5624 main ()
5625 {
5626 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5627 test_array [0] = 0
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_hi=$ac_mid; break
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_lo=`expr $ac_mid + 1`
5661 if test $ac_lo -le $ac_mid; then
5662 ac_lo= ac_hi=
5663 break
5664 fi
5665 ac_mid=`expr 2 '*' $ac_mid + 1`
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 done
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679
5680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5681 included before <wchar.h>. */
5682 #include <stddef.h>
5683 #include <signal.h>
5684 #if HAVE_WCHAR_H
5685 # include <stdio.h>
5686 # include <time.h>
5687 # include <wchar.h>
5688 #endif
5689
5690 #include <limits.h>
5691 int
5692 main ()
5693 {
5694 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5695 test_array [0] = 0
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_hi=-1 ac_mid=-1
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731
5732 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5733 included before <wchar.h>. */
5734 #include <stddef.h>
5735 #include <signal.h>
5736 #if HAVE_WCHAR_H
5737 # include <stdio.h>
5738 # include <time.h>
5739 # include <wchar.h>
5740 #endif
5741
5742 #include <limits.h>
5743 int
5744 main ()
5745 {
5746 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5747 test_array [0] = 0
5748
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_lo=$ac_mid; break
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_hi=`expr '(' $ac_mid ')' - 1`
5781 if test $ac_mid -le $ac_hi; then
5782 ac_lo= ac_hi=
5783 break
5784 fi
5785 ac_mid=`expr 2 '*' $ac_mid`
5786 fi
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_lo= ac_hi=
5794 fi
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798 # Binary search between lo and hi bounds.
5799 while test "x$ac_lo" != "x$ac_hi"; do
5800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807
5808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5809 included before <wchar.h>. */
5810 #include <stddef.h>
5811 #include <signal.h>
5812 #if HAVE_WCHAR_H
5813 # include <stdio.h>
5814 # include <time.h>
5815 # include <wchar.h>
5816 #endif
5817
5818 #include <limits.h>
5819 int
5820 main ()
5821 {
5822 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5823 test_array [0] = 0
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_hi=$ac_mid
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_lo=`expr '(' $ac_mid ')' + 1`
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 done
5860 case $ac_lo in
5861 ?*) result=$ac_lo;;
5862 '') result=unknown ;;
5863 esac
5864 else
5865 if test "$cross_compiling" = yes; then
5866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5867 See \`config.log' for more details." >&5
5868 echo "$as_me: error: cannot run test program while cross compiling
5869 See \`config.log' for more details." >&2;}
5870 { (exit 1); exit 1; }; }
5871 else
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878
5879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5880 included before <wchar.h>. */
5881 #include <stddef.h>
5882 #include <signal.h>
5883 #if HAVE_WCHAR_H
5884 # include <stdio.h>
5885 # include <time.h>
5886 # include <wchar.h>
5887 #endif
5888
5889 #include <limits.h>
5890 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5891 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5892 #include <stdio.h>
5893 #include <stdlib.h>
5894 int
5895 main ()
5896 {
5897
5898 FILE *f = fopen ("conftest.val", "w");
5899 if (! f)
5900 exit (1);
5901 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5902 {
5903 long i = longval ();
5904 if (i != (sizeof ($gltype) * CHAR_BIT))
5905 exit (1);
5906 fprintf (f, "%ld\n", i);
5907 }
5908 else
5909 {
5910 unsigned long i = ulongval ();
5911 if (i != (sizeof ($gltype) * CHAR_BIT))
5912 exit (1);
5913 fprintf (f, "%lu\n", i);
5914 }
5915 exit (ferror (f) || fclose (f) != 0);
5916
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 result=`cat conftest.val`
5933 else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ( exit $ac_status )
5939 result=unknown
5940 fi
5941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 fi
5944 rm -f conftest.val
5945 eval gl_cv_bitsizeof_${gltype}=\$result
5946
5947 fi
5948 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5949 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5950 eval result=\$gl_cv_bitsizeof_${gltype}
5951 if test $result = unknown; then
5952 result=0
5953 fi
5954 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5955 cat >>confdefs.h <<_ACEOF
5956 #define BITSIZEOF_${GLTYPE} $result
5957 _ACEOF
5958
5959 eval BITSIZEOF_${GLTYPE}=\$result
5960 done
5961
5962
5963
5964
5965
5966
5967
5968 for gltype in sig_atomic_t wchar_t wint_t ; do
5969 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5970 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5971 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980
5981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5982 included before <wchar.h>. */
5983 #include <stddef.h>
5984 #include <signal.h>
5985 #if HAVE_WCHAR_H
5986 # include <stdio.h>
5987 # include <time.h>
5988 # include <wchar.h>
5989 #endif
5990
5991 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5992 int
5993 main ()
5994 {
5995
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 result=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 result=no
6028 fi
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 eval gl_cv_type_${gltype}_signed=\$result
6031
6032 fi
6033 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6034 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6035 eval result=\$gl_cv_type_${gltype}_signed
6036 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6037 if test "$result" = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define HAVE_SIGNED_${GLTYPE} 1
6040 _ACEOF
6041
6042 eval HAVE_SIGNED_${GLTYPE}=1
6043 else
6044 eval HAVE_SIGNED_${GLTYPE}=0
6045 fi
6046 done
6047
6048
6049 gl_cv_type_ptrdiff_t_signed=yes
6050 gl_cv_type_size_t_signed=no
6051
6052
6053
6054
6055
6056
6057
6058 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6059 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6060 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6061 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 eval gl_cv_type_${gltype}_suffix=no
6065 eval result=\$gl_cv_type_${gltype}_signed
6066 if test "$result" = yes; then
6067 glsufu=
6068 else
6069 glsufu=u
6070 fi
6071 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6072 case $glsuf in
6073 '') gltype1='int';;
6074 l) gltype1='long int';;
6075 ll) gltype1='long long int';;
6076 i64) gltype1='__int64';;
6077 u) gltype1='unsigned int';;
6078 ul) gltype1='unsigned long int';;
6079 ull) gltype1='unsigned long long int';;
6080 ui64)gltype1='unsigned __int64';;
6081 esac
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088
6089 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6090 included before <wchar.h>. */
6091 #include <stddef.h>
6092 #include <signal.h>
6093 #if HAVE_WCHAR_H
6094 # include <stdio.h>
6095 # include <time.h>
6096 # include <wchar.h>
6097 #endif
6098
6099 extern $gltype foo;
6100 extern $gltype1 foo;
6101 int
6102 main ()
6103 {
6104
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -z "$ac_c_werror_flag"
6119 || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 eval gl_cv_type_${gltype}_suffix=\$glsuf
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 fi
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 eval result=\$gl_cv_type_${gltype}_suffix
6139 test "$result" != no && break
6140 done
6141 fi
6142 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6143 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6144 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6145 eval result=\$gl_cv_type_${gltype}_suffix
6146 test "$result" = no && result=
6147 eval ${GLTYPE}_SUFFIX=\$result
6148 cat >>confdefs.h <<_ACEOF
6149 #define ${GLTYPE}_SUFFIX $result
6150 _ACEOF
6151
6152 done
6153
6154
6155
6156 STDINT_H=stdint.h
6157 fi
6158
6159
6160
6161
6162
6163
6164
6165 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6166 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6167 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 cat >conftest.$ac_ext <<_ACEOF
6171 #include <wchar.h>
6172 wchar_t w;
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 gl_cv_header_wchar_h_standalone=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 gl_cv_header_wchar_h_standalone=no
6202 fi
6203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6206 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6207 if test $gl_cv_header_wchar_h_standalone != yes; then
6208 WCHAR_H=wchar.h
6209 fi
6210
6211
6212 :
6213
6214
6215
6216
6217
6218 if test $ac_cv_header_wchar_h = yes; then
6219 HAVE_WCHAR_H=1
6220 else
6221 HAVE_WCHAR_H=0
6222 fi
6223
6224
6225
6226
6227 :
6228
6229
6230
6231
6232
6233
6234
6235 if test $gl_cv_have_include_next = yes; then
6236 gl_cv_next_wchar_h='<'wchar.h'>'
6237 else
6238 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6239 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6240 if test "${gl_cv_next_wchar_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243
6244 if test $ac_cv_header_wchar_h = yes; then
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #include <wchar.h>
6252
6253 _ACEOF
6254 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 sed -n '\#/wchar.h#{
6256 s#.*"\(.*/wchar.h\)".*#\1#
6257 s#^/[^/]#//&#
6258 p
6259 q
6260 }'`'"'
6261 else
6262 gl_cv_next_wchar_h='<'wchar.h'>'
6263 fi
6264
6265 fi
6266 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6267 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6268 fi
6269 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6270
6271
6272
6273
6274
6275
6276
6277
6278 gltests_libdeps=
6279 gltests_ltlibdeps=
6280
6281
6282
6283 gl_source_base='tests'
6284
6285
6286
6287
6288 LIBGNU_LIBDEPS="$gl_libdeps"
6289
6290 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6291
6292
6293
6294 PACKAGE=gdb
6295
6296 cat >>confdefs.h <<_ACEOF
6297 #define PACKAGE "$PACKAGE"
6298 _ACEOF
6299
6300
6301
6302 # GDB does not use automake, but gnulib does. This line lets us
6303 # generate its Makefile.in.
6304 am__api_version="1.9"
6305 # Find a good install program. We prefer a C program (faster),
6306 # so one script is as good as another. But avoid the broken or
6307 # incompatible versions:
6308 # SysV /etc/install, /usr/sbin/install
6309 # SunOS /usr/etc/install
6310 # IRIX /sbin/install
6311 # AIX /bin/install
6312 # AmigaOS /C/install, which installs bootblocks on floppy discs
6313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6316 # OS/2's system install, which has a completely different semantic
6317 # ./install, which can be erroneously created by make from ./install.sh.
6318 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6319 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6320 if test -z "$INSTALL"; then
6321 if test "${ac_cv_path_install+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 # Account for people who put trailing slashes in PATH elements.
6330 case $as_dir/ in
6331 ./ | .// | /cC/* | \
6332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6333 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6334 /usr/ucb/* ) ;;
6335 *)
6336 # OSF1 and SCO ODT 3.0 have their own names for install.
6337 # Don't use installbsd from OSF since it installs stuff as root
6338 # by default.
6339 for ac_prog in ginstall scoinst install; do
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6342 if test $ac_prog = install &&
6343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6344 # AIX install. It has an incompatible calling convention.
6345 :
6346 elif test $ac_prog = install &&
6347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6348 # program-specific install script used by HP pwplus--don't use.
6349 :
6350 else
6351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6352 break 3
6353 fi
6354 fi
6355 done
6356 done
6357 ;;
6358 esac
6359 done
6360
6361
6362 fi
6363 if test "${ac_cv_path_install+set}" = set; then
6364 INSTALL=$ac_cv_path_install
6365 else
6366 # As a last resort, use the slow shell script. We don't cache a
6367 # path for INSTALL within a source directory, because that will
6368 # break other packages using the cache if that directory is
6369 # removed, or if the path is relative.
6370 INSTALL=$ac_install_sh
6371 fi
6372 fi
6373 echo "$as_me:$LINENO: result: $INSTALL" >&5
6374 echo "${ECHO_T}$INSTALL" >&6
6375
6376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6377 # It thinks the first close brace ends the variable substitution.
6378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6379
6380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6381
6382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6383
6384 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6385 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6386 # Just in case
6387 sleep 1
6388 echo timestamp > conftest.file
6389 # Do `set' in a subshell so we don't clobber the current shell's
6390 # arguments. Must try -L first in case configure is actually a
6391 # symlink; some systems play weird games with the mod time of symlinks
6392 # (eg FreeBSD returns the mod time of the symlink's containing
6393 # directory).
6394 if (
6395 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6396 if test "$*" = "X"; then
6397 # -L didn't work.
6398 set X `ls -t $srcdir/configure conftest.file`
6399 fi
6400 rm -f conftest.file
6401 if test "$*" != "X $srcdir/configure conftest.file" \
6402 && test "$*" != "X conftest.file $srcdir/configure"; then
6403
6404 # If neither matched, then we have a broken ls. This can happen
6405 # if, for instance, CONFIG_SHELL is bash and it inherits a
6406 # broken ls alias from the environment. This has actually
6407 # happened. Such a system could not be considered "sane".
6408 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6409 alias in your environment" >&5
6410 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6411 alias in your environment" >&2;}
6412 { (exit 1); exit 1; }; }
6413 fi
6414
6415 test "$2" = conftest.file
6416 )
6417 then
6418 # Ok.
6419 :
6420 else
6421 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6422 Check your system clock" >&5
6423 echo "$as_me: error: newly created file is older than distributed files!
6424 Check your system clock" >&2;}
6425 { (exit 1); exit 1; }; }
6426 fi
6427 echo "$as_me:$LINENO: result: yes" >&5
6428 echo "${ECHO_T}yes" >&6
6429 test "$program_prefix" != NONE &&
6430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6431 # Use a double $ so make ignores it.
6432 test "$program_suffix" != NONE &&
6433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6434 # Double any \ or $. echo might interpret backslashes.
6435 # By default was `s,x,x', remove it if useless.
6436 cat <<\_ACEOF >conftest.sed
6437 s/[\\$]/&&/g;s/;s,x,x,$//
6438 _ACEOF
6439 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6440 rm conftest.sed
6441
6442 # expand $ac_aux_dir to an absolute path
6443 am_aux_dir=`cd $ac_aux_dir && pwd`
6444
6445 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6446 # Use eval to expand $SHELL
6447 if eval "$MISSING --run true"; then
6448 am_missing_run="$MISSING --run "
6449 else
6450 am_missing_run=
6451 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6452 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6453 fi
6454
6455 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6456 # We used to keeping the `.' as first argument, in order to
6457 # allow $(mkdir_p) to be used without argument. As in
6458 # $(mkdir_p) $(somedir)
6459 # where $(somedir) is conditionally defined. However this is wrong
6460 # for two reasons:
6461 # 1. if the package is installed by a user who cannot write `.'
6462 # make install will fail,
6463 # 2. the above comment should most certainly read
6464 # $(mkdir_p) $(DESTDIR)$(somedir)
6465 # so it does not work when $(somedir) is undefined and
6466 # $(DESTDIR) is not.
6467 # To support the latter case, we have to write
6468 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6469 # so the `.' trick is pointless.
6470 mkdir_p='mkdir -p --'
6471 else
6472 # On NextStep and OpenStep, the `mkdir' command does not
6473 # recognize any option. It will interpret all options as
6474 # directories to create, and then abort because `.' already
6475 # exists.
6476 for d in ./-p ./--version;
6477 do
6478 test -d $d && rmdir $d
6479 done
6480 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6481 if test -f "$ac_aux_dir/mkinstalldirs"; then
6482 mkdir_p='$(mkinstalldirs)'
6483 else
6484 mkdir_p='$(install_sh) -d'
6485 fi
6486 fi
6487
6488 for ac_prog in gawk mawk nawk awk
6489 do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491 set dummy $ac_prog; ac_word=$2
6492 echo "$as_me:$LINENO: checking for $ac_word" >&5
6493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6494 if test "${ac_cv_prog_AWK+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 if test -n "$AWK"; then
6498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AWK="$ac_prog"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513
6514 fi
6515 fi
6516 AWK=$ac_cv_prog_AWK
6517 if test -n "$AWK"; then
6518 echo "$as_me:$LINENO: result: $AWK" >&5
6519 echo "${ECHO_T}$AWK" >&6
6520 else
6521 echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6
6523 fi
6524
6525 test -n "$AWK" && break
6526 done
6527
6528 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6529 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6530 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6531 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.make <<\_ACEOF
6535 all:
6536 @echo 'ac_maketemp="$(MAKE)"'
6537 _ACEOF
6538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6539 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6540 if test -n "$ac_maketemp"; then
6541 eval ac_cv_prog_make_${ac_make}_set=yes
6542 else
6543 eval ac_cv_prog_make_${ac_make}_set=no
6544 fi
6545 rm -f conftest.make
6546 fi
6547 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6548 echo "$as_me:$LINENO: result: yes" >&5
6549 echo "${ECHO_T}yes" >&6
6550 SET_MAKE=
6551 else
6552 echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6
6554 SET_MAKE="MAKE=${MAKE-make}"
6555 fi
6556
6557 rm -rf .tst 2>/dev/null
6558 mkdir .tst 2>/dev/null
6559 if test -d .tst; then
6560 am__leading_dot=.
6561 else
6562 am__leading_dot=_
6563 fi
6564 rmdir .tst 2>/dev/null
6565
6566 DEPDIR="${am__leading_dot}deps"
6567
6568 ac_config_commands="$ac_config_commands depfiles"
6569
6570
6571 am_make=${MAKE-make}
6572 cat > confinc << 'END'
6573 am__doit:
6574 @echo done
6575 .PHONY: am__doit
6576 END
6577 # If we don't find an include directive, just comment out the code.
6578 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6579 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6580 am__include="#"
6581 am__quote=
6582 _am_result=none
6583 # First try GNU make style include.
6584 echo "include confinc" > confmf
6585 # We grep out `Entering directory' and `Leaving directory'
6586 # messages which can occur if `w' ends up in MAKEFLAGS.
6587 # In particular we don't look at `^make:' because GNU make might
6588 # be invoked under some other name (usually "gmake"), in which
6589 # case it prints its new name instead of `make'.
6590 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6591 am__include=include
6592 am__quote=
6593 _am_result=GNU
6594 fi
6595 # Now try BSD make style include.
6596 if test "$am__include" = "#"; then
6597 echo '.include "confinc"' > confmf
6598 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6599 am__include=.include
6600 am__quote="\""
6601 _am_result=BSD
6602 fi
6603 fi
6604
6605
6606 echo "$as_me:$LINENO: result: $_am_result" >&5
6607 echo "${ECHO_T}$_am_result" >&6
6608 rm -f confinc confmf
6609
6610 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6611 if test "${enable_dependency_tracking+set}" = set; then
6612 enableval="$enable_dependency_tracking"
6613
6614 fi;
6615 if test "x$enable_dependency_tracking" != xno; then
6616 am_depcomp="$ac_aux_dir/depcomp"
6617 AMDEPBACKSLASH='\'
6618 fi
6619
6620
6621 if test "x$enable_dependency_tracking" != xno; then
6622 AMDEP_TRUE=
6623 AMDEP_FALSE='#'
6624 else
6625 AMDEP_TRUE='#'
6626 AMDEP_FALSE=
6627 fi
6628
6629
6630
6631 # test to see if srcdir already configured
6632 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6633 test -f $srcdir/config.status; then
6634 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6635 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6636 { (exit 1); exit 1; }; }
6637 fi
6638
6639 # test whether we have cygpath
6640 if test -z "$CYGPATH_W"; then
6641 if (cygpath --version) >/dev/null 2>/dev/null; then
6642 CYGPATH_W='cygpath -w'
6643 else
6644 CYGPATH_W=echo
6645 fi
6646 fi
6647
6648
6649 # Define the identity of the package.
6650 PACKAGE=gdb
6651 VERSION=UNUSED-VERSION
6652
6653
6654 # Some tools Automake needs.
6655
6656 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6657
6658
6659 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6660
6661
6662 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6663
6664
6665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6666
6667
6668 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6669
6670 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6671
6672 # Installed binaries are usually stripped using `strip' when the user
6673 # run `make install-strip'. However `strip' might not be the right
6674 # tool to use in cross-compilation environments, therefore Automake
6675 # will honor the `STRIP' environment variable to overrule this program.
6676 if test "$cross_compiling" != no; then
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}strip; ac_word=$2
6680 echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682 if test "${ac_cv_prog_STRIP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 if test -n "$STRIP"; then
6686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701
6702 fi
6703 fi
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706 echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6
6708 else
6709 echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6711 fi
6712
6713 fi
6714 if test -z "$ac_cv_prog_STRIP"; then
6715 ac_ct_STRIP=$STRIP
6716 # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739
6740 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6741 fi
6742 fi
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746 echo "${ECHO_T}$ac_ct_STRIP" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6
6750 fi
6751
6752 STRIP=$ac_ct_STRIP
6753 else
6754 STRIP="$ac_cv_prog_STRIP"
6755 fi
6756
6757 fi
6758 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6759
6760 # We need awk for the "check" target. The system "awk" is bad on
6761 # some platforms.
6762 # Always define AMTAR for backward compatibility.
6763
6764 AMTAR=${AMTAR-"${am_missing_run}tar"}
6765
6766 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6767
6768
6769
6770
6771 depcc="$CC" am_compiler_list=
6772
6773 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6774 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6779 # We make a subdir and do the tests there. Otherwise we can end up
6780 # making bogus files that we don't know about and never remove. For
6781 # instance it was reported that on HP-UX the gcc test will end up
6782 # making a dummy file named `D' -- because `-MD' means `put the output
6783 # in D'.
6784 mkdir conftest.dir
6785 # Copy depcomp to subdir because otherwise we won't find it if we're
6786 # using a relative directory.
6787 cp "$am_depcomp" conftest.dir
6788 cd conftest.dir
6789 # We will build objects and dependencies in a subdirectory because
6790 # it helps to detect inapplicable dependency modes. For instance
6791 # both Tru64's cc and ICC support -MD to output dependencies as a
6792 # side effect of compilation, but ICC will put the dependencies in
6793 # the current directory while Tru64 will put them in the object
6794 # directory.
6795 mkdir sub
6796
6797 am_cv_CC_dependencies_compiler_type=none
6798 if test "$am_compiler_list" = ""; then
6799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6800 fi
6801 for depmode in $am_compiler_list; do
6802 # Setup a source with many dependencies, because some compilers
6803 # like to wrap large dependency lists on column 80 (with \), and
6804 # we should not choose a depcomp mode which is confused by this.
6805 #
6806 # We need to recreate these files for each test, as the compiler may
6807 # overwrite some of them when testing with obscure command lines.
6808 # This happens at least with the AIX C compiler.
6809 : > sub/conftest.c
6810 for i in 1 2 3 4 5 6; do
6811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6813 # Solaris 8's {/usr,}/bin/sh.
6814 touch sub/conftst$i.h
6815 done
6816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6817
6818 case $depmode in
6819 nosideeffect)
6820 # after this tag, mechanisms are not by side-effect, so they'll
6821 # only be used when explicitly requested
6822 if test "x$enable_dependency_tracking" = xyes; then
6823 continue
6824 else
6825 break
6826 fi
6827 ;;
6828 none) break ;;
6829 esac
6830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6831 # mode. It turns out that the SunPro C++ compiler does not properly
6832 # handle `-M -o', and we need to detect this.
6833 if depmode=$depmode \
6834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6837 >/dev/null 2>conftest.err &&
6838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6841 # icc doesn't choke on unknown options, it will just issue warnings
6842 # or remarks (even with -Werror). So we grep stderr for any message
6843 # that says an option was ignored or not supported.
6844 # When given -MP, icc 7.0 and 7.1 complain thusly:
6845 # icc: Command line warning: ignoring option '-M'; no argument required
6846 # The diagnosis changed in icc 8.0:
6847 # icc: Command line remark: option '-MP' not supported
6848 if (grep 'ignoring option' conftest.err ||
6849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6850 am_cv_CC_dependencies_compiler_type=$depmode
6851 break
6852 fi
6853 fi
6854 done
6855
6856 cd ..
6857 rm -rf conftest.dir
6858 else
6859 am_cv_CC_dependencies_compiler_type=none
6860 fi
6861
6862 fi
6863 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6864 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6866
6867
6868
6869 if
6870 test "x$enable_dependency_tracking" != xno \
6871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6872 am__fastdepCC_TRUE=
6873 am__fastdepCC_FALSE='#'
6874 else
6875 am__fastdepCC_TRUE='#'
6876 am__fastdepCC_FALSE=
6877 fi
6878
6879
6880
6881
6882 debugdir=${libdir}/debug
6883
6884
6885 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6886 if test "${with_separate_debug_dir+set}" = set; then
6887 withval="$with_separate_debug_dir"
6888 debugdir="${withval}"
6889 fi;
6890
6891
6892 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6894 ac_define_dir=`eval echo $debugdir`
6895 ac_define_dir=`eval echo $ac_define_dir`
6896
6897 cat >>confdefs.h <<_ACEOF
6898 #define DEBUGDIR "$ac_define_dir"
6899 _ACEOF
6900
6901
6902 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6903
6904 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6905 if test "x$prefix" = xNONE; then
6906 test_prefix=/usr/local
6907 else
6908 test_prefix=$prefix
6909 fi
6910 else
6911 test_prefix=$exec_prefix
6912 fi
6913 case ${debugdir} in
6914 "${test_prefix}"|"${test_prefix}/"*|\
6915 '${exec_prefix}'|'${exec_prefix}/'*)
6916
6917 cat >>confdefs.h <<\_ACEOF
6918 #define DEBUGDIR_RELOCATABLE 1
6919 _ACEOF
6920
6921 ;;
6922 esac
6923
6924
6925
6926 subdirs="$subdirs doc testsuite"
6927
6928
6929 # Check whether to support alternative target configurations
6930 # Check whether --enable-targets or --disable-targets was given.
6931 if test "${enable_targets+set}" = set; then
6932 enableval="$enable_targets"
6933 case "${enableval}" in
6934 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6935 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6936 { (exit 1); exit 1; }; }
6937 ;;
6938 no) enable_targets= ;;
6939 *) enable_targets=$enableval ;;
6940 esac
6941 fi;
6942
6943 # Check whether to enable 64-bit support on 32-bit hosts
6944 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6945 if test "${enable_64_bit_bfd+set}" = set; then
6946 enableval="$enable_64_bit_bfd"
6947 case "${enableval}" in
6948 yes) want64=true ;;
6949 no) want64=false ;;
6950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6951 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6952 { (exit 1); exit 1; }; } ;;
6953 esac
6954 else
6955 want64=false
6956 fi;
6957 # Provide defaults for some variables set by the per-host and per-target
6958 # configuration.
6959 gdb_host_obs=posix-hdep.o
6960
6961 if test "${target}" = "${host}"; then
6962 gdb_native=yes
6963 else
6964 gdb_native=no
6965 fi
6966
6967 . $srcdir/configure.host
6968
6969 # Accumulate some settings from configure.tgt over all enabled targets
6970
6971 TARGET_OBS=
6972 all_targets=
6973
6974 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6975 do
6976 if test "$targ_alias" = "all"; then
6977 all_targets=true
6978 else
6979 # Canonicalize the secondary target names.
6980 result=`$ac_config_sub $targ_alias 2>/dev/null`
6981 if test -n "$result"; then
6982 targ=$result
6983 else
6984 targ=$targ_alias
6985 fi
6986
6987 . ${srcdir}/configure.tgt
6988
6989 # Target-specific object files
6990 for i in ${gdb_target_obs}; do
6991 case " $TARGET_OBS " in
6992 *" ${i} "*) ;;
6993 *)
6994 TARGET_OBS="$TARGET_OBS ${i}"
6995 ;;
6996 esac
6997 done
6998
6999 # Check whether this target needs 64-bit CORE_ADDR
7000 if test x${want64} = xfalse; then
7001 . ${srcdir}/../bfd/config.bfd
7002 fi
7003 fi
7004 done
7005
7006 if test x${all_targets} = xtrue; then
7007
7008 # We want all 64-bit targets if we either:
7009 # - run on a 64-bit host or
7010 # - already require 64-bit support for some other target or
7011 # - the --enable-64-bit-bfd option was supplied
7012 # Otherwise we only support all 32-bit targets.
7013 #
7014 # NOTE: This test must be in sync with the corresponding
7015 # tests in BFD!
7016
7017 if test x${want64} = xfalse; then
7018 echo "$as_me:$LINENO: checking for long" >&5
7019 echo $ECHO_N "checking for long... $ECHO_C" >&6
7020 if test "${ac_cv_type_long+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7030 int
7031 main ()
7032 {
7033 if ((long *) 0)
7034 return 0;
7035 if (sizeof (long))
7036 return 0;
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_type_long=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068 ac_cv_type_long=no
7069 fi
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071 fi
7072 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7073 echo "${ECHO_T}$ac_cv_type_long" >&6
7074
7075 echo "$as_me:$LINENO: checking size of long" >&5
7076 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7077 if test "${ac_cv_sizeof_long+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080 if test "$ac_cv_type_long" = yes; then
7081 # The cast to unsigned long works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 if test "$cross_compiling" = yes; then
7086 # Depending upon the size, compute the lo and hi bounds.
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 $ac_includes_default
7094 int
7095 main ()
7096 {
7097 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7098 test_array [0] = 0
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_lo=0 ac_mid=0
7127 while :; do
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7135 int
7136 main ()
7137 {
7138 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7139 test_array [0] = 0
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_hi=$ac_mid; break
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ac_lo=`expr $ac_mid + 1`
7173 if test $ac_lo -le $ac_mid; then
7174 ac_lo= ac_hi=
7175 break
7176 fi
7177 ac_mid=`expr 2 '*' $ac_mid + 1`
7178 fi
7179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 done
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 $ac_includes_default
7192 int
7193 main ()
7194 {
7195 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7196 test_array [0] = 0
7197
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest.$ac_objext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_hi=-1 ac_mid=-1
7225 while :; do
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 $ac_includes_default
7233 int
7234 main ()
7235 {
7236 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7237 test_array [0] = 0
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_lo=$ac_mid; break
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_hi=`expr '(' $ac_mid ')' - 1`
7271 if test $ac_mid -le $ac_hi; then
7272 ac_lo= ac_hi=
7273 break
7274 fi
7275 ac_mid=`expr 2 '*' $ac_mid`
7276 fi
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 done
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283 ac_lo= ac_hi=
7284 fi
7285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286 fi
7287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288 # Binary search between lo and hi bounds.
7289 while test "x$ac_lo" != "x$ac_hi"; do
7290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 int
7299 main ()
7300 {
7301 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7302 test_array [0] = 0
7303
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_hi=$ac_mid
7331 else
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 ac_lo=`expr '(' $ac_mid ')' + 1`
7336 fi
7337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338 done
7339 case $ac_lo in
7340 ?*) ac_cv_sizeof_long=$ac_lo;;
7341 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7342 See \`config.log' for more details." >&5
7343 echo "$as_me: error: cannot compute sizeof (long), 77
7344 See \`config.log' for more details." >&2;}
7345 { (exit 1); exit 1; }; } ;;
7346 esac
7347 else
7348 if test "$cross_compiling" = yes; then
7349 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7350 See \`config.log' for more details." >&5
7351 echo "$as_me: error: cannot run test program while cross compiling
7352 See \`config.log' for more details." >&2;}
7353 { (exit 1); exit 1; }; }
7354 else
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7362 long longval () { return (long) (sizeof (long)); }
7363 unsigned long ulongval () { return (long) (sizeof (long)); }
7364 #include <stdio.h>
7365 #include <stdlib.h>
7366 int
7367 main ()
7368 {
7369
7370 FILE *f = fopen ("conftest.val", "w");
7371 if (! f)
7372 exit (1);
7373 if (((long) (sizeof (long))) < 0)
7374 {
7375 long i = longval ();
7376 if (i != ((long) (sizeof (long))))
7377 exit (1);
7378 fprintf (f, "%ld\n", i);
7379 }
7380 else
7381 {
7382 unsigned long i = ulongval ();
7383 if (i != ((long) (sizeof (long))))
7384 exit (1);
7385 fprintf (f, "%lu\n", i);
7386 }
7387 exit (ferror (f) || fclose (f) != 0);
7388
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_sizeof_long=`cat conftest.val`
7405 else
7406 echo "$as_me: program exited with status $ac_status" >&5
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7409
7410 ( exit $ac_status )
7411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7412 See \`config.log' for more details." >&5
7413 echo "$as_me: error: cannot compute sizeof (long), 77
7414 See \`config.log' for more details." >&2;}
7415 { (exit 1); exit 1; }; }
7416 fi
7417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 fi
7420 rm -f conftest.val
7421 else
7422 ac_cv_sizeof_long=0
7423 fi
7424 fi
7425 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7426 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7427 cat >>confdefs.h <<_ACEOF
7428 #define SIZEOF_LONG $ac_cv_sizeof_long
7429 _ACEOF
7430
7431
7432 if test "x${ac_cv_sizeof_long}" = "x8"; then
7433 want64=true
7434 fi
7435 fi
7436 if test x${want64} = xtrue; then
7437 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7438 else
7439 TARGET_OBS='$(ALL_TARGET_OBS)'
7440 fi
7441 fi
7442
7443
7444
7445 # For other settings, only the main target counts.
7446 gdb_sim=
7447 gdb_osabi=
7448 build_gdbserver=
7449 targ=$target; . ${srcdir}/configure.tgt
7450
7451 # Fetch the default architecture and default target vector from BFD.
7452 targ=$target; . $srcdir/../bfd/config.bfd
7453
7454 # We only want the first architecture, so strip off the others if
7455 # there is more than one.
7456 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7457
7458 if test "x$targ_archs" != x; then
7459
7460 cat >>confdefs.h <<_ACEOF
7461 #define DEFAULT_BFD_ARCH $targ_archs
7462 _ACEOF
7463
7464 fi
7465 if test "x$targ_defvec" != x; then
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define DEFAULT_BFD_VEC $targ_defvec
7469 _ACEOF
7470
7471 fi
7472
7473 # The CLI cannot be disabled yet, but may be in the future.
7474
7475 # Enable CLI.
7476 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7477 if test "${enable_gdbcli+set}" = set; then
7478 enableval="$enable_gdbcli"
7479 case $enableval in
7480 yes)
7481 ;;
7482 no)
7483 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7484 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7485 { (exit 1); exit 1; }; } ;;
7486 *)
7487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7488 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7489 { (exit 1); exit 1; }; } ;;
7490 esac
7491 else
7492 enable_gdbcli=yes
7493 fi;
7494 if test x"$enable_gdbcli" = xyes; then
7495 if test -d $srcdir/cli; then
7496 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7497 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7498 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7499 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7500 fi
7501 fi
7502
7503 # Enable MI.
7504 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7505 if test "${enable_gdbmi+set}" = set; then
7506 enableval="$enable_gdbmi"
7507 case $enableval in
7508 yes | no)
7509 ;;
7510 *)
7511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7512 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7513 { (exit 1); exit 1; }; } ;;
7514 esac
7515 else
7516 enable_gdbmi=yes
7517 fi;
7518 if test x"$enable_gdbmi" = xyes; then
7519 if test -d $srcdir/mi; then
7520 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7521 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7522 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7523 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7524 fi
7525 fi
7526
7527 # Enable TUI.
7528 # Check whether --enable-tui or --disable-tui was given.
7529 if test "${enable_tui+set}" = set; then
7530 enableval="$enable_tui"
7531 case $enableval in
7532 yes | no)
7533 ;;
7534 *)
7535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7536 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7537 { (exit 1); exit 1; }; } ;;
7538 esac
7539 else
7540 enable_tui=yes
7541 fi;
7542
7543 # Enable gdbtk.
7544 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7545 if test "${enable_gdbtk+set}" = set; then
7546 enableval="$enable_gdbtk"
7547 case $enableval in
7548 yes | no)
7549 ;;
7550 *)
7551 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7552 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7553 { (exit 1); exit 1; }; } ;;
7554 esac
7555 else
7556 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7557 enable_gdbtk=yes
7558 else
7559 enable_gdbtk=no
7560 fi
7561 fi;
7562 # We unconditionally disable gdbtk tests on selected platforms.
7563 case $host_os in
7564 go32* | windows*)
7565 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7566 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7567 enable_gdbtk=no ;;
7568 esac
7569
7570 # Libunwind support.
7571
7572 # Check whether --with-libunwind or --without-libunwind was given.
7573 if test "${with_libunwind+set}" = set; then
7574 withval="$with_libunwind"
7575 case "${withval}" in
7576 yes) enable_libunwind=yes ;;
7577 no) enable_libunwind=no ;;
7578 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7579 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7580 { (exit 1); exit 1; }; } ;;
7581 esac
7582 else
7583
7584
7585 for ac_header in libunwind.h
7586 do
7587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 fi
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596 else
7597 # Is the header compilable?
7598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7607 #include <$ac_header>
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7611 (eval $ac_compile) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest.$ac_objext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_header_compiler=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 ac_header_compiler=no
7637 fi
7638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640 echo "${ECHO_T}$ac_header_compiler" >&6
7641
7642 # Is the header present?
7643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 #include <$ac_header>
7652 _ACEOF
7653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null; then
7661 if test -s conftest.err; then
7662 ac_cpp_err=$ac_c_preproc_warn_flag
7663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 else
7665 ac_cpp_err=
7666 fi
7667 else
7668 ac_cpp_err=yes
7669 fi
7670 if test -z "$ac_cpp_err"; then
7671 ac_header_preproc=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_header_preproc=no
7677 fi
7678 rm -f conftest.err conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680 echo "${ECHO_T}$ac_header_preproc" >&6
7681
7682 # So? What about this header?
7683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7690 ;;
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7704 (
7705 cat <<\_ASBOX
7706 ## ------------------------------------------ ##
7707 ## Report this to the AC_PACKAGE_NAME lists. ##
7708 ## ------------------------------------------ ##
7709 _ASBOX
7710 ) |
7711 sed "s/^/$as_me: WARNING: /" >&2
7712 ;;
7713 esac
7714 echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 eval "$as_ac_Header=\$ac_header_preproc"
7720 fi
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723
7724 fi
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 _ACEOF
7729
7730 fi
7731
7732 done
7733
7734
7735 for ac_header in libunwind-ia64.h
7736 do
7737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739 echo "$as_me:$LINENO: checking for $ac_header" >&5
7740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 fi
7744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746 else
7747 # Is the header compilable?
7748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #include <$ac_header>
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_header_compiler=yes
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_header_compiler=no
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7790 echo "${ECHO_T}$ac_header_compiler" >&6
7791
7792 # Is the header present?
7793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 #include <$ac_header>
7802 _ACEOF
7803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev/null; then
7811 if test -s conftest.err; then
7812 ac_cpp_err=$ac_c_preproc_warn_flag
7813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7814 else
7815 ac_cpp_err=
7816 fi
7817 else
7818 ac_cpp_err=yes
7819 fi
7820 if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_header_preproc=no
7827 fi
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832 # So? What about this header?
7833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7834 yes:no: )
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7839 ac_header_preproc=yes
7840 ;;
7841 no:yes:* )
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7854 (
7855 cat <<\_ASBOX
7856 ## ------------------------------------------ ##
7857 ## Report this to the AC_PACKAGE_NAME lists. ##
7858 ## ------------------------------------------ ##
7859 _ASBOX
7860 ) |
7861 sed "s/^/$as_me: WARNING: /" >&2
7862 ;;
7863 esac
7864 echo "$as_me:$LINENO: checking for $ac_header" >&5
7865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 eval "$as_ac_Header=\$ac_header_preproc"
7870 fi
7871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7873
7874 fi
7875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7876 cat >>confdefs.h <<_ACEOF
7877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878 _ACEOF
7879
7880 fi
7881
7882 done
7883
7884 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7885 enable_libunwind=yes;
7886 fi
7887
7888 fi;
7889
7890 if test x"$enable_libunwind" = xyes; then
7891
7892 for ac_header in libunwind.h
7893 do
7894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 fi
7901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7903 else
7904 # Is the header compilable?
7905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 $ac_includes_default
7914 #include <$ac_header>
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
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); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_header_compiler=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 ac_header_compiler=no
7944 fi
7945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947 echo "${ECHO_T}$ac_header_compiler" >&6
7948
7949 # Is the header present?
7950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h. */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 #include <$ac_header>
7959 _ACEOF
7960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } >/dev/null; then
7968 if test -s conftest.err; then
7969 ac_cpp_err=$ac_c_preproc_warn_flag
7970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7971 else
7972 ac_cpp_err=
7973 fi
7974 else
7975 ac_cpp_err=yes
7976 fi
7977 if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ac_header_preproc=no
7984 fi
7985 rm -f conftest.err conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6
7988
7989 # So? What about this header?
7990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7991 yes:no: )
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7996 ac_header_preproc=yes
7997 ;;
7998 no:yes:* )
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8011 (
8012 cat <<\_ASBOX
8013 ## ------------------------------------------ ##
8014 ## Report this to the AC_PACKAGE_NAME lists. ##
8015 ## ------------------------------------------ ##
8016 _ASBOX
8017 ) |
8018 sed "s/^/$as_me: WARNING: /" >&2
8019 ;;
8020 esac
8021 echo "$as_me:$LINENO: checking for $ac_header" >&5
8022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026 eval "$as_ac_Header=\$ac_header_preproc"
8027 fi
8028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8030
8031 fi
8032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 _ACEOF
8036
8037 fi
8038
8039 done
8040
8041
8042 for ac_header in libunwind-ia64.h
8043 do
8044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046 echo "$as_me:$LINENO: checking for $ac_header" >&5
8047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 fi
8051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8053 else
8054 # Is the header compilable?
8055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_includes_default
8064 #include <$ac_header>
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_header_compiler=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 ac_header_compiler=no
8094 fi
8095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8097 echo "${ECHO_T}$ac_header_compiler" >&6
8098
8099 # Is the header present?
8100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 #include <$ac_header>
8109 _ACEOF
8110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8121 else
8122 ac_cpp_err=
8123 fi
8124 else
8125 ac_cpp_err=yes
8126 fi
8127 if test -z "$ac_cpp_err"; then
8128 ac_header_preproc=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_header_preproc=no
8134 fi
8135 rm -f conftest.err conftest.$ac_ext
8136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8137 echo "${ECHO_T}$ac_header_preproc" >&6
8138
8139 # So? What about this header?
8140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8141 yes:no: )
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8146 ac_header_preproc=yes
8147 ;;
8148 no:yes:* )
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8161 (
8162 cat <<\_ASBOX
8163 ## ------------------------------------------ ##
8164 ## Report this to the AC_PACKAGE_NAME lists. ##
8165 ## ------------------------------------------ ##
8166 _ASBOX
8167 ) |
8168 sed "s/^/$as_me: WARNING: /" >&2
8169 ;;
8170 esac
8171 echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 eval "$as_ac_Header=\$ac_header_preproc"
8177 fi
8178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8180
8181 fi
8182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185 _ACEOF
8186
8187 fi
8188
8189 done
8190
8191
8192 cat >>confdefs.h <<\_ACEOF
8193 #define HAVE_LIBUNWIND 1
8194 _ACEOF
8195
8196 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8197 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8198 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8199 fi
8200
8201 # Profiling support.
8202 # Check whether --enable-profiling or --disable-profiling was given.
8203 if test "${enable_profiling+set}" = set; then
8204 enableval="$enable_profiling"
8205 case $enableval in
8206 yes | no)
8207 ;;
8208 *)
8209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8210 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8211 { (exit 1); exit 1; }; } ;;
8212 esac
8213 else
8214 enable_profiling=no
8215 fi;
8216
8217
8218
8219 for ac_func in monstartup _mcleanup
8220 do
8221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222 echo "$as_me:$LINENO: checking for $ac_func" >&5
8223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8224 if eval "test \"\${$as_ac_var+set}\" = set"; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8235 #define $ac_func innocuous_$ac_func
8236
8237 /* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below.
8239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 <limits.h> exists even on freestanding compilers. */
8241
8242 #ifdef __STDC__
8243 # include <limits.h>
8244 #else
8245 # include <assert.h>
8246 #endif
8247
8248 #undef $ac_func
8249
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 #ifdef __cplusplus
8252 extern "C"
8253 {
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char $ac_func ();
8258 /* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 choke me
8263 #else
8264 char (*f) () = $ac_func;
8265 #endif
8266 #ifdef __cplusplus
8267 }
8268 #endif
8269
8270 int
8271 main ()
8272 {
8273 return f != $ac_func;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 eval "$as_ac_var=yes"
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 eval "$as_ac_var=no"
8306 fi
8307 rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 fi
8310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8312 if test `eval echo '${'$as_ac_var'}'` = yes; then
8313 cat >>confdefs.h <<_ACEOF
8314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8315 _ACEOF
8316
8317 fi
8318 done
8319
8320 echo "$as_me:$LINENO: checking for _etext" >&5
8321 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8322 if test "${ac_cv_var__etext+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 #include <stdlib.h>
8332 extern char _etext;
8333
8334 int
8335 main ()
8336 {
8337 free (&_etext);
8338 ;
8339 return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_var__etext=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_var__etext=no
8370 fi
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 fi
8374 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8375 echo "${ECHO_T}$ac_cv_var__etext" >&6
8376 if test $ac_cv_var__etext = yes; then
8377
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE__ETEXT 1
8380 _ACEOF
8381
8382 fi
8383 echo "$as_me:$LINENO: checking for etext" >&5
8384 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8385 if test "${ac_cv_var_etext+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 #include <stdlib.h>
8395 extern char etext;
8396
8397 int
8398 main ()
8399 {
8400 free (&etext);
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_var_etext=yes
8428 else
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_var_etext=no
8433 fi
8434 rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8438 echo "${ECHO_T}$ac_cv_var_etext" >&6
8439 if test $ac_cv_var_etext = yes; then
8440
8441 cat >>confdefs.h <<\_ACEOF
8442 #define HAVE_ETEXT 1
8443 _ACEOF
8444
8445 fi
8446 if test "$enable_profiling" = yes ; then
8447 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8448 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8449 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8450 { (exit 1); exit 1; }; }
8451 fi
8452 PROFILE_CFLAGS=-pg
8453 OLD_CFLAGS="$CFLAGS"
8454 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8455
8456 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8457 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8458 if test "${ac_cv_cc_supports_pg+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467
8468 int
8469 main ()
8470 {
8471 int x;
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_cc_supports_pg=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_cc_supports_pg=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8508 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8509
8510 if test $ac_cv_cc_supports_pg = no; then
8511 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8512 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8513 { (exit 1); exit 1; }; }
8514 fi
8515
8516 CFLAGS="$OLD_CFLAGS"
8517 fi
8518
8519 # --------------------- #
8520 # Checks for programs. #
8521 # --------------------- #
8522
8523 for ac_prog in gawk mawk nawk awk
8524 do
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529 if test "${ac_cv_prog_AWK+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 if test -n "$AWK"; then
8533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_AWK="$ac_prog"
8543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548
8549 fi
8550 fi
8551 AWK=$ac_cv_prog_AWK
8552 if test -n "$AWK"; then
8553 echo "$as_me:$LINENO: result: $AWK" >&5
8554 echo "${ECHO_T}$AWK" >&6
8555 else
8556 echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6
8558 fi
8559
8560 test -n "$AWK" && break
8561 done
8562
8563 # Find a good install program. We prefer a C program (faster),
8564 # so one script is as good as another. But avoid the broken or
8565 # incompatible versions:
8566 # SysV /etc/install, /usr/sbin/install
8567 # SunOS /usr/etc/install
8568 # IRIX /sbin/install
8569 # AIX /bin/install
8570 # AmigaOS /C/install, which installs bootblocks on floppy discs
8571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8574 # OS/2's system install, which has a completely different semantic
8575 # ./install, which can be erroneously created by make from ./install.sh.
8576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8578 if test -z "$INSTALL"; then
8579 if test "${ac_cv_path_install+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 # Account for people who put trailing slashes in PATH elements.
8588 case $as_dir/ in
8589 ./ | .// | /cC/* | \
8590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8592 /usr/ucb/* ) ;;
8593 *)
8594 # OSF1 and SCO ODT 3.0 have their own names for install.
8595 # Don't use installbsd from OSF since it installs stuff as root
8596 # by default.
8597 for ac_prog in ginstall scoinst install; do
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8600 if test $ac_prog = install &&
8601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8602 # AIX install. It has an incompatible calling convention.
8603 :
8604 elif test $ac_prog = install &&
8605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8606 # program-specific install script used by HP pwplus--don't use.
8607 :
8608 else
8609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8610 break 3
8611 fi
8612 fi
8613 done
8614 done
8615 ;;
8616 esac
8617 done
8618
8619
8620 fi
8621 if test "${ac_cv_path_install+set}" = set; then
8622 INSTALL=$ac_cv_path_install
8623 else
8624 # As a last resort, use the slow shell script. We don't cache a
8625 # path for INSTALL within a source directory, because that will
8626 # break other packages using the cache if that directory is
8627 # removed, or if the path is relative.
8628 INSTALL=$ac_install_sh
8629 fi
8630 fi
8631 echo "$as_me:$LINENO: result: $INSTALL" >&5
8632 echo "${ECHO_T}$INSTALL" >&6
8633
8634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8635 # It thinks the first close brace ends the variable substitution.
8636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8637
8638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8639
8640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8641
8642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8644 LN_S=$as_ln_s
8645 if test "$LN_S" = "ln -s"; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647 echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8650 echo "${ECHO_T}no, using $LN_S" >&6
8651 fi
8652
8653 if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8656 echo "$as_me:$LINENO: checking for $ac_word" >&5
8657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658 if test "${ac_cv_prog_RANLIB+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661 if test -n "$RANLIB"; then
8662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675 done
8676 done
8677
8678 fi
8679 fi
8680 RANLIB=$ac_cv_prog_RANLIB
8681 if test -n "$RANLIB"; then
8682 echo "$as_me:$LINENO: result: $RANLIB" >&5
8683 echo "${ECHO_T}$RANLIB" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687 fi
8688
8689 fi
8690 if test -z "$ac_cv_prog_RANLIB"; then
8691 ac_ct_RANLIB=$RANLIB
8692 # Extract the first word of "ranlib", so it can be a program name with args.
8693 set dummy ranlib; ac_word=$2
8694 echo "$as_me:$LINENO: checking for $ac_word" >&5
8695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 if test -n "$ac_ct_RANLIB"; then
8700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_ac_ct_RANLIB="ranlib"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715
8716 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8717 fi
8718 fi
8719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8720 if test -n "$ac_ct_RANLIB"; then
8721 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8722 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726 fi
8727
8728 RANLIB=$ac_ct_RANLIB
8729 else
8730 RANLIB="$ac_cv_prog_RANLIB"
8731 fi
8732
8733 for ac_prog in 'bison -y' byacc
8734 do
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736 set dummy $ac_prog; ac_word=$2
8737 echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739 if test "${ac_cv_prog_YACC+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 if test -n "$YACC"; then
8743 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_YACC="$ac_prog"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758
8759 fi
8760 fi
8761 YACC=$ac_cv_prog_YACC
8762 if test -n "$YACC"; then
8763 echo "$as_me:$LINENO: result: $YACC" >&5
8764 echo "${ECHO_T}$YACC" >&6
8765 else
8766 echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6
8768 fi
8769
8770 test -n "$YACC" && break
8771 done
8772 test -n "$YACC" || YACC="yacc"
8773
8774
8775 if test -n "$ac_tool_prefix"; then
8776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8777 set dummy ${ac_tool_prefix}ar; ac_word=$2
8778 echo "$as_me:$LINENO: checking for $ac_word" >&5
8779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780 if test "${ac_cv_prog_AR+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 if test -n "$AR"; then
8784 ac_cv_prog_AR="$AR" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8788 do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_AR="${ac_tool_prefix}ar"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797 done
8798 done
8799
8800 fi
8801 fi
8802 AR=$ac_cv_prog_AR
8803 if test -n "$AR"; then
8804 echo "$as_me:$LINENO: result: $AR" >&5
8805 echo "${ECHO_T}$AR" >&6
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 fi
8810
8811 fi
8812 if test -z "$ac_cv_prog_AR"; then
8813 ac_ct_AR=$AR
8814 # Extract the first word of "ar", so it can be a program name with args.
8815 set dummy ar; ac_word=$2
8816 echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 if test -n "$ac_ct_AR"; then
8822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_AR="ar"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837
8838 fi
8839 fi
8840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8841 if test -n "$ac_ct_AR"; then
8842 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8843 echo "${ECHO_T}$ac_ct_AR" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8847 fi
8848
8849 AR=$ac_ct_AR
8850 else
8851 AR="$ac_cv_prog_AR"
8852 fi
8853
8854 if test -n "$ac_tool_prefix"; then
8855 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8856 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8857 echo "$as_me:$LINENO: checking for $ac_word" >&5
8858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8859 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 if test -n "$DLLTOOL"; then
8863 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8864 else
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876 done
8877 done
8878
8879 fi
8880 fi
8881 DLLTOOL=$ac_cv_prog_DLLTOOL
8882 if test -n "$DLLTOOL"; then
8883 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8884 echo "${ECHO_T}$DLLTOOL" >&6
8885 else
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8888 fi
8889
8890 fi
8891 if test -z "$ac_cv_prog_DLLTOOL"; then
8892 ac_ct_DLLTOOL=$DLLTOOL
8893 # Extract the first word of "dlltool", so it can be a program name with args.
8894 set dummy dlltool; ac_word=$2
8895 echo "$as_me:$LINENO: checking for $ac_word" >&5
8896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900 if test -n "$ac_ct_DLLTOOL"; then
8901 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914 done
8915 done
8916
8917 fi
8918 fi
8919 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8920 if test -n "$ac_ct_DLLTOOL"; then
8921 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8922 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8923 else
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 fi
8927
8928 DLLTOOL=$ac_ct_DLLTOOL
8929 else
8930 DLLTOOL="$ac_cv_prog_DLLTOOL"
8931 fi
8932
8933 if test -n "$ac_tool_prefix"; then
8934 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8935 set dummy ${ac_tool_prefix}windres; ac_word=$2
8936 echo "$as_me:$LINENO: checking for $ac_word" >&5
8937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8938 if test "${ac_cv_prog_WINDRES+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 if test -n "$WINDRES"; then
8942 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955 done
8956 done
8957
8958 fi
8959 fi
8960 WINDRES=$ac_cv_prog_WINDRES
8961 if test -n "$WINDRES"; then
8962 echo "$as_me:$LINENO: result: $WINDRES" >&5
8963 echo "${ECHO_T}$WINDRES" >&6
8964 else
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8967 fi
8968
8969 fi
8970 if test -z "$ac_cv_prog_WINDRES"; then
8971 ac_ct_WINDRES=$WINDRES
8972 # Extract the first word of "windres", so it can be a program name with args.
8973 set dummy windres; ac_word=$2
8974 echo "$as_me:$LINENO: checking for $ac_word" >&5
8975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 if test -n "$ac_ct_WINDRES"; then
8980 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8981 else
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8984 do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_ac_ct_WINDRES="windres"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993 done
8994 done
8995
8996 fi
8997 fi
8998 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8999 if test -n "$ac_ct_WINDRES"; then
9000 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9001 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9002 else
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9005 fi
9006
9007 WINDRES=$ac_ct_WINDRES
9008 else
9009 WINDRES="$ac_cv_prog_WINDRES"
9010 fi
9011
9012
9013 # Needed for GNU/Hurd.
9014 if test -n "$ac_tool_prefix"; then
9015 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9016 set dummy ${ac_tool_prefix}mig; ac_word=$2
9017 echo "$as_me:$LINENO: checking for $ac_word" >&5
9018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019 if test "${ac_cv_prog_MIG+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 if test -n "$MIG"; then
9023 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036 done
9037 done
9038
9039 fi
9040 fi
9041 MIG=$ac_cv_prog_MIG
9042 if test -n "$MIG"; then
9043 echo "$as_me:$LINENO: result: $MIG" >&5
9044 echo "${ECHO_T}$MIG" >&6
9045 else
9046 echo "$as_me:$LINENO: result: no" >&5
9047 echo "${ECHO_T}no" >&6
9048 fi
9049
9050 fi
9051 if test -z "$ac_cv_prog_MIG"; then
9052 ac_ct_MIG=$MIG
9053 # Extract the first word of "mig", so it can be a program name with args.
9054 set dummy mig; ac_word=$2
9055 echo "$as_me:$LINENO: checking for $ac_word" >&5
9056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9057 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 if test -n "$ac_ct_MIG"; then
9061 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9062 else
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9065 do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_ac_ct_MIG="mig"
9071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9073 fi
9074 done
9075 done
9076
9077 fi
9078 fi
9079 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9080 if test -n "$ac_ct_MIG"; then
9081 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9082 echo "${ECHO_T}$ac_ct_MIG" >&6
9083 else
9084 echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6
9086 fi
9087
9088 MIG=$ac_ct_MIG
9089 else
9090 MIG="$ac_cv_prog_MIG"
9091 fi
9092
9093
9094 # ---------------------- #
9095 # Checks for libraries. #
9096 # ---------------------- #
9097
9098 # We might need to link with -lm; most simulators need it.
9099
9100 echo "$as_me:$LINENO: checking for main in -lm" >&5
9101 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9102 if test "${ac_cv_lib_m_main+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 ac_check_lib_save_LIBS=$LIBS
9106 LIBS="-lm $LIBS"
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113
9114
9115 int
9116 main ()
9117 {
9118 main ();
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_cv_lib_m_main=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_cv_lib_m_main=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9157 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9158 if test $ac_cv_lib_m_main = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_LIBM 1
9161 _ACEOF
9162
9163 LIBS="-lm $LIBS"
9164
9165 fi
9166
9167
9168 # We need to link with -lw to get `wctype' on Solaris before Solaris
9169 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9170 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9171 # is known to have this problem). Therefore we avoid libw if we can.
9172 echo "$as_me:$LINENO: checking for wctype" >&5
9173 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9174 if test "${ac_cv_func_wctype+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9185 #define wctype innocuous_wctype
9186
9187 /* System header to define __stub macros and hopefully few prototypes,
9188 which can conflict with char wctype (); below.
9189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 <limits.h> exists even on freestanding compilers. */
9191
9192 #ifdef __STDC__
9193 # include <limits.h>
9194 #else
9195 # include <assert.h>
9196 #endif
9197
9198 #undef wctype
9199
9200 /* Override any gcc2 internal prototype to avoid an error. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 {
9204 #endif
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207 char wctype ();
9208 /* The GNU C library defines this for functions which it implements
9209 to always fail with ENOSYS. Some functions are actually named
9210 something starting with __ and the normal name is an alias. */
9211 #if defined (__stub_wctype) || defined (__stub___wctype)
9212 choke me
9213 #else
9214 char (*f) () = wctype;
9215 #endif
9216 #ifdef __cplusplus
9217 }
9218 #endif
9219
9220 int
9221 main ()
9222 {
9223 return f != wctype;
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag"
9238 || test ! -s conftest.err'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_func_wctype=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_cv_func_wctype=no
9256 fi
9257 rm -f conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi
9260 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9261 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9262 if test $ac_cv_func_wctype = yes; then
9263 :
9264 else
9265
9266 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9267 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9268 if test "${ac_cv_lib_w_wctype+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-lw $LIBS"
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279
9280 /* Override any gcc2 internal prototype to avoid an error. */
9281 #ifdef __cplusplus
9282 extern "C"
9283 #endif
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9286 char wctype ();
9287 int
9288 main ()
9289 {
9290 wctype ();
9291 ;
9292 return 0;
9293 }
9294 _ACEOF
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 ac_cv_lib_w_wctype=yes
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9321
9322 ac_cv_lib_w_wctype=no
9323 fi
9324 rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9327 fi
9328 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9329 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9330 if test $ac_cv_lib_w_wctype = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332 #define HAVE_LIBW 1
9333 _ACEOF
9334
9335 LIBS="-lw $LIBS"
9336
9337 fi
9338
9339 fi
9340
9341
9342 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9343 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9344 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9345 if test "${ac_cv_search_gethostbyname+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348 ac_func_search_save_LIBS=$LIBS
9349 ac_cv_search_gethostbyname=no
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356
9357 /* Override any gcc2 internal prototype to avoid an error. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9363 char gethostbyname ();
9364 int
9365 main ()
9366 {
9367 gethostbyname ();
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_search_gethostbyname="none required"
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 fi
9400 rm -f conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 if test "$ac_cv_search_gethostbyname" = no; then
9403 for ac_lib in nsl; do
9404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411
9412 /* Override any gcc2 internal prototype to avoid an error. */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9418 char gethostbyname ();
9419 int
9420 main ()
9421 {
9422 gethostbyname ();
9423 ;
9424 return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_search_gethostbyname="-l$ac_lib"
9450 break
9451 else
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9454
9455 fi
9456 rm -f conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
9458 done
9459 fi
9460 LIBS=$ac_func_search_save_LIBS
9461 fi
9462 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9463 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9464 if test "$ac_cv_search_gethostbyname" != no; then
9465 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9466
9467 fi
9468
9469
9470 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9471 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9472 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9473 if test "${ac_cv_search_socketpair+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 ac_func_search_save_LIBS=$LIBS
9477 ac_cv_search_socketpair=no
9478 cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484
9485 /* Override any gcc2 internal prototype to avoid an error. */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 /* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491 char socketpair ();
9492 int
9493 main ()
9494 {
9495 socketpair ();
9496 ;
9497 return 0;
9498 }
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_search_socketpair="none required"
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 fi
9528 rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530 if test "$ac_cv_search_socketpair" = no; then
9531 for ac_lib in socket; do
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h. */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539
9540 /* Override any gcc2 internal prototype to avoid an error. */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 /* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9546 char socketpair ();
9547 int
9548 main ()
9549 {
9550 socketpair ();
9551 ;
9552 return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_search_socketpair="-l$ac_lib"
9578 break
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 fi
9584 rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 done
9587 fi
9588 LIBS=$ac_func_search_save_LIBS
9589 fi
9590 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9591 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9592 if test "$ac_cv_search_socketpair" != no; then
9593 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9594
9595 fi
9596
9597
9598 # For the TUI, we need enhanced curses functionality.
9599 #
9600 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9601 # curses library because the latter might not provide all the
9602 # functionality we need. However, this leads to problems on systems
9603 # where the linker searches /usr/local/lib, but the compiler doesn't
9604 # search /usr/local/include, if ncurses is installed in /usr/local. A
9605 # default installation of ncurses on alpha*-dec-osf* will lead to such
9606 # a situation.
9607 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9608 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9609 if test "${ac_cv_search_waddstr+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 ac_func_search_save_LIBS=$LIBS
9613 ac_cv_search_waddstr=no
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620
9621 /* Override any gcc2 internal prototype to avoid an error. */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9627 char waddstr ();
9628 int
9629 main ()
9630 {
9631 waddstr ();
9632 ;
9633 return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_search_waddstr="none required"
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 fi
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 if test "$ac_cv_search_waddstr" = no; then
9667 for ac_lib in ncurses cursesX curses; do
9668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h. */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 #ifdef __cplusplus
9678 extern "C"
9679 #endif
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682 char waddstr ();
9683 int
9684 main ()
9685 {
9686 waddstr ();
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_search_waddstr="-l$ac_lib"
9714 break
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 done
9723 fi
9724 LIBS=$ac_func_search_save_LIBS
9725 fi
9726 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
9727 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
9728 if test "$ac_cv_search_waddstr" != no; then
9729 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
9730
9731 fi
9732
9733
9734 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9735 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9736 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9737 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 ac_func_search_save_LIBS=$LIBS
9741 ac_cv_search_dlgetmodinfo=no
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char dlgetmodinfo ();
9756 int
9757 main ()
9758 {
9759 dlgetmodinfo ();
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_search_dlgetmodinfo="none required"
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 fi
9792 rm -f conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 if test "$ac_cv_search_dlgetmodinfo" = no; then
9795 for ac_lib in dl xpdl; do
9796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803
9804 /* Override any gcc2 internal prototype to avoid an error. */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810 char dlgetmodinfo ();
9811 int
9812 main ()
9813 {
9814 dlgetmodinfo ();
9815 ;
9816 return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9842 break
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 done
9851 fi
9852 LIBS=$ac_func_search_save_LIBS
9853 fi
9854 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9855 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9856 if test "$ac_cv_search_dlgetmodinfo" != no; then
9857 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9858
9859 fi
9860
9861
9862 # Since GDB uses Readline, we need termcap functionality. In many
9863 # cases this will be provided by the curses library, but some systems
9864 # have a seperate termcap library, or no curses library at all.
9865
9866 case $host_os in
9867 cygwin*)
9868 if test -d $srcdir/libtermcap; then
9869 LIBS="../libtermcap/libtermcap.a $LIBS"
9870 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9871 fi ;;
9872 go32* | *djgpp*)
9873 ac_cv_search_tgetent="none required"
9874 ;;
9875 *mingw32*)
9876 ac_cv_search_tgetent="none required"
9877 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
9878 ;;
9879 esac
9880
9881 # These are the libraries checked by Readline.
9882 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9883 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
9884 if test "${ac_cv_search_tgetent+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 ac_func_search_save_LIBS=$LIBS
9888 ac_cv_search_tgetent=no
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895
9896 /* Override any gcc2 internal prototype to avoid an error. */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902 char tgetent ();
9903 int
9904 main ()
9905 {
9906 tgetent ();
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_search_tgetent="none required"
9934 else
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 fi
9939 rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 if test "$ac_cv_search_tgetent" = no; then
9942 for ac_lib in termcap tinfo curses ncurses; do
9943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950
9951 /* Override any gcc2 internal prototype to avoid an error. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957 char tgetent ();
9958 int
9959 main ()
9960 {
9961 tgetent ();
9962 ;
9963 return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_search_tgetent="-l$ac_lib"
9989 break
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 fi
9995 rm -f conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 done
9998 fi
9999 LIBS=$ac_func_search_save_LIBS
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10002 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10003 if test "$ac_cv_search_tgetent" != no; then
10004 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10005
10006 fi
10007
10008
10009 if test "$ac_cv_search_tgetent" = no; then
10010 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10011 echo "$as_me: error: no termcap library found" >&2;}
10012 { (exit 1); exit 1; }; }
10013 fi
10014
10015
10016 # Check whether --with-system-readline or --without-system-readline was given.
10017 if test "${with_system_readline+set}" = set; then
10018 withval="$with_system_readline"
10019
10020 fi;
10021
10022 if test "$with_system_readline" = yes; then
10023 READLINE=-lreadline
10024 READLINE_DEPS=
10025 READLINE_CFLAGS=
10026 else
10027 READLINE='$(READLINE_DIR)/libreadline.a'
10028 READLINE_DEPS='$(READLINE)'
10029 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10030 fi
10031
10032
10033
10034
10035
10036 # Check whether --with-expat or --without-expat was given.
10037 if test "${with_expat+set}" = set; then
10038 withval="$with_expat"
10039
10040 else
10041 with_expat=auto
10042 fi;
10043 echo "$as_me:$LINENO: checking whether to use expat" >&5
10044 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10045 echo "$as_me:$LINENO: result: $with_expat" >&5
10046 echo "${ECHO_T}$with_expat" >&6
10047
10048 if test "${with_expat}" = no; then
10049 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10050 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10051 HAVE_LIBEXPAT=no
10052 else
10053
10054 if test "X$prefix" = "XNONE"; then
10055 acl_final_prefix="$ac_default_prefix"
10056 else
10057 acl_final_prefix="$prefix"
10058 fi
10059 if test "X$exec_prefix" = "XNONE"; then
10060 acl_final_exec_prefix='${prefix}'
10061 else
10062 acl_final_exec_prefix="$exec_prefix"
10063 fi
10064 acl_save_prefix="$prefix"
10065 prefix="$acl_final_prefix"
10066 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10067 prefix="$acl_save_prefix"
10068
10069
10070 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10071 if test "${with_gnu_ld+set}" = set; then
10072 withval="$with_gnu_ld"
10073 test "$withval" = no || with_gnu_ld=yes
10074 else
10075 with_gnu_ld=no
10076 fi;
10077 # Prepare PATH_SEPARATOR.
10078 # The user is always right.
10079 if test "${PATH_SEPARATOR+set}" != set; then
10080 echo "#! /bin/sh" >conf$$.sh
10081 echo "exit 0" >>conf$$.sh
10082 chmod +x conf$$.sh
10083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10084 PATH_SEPARATOR=';'
10085 else
10086 PATH_SEPARATOR=:
10087 fi
10088 rm -f conf$$.sh
10089 fi
10090 ac_prog=ld
10091 if test "$GCC" = yes; then
10092 # Check if gcc -print-prog-name=ld gives a path.
10093 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10094 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10095 case $host in
10096 *-*-mingw*)
10097 # gcc leaves a trailing carriage return which upsets mingw
10098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10099 *)
10100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10101 esac
10102 case $ac_prog in
10103 # Accept absolute paths.
10104 [\\/]* | [A-Za-z]:[\\/]*)
10105 re_direlt='/[^/][^/]*/\.\./'
10106 # Canonicalize the path of ld
10107 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10108 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10109 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10110 done
10111 test -z "$LD" && LD="$ac_prog"
10112 ;;
10113 "")
10114 # If it fails, then pretend we aren't using GCC.
10115 ac_prog=ld
10116 ;;
10117 *)
10118 # If it is relative, then search for the first ld in PATH.
10119 with_gnu_ld=unknown
10120 ;;
10121 esac
10122 elif test "$with_gnu_ld" = yes; then
10123 echo "$as_me:$LINENO: checking for GNU ld" >&5
10124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10125 else
10126 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10128 fi
10129 if test "${acl_cv_path_LD+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 if test -z "$LD"; then
10133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10134 for ac_dir in $PATH; do
10135 test -z "$ac_dir" && ac_dir=.
10136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10137 acl_cv_path_LD="$ac_dir/$ac_prog"
10138 # Check to see if the program is GNU ld. I'd rather use --version,
10139 # but apparently some GNU ld's only accept -v.
10140 # Break only if it was the GNU/non-GNU ld that we prefer.
10141 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10142 test "$with_gnu_ld" != no && break
10143 else
10144 test "$with_gnu_ld" != yes && break
10145 fi
10146 fi
10147 done
10148 IFS="$ac_save_ifs"
10149 else
10150 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10151 fi
10152 fi
10153
10154 LD="$acl_cv_path_LD"
10155 if test -n "$LD"; then
10156 echo "$as_me:$LINENO: result: $LD" >&5
10157 echo "${ECHO_T}$LD" >&6
10158 else
10159 echo "$as_me:$LINENO: result: no" >&5
10160 echo "${ECHO_T}no" >&6
10161 fi
10162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10164 { (exit 1); exit 1; }; }
10165 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10167 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10171 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10172 acl_cv_prog_gnu_ld=yes
10173 else
10174 acl_cv_prog_gnu_ld=no
10175 fi
10176 fi
10177 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10178 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10179 with_gnu_ld=$acl_cv_prog_gnu_ld
10180
10181
10182
10183 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10184 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10185 if test "${acl_cv_rpath+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188
10189 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10190 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10191 . ./conftest.sh
10192 rm -f ./conftest.sh
10193 acl_cv_rpath=done
10194
10195 fi
10196 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10197 echo "${ECHO_T}$acl_cv_rpath" >&6
10198 wl="$acl_cv_wl"
10199 libext="$acl_cv_libext"
10200 shlibext="$acl_cv_shlibext"
10201 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10202 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10203 hardcode_direct="$acl_cv_hardcode_direct"
10204 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10205 # Check whether --enable-rpath or --disable-rpath was given.
10206 if test "${enable_rpath+set}" = set; then
10207 enableval="$enable_rpath"
10208 :
10209 else
10210 enable_rpath=yes
10211 fi;
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 use_additional=yes
10222
10223 acl_save_prefix="$prefix"
10224 prefix="$acl_final_prefix"
10225 acl_save_exec_prefix="$exec_prefix"
10226 exec_prefix="$acl_final_exec_prefix"
10227
10228 eval additional_includedir=\"$includedir\"
10229 eval additional_libdir=\"$libdir\"
10230
10231 exec_prefix="$acl_save_exec_prefix"
10232 prefix="$acl_save_prefix"
10233
10234
10235 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10236 if test "${with_libexpat_prefix+set}" = set; then
10237 withval="$with_libexpat_prefix"
10238
10239 if test "X$withval" = "Xno"; then
10240 use_additional=no
10241 else
10242 if test "X$withval" = "X"; then
10243
10244 acl_save_prefix="$prefix"
10245 prefix="$acl_final_prefix"
10246 acl_save_exec_prefix="$exec_prefix"
10247 exec_prefix="$acl_final_exec_prefix"
10248
10249 eval additional_includedir=\"$includedir\"
10250 eval additional_libdir=\"$libdir\"
10251
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10254
10255 else
10256 additional_includedir="$withval/include"
10257 additional_libdir="$withval/lib"
10258 fi
10259 fi
10260
10261 fi;
10262 LIBEXPAT=
10263 LTLIBEXPAT=
10264 INCEXPAT=
10265 rpathdirs=
10266 ltrpathdirs=
10267 names_already_handled=
10268 names_next_round='expat '
10269 while test -n "$names_next_round"; do
10270 names_this_round="$names_next_round"
10271 names_next_round=
10272 for name in $names_this_round; do
10273 already_handled=
10274 for n in $names_already_handled; do
10275 if test "$n" = "$name"; then
10276 already_handled=yes
10277 break
10278 fi
10279 done
10280 if test -z "$already_handled"; then
10281 names_already_handled="$names_already_handled $name"
10282 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10283 eval value=\"\$HAVE_LIB$uppername\"
10284 if test -n "$value"; then
10285 if test "$value" = yes; then
10286 eval value=\"\$LIB$uppername\"
10287 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10288 eval value=\"\$LTLIB$uppername\"
10289 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10290 else
10291 :
10292 fi
10293 else
10294 found_dir=
10295 found_la=
10296 found_so=
10297 found_a=
10298 if test $use_additional = yes; then
10299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10300 found_dir="$additional_libdir"
10301 found_so="$additional_libdir/lib$name.$shlibext"
10302 if test -f "$additional_libdir/lib$name.la"; then
10303 found_la="$additional_libdir/lib$name.la"
10304 fi
10305 else
10306 if test -f "$additional_libdir/lib$name.$libext"; then
10307 found_dir="$additional_libdir"
10308 found_a="$additional_libdir/lib$name.$libext"
10309 if test -f "$additional_libdir/lib$name.la"; then
10310 found_la="$additional_libdir/lib$name.la"
10311 fi
10312 fi
10313 fi
10314 fi
10315 if test "X$found_dir" = "X"; then
10316 for x in $LDFLAGS $LTLIBEXPAT; do
10317
10318 acl_save_prefix="$prefix"
10319 prefix="$acl_final_prefix"
10320 acl_save_exec_prefix="$exec_prefix"
10321 exec_prefix="$acl_final_exec_prefix"
10322 eval x=\"$x\"
10323 exec_prefix="$acl_save_exec_prefix"
10324 prefix="$acl_save_prefix"
10325
10326 case "$x" in
10327 -L*)
10328 dir=`echo "X$x" | sed -e 's/^X-L//'`
10329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10330 found_dir="$dir"
10331 found_so="$dir/lib$name.$shlibext"
10332 if test -f "$dir/lib$name.la"; then
10333 found_la="$dir/lib$name.la"
10334 fi
10335 else
10336 if test -f "$dir/lib$name.$libext"; then
10337 found_dir="$dir"
10338 found_a="$dir/lib$name.$libext"
10339 if test -f "$dir/lib$name.la"; then
10340 found_la="$dir/lib$name.la"
10341 fi
10342 fi
10343 fi
10344 ;;
10345 esac
10346 if test "X$found_dir" != "X"; then
10347 break
10348 fi
10349 done
10350 fi
10351 if test "X$found_dir" != "X"; then
10352 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10353 if test "X$found_so" != "X"; then
10354 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10355 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10356 else
10357 haveit=
10358 for x in $ltrpathdirs; do
10359 if test "X$x" = "X$found_dir"; then
10360 haveit=yes
10361 break
10362 fi
10363 done
10364 if test -z "$haveit"; then
10365 ltrpathdirs="$ltrpathdirs $found_dir"
10366 fi
10367 if test "$hardcode_direct" = yes; then
10368 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10369 else
10370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10371 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10372 haveit=
10373 for x in $rpathdirs; do
10374 if test "X$x" = "X$found_dir"; then
10375 haveit=yes
10376 break
10377 fi
10378 done
10379 if test -z "$haveit"; then
10380 rpathdirs="$rpathdirs $found_dir"
10381 fi
10382 else
10383 haveit=
10384 for x in $LDFLAGS $LIBEXPAT; do
10385
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10393
10394 if test "X$x" = "X-L$found_dir"; then
10395 haveit=yes
10396 break
10397 fi
10398 done
10399 if test -z "$haveit"; then
10400 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10401 fi
10402 if test "$hardcode_minus_L" != no; then
10403 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10404 else
10405 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10406 fi
10407 fi
10408 fi
10409 fi
10410 else
10411 if test "X$found_a" != "X"; then
10412 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10413 else
10414 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10415 fi
10416 fi
10417 additional_includedir=
10418 case "$found_dir" in
10419 */lib | */lib/)
10420 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10421 additional_includedir="$basedir/include"
10422 ;;
10423 esac
10424 if test "X$additional_includedir" != "X"; then
10425 if test "X$additional_includedir" != "X/usr/include"; then
10426 haveit=
10427 if test "X$additional_includedir" = "X/usr/local/include"; then
10428 if test -n "$GCC"; then
10429 case $host_os in
10430 linux*) haveit=yes;;
10431 esac
10432 fi
10433 fi
10434 if test -z "$haveit"; then
10435 for x in $CPPFLAGS $INCEXPAT; do
10436
10437 acl_save_prefix="$prefix"
10438 prefix="$acl_final_prefix"
10439 acl_save_exec_prefix="$exec_prefix"
10440 exec_prefix="$acl_final_exec_prefix"
10441 eval x=\"$x\"
10442 exec_prefix="$acl_save_exec_prefix"
10443 prefix="$acl_save_prefix"
10444
10445 if test "X$x" = "X-I$additional_includedir"; then
10446 haveit=yes
10447 break
10448 fi
10449 done
10450 if test -z "$haveit"; then
10451 if test -d "$additional_includedir"; then
10452 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10453 fi
10454 fi
10455 fi
10456 fi
10457 fi
10458 if test -n "$found_la"; then
10459 save_libdir="$libdir"
10460 case "$found_la" in
10461 */* | *\\*) . "$found_la" ;;
10462 *) . "./$found_la" ;;
10463 esac
10464 libdir="$save_libdir"
10465 for dep in $dependency_libs; do
10466 case "$dep" in
10467 -L*)
10468 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10469 if test "X$additional_libdir" != "X/usr/lib"; then
10470 haveit=
10471 if test "X$additional_libdir" = "X/usr/local/lib"; then
10472 if test -n "$GCC"; then
10473 case $host_os in
10474 linux*) haveit=yes;;
10475 esac
10476 fi
10477 fi
10478 if test -z "$haveit"; then
10479 haveit=
10480 for x in $LDFLAGS $LIBEXPAT; do
10481
10482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10486 eval x=\"$x\"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10489
10490 if test "X$x" = "X-L$additional_libdir"; then
10491 haveit=yes
10492 break
10493 fi
10494 done
10495 if test -z "$haveit"; then
10496 if test -d "$additional_libdir"; then
10497 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10498 fi
10499 fi
10500 haveit=
10501 for x in $LDFLAGS $LTLIBEXPAT; do
10502
10503 acl_save_prefix="$prefix"
10504 prefix="$acl_final_prefix"
10505 acl_save_exec_prefix="$exec_prefix"
10506 exec_prefix="$acl_final_exec_prefix"
10507 eval x=\"$x\"
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10510
10511 if test "X$x" = "X-L$additional_libdir"; then
10512 haveit=yes
10513 break
10514 fi
10515 done
10516 if test -z "$haveit"; then
10517 if test -d "$additional_libdir"; then
10518 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10519 fi
10520 fi
10521 fi
10522 fi
10523 ;;
10524 -R*)
10525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10526 if test "$enable_rpath" != no; then
10527 haveit=
10528 for x in $rpathdirs; do
10529 if test "X$x" = "X$dir"; then
10530 haveit=yes
10531 break
10532 fi
10533 done
10534 if test -z "$haveit"; then
10535 rpathdirs="$rpathdirs $dir"
10536 fi
10537 haveit=
10538 for x in $ltrpathdirs; do
10539 if test "X$x" = "X$dir"; then
10540 haveit=yes
10541 break
10542 fi
10543 done
10544 if test -z "$haveit"; then
10545 ltrpathdirs="$ltrpathdirs $dir"
10546 fi
10547 fi
10548 ;;
10549 -l*)
10550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10551 ;;
10552 *.la)
10553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10554 ;;
10555 *)
10556 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10557 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10558 ;;
10559 esac
10560 done
10561 fi
10562 else
10563 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10564 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10565 fi
10566 fi
10567 fi
10568 done
10569 done
10570 if test "X$rpathdirs" != "X"; then
10571 if test -n "$hardcode_libdir_separator"; then
10572 alldirs=
10573 for found_dir in $rpathdirs; do
10574 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10575 done
10576 acl_save_libdir="$libdir"
10577 libdir="$alldirs"
10578 eval flag=\"$hardcode_libdir_flag_spec\"
10579 libdir="$acl_save_libdir"
10580 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10581 else
10582 for found_dir in $rpathdirs; do
10583 acl_save_libdir="$libdir"
10584 libdir="$found_dir"
10585 eval flag=\"$hardcode_libdir_flag_spec\"
10586 libdir="$acl_save_libdir"
10587 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10588 done
10589 fi
10590 fi
10591 if test "X$ltrpathdirs" != "X"; then
10592 for found_dir in $ltrpathdirs; do
10593 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10594 done
10595 fi
10596
10597
10598 ac_save_CPPFLAGS="$CPPFLAGS"
10599
10600 for element in $INCEXPAT; do
10601 haveit=
10602 for x in $CPPFLAGS; do
10603
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10608 eval x=\"$x\"
10609 exec_prefix="$acl_save_exec_prefix"
10610 prefix="$acl_save_prefix"
10611
10612 if test "X$x" = "X$element"; then
10613 haveit=yes
10614 break
10615 fi
10616 done
10617 if test -z "$haveit"; then
10618 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10619 fi
10620 done
10621
10622
10623 echo "$as_me:$LINENO: checking for libexpat" >&5
10624 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10625 if test "${ac_cv_libexpat+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628
10629 ac_save_LIBS="$LIBS"
10630 LIBS="$LIBS $LIBEXPAT"
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h. */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637 #include "expat.h"
10638 int
10639 main ()
10640 {
10641 XML_Parser p = XML_ParserCreate (0);
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_libexpat=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_libexpat=no
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS="$ac_save_LIBS"
10678
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10681 echo "${ECHO_T}$ac_cv_libexpat" >&6
10682 if test "$ac_cv_libexpat" = yes; then
10683 HAVE_LIBEXPAT=yes
10684
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_LIBEXPAT 1
10687 _ACEOF
10688
10689 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10690 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10692 echo "${ECHO_T}$LIBEXPAT" >&6
10693 else
10694 HAVE_LIBEXPAT=no
10695 CPPFLAGS="$ac_save_CPPFLAGS"
10696 LIBEXPAT=
10697 LTLIBEXPAT=
10698 fi
10699
10700
10701
10702
10703
10704
10705 if test "$HAVE_LIBEXPAT" != yes; then
10706 if test "$with_expat" = yes; then
10707 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
10708 echo "$as_me: error: expat is missing or unusable" >&2;}
10709 { (exit 1); exit 1; }; }
10710 else
10711 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10712 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10713 fi
10714 else
10715 save_LIBS=$LIBS
10716 LIBS="$LIBS $LIBEXPAT"
10717
10718 for ac_func in XML_StopParser
10719 do
10720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10721 echo "$as_me:$LINENO: checking for $ac_func" >&5
10722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_var+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10734 #define $ac_func innocuous_$ac_func
10735
10736 /* System header to define __stub macros and hopefully few prototypes,
10737 which can conflict with char $ac_func (); below.
10738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10739 <limits.h> exists even on freestanding compilers. */
10740
10741 #ifdef __STDC__
10742 # include <limits.h>
10743 #else
10744 # include <assert.h>
10745 #endif
10746
10747 #undef $ac_func
10748
10749 /* Override any gcc2 internal prototype to avoid an error. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 {
10753 #endif
10754 /* We use char because int might match the return type of a gcc2
10755 builtin and then its argument prototype would still apply. */
10756 char $ac_func ();
10757 /* The GNU C library defines this for functions which it implements
10758 to always fail with ENOSYS. Some functions are actually named
10759 something starting with __ and the normal name is an alias. */
10760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10761 choke me
10762 #else
10763 char (*f) () = $ac_func;
10764 #endif
10765 #ifdef __cplusplus
10766 }
10767 #endif
10768
10769 int
10770 main ()
10771 {
10772 return f != $ac_func;
10773 ;
10774 return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10779 (eval $ac_link) 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag"
10787 || test ! -s conftest.err'
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); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 eval "$as_ac_var=yes"
10800 else
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 eval "$as_ac_var=no"
10805 fi
10806 rm -f conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 fi
10809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10811 if test `eval echo '${'$as_ac_var'}'` = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817 done
10818
10819 LIBS=$save_LIBS
10820 fi
10821 fi
10822
10823 # ------------------------- #
10824 # Checks for header files. #
10825 # ------------------------- #
10826
10827
10828
10829
10830
10831
10832 ac_header_dirent=no
10833 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10834 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10835 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10836 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #include <sys/types.h>
10847 #include <$ac_hdr>
10848
10849 int
10850 main ()
10851 {
10852 if ((DIR *) 0)
10853 return 0;
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860 (eval $ac_compile) 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag"
10868 || test ! -s conftest.err'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 eval "$as_ac_Header=yes"
10881 else
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 eval "$as_ac_Header=no"
10886 fi
10887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894 _ACEOF
10895
10896 ac_header_dirent=$ac_hdr; break
10897 fi
10898
10899 done
10900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901 if test $ac_header_dirent = dirent.h; then
10902 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10903 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10904 if test "${ac_cv_search_opendir+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 ac_func_search_save_LIBS=$LIBS
10908 ac_cv_search_opendir=no
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 #ifdef __cplusplus
10918 extern "C"
10919 #endif
10920 /* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10922 char opendir ();
10923 int
10924 main ()
10925 {
10926 opendir ();
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10933 (eval $ac_link) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag"
10941 || test ! -s conftest.err'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest$ac_exeext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_cv_search_opendir="none required"
10954 else
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958 fi
10959 rm -f conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 if test "$ac_cv_search_opendir" = no; then
10962 for ac_lib in dir; do
10963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970
10971 /* Override any gcc2 internal prototype to avoid an error. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char opendir ();
10978 int
10979 main ()
10980 {
10981 opendir ();
10982 ;
10983 return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_search_opendir="-l$ac_lib"
11009 break
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 fi
11015 rm -f conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 done
11018 fi
11019 LIBS=$ac_func_search_save_LIBS
11020 fi
11021 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11022 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11023 if test "$ac_cv_search_opendir" != no; then
11024 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11025
11026 fi
11027
11028 else
11029 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11030 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11031 if test "${ac_cv_search_opendir+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 ac_func_search_save_LIBS=$LIBS
11035 ac_cv_search_opendir=no
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char opendir ();
11050 int
11051 main ()
11052 {
11053 opendir ();
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag"
11068 || test ! -s conftest.err'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest$ac_exeext'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_search_opendir="none required"
11081 else
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 fi
11086 rm -f conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 if test "$ac_cv_search_opendir" = no; then
11089 for ac_lib in x; do
11090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097
11098 /* Override any gcc2 internal prototype to avoid an error. */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char opendir ();
11105 int
11106 main ()
11107 {
11108 opendir ();
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_search_opendir="-l$ac_lib"
11136 break
11137 else
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 fi
11142 rm -f conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 done
11145 fi
11146 LIBS=$ac_func_search_save_LIBS
11147 fi
11148 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11149 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11150 if test "$ac_cv_search_opendir" != no; then
11151 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11152
11153 fi
11154
11155 fi
11156
11157 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11158 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11159 if test "${ac_cv_header_stat_broken+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <sys/types.h>
11169 #include <sys/stat.h>
11170
11171 #if defined(S_ISBLK) && defined(S_IFDIR)
11172 # if S_ISBLK (S_IFDIR)
11173 You lose.
11174 # endif
11175 #endif
11176
11177 #if defined(S_ISBLK) && defined(S_IFCHR)
11178 # if S_ISBLK (S_IFCHR)
11179 You lose.
11180 # endif
11181 #endif
11182
11183 #if defined(S_ISLNK) && defined(S_IFREG)
11184 # if S_ISLNK (S_IFREG)
11185 You lose.
11186 # endif
11187 #endif
11188
11189 #if defined(S_ISSOCK) && defined(S_IFREG)
11190 # if S_ISSOCK (S_IFREG)
11191 You lose.
11192 # endif
11193 #endif
11194
11195 _ACEOF
11196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197 $EGREP "You lose" >/dev/null 2>&1; then
11198 ac_cv_header_stat_broken=yes
11199 else
11200 ac_cv_header_stat_broken=no
11201 fi
11202 rm -f conftest*
11203
11204 fi
11205 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11206 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11207 if test $ac_cv_header_stat_broken = yes; then
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define STAT_MACROS_BROKEN 1
11211 _ACEOF
11212
11213 fi
11214
11215 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11217 if test "${ac_cv_header_stdc+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 #include <stdlib.h>
11227 #include <stdarg.h>
11228 #include <string.h>
11229 #include <float.h>
11230
11231 int
11232 main ()
11233 {
11234
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_header_stdc=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 ac_cv_header_stdc=no
11267 fi
11268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269
11270 if test $ac_cv_header_stdc = yes; then
11271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 #include <string.h>
11279
11280 _ACEOF
11281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11282 $EGREP "memchr" >/dev/null 2>&1; then
11283 :
11284 else
11285 ac_cv_header_stdc=no
11286 fi
11287 rm -f conftest*
11288
11289 fi
11290
11291 if test $ac_cv_header_stdc = yes; then
11292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <stdlib.h>
11300
11301 _ACEOF
11302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11303 $EGREP "free" >/dev/null 2>&1; then
11304 :
11305 else
11306 ac_cv_header_stdc=no
11307 fi
11308 rm -f conftest*
11309
11310 fi
11311
11312 if test $ac_cv_header_stdc = yes; then
11313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11314 if test "$cross_compiling" = yes; then
11315 :
11316 else
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <ctype.h>
11324 #if ((' ' & 0x0FF) == 0x020)
11325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11327 #else
11328 # define ISLOWER(c) \
11329 (('a' <= (c) && (c) <= 'i') \
11330 || ('j' <= (c) && (c) <= 'r') \
11331 || ('s' <= (c) && (c) <= 'z'))
11332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11333 #endif
11334
11335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11336 int
11337 main ()
11338 {
11339 int i;
11340 for (i = 0; i < 256; i++)
11341 if (XOR (islower (i), ISLOWER (i))
11342 || toupper (i) != TOUPPER (i))
11343 exit(2);
11344 exit (0);
11345 }
11346 _ACEOF
11347 rm -f conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 :
11359 else
11360 echo "$as_me: program exited with status $ac_status" >&5
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ( exit $ac_status )
11365 ac_cv_header_stdc=no
11366 fi
11367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 fi
11370 fi
11371 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11372 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11373 if test $ac_cv_header_stdc = yes; then
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define STDC_HEADERS 1
11377 _ACEOF
11378
11379 fi
11380
11381
11382 for ac_header in nlist.h
11383 do
11384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386 echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 fi
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11393 else
11394 # Is the header compilable?
11395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h. */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 $ac_includes_default
11404 #include <$ac_header>
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_header_compiler=yes
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_compiler=no
11434 fi
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11437 echo "${ECHO_T}$ac_header_compiler" >&6
11438
11439 # Is the header present?
11440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 #include <$ac_header>
11449 _ACEOF
11450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null; then
11458 if test -s conftest.err; then
11459 ac_cpp_err=$ac_c_preproc_warn_flag
11460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11461 else
11462 ac_cpp_err=
11463 fi
11464 else
11465 ac_cpp_err=yes
11466 fi
11467 if test -z "$ac_cpp_err"; then
11468 ac_header_preproc=yes
11469 else
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_header_preproc=no
11474 fi
11475 rm -f conftest.err conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477 echo "${ECHO_T}$ac_header_preproc" >&6
11478
11479 # So? What about this header?
11480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481 yes:no: )
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486 ac_header_preproc=yes
11487 ;;
11488 no:yes:* )
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11501 (
11502 cat <<\_ASBOX
11503 ## ------------------------------------------ ##
11504 ## Report this to the AC_PACKAGE_NAME lists. ##
11505 ## ------------------------------------------ ##
11506 _ASBOX
11507 ) |
11508 sed "s/^/$as_me: WARNING: /" >&2
11509 ;;
11510 esac
11511 echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 eval "$as_ac_Header=\$ac_header_preproc"
11517 fi
11518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11520
11521 fi
11522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528
11529 done
11530
11531
11532 for ac_header in link.h
11533 do
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 echo "$as_me:$LINENO: checking for $ac_header" >&5
11536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #if HAVE_SYS_TYPES_H
11547 # include <sys/types.h>
11548 #endif
11549 #if HAVE_NLIST_H
11550 # include <nlist.h>
11551 #endif
11552
11553
11554 #include <$ac_header>
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "$as_ac_Header=yes"
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 eval "$as_ac_Header=no"
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 fi
11587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 _ACEOF
11593
11594 fi
11595
11596 done
11597
11598
11599 for ac_header in machine/reg.h
11600 do
11601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11603 echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 fi
11608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11610 else
11611 # Is the header compilable?
11612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 $ac_includes_default
11621 #include <$ac_header>
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 ac_header_compiler=yes
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 ac_header_compiler=no
11651 fi
11652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11654 echo "${ECHO_T}$ac_header_compiler" >&6
11655
11656 # Is the header present?
11657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 #include <$ac_header>
11666 _ACEOF
11667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_c_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11678 else
11679 ac_cpp_err=
11680 fi
11681 else
11682 ac_cpp_err=yes
11683 fi
11684 if test -z "$ac_cpp_err"; then
11685 ac_header_preproc=yes
11686 else
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 ac_header_preproc=no
11691 fi
11692 rm -f conftest.err conftest.$ac_ext
11693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11694 echo "${ECHO_T}$ac_header_preproc" >&6
11695
11696 # So? What about this header?
11697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11698 yes:no: )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11703 ac_header_preproc=yes
11704 ;;
11705 no:yes:* )
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11718 (
11719 cat <<\_ASBOX
11720 ## ------------------------------------------ ##
11721 ## Report this to the AC_PACKAGE_NAME lists. ##
11722 ## ------------------------------------------ ##
11723 _ASBOX
11724 ) |
11725 sed "s/^/$as_me: WARNING: /" >&2
11726 ;;
11727 esac
11728 echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 eval "$as_ac_Header=\$ac_header_preproc"
11734 fi
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737
11738 fi
11739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742 _ACEOF
11743
11744 fi
11745
11746 done
11747
11748
11749
11750 for ac_header in poll.h sys/poll.h
11751 do
11752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11754 echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 fi
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761 else
11762 # Is the header compilable?
11763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11772 #include <$ac_header>
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest.$ac_objext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_header_compiler=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_header_compiler=no
11802 fi
11803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11805 echo "${ECHO_T}$ac_header_compiler" >&6
11806
11807 # Is the header present?
11808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <$ac_header>
11817 _ACEOF
11818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } >/dev/null; then
11826 if test -s conftest.err; then
11827 ac_cpp_err=$ac_c_preproc_warn_flag
11828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11829 else
11830 ac_cpp_err=
11831 fi
11832 else
11833 ac_cpp_err=yes
11834 fi
11835 if test -z "$ac_cpp_err"; then
11836 ac_header_preproc=yes
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 ac_header_preproc=no
11842 fi
11843 rm -f conftest.err conftest.$ac_ext
11844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6
11846
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11855 ;;
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869 (
11870 cat <<\_ASBOX
11871 ## ------------------------------------------ ##
11872 ## Report this to the AC_PACKAGE_NAME lists. ##
11873 ## ------------------------------------------ ##
11874 _ASBOX
11875 ) |
11876 sed "s/^/$as_me: WARNING: /" >&2
11877 ;;
11878 esac
11879 echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 eval "$as_ac_Header=\$ac_header_preproc"
11885 fi
11886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11888
11889 fi
11890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893 _ACEOF
11894
11895 fi
11896
11897 done
11898
11899
11900
11901
11902 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
11903 do
11904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo "$as_me:$LINENO: checking for $ac_header" >&5
11907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 fi
11911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11913 else
11914 # Is the header compilable?
11915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11924 #include <$ac_header>
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928 (eval $ac_compile) 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_header_compiler=yes
11949 else
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_header_compiler=no
11954 fi
11955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11957 echo "${ECHO_T}$ac_header_compiler" >&6
11958
11959 # Is the header present?
11960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 #include <$ac_header>
11969 _ACEOF
11970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } >/dev/null; then
11978 if test -s conftest.err; then
11979 ac_cpp_err=$ac_c_preproc_warn_flag
11980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11981 else
11982 ac_cpp_err=
11983 fi
11984 else
11985 ac_cpp_err=yes
11986 fi
11987 if test -z "$ac_cpp_err"; then
11988 ac_header_preproc=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 ac_header_preproc=no
11994 fi
11995 rm -f conftest.err conftest.$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997 echo "${ECHO_T}$ac_header_preproc" >&6
11998
11999 # So? What about this header?
12000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12001 yes:no: )
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc=yes
12007 ;;
12008 no:yes:* )
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12021 (
12022 cat <<\_ASBOX
12023 ## ------------------------------------------ ##
12024 ## Report this to the AC_PACKAGE_NAME lists. ##
12025 ## ------------------------------------------ ##
12026 _ASBOX
12027 ) |
12028 sed "s/^/$as_me: WARNING: /" >&2
12029 ;;
12030 esac
12031 echo "$as_me:$LINENO: checking for $ac_header" >&5
12032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 eval "$as_ac_Header=\$ac_header_preproc"
12037 fi
12038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12040
12041 fi
12042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12045 _ACEOF
12046
12047 fi
12048
12049 done
12050
12051
12052 for ac_header in signal.h
12053 do
12054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 fi
12061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12063 else
12064 # Is the header compilable?
12065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 $ac_includes_default
12074 #include <$ac_header>
12075 _ACEOF
12076 rm -f conftest.$ac_objext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_header_compiler=yes
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_header_compiler=no
12104 fi
12105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12107 echo "${ECHO_T}$ac_header_compiler" >&6
12108
12109 # Is the header present?
12110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <$ac_header>
12119 _ACEOF
12120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } >/dev/null; then
12128 if test -s conftest.err; then
12129 ac_cpp_err=$ac_c_preproc_warn_flag
12130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12131 else
12132 ac_cpp_err=
12133 fi
12134 else
12135 ac_cpp_err=yes
12136 fi
12137 if test -z "$ac_cpp_err"; then
12138 ac_header_preproc=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 ac_header_preproc=no
12144 fi
12145 rm -f conftest.err conftest.$ac_ext
12146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12147 echo "${ECHO_T}$ac_header_preproc" >&6
12148
12149 # So? What about this header?
12150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12151 yes:no: )
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12156 ac_header_preproc=yes
12157 ;;
12158 no:yes:* )
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12171 (
12172 cat <<\_ASBOX
12173 ## ------------------------------------------ ##
12174 ## Report this to the AC_PACKAGE_NAME lists. ##
12175 ## ------------------------------------------ ##
12176 _ASBOX
12177 ) |
12178 sed "s/^/$as_me: WARNING: /" >&2
12179 ;;
12180 esac
12181 echo "$as_me:$LINENO: checking for $ac_header" >&5
12182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 eval "$as_ac_Header=\$ac_header_preproc"
12187 fi
12188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12190
12191 fi
12192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12195 _ACEOF
12196
12197 fi
12198
12199 done
12200
12201
12202 for ac_header in stddef.h
12203 do
12204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12206 echo "$as_me:$LINENO: checking for $ac_header" >&5
12207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 fi
12211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12213 else
12214 # Is the header compilable?
12215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h. */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12224 #include <$ac_header>
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_header_compiler=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_header_compiler=no
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12257 echo "${ECHO_T}$ac_header_compiler" >&6
12258
12259 # Is the header present?
12260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 #include <$ac_header>
12269 _ACEOF
12270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } >/dev/null; then
12278 if test -s conftest.err; then
12279 ac_cpp_err=$ac_c_preproc_warn_flag
12280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12281 else
12282 ac_cpp_err=
12283 fi
12284 else
12285 ac_cpp_err=yes
12286 fi
12287 if test -z "$ac_cpp_err"; then
12288 ac_header_preproc=yes
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 ac_header_preproc=no
12294 fi
12295 rm -f conftest.err conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297 echo "${ECHO_T}$ac_header_preproc" >&6
12298
12299 # So? What about this header?
12300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12307 ;;
12308 no:yes:* )
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12321 (
12322 cat <<\_ASBOX
12323 ## ------------------------------------------ ##
12324 ## Report this to the AC_PACKAGE_NAME lists. ##
12325 ## ------------------------------------------ ##
12326 _ASBOX
12327 ) |
12328 sed "s/^/$as_me: WARNING: /" >&2
12329 ;;
12330 esac
12331 echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 eval "$as_ac_Header=\$ac_header_preproc"
12337 fi
12338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340
12341 fi
12342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12343 cat >>confdefs.h <<_ACEOF
12344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345 _ACEOF
12346
12347 fi
12348
12349 done
12350
12351
12352 for ac_header in stdlib.h
12353 do
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 fi
12361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363 else
12364 # Is the header compilable?
12365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12374 #include <$ac_header>
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_header_compiler=no
12404 fi
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12407 echo "${ECHO_T}$ac_header_compiler" >&6
12408
12409 # Is the header present?
12410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 #include <$ac_header>
12419 _ACEOF
12420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431 else
12432 ac_cpp_err=
12433 fi
12434 else
12435 ac_cpp_err=yes
12436 fi
12437 if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_header_preproc=no
12444 fi
12445 rm -f conftest.err conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12447 echo "${ECHO_T}$ac_header_preproc" >&6
12448
12449 # So? What about this header?
12450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12451 yes:no: )
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12456 ac_header_preproc=yes
12457 ;;
12458 no:yes:* )
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12471 (
12472 cat <<\_ASBOX
12473 ## ------------------------------------------ ##
12474 ## Report this to the AC_PACKAGE_NAME lists. ##
12475 ## ------------------------------------------ ##
12476 _ASBOX
12477 ) |
12478 sed "s/^/$as_me: WARNING: /" >&2
12479 ;;
12480 esac
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 eval "$as_ac_Header=\$ac_header_preproc"
12487 fi
12488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490
12491 fi
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495 _ACEOF
12496
12497 fi
12498
12499 done
12500
12501
12502 for ac_header in stdint.h
12503 do
12504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12506 echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 fi
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12513 else
12514 # Is the header compilable?
12515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 /* confdefs.h. */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 $ac_includes_default
12524 #include <$ac_header>
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -z "$ac_c_werror_flag"
12536 || test ! -s conftest.err'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest.$ac_objext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_header_compiler=yes
12549 else
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_header_compiler=no
12554 fi
12555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557 echo "${ECHO_T}$ac_header_compiler" >&6
12558
12559 # Is the header present?
12560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <$ac_header>
12569 _ACEOF
12570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } >/dev/null; then
12578 if test -s conftest.err; then
12579 ac_cpp_err=$ac_c_preproc_warn_flag
12580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12581 else
12582 ac_cpp_err=
12583 fi
12584 else
12585 ac_cpp_err=yes
12586 fi
12587 if test -z "$ac_cpp_err"; then
12588 ac_header_preproc=yes
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_header_preproc=no
12594 fi
12595 rm -f conftest.err conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12597 echo "${ECHO_T}$ac_header_preproc" >&6
12598
12599 # So? What about this header?
12600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12601 yes:no: )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12606 ac_header_preproc=yes
12607 ;;
12608 no:yes:* )
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12621 (
12622 cat <<\_ASBOX
12623 ## ------------------------------------------ ##
12624 ## Report this to the AC_PACKAGE_NAME lists. ##
12625 ## ------------------------------------------ ##
12626 _ASBOX
12627 ) |
12628 sed "s/^/$as_me: WARNING: /" >&2
12629 ;;
12630 esac
12631 echo "$as_me:$LINENO: checking for $ac_header" >&5
12632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636 eval "$as_ac_Header=\$ac_header_preproc"
12637 fi
12638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12640
12641 fi
12642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12643 cat >>confdefs.h <<_ACEOF
12644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 _ACEOF
12646
12647 fi
12648
12649 done
12650
12651
12652
12653
12654 for ac_header in string.h memory.h strings.h
12655 do
12656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12658 echo "$as_me:$LINENO: checking for $ac_header" >&5
12659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 fi
12663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12665 else
12666 # Is the header compilable?
12667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 #include <$ac_header>
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 ac_header_compiler=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 ac_header_compiler=no
12706 fi
12707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709 echo "${ECHO_T}$ac_header_compiler" >&6
12710
12711 # Is the header present?
12712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #include <$ac_header>
12721 _ACEOF
12722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev/null; then
12730 if test -s conftest.err; then
12731 ac_cpp_err=$ac_c_preproc_warn_flag
12732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12733 else
12734 ac_cpp_err=
12735 fi
12736 else
12737 ac_cpp_err=yes
12738 fi
12739 if test -z "$ac_cpp_err"; then
12740 ac_header_preproc=yes
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_header_preproc=no
12746 fi
12747 rm -f conftest.err conftest.$ac_ext
12748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12749 echo "${ECHO_T}$ac_header_preproc" >&6
12750
12751 # So? What about this header?
12752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12753 yes:no: )
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12758 ac_header_preproc=yes
12759 ;;
12760 no:yes:* )
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12773 (
12774 cat <<\_ASBOX
12775 ## ------------------------------------------ ##
12776 ## Report this to the AC_PACKAGE_NAME lists. ##
12777 ## ------------------------------------------ ##
12778 _ASBOX
12779 ) |
12780 sed "s/^/$as_me: WARNING: /" >&2
12781 ;;
12782 esac
12783 echo "$as_me:$LINENO: checking for $ac_header" >&5
12784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 eval "$as_ac_Header=\$ac_header_preproc"
12789 fi
12790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12792
12793 fi
12794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12795 cat >>confdefs.h <<_ACEOF
12796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12797 _ACEOF
12798
12799 fi
12800
12801 done
12802
12803
12804 for ac_header in sys/fault.h
12805 do
12806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12808 echo "$as_me:$LINENO: checking for $ac_header" >&5
12809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 fi
12813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12815 else
12816 # Is the header compilable?
12817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 $ac_includes_default
12826 #include <$ac_header>
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_header_compiler=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_header_compiler=no
12856 fi
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859 echo "${ECHO_T}$ac_header_compiler" >&6
12860
12861 # Is the header present?
12862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 #include <$ac_header>
12871 _ACEOF
12872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null; then
12880 if test -s conftest.err; then
12881 ac_cpp_err=$ac_c_preproc_warn_flag
12882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12883 else
12884 ac_cpp_err=
12885 fi
12886 else
12887 ac_cpp_err=yes
12888 fi
12889 if test -z "$ac_cpp_err"; then
12890 ac_header_preproc=yes
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_header_preproc=no
12896 fi
12897 rm -f conftest.err conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899 echo "${ECHO_T}$ac_header_preproc" >&6
12900
12901 # So? What about this header?
12902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12903 yes:no: )
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12908 ac_header_preproc=yes
12909 ;;
12910 no:yes:* )
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12923 (
12924 cat <<\_ASBOX
12925 ## ------------------------------------------ ##
12926 ## Report this to the AC_PACKAGE_NAME lists. ##
12927 ## ------------------------------------------ ##
12928 _ASBOX
12929 ) |
12930 sed "s/^/$as_me: WARNING: /" >&2
12931 ;;
12932 esac
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 eval "$as_ac_Header=\$ac_header_preproc"
12939 fi
12940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942
12943 fi
12944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947 _ACEOF
12948
12949 fi
12950
12951 done
12952
12953
12954 for ac_header in sys/file.h
12955 do
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 fi
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965 else
12966 # Is the header compilable?
12967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 $ac_includes_default
12976 #include <$ac_header>
12977 _ACEOF
12978 rm -f conftest.$ac_objext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_header_compiler=yes
13001 else
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005 ac_header_compiler=no
13006 fi
13007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13009 echo "${ECHO_T}$ac_header_compiler" >&6
13010
13011 # Is the header present?
13012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13014 cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h. */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 #include <$ac_header>
13021 _ACEOF
13022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null; then
13030 if test -s conftest.err; then
13031 ac_cpp_err=$ac_c_preproc_warn_flag
13032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13033 else
13034 ac_cpp_err=
13035 fi
13036 else
13037 ac_cpp_err=yes
13038 fi
13039 if test -z "$ac_cpp_err"; then
13040 ac_header_preproc=yes
13041 else
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ac_header_preproc=no
13046 fi
13047 rm -f conftest.err conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13049 echo "${ECHO_T}$ac_header_preproc" >&6
13050
13051 # So? What about this header?
13052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13053 yes:no: )
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13058 ac_header_preproc=yes
13059 ;;
13060 no:yes:* )
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13073 (
13074 cat <<\_ASBOX
13075 ## ------------------------------------------ ##
13076 ## Report this to the AC_PACKAGE_NAME lists. ##
13077 ## ------------------------------------------ ##
13078 _ASBOX
13079 ) |
13080 sed "s/^/$as_me: WARNING: /" >&2
13081 ;;
13082 esac
13083 echo "$as_me:$LINENO: checking for $ac_header" >&5
13084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 eval "$as_ac_Header=\$ac_header_preproc"
13089 fi
13090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092
13093 fi
13094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13095 cat >>confdefs.h <<_ACEOF
13096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13097 _ACEOF
13098
13099 fi
13100
13101 done
13102
13103
13104 for ac_header in sys/filio.h
13105 do
13106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13108 echo "$as_me:$LINENO: checking for $ac_header" >&5
13109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 fi
13113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13115 else
13116 # Is the header compilable?
13117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 $ac_includes_default
13126 #include <$ac_header>
13127 _ACEOF
13128 rm -f conftest.$ac_objext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130 (eval $ac_compile) 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag"
13138 || test ! -s conftest.err'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_header_compiler=yes
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_header_compiler=no
13156 fi
13157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159 echo "${ECHO_T}$ac_header_compiler" >&6
13160
13161 # Is the header present?
13162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 #include <$ac_header>
13171 _ACEOF
13172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null; then
13180 if test -s conftest.err; then
13181 ac_cpp_err=$ac_c_preproc_warn_flag
13182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13183 else
13184 ac_cpp_err=
13185 fi
13186 else
13187 ac_cpp_err=yes
13188 fi
13189 if test -z "$ac_cpp_err"; then
13190 ac_header_preproc=yes
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 ac_header_preproc=no
13196 fi
13197 rm -f conftest.err conftest.$ac_ext
13198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13199 echo "${ECHO_T}$ac_header_preproc" >&6
13200
13201 # So? What about this header?
13202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13203 yes:no: )
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13208 ac_header_preproc=yes
13209 ;;
13210 no:yes:* )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13223 (
13224 cat <<\_ASBOX
13225 ## ------------------------------------------ ##
13226 ## Report this to the AC_PACKAGE_NAME lists. ##
13227 ## ------------------------------------------ ##
13228 _ASBOX
13229 ) |
13230 sed "s/^/$as_me: WARNING: /" >&2
13231 ;;
13232 esac
13233 echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238 eval "$as_ac_Header=\$ac_header_preproc"
13239 fi
13240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13242
13243 fi
13244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13245 cat >>confdefs.h <<_ACEOF
13246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 _ACEOF
13248
13249 fi
13250
13251 done
13252
13253
13254 for ac_header in sys/ioctl.h
13255 do
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 fi
13263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13265 else
13266 # Is the header compilable?
13267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13269 cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h. */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 $ac_includes_default
13276 #include <$ac_header>
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_header_compiler=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ac_header_compiler=no
13306 fi
13307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13309 echo "${ECHO_T}$ac_header_compiler" >&6
13310
13311 # Is the header present?
13312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 #include <$ac_header>
13321 _ACEOF
13322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13324 ac_status=$?
13325 grep -v '^ *+' conftest.er1 >conftest.err
13326 rm -f conftest.er1
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } >/dev/null; then
13330 if test -s conftest.err; then
13331 ac_cpp_err=$ac_c_preproc_warn_flag
13332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13333 else
13334 ac_cpp_err=
13335 fi
13336 else
13337 ac_cpp_err=yes
13338 fi
13339 if test -z "$ac_cpp_err"; then
13340 ac_header_preproc=yes
13341 else
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_header_preproc=no
13346 fi
13347 rm -f conftest.err conftest.$ac_ext
13348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13349 echo "${ECHO_T}$ac_header_preproc" >&6
13350
13351 # So? What about this header?
13352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13353 yes:no: )
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13358 ac_header_preproc=yes
13359 ;;
13360 no:yes:* )
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13373 (
13374 cat <<\_ASBOX
13375 ## ------------------------------------------ ##
13376 ## Report this to the AC_PACKAGE_NAME lists. ##
13377 ## ------------------------------------------ ##
13378 _ASBOX
13379 ) |
13380 sed "s/^/$as_me: WARNING: /" >&2
13381 ;;
13382 esac
13383 echo "$as_me:$LINENO: checking for $ac_header" >&5
13384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388 eval "$as_ac_Header=\$ac_header_preproc"
13389 fi
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13392
13393 fi
13394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13395 cat >>confdefs.h <<_ACEOF
13396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397 _ACEOF
13398
13399 fi
13400
13401 done
13402
13403
13404 for ac_header in sys/param.h
13405 do
13406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13408 echo "$as_me:$LINENO: checking for $ac_header" >&5
13409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 fi
13413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13415 else
13416 # Is the header compilable?
13417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13419 cat >conftest.$ac_ext <<_ACEOF
13420 /* confdefs.h. */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13425 $ac_includes_default
13426 #include <$ac_header>
13427 _ACEOF
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_header_compiler=yes
13451 else
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ac_header_compiler=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13459 echo "${ECHO_T}$ac_header_compiler" >&6
13460
13461 # Is the header present?
13462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h. */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 #include <$ac_header>
13471 _ACEOF
13472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 else
13484 ac_cpp_err=
13485 fi
13486 else
13487 ac_cpp_err=yes
13488 fi
13489 if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496 fi
13497 rm -f conftest.err conftest.$ac_ext
13498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499 echo "${ECHO_T}$ac_header_preproc" >&6
13500
13501 # So? What about this header?
13502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 yes:no: )
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
13509 ;;
13510 no:yes:* )
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13523 (
13524 cat <<\_ASBOX
13525 ## ------------------------------------------ ##
13526 ## Report this to the AC_PACKAGE_NAME lists. ##
13527 ## ------------------------------------------ ##
13528 _ASBOX
13529 ) |
13530 sed "s/^/$as_me: WARNING: /" >&2
13531 ;;
13532 esac
13533 echo "$as_me:$LINENO: checking for $ac_header" >&5
13534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 eval "$as_ac_Header=\$ac_header_preproc"
13539 fi
13540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13542
13543 fi
13544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547 _ACEOF
13548
13549 fi
13550
13551 done
13552
13553
13554 for ac_header in sys/resource.h
13555 do
13556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13558 echo "$as_me:$LINENO: checking for $ac_header" >&5
13559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 fi
13563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13565 else
13566 # Is the header compilable?
13567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 $ac_includes_default
13576 #include <$ac_header>
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_header_compiler=no
13606 fi
13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609 echo "${ECHO_T}$ac_header_compiler" >&6
13610
13611 # Is the header present?
13612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <$ac_header>
13621 _ACEOF
13622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null; then
13630 if test -s conftest.err; then
13631 ac_cpp_err=$ac_c_preproc_warn_flag
13632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13633 else
13634 ac_cpp_err=
13635 fi
13636 else
13637 ac_cpp_err=yes
13638 fi
13639 if test -z "$ac_cpp_err"; then
13640 ac_header_preproc=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_header_preproc=no
13646 fi
13647 rm -f conftest.err conftest.$ac_ext
13648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649 echo "${ECHO_T}$ac_header_preproc" >&6
13650
13651 # So? What about this header?
13652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13659 ;;
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13673 (
13674 cat <<\_ASBOX
13675 ## ------------------------------------------ ##
13676 ## Report this to the AC_PACKAGE_NAME lists. ##
13677 ## ------------------------------------------ ##
13678 _ASBOX
13679 ) |
13680 sed "s/^/$as_me: WARNING: /" >&2
13681 ;;
13682 esac
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 eval "$as_ac_Header=\$ac_header_preproc"
13689 fi
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13692
13693 fi
13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697 _ACEOF
13698
13699 fi
13700
13701 done
13702
13703
13704 for ac_header in sys/proc.h
13705 do
13706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #if HAVE_SYS_PARAM_H
13719 # include <sys/param.h>
13720 #endif
13721
13722
13723 #include <$ac_header>
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 eval "$as_ac_Header=yes"
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 eval "$as_ac_Header=no"
13753 fi
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13759 cat >>confdefs.h <<_ACEOF
13760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13761 _ACEOF
13762
13763 fi
13764
13765 done
13766
13767
13768 for ac_header in sys/procfs.h
13769 do
13770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13772 echo "$as_me:$LINENO: checking for $ac_header" >&5
13773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 fi
13777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13779 else
13780 # Is the header compilable?
13781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13790 #include <$ac_header>
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_header_compiler=yes
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_header_compiler=no
13820 fi
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13823 echo "${ECHO_T}$ac_header_compiler" >&6
13824
13825 # Is the header present?
13826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 #include <$ac_header>
13835 _ACEOF
13836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } >/dev/null; then
13844 if test -s conftest.err; then
13845 ac_cpp_err=$ac_c_preproc_warn_flag
13846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13847 else
13848 ac_cpp_err=
13849 fi
13850 else
13851 ac_cpp_err=yes
13852 fi
13853 if test -z "$ac_cpp_err"; then
13854 ac_header_preproc=yes
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_header_preproc=no
13860 fi
13861 rm -f conftest.err conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13863 echo "${ECHO_T}$ac_header_preproc" >&6
13864
13865 # So? What about this header?
13866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13867 yes:no: )
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13872 ac_header_preproc=yes
13873 ;;
13874 no:yes:* )
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13887 (
13888 cat <<\_ASBOX
13889 ## ------------------------------------------ ##
13890 ## Report this to the AC_PACKAGE_NAME lists. ##
13891 ## ------------------------------------------ ##
13892 _ASBOX
13893 ) |
13894 sed "s/^/$as_me: WARNING: /" >&2
13895 ;;
13896 esac
13897 echo "$as_me:$LINENO: checking for $ac_header" >&5
13898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 eval "$as_ac_Header=\$ac_header_preproc"
13903 fi
13904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13906
13907 fi
13908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13911 _ACEOF
13912
13913 fi
13914
13915 done
13916
13917
13918
13919 for ac_header in sys/ptrace.h ptrace.h
13920 do
13921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 fi
13928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13930 else
13931 # Is the header compilable?
13932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 $ac_includes_default
13941 #include <$ac_header>
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag"
13953 || test ! -s conftest.err'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest.$ac_objext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_header_compiler=yes
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_header_compiler=no
13971 fi
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6
13975
13976 # Is the header present?
13977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <$ac_header>
13986 _ACEOF
13987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null; then
13995 if test -s conftest.err; then
13996 ac_cpp_err=$ac_c_preproc_warn_flag
13997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13998 else
13999 ac_cpp_err=
14000 fi
14001 else
14002 ac_cpp_err=yes
14003 fi
14004 if test -z "$ac_cpp_err"; then
14005 ac_header_preproc=yes
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 ac_header_preproc=no
14011 fi
14012 rm -f conftest.err conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 echo "${ECHO_T}$ac_header_preproc" >&6
14015
14016 # So? What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 yes:no: )
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14024 ;;
14025 no:yes:* )
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14038 (
14039 cat <<\_ASBOX
14040 ## ------------------------------------------ ##
14041 ## Report this to the AC_PACKAGE_NAME lists. ##
14042 ## ------------------------------------------ ##
14043 _ASBOX
14044 ) |
14045 sed "s/^/$as_me: WARNING: /" >&2
14046 ;;
14047 esac
14048 echo "$as_me:$LINENO: checking for $ac_header" >&5
14049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053 eval "$as_ac_Header=\$ac_header_preproc"
14054 fi
14055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14057
14058 fi
14059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14062 _ACEOF
14063
14064 fi
14065
14066 done
14067
14068
14069
14070 for ac_header in sys/reg.h sys/debugreg.h
14071 do
14072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo "$as_me:$LINENO: checking for $ac_header" >&5
14075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 fi
14079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14081 else
14082 # Is the header compilable?
14083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 $ac_includes_default
14092 #include <$ac_header>
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_header_compiler=yes
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121 ac_header_compiler=no
14122 fi
14123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14125 echo "${ECHO_T}$ac_header_compiler" >&6
14126
14127 # Is the header present?
14128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h. */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 #include <$ac_header>
14137 _ACEOF
14138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } >/dev/null; then
14146 if test -s conftest.err; then
14147 ac_cpp_err=$ac_c_preproc_warn_flag
14148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14149 else
14150 ac_cpp_err=
14151 fi
14152 else
14153 ac_cpp_err=yes
14154 fi
14155 if test -z "$ac_cpp_err"; then
14156 ac_header_preproc=yes
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_header_preproc=no
14162 fi
14163 rm -f conftest.err conftest.$ac_ext
14164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14165 echo "${ECHO_T}$ac_header_preproc" >&6
14166
14167 # So? What about this header?
14168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14169 yes:no: )
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14174 ac_header_preproc=yes
14175 ;;
14176 no:yes:* )
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14189 (
14190 cat <<\_ASBOX
14191 ## ------------------------------------------ ##
14192 ## Report this to the AC_PACKAGE_NAME lists. ##
14193 ## ------------------------------------------ ##
14194 _ASBOX
14195 ) |
14196 sed "s/^/$as_me: WARNING: /" >&2
14197 ;;
14198 esac
14199 echo "$as_me:$LINENO: checking for $ac_header" >&5
14200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 eval "$as_ac_Header=\$ac_header_preproc"
14205 fi
14206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14208
14209 fi
14210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14213 _ACEOF
14214
14215 fi
14216
14217 done
14218
14219
14220 for ac_header in sys/select.h
14221 do
14222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 fi
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14231 else
14232 # Is the header compilable?
14233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 $ac_includes_default
14242 #include <$ac_header>
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_header_compiler=yes
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_header_compiler=no
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14275 echo "${ECHO_T}$ac_header_compiler" >&6
14276
14277 # Is the header present?
14278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <$ac_header>
14287 _ACEOF
14288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } >/dev/null; then
14296 if test -s conftest.err; then
14297 ac_cpp_err=$ac_c_preproc_warn_flag
14298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14299 else
14300 ac_cpp_err=
14301 fi
14302 else
14303 ac_cpp_err=yes
14304 fi
14305 if test -z "$ac_cpp_err"; then
14306 ac_header_preproc=yes
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_header_preproc=no
14312 fi
14313 rm -f conftest.err conftest.$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315 echo "${ECHO_T}$ac_header_preproc" >&6
14316
14317 # So? What about this header?
14318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 yes:no: )
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324 ac_header_preproc=yes
14325 ;;
14326 no:yes:* )
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14339 (
14340 cat <<\_ASBOX
14341 ## ------------------------------------------ ##
14342 ## Report this to the AC_PACKAGE_NAME lists. ##
14343 ## ------------------------------------------ ##
14344 _ASBOX
14345 ) |
14346 sed "s/^/$as_me: WARNING: /" >&2
14347 ;;
14348 esac
14349 echo "$as_me:$LINENO: checking for $ac_header" >&5
14350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354 eval "$as_ac_Header=\$ac_header_preproc"
14355 fi
14356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14358
14359 fi
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 _ACEOF
14364
14365 fi
14366
14367 done
14368
14369
14370 for ac_header in sys/syscall.h
14371 do
14372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14374 echo "$as_me:$LINENO: checking for $ac_header" >&5
14375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 fi
14379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14381 else
14382 # Is the header compilable?
14383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h. */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 $ac_includes_default
14392 #include <$ac_header>
14393 _ACEOF
14394 rm -f conftest.$ac_objext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396 (eval $ac_compile) 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_header_compiler=yes
14417 else
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_header_compiler=no
14422 fi
14423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425 echo "${ECHO_T}$ac_header_compiler" >&6
14426
14427 # Is the header present?
14428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <$ac_header>
14437 _ACEOF
14438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } >/dev/null; then
14446 if test -s conftest.err; then
14447 ac_cpp_err=$ac_c_preproc_warn_flag
14448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14449 else
14450 ac_cpp_err=
14451 fi
14452 else
14453 ac_cpp_err=yes
14454 fi
14455 if test -z "$ac_cpp_err"; then
14456 ac_header_preproc=yes
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_header_preproc=no
14462 fi
14463 rm -f conftest.err conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465 echo "${ECHO_T}$ac_header_preproc" >&6
14466
14467 # So? What about this header?
14468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 yes:no: )
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14474 ac_header_preproc=yes
14475 ;;
14476 no:yes:* )
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14489 (
14490 cat <<\_ASBOX
14491 ## ------------------------------------------ ##
14492 ## Report this to the AC_PACKAGE_NAME lists. ##
14493 ## ------------------------------------------ ##
14494 _ASBOX
14495 ) |
14496 sed "s/^/$as_me: WARNING: /" >&2
14497 ;;
14498 esac
14499 echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504 eval "$as_ac_Header=\$ac_header_preproc"
14505 fi
14506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14508
14509 fi
14510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14511 cat >>confdefs.h <<_ACEOF
14512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14513 _ACEOF
14514
14515 fi
14516
14517 done
14518
14519
14520 for ac_header in sys/types.h
14521 do
14522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14524 echo "$as_me:$LINENO: checking for $ac_header" >&5
14525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 fi
14529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14531 else
14532 # Is the header compilable?
14533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 $ac_includes_default
14542 #include <$ac_header>
14543 _ACEOF
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_header_compiler=yes
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_header_compiler=no
14572 fi
14573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14575 echo "${ECHO_T}$ac_header_compiler" >&6
14576
14577 # Is the header present?
14578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <$ac_header>
14587 _ACEOF
14588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } >/dev/null; then
14596 if test -s conftest.err; then
14597 ac_cpp_err=$ac_c_preproc_warn_flag
14598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14599 else
14600 ac_cpp_err=
14601 fi
14602 else
14603 ac_cpp_err=yes
14604 fi
14605 if test -z "$ac_cpp_err"; then
14606 ac_header_preproc=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611 ac_header_preproc=no
14612 fi
14613 rm -f conftest.err conftest.$ac_ext
14614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14615 echo "${ECHO_T}$ac_header_preproc" >&6
14616
14617 # So? What about this header?
14618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14619 yes:no: )
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14624 ac_header_preproc=yes
14625 ;;
14626 no:yes:* )
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14639 (
14640 cat <<\_ASBOX
14641 ## ------------------------------------------ ##
14642 ## Report this to the AC_PACKAGE_NAME lists. ##
14643 ## ------------------------------------------ ##
14644 _ASBOX
14645 ) |
14646 sed "s/^/$as_me: WARNING: /" >&2
14647 ;;
14648 esac
14649 echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 eval "$as_ac_Header=\$ac_header_preproc"
14655 fi
14656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14658
14659 fi
14660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14661 cat >>confdefs.h <<_ACEOF
14662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14663 _ACEOF
14664
14665 fi
14666
14667 done
14668
14669
14670 for ac_header in sys/user.h
14671 do
14672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14673 echo "$as_me:$LINENO: checking for $ac_header" >&5
14674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #if HAVE_SYS_PARAM_H
14685 # include <sys/param.h>
14686 #endif
14687
14688
14689 #include <$ac_header>
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 eval "$as_ac_Header=yes"
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 eval "$as_ac_Header=no"
14719 fi
14720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14721 fi
14722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730
14731 done
14732
14733
14734
14735 for ac_header in sys/wait.h wait.h
14736 do
14737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14739 echo "$as_me:$LINENO: checking for $ac_header" >&5
14740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 fi
14744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14746 else
14747 # Is the header compilable?
14748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <$ac_header>
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_header_compiler=yes
14782 else
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_header_compiler=no
14787 fi
14788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14790 echo "${ECHO_T}$ac_header_compiler" >&6
14791
14792 # Is the header present?
14793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <$ac_header>
14802 _ACEOF
14803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } >/dev/null; then
14811 if test -s conftest.err; then
14812 ac_cpp_err=$ac_c_preproc_warn_flag
14813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14814 else
14815 ac_cpp_err=
14816 fi
14817 else
14818 ac_cpp_err=yes
14819 fi
14820 if test -z "$ac_cpp_err"; then
14821 ac_header_preproc=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_header_preproc=no
14827 fi
14828 rm -f conftest.err conftest.$ac_ext
14829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14830 echo "${ECHO_T}$ac_header_preproc" >&6
14831
14832 # So? What about this header?
14833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14834 yes:no: )
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14839 ac_header_preproc=yes
14840 ;;
14841 no:yes:* )
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14854 (
14855 cat <<\_ASBOX
14856 ## ------------------------------------------ ##
14857 ## Report this to the AC_PACKAGE_NAME lists. ##
14858 ## ------------------------------------------ ##
14859 _ASBOX
14860 ) |
14861 sed "s/^/$as_me: WARNING: /" >&2
14862 ;;
14863 esac
14864 echo "$as_me:$LINENO: checking for $ac_header" >&5
14865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869 eval "$as_ac_Header=\$ac_header_preproc"
14870 fi
14871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14873
14874 fi
14875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14878 _ACEOF
14879
14880 fi
14881
14882 done
14883
14884
14885
14886
14887 for ac_header in termios.h termio.h sgtty.h
14888 do
14889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo "$as_me:$LINENO: checking for $ac_header" >&5
14892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 fi
14896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14898 else
14899 # Is the header compilable?
14900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h. */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 $ac_includes_default
14909 #include <$ac_header>
14910 _ACEOF
14911 rm -f conftest.$ac_objext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913 (eval $ac_compile) 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag"
14921 || test ! -s conftest.err'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_header_compiler=yes
14934 else
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 ac_header_compiler=no
14939 fi
14940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14942 echo "${ECHO_T}$ac_header_compiler" >&6
14943
14944 # Is the header present?
14945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 #include <$ac_header>
14954 _ACEOF
14955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } >/dev/null; then
14963 if test -s conftest.err; then
14964 ac_cpp_err=$ac_c_preproc_warn_flag
14965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14966 else
14967 ac_cpp_err=
14968 fi
14969 else
14970 ac_cpp_err=yes
14971 fi
14972 if test -z "$ac_cpp_err"; then
14973 ac_header_preproc=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 ac_header_preproc=no
14979 fi
14980 rm -f conftest.err conftest.$ac_ext
14981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14982 echo "${ECHO_T}$ac_header_preproc" >&6
14983
14984 # So? What about this header?
14985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14986 yes:no: )
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14991 ac_header_preproc=yes
14992 ;;
14993 no:yes:* )
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15006 (
15007 cat <<\_ASBOX
15008 ## ------------------------------------------ ##
15009 ## Report this to the AC_PACKAGE_NAME lists. ##
15010 ## ------------------------------------------ ##
15011 _ASBOX
15012 ) |
15013 sed "s/^/$as_me: WARNING: /" >&2
15014 ;;
15015 esac
15016 echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021 eval "$as_ac_Header=\$ac_header_preproc"
15022 fi
15023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15025
15026 fi
15027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15030 _ACEOF
15031
15032 fi
15033
15034 done
15035
15036
15037 for ac_header in unistd.h
15038 do
15039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo "$as_me:$LINENO: checking for $ac_header" >&5
15042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 fi
15046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15048 else
15049 # Is the header compilable?
15050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 $ac_includes_default
15059 #include <$ac_header>
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>conftest.er1
15064 ac_status=$?
15065 grep -v '^ *+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
15070 { ac_try='test -z "$ac_c_werror_flag"
15071 || test ! -s conftest.err'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_header_compiler=yes
15084 else
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15087
15088 ac_header_compiler=no
15089 fi
15090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15092 echo "${ECHO_T}$ac_header_compiler" >&6
15093
15094 # Is the header present?
15095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <$ac_header>
15104 _ACEOF
15105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } >/dev/null; then
15113 if test -s conftest.err; then
15114 ac_cpp_err=$ac_c_preproc_warn_flag
15115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 else
15117 ac_cpp_err=
15118 fi
15119 else
15120 ac_cpp_err=yes
15121 fi
15122 if test -z "$ac_cpp_err"; then
15123 ac_header_preproc=yes
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15127
15128 ac_header_preproc=no
15129 fi
15130 rm -f conftest.err conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15132 echo "${ECHO_T}$ac_header_preproc" >&6
15133
15134 # So? What about this header?
15135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 yes:no: )
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15141 ac_header_preproc=yes
15142 ;;
15143 no:yes:* )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15156 (
15157 cat <<\_ASBOX
15158 ## ------------------------------------------ ##
15159 ## Report this to the AC_PACKAGE_NAME lists. ##
15160 ## ------------------------------------------ ##
15161 _ASBOX
15162 ) |
15163 sed "s/^/$as_me: WARNING: /" >&2
15164 ;;
15165 esac
15166 echo "$as_me:$LINENO: checking for $ac_header" >&5
15167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 eval "$as_ac_Header=\$ac_header_preproc"
15172 fi
15173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15175
15176 fi
15177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15180 _ACEOF
15181
15182 fi
15183
15184 done
15185
15186
15187 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15188 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15189 # think that we don't have <curses.h> if we're using GCC.
15190 case $host_os in
15191 solaris2.[789])
15192 if test "$GCC" = yes; then
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define _MSE_INT_H 1
15196 _ACEOF
15197
15198 fi ;;
15199 esac
15200
15201
15202
15203
15204 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15205 do
15206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15208 echo "$as_me:$LINENO: checking for $ac_header" >&5
15209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 fi
15213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15215 else
15216 # Is the header compilable?
15217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 $ac_includes_default
15226 #include <$ac_header>
15227 _ACEOF
15228 rm -f conftest.$ac_objext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_header_compiler=no
15256 fi
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259 echo "${ECHO_T}$ac_header_compiler" >&6
15260
15261 # Is the header present?
15262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h. */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <$ac_header>
15271 _ACEOF
15272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } >/dev/null; then
15280 if test -s conftest.err; then
15281 ac_cpp_err=$ac_c_preproc_warn_flag
15282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 else
15284 ac_cpp_err=
15285 fi
15286 else
15287 ac_cpp_err=yes
15288 fi
15289 if test -z "$ac_cpp_err"; then
15290 ac_header_preproc=yes
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_header_preproc=no
15296 fi
15297 rm -f conftest.err conftest.$ac_ext
15298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15299 echo "${ECHO_T}$ac_header_preproc" >&6
15300
15301 # So? What about this header?
15302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15303 yes:no: )
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15308 ac_header_preproc=yes
15309 ;;
15310 no:yes:* )
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15323 (
15324 cat <<\_ASBOX
15325 ## ------------------------------------------ ##
15326 ## Report this to the AC_PACKAGE_NAME lists. ##
15327 ## ------------------------------------------ ##
15328 _ASBOX
15329 ) |
15330 sed "s/^/$as_me: WARNING: /" >&2
15331 ;;
15332 esac
15333 echo "$as_me:$LINENO: checking for $ac_header" >&5
15334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 eval "$as_ac_Header=\$ac_header_preproc"
15339 fi
15340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15342
15343 fi
15344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347 _ACEOF
15348
15349 fi
15350
15351 done
15352
15353
15354 for ac_header in ncurses/term.h
15355 do
15356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo "$as_me:$LINENO: checking for $ac_header" >&5
15359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 fi
15363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15365 else
15366 # Is the header compilable?
15367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <$ac_header>
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_header_compiler=yes
15401 else
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405 ac_header_compiler=no
15406 fi
15407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409 echo "${ECHO_T}$ac_header_compiler" >&6
15410
15411 # Is the header present?
15412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 #include <$ac_header>
15421 _ACEOF
15422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } >/dev/null; then
15430 if test -s conftest.err; then
15431 ac_cpp_err=$ac_c_preproc_warn_flag
15432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15433 else
15434 ac_cpp_err=
15435 fi
15436 else
15437 ac_cpp_err=yes
15438 fi
15439 if test -z "$ac_cpp_err"; then
15440 ac_header_preproc=yes
15441 else
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ac_header_preproc=no
15446 fi
15447 rm -f conftest.err conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15449 echo "${ECHO_T}$ac_header_preproc" >&6
15450
15451 # So? What about this header?
15452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15453 yes:no: )
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15458 ac_header_preproc=yes
15459 ;;
15460 no:yes:* )
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15473 (
15474 cat <<\_ASBOX
15475 ## ------------------------------------------ ##
15476 ## Report this to the AC_PACKAGE_NAME lists. ##
15477 ## ------------------------------------------ ##
15478 _ASBOX
15479 ) |
15480 sed "s/^/$as_me: WARNING: /" >&2
15481 ;;
15482 esac
15483 echo "$as_me:$LINENO: checking for $ac_header" >&5
15484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488 eval "$as_ac_Header=\$ac_header_preproc"
15489 fi
15490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15492
15493 fi
15494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15497 _ACEOF
15498
15499 fi
15500
15501 done
15502
15503
15504 for ac_header in term.h
15505 do
15506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15507 echo "$as_me:$LINENO: checking for $ac_header" >&5
15508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #if HAVE_CURSES_H
15519 # include <curses.h>
15520 #endif
15521
15522
15523 #include <$ac_header>
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_Header=yes"
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552 eval "$as_ac_Header=no"
15553 fi
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 _ACEOF
15562
15563 fi
15564
15565 done
15566
15567
15568 # Check for HP/UX 64-bit shared library support
15569
15570 for ac_header in elf_hp.h
15571 do
15572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15574 echo "$as_me:$LINENO: checking for $ac_header" >&5
15575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 fi
15579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15581 else
15582 # Is the header compilable?
15583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 $ac_includes_default
15592 #include <$ac_header>
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_header_compiler=yes
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 ac_header_compiler=no
15622 fi
15623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625 echo "${ECHO_T}$ac_header_compiler" >&6
15626
15627 # Is the header present?
15628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <$ac_header>
15637 _ACEOF
15638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null; then
15646 if test -s conftest.err; then
15647 ac_cpp_err=$ac_c_preproc_warn_flag
15648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649 else
15650 ac_cpp_err=
15651 fi
15652 else
15653 ac_cpp_err=yes
15654 fi
15655 if test -z "$ac_cpp_err"; then
15656 ac_header_preproc=yes
15657 else
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661 ac_header_preproc=no
15662 fi
15663 rm -f conftest.err conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15665 echo "${ECHO_T}$ac_header_preproc" >&6
15666
15667 # So? What about this header?
15668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 yes:no: )
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15674 ac_header_preproc=yes
15675 ;;
15676 no:yes:* )
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15689 (
15690 cat <<\_ASBOX
15691 ## ------------------------------------------ ##
15692 ## Report this to the AC_PACKAGE_NAME lists. ##
15693 ## ------------------------------------------ ##
15694 _ASBOX
15695 ) |
15696 sed "s/^/$as_me: WARNING: /" >&2
15697 ;;
15698 esac
15699 echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704 eval "$as_ac_Header=\$ac_header_preproc"
15705 fi
15706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15708
15709 fi
15710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711 cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15713 _ACEOF
15714
15715 fi
15716
15717 done
15718
15719
15720 # FIXME: kettenis/20030102: In most cases we include these
15721 # unconditionally, so what's the point in checking these?
15722
15723
15724 for ac_header in ctype.h time.h
15725 do
15726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15728 echo "$as_me:$LINENO: checking for $ac_header" >&5
15729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 fi
15733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15735 else
15736 # Is the header compilable?
15737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 $ac_includes_default
15746 #include <$ac_header>
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15750 (eval $ac_compile) 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest.$ac_objext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 ac_header_compiler=yes
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 ac_header_compiler=no
15776 fi
15777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6
15780
15781 # Is the header present?
15782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15803 else
15804 ac_cpp_err=
15805 fi
15806 else
15807 ac_cpp_err=yes
15808 fi
15809 if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_header_preproc=no
15816 fi
15817 rm -f conftest.err conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819 echo "${ECHO_T}$ac_header_preproc" >&6
15820
15821 # So? What about this header?
15822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15823 yes:no: )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828 ac_header_preproc=yes
15829 ;;
15830 no:yes:* )
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15843 (
15844 cat <<\_ASBOX
15845 ## ------------------------------------------ ##
15846 ## Report this to the AC_PACKAGE_NAME lists. ##
15847 ## ------------------------------------------ ##
15848 _ASBOX
15849 ) |
15850 sed "s/^/$as_me: WARNING: /" >&2
15851 ;;
15852 esac
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 eval "$as_ac_Header=\$ac_header_preproc"
15859 fi
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15862
15863 fi
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15868
15869 fi
15870
15871 done
15872
15873
15874 # Create a header we can use portably to get the standard integer types.
15875
15876
15877 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15878
15879 acx_cv_header_stdint=stddef.h
15880 acx_cv_header_stdint_kind="(already complete)"
15881 for i in stdint.h $inttype_headers; do
15882 unset ac_cv_type_uintptr_t
15883 unset ac_cv_type_uintmax_t
15884 unset ac_cv_type_int_least32_t
15885 unset ac_cv_type_int_fast32_t
15886 unset ac_cv_type_uint64_t
15887 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
15888 echo "$as_me:$LINENO: checking for uintmax_t" >&5
15889 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
15890 if test "${ac_cv_type_uintmax_t+set}" = set; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <sys/types.h>
15900 #include <$i>
15901
15902 int
15903 main ()
15904 {
15905 if ((uintmax_t *) 0)
15906 return 0;
15907 if (sizeof (uintmax_t))
15908 return 0;
15909 ;
15910 return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_cv_type_uintmax_t=yes
15936 else
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_cv_type_uintmax_t=no
15941 fi
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
15945 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
15946 if test $ac_cv_type_uintmax_t = yes; then
15947 acx_cv_header_stdint=$i
15948 else
15949 continue
15950 fi
15951
15952 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15953 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15954 if test "${ac_cv_type_uintptr_t+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 #include <sys/types.h>
15964 #include <$i>
15965
15966 int
15967 main ()
15968 {
15969 if ((uintptr_t *) 0)
15970 return 0;
15971 if (sizeof (uintptr_t))
15972 return 0;
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_type_uintptr_t=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 ac_cv_type_uintptr_t=no
16005 fi
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16009 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16010 if test $ac_cv_type_uintptr_t = yes; then
16011 :
16012 else
16013 acx_cv_header_stdint_kind="(mostly complete)"
16014 fi
16015
16016 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16017 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
16018 if test "${ac_cv_type_int_least32_t+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h. */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 #include <sys/types.h>
16028 #include <$i>
16029
16030 int
16031 main ()
16032 {
16033 if ((int_least32_t *) 0)
16034 return 0;
16035 if (sizeof (int_least32_t))
16036 return 0;
16037 ;
16038 return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_cv_type_int_least32_t=yes
16064 else
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 ac_cv_type_int_least32_t=no
16069 fi
16070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16071 fi
16072 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16073 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
16074 if test $ac_cv_type_int_least32_t = yes; then
16075 :
16076 else
16077 acx_cv_header_stdint_kind="(mostly complete)"
16078 fi
16079
16080 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16081 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
16082 if test "${ac_cv_type_int_fast32_t+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 #include <sys/types.h>
16092 #include <$i>
16093
16094 int
16095 main ()
16096 {
16097 if ((int_fast32_t *) 0)
16098 return 0;
16099 if (sizeof (int_fast32_t))
16100 return 0;
16101 ;
16102 return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107 (eval $ac_compile) 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_cv_type_int_fast32_t=yes
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 ac_cv_type_int_fast32_t=no
16133 fi
16134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16135 fi
16136 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16137 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
16138 if test $ac_cv_type_int_fast32_t = yes; then
16139 :
16140 else
16141 acx_cv_header_stdint_kind="(mostly complete)"
16142 fi
16143
16144 echo "$as_me:$LINENO: checking for uint64_t" >&5
16145 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16146 if test "${ac_cv_type_uint64_t+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 #include <sys/types.h>
16156 #include <$i>
16157
16158 int
16159 main ()
16160 {
16161 if ((uint64_t *) 0)
16162 return 0;
16163 if (sizeof (uint64_t))
16164 return 0;
16165 ;
16166 return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag"
16179 || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_type_uint64_t=yes
16192 else
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ac_cv_type_uint64_t=no
16197 fi
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16199 fi
16200 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16201 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16202 if test $ac_cv_type_uint64_t = yes; then
16203 :
16204 else
16205 acx_cv_header_stdint_kind="(lacks uint64_t)"
16206 fi
16207
16208 break
16209 done
16210 if test "$acx_cv_header_stdint" = stddef.h; then
16211 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16212 for i in stdint.h $inttype_headers; do
16213 unset ac_cv_type_uintptr_t
16214 unset ac_cv_type_uint32_t
16215 unset ac_cv_type_uint64_t
16216 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
16217 echo "$as_me:$LINENO: checking for uint32_t" >&5
16218 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16219 if test "${ac_cv_type_uint32_t+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h. */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 #include <sys/types.h>
16229 #include <$i>
16230
16231 int
16232 main ()
16233 {
16234 if ((uint32_t *) 0)
16235 return 0;
16236 if (sizeof (uint32_t))
16237 return 0;
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_type_uint32_t=yes
16265 else
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ac_cv_type_uint32_t=no
16270 fi
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16274 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16275 if test $ac_cv_type_uint32_t = yes; then
16276 acx_cv_header_stdint=$i
16277 else
16278 continue
16279 fi
16280
16281 echo "$as_me:$LINENO: checking for uint64_t" >&5
16282 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16283 if test "${ac_cv_type_uint64_t+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 #include <sys/types.h>
16293 #include <$i>
16294
16295 int
16296 main ()
16297 {
16298 if ((uint64_t *) 0)
16299 return 0;
16300 if (sizeof (uint64_t))
16301 return 0;
16302 ;
16303 return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_c_werror_flag"
16316 || test ! -s conftest.err'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest.$ac_objext'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; }; then
16328 ac_cv_type_uint64_t=yes
16329 else
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 ac_cv_type_uint64_t=no
16334 fi
16335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16336 fi
16337 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16338 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16339
16340 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16341 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16342 if test "${ac_cv_type_uintptr_t+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <sys/types.h>
16352 #include <$i>
16353
16354 int
16355 main ()
16356 {
16357 if ((uintptr_t *) 0)
16358 return 0;
16359 if (sizeof (uintptr_t))
16360 return 0;
16361 ;
16362 return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_cv_type_uintptr_t=yes
16388 else
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 ac_cv_type_uintptr_t=no
16393 fi
16394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16395 fi
16396 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16397 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16398
16399 break
16400 done
16401 fi
16402 if test "$acx_cv_header_stdint" = stddef.h; then
16403 acx_cv_header_stdint_kind="(u_intXX_t style)"
16404 for i in sys/types.h $inttype_headers; do
16405 unset ac_cv_type_u_int32_t
16406 unset ac_cv_type_u_int64_t
16407 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
16408 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16409 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16410 if test "${ac_cv_type_u_int32_t+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 #include <sys/types.h>
16420 #include <$i>
16421
16422 int
16423 main ()
16424 {
16425 if ((u_int32_t *) 0)
16426 return 0;
16427 if (sizeof (u_int32_t))
16428 return 0;
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest.$ac_objext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435 (eval $ac_compile) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag"
16443 || test ! -s conftest.err'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_type_u_int32_t=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 ac_cv_type_u_int32_t=no
16461 fi
16462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16465 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16466 if test $ac_cv_type_u_int32_t = yes; then
16467 acx_cv_header_stdint=$i
16468 else
16469 continue
16470 fi
16471
16472 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16473 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16474 if test "${ac_cv_type_u_int64_t+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <sys/types.h>
16484 #include <$i>
16485
16486 int
16487 main ()
16488 {
16489 if ((u_int64_t *) 0)
16490 return 0;
16491 if (sizeof (u_int64_t))
16492 return 0;
16493 ;
16494 return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16499 (eval $ac_compile) 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest.$ac_objext'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_cv_type_u_int64_t=yes
16520 else
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 ac_cv_type_u_int64_t=no
16525 fi
16526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16527 fi
16528 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16529 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
16530
16531 break
16532 done
16533 fi
16534 if test "$acx_cv_header_stdint" = stddef.h; then
16535 acx_cv_header_stdint_kind="(using manual detection)"
16536 fi
16537
16538 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16539 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16540 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16541 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16542 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16543
16544 # ----------------- Summarize what we found so far
16545
16546 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16547 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
16548
16549 case `$as_basename gdb_stdint.h ||
16550 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16551 Xgdb_stdint.h : 'X\(//\)$' \| \
16552 Xgdb_stdint.h : 'X\(/\)$' \| \
16553 . : '\(.\)' 2>/dev/null ||
16554 echo X/gdb_stdint.h |
16555 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16556 /^X\/\(\/\/\)$/{ s//\1/; q; }
16557 /^X\/\(\/\).*/{ s//\1/; q; }
16558 s/.*/./; q'` in
16559 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16560 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16561 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16562 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16563 *) ;;
16564 esac
16565
16566 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16567 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
16568
16569 # ----------------- done included file, check C basic types --------
16570
16571 # Lacking an uintptr_t? Test size of void *
16572 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16573 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16574 echo $ECHO_N "checking for void *... $ECHO_C" >&6
16575 if test "${ac_cv_type_void_p+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 $ac_includes_default
16585 int
16586 main ()
16587 {
16588 if ((void * *) 0)
16589 return 0;
16590 if (sizeof (void *))
16591 return 0;
16592 ;
16593 return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest.$ac_objext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16598 (eval $ac_compile) 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_type_void_p=yes
16619 else
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16622
16623 ac_cv_type_void_p=no
16624 fi
16625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16626 fi
16627 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16628 echo "${ECHO_T}$ac_cv_type_void_p" >&6
16629
16630 echo "$as_me:$LINENO: checking size of void *" >&5
16631 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16632 if test "${ac_cv_sizeof_void_p+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 if test "$ac_cv_type_void_p" = yes; then
16636 # The cast to unsigned long works around a bug in the HP C Compiler
16637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16639 # This bug is HP SR number 8606223364.
16640 if test "$cross_compiling" = yes; then
16641 # Depending upon the size, compute the lo and hi bounds.
16642 cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h. */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 $ac_includes_default
16649 int
16650 main ()
16651 {
16652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16653 test_array [0] = 0
16654
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661 (eval $ac_compile) 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_lo=0 ac_mid=0
16682 while :; do
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 $ac_includes_default
16690 int
16691 main ()
16692 {
16693 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16694 test_array [0] = 0
16695
16696 ;
16697 return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_hi=$ac_mid; break
16723 else
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 ac_lo=`expr $ac_mid + 1`
16728 if test $ac_lo -le $ac_mid; then
16729 ac_lo= ac_hi=
16730 break
16731 fi
16732 ac_mid=`expr 2 '*' $ac_mid + 1`
16733 fi
16734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16735 done
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h. */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 $ac_includes_default
16747 int
16748 main ()
16749 {
16750 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16751 test_array [0] = 0
16752
16753 ;
16754 return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759 (eval $ac_compile) 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag"
16767 || test ! -s conftest.err'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest.$ac_objext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_hi=-1 ac_mid=-1
16780 while :; do
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 $ac_includes_default
16788 int
16789 main ()
16790 {
16791 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16792 test_array [0] = 0
16793
16794 ;
16795 return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16800 (eval $ac_compile) 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_lo=$ac_mid; break
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 ac_hi=`expr '(' $ac_mid ')' - 1`
16826 if test $ac_mid -le $ac_hi; then
16827 ac_lo= ac_hi=
16828 break
16829 fi
16830 ac_mid=`expr 2 '*' $ac_mid`
16831 fi
16832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16833 done
16834 else
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 ac_lo= ac_hi=
16839 fi
16840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16841 fi
16842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 # Binary search between lo and hi bounds.
16844 while test "x$ac_lo" != "x$ac_hi"; do
16845 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 $ac_includes_default
16853 int
16854 main ()
16855 {
16856 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16857 test_array [0] = 0
16858
16859 ;
16860 return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag"
16873 || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest.$ac_objext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_hi=$ac_mid
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_lo=`expr '(' $ac_mid ')' + 1`
16891 fi
16892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16893 done
16894 case $ac_lo in
16895 ?*) ac_cv_sizeof_void_p=$ac_lo;;
16896 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16897 See \`config.log' for more details." >&5
16898 echo "$as_me: error: cannot compute sizeof (void *), 77
16899 See \`config.log' for more details." >&2;}
16900 { (exit 1); exit 1; }; } ;;
16901 esac
16902 else
16903 if test "$cross_compiling" = yes; then
16904 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16905 See \`config.log' for more details." >&5
16906 echo "$as_me: error: cannot run test program while cross compiling
16907 See \`config.log' for more details." >&2;}
16908 { (exit 1); exit 1; }; }
16909 else
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $ac_includes_default
16917 long longval () { return (long) (sizeof (void *)); }
16918 unsigned long ulongval () { return (long) (sizeof (void *)); }
16919 #include <stdio.h>
16920 #include <stdlib.h>
16921 int
16922 main ()
16923 {
16924
16925 FILE *f = fopen ("conftest.val", "w");
16926 if (! f)
16927 exit (1);
16928 if (((long) (sizeof (void *))) < 0)
16929 {
16930 long i = longval ();
16931 if (i != ((long) (sizeof (void *))))
16932 exit (1);
16933 fprintf (f, "%ld\n", i);
16934 }
16935 else
16936 {
16937 unsigned long i = ulongval ();
16938 if (i != ((long) (sizeof (void *))))
16939 exit (1);
16940 fprintf (f, "%lu\n", i);
16941 }
16942 exit (ferror (f) || fclose (f) != 0);
16943
16944 ;
16945 return 0;
16946 }
16947 _ACEOF
16948 rm -f conftest$ac_exeext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16950 (eval $ac_link) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_sizeof_void_p=`cat conftest.val`
16960 else
16961 echo "$as_me: program exited with status $ac_status" >&5
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ( exit $ac_status )
16966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16967 See \`config.log' for more details." >&5
16968 echo "$as_me: error: cannot compute sizeof (void *), 77
16969 See \`config.log' for more details." >&2;}
16970 { (exit 1); exit 1; }; }
16971 fi
16972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16973 fi
16974 fi
16975 rm -f conftest.val
16976 else
16977 ac_cv_sizeof_void_p=0
16978 fi
16979 fi
16980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16981 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16982 cat >>confdefs.h <<_ACEOF
16983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16984 _ACEOF
16985
16986 ;;
16987 esac
16988
16989 # Lacking an uint64_t? Test size of long
16990 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16991 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
16992 echo $ECHO_N "checking for long... $ECHO_C" >&6
16993 if test "${ac_cv_type_long+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 $ac_includes_default
17003 int
17004 main ()
17005 {
17006 if ((long *) 0)
17007 return 0;
17008 if (sizeof (long))
17009 return 0;
17010 ;
17011 return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_type_long=yes
17037 else
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 ac_cv_type_long=no
17042 fi
17043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17044 fi
17045 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17046 echo "${ECHO_T}$ac_cv_type_long" >&6
17047
17048 echo "$as_me:$LINENO: checking size of long" >&5
17049 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17050 if test "${ac_cv_sizeof_long+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053 if test "$ac_cv_type_long" = yes; then
17054 # The cast to unsigned long works around a bug in the HP C Compiler
17055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17057 # This bug is HP SR number 8606223364.
17058 if test "$cross_compiling" = yes; then
17059 # Depending upon the size, compute the lo and hi bounds.
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 $ac_includes_default
17067 int
17068 main ()
17069 {
17070 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17071 test_array [0] = 0
17072
17073 ;
17074 return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_lo=0 ac_mid=0
17100 while :; do
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 $ac_includes_default
17108 int
17109 main ()
17110 {
17111 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17112 test_array [0] = 0
17113
17114 ;
17115 return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_hi=$ac_mid; break
17141 else
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 ac_lo=`expr $ac_mid + 1`
17146 if test $ac_lo -le $ac_mid; then
17147 ac_lo= ac_hi=
17148 break
17149 fi
17150 ac_mid=`expr 2 '*' $ac_mid + 1`
17151 fi
17152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17153 done
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 $ac_includes_default
17165 int
17166 main ()
17167 {
17168 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17169 test_array [0] = 0
17170
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17177 (eval $ac_compile) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest.$ac_objext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_hi=-1 ac_mid=-1
17198 while :; do
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 int
17207 main ()
17208 {
17209 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17210 test_array [0] = 0
17211
17212 ;
17213 return 0;
17214 }
17215 _ACEOF
17216 rm -f conftest.$ac_objext
17217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218 (eval $ac_compile) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag"
17226 || test ! -s conftest.err'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_lo=$ac_mid; break
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243 ac_hi=`expr '(' $ac_mid ')' - 1`
17244 if test $ac_mid -le $ac_hi; then
17245 ac_lo= ac_hi=
17246 break
17247 fi
17248 ac_mid=`expr 2 '*' $ac_mid`
17249 fi
17250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251 done
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256 ac_lo= ac_hi=
17257 fi
17258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17261 # Binary search between lo and hi bounds.
17262 while test "x$ac_lo" != "x$ac_hi"; do
17263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h. */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 $ac_includes_default
17271 int
17272 main ()
17273 {
17274 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17275 test_array [0] = 0
17276
17277 ;
17278 return 0;
17279 }
17280 _ACEOF
17281 rm -f conftest.$ac_objext
17282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17283 (eval $ac_compile) 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -z "$ac_c_werror_flag"
17291 || test ! -s conftest.err'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest.$ac_objext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_hi=$ac_mid
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308 ac_lo=`expr '(' $ac_mid ')' + 1`
17309 fi
17310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17311 done
17312 case $ac_lo in
17313 ?*) ac_cv_sizeof_long=$ac_lo;;
17314 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17315 See \`config.log' for more details." >&5
17316 echo "$as_me: error: cannot compute sizeof (long), 77
17317 See \`config.log' for more details." >&2;}
17318 { (exit 1); exit 1; }; } ;;
17319 esac
17320 else
17321 if test "$cross_compiling" = yes; then
17322 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17323 See \`config.log' for more details." >&5
17324 echo "$as_me: error: cannot run test program while cross compiling
17325 See \`config.log' for more details." >&2;}
17326 { (exit 1); exit 1; }; }
17327 else
17328 cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h. */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 $ac_includes_default
17335 long longval () { return (long) (sizeof (long)); }
17336 unsigned long ulongval () { return (long) (sizeof (long)); }
17337 #include <stdio.h>
17338 #include <stdlib.h>
17339 int
17340 main ()
17341 {
17342
17343 FILE *f = fopen ("conftest.val", "w");
17344 if (! f)
17345 exit (1);
17346 if (((long) (sizeof (long))) < 0)
17347 {
17348 long i = longval ();
17349 if (i != ((long) (sizeof (long))))
17350 exit (1);
17351 fprintf (f, "%ld\n", i);
17352 }
17353 else
17354 {
17355 unsigned long i = ulongval ();
17356 if (i != ((long) (sizeof (long))))
17357 exit (1);
17358 fprintf (f, "%lu\n", i);
17359 }
17360 exit (ferror (f) || fclose (f) != 0);
17361
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest$ac_exeext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_sizeof_long=`cat conftest.val`
17378 else
17379 echo "$as_me: program exited with status $ac_status" >&5
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 ( exit $ac_status )
17384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17385 See \`config.log' for more details." >&5
17386 echo "$as_me: error: cannot compute sizeof (long), 77
17387 See \`config.log' for more details." >&2;}
17388 { (exit 1); exit 1; }; }
17389 fi
17390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 fi
17393 rm -f conftest.val
17394 else
17395 ac_cv_sizeof_long=0
17396 fi
17397 fi
17398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17399 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17400 cat >>confdefs.h <<_ACEOF
17401 #define SIZEOF_LONG $ac_cv_sizeof_long
17402 _ACEOF
17403
17404 ;;
17405 esac
17406
17407 if test $acx_cv_header_stdint = stddef.h; then
17408 # Lacking a good header? Test size of everything and deduce all types.
17409 echo "$as_me:$LINENO: checking for int" >&5
17410 echo $ECHO_N "checking for int... $ECHO_C" >&6
17411 if test "${ac_cv_type_int+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 $ac_includes_default
17421 int
17422 main ()
17423 {
17424 if ((int *) 0)
17425 return 0;
17426 if (sizeof (int))
17427 return 0;
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_type_int=yes
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 ac_cv_type_int=no
17460 fi
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462 fi
17463 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17464 echo "${ECHO_T}$ac_cv_type_int" >&6
17465
17466 echo "$as_me:$LINENO: checking size of int" >&5
17467 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17468 if test "${ac_cv_sizeof_int+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471 if test "$ac_cv_type_int" = yes; then
17472 # The cast to unsigned long works around a bug in the HP C Compiler
17473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17475 # This bug is HP SR number 8606223364.
17476 if test "$cross_compiling" = yes; then
17477 # Depending upon the size, compute the lo and hi bounds.
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 $ac_includes_default
17485 int
17486 main ()
17487 {
17488 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17489 test_array [0] = 0
17490
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17497 (eval $ac_compile) 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag"
17505 || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest.$ac_objext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_lo=0 ac_mid=0
17518 while :; do
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 $ac_includes_default
17526 int
17527 main ()
17528 {
17529 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17530 test_array [0] = 0
17531
17532 ;
17533 return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17538 (eval $ac_compile) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_hi=$ac_mid; break
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 ac_lo=`expr $ac_mid + 1`
17564 if test $ac_lo -le $ac_mid; then
17565 ac_lo= ac_hi=
17566 break
17567 fi
17568 ac_mid=`expr 2 '*' $ac_mid + 1`
17569 fi
17570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17571 done
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 $ac_includes_default
17583 int
17584 main ()
17585 {
17586 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17587 test_array [0] = 0
17588
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=-1 ac_mid=-1
17616 while :; do
17617 cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 $ac_includes_default
17624 int
17625 main ()
17626 {
17627 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17628 test_array [0] = 0
17629
17630 ;
17631 return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 ac_lo=$ac_mid; break
17657 else
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661 ac_hi=`expr '(' $ac_mid ')' - 1`
17662 if test $ac_mid -le $ac_hi; then
17663 ac_lo= ac_hi=
17664 break
17665 fi
17666 ac_mid=`expr 2 '*' $ac_mid`
17667 fi
17668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17669 done
17670 else
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 ac_lo= ac_hi=
17675 fi
17676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17677 fi
17678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17679 # Binary search between lo and hi bounds.
17680 while test "x$ac_lo" != "x$ac_hi"; do
17681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17689 int
17690 main ()
17691 {
17692 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17693 test_array [0] = 0
17694
17695 ;
17696 return 0;
17697 }
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try='test -z "$ac_c_werror_flag"
17709 || test ! -s conftest.err'
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); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_hi=$ac_mid
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726 ac_lo=`expr '(' $ac_mid ')' + 1`
17727 fi
17728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17729 done
17730 case $ac_lo in
17731 ?*) ac_cv_sizeof_int=$ac_lo;;
17732 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17733 See \`config.log' for more details." >&5
17734 echo "$as_me: error: cannot compute sizeof (int), 77
17735 See \`config.log' for more details." >&2;}
17736 { (exit 1); exit 1; }; } ;;
17737 esac
17738 else
17739 if test "$cross_compiling" = yes; then
17740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17741 See \`config.log' for more details." >&5
17742 echo "$as_me: error: cannot run test program while cross compiling
17743 See \`config.log' for more details." >&2;}
17744 { (exit 1); exit 1; }; }
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17753 long longval () { return (long) (sizeof (int)); }
17754 unsigned long ulongval () { return (long) (sizeof (int)); }
17755 #include <stdio.h>
17756 #include <stdlib.h>
17757 int
17758 main ()
17759 {
17760
17761 FILE *f = fopen ("conftest.val", "w");
17762 if (! f)
17763 exit (1);
17764 if (((long) (sizeof (int))) < 0)
17765 {
17766 long i = longval ();
17767 if (i != ((long) (sizeof (int))))
17768 exit (1);
17769 fprintf (f, "%ld\n", i);
17770 }
17771 else
17772 {
17773 unsigned long i = ulongval ();
17774 if (i != ((long) (sizeof (int))))
17775 exit (1);
17776 fprintf (f, "%lu\n", i);
17777 }
17778 exit (ferror (f) || fclose (f) != 0);
17779
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_sizeof_int=`cat conftest.val`
17796 else
17797 echo "$as_me: program exited with status $ac_status" >&5
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 ( exit $ac_status )
17802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17803 See \`config.log' for more details." >&5
17804 echo "$as_me: error: cannot compute sizeof (int), 77
17805 See \`config.log' for more details." >&2;}
17806 { (exit 1); exit 1; }; }
17807 fi
17808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17809 fi
17810 fi
17811 rm -f conftest.val
17812 else
17813 ac_cv_sizeof_int=0
17814 fi
17815 fi
17816 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17817 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17818 cat >>confdefs.h <<_ACEOF
17819 #define SIZEOF_INT $ac_cv_sizeof_int
17820 _ACEOF
17821
17822
17823 echo "$as_me:$LINENO: checking for short" >&5
17824 echo $ECHO_N "checking for short... $ECHO_C" >&6
17825 if test "${ac_cv_type_short+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 $ac_includes_default
17835 int
17836 main ()
17837 {
17838 if ((short *) 0)
17839 return 0;
17840 if (sizeof (short))
17841 return 0;
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_type_short=yes
17869 else
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_type_short=no
17874 fi
17875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 fi
17877 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17878 echo "${ECHO_T}$ac_cv_type_short" >&6
17879
17880 echo "$as_me:$LINENO: checking size of short" >&5
17881 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17882 if test "${ac_cv_sizeof_short+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885 if test "$ac_cv_type_short" = yes; then
17886 # The cast to unsigned long works around a bug in the HP C Compiler
17887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17889 # This bug is HP SR number 8606223364.
17890 if test "$cross_compiling" = yes; then
17891 # Depending upon the size, compute the lo and hi bounds.
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17899 int
17900 main ()
17901 {
17902 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17903 test_array [0] = 0
17904
17905 ;
17906 return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911 (eval $ac_compile) 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try='test -z "$ac_c_werror_flag"
17919 || test ! -s conftest.err'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_lo=0 ac_mid=0
17932 while :; do
17933 cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h. */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 $ac_includes_default
17940 int
17941 main ()
17942 {
17943 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17944 test_array [0] = 0
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952 (eval $ac_compile) 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
17959 { ac_try='test -z "$ac_c_werror_flag"
17960 || test ! -s conftest.err'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_hi=$ac_mid; break
17973 else
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17976
17977 ac_lo=`expr $ac_mid + 1`
17978 if test $ac_lo -le $ac_mid; then
17979 ac_lo= ac_hi=
17980 break
17981 fi
17982 ac_mid=`expr 2 '*' $ac_mid + 1`
17983 fi
17984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 done
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 int
17998 main ()
17999 {
18000 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18001 test_array [0] = 0
18002
18003 ;
18004 return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag"
18017 || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_hi=-1 ac_mid=-1
18030 while :; do
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 $ac_includes_default
18038 int
18039 main ()
18040 {
18041 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18042 test_array [0] = 0
18043
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_lo=$ac_mid; break
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_hi=`expr '(' $ac_mid ')' - 1`
18076 if test $ac_mid -le $ac_hi; then
18077 ac_lo= ac_hi=
18078 break
18079 fi
18080 ac_mid=`expr 2 '*' $ac_mid`
18081 fi
18082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083 done
18084 else
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088 ac_lo= ac_hi=
18089 fi
18090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18091 fi
18092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18093 # Binary search between lo and hi bounds.
18094 while test "x$ac_lo" != "x$ac_hi"; do
18095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 $ac_includes_default
18103 int
18104 main ()
18105 {
18106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18107 test_array [0] = 0
18108
18109 ;
18110 return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_hi=$ac_mid
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140 ac_lo=`expr '(' $ac_mid ')' + 1`
18141 fi
18142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18143 done
18144 case $ac_lo in
18145 ?*) ac_cv_sizeof_short=$ac_lo;;
18146 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18147 See \`config.log' for more details." >&5
18148 echo "$as_me: error: cannot compute sizeof (short), 77
18149 See \`config.log' for more details." >&2;}
18150 { (exit 1); exit 1; }; } ;;
18151 esac
18152 else
18153 if test "$cross_compiling" = yes; then
18154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18155 See \`config.log' for more details." >&5
18156 echo "$as_me: error: cannot run test program while cross compiling
18157 See \`config.log' for more details." >&2;}
18158 { (exit 1); exit 1; }; }
18159 else
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h. */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 $ac_includes_default
18167 long longval () { return (long) (sizeof (short)); }
18168 unsigned long ulongval () { return (long) (sizeof (short)); }
18169 #include <stdio.h>
18170 #include <stdlib.h>
18171 int
18172 main ()
18173 {
18174
18175 FILE *f = fopen ("conftest.val", "w");
18176 if (! f)
18177 exit (1);
18178 if (((long) (sizeof (short))) < 0)
18179 {
18180 long i = longval ();
18181 if (i != ((long) (sizeof (short))))
18182 exit (1);
18183 fprintf (f, "%ld\n", i);
18184 }
18185 else
18186 {
18187 unsigned long i = ulongval ();
18188 if (i != ((long) (sizeof (short))))
18189 exit (1);
18190 fprintf (f, "%lu\n", i);
18191 }
18192 exit (ferror (f) || fclose (f) != 0);
18193
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_cv_sizeof_short=`cat conftest.val`
18210 else
18211 echo "$as_me: program exited with status $ac_status" >&5
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ( exit $ac_status )
18216 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18217 See \`config.log' for more details." >&5
18218 echo "$as_me: error: cannot compute sizeof (short), 77
18219 See \`config.log' for more details." >&2;}
18220 { (exit 1); exit 1; }; }
18221 fi
18222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18223 fi
18224 fi
18225 rm -f conftest.val
18226 else
18227 ac_cv_sizeof_short=0
18228 fi
18229 fi
18230 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18231 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18232 cat >>confdefs.h <<_ACEOF
18233 #define SIZEOF_SHORT $ac_cv_sizeof_short
18234 _ACEOF
18235
18236
18237 echo "$as_me:$LINENO: checking for char" >&5
18238 echo $ECHO_N "checking for char... $ECHO_C" >&6
18239 if test "${ac_cv_type_char+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 $ac_includes_default
18249 int
18250 main ()
18251 {
18252 if ((char *) 0)
18253 return 0;
18254 if (sizeof (char))
18255 return 0;
18256 ;
18257 return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18262 (eval $ac_compile) 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_cv_type_char=yes
18283 else
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 ac_cv_type_char=no
18288 fi
18289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 fi
18291 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18292 echo "${ECHO_T}$ac_cv_type_char" >&6
18293
18294 echo "$as_me:$LINENO: checking size of char" >&5
18295 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18296 if test "${ac_cv_sizeof_char+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 if test "$ac_cv_type_char" = yes; then
18300 # The cast to unsigned long works around a bug in the HP C Compiler
18301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18303 # This bug is HP SR number 8606223364.
18304 if test "$cross_compiling" = yes; then
18305 # Depending upon the size, compute the lo and hi bounds.
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 $ac_includes_default
18313 int
18314 main ()
18315 {
18316 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18317 test_array [0] = 0
18318
18319 ;
18320 return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_lo=0 ac_mid=0
18346 while :; do
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 $ac_includes_default
18354 int
18355 main ()
18356 {
18357 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18358 test_array [0] = 0
18359
18360 ;
18361 return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext
18365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18366 (eval $ac_compile) 2>conftest.er1
18367 ac_status=$?
18368 grep -v '^ *+' conftest.er1 >conftest.err
18369 rm -f conftest.er1
18370 cat conftest.err >&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try='test -z "$ac_c_werror_flag"
18374 || test ! -s conftest.err'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_hi=$ac_mid; break
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 ac_lo=`expr $ac_mid + 1`
18392 if test $ac_lo -le $ac_mid; then
18393 ac_lo= ac_hi=
18394 break
18395 fi
18396 ac_mid=`expr 2 '*' $ac_mid + 1`
18397 fi
18398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18399 done
18400 else
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 $ac_includes_default
18411 int
18412 main ()
18413 {
18414 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18415 test_array [0] = 0
18416
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_hi=-1 ac_mid=-1
18444 while :; do
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 $ac_includes_default
18452 int
18453 main ()
18454 {
18455 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18456 test_array [0] = 0
18457
18458 ;
18459 return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_lo=$ac_mid; break
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489 ac_hi=`expr '(' $ac_mid ')' - 1`
18490 if test $ac_mid -le $ac_hi; then
18491 ac_lo= ac_hi=
18492 break
18493 fi
18494 ac_mid=`expr 2 '*' $ac_mid`
18495 fi
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18497 done
18498 else
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 ac_lo= ac_hi=
18503 fi
18504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505 fi
18506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18507 # Binary search between lo and hi bounds.
18508 while test "x$ac_lo" != "x$ac_hi"; do
18509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 $ac_includes_default
18517 int
18518 main ()
18519 {
18520 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18521 test_array [0] = 0
18522
18523 ;
18524 return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext
18528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529 (eval $ac_compile) 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag"
18537 || test ! -s conftest.err'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest.$ac_objext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_hi=$ac_mid
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554 ac_lo=`expr '(' $ac_mid ')' + 1`
18555 fi
18556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557 done
18558 case $ac_lo in
18559 ?*) ac_cv_sizeof_char=$ac_lo;;
18560 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18561 See \`config.log' for more details." >&5
18562 echo "$as_me: error: cannot compute sizeof (char), 77
18563 See \`config.log' for more details." >&2;}
18564 { (exit 1); exit 1; }; } ;;
18565 esac
18566 else
18567 if test "$cross_compiling" = yes; then
18568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18569 See \`config.log' for more details." >&5
18570 echo "$as_me: error: cannot run test program while cross compiling
18571 See \`config.log' for more details." >&2;}
18572 { (exit 1); exit 1; }; }
18573 else
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h. */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 $ac_includes_default
18581 long longval () { return (long) (sizeof (char)); }
18582 unsigned long ulongval () { return (long) (sizeof (char)); }
18583 #include <stdio.h>
18584 #include <stdlib.h>
18585 int
18586 main ()
18587 {
18588
18589 FILE *f = fopen ("conftest.val", "w");
18590 if (! f)
18591 exit (1);
18592 if (((long) (sizeof (char))) < 0)
18593 {
18594 long i = longval ();
18595 if (i != ((long) (sizeof (char))))
18596 exit (1);
18597 fprintf (f, "%ld\n", i);
18598 }
18599 else
18600 {
18601 unsigned long i = ulongval ();
18602 if (i != ((long) (sizeof (char))))
18603 exit (1);
18604 fprintf (f, "%lu\n", i);
18605 }
18606 exit (ferror (f) || fclose (f) != 0);
18607
18608 ;
18609 return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_sizeof_char=`cat conftest.val`
18624 else
18625 echo "$as_me: program exited with status $ac_status" >&5
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ( exit $ac_status )
18630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18631 See \`config.log' for more details." >&5
18632 echo "$as_me: error: cannot compute sizeof (char), 77
18633 See \`config.log' for more details." >&2;}
18634 { (exit 1); exit 1; }; }
18635 fi
18636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18637 fi
18638 fi
18639 rm -f conftest.val
18640 else
18641 ac_cv_sizeof_char=0
18642 fi
18643 fi
18644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18645 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18646 cat >>confdefs.h <<_ACEOF
18647 #define SIZEOF_CHAR $ac_cv_sizeof_char
18648 _ACEOF
18649
18650
18651
18652 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
18653 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
18654 case "$ac_cv_sizeof_char" in
18655 1) acx_cv_type_int8_t=char ;;
18656 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
18657 echo "$as_me: error: no 8-bit type" >&2;}
18658 { (exit please report a bug); exit please report a bug; }; }
18659 esac
18660 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
18661 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
18662
18663 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
18664 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
18665 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
18666 2:*) acx_cv_type_int16_t=int ;;
18667 *:2) acx_cv_type_int16_t=short ;;
18668 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
18669 echo "$as_me: error: no 16-bit type" >&2;}
18670 { (exit please report a bug); exit please report a bug; }; }
18671 esac
18672 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
18673 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
18674
18675 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
18676 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
18677 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
18678 4:*) acx_cv_type_int32_t=int ;;
18679 *:4) acx_cv_type_int32_t=long ;;
18680 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
18681 echo "$as_me: error: no 32-bit type" >&2;}
18682 { (exit please report a bug); exit please report a bug; }; }
18683 esac
18684 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
18685 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
18686 fi
18687
18688 # These tests are here to make the output prettier
18689
18690 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
18691 case "$ac_cv_sizeof_long" in
18692 8) acx_cv_type_int64_t=long ;;
18693 esac
18694 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
18695 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
18696 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
18697 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
18698 fi
18699
18700 # Now we can use the above types
18701
18702 if test "$ac_cv_type_uintptr_t" != yes; then
18703 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
18704 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
18705 case $ac_cv_sizeof_void_p in
18706 2) acx_cv_type_intptr_t=int16_t ;;
18707 4) acx_cv_type_intptr_t=int32_t ;;
18708 8) acx_cv_type_intptr_t=int64_t ;;
18709 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
18710 echo "$as_me: error: no equivalent for intptr_t" >&2;}
18711 { (exit please report a bug); exit please report a bug; }; }
18712 esac
18713 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
18714 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
18715 fi
18716
18717 # ----------------- done all checks, emit header -------------
18718 ac_config_commands="$ac_config_commands gdb_stdint.h"
18719
18720
18721
18722
18723 # ------------------------- #
18724 # Checks for declarations. #
18725 # ------------------------- #
18726
18727 echo "$as_me:$LINENO: checking whether free is declared" >&5
18728 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18729 if test "${ac_cv_have_decl_free+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h. */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 $ac_includes_default
18739 int
18740 main ()
18741 {
18742 #ifndef free
18743 char *p = (char *) free;
18744 #endif
18745
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_have_decl_free=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_cv_have_decl_free=no
18778 fi
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780 fi
18781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18782 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18783 if test $ac_cv_have_decl_free = yes; then
18784
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE_DECL_FREE 1
18787 _ACEOF
18788
18789
18790 else
18791 cat >>confdefs.h <<_ACEOF
18792 #define HAVE_DECL_FREE 0
18793 _ACEOF
18794
18795
18796 fi
18797 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18798 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18799 if test "${ac_cv_have_decl_malloc+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802 cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h. */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h. */
18808 $ac_includes_default
18809 int
18810 main ()
18811 {
18812 #ifndef malloc
18813 char *p = (char *) malloc;
18814 #endif
18815
18816 ;
18817 return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822 (eval $ac_compile) 2>conftest.er1
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag"
18830 || test ! -s conftest.err'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_have_decl_malloc=yes
18843 else
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847 ac_cv_have_decl_malloc=no
18848 fi
18849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850 fi
18851 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18852 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18853 if test $ac_cv_have_decl_malloc = yes; then
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_DECL_MALLOC 1
18857 _ACEOF
18858
18859
18860 else
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_DECL_MALLOC 0
18863 _ACEOF
18864
18865
18866 fi
18867 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18868 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18869 if test "${ac_cv_have_decl_realloc+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h. */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 $ac_includes_default
18879 int
18880 main ()
18881 {
18882 #ifndef realloc
18883 char *p = (char *) realloc;
18884 #endif
18885
18886 ;
18887 return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -z "$ac_c_werror_flag"
18900 || test ! -s conftest.err'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 ac_cv_have_decl_realloc=yes
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 ac_cv_have_decl_realloc=no
18918 fi
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18922 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18923 if test $ac_cv_have_decl_realloc = yes; then
18924
18925 cat >>confdefs.h <<_ACEOF
18926 #define HAVE_DECL_REALLOC 1
18927 _ACEOF
18928
18929
18930 else
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_DECL_REALLOC 0
18933 _ACEOF
18934
18935
18936 fi
18937
18938
18939 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18940 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
18941 if test "${ac_cv_have_decl_strerror+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 $ac_includes_default
18951 int
18952 main ()
18953 {
18954 #ifndef strerror
18955 char *p = (char *) strerror;
18956 #endif
18957
18958 ;
18959 return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18964 (eval $ac_compile) 2>conftest.er1
18965 ac_status=$?
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
18971 { ac_try='test -z "$ac_c_werror_flag"
18972 || test ! -s conftest.err'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest.$ac_objext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_have_decl_strerror=yes
18985 else
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 ac_cv_have_decl_strerror=no
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 fi
18993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18994 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
18995 if test $ac_cv_have_decl_strerror = yes; then
18996
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_DECL_STRERROR 1
18999 _ACEOF
19000
19001
19002 else
19003 cat >>confdefs.h <<_ACEOF
19004 #define HAVE_DECL_STRERROR 0
19005 _ACEOF
19006
19007
19008 fi
19009 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19010 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
19011 if test "${ac_cv_have_decl_strstr+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 $ac_includes_default
19021 int
19022 main ()
19023 {
19024 #ifndef strstr
19025 char *p = (char *) strstr;
19026 #endif
19027
19028 ;
19029 return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_have_decl_strstr=yes
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 ac_cv_have_decl_strstr=no
19060 fi
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062 fi
19063 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19064 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
19065 if test $ac_cv_have_decl_strstr = yes; then
19066
19067 cat >>confdefs.h <<_ACEOF
19068 #define HAVE_DECL_STRSTR 1
19069 _ACEOF
19070
19071
19072 else
19073 cat >>confdefs.h <<_ACEOF
19074 #define HAVE_DECL_STRSTR 0
19075 _ACEOF
19076
19077
19078 fi
19079
19080
19081 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19082 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
19083 if test "${ac_cv_have_decl_getopt+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 $ac_includes_default
19093 int
19094 main ()
19095 {
19096 #ifndef getopt
19097 char *p = (char *) getopt;
19098 #endif
19099
19100 ;
19101 return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
19113 { ac_try='test -z "$ac_c_werror_flag"
19114 || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_have_decl_getopt=yes
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 ac_cv_have_decl_getopt=no
19132 fi
19133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19134 fi
19135 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19136 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
19137 if test $ac_cv_have_decl_getopt = yes; then
19138
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_DECL_GETOPT 1
19141 _ACEOF
19142
19143
19144 else
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_DECL_GETOPT 0
19147 _ACEOF
19148
19149
19150 fi
19151 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19152 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
19153 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 $ac_includes_default
19163 int
19164 main ()
19165 {
19166 #ifndef snprintf
19167 char *p = (char *) snprintf;
19168 #endif
19169
19170 ;
19171 return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19176 (eval $ac_compile) 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag"
19184 || test ! -s conftest.err'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_have_decl_snprintf=yes
19197 else
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 ac_cv_have_decl_snprintf=no
19202 fi
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204 fi
19205 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19206 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
19207 if test $ac_cv_have_decl_snprintf = yes; then
19208
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_SNPRINTF 1
19211 _ACEOF
19212
19213
19214 else
19215 cat >>confdefs.h <<_ACEOF
19216 #define HAVE_DECL_SNPRINTF 0
19217 _ACEOF
19218
19219
19220 fi
19221 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19222 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
19223 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 $ac_includes_default
19233 int
19234 main ()
19235 {
19236 #ifndef vsnprintf
19237 char *p = (char *) vsnprintf;
19238 #endif
19239
19240 ;
19241 return 0;
19242 }
19243 _ACEOF
19244 rm -f conftest.$ac_objext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_c_werror_flag"
19254 || test ! -s conftest.err'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_have_decl_vsnprintf=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_cv_have_decl_vsnprintf=no
19272 fi
19273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274 fi
19275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19276 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
19277 if test $ac_cv_have_decl_vsnprintf = yes; then
19278
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_VSNPRINTF 1
19281 _ACEOF
19282
19283
19284 else
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_DECL_VSNPRINTF 0
19287 _ACEOF
19288
19289
19290 fi
19291
19292
19293
19294 # ----------------------- #
19295 # Checks for structures. #
19296 # ----------------------- #
19297
19298 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19299 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19300 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h. */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309 $ac_includes_default
19310 int
19311 main ()
19312 {
19313 static struct stat ac_aggr;
19314 if (ac_aggr.st_blocks)
19315 return 0;
19316 ;
19317 return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_member_struct_stat_st_blocks=yes
19343 else
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 $ac_includes_default
19354 int
19355 main ()
19356 {
19357 static struct stat ac_aggr;
19358 if (sizeof ac_aggr.st_blocks)
19359 return 0;
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag"
19374 || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_member_struct_stat_st_blocks=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_member_struct_stat_st_blocks=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394 fi
19395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19396 fi
19397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19398 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19399 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19400
19401 cat >>confdefs.h <<_ACEOF
19402 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19403 _ACEOF
19404
19405
19406 fi
19407
19408 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19409 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19410 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 else
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h. */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 $ac_includes_default
19420 int
19421 main ()
19422 {
19423 static struct stat ac_aggr;
19424 if (ac_aggr.st_blksize)
19425 return 0;
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432 (eval $ac_compile) 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_member_struct_stat_st_blksize=yes
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19464 int
19465 main ()
19466 {
19467 static struct stat ac_aggr;
19468 if (sizeof ac_aggr.st_blksize)
19469 return 0;
19470 ;
19471 return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_member_struct_stat_st_blksize=yes
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ac_cv_member_struct_stat_st_blksize=no
19502 fi
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504 fi
19505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506 fi
19507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19508 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
19509 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19510
19511 cat >>confdefs.h <<_ACEOF
19512 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19513 _ACEOF
19514
19515
19516 fi
19517
19518
19519 # ------------------ #
19520 # Checks for types. #
19521 # ------------------ #
19522
19523 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19524 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19525 if test "${ac_cv_type_signal+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h. */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #include <sys/types.h>
19535 #include <signal.h>
19536 #ifdef signal
19537 # undef signal
19538 #endif
19539 #ifdef __cplusplus
19540 extern "C" void (*signal (int, void (*)(int)))(int);
19541 #else
19542 void (*signal ()) ();
19543 #endif
19544
19545 int
19546 main ()
19547 {
19548 int i;
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
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); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_type_signal=void
19576 else
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_cv_type_signal=int
19581 fi
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583 fi
19584 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19585 echo "${ECHO_T}$ac_cv_type_signal" >&6
19586
19587 cat >>confdefs.h <<_ACEOF
19588 #define RETSIGTYPE $ac_cv_type_signal
19589 _ACEOF
19590
19591
19592 echo "$as_me:$LINENO: checking for socklen_t" >&5
19593 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
19594 if test "${ac_cv_type_socklen_t+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h. */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 #include <sys/types.h>
19604 #include <sys/socket.h>
19605
19606
19607 int
19608 main ()
19609 {
19610 if ((socklen_t *) 0)
19611 return 0;
19612 if (sizeof (socklen_t))
19613 return 0;
19614 ;
19615 return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_type_socklen_t=yes
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 ac_cv_type_socklen_t=no
19646 fi
19647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19648 fi
19649 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19650 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
19651 if test $ac_cv_type_socklen_t = yes; then
19652
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_SOCKLEN_T 1
19655 _ACEOF
19656
19657
19658 fi
19659
19660 echo "$as_me:$LINENO: checking for uintptr_t" >&5
19661 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
19662 if test "${ac_cv_type_uintptr_t+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <stdint.h>
19672
19673 int
19674 main ()
19675 {
19676 if ((uintptr_t *) 0)
19677 return 0;
19678 if (sizeof (uintptr_t))
19679 return 0;
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag"
19694 || test ! -s conftest.err'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_cv_type_uintptr_t=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_cv_type_uintptr_t=no
19712 fi
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 fi
19715 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19716 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
19717 if test $ac_cv_type_uintptr_t = yes; then
19718
19719 cat >>confdefs.h <<_ACEOF
19720 #define HAVE_UINTPTR_T 1
19721 _ACEOF
19722
19723
19724 fi
19725
19726
19727 # ------------------------------------- #
19728 # Checks for compiler characteristics. #
19729 # ------------------------------------- #
19730
19731 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19732 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19733 if test "${ac_cv_c_const+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742
19743 int
19744 main ()
19745 {
19746 /* FIXME: Include the comments suggested by Paul. */
19747 #ifndef __cplusplus
19748 /* Ultrix mips cc rejects this. */
19749 typedef int charset[2];
19750 const charset x;
19751 /* SunOS 4.1.1 cc rejects this. */
19752 char const *const *ccp;
19753 char **p;
19754 /* NEC SVR4.0.2 mips cc rejects this. */
19755 struct point {int x, y;};
19756 static struct point const zero = {0,0};
19757 /* AIX XL C 1.02.0.0 rejects this.
19758 It does not let you subtract one const X* pointer from another in
19759 an arm of an if-expression whose if-part is not a constant
19760 expression */
19761 const char *g = "string";
19762 ccp = &g + (g ? g-g : 0);
19763 /* HPUX 7.0 cc rejects these. */
19764 ++ccp;
19765 p = (char**) ccp;
19766 ccp = (char const *const *) p;
19767 { /* SCO 3.2v4 cc rejects this. */
19768 char *t;
19769 char const *s = 0 ? (char *) 0 : (char const *) 0;
19770
19771 *t++ = 0;
19772 }
19773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19774 int x[] = {25, 17};
19775 const int *foo = &x[0];
19776 ++foo;
19777 }
19778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19779 typedef const int *iptr;
19780 iptr p = 0;
19781 ++p;
19782 }
19783 { /* AIX XL C 1.02.0.0 rejects this saying
19784 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19785 struct s { int j; const int *ap[3]; };
19786 struct s *b; b->j = 5;
19787 }
19788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19789 const int foo = 10;
19790 }
19791 #endif
19792
19793 ;
19794 return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19819 ac_cv_c_const=yes
19820 else
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_cv_c_const=no
19825 fi
19826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19827 fi
19828 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19829 echo "${ECHO_T}$ac_cv_c_const" >&6
19830 if test $ac_cv_c_const = no; then
19831
19832 cat >>confdefs.h <<\_ACEOF
19833 #define const
19834 _ACEOF
19835
19836 fi
19837
19838 echo "$as_me:$LINENO: checking for inline" >&5
19839 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19840 if test "${ac_cv_c_inline+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 ac_cv_c_inline=no
19844 for ac_kw in inline __inline__ __inline; do
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #ifndef __cplusplus
19852 typedef int foo_t;
19853 static $ac_kw foo_t static_foo () {return 0; }
19854 $ac_kw foo_t foo () {return 0; }
19855 #endif
19856
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_c_inline=$ac_kw; break
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 fi
19886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19887 done
19888
19889 fi
19890 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19891 echo "${ECHO_T}$ac_cv_c_inline" >&6
19892
19893
19894 case $ac_cv_c_inline in
19895 inline | yes) ;;
19896 *)
19897 case $ac_cv_c_inline in
19898 no) ac_val=;;
19899 *) ac_val=$ac_cv_c_inline;;
19900 esac
19901 cat >>confdefs.h <<_ACEOF
19902 #ifndef __cplusplus
19903 #define inline $ac_val
19904 #endif
19905 _ACEOF
19906 ;;
19907 esac
19908
19909 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19910 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19911 if test "${ac_cv_c_bigendian+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 # See if sys/param.h defines the BYTE_ORDER macro.
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <sys/types.h>
19922 #include <sys/param.h>
19923
19924 int
19925 main ()
19926 {
19927 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19928 bogus endian macros
19929 #endif
19930
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19937 (eval $ac_compile) 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 # It does; now see whether it defined to BIG_ENDIAN or not.
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <sys/types.h>
19965 #include <sys/param.h>
19966
19967 int
19968 main ()
19969 {
19970 #if BYTE_ORDER != BIG_ENDIAN
19971 not big endian
19972 #endif
19973
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_c_bigendian=yes
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_cv_c_bigendian=no
20006 fi
20007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 # It does not; compile a test program.
20013 if test "$cross_compiling" = yes; then
20014 # try to guess the endianness by grepping values into an object file
20015 ac_cv_c_bigendian=unknown
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20023 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20024 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20025 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20026 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20027 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20028 int
20029 main ()
20030 {
20031 _ascii (); _ebcdic ();
20032 ;
20033 return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20059 ac_cv_c_bigendian=yes
20060 fi
20061 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20062 if test "$ac_cv_c_bigendian" = unknown; then
20063 ac_cv_c_bigendian=no
20064 else
20065 # finding both strings is unlikely to happen, but who knows?
20066 ac_cv_c_bigendian=unknown
20067 fi
20068 fi
20069 else
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073 fi
20074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20075 else
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 int
20083 main ()
20084 {
20085 /* Are we little or big endian? From Harbison&Steele. */
20086 union
20087 {
20088 long l;
20089 char c[sizeof (long)];
20090 } u;
20091 u.l = 1;
20092 exit (u.c[sizeof (long) - 1] == 1);
20093 }
20094 _ACEOF
20095 rm -f conftest$ac_exeext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097 (eval $ac_link) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 ac_cv_c_bigendian=no
20107 else
20108 echo "$as_me: program exited with status $ac_status" >&5
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ( exit $ac_status )
20113 ac_cv_c_bigendian=yes
20114 fi
20115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116 fi
20117 fi
20118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119 fi
20120 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20121 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20122 case $ac_cv_c_bigendian in
20123 yes)
20124
20125 cat >>confdefs.h <<\_ACEOF
20126 #define WORDS_BIGENDIAN 1
20127 _ACEOF
20128 ;;
20129 no)
20130 ;;
20131 *)
20132 { { echo "$as_me:$LINENO: error: unknown endianness
20133 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20134 echo "$as_me: error: unknown endianness
20135 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20136 { (exit 1); exit 1; }; } ;;
20137 esac
20138
20139
20140 # ------------------------------ #
20141 # Checks for library functions. #
20142 # ------------------------------ #
20143
20144 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20145 # for constant arguments. Useless!
20146 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20147 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20148 if test "${ac_cv_working_alloca_h+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 #include <alloca.h>
20158 int
20159 main ()
20160 {
20161 char *p = (char *) alloca (2 * sizeof (int));
20162 ;
20163 return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_working_alloca_h=yes
20189 else
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_cv_working_alloca_h=no
20194 fi
20195 rm -f conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20197 fi
20198 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20199 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20200 if test $ac_cv_working_alloca_h = yes; then
20201
20202 cat >>confdefs.h <<\_ACEOF
20203 #define HAVE_ALLOCA_H 1
20204 _ACEOF
20205
20206 fi
20207
20208 echo "$as_me:$LINENO: checking for alloca" >&5
20209 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20210 if test "${ac_cv_func_alloca_works+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #ifdef __GNUC__
20220 # define alloca __builtin_alloca
20221 #else
20222 # ifdef _MSC_VER
20223 # include <malloc.h>
20224 # define alloca _alloca
20225 # else
20226 # if HAVE_ALLOCA_H
20227 # include <alloca.h>
20228 # else
20229 # ifdef _AIX
20230 #pragma alloca
20231 # else
20232 # ifndef alloca /* predefined by HP cc +Olibcalls */
20233 char *alloca ();
20234 # endif
20235 # endif
20236 # endif
20237 # endif
20238 #endif
20239
20240 int
20241 main ()
20242 {
20243 char *p = (char *) alloca (1);
20244 ;
20245 return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext conftest$ac_exeext
20249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20250 (eval $ac_link) 2>conftest.er1
20251 ac_status=$?
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -z "$ac_c_werror_flag"
20258 || test ! -s conftest.err'
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } &&
20264 { ac_try='test -s conftest$ac_exeext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 ac_cv_func_alloca_works=yes
20271 else
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20274
20275 ac_cv_func_alloca_works=no
20276 fi
20277 rm -f conftest.err conftest.$ac_objext \
20278 conftest$ac_exeext conftest.$ac_ext
20279 fi
20280 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20281 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20282
20283 if test $ac_cv_func_alloca_works = yes; then
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_ALLOCA 1
20287 _ACEOF
20288
20289 else
20290 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20291 # that cause trouble. Some versions do not even contain alloca or
20292 # contain a buggy version. If you still want to use their alloca,
20293 # use ar to extract alloca.o from them instead of compiling alloca.c.
20294
20295 ALLOCA=alloca.$ac_objext
20296
20297 cat >>confdefs.h <<\_ACEOF
20298 #define C_ALLOCA 1
20299 _ACEOF
20300
20301
20302 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20303 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20304 if test "${ac_cv_os_cray+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #if defined(CRAY) && ! defined(CRAY2)
20314 webecray
20315 #else
20316 wenotbecray
20317 #endif
20318
20319 _ACEOF
20320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20321 $EGREP "webecray" >/dev/null 2>&1; then
20322 ac_cv_os_cray=yes
20323 else
20324 ac_cv_os_cray=no
20325 fi
20326 rm -f conftest*
20327
20328 fi
20329 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20330 echo "${ECHO_T}$ac_cv_os_cray" >&6
20331 if test $ac_cv_os_cray = yes; then
20332 for ac_func in _getb67 GETB67 getb67; do
20333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20334 echo "$as_me:$LINENO: checking for $ac_func" >&5
20335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20336 if eval "test \"\${$as_ac_var+set}\" = set"; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20347 #define $ac_func innocuous_$ac_func
20348
20349 /* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char $ac_func (); below.
20351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20352 <limits.h> exists even on freestanding compilers. */
20353
20354 #ifdef __STDC__
20355 # include <limits.h>
20356 #else
20357 # include <assert.h>
20358 #endif
20359
20360 #undef $ac_func
20361
20362 /* Override any gcc2 internal prototype to avoid an error. */
20363 #ifdef __cplusplus
20364 extern "C"
20365 {
20366 #endif
20367 /* We use char because int might match the return type of a gcc2
20368 builtin and then its argument prototype would still apply. */
20369 char $ac_func ();
20370 /* The GNU C library defines this for functions which it implements
20371 to always fail with ENOSYS. Some functions are actually named
20372 something starting with __ and the normal name is an alias. */
20373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20374 choke me
20375 #else
20376 char (*f) () = $ac_func;
20377 #endif
20378 #ifdef __cplusplus
20379 }
20380 #endif
20381
20382 int
20383 main ()
20384 {
20385 return f != $ac_func;
20386 ;
20387 return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_c_werror_flag"
20400 || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 eval "$as_ac_var=yes"
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 eval "$as_ac_var=no"
20418 fi
20419 rm -f conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20421 fi
20422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20424 if test `eval echo '${'$as_ac_var'}'` = yes; then
20425
20426 cat >>confdefs.h <<_ACEOF
20427 #define CRAY_STACKSEG_END $ac_func
20428 _ACEOF
20429
20430 break
20431 fi
20432
20433 done
20434 fi
20435
20436 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20437 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20438 if test "${ac_cv_c_stack_direction+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 if test "$cross_compiling" = yes; then
20442 ac_cv_c_stack_direction=0
20443 else
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 int
20451 find_stack_direction ()
20452 {
20453 static char *addr = 0;
20454 auto char dummy;
20455 if (addr == 0)
20456 {
20457 addr = &dummy;
20458 return find_stack_direction ();
20459 }
20460 else
20461 return (&dummy > addr) ? 1 : -1;
20462 }
20463
20464 int
20465 main ()
20466 {
20467 exit (find_stack_direction () < 0);
20468 }
20469 _ACEOF
20470 rm -f conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_cv_c_stack_direction=1
20482 else
20483 echo "$as_me: program exited with status $ac_status" >&5
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 ( exit $ac_status )
20488 ac_cv_c_stack_direction=-1
20489 fi
20490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20491 fi
20492 fi
20493 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20494 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20495
20496 cat >>confdefs.h <<_ACEOF
20497 #define STACK_DIRECTION $ac_cv_c_stack_direction
20498 _ACEOF
20499
20500
20501 fi
20502
20503
20504
20505 for ac_header in stdlib.h unistd.h
20506 do
20507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 fi
20514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20516 else
20517 # Is the header compilable?
20518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 $ac_includes_default
20527 #include <$ac_header>
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531 (eval $ac_compile) 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag"
20539 || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_header_compiler=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ac_header_compiler=no
20557 fi
20558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20560 echo "${ECHO_T}$ac_header_compiler" >&6
20561
20562 # Is the header present?
20563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20565 cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h. */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 #include <$ac_header>
20572 _ACEOF
20573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20574 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20581 if test -s conftest.err; then
20582 ac_cpp_err=$ac_c_preproc_warn_flag
20583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20584 else
20585 ac_cpp_err=
20586 fi
20587 else
20588 ac_cpp_err=yes
20589 fi
20590 if test -z "$ac_cpp_err"; then
20591 ac_header_preproc=yes
20592 else
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20595
20596 ac_header_preproc=no
20597 fi
20598 rm -f conftest.err conftest.$ac_ext
20599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20600 echo "${ECHO_T}$ac_header_preproc" >&6
20601
20602 # So? What about this header?
20603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20604 yes:no: )
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20609 ac_header_preproc=yes
20610 ;;
20611 no:yes:* )
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20624 (
20625 cat <<\_ASBOX
20626 ## ------------------------------------------ ##
20627 ## Report this to the AC_PACKAGE_NAME lists. ##
20628 ## ------------------------------------------ ##
20629 _ASBOX
20630 ) |
20631 sed "s/^/$as_me: WARNING: /" >&2
20632 ;;
20633 esac
20634 echo "$as_me:$LINENO: checking for $ac_header" >&5
20635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639 eval "$as_ac_Header=\$ac_header_preproc"
20640 fi
20641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20643
20644 fi
20645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20648 _ACEOF
20649
20650 fi
20651
20652 done
20653
20654
20655 for ac_func in getpagesize
20656 do
20657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20658 echo "$as_me:$LINENO: checking for $ac_func" >&5
20659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20660 if eval "test \"\${$as_ac_var+set}\" = set"; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20671 #define $ac_func innocuous_$ac_func
20672
20673 /* System header to define __stub macros and hopefully few prototypes,
20674 which can conflict with char $ac_func (); below.
20675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676 <limits.h> exists even on freestanding compilers. */
20677
20678 #ifdef __STDC__
20679 # include <limits.h>
20680 #else
20681 # include <assert.h>
20682 #endif
20683
20684 #undef $ac_func
20685
20686 /* Override any gcc2 internal prototype to avoid an error. */
20687 #ifdef __cplusplus
20688 extern "C"
20689 {
20690 #endif
20691 /* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
20693 char $ac_func ();
20694 /* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
20697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20698 choke me
20699 #else
20700 char (*f) () = $ac_func;
20701 #endif
20702 #ifdef __cplusplus
20703 }
20704 #endif
20705
20706 int
20707 main ()
20708 {
20709 return f != $ac_func;
20710 ;
20711 return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest$ac_exeext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 eval "$as_ac_var=yes"
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 eval "$as_ac_var=no"
20742 fi
20743 rm -f conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20745 fi
20746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20748 if test `eval echo '${'$as_ac_var'}'` = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20751 _ACEOF
20752
20753 fi
20754 done
20755
20756 echo "$as_me:$LINENO: checking for working mmap" >&5
20757 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20758 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 else
20761 if test "$cross_compiling" = yes; then
20762 ac_cv_func_mmap_fixed_mapped=no
20763 else
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 $ac_includes_default
20771 /* malloc might have been renamed as rpl_malloc. */
20772 #undef malloc
20773
20774 /* Thanks to Mike Haertel and Jim Avera for this test.
20775 Here is a matrix of mmap possibilities:
20776 mmap private not fixed
20777 mmap private fixed at somewhere currently unmapped
20778 mmap private fixed at somewhere already mapped
20779 mmap shared not fixed
20780 mmap shared fixed at somewhere currently unmapped
20781 mmap shared fixed at somewhere already mapped
20782 For private mappings, we should verify that changes cannot be read()
20783 back from the file, nor mmap's back from the file at a different
20784 address. (There have been systems where private was not correctly
20785 implemented like the infamous i386 svr4.0, and systems where the
20786 VM page cache was not coherent with the file system buffer cache
20787 like early versions of FreeBSD and possibly contemporary NetBSD.)
20788 For shared mappings, we should conversely verify that changes get
20789 propagated back to all the places they're supposed to be.
20790
20791 Grep wants private fixed already mapped.
20792 The main things grep needs to know about mmap are:
20793 * does it exist and is it safe to write into the mmap'd area
20794 * how to use it (BSD variants) */
20795
20796 #include <fcntl.h>
20797 #include <sys/mman.h>
20798
20799 #if !STDC_HEADERS && !HAVE_STDLIB_H
20800 char *malloc ();
20801 #endif
20802
20803 /* This mess was copied from the GNU getpagesize.h. */
20804 #if !HAVE_GETPAGESIZE
20805 /* Assume that all systems that can run configure have sys/param.h. */
20806 # if !HAVE_SYS_PARAM_H
20807 # define HAVE_SYS_PARAM_H 1
20808 # endif
20809
20810 # ifdef _SC_PAGESIZE
20811 # define getpagesize() sysconf(_SC_PAGESIZE)
20812 # else /* no _SC_PAGESIZE */
20813 # if HAVE_SYS_PARAM_H
20814 # include <sys/param.h>
20815 # ifdef EXEC_PAGESIZE
20816 # define getpagesize() EXEC_PAGESIZE
20817 # else /* no EXEC_PAGESIZE */
20818 # ifdef NBPG
20819 # define getpagesize() NBPG * CLSIZE
20820 # ifndef CLSIZE
20821 # define CLSIZE 1
20822 # endif /* no CLSIZE */
20823 # else /* no NBPG */
20824 # ifdef NBPC
20825 # define getpagesize() NBPC
20826 # else /* no NBPC */
20827 # ifdef PAGESIZE
20828 # define getpagesize() PAGESIZE
20829 # endif /* PAGESIZE */
20830 # endif /* no NBPC */
20831 # endif /* no NBPG */
20832 # endif /* no EXEC_PAGESIZE */
20833 # else /* no HAVE_SYS_PARAM_H */
20834 # define getpagesize() 8192 /* punt totally */
20835 # endif /* no HAVE_SYS_PARAM_H */
20836 # endif /* no _SC_PAGESIZE */
20837
20838 #endif /* no HAVE_GETPAGESIZE */
20839
20840 int
20841 main ()
20842 {
20843 char *data, *data2, *data3;
20844 int i, pagesize;
20845 int fd;
20846
20847 pagesize = getpagesize ();
20848
20849 /* First, make a file with some known garbage in it. */
20850 data = (char *) malloc (pagesize);
20851 if (!data)
20852 exit (1);
20853 for (i = 0; i < pagesize; ++i)
20854 *(data + i) = rand ();
20855 umask (0);
20856 fd = creat ("conftest.mmap", 0600);
20857 if (fd < 0)
20858 exit (1);
20859 if (write (fd, data, pagesize) != pagesize)
20860 exit (1);
20861 close (fd);
20862
20863 /* Next, try to mmap the file at a fixed address which already has
20864 something else allocated at it. If we can, also make sure that
20865 we see the same garbage. */
20866 fd = open ("conftest.mmap", O_RDWR);
20867 if (fd < 0)
20868 exit (1);
20869 data2 = (char *) malloc (2 * pagesize);
20870 if (!data2)
20871 exit (1);
20872 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20873 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20874 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20875 exit (1);
20876 for (i = 0; i < pagesize; ++i)
20877 if (*(data + i) != *(data2 + i))
20878 exit (1);
20879
20880 /* Finally, make sure that changes to the mapped area do not
20881 percolate back to the file as seen by read(). (This is a bug on
20882 some variants of i386 svr4.0.) */
20883 for (i = 0; i < pagesize; ++i)
20884 *(data2 + i) = *(data2 + i) + 1;
20885 data3 = (char *) malloc (pagesize);
20886 if (!data3)
20887 exit (1);
20888 if (read (fd, data3, pagesize) != pagesize)
20889 exit (1);
20890 for (i = 0; i < pagesize; ++i)
20891 if (*(data + i) != *(data3 + i))
20892 exit (1);
20893 close (fd);
20894 exit (0);
20895 }
20896 _ACEOF
20897 rm -f conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_func_mmap_fixed_mapped=yes
20909 else
20910 echo "$as_me: program exited with status $ac_status" >&5
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 ( exit $ac_status )
20915 ac_cv_func_mmap_fixed_mapped=no
20916 fi
20917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20918 fi
20919 fi
20920 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20921 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20922 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20923
20924 cat >>confdefs.h <<\_ACEOF
20925 #define HAVE_MMAP 1
20926 _ACEOF
20927
20928 fi
20929 rm -f conftest.mmap
20930
20931 echo "$as_me:$LINENO: checking for pid_t" >&5
20932 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20933 if test "${ac_cv_type_pid_t+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 $ac_includes_default
20943 int
20944 main ()
20945 {
20946 if ((pid_t *) 0)
20947 return 0;
20948 if (sizeof (pid_t))
20949 return 0;
20950 ;
20951 return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext
20955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20956 (eval $ac_compile) 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_c_werror_flag"
20964 || test ! -s conftest.err'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
20970 { ac_try='test -s conftest.$ac_objext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_type_pid_t=yes
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ac_cv_type_pid_t=no
20982 fi
20983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20984 fi
20985 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20986 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20987 if test $ac_cv_type_pid_t = yes; then
20988 :
20989 else
20990
20991 cat >>confdefs.h <<_ACEOF
20992 #define pid_t int
20993 _ACEOF
20994
20995 fi
20996
20997
20998
20999 for ac_header in unistd.h vfork.h
21000 do
21001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21003 echo "$as_me:$LINENO: checking for $ac_header" >&5
21004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 fi
21008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21010 else
21011 # Is the header compilable?
21012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21021 #include <$ac_header>
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025 (eval $ac_compile) 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest.$ac_objext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_header_compiler=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_header_compiler=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21054 echo "${ECHO_T}$ac_header_compiler" >&6
21055
21056 # Is the header present?
21057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21059 cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h. */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 #include <$ac_header>
21066 _ACEOF
21067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } >/dev/null; then
21075 if test -s conftest.err; then
21076 ac_cpp_err=$ac_c_preproc_warn_flag
21077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21078 else
21079 ac_cpp_err=
21080 fi
21081 else
21082 ac_cpp_err=yes
21083 fi
21084 if test -z "$ac_cpp_err"; then
21085 ac_header_preproc=yes
21086 else
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_header_preproc=no
21091 fi
21092 rm -f conftest.err conftest.$ac_ext
21093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21094 echo "${ECHO_T}$ac_header_preproc" >&6
21095
21096 # So? What about this header?
21097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21098 yes:no: )
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21103 ac_header_preproc=yes
21104 ;;
21105 no:yes:* )
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21118 (
21119 cat <<\_ASBOX
21120 ## ------------------------------------------ ##
21121 ## Report this to the AC_PACKAGE_NAME lists. ##
21122 ## ------------------------------------------ ##
21123 _ASBOX
21124 ) |
21125 sed "s/^/$as_me: WARNING: /" >&2
21126 ;;
21127 esac
21128 echo "$as_me:$LINENO: checking for $ac_header" >&5
21129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133 eval "$as_ac_Header=\$ac_header_preproc"
21134 fi
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21137
21138 fi
21139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142 _ACEOF
21143
21144 fi
21145
21146 done
21147
21148
21149
21150 for ac_func in fork vfork
21151 do
21152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21153 echo "$as_me:$LINENO: checking for $ac_func" >&5
21154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21155 if eval "test \"\${$as_ac_var+set}\" = set"; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158 cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h. */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21166 #define $ac_func innocuous_$ac_func
21167
21168 /* System header to define __stub macros and hopefully few prototypes,
21169 which can conflict with char $ac_func (); below.
21170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171 <limits.h> exists even on freestanding compilers. */
21172
21173 #ifdef __STDC__
21174 # include <limits.h>
21175 #else
21176 # include <assert.h>
21177 #endif
21178
21179 #undef $ac_func
21180
21181 /* Override any gcc2 internal prototype to avoid an error. */
21182 #ifdef __cplusplus
21183 extern "C"
21184 {
21185 #endif
21186 /* We use char because int might match the return type of a gcc2
21187 builtin and then its argument prototype would still apply. */
21188 char $ac_func ();
21189 /* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
21192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21193 choke me
21194 #else
21195 char (*f) () = $ac_func;
21196 #endif
21197 #ifdef __cplusplus
21198 }
21199 #endif
21200
21201 int
21202 main ()
21203 {
21204 return f != $ac_func;
21205 ;
21206 return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -z "$ac_c_werror_flag"
21219 || test ! -s conftest.err'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } &&
21225 { ac_try='test -s conftest$ac_exeext'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 eval "$as_ac_var=yes"
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 eval "$as_ac_var=no"
21237 fi
21238 rm -f conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21240 fi
21241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246 _ACEOF
21247
21248 fi
21249 done
21250
21251 if test "x$ac_cv_func_fork" = xyes; then
21252 echo "$as_me:$LINENO: checking for working fork" >&5
21253 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21254 if test "${ac_cv_func_fork_works+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257 if test "$cross_compiling" = yes; then
21258 ac_cv_func_fork_works=cross
21259 else
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* By Ruediger Kuhlmann. */
21262 #include <sys/types.h>
21263 #if HAVE_UNISTD_H
21264 # include <unistd.h>
21265 #endif
21266 /* Some systems only have a dummy stub for fork() */
21267 int main ()
21268 {
21269 if (fork() < 0)
21270 exit (1);
21271 exit (0);
21272 }
21273 _ACEOF
21274 rm -f conftest$ac_exeext
21275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276 (eval $ac_link) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_func_fork_works=yes
21286 else
21287 echo "$as_me: program exited with status $ac_status" >&5
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291 ( exit $ac_status )
21292 ac_cv_func_fork_works=no
21293 fi
21294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21295 fi
21296 fi
21297 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21298 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21299
21300 else
21301 ac_cv_func_fork_works=$ac_cv_func_fork
21302 fi
21303 if test "x$ac_cv_func_fork_works" = xcross; then
21304 case $host in
21305 *-*-amigaos* | *-*-msdosdjgpp*)
21306 # Override, as these systems have only a dummy fork() stub
21307 ac_cv_func_fork_works=no
21308 ;;
21309 *)
21310 ac_cv_func_fork_works=yes
21311 ;;
21312 esac
21313 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21314 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21315 fi
21316 ac_cv_func_vfork_works=$ac_cv_func_vfork
21317 if test "x$ac_cv_func_vfork" = xyes; then
21318 echo "$as_me:$LINENO: checking for working vfork" >&5
21319 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21320 if test "${ac_cv_func_vfork_works+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323 if test "$cross_compiling" = yes; then
21324 ac_cv_func_vfork_works=cross
21325 else
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 /* Thanks to Paul Eggert for this test. */
21333 #include <stdio.h>
21334 #include <stdlib.h>
21335 #include <sys/types.h>
21336 #include <sys/stat.h>
21337 #include <sys/wait.h>
21338 #if HAVE_UNISTD_H
21339 # include <unistd.h>
21340 #endif
21341 #if HAVE_VFORK_H
21342 # include <vfork.h>
21343 #endif
21344 /* On some sparc systems, changes by the child to local and incoming
21345 argument registers are propagated back to the parent. The compiler
21346 is told about this with #include <vfork.h>, but some compilers
21347 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21348 static variable whose address is put into a register that is
21349 clobbered by the vfork. */
21350 static void
21351 #ifdef __cplusplus
21352 sparc_address_test (int arg)
21353 # else
21354 sparc_address_test (arg) int arg;
21355 #endif
21356 {
21357 static pid_t child;
21358 if (!child) {
21359 child = vfork ();
21360 if (child < 0) {
21361 perror ("vfork");
21362 _exit(2);
21363 }
21364 if (!child) {
21365 arg = getpid();
21366 write(-1, "", 0);
21367 _exit (arg);
21368 }
21369 }
21370 }
21371
21372 int
21373 main ()
21374 {
21375 pid_t parent = getpid ();
21376 pid_t child;
21377
21378 sparc_address_test (0);
21379
21380 child = vfork ();
21381
21382 if (child == 0) {
21383 /* Here is another test for sparc vfork register problems. This
21384 test uses lots of local variables, at least as many local
21385 variables as main has allocated so far including compiler
21386 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21387 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21388 reuse the register of parent for one of the local variables,
21389 since it will think that parent can't possibly be used any more
21390 in this routine. Assigning to the local variable will thus
21391 munge parent in the parent process. */
21392 pid_t
21393 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21394 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21395 /* Convince the compiler that p..p7 are live; otherwise, it might
21396 use the same hardware register for all 8 local variables. */
21397 if (p != p1 || p != p2 || p != p3 || p != p4
21398 || p != p5 || p != p6 || p != p7)
21399 _exit(1);
21400
21401 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21402 from child file descriptors. If the child closes a descriptor
21403 before it execs or exits, this munges the parent's descriptor
21404 as well. Test for this by closing stdout in the child. */
21405 _exit(close(fileno(stdout)) != 0);
21406 } else {
21407 int status;
21408 struct stat st;
21409
21410 while (wait(&status) != child)
21411 ;
21412 exit(
21413 /* Was there some problem with vforking? */
21414 child < 0
21415
21416 /* Did the child fail? (This shouldn't happen.) */
21417 || status
21418
21419 /* Did the vfork/compiler bug occur? */
21420 || parent != getpid()
21421
21422 /* Did the file descriptor bug occur? */
21423 || fstat(fileno(stdout), &st) != 0
21424 );
21425 }
21426 }
21427 _ACEOF
21428 rm -f conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_func_vfork_works=yes
21440 else
21441 echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ( exit $ac_status )
21446 ac_cv_func_vfork_works=no
21447 fi
21448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21449 fi
21450 fi
21451 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21452 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21453
21454 fi;
21455 if test "x$ac_cv_func_fork_works" = xcross; then
21456 ac_cv_func_vfork_works=$ac_cv_func_vfork
21457 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21458 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21459 fi
21460
21461 if test "x$ac_cv_func_vfork_works" = xyes; then
21462
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_WORKING_VFORK 1
21465 _ACEOF
21466
21467 else
21468
21469 cat >>confdefs.h <<\_ACEOF
21470 #define vfork fork
21471 _ACEOF
21472
21473 fi
21474 if test "x$ac_cv_func_fork_works" = xyes; then
21475
21476 cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_WORKING_FORK 1
21478 _ACEOF
21479
21480 fi
21481
21482
21483
21484 for ac_func in canonicalize_file_name realpath
21485 do
21486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21487 echo "$as_me:$LINENO: checking for $ac_func" >&5
21488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21489 if eval "test \"\${$as_ac_var+set}\" = set"; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21500 #define $ac_func innocuous_$ac_func
21501
21502 /* System header to define __stub macros and hopefully few prototypes,
21503 which can conflict with char $ac_func (); below.
21504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21505 <limits.h> exists even on freestanding compilers. */
21506
21507 #ifdef __STDC__
21508 # include <limits.h>
21509 #else
21510 # include <assert.h>
21511 #endif
21512
21513 #undef $ac_func
21514
21515 /* Override any gcc2 internal prototype to avoid an error. */
21516 #ifdef __cplusplus
21517 extern "C"
21518 {
21519 #endif
21520 /* We use char because int might match the return type of a gcc2
21521 builtin and then its argument prototype would still apply. */
21522 char $ac_func ();
21523 /* The GNU C library defines this for functions which it implements
21524 to always fail with ENOSYS. Some functions are actually named
21525 something starting with __ and the normal name is an alias. */
21526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21527 choke me
21528 #else
21529 char (*f) () = $ac_func;
21530 #endif
21531 #ifdef __cplusplus
21532 }
21533 #endif
21534
21535 int
21536 main ()
21537 {
21538 return f != $ac_func;
21539 ;
21540 return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21545 (eval $ac_link) 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_c_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest$ac_exeext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 eval "$as_ac_var=yes"
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 eval "$as_ac_var=no"
21571 fi
21572 rm -f conftest.err conftest.$ac_objext \
21573 conftest$ac_exeext conftest.$ac_ext
21574 fi
21575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21577 if test `eval echo '${'$as_ac_var'}'` = yes; then
21578 cat >>confdefs.h <<_ACEOF
21579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21580 _ACEOF
21581
21582 fi
21583 done
21584
21585
21586 for ac_func in getrusage
21587 do
21588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589 echo "$as_me:$LINENO: checking for $ac_func" >&5
21590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21591 if eval "test \"\${$as_ac_var+set}\" = set"; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h. */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602 #define $ac_func innocuous_$ac_func
21603
21604 /* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21608
21609 #ifdef __STDC__
21610 # include <limits.h>
21611 #else
21612 # include <assert.h>
21613 #endif
21614
21615 #undef $ac_func
21616
21617 /* Override any gcc2 internal prototype to avoid an error. */
21618 #ifdef __cplusplus
21619 extern "C"
21620 {
21621 #endif
21622 /* We use char because int might match the return type of a gcc2
21623 builtin and then its argument prototype would still apply. */
21624 char $ac_func ();
21625 /* The GNU C library defines this for functions which it implements
21626 to always fail with ENOSYS. Some functions are actually named
21627 something starting with __ and the normal name is an alias. */
21628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21629 choke me
21630 #else
21631 char (*f) () = $ac_func;
21632 #endif
21633 #ifdef __cplusplus
21634 }
21635 #endif
21636
21637 int
21638 main ()
21639 {
21640 return f != $ac_func;
21641 ;
21642 return 0;
21643 }
21644 _ACEOF
21645 rm -f conftest.$ac_objext conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>conftest.er1
21648 ac_status=$?
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
21654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest$ac_exeext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 eval "$as_ac_var=yes"
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 eval "$as_ac_var=no"
21673 fi
21674 rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
21676 fi
21677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21679 if test `eval echo '${'$as_ac_var'}'` = yes; then
21680 cat >>confdefs.h <<_ACEOF
21681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21682 _ACEOF
21683
21684 fi
21685 done
21686
21687
21688
21689 for ac_func in getuid getgid
21690 do
21691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21692 echo "$as_me:$LINENO: checking for $ac_func" >&5
21693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21694 if eval "test \"\${$as_ac_var+set}\" = set"; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21705 #define $ac_func innocuous_$ac_func
21706
21707 /* System header to define __stub macros and hopefully few prototypes,
21708 which can conflict with char $ac_func (); below.
21709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21710 <limits.h> exists even on freestanding compilers. */
21711
21712 #ifdef __STDC__
21713 # include <limits.h>
21714 #else
21715 # include <assert.h>
21716 #endif
21717
21718 #undef $ac_func
21719
21720 /* Override any gcc2 internal prototype to avoid an error. */
21721 #ifdef __cplusplus
21722 extern "C"
21723 {
21724 #endif
21725 /* We use char because int might match the return type of a gcc2
21726 builtin and then its argument prototype would still apply. */
21727 char $ac_func ();
21728 /* The GNU C library defines this for functions which it implements
21729 to always fail with ENOSYS. Some functions are actually named
21730 something starting with __ and the normal name is an alias. */
21731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21732 choke me
21733 #else
21734 char (*f) () = $ac_func;
21735 #endif
21736 #ifdef __cplusplus
21737 }
21738 #endif
21739
21740 int
21741 main ()
21742 {
21743 return f != $ac_func;
21744 ;
21745 return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750 (eval $ac_link) 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 eval "$as_ac_var=yes"
21771 else
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21774
21775 eval "$as_ac_var=no"
21776 fi
21777 rm -f conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21779 fi
21780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21782 if test `eval echo '${'$as_ac_var'}'` = yes; then
21783 cat >>confdefs.h <<_ACEOF
21784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21785 _ACEOF
21786
21787 fi
21788 done
21789
21790
21791 for ac_func in poll
21792 do
21793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21794 echo "$as_me:$LINENO: checking for $ac_func" >&5
21795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21796 if eval "test \"\${$as_ac_var+set}\" = set"; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21807 #define $ac_func innocuous_$ac_func
21808
21809 /* System header to define __stub macros and hopefully few prototypes,
21810 which can conflict with char $ac_func (); below.
21811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21812 <limits.h> exists even on freestanding compilers. */
21813
21814 #ifdef __STDC__
21815 # include <limits.h>
21816 #else
21817 # include <assert.h>
21818 #endif
21819
21820 #undef $ac_func
21821
21822 /* Override any gcc2 internal prototype to avoid an error. */
21823 #ifdef __cplusplus
21824 extern "C"
21825 {
21826 #endif
21827 /* We use char because int might match the return type of a gcc2
21828 builtin and then its argument prototype would still apply. */
21829 char $ac_func ();
21830 /* The GNU C library defines this for functions which it implements
21831 to always fail with ENOSYS. Some functions are actually named
21832 something starting with __ and the normal name is an alias. */
21833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21834 choke me
21835 #else
21836 char (*f) () = $ac_func;
21837 #endif
21838 #ifdef __cplusplus
21839 }
21840 #endif
21841
21842 int
21843 main ()
21844 {
21845 return f != $ac_func;
21846 ;
21847 return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
21859 { ac_try='test -z "$ac_c_werror_flag"
21860 || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 eval "$as_ac_var=yes"
21873 else
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 eval "$as_ac_var=no"
21878 fi
21879 rm -f conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881 fi
21882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21884 if test `eval echo '${'$as_ac_var'}'` = yes; then
21885 cat >>confdefs.h <<_ACEOF
21886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21887 _ACEOF
21888
21889 fi
21890 done
21891
21892
21893 for ac_func in pread64
21894 do
21895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21896 echo "$as_me:$LINENO: checking for $ac_func" >&5
21897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21898 if eval "test \"\${$as_ac_var+set}\" = set"; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21909 #define $ac_func innocuous_$ac_func
21910
21911 /* System header to define __stub macros and hopefully few prototypes,
21912 which can conflict with char $ac_func (); below.
21913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21914 <limits.h> exists even on freestanding compilers. */
21915
21916 #ifdef __STDC__
21917 # include <limits.h>
21918 #else
21919 # include <assert.h>
21920 #endif
21921
21922 #undef $ac_func
21923
21924 /* Override any gcc2 internal prototype to avoid an error. */
21925 #ifdef __cplusplus
21926 extern "C"
21927 {
21928 #endif
21929 /* We use char because int might match the return type of a gcc2
21930 builtin and then its argument prototype would still apply. */
21931 char $ac_func ();
21932 /* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
21935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21936 choke me
21937 #else
21938 char (*f) () = $ac_func;
21939 #endif
21940 #ifdef __cplusplus
21941 }
21942 #endif
21943
21944 int
21945 main ()
21946 {
21947 return f != $ac_func;
21948 ;
21949 return 0;
21950 }
21951 _ACEOF
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 eval "$as_ac_var=yes"
21975 else
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 eval "$as_ac_var=no"
21980 fi
21981 rm -f conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext conftest.$ac_ext
21983 fi
21984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21986 if test `eval echo '${'$as_ac_var'}'` = yes; then
21987 cat >>confdefs.h <<_ACEOF
21988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21989 _ACEOF
21990
21991 fi
21992 done
21993
21994
21995 for ac_func in sbrk
21996 do
21997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21998 echo "$as_me:$LINENO: checking for $ac_func" >&5
21999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22000 if eval "test \"\${$as_ac_var+set}\" = set"; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003 cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h. */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22011 #define $ac_func innocuous_$ac_func
22012
22013 /* System header to define __stub macros and hopefully few prototypes,
22014 which can conflict with char $ac_func (); below.
22015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22016 <limits.h> exists even on freestanding compilers. */
22017
22018 #ifdef __STDC__
22019 # include <limits.h>
22020 #else
22021 # include <assert.h>
22022 #endif
22023
22024 #undef $ac_func
22025
22026 /* Override any gcc2 internal prototype to avoid an error. */
22027 #ifdef __cplusplus
22028 extern "C"
22029 {
22030 #endif
22031 /* We use char because int might match the return type of a gcc2
22032 builtin and then its argument prototype would still apply. */
22033 char $ac_func ();
22034 /* The GNU C library defines this for functions which it implements
22035 to always fail with ENOSYS. Some functions are actually named
22036 something starting with __ and the normal name is an alias. */
22037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22038 choke me
22039 #else
22040 char (*f) () = $ac_func;
22041 #endif
22042 #ifdef __cplusplus
22043 }
22044 #endif
22045
22046 int
22047 main ()
22048 {
22049 return f != $ac_func;
22050 ;
22051 return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext conftest$ac_exeext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22056 (eval $ac_link) 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } &&
22063 { ac_try='test -z "$ac_c_werror_flag"
22064 || test ! -s conftest.err'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22067 ac_status=$?
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; } &&
22070 { ac_try='test -s conftest$ac_exeext'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; }; then
22076 eval "$as_ac_var=yes"
22077 else
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 eval "$as_ac_var=no"
22082 fi
22083 rm -f conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22085 fi
22086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22088 if test `eval echo '${'$as_ac_var'}'` = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22091 _ACEOF
22092
22093 fi
22094 done
22095
22096
22097
22098
22099 for ac_func in setpgid setpgrp setsid
22100 do
22101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22102 echo "$as_me:$LINENO: checking for $ac_func" >&5
22103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22104 if eval "test \"\${$as_ac_var+set}\" = set"; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 else
22107 cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h. */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22115 #define $ac_func innocuous_$ac_func
22116
22117 /* System header to define __stub macros and hopefully few prototypes,
22118 which can conflict with char $ac_func (); below.
22119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22120 <limits.h> exists even on freestanding compilers. */
22121
22122 #ifdef __STDC__
22123 # include <limits.h>
22124 #else
22125 # include <assert.h>
22126 #endif
22127
22128 #undef $ac_func
22129
22130 /* Override any gcc2 internal prototype to avoid an error. */
22131 #ifdef __cplusplus
22132 extern "C"
22133 {
22134 #endif
22135 /* We use char because int might match the return type of a gcc2
22136 builtin and then its argument prototype would still apply. */
22137 char $ac_func ();
22138 /* The GNU C library defines this for functions which it implements
22139 to always fail with ENOSYS. Some functions are actually named
22140 something starting with __ and the normal name is an alias. */
22141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22142 choke me
22143 #else
22144 char (*f) () = $ac_func;
22145 #endif
22146 #ifdef __cplusplus
22147 }
22148 #endif
22149
22150 int
22151 main ()
22152 {
22153 return f != $ac_func;
22154 ;
22155 return 0;
22156 }
22157 _ACEOF
22158 rm -f conftest.$ac_objext conftest$ac_exeext
22159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22160 (eval $ac_link) 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
22167 { ac_try='test -z "$ac_c_werror_flag"
22168 || test ! -s conftest.err'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; } &&
22174 { ac_try='test -s conftest$ac_exeext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 eval "$as_ac_var=yes"
22181 else
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 eval "$as_ac_var=no"
22186 fi
22187 rm -f conftest.err conftest.$ac_objext \
22188 conftest$ac_exeext conftest.$ac_ext
22189 fi
22190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22192 if test `eval echo '${'$as_ac_var'}'` = yes; then
22193 cat >>confdefs.h <<_ACEOF
22194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22195 _ACEOF
22196
22197 fi
22198 done
22199
22200
22201
22202
22203 for ac_func in sigaction sigprocmask sigsetmask
22204 do
22205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22206 echo "$as_me:$LINENO: checking for $ac_func" >&5
22207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22208 if eval "test \"\${$as_ac_var+set}\" = set"; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22219 #define $ac_func innocuous_$ac_func
22220
22221 /* System header to define __stub macros and hopefully few prototypes,
22222 which can conflict with char $ac_func (); below.
22223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22224 <limits.h> exists even on freestanding compilers. */
22225
22226 #ifdef __STDC__
22227 # include <limits.h>
22228 #else
22229 # include <assert.h>
22230 #endif
22231
22232 #undef $ac_func
22233
22234 /* Override any gcc2 internal prototype to avoid an error. */
22235 #ifdef __cplusplus
22236 extern "C"
22237 {
22238 #endif
22239 /* We use char because int might match the return type of a gcc2
22240 builtin and then its argument prototype would still apply. */
22241 char $ac_func ();
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22246 choke me
22247 #else
22248 char (*f) () = $ac_func;
22249 #endif
22250 #ifdef __cplusplus
22251 }
22252 #endif
22253
22254 int
22255 main ()
22256 {
22257 return f != $ac_func;
22258 ;
22259 return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264 (eval $ac_link) 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag"
22272 || test ! -s conftest.err'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 eval "$as_ac_var=yes"
22285 else
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289 eval "$as_ac_var=no"
22290 fi
22291 rm -f conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext conftest.$ac_ext
22293 fi
22294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299 _ACEOF
22300
22301 fi
22302 done
22303
22304
22305 for ac_func in socketpair
22306 do
22307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22308 echo "$as_me:$LINENO: checking for $ac_func" >&5
22309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22310 if eval "test \"\${$as_ac_var+set}\" = set"; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22321 #define $ac_func innocuous_$ac_func
22322
22323 /* System header to define __stub macros and hopefully few prototypes,
22324 which can conflict with char $ac_func (); below.
22325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22326 <limits.h> exists even on freestanding compilers. */
22327
22328 #ifdef __STDC__
22329 # include <limits.h>
22330 #else
22331 # include <assert.h>
22332 #endif
22333
22334 #undef $ac_func
22335
22336 /* Override any gcc2 internal prototype to avoid an error. */
22337 #ifdef __cplusplus
22338 extern "C"
22339 {
22340 #endif
22341 /* We use char because int might match the return type of a gcc2
22342 builtin and then its argument prototype would still apply. */
22343 char $ac_func ();
22344 /* The GNU C library defines this for functions which it implements
22345 to always fail with ENOSYS. Some functions are actually named
22346 something starting with __ and the normal name is an alias. */
22347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22348 choke me
22349 #else
22350 char (*f) () = $ac_func;
22351 #endif
22352 #ifdef __cplusplus
22353 }
22354 #endif
22355
22356 int
22357 main ()
22358 {
22359 return f != $ac_func;
22360 ;
22361 return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22366 (eval $ac_link) 2>conftest.er1
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -z "$ac_c_werror_flag"
22374 || test ! -s conftest.err'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; } &&
22380 { ac_try='test -s conftest$ac_exeext'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 eval "$as_ac_var=yes"
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22390
22391 eval "$as_ac_var=no"
22392 fi
22393 rm -f conftest.err conftest.$ac_objext \
22394 conftest$ac_exeext conftest.$ac_ext
22395 fi
22396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22398 if test `eval echo '${'$as_ac_var'}'` = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22401 _ACEOF
22402
22403 fi
22404 done
22405
22406
22407 for ac_func in syscall
22408 do
22409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22410 echo "$as_me:$LINENO: checking for $ac_func" >&5
22411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22412 if eval "test \"\${$as_ac_var+set}\" = set"; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22423 #define $ac_func innocuous_$ac_func
22424
22425 /* System header to define __stub macros and hopefully few prototypes,
22426 which can conflict with char $ac_func (); below.
22427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22428 <limits.h> exists even on freestanding compilers. */
22429
22430 #ifdef __STDC__
22431 # include <limits.h>
22432 #else
22433 # include <assert.h>
22434 #endif
22435
22436 #undef $ac_func
22437
22438 /* Override any gcc2 internal prototype to avoid an error. */
22439 #ifdef __cplusplus
22440 extern "C"
22441 {
22442 #endif
22443 /* We use char because int might match the return type of a gcc2
22444 builtin and then its argument prototype would still apply. */
22445 char $ac_func ();
22446 /* The GNU C library defines this for functions which it implements
22447 to always fail with ENOSYS. Some functions are actually named
22448 something starting with __ and the normal name is an alias. */
22449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22450 choke me
22451 #else
22452 char (*f) () = $ac_func;
22453 #endif
22454 #ifdef __cplusplus
22455 }
22456 #endif
22457
22458 int
22459 main ()
22460 {
22461 return f != $ac_func;
22462 ;
22463 return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22468 (eval $ac_link) 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
22475 { ac_try='test -z "$ac_c_werror_flag"
22476 || test ! -s conftest.err'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s 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 eval "$as_ac_var=yes"
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22492
22493 eval "$as_ac_var=no"
22494 fi
22495 rm -f conftest.err conftest.$ac_objext \
22496 conftest$ac_exeext conftest.$ac_ext
22497 fi
22498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22500 if test `eval echo '${'$as_ac_var'}'` = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22503 _ACEOF
22504
22505 fi
22506 done
22507
22508
22509 for ac_func in ttrace
22510 do
22511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22512 echo "$as_me:$LINENO: checking for $ac_func" >&5
22513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22514 if eval "test \"\${$as_ac_var+set}\" = set"; then
22515 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 else
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22525 #define $ac_func innocuous_$ac_func
22526
22527 /* System header to define __stub macros and hopefully few prototypes,
22528 which can conflict with char $ac_func (); below.
22529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22530 <limits.h> exists even on freestanding compilers. */
22531
22532 #ifdef __STDC__
22533 # include <limits.h>
22534 #else
22535 # include <assert.h>
22536 #endif
22537
22538 #undef $ac_func
22539
22540 /* Override any gcc2 internal prototype to avoid an error. */
22541 #ifdef __cplusplus
22542 extern "C"
22543 {
22544 #endif
22545 /* We use char because int might match the return type of a gcc2
22546 builtin and then its argument prototype would still apply. */
22547 char $ac_func ();
22548 /* The GNU C library defines this for functions which it implements
22549 to always fail with ENOSYS. Some functions are actually named
22550 something starting with __ and the normal name is an alias. */
22551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22552 choke me
22553 #else
22554 char (*f) () = $ac_func;
22555 #endif
22556 #ifdef __cplusplus
22557 }
22558 #endif
22559
22560 int
22561 main ()
22562 {
22563 return f != $ac_func;
22564 ;
22565 return 0;
22566 }
22567 _ACEOF
22568 rm -f conftest.$ac_objext conftest$ac_exeext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22570 (eval $ac_link) 2>conftest.er1
22571 ac_status=$?
22572 grep -v '^ *+' conftest.er1 >conftest.err
22573 rm -f conftest.er1
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -z "$ac_c_werror_flag"
22578 || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try='test -s conftest$ac_exeext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 eval "$as_ac_var=yes"
22591 else
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595 eval "$as_ac_var=no"
22596 fi
22597 rm -f conftest.err conftest.$ac_objext \
22598 conftest$ac_exeext conftest.$ac_ext
22599 fi
22600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22602 if test `eval echo '${'$as_ac_var'}'` = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22605 _ACEOF
22606
22607 fi
22608 done
22609
22610
22611 for ac_func in wborder
22612 do
22613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22614 echo "$as_me:$LINENO: checking for $ac_func" >&5
22615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22616 if eval "test \"\${$as_ac_var+set}\" = set"; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619 cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h. */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22627 #define $ac_func innocuous_$ac_func
22628
22629 /* System header to define __stub macros and hopefully few prototypes,
22630 which can conflict with char $ac_func (); below.
22631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632 <limits.h> exists even on freestanding compilers. */
22633
22634 #ifdef __STDC__
22635 # include <limits.h>
22636 #else
22637 # include <assert.h>
22638 #endif
22639
22640 #undef $ac_func
22641
22642 /* Override any gcc2 internal prototype to avoid an error. */
22643 #ifdef __cplusplus
22644 extern "C"
22645 {
22646 #endif
22647 /* We use char because int might match the return type of a gcc2
22648 builtin and then its argument prototype would still apply. */
22649 char $ac_func ();
22650 /* The GNU C library defines this for functions which it implements
22651 to always fail with ENOSYS. Some functions are actually named
22652 something starting with __ and the normal name is an alias. */
22653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22654 choke me
22655 #else
22656 char (*f) () = $ac_func;
22657 #endif
22658 #ifdef __cplusplus
22659 }
22660 #endif
22661
22662 int
22663 main ()
22664 {
22665 return f != $ac_func;
22666 ;
22667 return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22672 (eval $ac_link) 2>conftest.er1
22673 ac_status=$?
22674 grep -v '^ *+' conftest.er1 >conftest.err
22675 rm -f conftest.er1
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try='test -s conftest$ac_exeext'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22689 ac_status=$?
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 eval "$as_ac_var=yes"
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 eval "$as_ac_var=no"
22698 fi
22699 rm -f conftest.err conftest.$ac_objext \
22700 conftest$ac_exeext conftest.$ac_ext
22701 fi
22702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22704 if test `eval echo '${'$as_ac_var'}'` = yes; then
22705 cat >>confdefs.h <<_ACEOF
22706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22707 _ACEOF
22708
22709 fi
22710 done
22711
22712
22713 # Check the return and argument types of ptrace. No canned test for
22714 # this, so roll our own.
22715 gdb_ptrace_headers='
22716 #if HAVE_SYS_TYPES_H
22717 # include <sys/types.h>
22718 #endif
22719 #if HAVE_SYS_PTRACE_H
22720 # include <sys/ptrace.h>
22721 #endif
22722 #if HAVE_UNISTD_H
22723 # include <unistd.h>
22724 #endif
22725 '
22726 # There is no point in checking if we don't have a prototype.
22727 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
22728 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
22729 if test "${ac_cv_have_decl_ptrace+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732 cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 $gdb_ptrace_headers
22739
22740 int
22741 main ()
22742 {
22743 #ifndef ptrace
22744 char *p = (char *) ptrace;
22745 #endif
22746
22747 ;
22748 return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 ac_cv_have_decl_ptrace=yes
22774 else
22775 echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778 ac_cv_have_decl_ptrace=no
22779 fi
22780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22781 fi
22782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
22783 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
22784 if test $ac_cv_have_decl_ptrace = yes; then
22785
22786 cat >>confdefs.h <<_ACEOF
22787 #define HAVE_DECL_PTRACE 1
22788 _ACEOF
22789
22790
22791 else
22792 cat >>confdefs.h <<_ACEOF
22793 #define HAVE_DECL_PTRACE 0
22794 _ACEOF
22795
22796
22797 : ${gdb_cv_func_ptrace_ret='int'}
22798 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
22799
22800 fi
22801
22802
22803 # Check return type.
22804 echo "$as_me:$LINENO: checking return type of ptrace" >&5
22805 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
22806 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $gdb_ptrace_headers
22816 int
22817 main ()
22818 {
22819 extern int ptrace ();
22820 ;
22821 return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22826 (eval $ac_compile) 2>conftest.er1
22827 ac_status=$?
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } &&
22833 { ac_try='test -z "$ac_c_werror_flag"
22834 || test ! -s conftest.err'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; } &&
22840 { ac_try='test -s conftest.$ac_objext'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 gdb_cv_func_ptrace_ret='int'
22847 else
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851 gdb_cv_func_ptrace_ret='long'
22852 fi
22853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22854 fi
22855 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
22856 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
22857
22858 cat >>confdefs.h <<_ACEOF
22859 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
22860 _ACEOF
22861
22862 # Check argument types.
22863 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
22864 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
22865 if test "${gdb_cv_func_ptrace_args+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868
22869 for gdb_arg1 in 'int' 'long'; do
22870 for gdb_arg2 in 'pid_t' 'int' 'long'; do
22871 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
22872 for gdb_arg4 in 'int' 'long'; do
22873 cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h. */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $gdb_ptrace_headers
22880 int
22881 main ()
22882 {
22883
22884 extern $gdb_cv_func_ptrace_ret
22885 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
22886
22887 ;
22888 return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
22900 { ac_try='test -z "$ac_c_werror_flag"
22901 || test ! -s conftest.err'
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; } &&
22907 { ac_try='test -s conftest.$ac_objext'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
22914 break 4;
22915 else
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919 fi
22920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22921 for gdb_arg5 in 'int *' 'int' 'long'; do
22922 cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h. */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 $gdb_ptrace_headers
22929 int
22930 main ()
22931 {
22932
22933 extern $gdb_cv_func_ptrace_ret
22934 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
22935
22936 ;
22937 return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22942 (eval $ac_compile) 2>conftest.er1
22943 ac_status=$?
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -z "$ac_c_werror_flag"
22950 || test ! -s conftest.err'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest.$ac_objext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962
22963 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
22964 break 5;
22965 else
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22968
22969 fi
22970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22971 done
22972 done
22973 done
22974 done
22975 done
22976 # Provide a safe default value.
22977 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
22978
22979 fi
22980 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
22981 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
22982 ac_save_IFS=$IFS; IFS=','
22983 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
22984 IFS=$ac_save_IFS
22985 shift
22986
22987 cat >>confdefs.h <<_ACEOF
22988 #define PTRACE_TYPE_ARG3 $3
22989 _ACEOF
22990
22991 if test -n "$5"; then
22992
22993 cat >>confdefs.h <<_ACEOF
22994 #define PTRACE_TYPE_ARG5 $5
22995 _ACEOF
22996
22997 fi
22998
22999 if test "$cross_compiling" = no; then
23000 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23001 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23002 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005 if test "$cross_compiling" = yes; then
23006 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23007 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23008 { (exit 1); exit 1; }; }
23009 else
23010 cat >conftest.$ac_ext <<_ACEOF
23011 /* confdefs.h. */
23012 _ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23016 #if HAVE_UNISTD_H
23017 # include <unistd.h>
23018 #endif
23019
23020 int
23021 main ()
23022 {
23023 /* If this system has a BSD-style setpgrp which takes arguments,
23024 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23025 exit successfully. */
23026 exit (setpgrp (1,1) == -1 ? 0 : 1);
23027 ;
23028 return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest$ac_exeext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 (eval $ac_link) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_func_setpgrp_void=no
23043 else
23044 echo "$as_me: program exited with status $ac_status" >&5
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23047
23048 ( exit $ac_status )
23049 ac_cv_func_setpgrp_void=yes
23050 fi
23051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 fi
23054 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23055 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23056 if test $ac_cv_func_setpgrp_void = yes; then
23057
23058 cat >>confdefs.h <<\_ACEOF
23059 #define SETPGRP_VOID 1
23060 _ACEOF
23061
23062 fi
23063
23064 else
23065 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23066 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23067 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070 cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h. */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23076
23077 #include <unistd.h>
23078
23079 int
23080 main ()
23081 {
23082
23083 if (setpgrp(1,1) == -1)
23084 exit (0);
23085 else
23086 exit (1);
23087
23088 ;
23089 return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23094 (eval $ac_compile) 2>conftest.er1
23095 ac_status=$?
23096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
23101 { ac_try='test -z "$ac_c_werror_flag"
23102 || test ! -s conftest.err'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest.$ac_objext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 ac_cv_func_setpgrp_void=no
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119 ac_cv_func_setpgrp_void=yes
23120 fi
23121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23122 fi
23123 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23124 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23125 if test $ac_cv_func_setpgrp_void = yes; then
23126 cat >>confdefs.h <<\_ACEOF
23127 #define SETPGRP_VOID 1
23128 _ACEOF
23129
23130 fi
23131 fi
23132
23133 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23134 # since sigsetjmp might only be defined as a macro.
23135 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23136 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
23137 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146
23147 #include <setjmp.h>
23148
23149 int
23150 main ()
23151 {
23152 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
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_func_sigsetjmp=yes
23180 else
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184 gdb_cv_func_sigsetjmp=no
23185 fi
23186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23187 fi
23188 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23189 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
23190 if test $gdb_cv_func_sigsetjmp = yes; then
23191
23192 cat >>confdefs.h <<\_ACEOF
23193 #define HAVE_SIGSETJMP 1
23194 _ACEOF
23195
23196 fi
23197
23198 # Assume we'll default to using the included libiberty regex.
23199 gdb_use_included_regex=yes
23200
23201 # However, if the system regex is GNU regex, then default to *not*
23202 # using the included regex.
23203 echo "$as_me:$LINENO: checking for GNU regex" >&5
23204 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
23205 if test "${gdb_cv_have_gnu_regex+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h. */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 #include <gnu-versions.h>
23215 int
23216 main ()
23217 {
23218 #define REGEX_INTERFACE_VERSION 1
23219 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23220 # error "Version mismatch"
23221 #endif
23222 ;
23223 return 0;
23224 }
23225 _ACEOF
23226 rm -f conftest.$ac_objext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23228 (eval $ac_compile) 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 gdb_cv_have_gnu_regex=yes
23249 else
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 gdb_cv_have_gnu_regex=no
23254 fi
23255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23256 fi
23257 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23258 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
23259 if test $gdb_cv_have_gnu_regex = yes; then
23260 gdb_use_included_regex=no
23261 fi
23262
23263
23264 # Check whether --with-included-regex or --without-included-regex was given.
23265 if test "${with_included_regex+set}" = set; then
23266 withval="$with_included_regex"
23267 gdb_with_regex=$withval
23268 else
23269 gdb_with_regex=$gdb_use_included_regex
23270 fi;
23271 if test "$gdb_with_regex" = yes; then
23272
23273 cat >>confdefs.h <<\_ACEOF
23274 #define USE_INCLUDED_REGEX 1
23275 _ACEOF
23276
23277 fi
23278
23279 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
23280 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23281 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
23282 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 else
23285 cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h. */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23291 #include <sys/param.h>
23292 #include <sys/proc.h>
23293
23294
23295 int
23296 main ()
23297 {
23298 static struct thread ac_aggr;
23299 if (ac_aggr.td_pcb)
23300 return 0;
23301 ;
23302 return 0;
23303 }
23304 _ACEOF
23305 rm -f conftest.$ac_objext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_member_struct_thread_td_pcb=yes
23328 else
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23331
23332 cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h. */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h. */
23338 #include <sys/param.h>
23339 #include <sys/proc.h>
23340
23341
23342 int
23343 main ()
23344 {
23345 static struct thread ac_aggr;
23346 if (sizeof ac_aggr.td_pcb)
23347 return 0;
23348 ;
23349 return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354 (eval $ac_compile) 2>conftest.er1
23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
23361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest.$ac_objext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_cv_member_struct_thread_td_pcb=yes
23375 else
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ac_cv_member_struct_thread_td_pcb=no
23380 fi
23381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23382 fi
23383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23384 fi
23385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23386 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
23387 if test $ac_cv_member_struct_thread_td_pcb = yes; then
23388
23389 cat >>confdefs.h <<_ACEOF
23390 #define HAVE_STRUCT_THREAD_TD_PCB 1
23391 _ACEOF
23392
23393
23394 fi
23395
23396
23397 # See if <sys/lwp.h> defines `struct lwp`.
23398 echo "$as_me:$LINENO: checking for struct lwp" >&5
23399 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
23400 if test "${gdb_cv_struct_lwp+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 else
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h. */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 #include <sys/param.h>
23410 #include <sys/lwp.h>
23411 int
23412 main ()
23413 {
23414 struct lwp l;
23415 ;
23416 return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23421 (eval $ac_compile) 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_c_werror_flag"
23429 || test ! -s conftest.err'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; } &&
23435 { ac_try='test -s conftest.$ac_objext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 gdb_cv_struct_lwp=yes
23442 else
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446 gdb_cv_struct_lwp=no
23447 fi
23448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23449 fi
23450 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23451 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
23452 if test $gdb_cv_struct_lwp = yes; then
23453
23454 cat >>confdefs.h <<\_ACEOF
23455 #define HAVE_STRUCT_LWP 1
23456 _ACEOF
23457
23458 fi
23459
23460 # See if <machine/reg.h> degines `struct reg'.
23461 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23462 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
23463 if test "${gdb_cv_struct_reg+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 else
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 #include <sys/types.h>
23473 #include <machine/reg.h>
23474 int
23475 main ()
23476 {
23477 struct reg r;
23478 ;
23479 return 0;
23480 }
23481 _ACEOF
23482 rm -f conftest.$ac_objext
23483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23484 (eval $ac_compile) 2>conftest.er1
23485 ac_status=$?
23486 grep -v '^ *+' conftest.er1 >conftest.err
23487 rm -f conftest.er1
23488 cat conftest.err >&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } &&
23491 { ac_try='test -z "$ac_c_werror_flag"
23492 || test ! -s conftest.err'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; } &&
23498 { ac_try='test -s conftest.$ac_objext'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504 gdb_cv_struct_reg=yes
23505 else
23506 echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509 gdb_cv_struct_reg=no
23510 fi
23511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23512 fi
23513 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23514 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
23515 if test $gdb_cv_struct_reg = yes; then
23516
23517 cat >>confdefs.h <<\_ACEOF
23518 #define HAVE_STRUCT_REG 1
23519 _ACEOF
23520
23521 fi
23522
23523 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23524 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
23525 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23526 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
23527 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530 cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h. */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 #include <machine/reg.h>
23537
23538 int
23539 main ()
23540 {
23541 static struct reg ac_aggr;
23542 if (ac_aggr.r_fs)
23543 return 0;
23544 ;
23545 return 0;
23546 }
23547 _ACEOF
23548 rm -f conftest.$ac_objext
23549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23550 (eval $ac_compile) 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
23557 { ac_try='test -z "$ac_c_werror_flag"
23558 || test ! -s conftest.err'
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest.$ac_objext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 ac_cv_member_struct_reg_r_fs=yes
23571 else
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23574
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <machine/reg.h>
23582
23583 int
23584 main ()
23585 {
23586 static struct reg ac_aggr;
23587 if (sizeof ac_aggr.r_fs)
23588 return 0;
23589 ;
23590 return 0;
23591 }
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23595 (eval $ac_compile) 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } &&
23602 { ac_try='test -z "$ac_c_werror_flag"
23603 || test ! -s conftest.err'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; } &&
23609 { ac_try='test -s conftest.$ac_objext'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23615 ac_cv_member_struct_reg_r_fs=yes
23616 else
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620 ac_cv_member_struct_reg_r_fs=no
23621 fi
23622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23623 fi
23624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23625 fi
23626 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23627 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
23628 if test $ac_cv_member_struct_reg_r_fs = yes; then
23629
23630 cat >>confdefs.h <<_ACEOF
23631 #define HAVE_STRUCT_REG_R_FS 1
23632 _ACEOF
23633
23634
23635 fi
23636 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23637 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
23638 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
23639 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 else
23641 cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h. */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 #include <machine/reg.h>
23648
23649 int
23650 main ()
23651 {
23652 static struct reg ac_aggr;
23653 if (ac_aggr.r_gs)
23654 return 0;
23655 ;
23656 return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23661 (eval $ac_compile) 2>conftest.er1
23662 ac_status=$?
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest.$ac_objext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_member_struct_reg_r_gs=yes
23682 else
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h. */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <machine/reg.h>
23693
23694 int
23695 main ()
23696 {
23697 static struct reg ac_aggr;
23698 if (sizeof ac_aggr.r_gs)
23699 return 0;
23700 ;
23701 return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext
23705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706 (eval $ac_compile) 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
23713 { ac_try='test -z "$ac_c_werror_flag"
23714 || test ! -s conftest.err'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest.$ac_objext'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 ac_cv_member_struct_reg_r_gs=yes
23727 else
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23730
23731 ac_cv_member_struct_reg_r_gs=no
23732 fi
23733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23734 fi
23735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23736 fi
23737 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
23738 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
23739 if test $ac_cv_member_struct_reg_r_gs = yes; then
23740
23741 cat >>confdefs.h <<_ACEOF
23742 #define HAVE_STRUCT_REG_R_GS 1
23743 _ACEOF
23744
23745
23746 fi
23747
23748
23749 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
23750 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
23751 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
23752 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 else
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 #include <sys/ptrace.h>
23762 int
23763 main ()
23764 {
23765 PTRACE_GETREGS;
23766 ;
23767 return 0;
23768 }
23769 _ACEOF
23770 rm -f conftest.$ac_objext
23771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23772 (eval $ac_compile) 2>conftest.er1
23773 ac_status=$?
23774 grep -v '^ *+' conftest.er1 >conftest.err
23775 rm -f conftest.er1
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } &&
23779 { ac_try='test -z "$ac_c_werror_flag"
23780 || test ! -s conftest.err'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; } &&
23786 { ac_try='test -s conftest.$ac_objext'
23787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23789 ac_status=$?
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; }; then
23792 gdb_cv_have_ptrace_getregs=yes
23793 else
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 gdb_cv_have_ptrace_getregs=no
23798 fi
23799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23800 fi
23801
23802 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
23803 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
23804 if test $gdb_cv_have_ptrace_getregs = yes; then
23805
23806 cat >>confdefs.h <<\_ACEOF
23807 #define HAVE_PTRACE_GETREGS 1
23808 _ACEOF
23809
23810 fi
23811
23812 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
23813 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
23814 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
23815 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 else
23818 cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h. */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h. */
23824 #include <sys/ptrace.h>
23825 int
23826 main ()
23827 {
23828 PTRACE_GETFPXREGS;
23829 ;
23830 return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest.$ac_objext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23835 (eval $ac_compile) 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } &&
23842 { ac_try='test -z "$ac_c_werror_flag"
23843 || test ! -s conftest.err'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; } &&
23849 { ac_try='test -s conftest.$ac_objext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 gdb_cv_have_ptrace_getfpxregs=yes
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 gdb_cv_have_ptrace_getfpxregs=no
23861 fi
23862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23863 fi
23864
23865 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
23866 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
23867 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
23868
23869 cat >>confdefs.h <<\_ACEOF
23870 #define HAVE_PTRACE_GETFPXREGS 1
23871 _ACEOF
23872
23873 fi
23874
23875 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
23876 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
23877 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
23878 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881 cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h. */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23887 #include <sys/types.h>
23888 #include <sys/ptrace.h>
23889 int
23890 main ()
23891 {
23892 PT_GETDBREGS;
23893 ;
23894 return 0;
23895 }
23896 _ACEOF
23897 rm -f conftest.$ac_objext
23898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23899 (eval $ac_compile) 2>conftest.er1
23900 ac_status=$?
23901 grep -v '^ *+' conftest.er1 >conftest.err
23902 rm -f conftest.er1
23903 cat conftest.err >&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
23906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 gdb_cv_have_pt_getdbregs=yes
23920 else
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23923
23924 gdb_cv_have_pt_getdbregs=no
23925 fi
23926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23927 fi
23928
23929 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
23930 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
23931 if test $gdb_cv_have_pt_getdbregs = yes; then
23932
23933 cat >>confdefs.h <<\_ACEOF
23934 #define HAVE_PT_GETDBREGS 1
23935 _ACEOF
23936
23937 fi
23938
23939 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
23940 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
23941 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
23942 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h. */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 #include <sys/types.h>
23952 #include <sys/ptrace.h>
23953 int
23954 main ()
23955 {
23956 PT_GETXMMREGS;
23957 ;
23958 return 0;
23959 }
23960 _ACEOF
23961 rm -f conftest.$ac_objext
23962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23963 (eval $ac_compile) 2>conftest.er1
23964 ac_status=$?
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } &&
23970 { ac_try='test -z "$ac_c_werror_flag"
23971 || test ! -s conftest.err'
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try='test -s conftest.$ac_objext'
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
23983 gdb_cv_have_pt_getxmmregs=yes
23984 else
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23987
23988 gdb_cv_have_pt_getxmmregs=no
23989 fi
23990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23991 fi
23992
23993 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
23994 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
23995 if test $gdb_cv_have_pt_getxmmregs = yes; then
23996
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_PT_GETXMMREGS 1
23999 _ACEOF
24000
24001 fi
24002
24003 # Detect which type of /proc is in use, such as for Unixware or Solaris.
24004
24005 if test "${target}" = "${host}"; then
24006 case "${host}" in
24007 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
24008
24009 cat >>confdefs.h <<\_ACEOF
24010 #define NEW_PROC_API 1
24011 _ACEOF
24012
24013 ;;
24014 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
24015
24016 cat >>confdefs.h <<\_ACEOF
24017 #define NEW_PROC_API 1
24018 _ACEOF
24019
24020 ;;
24021 mips-sgi-irix5*)
24022 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
24023
24024 cat >>confdefs.h <<\_ACEOF
24025 #define _KMEMUSER 1
24026 _ACEOF
24027
24028 ;;
24029 esac
24030 fi
24031
24032 if test "$ac_cv_header_sys_procfs_h" = yes; then
24033 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24034 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
24035 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h. */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044
24045 #define _SYSCALL32
24046 #include <sys/procfs.h>
24047 int
24048 main ()
24049 {
24050 pstatus_t avar
24051 ;
24052 return 0;
24053 }
24054 _ACEOF
24055 rm -f conftest.$ac_objext
24056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24057 (eval $ac_compile) 2>conftest.er1
24058 ac_status=$?
24059 grep -v '^ *+' conftest.er1 >conftest.err
24060 rm -f conftest.er1
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } &&
24064 { ac_try='test -z "$ac_c_werror_flag"
24065 || test ! -s conftest.err'
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; } &&
24071 { ac_try='test -s conftest.$ac_objext'
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; }; then
24077 bfd_cv_have_sys_procfs_type_pstatus_t=yes
24078 else
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082 bfd_cv_have_sys_procfs_type_pstatus_t=no
24083
24084 fi
24085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24086 fi
24087
24088 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
24089
24090 cat >>confdefs.h <<\_ACEOF
24091 #define HAVE_PSTATUS_T 1
24092 _ACEOF
24093
24094 fi
24095 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24096 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
24097
24098 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24099 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
24100 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103 cat >conftest.$ac_ext <<_ACEOF
24104 /* confdefs.h. */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109
24110 #define _SYSCALL32
24111 #include <sys/procfs.h>
24112 int
24113 main ()
24114 {
24115 prrun_t avar
24116 ;
24117 return 0;
24118 }
24119 _ACEOF
24120 rm -f conftest.$ac_objext
24121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24122 (eval $ac_compile) 2>conftest.er1
24123 ac_status=$?
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } &&
24129 { ac_try='test -z "$ac_c_werror_flag"
24130 || test ! -s conftest.err'
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; } &&
24136 { ac_try='test -s conftest.$ac_objext'
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; }; then
24142 bfd_cv_have_sys_procfs_type_prrun_t=yes
24143 else
24144 echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147 bfd_cv_have_sys_procfs_type_prrun_t=no
24148
24149 fi
24150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24151 fi
24152
24153 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
24154
24155 cat >>confdefs.h <<\_ACEOF
24156 #define HAVE_PRRUN_T 1
24157 _ACEOF
24158
24159 fi
24160 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24161 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
24162
24163 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24164 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
24165 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 else
24168 cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h. */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174
24175 #define _SYSCALL32
24176 #include <sys/procfs.h>
24177 int
24178 main ()
24179 {
24180 gregset_t avar
24181 ;
24182 return 0;
24183 }
24184 _ACEOF
24185 rm -f conftest.$ac_objext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24187 (eval $ac_compile) 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest.$ac_objext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 bfd_cv_have_sys_procfs_type_gregset_t=yes
24208 else
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 bfd_cv_have_sys_procfs_type_gregset_t=no
24213
24214 fi
24215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24216 fi
24217
24218 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
24219
24220 cat >>confdefs.h <<\_ACEOF
24221 #define HAVE_GREGSET_T 1
24222 _ACEOF
24223
24224 fi
24225 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24226 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
24227
24228 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24229 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
24230 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24232 else
24233 cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h. */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239
24240 #define _SYSCALL32
24241 #include <sys/procfs.h>
24242 int
24243 main ()
24244 {
24245 fpregset_t avar
24246 ;
24247 return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24252 (eval $ac_compile) 2>conftest.er1
24253 ac_status=$?
24254 grep -v '^ *+' conftest.er1 >conftest.err
24255 rm -f conftest.er1
24256 cat conftest.err >&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } &&
24259 { ac_try='test -z "$ac_c_werror_flag"
24260 || test ! -s conftest.err'
24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); }; } &&
24266 { ac_try='test -s conftest.$ac_objext'
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; }; then
24272 bfd_cv_have_sys_procfs_type_fpregset_t=yes
24273 else
24274 echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277 bfd_cv_have_sys_procfs_type_fpregset_t=no
24278
24279 fi
24280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24281 fi
24282
24283 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
24284
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_FPREGSET_T 1
24287 _ACEOF
24288
24289 fi
24290 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24291 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
24292
24293 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24294 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
24295 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 else
24298 cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h. */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24304
24305 #define _SYSCALL32
24306 #include <sys/procfs.h>
24307 int
24308 main ()
24309 {
24310 prgregset_t avar
24311 ;
24312 return 0;
24313 }
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317 (eval $ac_compile) 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest.$ac_objext'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 bfd_cv_have_sys_procfs_type_prgregset_t=yes
24338 else
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 bfd_cv_have_sys_procfs_type_prgregset_t=no
24343
24344 fi
24345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24346 fi
24347
24348 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
24349
24350 cat >>confdefs.h <<\_ACEOF
24351 #define HAVE_PRGREGSET_T 1
24352 _ACEOF
24353
24354 fi
24355 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24356 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
24357
24358 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24359 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
24360 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362 else
24363 cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h. */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369
24370 #define _SYSCALL32
24371 #include <sys/procfs.h>
24372 int
24373 main ()
24374 {
24375 prfpregset_t avar
24376 ;
24377 return 0;
24378 }
24379 _ACEOF
24380 rm -f conftest.$ac_objext
24381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24382 (eval $ac_compile) 2>conftest.er1
24383 ac_status=$?
24384 grep -v '^ *+' conftest.er1 >conftest.err
24385 rm -f conftest.er1
24386 cat conftest.err >&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } &&
24389 { ac_try='test -z "$ac_c_werror_flag"
24390 || test ! -s conftest.err'
24391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; } &&
24396 { ac_try='test -s conftest.$ac_objext'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; }; then
24402 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
24403 else
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407 bfd_cv_have_sys_procfs_type_prfpregset_t=no
24408
24409 fi
24410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24411 fi
24412
24413 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
24414
24415 cat >>confdefs.h <<\_ACEOF
24416 #define HAVE_PRFPREGSET_T 1
24417 _ACEOF
24418
24419 fi
24420 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24421 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
24422
24423 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24424 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
24425 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427 else
24428 cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h. */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24434
24435 #define _SYSCALL32
24436 #include <sys/procfs.h>
24437 int
24438 main ()
24439 {
24440 prgregset32_t avar
24441 ;
24442 return 0;
24443 }
24444 _ACEOF
24445 rm -f conftest.$ac_objext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24447 (eval $ac_compile) 2>conftest.er1
24448 ac_status=$?
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } &&
24454 { ac_try='test -z "$ac_c_werror_flag"
24455 || test ! -s conftest.err'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest.$ac_objext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24467 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
24468 else
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 bfd_cv_have_sys_procfs_type_prgregset32_t=no
24473
24474 fi
24475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24476 fi
24477
24478 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
24479
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_PRGREGSET32_T 1
24482 _ACEOF
24483
24484 fi
24485 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24486 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
24487
24488 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24489 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
24490 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493 cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h. */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24499
24500 #define _SYSCALL32
24501 #include <sys/procfs.h>
24502 int
24503 main ()
24504 {
24505 prfpregset32_t avar
24506 ;
24507 return 0;
24508 }
24509 _ACEOF
24510 rm -f conftest.$ac_objext
24511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24512 (eval $ac_compile) 2>conftest.er1
24513 ac_status=$?
24514 grep -v '^ *+' conftest.er1 >conftest.err
24515 rm -f conftest.er1
24516 cat conftest.err >&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } &&
24519 { ac_try='test -z "$ac_c_werror_flag"
24520 || test ! -s conftest.err'
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest.$ac_objext'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24532 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
24533 else
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
24538
24539 fi
24540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24541 fi
24542
24543 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
24544
24545 cat >>confdefs.h <<\_ACEOF
24546 #define HAVE_PRFPREGSET32_T 1
24547 _ACEOF
24548
24549 fi
24550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24551 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
24552
24553 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24554 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
24555 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 else
24558 cat >conftest.$ac_ext <<_ACEOF
24559 /* confdefs.h. */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24564
24565 #define _SYSCALL32
24566 #include <sys/procfs.h>
24567 int
24568 main ()
24569 {
24570 lwpid_t avar
24571 ;
24572 return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24577 (eval $ac_compile) 2>conftest.er1
24578 ac_status=$?
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
24584 { ac_try='test -z "$ac_c_werror_flag"
24585 || test ! -s conftest.err'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; } &&
24591 { ac_try='test -s conftest.$ac_objext'
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 bfd_cv_have_sys_procfs_type_lwpid_t=yes
24598 else
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602 bfd_cv_have_sys_procfs_type_lwpid_t=no
24603
24604 fi
24605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24606 fi
24607
24608 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
24609
24610 cat >>confdefs.h <<\_ACEOF
24611 #define HAVE_LWPID_T 1
24612 _ACEOF
24613
24614 fi
24615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24616 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
24617
24618 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24619 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
24620 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24621 echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h. */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629
24630 #define _SYSCALL32
24631 #include <sys/procfs.h>
24632 int
24633 main ()
24634 {
24635 psaddr_t avar
24636 ;
24637 return 0;
24638 }
24639 _ACEOF
24640 rm -f conftest.$ac_objext
24641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24642 (eval $ac_compile) 2>conftest.er1
24643 ac_status=$?
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } &&
24649 { ac_try='test -z "$ac_c_werror_flag"
24650 || test ! -s conftest.err'
24651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); }; } &&
24656 { ac_try='test -s conftest.$ac_objext'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 bfd_cv_have_sys_procfs_type_psaddr_t=yes
24663 else
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 bfd_cv_have_sys_procfs_type_psaddr_t=no
24668
24669 fi
24670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24671 fi
24672
24673 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
24674
24675 cat >>confdefs.h <<\_ACEOF
24676 #define HAVE_PSADDR_T 1
24677 _ACEOF
24678
24679 fi
24680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
24681 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
24682
24683 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
24684 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
24685 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688 cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h. */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694
24695 #define _SYSCALL32
24696 #include <sys/procfs.h>
24697 int
24698 main ()
24699 {
24700 prsysent_t avar
24701 ;
24702 return 0;
24703 }
24704 _ACEOF
24705 rm -f conftest.$ac_objext
24706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24707 (eval $ac_compile) 2>conftest.er1
24708 ac_status=$?
24709 grep -v '^ *+' conftest.er1 >conftest.err
24710 rm -f conftest.er1
24711 cat conftest.err >&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } &&
24714 { ac_try='test -z "$ac_c_werror_flag"
24715 || test ! -s conftest.err'
24716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; } &&
24721 { ac_try='test -s conftest.$ac_objext'
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
24727 bfd_cv_have_sys_procfs_type_prsysent_t=yes
24728 else
24729 echo "$as_me: failed program was:" >&5
24730 sed 's/^/| /' conftest.$ac_ext >&5
24731
24732 bfd_cv_have_sys_procfs_type_prsysent_t=no
24733
24734 fi
24735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24736 fi
24737
24738 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
24739
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_PRSYSENT_T 1
24742 _ACEOF
24743
24744 fi
24745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
24746 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
24747
24748 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
24749 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
24750 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24752 else
24753 cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h. */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h. */
24759
24760 #define _SYSCALL32
24761 #include <sys/procfs.h>
24762 int
24763 main ()
24764 {
24765 pr_sigset_t avar
24766 ;
24767 return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24772 (eval $ac_compile) 2>conftest.er1
24773 ac_status=$?
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest.$ac_objext'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
24793 else
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
24798
24799 fi
24800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24801 fi
24802
24803 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
24804
24805 cat >>confdefs.h <<\_ACEOF
24806 #define HAVE_PR_SIGSET_T 1
24807 _ACEOF
24808
24809 fi
24810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
24811 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
24812
24813 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
24814 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
24815 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818 cat >conftest.$ac_ext <<_ACEOF
24819 /* confdefs.h. */
24820 _ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h. */
24824
24825 #define _SYSCALL32
24826 #include <sys/procfs.h>
24827 int
24828 main ()
24829 {
24830 pr_sigaction64_t avar
24831 ;
24832 return 0;
24833 }
24834 _ACEOF
24835 rm -f conftest.$ac_objext
24836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24837 (eval $ac_compile) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest.$ac_objext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
24858 else
24859 echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24861
24862 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
24863
24864 fi
24865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24866 fi
24867
24868 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
24869
24870 cat >>confdefs.h <<\_ACEOF
24871 #define HAVE_PR_SIGACTION64_T 1
24872 _ACEOF
24873
24874 fi
24875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
24876 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
24877
24878 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
24879 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
24880 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883 cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h. */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889
24890 #define _SYSCALL32
24891 #include <sys/procfs.h>
24892 int
24893 main ()
24894 {
24895 pr_siginfo64_t avar
24896 ;
24897 return 0;
24898 }
24899 _ACEOF
24900 rm -f conftest.$ac_objext
24901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24902 (eval $ac_compile) 2>conftest.er1
24903 ac_status=$?
24904 grep -v '^ *+' conftest.er1 >conftest.err
24905 rm -f conftest.er1
24906 cat conftest.err >&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } &&
24909 { ac_try='test -z "$ac_c_werror_flag"
24910 || test ! -s conftest.err'
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest.$ac_objext'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
24923 else
24924 echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
24928
24929 fi
24930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24931 fi
24932
24933 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
24934
24935 cat >>confdefs.h <<\_ACEOF
24936 #define HAVE_PR_SIGINFO64_T 1
24937 _ACEOF
24938
24939 fi
24940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
24941 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
24942
24943
24944
24945
24946
24947 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
24948 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
24949 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
24950 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
24951 echo $ECHO_N "(cached) $ECHO_C" >&6
24952 else
24953 if test "$cross_compiling" = yes; then
24954 gdb_cv_prfpregset_t_broken=yes
24955 else
24956 cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h. */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 #include <sys/procfs.h>
24963 int main ()
24964 {
24965 if (sizeof (prfpregset_t) == sizeof (void *))
24966 return 1;
24967 return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest$ac_exeext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24972 (eval $ac_link) 2>&5
24973 ac_status=$?
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 gdb_cv_prfpregset_t_broken=no
24982 else
24983 echo "$as_me: program exited with status $ac_status" >&5
24984 echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987 ( exit $ac_status )
24988 gdb_cv_prfpregset_t_broken=yes
24989 fi
24990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24991 fi
24992 fi
24993
24994 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
24995 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
24996 if test $gdb_cv_prfpregset_t_broken = yes; then
24997
24998 cat >>confdefs.h <<\_ACEOF
24999 #define PRFPREGSET_T_BROKEN 1
25000 _ACEOF
25001
25002 fi
25003 fi
25004
25005
25006 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25007 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
25008 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h. */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25017 #include <unistd.h>
25018 #include <sys/types.h>
25019 #include <sys/procfs.h>
25020
25021 int
25022 main ()
25023 {
25024
25025 int dummy;;
25026 dummy = ioctl(0, PIOCSET, &dummy);
25027
25028 ;
25029 return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25034 (eval $ac_compile) 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } &&
25041 { ac_try='test -z "$ac_c_werror_flag"
25042 || test ! -s conftest.err'
25043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044 (eval $ac_try) 2>&5
25045 ac_status=$?
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; } &&
25048 { ac_try='test -s conftest.$ac_objext'
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25054 gdb_cv_have_procfs_piocset=yes
25055 else
25056 echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059 gdb_cv_have_procfs_piocset=no
25060 fi
25061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25062 fi
25063
25064 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25065 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
25066 if test $gdb_cv_have_procfs_piocset = yes; then
25067
25068 cat >>confdefs.h <<\_ACEOF
25069 #define HAVE_PROCFS_PIOCSET 1
25070 _ACEOF
25071
25072 fi
25073 fi
25074
25075 if test ${host} = ${target} ; then
25076
25077 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25078 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
25079 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25080 echo $ECHO_N "(cached) $ECHO_C" >&6
25081 else
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h. */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 #include <link.h>
25089 int
25090 main ()
25091 {
25092 struct link_map lm; (void) lm.l_addr;
25093 ;
25094 return 0;
25095 }
25096 _ACEOF
25097 rm -f conftest.$ac_objext
25098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25099 (eval $ac_compile) 2>conftest.er1
25100 ac_status=$?
25101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag"
25107 || test ! -s conftest.err'
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; } &&
25113 { ac_try='test -s conftest.$ac_objext'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25119 gdb_cv_have_struct_link_map_with_l_members=yes
25120 else
25121 echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 gdb_cv_have_struct_link_map_with_l_members=no
25125 fi
25126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25127 fi
25128
25129 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25130 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
25131 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
25132
25133 cat >>confdefs.h <<\_ACEOF
25134 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
25135 _ACEOF
25136
25137 fi
25138
25139
25140 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25141 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
25142 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 else
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h. */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 #include <sys/types.h>
25152 #include <link.h>
25153 int
25154 main ()
25155 {
25156 struct link_map lm; (void) lm.lm_addr;
25157 ;
25158 return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext
25162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25163 (eval $ac_compile) 2>conftest.er1
25164 ac_status=$?
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest.$ac_objext'
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 gdb_cv_have_struct_link_map_with_lm_members=yes
25184 else
25185 echo "$as_me: failed program was:" >&5
25186 sed 's/^/| /' conftest.$ac_ext >&5
25187
25188 gdb_cv_have_struct_link_map_with_lm_members=no
25189 fi
25190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25191 fi
25192
25193 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25194 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
25195 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
25196
25197 cat >>confdefs.h <<\_ACEOF
25198 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
25199 _ACEOF
25200
25201 fi
25202
25203
25204 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25205 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
25206 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25207 echo $ECHO_N "(cached) $ECHO_C" >&6
25208 else
25209 cat >conftest.$ac_ext <<_ACEOF
25210 /* confdefs.h. */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h. */
25215 #include <sys/types.h>
25216 #ifdef HAVE_NLIST_H
25217 #include <nlist.h>
25218 #endif
25219 #include <link.h>
25220 int
25221 main ()
25222 {
25223 struct so_map lm; (void) lm.som_addr;
25224 ;
25225 return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25230 (eval $ac_compile) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_c_werror_flag"
25238 || test ! -s conftest.err'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; } &&
25244 { ac_try='test -s conftest.$ac_objext'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 gdb_cv_have_struct_so_map_with_som_members=yes
25251 else
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 gdb_cv_have_struct_so_map_with_som_members=no
25256 fi
25257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25258 fi
25259
25260 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25261 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
25262 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
25266 _ACEOF
25267
25268 fi
25269
25270
25271 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25272 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
25273 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 else
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282 #define _SYSCALL32
25283 #include <sys/link.h>
25284 int
25285 main ()
25286 {
25287 struct link_map32 l;
25288 ;
25289 return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext
25293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25294 (eval $ac_compile) 2>conftest.er1
25295 ac_status=$?
25296 grep -v '^ *+' conftest.er1 >conftest.err
25297 rm -f conftest.er1
25298 cat conftest.err >&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } &&
25301 { ac_try='test -z "$ac_c_werror_flag"
25302 || test ! -s conftest.err'
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; } &&
25308 { ac_try='test -s conftest.$ac_objext'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
25314 gdb_cv_have_struct_link_map32=yes
25315 else
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25318
25319 gdb_cv_have_struct_link_map32=no
25320 fi
25321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25322 fi
25323
25324 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25325 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
25326 if test $gdb_cv_have_struct_link_map32 = yes; then
25327
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_STRUCT_LINK_MAP32 1
25330 _ACEOF
25331
25332
25333 cat >>confdefs.h <<\_ACEOF
25334 #define _SYSCALL32 1
25335 _ACEOF
25336
25337 fi
25338 fi
25339
25340 # Check if the compiler supports the `long long' type.
25341
25342 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25343 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
25344 if test "${gdb_cv_c_long_long+set}" = set; then
25345 echo $ECHO_N "(cached) $ECHO_C" >&6
25346 else
25347 cat >conftest.$ac_ext <<_ACEOF
25348 /* confdefs.h. */
25349 _ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25353 extern long long foo;
25354 int
25355 main ()
25356 {
25357 switch (foo & 2) { case 0: return 1; }
25358 ;
25359 return 0;
25360 }
25361 _ACEOF
25362 rm -f conftest.$ac_objext
25363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25364 (eval $ac_compile) 2>conftest.er1
25365 ac_status=$?
25366 grep -v '^ *+' conftest.er1 >conftest.err
25367 rm -f conftest.er1
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } &&
25371 { ac_try='test -z "$ac_c_werror_flag"
25372 || test ! -s conftest.err'
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; } &&
25378 { ac_try='test -s conftest.$ac_objext'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 gdb_cv_c_long_long=yes
25385 else
25386 echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25388
25389 gdb_cv_c_long_long=no
25390 fi
25391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25392 fi
25393 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25394 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
25395 if test $gdb_cv_c_long_long = yes; then
25396
25397 cat >>confdefs.h <<\_ACEOF
25398 #define CC_HAS_LONG_LONG 1
25399 _ACEOF
25400
25401 fi
25402
25403 # Check if the compiler and runtime support printing long longs.
25404
25405 echo "$as_me:$LINENO: checking for long long support in printf" >&5
25406 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
25407 if test "${gdb_cv_printf_has_long_long+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410 if test "$cross_compiling" = yes; then
25411 gdb_cv_printf_has_long_long=no
25412 else
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 int
25421 main ()
25422 {
25423 char buf[32];
25424 long long l = 0;
25425 l = (l << 16) + 0x0123;
25426 l = (l << 16) + 0x4567;
25427 l = (l << 16) + 0x89ab;
25428 l = (l << 16) + 0xcdef;
25429 sprintf (buf, "0x%016llx", l);
25430 return (strcmp ("0x0123456789abcdef", buf));
25431 ;
25432 return 0;
25433 }
25434 _ACEOF
25435 rm -f conftest$ac_exeext
25436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25437 (eval $ac_link) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 gdb_cv_printf_has_long_long=yes
25447 else
25448 echo "$as_me: program exited with status $ac_status" >&5
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ( exit $ac_status )
25453 gdb_cv_printf_has_long_long=no
25454 fi
25455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25456 fi
25457 fi
25458 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25459 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
25460 if test $gdb_cv_printf_has_long_long = yes; then
25461
25462 cat >>confdefs.h <<\_ACEOF
25463 #define PRINTF_HAS_LONG_LONG 1
25464 _ACEOF
25465
25466 fi
25467
25468 # Check if the compiler and runtime support printing decfloats.
25469
25470 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25471 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25472 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25474 else
25475 if test "$cross_compiling" = yes; then
25476 gdb_cv_printf_has_decfloat=no
25477 else
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h. */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 $ac_includes_default
25485 int
25486 main ()
25487 {
25488 char buf[64];
25489 _Decimal32 d32 = 1.2345df;
25490 _Decimal64 d64 = 1.2345dd;
25491 _Decimal128 d128 = 1.2345dl;
25492 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25493 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25494 ;
25495 return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest$ac_exeext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25500 (eval $ac_link) 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 gdb_cv_printf_has_decfloat=yes
25510 else
25511 echo "$as_me: program exited with status $ac_status" >&5
25512 echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515 ( exit $ac_status )
25516 gdb_cv_printf_has_decfloat=no
25517 fi
25518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 fi
25520 fi
25521 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25522 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25523 if test $gdb_cv_printf_has_decfloat = yes; then
25524
25525 cat >>confdefs.h <<\_ACEOF
25526 #define PRINTF_HAS_DECFLOAT 1
25527 _ACEOF
25528
25529 fi
25530
25531 # Check if the compiler supports the `long double' type. We can't use
25532 # AC_C_LONG_DOUBLE because that one does additional checks on the
25533 # constants defined in <float.h> that fail on some systems,
25534 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
25535
25536 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25537 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
25538 if test "${gdb_cv_c_long_double+set}" = set; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541 cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h. */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 long double foo;
25548 _ACEOF
25549 rm -f conftest.$ac_objext
25550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25551 (eval $ac_compile) 2>conftest.er1
25552 ac_status=$?
25553 grep -v '^ *+' conftest.er1 >conftest.err
25554 rm -f conftest.er1
25555 cat conftest.err >&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } &&
25558 { ac_try='test -z "$ac_c_werror_flag"
25559 || test ! -s conftest.err'
25560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25561 (eval $ac_try) 2>&5
25562 ac_status=$?
25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564 (exit $ac_status); }; } &&
25565 { ac_try='test -s conftest.$ac_objext'
25566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); }; }; then
25571 gdb_cv_c_long_double=yes
25572 else
25573 echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25575
25576 gdb_cv_c_long_double=no
25577 fi
25578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25579 fi
25580 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25581 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
25582 if test $gdb_cv_c_long_double = yes; then
25583
25584 cat >>confdefs.h <<\_ACEOF
25585 #define HAVE_LONG_DOUBLE 1
25586 _ACEOF
25587
25588 fi
25589
25590 # Check if the compiler and runtime support printing long doubles.
25591
25592 echo "$as_me:$LINENO: checking for long double support in printf" >&5
25593 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
25594 if test "${gdb_cv_printf_has_long_double+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 else
25597 if test "$cross_compiling" = yes; then
25598 gdb_cv_printf_has_long_double=no
25599 else
25600 cat >conftest.$ac_ext <<_ACEOF
25601 /* confdefs.h. */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 $ac_includes_default
25607 int
25608 main ()
25609 {
25610 char buf[16];
25611 long double f = 3.141592653;
25612 sprintf (buf, "%Lg", f);
25613 return (strncmp ("3.14159", buf, 7));
25614 ;
25615 return 0;
25616 }
25617 _ACEOF
25618 rm -f conftest$ac_exeext
25619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25620 (eval $ac_link) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
25629 gdb_cv_printf_has_long_double=yes
25630 else
25631 echo "$as_me: program exited with status $ac_status" >&5
25632 echo "$as_me: failed program was:" >&5
25633 sed 's/^/| /' conftest.$ac_ext >&5
25634
25635 ( exit $ac_status )
25636 gdb_cv_printf_has_long_double=no
25637 fi
25638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25639 fi
25640 fi
25641 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25642 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
25643 if test $gdb_cv_printf_has_long_double = yes; then
25644
25645 cat >>confdefs.h <<\_ACEOF
25646 #define PRINTF_HAS_LONG_DOUBLE 1
25647 _ACEOF
25648
25649 fi
25650
25651 # Check if the compiler and runtime support scanning long doubles.
25652
25653 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
25654 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
25655 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658 if test "$cross_compiling" = yes; then
25659 gdb_cv_scanf_has_long_double=no
25660 else
25661 cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h. */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 #include <stdio.h>
25668 int
25669 main ()
25670 {
25671 char *buf = "3.141592653";
25672 long double f = 0;
25673 sscanf (buf, "%Lg", &f);
25674 return !(f > 3.14159 && f < 3.14160);
25675 ;
25676 return 0;
25677 }
25678 _ACEOF
25679 rm -f conftest$ac_exeext
25680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25681 (eval $ac_link) 2>&5
25682 ac_status=$?
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 gdb_cv_scanf_has_long_double=yes
25691 else
25692 echo "$as_me: program exited with status $ac_status" >&5
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ( exit $ac_status )
25697 gdb_cv_scanf_has_long_double=no
25698 fi
25699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25700 fi
25701 fi
25702 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
25703 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
25704 if test $gdb_cv_scanf_has_long_double = yes; then
25705
25706 cat >>confdefs.h <<\_ACEOF
25707 #define SCANF_HAS_LONG_DOUBLE 1
25708 _ACEOF
25709
25710 fi
25711
25712 case ${host_os} in
25713 aix*)
25714 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
25715 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
25716 if test "${gdb_cv_bigtoc+set}" = set; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25718 else
25719
25720 SAVE_LDFLAGS=$LDFLAGS
25721
25722 case $GCC in
25723 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
25724 *) gdb_cv_bigtoc=-bbigtoc ;;
25725 esac
25726
25727 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
25728 cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h. */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25734
25735 int
25736 main ()
25737 {
25738 int i;
25739 ;
25740 return 0;
25741 }
25742 _ACEOF
25743 rm -f conftest.$ac_objext conftest$ac_exeext
25744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25745 (eval $ac_link) 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
25752 { ac_try='test -z "$ac_c_werror_flag"
25753 || test ! -s conftest.err'
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; } &&
25759 { ac_try='test -s conftest$ac_exeext'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; }; then
25765 :
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770 gdb_cv_bigtoc=
25771 fi
25772 rm -f conftest.err conftest.$ac_objext \
25773 conftest$ac_exeext conftest.$ac_ext
25774 LDFLAGS="${SAVE_LDFLAGS}"
25775
25776 fi
25777 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
25778 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
25779 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
25780 ;;
25781 esac
25782
25783
25784
25785 if test ${build} = ${host} -a ${host} = ${target} ; then
25786 case ${host_os} in
25787 hpux*)
25788 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
25789 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
25790 if test -f /usr/include/dce/cma_config.h ; then
25791 if test "$GCC" = "yes" ; then
25792 echo "$as_me:$LINENO: result: yes" >&5
25793 echo "${ECHO_T}yes" >&6
25794
25795 cat >>confdefs.h <<\_ACEOF
25796 #define HAVE_HPUX_THREAD_SUPPORT 1
25797 _ACEOF
25798
25799 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
25800 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
25801 else
25802 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
25803 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
25804 fi
25805 else
25806 echo "$as_me:$LINENO: result: no" >&5
25807 echo "${ECHO_T}no" >&6
25808 fi
25809 ;;
25810 solaris*)
25811 # See if thread_db library is around for Solaris thread debugging.
25812 # Note that we must explicitly test for version 1 of the library
25813 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
25814 # the same API.
25815 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
25816 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
25817 if test -f /usr/lib/libthread_db.so.1 ; then
25818 echo "$as_me:$LINENO: result: yes" >&5
25819 echo "${ECHO_T}yes" >&6
25820
25821 cat >>confdefs.h <<\_ACEOF
25822 #define HAVE_THREAD_DB_LIB 1
25823 _ACEOF
25824
25825 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
25826 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
25827
25828 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
25830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833 ac_check_lib_save_LIBS=$LIBS
25834 LIBS="-ldl $LIBS"
25835 cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h. */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25841
25842 /* Override any gcc2 internal prototype to avoid an error. */
25843 #ifdef __cplusplus
25844 extern "C"
25845 #endif
25846 /* We use char because int might match the return type of a gcc2
25847 builtin and then its argument prototype would still apply. */
25848 char dlopen ();
25849 int
25850 main ()
25851 {
25852 dlopen ();
25853 ;
25854 return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext conftest$ac_exeext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25859 (eval $ac_link) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest$ac_exeext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_cv_lib_dl_dlopen=yes
25880 else
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884 ac_cv_lib_dl_dlopen=no
25885 fi
25886 rm -f conftest.err conftest.$ac_objext \
25887 conftest$ac_exeext conftest.$ac_ext
25888 LIBS=$ac_check_lib_save_LIBS
25889 fi
25890 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25891 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
25892 if test $ac_cv_lib_dl_dlopen = yes; then
25893 cat >>confdefs.h <<_ACEOF
25894 #define HAVE_LIBDL 1
25895 _ACEOF
25896
25897 LIBS="-ldl $LIBS"
25898
25899 fi
25900
25901 if test "$GCC" = "yes" ; then
25902 # The GNU linker requires the -export-dynamic option to make
25903 # all symbols visible in the dynamic symbol table.
25904 hold_ldflags=$LDFLAGS
25905 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
25906 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
25907 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
25908 cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h. */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914
25915 int
25916 main ()
25917 {
25918 int i;
25919 ;
25920 return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest.$ac_objext conftest$ac_exeext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925 (eval $ac_link) 2>conftest.er1
25926 ac_status=$?
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
25932 { ac_try='test -z "$ac_c_werror_flag"
25933 || test ! -s conftest.err'
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25936 ac_status=$?
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; } &&
25939 { ac_try='test -s conftest$ac_exeext'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 found=yes
25946 else
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25949
25950 found=no
25951 fi
25952 rm -f conftest.err conftest.$ac_objext \
25953 conftest$ac_exeext conftest.$ac_ext
25954 LDFLAGS=$hold_ldflags
25955 echo "$as_me:$LINENO: result: $found" >&5
25956 echo "${ECHO_T}$found" >&6
25957 if test $found = yes; then
25958 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
25959 fi
25960 fi
25961 # Sun randomly tweaked the prototypes in <proc_service.h>
25962 # at one point.
25963 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
25964 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
25965 if test "${gdb_cv_proc_service_is_old+set}" = set; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 else
25968
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975
25976 #include <proc_service.h>
25977 ps_err_e ps_pdwrite
25978 (struct ps_prochandle*, psaddr_t, const void*, size_t);
25979
25980 int
25981 main ()
25982 {
25983
25984 ;
25985 return 0;
25986 }
25987 _ACEOF
25988 rm -f conftest.$ac_objext
25989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25990 (eval $ac_compile) 2>conftest.er1
25991 ac_status=$?
25992 grep -v '^ *+' conftest.er1 >conftest.err
25993 rm -f conftest.er1
25994 cat conftest.err >&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } &&
25997 { ac_try='test -z "$ac_c_werror_flag"
25998 || test ! -s conftest.err'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; } &&
26004 { ac_try='test -s conftest.$ac_objext'
26005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; }; then
26010 gdb_cv_proc_service_is_old=no
26011 else
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015 gdb_cv_proc_service_is_old=yes
26016 fi
26017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26018
26019 fi
26020
26021 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26022 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
26023 if test $gdb_cv_proc_service_is_old = yes; then
26024
26025 cat >>confdefs.h <<\_ACEOF
26026 #define PROC_SERVICE_IS_OLD 1
26027 _ACEOF
26028
26029 fi
26030 else
26031 echo "$as_me:$LINENO: result: no" >&5
26032 echo "${ECHO_T}no" >&6
26033 fi
26034 ;;
26035 aix*)
26036 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26037 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
26038 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 else
26041 cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h. */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 #include <sys/pthdebug.h>
26048 int
26049 main ()
26050 {
26051 #ifndef PTHDB_VERSION_3
26052 #error
26053 #endif
26054 ;
26055 return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext
26059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26060 (eval $ac_compile) 2>conftest.er1
26061 ac_status=$?
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
26067 { ac_try='test -z "$ac_c_werror_flag"
26068 || test ! -s conftest.err'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; } &&
26074 { ac_try='test -s conftest.$ac_objext'
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; }; then
26080 gdb_cv_have_aix_thread_debug=yes
26081 else
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 gdb_cv_have_aix_thread_debug=no
26086 fi
26087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26088 fi
26089
26090 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26091 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
26092 if test $gdb_cv_have_aix_thread_debug = yes; then
26093 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
26094 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
26095 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26096 fi
26097 ;;
26098 esac
26099
26100 fi
26101
26102 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
26103 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26104 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
26105 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107 else
26108 cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h. */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26114 #include <thread_db.h>
26115 int
26116 main ()
26117 {
26118 int i = TD_NOTALLOC;
26119 ;
26120 return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125 (eval $ac_compile) 2>conftest.er1
26126 ac_status=$?
26127 grep -v '^ *+' conftest.er1 >conftest.err
26128 rm -f conftest.er1
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } &&
26132 { ac_try='test -z "$ac_c_werror_flag"
26133 || test ! -s conftest.err'
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; } &&
26139 { ac_try='test -s conftest.$ac_objext'
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
26145 gdb_cv_thread_db_h_has_td_notalloc=yes
26146 else
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150 gdb_cv_thread_db_h_has_td_notalloc=no
26151
26152 fi
26153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26154
26155 fi
26156 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26157 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
26158 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26159 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26160 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 else
26163 cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h. */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26169 #include <thread_db.h>
26170 int
26171 main ()
26172 {
26173 int i = TD_VERSION;
26174 ;
26175 return 0;
26176 }
26177 _ACEOF
26178 rm -f conftest.$ac_objext
26179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26180 (eval $ac_compile) 2>conftest.er1
26181 ac_status=$?
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } &&
26187 { ac_try='test -z "$ac_c_werror_flag"
26188 || test ! -s conftest.err'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest.$ac_objext'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 gdb_cv_thread_db_h_has_td_version=yes
26201 else
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205 gdb_cv_thread_db_h_has_td_version=no
26206
26207 fi
26208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26209
26210 fi
26211 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26212 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26213 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26214 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26215 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218 cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h. */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26224 #include <thread_db.h>
26225 int
26226 main ()
26227 {
26228 int i = TD_NOTLS;
26229 ;
26230 return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 gdb_cv_thread_db_h_has_td_notls=yes
26256 else
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260 gdb_cv_thread_db_h_has_td_notls=no
26261
26262 fi
26263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264
26265 fi
26266 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26267 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
26268 fi
26269 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
26270
26271 cat >>confdefs.h <<\_ACEOF
26272 #define THREAD_DB_HAS_TD_NOTALLOC 1
26273 _ACEOF
26274
26275 fi
26276 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26277
26278 cat >>confdefs.h <<\_ACEOF
26279 #define THREAD_DB_HAS_TD_VERSION 1
26280 _ACEOF
26281
26282 fi
26283 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26284
26285 cat >>confdefs.h <<\_ACEOF
26286 #define THREAD_DB_HAS_TD_NOTLS 1
26287 _ACEOF
26288
26289 fi
26290
26291 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
26292 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26293 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
26294 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297 cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h. */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26303 #include <sys/syscall.h>
26304 int
26305 main ()
26306 {
26307 int i = __NR_tkill;
26308 ;
26309 return 0;
26310 }
26311 _ACEOF
26312 rm -f conftest.$ac_objext
26313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26314 (eval $ac_compile) 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag"
26322 || test ! -s conftest.err'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; } &&
26328 { ac_try='test -s conftest.$ac_objext'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26331 ac_status=$?
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; }; then
26334 gdb_cv_sys_syscall_h_has_tkill=yes
26335 else
26336 echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26338
26339 gdb_cv_sys_syscall_h_has_tkill=no
26340
26341 fi
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343
26344 fi
26345 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26346 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
26347 fi
26348 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
26349
26350 cat >>confdefs.h <<\_ACEOF
26351 #define HAVE_TKILL_SYSCALL 1
26352 _ACEOF
26353
26354 fi
26355
26356
26357
26358 # Check whether --with-sysroot or --without-sysroot was given.
26359 if test "${with_sysroot+set}" = set; then
26360 withval="$with_sysroot"
26361
26362 case ${with_sysroot} in
26363 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
26364 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26365 esac
26366
26367 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26368
26369 if test "x$prefix" = xNONE; then
26370 test_prefix=/usr/local
26371 else
26372 test_prefix=$prefix
26373 fi
26374 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26375 test_exec_prefix=$test_prefix
26376 else
26377 test_exec_prefix=$exec_prefix
26378 fi
26379 case ${TARGET_SYSTEM_ROOT} in
26380 "${test_prefix}"|"${test_prefix}/"*|\
26381 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26382 '${prefix}'|'${prefix}/'*|\
26383 '${exec_prefix}'|'${exec_prefix}/'*)
26384 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26385 TARGET_SYSTEM_ROOT_DEFINE="$t"
26386 ;;
26387 esac
26388
26389 else
26390
26391 TARGET_SYSTEM_ROOT=
26392 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26393
26394 fi;
26395
26396
26397
26398 # Check whether --enable-werror or --disable-werror was given.
26399 if test "${enable_werror+set}" = set; then
26400 enableval="$enable_werror"
26401 case "${enableval}" in
26402 yes | y) ERROR_ON_WARNING="yes" ;;
26403 no | n) ERROR_ON_WARNING="no" ;;
26404 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26405 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26406 { (exit 1); exit 1; }; } ;;
26407 esac
26408 fi;
26409
26410 # Enable -Werror by default when using gcc
26411 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26412 ERROR_ON_WARNING=yes
26413 fi
26414
26415 WERROR_CFLAGS=""
26416 if test "${ERROR_ON_WARNING}" = yes ; then
26417 WERROR_CFLAGS="-Werror"
26418 fi
26419
26420 # The entries after -Wno-pointer-sign are disabled warnings which may
26421 # be enabled in the future, which can not currently be used to build
26422 # GDB.
26423 # NOTE: If you change this list, remember to update
26424 # gdb/doc/gdbint.texinfo.
26425 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26426 -Wformat-nonliteral -Wno-pointer-sign \
26427 -Wno-unused -Wno-switch -Wno-char-subscripts"
26428
26429 # Check whether --enable-build-warnings or --disable-build-warnings was given.
26430 if test "${enable_build_warnings+set}" = set; then
26431 enableval="$enable_build_warnings"
26432 case "${enableval}" in
26433 yes) ;;
26434 no) build_warnings="-w";;
26435 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26436 build_warnings="${build_warnings} ${t}";;
26437 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26438 build_warnings="${t} ${build_warnings}";;
26439 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26440 esac
26441 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26442 echo "Setting compiler warning flags = $build_warnings" 6>&1
26443 fi
26444 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
26445 if test "${enable_gdb_build_warnings+set}" = set; then
26446 enableval="$enable_gdb_build_warnings"
26447 case "${enableval}" in
26448 yes) ;;
26449 no) build_warnings="-w";;
26450 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26451 build_warnings="${build_warnings} ${t}";;
26452 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26453 build_warnings="${t} ${build_warnings}";;
26454 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26455 esac
26456 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26457 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26458 fi
26459 fi; WARN_CFLAGS=""
26460 if test "x${build_warnings}" != x -a "x$GCC" = xyes
26461 then
26462 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26463 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
26464 # Separate out the -Werror flag as some files just cannot be
26465 # compiled with it enabled.
26466 for w in ${build_warnings}; do
26467 case $w in
26468 -Werr*) WERROR_CFLAGS=-Werror ;;
26469 *) # Check that GCC accepts it
26470 saved_CFLAGS="$CFLAGS"
26471 CFLAGS="$CFLAGS $w"
26472 cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h. */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26478
26479 int
26480 main ()
26481 {
26482
26483 ;
26484 return 0;
26485 }
26486 _ACEOF
26487 rm -f conftest.$ac_objext
26488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26489 (eval $ac_compile) 2>conftest.er1
26490 ac_status=$?
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
26496 { ac_try='test -z "$ac_c_werror_flag"
26497 || test ! -s conftest.err'
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; } &&
26503 { ac_try='test -s conftest.$ac_objext'
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
26509 WARN_CFLAGS="${WARN_CFLAGS} $w"
26510 else
26511 echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.$ac_ext >&5
26513
26514 fi
26515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26516 CFLAGS="$saved_CFLAGS"
26517 esac
26518 done
26519 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26520 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
26521 fi
26522
26523
26524
26525 # In the Cygwin environment, we need some additional flags.
26526 echo "$as_me:$LINENO: checking for cygwin" >&5
26527 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
26528 if test "${gdb_cv_os_cygwin+set}" = set; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530 else
26531 cat >conftest.$ac_ext <<_ACEOF
26532 /* confdefs.h. */
26533 _ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26537
26538 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
26539 lose
26540 #endif
26541 _ACEOF
26542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26543 $EGREP "lose" >/dev/null 2>&1; then
26544 gdb_cv_os_cygwin=yes
26545 else
26546 gdb_cv_os_cygwin=no
26547 fi
26548 rm -f conftest*
26549
26550 fi
26551 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26552 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
26553
26554
26555 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
26556 case ${host} in
26557 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26558 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
26559 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
26560 esac
26561
26562
26563 # libreadline needs libuser32.a in a cygwin environment
26564 WIN32LIBS=
26565 if test x$gdb_cv_os_cygwin = xyes; then
26566 WIN32LIBS="-luser32"
26567 case "${target}" in
26568 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26569 ;;
26570 esac
26571 fi
26572
26573 # The ser-tcp.c module requires sockets.
26574 case ${host} in
26575 *mingw32*)
26576
26577 cat >>confdefs.h <<\_ACEOF
26578 #define USE_WIN32API 1
26579 _ACEOF
26580
26581 WIN32LIBS="$WIN32LIBS -lws2_32"
26582 ;;
26583 esac
26584
26585
26586 # Add ELF support to GDB, but only if BFD includes ELF support.
26587 OLD_CFLAGS=$CFLAGS
26588 OLD_LDFLAGS=$LDFLAGS
26589 OLD_LIBS=$LIBS
26590 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
26591 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
26592 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26593 LIBS="$LIBS -lbfd -liberty $intl"
26594 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26595 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26596 if test "${gdb_cv_var_elf+set}" = set; then
26597 echo $ECHO_N "(cached) $ECHO_C" >&6
26598 else
26599 cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h. */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h. */
26605 #include <stdlib.h>
26606 #include "bfd.h"
26607 #include "elf-bfd.h"
26608
26609 int
26610 main ()
26611 {
26612 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26613 ;
26614 return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>conftest.er1
26620 ac_status=$?
26621 grep -v '^ *+' conftest.er1 >conftest.err
26622 rm -f conftest.er1
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag"
26627 || test ! -s conftest.err'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; } &&
26633 { ac_try='test -s conftest$ac_exeext'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26636 ac_status=$?
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; }; then
26639 gdb_cv_var_elf=yes
26640 else
26641 echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26643
26644 gdb_cv_var_elf=no
26645 fi
26646 rm -f conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
26648 fi
26649 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
26650 echo "${ECHO_T}$gdb_cv_var_elf" >&6
26651 if test $gdb_cv_var_elf = yes; then
26652 CONFIG_OBS="$CONFIG_OBS elfread.o"
26653
26654 cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_ELF 1
26656 _ACEOF
26657
26658 fi
26659 CFLAGS=$OLD_CFLAGS
26660 LDFLAGS=$OLD_LDFLAGS
26661 LIBS=$OLD_LIBS
26662
26663 # Add any host-specific objects to GDB.
26664 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
26665
26666 LIBGUI="../libgui/src/libgui.a"
26667 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
26668
26669
26670
26671 WIN32LDAPP=
26672
26673
26674
26675 case "${host}" in
26676 *-*-cygwin* | *-*-mingw* )
26677 configdir="win"
26678 ;;
26679 *)
26680 configdir="unix"
26681 ;;
26682 esac
26683
26684 GDBTKLIBS=
26685 if test "${enable_gdbtk}" = "yes"; then
26686
26687 # Gdbtk must have an absolute path to srcdir in order to run
26688 # properly when not installed.
26689 here=`pwd`
26690 cd ${srcdir}
26691 GDBTK_SRC_DIR=`pwd`
26692 cd $here
26693
26694
26695 #
26696 # Ok, lets find the tcl configuration
26697 # First, look for one uninstalled.
26698 # the alternative search directory is invoked by --with-tclconfig
26699 #
26700
26701 if test x"${no_tcl}" = x ; then
26702 # we reset no_tcl in case something fails here
26703 no_tcl=true
26704
26705 # Check whether --with-tclconfig or --without-tclconfig was given.
26706 if test "${with_tclconfig+set}" = set; then
26707 withval="$with_tclconfig"
26708 with_tclconfig=${withval}
26709 fi;
26710 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
26711 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
26712 if test "${ac_cv_c_tclconfig+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715
26716
26717 # First check to see if --with-tclconfig was specified.
26718 if test x"${with_tclconfig}" != x ; then
26719 if test -f "${with_tclconfig}/tclConfig.sh" ; then
26720 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
26721 else
26722 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
26723 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
26724 { (exit 1); exit 1; }; }
26725 fi
26726 fi
26727
26728 # then check for a private Tcl installation
26729 if test x"${ac_cv_c_tclconfig}" = x ; then
26730 for i in \
26731 ../tcl \
26732 `ls -dr ../tcl[7-9]* 2>/dev/null` \
26733 ../../tcl \
26734 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
26735 ../../../tcl \
26736 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
26737 if test -f "$i/${configdir}/tclConfig.sh" ; then
26738 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
26739 break
26740 fi
26741 done
26742 fi
26743 # check in a few common install locations
26744 if test x"${ac_cv_c_tclconfig}" = x ; then
26745 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
26746 if test -f "$i/tclConfig.sh" ; then
26747 ac_cv_c_tclconfig=`(cd $i; pwd)`
26748 break
26749 fi
26750 done
26751 fi
26752 # check in a few other private locations
26753 if test x"${ac_cv_c_tclconfig}" = x ; then
26754 for i in \
26755 ${srcdir}/../tcl \
26756 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
26757 if test -f "$i/${configdir}/tclConfig.sh" ; then
26758 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
26759 break
26760 fi
26761 done
26762 fi
26763
26764 fi
26765
26766 if test x"${ac_cv_c_tclconfig}" = x ; then
26767 TCLCONFIG="# no Tcl configs found"
26768 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
26769 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
26770 else
26771 no_tcl=
26772 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
26773 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
26774 echo "${ECHO_T}found $TCLCONFIG" >&6
26775 fi
26776 fi
26777
26778 if test -z "${no_tcl}"; then
26779
26780 . $TCLCONFIG
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808 #
26809 # Ok, lets find the tk configuration
26810 # First, look for one uninstalled.
26811 # the alternative search directory is invoked by --with-tkconfig
26812 #
26813
26814 if test x"${no_tk}" = x ; then
26815 # we reset no_tk in case something fails here
26816 no_tk=true
26817
26818 # Check whether --with-tkconfig or --without-tkconfig was given.
26819 if test "${with_tkconfig+set}" = set; then
26820 withval="$with_tkconfig"
26821 with_tkconfig=${withval}
26822 fi;
26823 echo "$as_me:$LINENO: checking for Tk configuration" >&5
26824 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
26825 if test "${ac_cv_c_tkconfig+set}" = set; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828
26829
26830 # First check to see if --with-tkconfig was specified.
26831 if test x"${with_tkconfig}" != x ; then
26832 if test -f "${with_tkconfig}/tkConfig.sh" ; then
26833 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
26834 else
26835 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
26836 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
26837 { (exit 1); exit 1; }; }
26838 fi
26839 fi
26840
26841 # then check for a private Tk library
26842 if test x"${ac_cv_c_tkconfig}" = x ; then
26843 for i in \
26844 ../tk \
26845 `ls -dr ../tk[4-9]* 2>/dev/null` \
26846 ../../tk \
26847 `ls -dr ../../tk[4-9]* 2>/dev/null` \
26848 ../../../tk \
26849 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
26850 if test -f "$i/${configdir}/tkConfig.sh" ; then
26851 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
26852 break
26853 fi
26854 done
26855 fi
26856 # check in a few common install locations
26857 if test x"${ac_cv_c_tkconfig}" = x ; then
26858 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
26859 if test -f "$i/tkConfig.sh" ; then
26860 ac_cv_c_tkconfig=`(cd $i; pwd)`
26861 break
26862 fi
26863 done
26864 fi
26865 # check in a few other private locations
26866 if test x"${ac_cv_c_tkconfig}" = x ; then
26867 for i in \
26868 ${srcdir}/../tk \
26869 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
26870 if test -f "$i/${configdir}/tkConfig.sh" ; then
26871 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
26872 break
26873 fi
26874 done
26875 fi
26876
26877 fi
26878
26879 if test x"${ac_cv_c_tkconfig}" = x ; then
26880 TKCONFIG="# no Tk configs found"
26881 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
26882 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
26883 else
26884 no_tk=
26885 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
26886 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
26887 echo "${ECHO_T}found $TKCONFIG" >&6
26888 fi
26889 fi
26890
26891
26892
26893 # now look for Tcl library stuff
26894
26895 tcldir="../tcl/${configdir}/"
26896
26897 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
26898
26899 # If $no_tk is nonempty, then we can't do Tk, and there is no
26900 # point to doing Tcl.
26901 if test -z "${no_tk}"; then
26902
26903 if test -f "$TKCONFIG" ; then
26904 . $TKCONFIG
26905 fi
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920 #
26921 # Ok, lets find the tcl source trees so we can use the headers
26922 # Warning: transition of version 9 to 10 will break this algorithm
26923 # because 10 sorts before 9. We also look for just tcl. We have to
26924 # be careful that we don't match stuff like tclX by accident.
26925 # the alternative search directory is involked by --with-tclinclude
26926 #
26927
26928 no_tcl=true
26929 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
26930 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
26931
26932 # Check whether --with-tclinclude or --without-tclinclude was given.
26933 if test "${with_tclinclude+set}" = set; then
26934 withval="$with_tclinclude"
26935 with_tclinclude=${withval}
26936 fi;
26937 if test "${ac_cv_c_tclh+set}" = set; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26939 else
26940
26941 # first check to see if --with-tclinclude was specified
26942 if test x"${with_tclinclude}" != x ; then
26943 if test -f ${with_tclinclude}/tclInt.h ; then
26944 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
26945 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
26946 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
26947 else
26948 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
26949 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
26950 { (exit 1); exit 1; }; }
26951 fi
26952 fi
26953
26954 # next check if it came with Tcl configuration file
26955 if test x"${ac_cv_c_tclconfig}" = x ; then
26956 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
26957 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
26958 fi
26959 fi
26960
26961 # next check in private source directory
26962 #
26963 # since ls returns lowest version numbers first, reverse its output
26964 if test x"${ac_cv_c_tclh}" = x ; then
26965 for i in \
26966 ${srcdir}/../tcl \
26967 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
26968 ${srcdir}/../../tcl \
26969 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
26970 ${srcdir}/../../../tcl \
26971 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
26972 if test -f $i/generic/tclInt.h ; then
26973 ac_cv_c_tclh=`(cd $i/generic; pwd)`
26974 break
26975 fi
26976 done
26977 fi
26978 # finally check in a few common install locations
26979 #
26980 # since ls returns lowest version numbers first, reverse its output
26981 if test x"${ac_cv_c_tclh}" = x ; then
26982 for i in \
26983 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
26984 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
26985 /usr/local/src/tcl \
26986 /usr/local/lib/tcl \
26987 ${prefix}/include ; do
26988 if test -f $i/generic/tclInt.h ; then
26989 ac_cv_c_tclh=`(cd $i/generic; pwd)`
26990 break
26991 fi
26992 done
26993 fi
26994 # see if one is installed
26995 if test x"${ac_cv_c_tclh}" = x ; then
26996 if test "${ac_cv_header_tclInt_h+set}" = set; then
26997 echo "$as_me:$LINENO: checking for tclInt.h" >&5
26998 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
26999 if test "${ac_cv_header_tclInt_h+set}" = set; then
27000 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 fi
27002 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27003 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27004 else
27005 # Is the header compilable?
27006 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27007 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
27008 cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h. */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27014 $ac_includes_default
27015 #include <tclInt.h>
27016 _ACEOF
27017 rm -f conftest.$ac_objext
27018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27019 (eval $ac_compile) 2>conftest.er1
27020 ac_status=$?
27021 grep -v '^ *+' conftest.er1 >conftest.err
27022 rm -f conftest.er1
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
27026 { ac_try='test -z "$ac_c_werror_flag"
27027 || test ! -s conftest.err'
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27030 ac_status=$?
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; } &&
27033 { ac_try='test -s conftest.$ac_objext'
27034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; }; then
27039 ac_header_compiler=yes
27040 else
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044 ac_header_compiler=no
27045 fi
27046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27048 echo "${ECHO_T}$ac_header_compiler" >&6
27049
27050 # Is the header present?
27051 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27052 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
27053 cat >conftest.$ac_ext <<_ACEOF
27054 /* confdefs.h. */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 #include <tclInt.h>
27060 _ACEOF
27061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } >/dev/null; then
27069 if test -s conftest.err; then
27070 ac_cpp_err=$ac_c_preproc_warn_flag
27071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27072 else
27073 ac_cpp_err=
27074 fi
27075 else
27076 ac_cpp_err=yes
27077 fi
27078 if test -z "$ac_cpp_err"; then
27079 ac_header_preproc=yes
27080 else
27081 echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27083
27084 ac_header_preproc=no
27085 fi
27086 rm -f conftest.err conftest.$ac_ext
27087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27088 echo "${ECHO_T}$ac_header_preproc" >&6
27089
27090 # So? What about this header?
27091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27092 yes:no: )
27093 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27094 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27095 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27096 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27097 ac_header_preproc=yes
27098 ;;
27099 no:yes:* )
27100 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27101 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27103 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27105 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27107 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27109 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27111 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
27112 (
27113 cat <<\_ASBOX
27114 ## ------------------------------------------ ##
27115 ## Report this to the AC_PACKAGE_NAME lists. ##
27116 ## ------------------------------------------ ##
27117 _ASBOX
27118 ) |
27119 sed "s/^/$as_me: WARNING: /" >&2
27120 ;;
27121 esac
27122 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27123 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27124 if test "${ac_cv_header_tclInt_h+set}" = set; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127 ac_cv_header_tclInt_h=$ac_header_preproc
27128 fi
27129 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27130 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27131
27132 fi
27133 if test $ac_cv_header_tclInt_h = yes; then
27134 ac_cv_c_tclh=installed
27135 else
27136 ac_cv_c_tclh=""
27137 fi
27138
27139
27140 fi
27141
27142 fi
27143
27144 if test x"${ac_cv_c_tclh}" = x ; then
27145 TCLHDIR="# no Tcl private headers found"
27146 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27147 echo "$as_me: error: Can't find Tcl private headers" >&2;}
27148 { (exit 1); exit 1; }; }
27149 fi
27150 if test x"${ac_cv_c_tclh}" != x ; then
27151 no_tcl=""
27152 if test x"${ac_cv_c_tclh}" = x"installed" ; then
27153 echo "$as_me:$LINENO: result: is installed" >&5
27154 echo "${ECHO_T}is installed" >&6
27155 TCLHDIR=""
27156 else
27157 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27158 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
27159 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27160 TCLHDIR="-I${ac_cv_c_tclh}"
27161 fi
27162 fi
27163
27164
27165
27166
27167 #
27168 # Ok, lets find the tk source trees so we can use the headers
27169 # If the directory (presumably symlink) named "tk" exists, use that one
27170 # in preference to any others. Same logic is used when choosing library
27171 # and again with Tcl. The search order is the best place to look first, then in
27172 # decreasing significance. The loop breaks if the trigger file is found.
27173 # Note the gross little conversion here of srcdir by cd'ing to the found
27174 # directory. This converts the path from a relative to an absolute, so
27175 # recursive cache variables for the path will work right. We check all
27176 # the possible paths in one loop rather than many seperate loops to speed
27177 # things up.
27178 # the alternative search directory is involked by --with-tkinclude
27179 #
27180 no_tk=true
27181 echo "$as_me:$LINENO: checking for Tk private headers" >&5
27182 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
27183
27184 # Check whether --with-tkinclude or --without-tkinclude was given.
27185 if test "${with_tkinclude+set}" = set; then
27186 withval="$with_tkinclude"
27187 with_tkinclude=${withval}
27188 fi;
27189 if test "${ac_cv_c_tkh+set}" = set; then
27190 echo $ECHO_N "(cached) $ECHO_C" >&6
27191 else
27192
27193 # first check to see if --with-tkinclude was specified
27194 if test x"${with_tkinclude}" != x ; then
27195 if test -f ${with_tkinclude}/tk.h ; then
27196 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27197 elif test -f ${with_tkinclude}/generic/tk.h ; then
27198 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27199 else
27200 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27201 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27202 { (exit 1); exit 1; }; }
27203 fi
27204 fi
27205
27206 # next check if it came with Tk configuration file
27207 if test x"${ac_cv_c_tkconfig}" = x ; then
27208 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27209 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27210 fi
27211 fi
27212
27213 # next check in private source directory
27214 #
27215 # since ls returns lowest version numbers first, reverse its output
27216 if test x"${ac_cv_c_tkh}" = x ; then
27217 for i in \
27218 ${srcdir}/../tk \
27219 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27220 ${srcdir}/../../tk \
27221 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27222 ${srcdir}/../../../tk \
27223 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27224 if test -f $i/generic/tk.h ; then
27225 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27226 break
27227 fi
27228 done
27229 fi
27230 # finally check in a few common install locations
27231 #
27232 # since ls returns lowest version numbers first, reverse its output
27233 if test x"${ac_cv_c_tkh}" = x ; then
27234 for i in \
27235 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27236 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27237 /usr/local/src/tk \
27238 /usr/local/lib/tk \
27239 ${prefix}/include ; do
27240 if test -f $i/generic/tk.h ; then
27241 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27242 break
27243 fi
27244 done
27245 fi
27246 # see if one is installed
27247 if test x"${ac_cv_c_tkh}" = x ; then
27248 if test "${ac_cv_header_tk_h+set}" = set; then
27249 echo "$as_me:$LINENO: checking for tk.h" >&5
27250 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27251 if test "${ac_cv_header_tk_h+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253 fi
27254 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27255 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27256 else
27257 # Is the header compilable?
27258 echo "$as_me:$LINENO: checking tk.h usability" >&5
27259 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h. */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 $ac_includes_default
27267 #include <tk.h>
27268 _ACEOF
27269 rm -f conftest.$ac_objext
27270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27271 (eval $ac_compile) 2>conftest.er1
27272 ac_status=$?
27273 grep -v '^ *+' conftest.er1 >conftest.err
27274 rm -f conftest.er1
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag"
27279 || test ! -s conftest.err'
27280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; } &&
27285 { ac_try='test -s conftest.$ac_objext'
27286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287 (eval $ac_try) 2>&5
27288 ac_status=$?
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); }; }; then
27291 ac_header_compiler=yes
27292 else
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296 ac_header_compiler=no
27297 fi
27298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27300 echo "${ECHO_T}$ac_header_compiler" >&6
27301
27302 # Is the header present?
27303 echo "$as_me:$LINENO: checking tk.h presence" >&5
27304 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
27305 cat >conftest.$ac_ext <<_ACEOF
27306 /* confdefs.h. */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h. */
27311 #include <tk.h>
27312 _ACEOF
27313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27315 ac_status=$?
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } >/dev/null; then
27321 if test -s conftest.err; then
27322 ac_cpp_err=$ac_c_preproc_warn_flag
27323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27324 else
27325 ac_cpp_err=
27326 fi
27327 else
27328 ac_cpp_err=yes
27329 fi
27330 if test -z "$ac_cpp_err"; then
27331 ac_header_preproc=yes
27332 else
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336 ac_header_preproc=no
27337 fi
27338 rm -f conftest.err conftest.$ac_ext
27339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27340 echo "${ECHO_T}$ac_header_preproc" >&6
27341
27342 # So? What about this header?
27343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27344 yes:no: )
27345 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27346 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27348 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27349 ac_header_preproc=yes
27350 ;;
27351 no:yes:* )
27352 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27353 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27355 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27357 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27359 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27361 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27362 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27363 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
27364 (
27365 cat <<\_ASBOX
27366 ## ------------------------------------------ ##
27367 ## Report this to the AC_PACKAGE_NAME lists. ##
27368 ## ------------------------------------------ ##
27369 _ASBOX
27370 ) |
27371 sed "s/^/$as_me: WARNING: /" >&2
27372 ;;
27373 esac
27374 echo "$as_me:$LINENO: checking for tk.h" >&5
27375 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27376 if test "${ac_cv_header_tk_h+set}" = set; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 else
27379 ac_cv_header_tk_h=$ac_header_preproc
27380 fi
27381 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27382 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27383
27384 fi
27385 if test $ac_cv_header_tk_h = yes; then
27386 ac_cv_c_tkh=installed
27387 else
27388 ac_cv_c_tkh=""
27389 fi
27390
27391
27392 fi
27393
27394 fi
27395
27396 if test x"${ac_cv_c_tkh}" != x ; then
27397 no_tk=""
27398 if test x"${ac_cv_c_tkh}" = x"installed" ; then
27399 echo "$as_me:$LINENO: result: is installed" >&5
27400 echo "${ECHO_T}is installed" >&6
27401 TKHDIR=""
27402 else
27403 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27404 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
27405 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27406 TKHDIR="-I${ac_cv_c_tkh}"
27407 fi
27408 else
27409 TKHDIR="# no Tk directory found"
27410 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27411 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
27412 no_tk=true
27413 fi
27414
27415
27416
27417
27418 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27419 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
27420 if test x"${ac_cv_c_itclh}" = x ; then
27421 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27422 if test -f $i/generic/itcl.h ; then
27423 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27424 break
27425 fi
27426 done
27427 fi
27428 if test x"${ac_cv_c_itclh}" = x ; then
27429 ITCLHDIR="# no Itcl private headers found"
27430 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27431 echo "$as_me: error: Can't find Itcl private headers" >&2;}
27432 { (exit 1); exit 1; }; }
27433 fi
27434 if test x"${ac_cv_c_itclh}" != x ; then
27435 ITCLHDIR="-I${ac_cv_c_itclh}"
27436 fi
27437 # should always be here
27438 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
27439
27440 #AC_SUBST(ITCLLIB)
27441
27442
27443 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27444 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
27445 if test x"${ac_cv_c_itkh}" = x ; then
27446 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27447 if test -f $i/generic/itk.h ; then
27448 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27449 break
27450 fi
27451 done
27452 fi
27453 if test x"${ac_cv_c_itkh}" = x ; then
27454 ITKHDIR="# no Itk private headers found"
27455 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27456 echo "$as_me: error: Can't find Itk private headers" >&2;}
27457 { (exit 1); exit 1; }; }
27458 fi
27459 if test x"${ac_cv_c_itkh}" != x ; then
27460 ITKHDIR="-I${ac_cv_c_itkh}"
27461 fi
27462 # should always be here
27463 # ITKLIB="../itcl/itk/unix/libitk.a"
27464
27465 #AC_SUBST(ITKLIB)
27466
27467
27468
27469 # now look for Tk library stuff
27470
27471 tkdir="../tk/${configdir}/"
27472
27473 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27474
27475 # now look for Itcl library stuff
27476
27477
27478 #
27479 # Ok, lets find the itcl configuration
27480 # First, look for one uninstalled.
27481 # the alternative search directory is invoked by --with-itclconfig
27482 #
27483
27484 if test x"${no_itcl}" = x ; then
27485 # we reset no_itcl in case something fails here
27486 no_itcl=true
27487
27488 # Check whether --with-itclconfig or --without-itclconfig was given.
27489 if test "${with_itclconfig+set}" = set; then
27490 withval="$with_itclconfig"
27491 with_itclconfig=${withval}
27492 fi;
27493 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27494 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
27495 if test "${ac_cv_c_itclconfig+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497 else
27498
27499
27500 # First check to see if --with-itclconfig was specified.
27501 if test x"${with_itclconfig}" != x ; then
27502 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27503 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27504 else
27505 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27506 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27507 { (exit 1); exit 1; }; }
27508 fi
27509 fi
27510
27511 # then check for a private Itcl library
27512 if test x"${ac_cv_c_itclconfig}" = x ; then
27513 for i in \
27514 ../itcl/itcl \
27515 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27516 ../../itcl \
27517 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27518 ../../../itcl \
27519 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27520 if test -f "$i/itclConfig.sh" ; then
27521 ac_cv_c_itclconfig=`(cd $i; pwd)`
27522 break
27523 fi
27524 done
27525 fi
27526 # check in a few common install locations
27527 if test x"${ac_cv_c_itclconfig}" = x ; then
27528 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27529 if test -f "$i/itclConfig.sh" ; then
27530 ac_cv_c_itclconfig=`(cd $i; pwd)`
27531 break
27532 fi
27533 done
27534 fi
27535 # check in a few other private locations
27536 if test x"${ac_cv_c_itclconfig}" = x ; then
27537 for i in \
27538 ${srcdir}/../itcl/itcl \
27539 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27540 if test -f "$i/itclConfig.sh" ; then
27541 ac_cv_c_itclconfig=`(cd $i; pwd)`
27542 break
27543 fi
27544 done
27545 fi
27546
27547 fi
27548
27549 if test x"${ac_cv_c_itclconfig}" = x ; then
27550 ITCLCONFIG="# no Itcl configs found"
27551 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27552 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
27553 else
27554 no_itcl=
27555 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
27556 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27557 echo "${ECHO_T}found $ITCLCONFIG" >&6
27558 fi
27559 fi
27560
27561 if test -z "${no_itcl}"; then
27562
27563 if test -f "$ITCLCONFIG" ; then
27564 . $ITCLCONFIG
27565 fi
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
27579 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
27580 fi
27581
27582
27583 # now look for Itk library stuff
27584
27585 #
27586 # Ok, lets find the itk configuration
27587 # First, look for one uninstalled.
27588 # the alternative search directory is invoked by --with-itkconfig
27589 #
27590
27591 if test x"${no_itk}" = x ; then
27592 # we reset no_itk in case something fails here
27593 no_itk=true
27594
27595 # Check whether --with-itkconfig or --without-itkconfig was given.
27596 if test "${with_itkconfig+set}" = set; then
27597 withval="$with_itkconfig"
27598 with_itkconfig=${withval}
27599 fi;
27600 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27601 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
27602 if test "${ac_cv_c_itkconfig+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27604 else
27605
27606
27607 # First check to see if --with-itkconfig was specified.
27608 if test x"${with_itkconfig}" != x ; then
27609 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27610 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27611 else
27612 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27613 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27614 { (exit 1); exit 1; }; }
27615 fi
27616 fi
27617
27618 # then check for a private Itk library
27619 if test x"${ac_cv_c_itkconfig}" = x ; then
27620 for i in \
27621 ../itcl/itk \
27622 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27623 ../../itk \
27624 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27625 ../../../itk \
27626 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27627 if test -f "$i/itkConfig.sh" ; then
27628 ac_cv_c_itkconfig=`(cd $i; pwd)`
27629 break
27630 fi
27631 done
27632 fi
27633 # check in a few common install locations
27634 if test x"${ac_cv_c_itkconfig}" = x ; then
27635 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27636 if test -f "$i/itkConfig.sh" ; then
27637 ac_cv_c_itkconfig=`(cd $i; pwd)`
27638 break
27639 fi
27640 done
27641 fi
27642 # check in a few other private locations
27643 if test x"${ac_cv_c_itkconfig}" = x ; then
27644 for i in \
27645 ${srcdir}/../itcl/itk \
27646 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
27647 if test -f "$i/itkConfig.sh" ; then
27648 ac_cv_c_itkconfig=`(cd $i; pwd)`
27649 break
27650 fi
27651 done
27652 fi
27653
27654 fi
27655
27656 if test x"${ac_cv_c_itkconfig}" = x ; then
27657 ITKCONFIG="# no Itk configs found"
27658 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
27659 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
27660 else
27661 no_itk=
27662 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
27663 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
27664 echo "${ECHO_T}found $ITKCONFIG" >&6
27665 fi
27666 fi
27667
27668
27669 if test -z "${no_itcl}"; then
27670
27671 if test -f "$ITKCONFIG" ; then
27672 . $ITKCONFIG
27673 fi
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686 ITKLIB="${ITK_BUILD_LIB_SPEC}"
27687 ITK_DEPS="${ITK_LIB_FULL_PATH}"
27688 fi
27689
27690 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
27691
27692 # Include some libraries that Tcl and Tk want.
27693 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
27694 # Yes, the ordering seems wrong here. But it isn't.
27695 # TK_LIBS is the list of libraries that need to be linked
27696 # after Tcl/Tk. Note that this isn't put into LIBS. If it
27697 # were in LIBS then any link tests after this point would
27698 # try to include things like `$(LIBGUI)', which wouldn't work.
27699 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
27700
27701 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
27702 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
27703 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
27704 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
27705 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
27706 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
27707 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
27708
27709 if test x$gdb_cv_os_cygwin = xyes; then
27710 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
27711 WIN32LDAPP="-Wl,--subsystem,console"
27712 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
27713 fi
27714 fi
27715 fi
27716
27717
27718
27719 subdirs="$subdirs gdbtk"
27720
27721 fi
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736 echo "$as_me:$LINENO: checking for X" >&5
27737 echo $ECHO_N "checking for X... $ECHO_C" >&6
27738
27739
27740 # Check whether --with-x or --without-x was given.
27741 if test "${with_x+set}" = set; then
27742 withval="$with_x"
27743
27744 fi;
27745 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27746 if test "x$with_x" = xno; then
27747 # The user explicitly disabled X.
27748 have_x=disabled
27749 else
27750 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27751 # Both variables are already set.
27752 have_x=yes
27753 else
27754 if test "${ac_cv_have_x+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756 else
27757 # One or both of the vars are not set, and there is no cached value.
27758 ac_x_includes=no ac_x_libraries=no
27759 rm -fr conftest.dir
27760 if mkdir conftest.dir; then
27761 cd conftest.dir
27762 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27763 cat >Imakefile <<'_ACEOF'
27764 acfindx:
27765 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27766 _ACEOF
27767 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27769 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27770 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27771 for ac_extension in a so sl; do
27772 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
27773 test -f $ac_im_libdir/libX11.$ac_extension; then
27774 ac_im_usrlibdir=$ac_im_libdir; break
27775 fi
27776 done
27777 # Screen out bogus values from the imake configuration. They are
27778 # bogus both because they are the default anyway, and because
27779 # using them would break gcc on systems where it needs fixed includes.
27780 case $ac_im_incroot in
27781 /usr/include) ;;
27782 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27783 esac
27784 case $ac_im_usrlibdir in
27785 /usr/lib | /lib) ;;
27786 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27787 esac
27788 fi
27789 cd ..
27790 rm -fr conftest.dir
27791 fi
27792
27793 # Standard set of common directories for X headers.
27794 # Check X11 before X11Rn because it is often a symlink to the current release.
27795 ac_x_header_dirs='
27796 /usr/X11/include
27797 /usr/X11R6/include
27798 /usr/X11R5/include
27799 /usr/X11R4/include
27800
27801 /usr/include/X11
27802 /usr/include/X11R6
27803 /usr/include/X11R5
27804 /usr/include/X11R4
27805
27806 /usr/local/X11/include
27807 /usr/local/X11R6/include
27808 /usr/local/X11R5/include
27809 /usr/local/X11R4/include
27810
27811 /usr/local/include/X11
27812 /usr/local/include/X11R6
27813 /usr/local/include/X11R5
27814 /usr/local/include/X11R4
27815
27816 /usr/X386/include
27817 /usr/x386/include
27818 /usr/XFree86/include/X11
27819
27820 /usr/include
27821 /usr/local/include
27822 /usr/unsupported/include
27823 /usr/athena/include
27824 /usr/local/x11r5/include
27825 /usr/lpp/Xamples/include
27826
27827 /usr/openwin/include
27828 /usr/openwin/share/include'
27829
27830 if test "$ac_x_includes" = no; then
27831 # Guess where to find include files, by looking for Intrinsic.h.
27832 # First, try using that file with no special directory specified.
27833 cat >conftest.$ac_ext <<_ACEOF
27834 /* confdefs.h. */
27835 _ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 #include <X11/Intrinsic.h>
27840 _ACEOF
27841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } >/dev/null; then
27849 if test -s conftest.err; then
27850 ac_cpp_err=$ac_c_preproc_warn_flag
27851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27852 else
27853 ac_cpp_err=
27854 fi
27855 else
27856 ac_cpp_err=yes
27857 fi
27858 if test -z "$ac_cpp_err"; then
27859 # We can compile using X headers with no special include directory.
27860 ac_x_includes=
27861 else
27862 echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 for ac_dir in $ac_x_header_dirs; do
27866 if test -r "$ac_dir/X11/Intrinsic.h"; then
27867 ac_x_includes=$ac_dir
27868 break
27869 fi
27870 done
27871 fi
27872 rm -f conftest.err conftest.$ac_ext
27873 fi # $ac_x_includes = no
27874
27875 if test "$ac_x_libraries" = no; then
27876 # Check for the libraries.
27877 # See if we find them without any special options.
27878 # Don't add to $LIBS permanently.
27879 ac_save_LIBS=$LIBS
27880 LIBS="-lXt $LIBS"
27881 cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h. */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 #include <X11/Intrinsic.h>
27888 int
27889 main ()
27890 {
27891 XtMalloc (0)
27892 ;
27893 return 0;
27894 }
27895 _ACEOF
27896 rm -f conftest.$ac_objext conftest$ac_exeext
27897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27898 (eval $ac_link) 2>conftest.er1
27899 ac_status=$?
27900 grep -v '^ *+' conftest.er1 >conftest.err
27901 rm -f conftest.er1
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } &&
27905 { ac_try='test -z "$ac_c_werror_flag"
27906 || test ! -s conftest.err'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } &&
27912 { ac_try='test -s conftest$ac_exeext'
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918 LIBS=$ac_save_LIBS
27919 # We can link X programs with no special library path.
27920 ac_x_libraries=
27921 else
27922 echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27924
27925 LIBS=$ac_save_LIBS
27926 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27927 do
27928 # Don't even attempt the hair of trying to link an X program!
27929 for ac_extension in a so sl; do
27930 if test -r $ac_dir/libXt.$ac_extension; then
27931 ac_x_libraries=$ac_dir
27932 break 2
27933 fi
27934 done
27935 done
27936 fi
27937 rm -f conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
27939 fi # $ac_x_libraries = no
27940
27941 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27942 # Didn't find X anywhere. Cache the known absence of X.
27943 ac_cv_have_x="have_x=no"
27944 else
27945 # Record where we found X for the cache.
27946 ac_cv_have_x="have_x=yes \
27947 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
27948 fi
27949 fi
27950
27951 fi
27952 eval "$ac_cv_have_x"
27953 fi # $with_x != no
27954
27955 if test "$have_x" != yes; then
27956 echo "$as_me:$LINENO: result: $have_x" >&5
27957 echo "${ECHO_T}$have_x" >&6
27958 no_x=yes
27959 else
27960 # If each of the values was on the command line, it overrides each guess.
27961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27963 # Update the cache value to reflect the command line values.
27964 ac_cv_have_x="have_x=yes \
27965 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
27966 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27967 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
27968 fi
27969
27970
27971 # Check whether we should enable the TUI, but only do so if we really
27972 # can.
27973 if test x"$enable_tui" = xyes; then
27974 if test -d $srcdir/tui; then
27975 if test "$ac_cv_search_waddstr" != no; then
27976 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
27977 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
27978 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
27979 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
27980 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
27981 CONFIG_ALL="${CONFIG_ALL} all-tui"
27982 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
27983 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
27984 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
27985 else
27986 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
27987 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
27988 fi
27989 fi
27990 fi
27991
27992 # Unlike the sim directory, whether a simulator is linked is controlled by
27993 # presence of a gdb_sim definition in the target configure.tgt entry.
27994 # This code just checks for a few cases where we'd like to ignore those
27995 # definitions, even when they're present in the '.mt' file. These cases
27996 # are when --disable-sim is specified, or if the simulator directory is
27997 # not part of the source tree.
27998 #
27999 # Check whether --enable-sim or --disable-sim was given.
28000 if test "${enable_sim+set}" = set; then
28001 enableval="$enable_sim"
28002 echo "enable_sim = $enable_sim";
28003 echo "enableval = ${enableval}";
28004 case "${enableval}" in
28005 yes) ignore_sim=false ;;
28006 no) ignore_sim=true ;;
28007 *) ignore_sim=false ;;
28008 esac
28009 else
28010 ignore_sim=false
28011 fi;
28012
28013 if test ! -d "${srcdir}/../sim"; then
28014 ignore_sim=true
28015 fi
28016
28017 SIM=
28018 SIM_OBS=
28019 if test "${ignore_sim}" = "false"; then
28020 if test x"${gdb_sim}" != x ; then
28021 SIM="${gdb_sim}"
28022 SIM_OBS="remote-sim.o"
28023
28024 cat >>confdefs.h <<\_ACEOF
28025 #define WITH_SIM 1
28026 _ACEOF
28027
28028 fi
28029 fi
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044 # List of host floatformats.
28045
28046 cat >>confdefs.h <<_ACEOF
28047 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
28048 _ACEOF
28049
28050
28051 cat >>confdefs.h <<_ACEOF
28052 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
28053 _ACEOF
28054
28055
28056 cat >>confdefs.h <<_ACEOF
28057 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
28058 _ACEOF
28059
28060
28061 # target_subdir is used by the testsuite to find the target libraries.
28062 target_subdir=
28063 if test "${host}" != "${target}"; then
28064 target_subdir="${target_alias}/"
28065 fi
28066
28067
28068 frags=
28069 if test "${gdb_native}" = "yes"; then
28070 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28071 if test ! -f ${host_makefile_frag}; then
28072 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28073 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28074 { (exit 1); exit 1; }; }
28075 fi
28076 frags="$frags $host_makefile_frag"
28077 else
28078 host_makefile_frag=/dev/null
28079 fi
28080
28081
28082
28083
28084 if test "${gdb_native}" = "yes"; then
28085 # We pick this up from the host configuration file (.mh) because we
28086 # do not have a native configuration Makefile fragment.
28087 nativefile=`sed -n '
28088 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28089 ' ${host_makefile_frag}`
28090 fi
28091
28092
28093 if test x"${gdb_osabi}" != x ; then
28094
28095 cat >>confdefs.h <<_ACEOF
28096 #define GDB_OSABI_DEFAULT $gdb_osabi
28097 _ACEOF
28098
28099 fi
28100
28101 # Enable multi-ice-gdb-server.
28102 # Check whether --enable-multi-ice or --disable-multi-ice was given.
28103 if test "${enable_multi_ice+set}" = set; then
28104 enableval="$enable_multi_ice"
28105 case $enableval in
28106 yes | no)
28107 ;;
28108 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28109 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28110 { (exit 1); exit 1; }; } ;;
28111 esac
28112 fi;
28113 if test "x$enable_multi_ice" = xyes; then
28114
28115
28116 subdirs="$subdirs multi-ice"
28117
28118 fi
28119
28120 # We only build gdbserver automatically in a native configuration.
28121 if test "$gdb_native" = "yes"; then
28122 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28123 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
28124 if test "x$build_gdbserver" = xyes; then
28125 echo "$as_me:$LINENO: result: yes" >&5
28126 echo "${ECHO_T}yes" >&6
28127
28128
28129 subdirs="$subdirs gdbserver"
28130
28131 else
28132 echo "$as_me:$LINENO: result: no" >&5
28133 echo "${ECHO_T}no" >&6
28134 fi
28135 fi
28136
28137 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
28138 # to an empty version.
28139
28140 files=
28141 links=
28142
28143 rm -f nm.h
28144 nm_h=""
28145 if test "${nativefile}" != ""; then
28146 nm_h=nm.h
28147 case "${nativefile}" in
28148 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28149 * ) GDB_NM_FILE="${nativefile}"
28150 esac
28151 files="${files} ${GDB_NM_FILE}"
28152 links="${links} nm.h"
28153
28154 cat >>confdefs.h <<_ACEOF
28155 #define GDB_NM_FILE "${GDB_NM_FILE}"
28156 _ACEOF
28157
28158 fi
28159
28160
28161 ac_sources="$files"
28162 ac_dests="$links"
28163 while test -n "$ac_sources"; do
28164 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28165 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28166 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28167 done
28168 ac_config_links="$ac_config_links $ac_config_links_1"
28169
28170
28171
28172
28173
28174
28175 cat >>confdefs.h <<\_ACEOF
28176 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28177 _ACEOF
28178
28179
28180
28181
28182
28183 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28184 if test "${with_libiconv_prefix+set}" = set; then
28185 withval="$with_libiconv_prefix"
28186
28187 for dir in `echo "$withval" | tr : ' '`; do
28188 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28189 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28190 done
28191
28192 fi;
28193
28194 echo "$as_me:$LINENO: checking for iconv" >&5
28195 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28196 if test "${am_cv_func_iconv+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199
28200 am_cv_func_iconv="no, consider installing GNU libiconv"
28201 am_cv_lib_iconv=no
28202 cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h. */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28208 #include <stdlib.h>
28209 #include <iconv.h>
28210 int
28211 main ()
28212 {
28213 iconv_t cd = iconv_open("","");
28214 iconv(cd,NULL,NULL,NULL,NULL);
28215 iconv_close(cd);
28216 ;
28217 return 0;
28218 }
28219 _ACEOF
28220 rm -f conftest.$ac_objext conftest$ac_exeext
28221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28222 (eval $ac_link) 2>conftest.er1
28223 ac_status=$?
28224 grep -v '^ *+' conftest.er1 >conftest.err
28225 rm -f conftest.er1
28226 cat conftest.err >&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
28229 { ac_try='test -z "$ac_c_werror_flag"
28230 || test ! -s conftest.err'
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest$ac_exeext'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 am_cv_func_iconv=yes
28243 else
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28246
28247 fi
28248 rm -f conftest.err conftest.$ac_objext \
28249 conftest$ac_exeext conftest.$ac_ext
28250 if test "$am_cv_func_iconv" != yes; then
28251 am_save_LIBS="$LIBS"
28252 LIBS="$LIBS -liconv"
28253 cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h. */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 #include <stdlib.h>
28260 #include <iconv.h>
28261 int
28262 main ()
28263 {
28264 iconv_t cd = iconv_open("","");
28265 iconv(cd,NULL,NULL,NULL,NULL);
28266 iconv_close(cd);
28267 ;
28268 return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext conftest$ac_exeext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28273 (eval $ac_link) 2>conftest.er1
28274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
28280 { ac_try='test -z "$ac_c_werror_flag"
28281 || test ! -s conftest.err'
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest$ac_exeext'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
28293 am_cv_lib_iconv=yes
28294 am_cv_func_iconv=yes
28295 else
28296 echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28298
28299 fi
28300 rm -f conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
28302 LIBS="$am_save_LIBS"
28303 fi
28304
28305 fi
28306 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28307 echo "${ECHO_T}$am_cv_func_iconv" >&6
28308 if test "$am_cv_func_iconv" = yes; then
28309
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_ICONV 1
28312 _ACEOF
28313
28314 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
28316 if test "${am_cv_proto_iconv+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319
28320 cat >conftest.$ac_ext <<_ACEOF
28321 /* confdefs.h. */
28322 _ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h. */
28326
28327 #include <stdlib.h>
28328 #include <iconv.h>
28329 extern
28330 #ifdef __cplusplus
28331 "C"
28332 #endif
28333 #if defined(__STDC__) || defined(__cplusplus)
28334 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28335 #else
28336 size_t iconv();
28337 #endif
28338
28339 int
28340 main ()
28341 {
28342
28343 ;
28344 return 0;
28345 }
28346 _ACEOF
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>conftest.er1
28350 ac_status=$?
28351 grep -v '^ *+' conftest.er1 >conftest.err
28352 rm -f conftest.er1
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_c_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 am_cv_proto_iconv_arg1=""
28370 else
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 am_cv_proto_iconv_arg1="const"
28375 fi
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377 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);"
28378 fi
28379
28380 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
28381 echo "$as_me:$LINENO: result: ${ac_t:-
28382 }$am_cv_proto_iconv" >&5
28383 echo "${ECHO_T}${ac_t:-
28384 }$am_cv_proto_iconv" >&6
28385
28386 cat >>confdefs.h <<_ACEOF
28387 #define ICONV_CONST $am_cv_proto_iconv_arg1
28388 _ACEOF
28389
28390 fi
28391 LIBICONV=
28392 if test "$am_cv_lib_iconv" = yes; then
28393 LIBICONV="-liconv"
28394 fi
28395
28396
28397
28398 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
28399 ac_config_commands="$ac_config_commands default"
28400 cat >confcache <<\_ACEOF
28401 # This file is a shell script that caches the results of configure
28402 # tests run on this system so they can be shared between configure
28403 # scripts and configure runs, see configure's option --config-cache.
28404 # It is not useful on other systems. If it contains results you don't
28405 # want to keep, you may remove or edit it.
28406 #
28407 # config.status only pays attention to the cache file if you give it
28408 # the --recheck option to rerun configure.
28409 #
28410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28412 # following values.
28413
28414 _ACEOF
28415
28416 # The following way of writing the cache mishandles newlines in values,
28417 # but we know of no workaround that is simple, portable, and efficient.
28418 # So, don't put newlines in cache variables' values.
28419 # Ultrix sh set writes to stderr and can't be redirected directly,
28420 # and sets the high bit in the cache file unless we assign to the vars.
28421 {
28422 (set) 2>&1 |
28423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28424 *ac_space=\ *)
28425 # `set' does not quote correctly, so add quotes (double-quote
28426 # substitution turns \\\\ into \\, and sed turns \\ into \).
28427 sed -n \
28428 "s/'/'\\\\''/g;
28429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28430 ;;
28431 *)
28432 # `set' quotes correctly as required by POSIX, so do not add quotes.
28433 sed -n \
28434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28435 ;;
28436 esac;
28437 } |
28438 sed '
28439 t clear
28440 : clear
28441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28442 t end
28443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28444 : end' >>confcache
28445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28446 if test -w $cache_file; then
28447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28448 cat confcache >$cache_file
28449 else
28450 echo "not updating unwritable cache $cache_file"
28451 fi
28452 fi
28453 rm -f confcache
28454
28455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28456 # Let make expand exec_prefix.
28457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28458
28459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28461 # trailing colons and then remove the whole line if VPATH becomes empty
28462 # (actually we leave an empty line to preserve line numbers).
28463 if test "x$srcdir" = x.; then
28464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28465 s/:*\$(srcdir):*/:/;
28466 s/:*\${srcdir}:*/:/;
28467 s/:*@srcdir@:*/:/;
28468 s/^\([^=]*=[ ]*\):*/\1/;
28469 s/:*$//;
28470 s/^[^=]*=[ ]*$//;
28471 }'
28472 fi
28473
28474 DEFS=-DHAVE_CONFIG_H
28475
28476 ac_libobjs=
28477 ac_ltlibobjs=
28478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28479 # 1. Remove the extension, and $U if already installed.
28480 ac_i=`echo "$ac_i" |
28481 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28482 # 2. Add them.
28483 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28484 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28485 done
28486 LIBOBJS=$ac_libobjs
28487
28488 LTLIBOBJS=$ac_ltlibobjs
28489
28490
28491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28492 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28493 Usually this means the macro was only invoked conditionally." >&5
28494 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28495 Usually this means the macro was only invoked conditionally." >&2;}
28496 { (exit 1); exit 1; }; }
28497 fi
28498 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28499 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28500 Usually this means the macro was only invoked conditionally." >&5
28501 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28502 Usually this means the macro was only invoked conditionally." >&2;}
28503 { (exit 1); exit 1; }; }
28504 fi
28505
28506 gl_libobjs=
28507 gl_ltlibobjs=
28508 if test -n "$gl_LIBOBJS"; then
28509 # Remove the extension.
28510 sed_drop_objext='s/\.o$//;s/\.obj$//'
28511 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28512 gl_libobjs="$gl_libobjs $i.$ac_objext"
28513 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28514 done
28515 fi
28516 gl_LIBOBJS=$gl_libobjs
28517
28518 gl_LTLIBOBJS=$gl_ltlibobjs
28519
28520
28521
28522 gltests_libobjs=
28523 gltests_ltlibobjs=
28524 if test -n "$gltests_LIBOBJS"; then
28525 # Remove the extension.
28526 sed_drop_objext='s/\.o$//;s/\.obj$//'
28527 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28528 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28529 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28530 done
28531 fi
28532 gltests_LIBOBJS=$gltests_libobjs
28533
28534 gltests_LTLIBOBJS=$gltests_ltlibobjs
28535
28536
28537 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28538 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28539 Usually this means the macro was only invoked conditionally." >&5
28540 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28541 Usually this means the macro was only invoked conditionally." >&2;}
28542 { (exit 1); exit 1; }; }
28543 fi
28544 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28546 Usually this means the macro was only invoked conditionally." >&5
28547 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28548 Usually this means the macro was only invoked conditionally." >&2;}
28549 { (exit 1); exit 1; }; }
28550 fi
28551
28552 : ${CONFIG_STATUS=./config.status}
28553 ac_clean_files_save=$ac_clean_files
28554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28557 cat >$CONFIG_STATUS <<_ACEOF
28558 #! $SHELL
28559 # Generated by $as_me.
28560 # Run this file to recreate the current configuration.
28561 # Compiler output produced by configure, useful for debugging
28562 # configure, is in config.log if it exists.
28563
28564 debug=false
28565 ac_cs_recheck=false
28566 ac_cs_silent=false
28567 SHELL=\${CONFIG_SHELL-$SHELL}
28568 _ACEOF
28569
28570 cat >>$CONFIG_STATUS <<\_ACEOF
28571 ## --------------------- ##
28572 ## M4sh Initialization. ##
28573 ## --------------------- ##
28574
28575 # Be Bourne compatible
28576 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28577 emulate sh
28578 NULLCMD=:
28579 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28580 # is contrary to our usage. Disable this feature.
28581 alias -g '${1+"$@"}'='"$@"'
28582 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28583 set -o posix
28584 fi
28585 DUALCASE=1; export DUALCASE # for MKS sh
28586
28587 # Support unset when possible.
28588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28589 as_unset=unset
28590 else
28591 as_unset=false
28592 fi
28593
28594
28595 # Work around bugs in pre-3.0 UWIN ksh.
28596 $as_unset ENV MAIL MAILPATH
28597 PS1='$ '
28598 PS2='> '
28599 PS4='+ '
28600
28601 # NLS nuisances.
28602 for as_var in \
28603 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28604 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28605 LC_TELEPHONE LC_TIME
28606 do
28607 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28608 eval $as_var=C; export $as_var
28609 else
28610 $as_unset $as_var
28611 fi
28612 done
28613
28614 # Required to use basename.
28615 if expr a : '\(a\)' >/dev/null 2>&1; then
28616 as_expr=expr
28617 else
28618 as_expr=false
28619 fi
28620
28621 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28622 as_basename=basename
28623 else
28624 as_basename=false
28625 fi
28626
28627
28628 # Name of the executable.
28629 as_me=`$as_basename "$0" ||
28630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28631 X"$0" : 'X\(//\)$' \| \
28632 X"$0" : 'X\(/\)$' \| \
28633 . : '\(.\)' 2>/dev/null ||
28634 echo X/"$0" |
28635 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28636 /^X\/\(\/\/\)$/{ s//\1/; q; }
28637 /^X\/\(\/\).*/{ s//\1/; q; }
28638 s/.*/./; q'`
28639
28640
28641 # PATH needs CR, and LINENO needs CR and PATH.
28642 # Avoid depending upon Character Ranges.
28643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28646 as_cr_digits='0123456789'
28647 as_cr_alnum=$as_cr_Letters$as_cr_digits
28648
28649 # The user is always right.
28650 if test "${PATH_SEPARATOR+set}" != set; then
28651 echo "#! /bin/sh" >conf$$.sh
28652 echo "exit 0" >>conf$$.sh
28653 chmod +x conf$$.sh
28654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28655 PATH_SEPARATOR=';'
28656 else
28657 PATH_SEPARATOR=:
28658 fi
28659 rm -f conf$$.sh
28660 fi
28661
28662
28663 as_lineno_1=$LINENO
28664 as_lineno_2=$LINENO
28665 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28666 test "x$as_lineno_1" != "x$as_lineno_2" &&
28667 test "x$as_lineno_3" = "x$as_lineno_2" || {
28668 # Find who we are. Look in the path if we contain no path at all
28669 # relative or not.
28670 case $0 in
28671 *[\\/]* ) as_myself=$0 ;;
28672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28673 for as_dir in $PATH
28674 do
28675 IFS=$as_save_IFS
28676 test -z "$as_dir" && as_dir=.
28677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28678 done
28679
28680 ;;
28681 esac
28682 # We did not find ourselves, most probably we were run as `sh COMMAND'
28683 # in which case we are not to be found in the path.
28684 if test "x$as_myself" = x; then
28685 as_myself=$0
28686 fi
28687 if test ! -f "$as_myself"; then
28688 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28689 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28690 { (exit 1); exit 1; }; }
28691 fi
28692 case $CONFIG_SHELL in
28693 '')
28694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28695 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28696 do
28697 IFS=$as_save_IFS
28698 test -z "$as_dir" && as_dir=.
28699 for as_base in sh bash ksh sh5; do
28700 case $as_dir in
28701 /*)
28702 if ("$as_dir/$as_base" -c '
28703 as_lineno_1=$LINENO
28704 as_lineno_2=$LINENO
28705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28706 test "x$as_lineno_1" != "x$as_lineno_2" &&
28707 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28708 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28709 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28710 CONFIG_SHELL=$as_dir/$as_base
28711 export CONFIG_SHELL
28712 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28713 fi;;
28714 esac
28715 done
28716 done
28717 ;;
28718 esac
28719
28720 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28721 # uniformly replaced by the line number. The first 'sed' inserts a
28722 # line-number line before each line; the second 'sed' does the real
28723 # work. The second script uses 'N' to pair each line-number line
28724 # with the numbered line, and appends trailing '-' during
28725 # substitution so that $LINENO is not a special case at line end.
28726 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28727 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28728 sed '=' <$as_myself |
28729 sed '
28730 N
28731 s,$,-,
28732 : loop
28733 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28734 t loop
28735 s,-$,,
28736 s,^['$as_cr_digits']*\n,,
28737 ' >$as_me.lineno &&
28738 chmod +x $as_me.lineno ||
28739 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28740 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28741 { (exit 1); exit 1; }; }
28742
28743 # Don't try to exec as it changes $[0], causing all sort of problems
28744 # (the dirname of $[0] is not the place where we might find the
28745 # original and so on. Autoconf is especially sensible to this).
28746 . ./$as_me.lineno
28747 # Exit status is that of the last command.
28748 exit
28749 }
28750
28751
28752 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28753 *c*,-n*) ECHO_N= ECHO_C='
28754 ' ECHO_T=' ' ;;
28755 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28756 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28757 esac
28758
28759 if expr a : '\(a\)' >/dev/null 2>&1; then
28760 as_expr=expr
28761 else
28762 as_expr=false
28763 fi
28764
28765 rm -f conf$$ conf$$.exe conf$$.file
28766 echo >conf$$.file
28767 if ln -s conf$$.file conf$$ 2>/dev/null; then
28768 # We could just check for DJGPP; but this test a) works b) is more generic
28769 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28770 if test -f conf$$.exe; then
28771 # Don't use ln at all; we don't have any links
28772 as_ln_s='cp -p'
28773 else
28774 as_ln_s='ln -s'
28775 fi
28776 elif ln conf$$.file conf$$ 2>/dev/null; then
28777 as_ln_s=ln
28778 else
28779 as_ln_s='cp -p'
28780 fi
28781 rm -f conf$$ conf$$.exe conf$$.file
28782
28783 if mkdir -p . 2>/dev/null; then
28784 as_mkdir_p=:
28785 else
28786 test -d ./-p && rmdir ./-p
28787 as_mkdir_p=false
28788 fi
28789
28790 as_executable_p="test -f"
28791
28792 # Sed expression to map a string onto a valid CPP name.
28793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28794
28795 # Sed expression to map a string onto a valid variable name.
28796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28797
28798
28799 # IFS
28800 # We need space, tab and new line, in precisely that order.
28801 as_nl='
28802 '
28803 IFS=" $as_nl"
28804
28805 # CDPATH.
28806 $as_unset CDPATH
28807
28808 exec 6>&1
28809
28810 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28811 # report actual input values of CONFIG_FILES etc. instead of their
28812 # values after options handling. Logging --version etc. is OK.
28813 exec 5>>config.log
28814 {
28815 echo
28816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28817 ## Running $as_me. ##
28818 _ASBOX
28819 } >&5
28820 cat >&5 <<_CSEOF
28821
28822 This file was extended by $as_me, which was
28823 generated by GNU Autoconf 2.59. Invocation command line was
28824
28825 CONFIG_FILES = $CONFIG_FILES
28826 CONFIG_HEADERS = $CONFIG_HEADERS
28827 CONFIG_LINKS = $CONFIG_LINKS
28828 CONFIG_COMMANDS = $CONFIG_COMMANDS
28829 $ $0 $@
28830
28831 _CSEOF
28832 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28833 echo >&5
28834 _ACEOF
28835
28836 # Files that config.status was made for.
28837 if test -n "$ac_config_files"; then
28838 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28839 fi
28840
28841 if test -n "$ac_config_headers"; then
28842 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28843 fi
28844
28845 if test -n "$ac_config_links"; then
28846 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28847 fi
28848
28849 if test -n "$ac_config_commands"; then
28850 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28851 fi
28852
28853 cat >>$CONFIG_STATUS <<\_ACEOF
28854
28855 ac_cs_usage="\
28856 \`$as_me' instantiates files from templates according to the
28857 current configuration.
28858
28859 Usage: $0 [OPTIONS] [FILE]...
28860
28861 -h, --help print this help, then exit
28862 -V, --version print version number, then exit
28863 -q, --quiet do not print progress messages
28864 -d, --debug don't remove temporary files
28865 --recheck update $as_me by reconfiguring in the same conditions
28866 --file=FILE[:TEMPLATE]
28867 instantiate the configuration file FILE
28868 --header=FILE[:TEMPLATE]
28869 instantiate the configuration header FILE
28870
28871 Configuration files:
28872 $config_files
28873
28874 Configuration headers:
28875 $config_headers
28876
28877 Configuration links:
28878 $config_links
28879
28880 Configuration commands:
28881 $config_commands
28882
28883 Report bugs to <bug-autoconf@gnu.org>."
28884 _ACEOF
28885
28886 cat >>$CONFIG_STATUS <<_ACEOF
28887 ac_cs_version="\\
28888 config.status
28889 configured by $0, generated by GNU Autoconf 2.59,
28890 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28891
28892 Copyright (C) 2003 Free Software Foundation, Inc.
28893 This config.status script is free software; the Free Software Foundation
28894 gives unlimited permission to copy, distribute and modify it."
28895 srcdir=$srcdir
28896 INSTALL="$INSTALL"
28897 _ACEOF
28898
28899 cat >>$CONFIG_STATUS <<\_ACEOF
28900 # If no file are specified by the user, then we need to provide default
28901 # value. By we need to know if files were specified by the user.
28902 ac_need_defaults=:
28903 while test $# != 0
28904 do
28905 case $1 in
28906 --*=*)
28907 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28908 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28909 ac_shift=:
28910 ;;
28911 -*)
28912 ac_option=$1
28913 ac_optarg=$2
28914 ac_shift=shift
28915 ;;
28916 *) # This is not an option, so the user has probably given explicit
28917 # arguments.
28918 ac_option=$1
28919 ac_need_defaults=false;;
28920 esac
28921
28922 case $ac_option in
28923 # Handling of the options.
28924 _ACEOF
28925 cat >>$CONFIG_STATUS <<\_ACEOF
28926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28927 ac_cs_recheck=: ;;
28928 --version | --vers* | -V )
28929 echo "$ac_cs_version"; exit 0 ;;
28930 --he | --h)
28931 # Conflict between --help and --header
28932 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28933 Try \`$0 --help' for more information." >&5
28934 echo "$as_me: error: ambiguous option: $1
28935 Try \`$0 --help' for more information." >&2;}
28936 { (exit 1); exit 1; }; };;
28937 --help | --hel | -h )
28938 echo "$ac_cs_usage"; exit 0 ;;
28939 --debug | --d* | -d )
28940 debug=: ;;
28941 --file | --fil | --fi | --f )
28942 $ac_shift
28943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28944 ac_need_defaults=false;;
28945 --header | --heade | --head | --hea )
28946 $ac_shift
28947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28948 ac_need_defaults=false;;
28949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28951 ac_cs_silent=: ;;
28952
28953 # This is an error.
28954 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28955 Try \`$0 --help' for more information." >&5
28956 echo "$as_me: error: unrecognized option: $1
28957 Try \`$0 --help' for more information." >&2;}
28958 { (exit 1); exit 1; }; } ;;
28959
28960 *) ac_config_targets="$ac_config_targets $1" ;;
28961
28962 esac
28963 shift
28964 done
28965
28966 ac_configure_extra_args=
28967
28968 if $ac_cs_silent; then
28969 exec 6>/dev/null
28970 ac_configure_extra_args="$ac_configure_extra_args --silent"
28971 fi
28972
28973 _ACEOF
28974 cat >>$CONFIG_STATUS <<_ACEOF
28975 if \$ac_cs_recheck; then
28976 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28977 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28978 fi
28979
28980 _ACEOF
28981
28982 cat >>$CONFIG_STATUS <<_ACEOF
28983 #
28984 # INIT-COMMANDS section.
28985 #
28986
28987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28988
28989 GCC="$GCC"
28990 CC="$CC"
28991 acx_cv_header_stdint="$acx_cv_header_stdint"
28992 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28993 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28994 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28995 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28996 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28997 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28998 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28999 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29000 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29001 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29002 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29003 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29004 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29005
29006
29007 gdb_host_cpu=$gdb_host_cpu
29008 nativefile=$nativefile
29009
29010
29011 _ACEOF
29012
29013
29014
29015 cat >>$CONFIG_STATUS <<\_ACEOF
29016 for ac_config_target in $ac_config_targets
29017 do
29018 case "$ac_config_target" in
29019 # Handling of arguments.
29020 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29021 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
29022 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
29023 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
29024 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29025 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29026 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29027 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29030 { (exit 1); exit 1; }; };;
29031 esac
29032 done
29033
29034 # If the user did not use the arguments to specify the items to instantiate,
29035 # then the envvar interface is used. Set only those that are not.
29036 # We use the long form for the default assignment because of an extremely
29037 # bizarre bug on SunOS 4.1.3.
29038 if $ac_need_defaults; then
29039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29041 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29043 fi
29044
29045 # Have a temporary directory for convenience. Make it in the build tree
29046 # simply because there is no reason to put it here, and in addition,
29047 # creating and moving files from /tmp can sometimes cause problems.
29048 # Create a temporary directory, and hook for its removal unless debugging.
29049 $debug ||
29050 {
29051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29052 trap '{ (exit 1); exit 1; }' 1 2 13 15
29053 }
29054
29055 # Create a (secure) tmp directory for tmp files.
29056
29057 {
29058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29059 test -n "$tmp" && test -d "$tmp"
29060 } ||
29061 {
29062 tmp=./confstat$$-$RANDOM
29063 (umask 077 && mkdir $tmp)
29064 } ||
29065 {
29066 echo "$me: cannot create a temporary directory in ." >&2
29067 { (exit 1); exit 1; }
29068 }
29069
29070 _ACEOF
29071
29072 cat >>$CONFIG_STATUS <<_ACEOF
29073
29074 #
29075 # CONFIG_FILES section.
29076 #
29077
29078 # No need to generate the scripts if there are no CONFIG_FILES.
29079 # This happens for instance when ./config.status config.h
29080 if test -n "\$CONFIG_FILES"; then
29081 # Protect against being on the right side of a sed subst in config.status.
29082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29084 s,@SHELL@,$SHELL,;t t
29085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29091 s,@exec_prefix@,$exec_prefix,;t t
29092 s,@prefix@,$prefix,;t t
29093 s,@program_transform_name@,$program_transform_name,;t t
29094 s,@bindir@,$bindir,;t t
29095 s,@sbindir@,$sbindir,;t t
29096 s,@libexecdir@,$libexecdir,;t t
29097 s,@datadir@,$datadir,;t t
29098 s,@sysconfdir@,$sysconfdir,;t t
29099 s,@sharedstatedir@,$sharedstatedir,;t t
29100 s,@localstatedir@,$localstatedir,;t t
29101 s,@libdir@,$libdir,;t t
29102 s,@includedir@,$includedir,;t t
29103 s,@oldincludedir@,$oldincludedir,;t t
29104 s,@infodir@,$infodir,;t t
29105 s,@mandir@,$mandir,;t t
29106 s,@build_alias@,$build_alias,;t t
29107 s,@host_alias@,$host_alias,;t t
29108 s,@target_alias@,$target_alias,;t t
29109 s,@DEFS@,$DEFS,;t t
29110 s,@ECHO_C@,$ECHO_C,;t t
29111 s,@ECHO_N@,$ECHO_N,;t t
29112 s,@ECHO_T@,$ECHO_T,;t t
29113 s,@LIBS@,$LIBS,;t t
29114 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29115 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29116 s,@MAINT@,$MAINT,;t t
29117 s,@CC@,$CC,;t t
29118 s,@CFLAGS@,$CFLAGS,;t t
29119 s,@LDFLAGS@,$LDFLAGS,;t t
29120 s,@CPPFLAGS@,$CPPFLAGS,;t t
29121 s,@ac_ct_CC@,$ac_ct_CC,;t t
29122 s,@EXEEXT@,$EXEEXT,;t t
29123 s,@OBJEXT@,$OBJEXT,;t t
29124 s,@CPP@,$CPP,;t t
29125 s,@EGREP@,$EGREP,;t t
29126 s,@RANLIB@,$RANLIB,;t t
29127 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29128 s,@build@,$build,;t t
29129 s,@build_cpu@,$build_cpu,;t t
29130 s,@build_vendor@,$build_vendor,;t t
29131 s,@build_os@,$build_os,;t t
29132 s,@host@,$host,;t t
29133 s,@host_cpu@,$host_cpu,;t t
29134 s,@host_vendor@,$host_vendor,;t t
29135 s,@host_os@,$host_os,;t t
29136 s,@target@,$target,;t t
29137 s,@target_cpu@,$target_cpu,;t t
29138 s,@target_vendor@,$target_vendor,;t t
29139 s,@target_os@,$target_os,;t t
29140 s,@USE_NLS@,$USE_NLS,;t t
29141 s,@LIBINTL@,$LIBINTL,;t t
29142 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29143 s,@INCINTL@,$INCINTL,;t t
29144 s,@XGETTEXT@,$XGETTEXT,;t t
29145 s,@GMSGFMT@,$GMSGFMT,;t t
29146 s,@POSUB@,$POSUB,;t t
29147 s,@CATALOGS@,$CATALOGS,;t t
29148 s,@DATADIRNAME@,$DATADIRNAME,;t t
29149 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29150 s,@GENCAT@,$GENCAT,;t t
29151 s,@CATOBJEXT@,$CATOBJEXT,;t t
29152 s,@localedir@,$localedir,;t t
29153 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29154 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29155 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29156 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29157 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29158 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29159 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29160 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29161 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29162 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29163 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29164 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29165 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29166 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29167 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29168 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29169 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29170 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29171 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29172 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29173 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29174 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29175 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29176 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29177 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29178 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29179 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29180 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29181 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29182 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29183 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29184 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29185 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29186 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29187 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29188 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29189 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29190 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29191 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29192 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29193 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29194 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29195 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29196 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29197 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29198 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29199 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29200 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29201 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29202 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29203 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29204 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29205 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29206 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29207 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29208 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29209 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29210 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29211 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29212 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29213 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29214 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29215 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29216 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29217 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29218 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29219 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29220 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29221 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29222 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29223 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29224 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29225 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29226 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29227 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29228 s,@STDINT_H@,$STDINT_H,;t t
29229 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29230 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29231 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29232 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29233 s,@WCHAR_H@,$WCHAR_H,;t t
29234 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29235 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29236 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29237 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
29238 s,@PACKAGE@,$PACKAGE,;t t
29239 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29240 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29241 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29242 s,@CYGPATH_W@,$CYGPATH_W,;t t
29243 s,@VERSION@,$VERSION,;t t
29244 s,@ACLOCAL@,$ACLOCAL,;t t
29245 s,@AUTOCONF@,$AUTOCONF,;t t
29246 s,@AUTOMAKE@,$AUTOMAKE,;t t
29247 s,@AUTOHEADER@,$AUTOHEADER,;t t
29248 s,@MAKEINFO@,$MAKEINFO,;t t
29249 s,@install_sh@,$install_sh,;t t
29250 s,@STRIP@,$STRIP,;t t
29251 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29252 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29253 s,@mkdir_p@,$mkdir_p,;t t
29254 s,@AWK@,$AWK,;t t
29255 s,@SET_MAKE@,$SET_MAKE,;t t
29256 s,@am__leading_dot@,$am__leading_dot,;t t
29257 s,@AMTAR@,$AMTAR,;t t
29258 s,@am__tar@,$am__tar,;t t
29259 s,@am__untar@,$am__untar,;t t
29260 s,@DEPDIR@,$DEPDIR,;t t
29261 s,@am__include@,$am__include,;t t
29262 s,@am__quote@,$am__quote,;t t
29263 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29264 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29265 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29266 s,@CCDEPMODE@,$CCDEPMODE,;t t
29267 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29268 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29269 s,@subdirs@,$subdirs,;t t
29270 s,@TARGET_OBS@,$TARGET_OBS,;t t
29271 s,@LN_S@,$LN_S,;t t
29272 s,@YACC@,$YACC,;t t
29273 s,@AR@,$AR,;t t
29274 s,@ac_ct_AR@,$ac_ct_AR,;t t
29275 s,@DLLTOOL@,$DLLTOOL,;t t
29276 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29277 s,@WINDRES@,$WINDRES,;t t
29278 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29279 s,@MIG@,$MIG,;t t
29280 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
29281 s,@READLINE@,$READLINE,;t t
29282 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29283 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
29284 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29285 s,@LIBEXPAT@,$LIBEXPAT,;t t
29286 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
29287 s,@ALLOCA@,$ALLOCA,;t t
29288 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29289 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29290 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29291 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29292 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29293 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29294 s,@WIN32LIBS@,$WIN32LIBS,;t t
29295 s,@LIBGUI@,$LIBGUI,;t t
29296 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29297 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29298 s,@TCL_VERSION@,$TCL_VERSION,;t t
29299 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29300 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29301 s,@TCL_CC@,$TCL_CC,;t t
29302 s,@TCL_DEFS@,$TCL_DEFS,;t t
29303 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29304 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29305 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29306 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29307 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29308 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29309 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29310 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29311 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29312 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29313 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29314 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29315 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29316 s,@TK_VERSION@,$TK_VERSION,;t t
29317 s,@TK_DEFS@,$TK_DEFS,;t t
29318 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29319 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29320 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29321 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29322 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29323 s,@TCLHDIR@,$TCLHDIR,;t t
29324 s,@TKHDIR@,$TKHDIR,;t t
29325 s,@ITCLHDIR@,$ITCLHDIR,;t t
29326 s,@ITKHDIR@,$ITKHDIR,;t t
29327 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29328 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29329 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29330 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29331 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29332 s,@ITK_VERSION@,$ITK_VERSION,;t t
29333 s,@ITK_DEFS@,$ITK_DEFS,;t t
29334 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29335 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29336 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29337 s,@X_CFLAGS@,$X_CFLAGS,;t t
29338 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29339 s,@X_LIBS@,$X_LIBS,;t t
29340 s,@TCL_DEPS@,$TCL_DEPS,;t t
29341 s,@TK_DEPS@,$TK_DEPS,;t t
29342 s,@ITCLLIB@,$ITCLLIB,;t t
29343 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29344 s,@ITKLIB@,$ITKLIB,;t t
29345 s,@ITK_DEPS@,$ITK_DEPS,;t t
29346 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29347 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29348 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
29349 s,@SIM@,$SIM,;t t
29350 s,@SIM_OBS@,$SIM_OBS,;t t
29351 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29352 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29353 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29354 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29355 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29356 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29357 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29358 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29359 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29360 s,@target_subdir@,$target_subdir,;t t
29361 s,@frags@,$frags,;t t
29362 s,@nm_h@,$nm_h,;t t
29363 s,@LIBICONV@,$LIBICONV,;t t
29364 s,@LIBOBJS@,$LIBOBJS,;t t
29365 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29366 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29367 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29368 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29369 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
29370 /@host_makefile_frag@/r $host_makefile_frag
29371 s,@host_makefile_frag@,,;t t
29372 CEOF
29373
29374 _ACEOF
29375
29376 cat >>$CONFIG_STATUS <<\_ACEOF
29377 # Split the substitutions into bite-sized pieces for seds with
29378 # small command number limits, like on Digital OSF/1 and HP-UX.
29379 ac_max_sed_lines=48
29380 ac_sed_frag=1 # Number of current file.
29381 ac_beg=1 # First line for current file.
29382 ac_end=$ac_max_sed_lines # Line after last line for current file.
29383 ac_more_lines=:
29384 ac_sed_cmds=
29385 while $ac_more_lines; do
29386 if test $ac_beg -gt 1; then
29387 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29388 else
29389 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29390 fi
29391 if test ! -s $tmp/subs.frag; then
29392 ac_more_lines=false
29393 else
29394 # The purpose of the label and of the branching condition is to
29395 # speed up the sed processing (if there are no `@' at all, there
29396 # is no need to browse any of the substitutions).
29397 # These are the two extra sed commands mentioned above.
29398 (echo ':t
29399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29400 if test -z "$ac_sed_cmds"; then
29401 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29402 else
29403 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29404 fi
29405 ac_sed_frag=`expr $ac_sed_frag + 1`
29406 ac_beg=$ac_end
29407 ac_end=`expr $ac_end + $ac_max_sed_lines`
29408 fi
29409 done
29410 if test -z "$ac_sed_cmds"; then
29411 ac_sed_cmds=cat
29412 fi
29413 fi # test -n "$CONFIG_FILES"
29414
29415 _ACEOF
29416 cat >>$CONFIG_STATUS <<\_ACEOF
29417 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29419 case $ac_file in
29420 - | *:- | *:-:* ) # input from stdin
29421 cat >$tmp/stdin
29422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29426 * ) ac_file_in=$ac_file.in ;;
29427 esac
29428
29429 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29430 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29432 X"$ac_file" : 'X\(//\)[^/]' \| \
29433 X"$ac_file" : 'X\(//\)$' \| \
29434 X"$ac_file" : 'X\(/\)' \| \
29435 . : '\(.\)' 2>/dev/null ||
29436 echo X"$ac_file" |
29437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29439 /^X\(\/\/\)$/{ s//\1/; q; }
29440 /^X\(\/\).*/{ s//\1/; q; }
29441 s/.*/./; q'`
29442 { if $as_mkdir_p; then
29443 mkdir -p "$ac_dir"
29444 else
29445 as_dir="$ac_dir"
29446 as_dirs=
29447 while test ! -d "$as_dir"; do
29448 as_dirs="$as_dir $as_dirs"
29449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29451 X"$as_dir" : 'X\(//\)[^/]' \| \
29452 X"$as_dir" : 'X\(//\)$' \| \
29453 X"$as_dir" : 'X\(/\)' \| \
29454 . : '\(.\)' 2>/dev/null ||
29455 echo X"$as_dir" |
29456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29458 /^X\(\/\/\)$/{ s//\1/; q; }
29459 /^X\(\/\).*/{ s//\1/; q; }
29460 s/.*/./; q'`
29461 done
29462 test ! -n "$as_dirs" || mkdir $as_dirs
29463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29465 { (exit 1); exit 1; }; }; }
29466
29467 ac_builddir=.
29468
29469 if test "$ac_dir" != .; then
29470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29471 # A "../" for each directory in $ac_dir_suffix.
29472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29473 else
29474 ac_dir_suffix= ac_top_builddir=
29475 fi
29476
29477 case $srcdir in
29478 .) # No --srcdir option. We are building in place.
29479 ac_srcdir=.
29480 if test -z "$ac_top_builddir"; then
29481 ac_top_srcdir=.
29482 else
29483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29484 fi ;;
29485 [\\/]* | ?:[\\/]* ) # Absolute path.
29486 ac_srcdir=$srcdir$ac_dir_suffix;
29487 ac_top_srcdir=$srcdir ;;
29488 *) # Relative path.
29489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29491 esac
29492
29493 # Do not use `cd foo && pwd` to compute absolute paths, because
29494 # the directories may not exist.
29495 case `pwd` in
29496 .) ac_abs_builddir="$ac_dir";;
29497 *)
29498 case "$ac_dir" in
29499 .) ac_abs_builddir=`pwd`;;
29500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29501 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29502 esac;;
29503 esac
29504 case $ac_abs_builddir in
29505 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29506 *)
29507 case ${ac_top_builddir}. in
29508 .) ac_abs_top_builddir=$ac_abs_builddir;;
29509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29511 esac;;
29512 esac
29513 case $ac_abs_builddir in
29514 .) ac_abs_srcdir=$ac_srcdir;;
29515 *)
29516 case $ac_srcdir in
29517 .) ac_abs_srcdir=$ac_abs_builddir;;
29518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29520 esac;;
29521 esac
29522 case $ac_abs_builddir in
29523 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29524 *)
29525 case $ac_top_srcdir in
29526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29529 esac;;
29530 esac
29531
29532
29533 case $INSTALL in
29534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29535 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29536 esac
29537
29538 if test x"$ac_file" != x-; then
29539 { echo "$as_me:$LINENO: creating $ac_file" >&5
29540 echo "$as_me: creating $ac_file" >&6;}
29541 rm -f "$ac_file"
29542 fi
29543 # Let's still pretend it is `configure' which instantiates (i.e., don't
29544 # use $as_me), people would be surprised to read:
29545 # /* config.h. Generated by config.status. */
29546 if test x"$ac_file" = x-; then
29547 configure_input=
29548 else
29549 configure_input="$ac_file. "
29550 fi
29551 configure_input=$configure_input"Generated from `echo $ac_file_in |
29552 sed 's,.*/,,'` by configure."
29553
29554 # First look for the input files in the build tree, otherwise in the
29555 # src tree.
29556 ac_file_inputs=`IFS=:
29557 for f in $ac_file_in; do
29558 case $f in
29559 -) echo $tmp/stdin ;;
29560 [\\/$]*)
29561 # Absolute (can't be DOS-style, as IFS=:)
29562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29563 echo "$as_me: error: cannot find input file: $f" >&2;}
29564 { (exit 1); exit 1; }; }
29565 echo "$f";;
29566 *) # Relative
29567 if test -f "$f"; then
29568 # Build tree
29569 echo "$f"
29570 elif test -f "$srcdir/$f"; then
29571 # Source tree
29572 echo "$srcdir/$f"
29573 else
29574 # /dev/null tree
29575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29576 echo "$as_me: error: cannot find input file: $f" >&2;}
29577 { (exit 1); exit 1; }; }
29578 fi;;
29579 esac
29580 done` || { (exit 1); exit 1; }
29581 _ACEOF
29582 cat >>$CONFIG_STATUS <<_ACEOF
29583 sed "$ac_vpsub
29584 $extrasub
29585 _ACEOF
29586 cat >>$CONFIG_STATUS <<\_ACEOF
29587 :t
29588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29589 s,@configure_input@,$configure_input,;t t
29590 s,@srcdir@,$ac_srcdir,;t t
29591 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29592 s,@top_srcdir@,$ac_top_srcdir,;t t
29593 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29594 s,@builddir@,$ac_builddir,;t t
29595 s,@abs_builddir@,$ac_abs_builddir,;t t
29596 s,@top_builddir@,$ac_top_builddir,;t t
29597 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29598 s,@INSTALL@,$ac_INSTALL,;t t
29599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29600 rm -f $tmp/stdin
29601 if test x"$ac_file" != x-; then
29602 mv $tmp/out $ac_file
29603 else
29604 cat $tmp/out
29605 rm -f $tmp/out
29606 fi
29607
29608 done
29609 _ACEOF
29610 cat >>$CONFIG_STATUS <<\_ACEOF
29611
29612 #
29613 # CONFIG_HEADER section.
29614 #
29615
29616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29618 #
29619 # ac_d sets the value in "#define NAME VALUE" lines.
29620 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29621 ac_dB='[ ].*$,\1#\2'
29622 ac_dC=' '
29623 ac_dD=',;t'
29624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29625 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29626 ac_uB='$,\1#\2define\3'
29627 ac_uC=' '
29628 ac_uD=',;t'
29629
29630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29632 case $ac_file in
29633 - | *:- | *:-:* ) # input from stdin
29634 cat >$tmp/stdin
29635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29639 * ) ac_file_in=$ac_file.in ;;
29640 esac
29641
29642 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29643 echo "$as_me: creating $ac_file" >&6;}
29644
29645 # First look for the input files in the build tree, otherwise in the
29646 # src tree.
29647 ac_file_inputs=`IFS=:
29648 for f in $ac_file_in; do
29649 case $f in
29650 -) echo $tmp/stdin ;;
29651 [\\/$]*)
29652 # Absolute (can't be DOS-style, as IFS=:)
29653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29654 echo "$as_me: error: cannot find input file: $f" >&2;}
29655 { (exit 1); exit 1; }; }
29656 # Do quote $f, to prevent DOS paths from being IFS'd.
29657 echo "$f";;
29658 *) # Relative
29659 if test -f "$f"; then
29660 # Build tree
29661 echo "$f"
29662 elif test -f "$srcdir/$f"; then
29663 # Source tree
29664 echo "$srcdir/$f"
29665 else
29666 # /dev/null tree
29667 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29668 echo "$as_me: error: cannot find input file: $f" >&2;}
29669 { (exit 1); exit 1; }; }
29670 fi;;
29671 esac
29672 done` || { (exit 1); exit 1; }
29673 # Remove the trailing spaces.
29674 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29675
29676 _ACEOF
29677
29678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29679 # `conftest.undefs', that substitutes the proper values into
29680 # config.h.in to produce config.h. The first handles `#define'
29681 # templates, and the second `#undef' templates.
29682 # And first: Protect against being on the right side of a sed subst in
29683 # config.status. Protect against being in an unquoted here document
29684 # in config.status.
29685 rm -f conftest.defines conftest.undefs
29686 # Using a here document instead of a string reduces the quoting nightmare.
29687 # Putting comments in sed scripts is not portable.
29688 #
29689 # `end' is used to avoid that the second main sed command (meant for
29690 # 0-ary CPP macros) applies to n-ary macro definitions.
29691 # See the Autoconf documentation for `clear'.
29692 cat >confdef2sed.sed <<\_ACEOF
29693 s/[\\&,]/\\&/g
29694 s,[\\$`],\\&,g
29695 t clear
29696 : clear
29697 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29698 t end
29699 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29700 : end
29701 _ACEOF
29702 # If some macros were called several times there might be several times
29703 # the same #defines, which is useless. Nevertheless, we may not want to
29704 # sort them, since we want the *last* AC-DEFINE to be honored.
29705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29707 rm -f confdef2sed.sed
29708
29709 # This sed command replaces #undef with comments. This is necessary, for
29710 # example, in the case of _POSIX_SOURCE, which is predefined and required
29711 # on some systems where configure will not decide to define it.
29712 cat >>conftest.undefs <<\_ACEOF
29713 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29714 _ACEOF
29715
29716 # Break up conftest.defines because some shells have a limit on the size
29717 # of here documents, and old seds have small limits too (100 cmds).
29718 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29719 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29720 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29721 echo ' :' >>$CONFIG_STATUS
29722 rm -f conftest.tail
29723 while grep . conftest.defines >/dev/null
29724 do
29725 # Write a limited-size here document to $tmp/defines.sed.
29726 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29727 # Speed up: don't consider the non `#define' lines.
29728 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29729 # Work around the forget-to-reset-the-flag bug.
29730 echo 't clr' >>$CONFIG_STATUS
29731 echo ': clr' >>$CONFIG_STATUS
29732 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29733 echo 'CEOF
29734 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29735 rm -f $tmp/in
29736 mv $tmp/out $tmp/in
29737 ' >>$CONFIG_STATUS
29738 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29739 rm -f conftest.defines
29740 mv conftest.tail conftest.defines
29741 done
29742 rm -f conftest.defines
29743 echo ' fi # grep' >>$CONFIG_STATUS
29744 echo >>$CONFIG_STATUS
29745
29746 # Break up conftest.undefs because some shells have a limit on the size
29747 # of here documents, and old seds have small limits too (100 cmds).
29748 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29749 rm -f conftest.tail
29750 while grep . conftest.undefs >/dev/null
29751 do
29752 # Write a limited-size here document to $tmp/undefs.sed.
29753 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29754 # Speed up: don't consider the non `#undef'
29755 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29756 # Work around the forget-to-reset-the-flag bug.
29757 echo 't clr' >>$CONFIG_STATUS
29758 echo ': clr' >>$CONFIG_STATUS
29759 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29760 echo 'CEOF
29761 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29762 rm -f $tmp/in
29763 mv $tmp/out $tmp/in
29764 ' >>$CONFIG_STATUS
29765 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29766 rm -f conftest.undefs
29767 mv conftest.tail conftest.undefs
29768 done
29769 rm -f conftest.undefs
29770
29771 cat >>$CONFIG_STATUS <<\_ACEOF
29772 # Let's still pretend it is `configure' which instantiates (i.e., don't
29773 # use $as_me), people would be surprised to read:
29774 # /* config.h. Generated by config.status. */
29775 if test x"$ac_file" = x-; then
29776 echo "/* Generated by configure. */" >$tmp/config.h
29777 else
29778 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29779 fi
29780 cat $tmp/in >>$tmp/config.h
29781 rm -f $tmp/in
29782 if test x"$ac_file" != x-; then
29783 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29785 echo "$as_me: $ac_file is unchanged" >&6;}
29786 else
29787 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29789 X"$ac_file" : 'X\(//\)[^/]' \| \
29790 X"$ac_file" : 'X\(//\)$' \| \
29791 X"$ac_file" : 'X\(/\)' \| \
29792 . : '\(.\)' 2>/dev/null ||
29793 echo X"$ac_file" |
29794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29796 /^X\(\/\/\)$/{ s//\1/; q; }
29797 /^X\(\/\).*/{ s//\1/; q; }
29798 s/.*/./; q'`
29799 { if $as_mkdir_p; then
29800 mkdir -p "$ac_dir"
29801 else
29802 as_dir="$ac_dir"
29803 as_dirs=
29804 while test ! -d "$as_dir"; do
29805 as_dirs="$as_dir $as_dirs"
29806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29808 X"$as_dir" : 'X\(//\)[^/]' \| \
29809 X"$as_dir" : 'X\(//\)$' \| \
29810 X"$as_dir" : 'X\(/\)' \| \
29811 . : '\(.\)' 2>/dev/null ||
29812 echo X"$as_dir" |
29813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29815 /^X\(\/\/\)$/{ s//\1/; q; }
29816 /^X\(\/\).*/{ s//\1/; q; }
29817 s/.*/./; q'`
29818 done
29819 test ! -n "$as_dirs" || mkdir $as_dirs
29820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29822 { (exit 1); exit 1; }; }; }
29823
29824 rm -f $ac_file
29825 mv $tmp/config.h $ac_file
29826 fi
29827 else
29828 cat $tmp/config.h
29829 rm -f $tmp/config.h
29830 fi
29831 # Compute $ac_file's index in $config_headers.
29832 _am_stamp_count=1
29833 for _am_header in $config_headers :; do
29834 case $_am_header in
29835 $ac_file | $ac_file:* )
29836 break ;;
29837 * )
29838 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29839 esac
29840 done
29841 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29842 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29843 X$ac_file : 'X\(//\)[^/]' \| \
29844 X$ac_file : 'X\(//\)$' \| \
29845 X$ac_file : 'X\(/\)' \| \
29846 . : '\(.\)' 2>/dev/null ||
29847 echo X$ac_file |
29848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29850 /^X\(\/\/\)$/{ s//\1/; q; }
29851 /^X\(\/\).*/{ s//\1/; q; }
29852 s/.*/./; q'`/stamp-h$_am_stamp_count
29853 done
29854 _ACEOF
29855 cat >>$CONFIG_STATUS <<\_ACEOF
29856
29857 #
29858 # CONFIG_LINKS section.
29859 #
29860
29861 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29862 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29863 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29864
29865 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29866 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29867
29868 if test ! -r $srcdir/$ac_source; then
29869 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29870 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29871 { (exit 1); exit 1; }; }
29872 fi
29873 rm -f $ac_dest
29874
29875 # Make relative symlinks.
29876 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29877 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29878 X"$ac_dest" : 'X\(//\)[^/]' \| \
29879 X"$ac_dest" : 'X\(//\)$' \| \
29880 X"$ac_dest" : 'X\(/\)' \| \
29881 . : '\(.\)' 2>/dev/null ||
29882 echo X"$ac_dest" |
29883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29885 /^X\(\/\/\)$/{ s//\1/; q; }
29886 /^X\(\/\).*/{ s//\1/; q; }
29887 s/.*/./; q'`
29888 { if $as_mkdir_p; then
29889 mkdir -p "$ac_dest_dir"
29890 else
29891 as_dir="$ac_dest_dir"
29892 as_dirs=
29893 while test ! -d "$as_dir"; do
29894 as_dirs="$as_dir $as_dirs"
29895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29897 X"$as_dir" : 'X\(//\)[^/]' \| \
29898 X"$as_dir" : 'X\(//\)$' \| \
29899 X"$as_dir" : 'X\(/\)' \| \
29900 . : '\(.\)' 2>/dev/null ||
29901 echo X"$as_dir" |
29902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29904 /^X\(\/\/\)$/{ s//\1/; q; }
29905 /^X\(\/\).*/{ s//\1/; q; }
29906 s/.*/./; q'`
29907 done
29908 test ! -n "$as_dirs" || mkdir $as_dirs
29909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29910 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29911 { (exit 1); exit 1; }; }; }
29912
29913 ac_builddir=.
29914
29915 if test "$ac_dest_dir" != .; then
29916 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29917 # A "../" for each directory in $ac_dir_suffix.
29918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29919 else
29920 ac_dir_suffix= ac_top_builddir=
29921 fi
29922
29923 case $srcdir in
29924 .) # No --srcdir option. We are building in place.
29925 ac_srcdir=.
29926 if test -z "$ac_top_builddir"; then
29927 ac_top_srcdir=.
29928 else
29929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29930 fi ;;
29931 [\\/]* | ?:[\\/]* ) # Absolute path.
29932 ac_srcdir=$srcdir$ac_dir_suffix;
29933 ac_top_srcdir=$srcdir ;;
29934 *) # Relative path.
29935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29937 esac
29938
29939 # Do not use `cd foo && pwd` to compute absolute paths, because
29940 # the directories may not exist.
29941 case `pwd` in
29942 .) ac_abs_builddir="$ac_dest_dir";;
29943 *)
29944 case "$ac_dest_dir" in
29945 .) ac_abs_builddir=`pwd`;;
29946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29947 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29948 esac;;
29949 esac
29950 case $ac_abs_builddir in
29951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29952 *)
29953 case ${ac_top_builddir}. in
29954 .) ac_abs_top_builddir=$ac_abs_builddir;;
29955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29957 esac;;
29958 esac
29959 case $ac_abs_builddir in
29960 .) ac_abs_srcdir=$ac_srcdir;;
29961 *)
29962 case $ac_srcdir in
29963 .) ac_abs_srcdir=$ac_abs_builddir;;
29964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29966 esac;;
29967 esac
29968 case $ac_abs_builddir in
29969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29970 *)
29971 case $ac_top_srcdir in
29972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29975 esac;;
29976 esac
29977
29978
29979 case $srcdir in
29980 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29981 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29982 esac
29983
29984 # Try a symlink, then a hard link, then a copy.
29985 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29986 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29987 cp -p $srcdir/$ac_source $ac_dest ||
29988 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29989 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29990 { (exit 1); exit 1; }; }
29991 done
29992 _ACEOF
29993 cat >>$CONFIG_STATUS <<\_ACEOF
29994
29995 #
29996 # CONFIG_COMMANDS section.
29997 #
29998 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29999 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30000 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30001 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30002 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30003 X"$ac_dest" : 'X\(//\)[^/]' \| \
30004 X"$ac_dest" : 'X\(//\)$' \| \
30005 X"$ac_dest" : 'X\(/\)' \| \
30006 . : '\(.\)' 2>/dev/null ||
30007 echo X"$ac_dest" |
30008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30010 /^X\(\/\/\)$/{ s//\1/; q; }
30011 /^X\(\/\).*/{ s//\1/; q; }
30012 s/.*/./; q'`
30013 { if $as_mkdir_p; then
30014 mkdir -p "$ac_dir"
30015 else
30016 as_dir="$ac_dir"
30017 as_dirs=
30018 while test ! -d "$as_dir"; do
30019 as_dirs="$as_dir $as_dirs"
30020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022 X"$as_dir" : 'X\(//\)[^/]' \| \
30023 X"$as_dir" : 'X\(//\)$' \| \
30024 X"$as_dir" : 'X\(/\)' \| \
30025 . : '\(.\)' 2>/dev/null ||
30026 echo X"$as_dir" |
30027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30029 /^X\(\/\/\)$/{ s//\1/; q; }
30030 /^X\(\/\).*/{ s//\1/; q; }
30031 s/.*/./; q'`
30032 done
30033 test ! -n "$as_dirs" || mkdir $as_dirs
30034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30036 { (exit 1); exit 1; }; }; }
30037
30038 ac_builddir=.
30039
30040 if test "$ac_dir" != .; then
30041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30042 # A "../" for each directory in $ac_dir_suffix.
30043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30044 else
30045 ac_dir_suffix= ac_top_builddir=
30046 fi
30047
30048 case $srcdir in
30049 .) # No --srcdir option. We are building in place.
30050 ac_srcdir=.
30051 if test -z "$ac_top_builddir"; then
30052 ac_top_srcdir=.
30053 else
30054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30055 fi ;;
30056 [\\/]* | ?:[\\/]* ) # Absolute path.
30057 ac_srcdir=$srcdir$ac_dir_suffix;
30058 ac_top_srcdir=$srcdir ;;
30059 *) # Relative path.
30060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30062 esac
30063
30064 # Do not use `cd foo && pwd` to compute absolute paths, because
30065 # the directories may not exist.
30066 case `pwd` in
30067 .) ac_abs_builddir="$ac_dir";;
30068 *)
30069 case "$ac_dir" in
30070 .) ac_abs_builddir=`pwd`;;
30071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30072 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30073 esac;;
30074 esac
30075 case $ac_abs_builddir in
30076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30077 *)
30078 case ${ac_top_builddir}. in
30079 .) ac_abs_top_builddir=$ac_abs_builddir;;
30080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30082 esac;;
30083 esac
30084 case $ac_abs_builddir in
30085 .) ac_abs_srcdir=$ac_srcdir;;
30086 *)
30087 case $ac_srcdir in
30088 .) ac_abs_srcdir=$ac_abs_builddir;;
30089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30091 esac;;
30092 esac
30093 case $ac_abs_builddir in
30094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30095 *)
30096 case $ac_top_srcdir in
30097 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30100 esac;;
30101 esac
30102
30103
30104 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30105 echo "$as_me: executing $ac_dest commands" >&6;}
30106 case $ac_dest in
30107 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30108 # Strip MF so we end up with the name of the file.
30109 mf=`echo "$mf" | sed -e 's/:.*$//'`
30110 # Check whether this is an Automake generated Makefile or not.
30111 # We used to match only the files named `Makefile.in', but
30112 # some people rename them; so instead we look at the file content.
30113 # Grep'ing the first line is not enough: some people post-process
30114 # each Makefile.in and add a new line on top of each file to say so.
30115 # So let's grep whole file.
30116 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30117 dirpart=`(dirname "$mf") 2>/dev/null ||
30118 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30119 X"$mf" : 'X\(//\)[^/]' \| \
30120 X"$mf" : 'X\(//\)$' \| \
30121 X"$mf" : 'X\(/\)' \| \
30122 . : '\(.\)' 2>/dev/null ||
30123 echo X"$mf" |
30124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30126 /^X\(\/\/\)$/{ s//\1/; q; }
30127 /^X\(\/\).*/{ s//\1/; q; }
30128 s/.*/./; q'`
30129 else
30130 continue
30131 fi
30132 # Extract the definition of DEPDIR, am__include, and am__quote
30133 # from the Makefile without running `make'.
30134 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30135 test -z "$DEPDIR" && continue
30136 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30137 test -z "am__include" && continue
30138 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30139 # When using ansi2knr, U may be empty or an underscore; expand it
30140 U=`sed -n 's/^U = //p' < "$mf"`
30141 # Find all dependency output files, they are included files with
30142 # $(DEPDIR) in their names. We invoke sed twice because it is the
30143 # simplest approach to changing $(DEPDIR) to its actual value in the
30144 # expansion.
30145 for file in `sed -n "
30146 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30147 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30148 # Make sure the directory exists.
30149 test -f "$dirpart/$file" && continue
30150 fdir=`(dirname "$file") 2>/dev/null ||
30151 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30152 X"$file" : 'X\(//\)[^/]' \| \
30153 X"$file" : 'X\(//\)$' \| \
30154 X"$file" : 'X\(/\)' \| \
30155 . : '\(.\)' 2>/dev/null ||
30156 echo X"$file" |
30157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30159 /^X\(\/\/\)$/{ s//\1/; q; }
30160 /^X\(\/\).*/{ s//\1/; q; }
30161 s/.*/./; q'`
30162 { if $as_mkdir_p; then
30163 mkdir -p $dirpart/$fdir
30164 else
30165 as_dir=$dirpart/$fdir
30166 as_dirs=
30167 while test ! -d "$as_dir"; do
30168 as_dirs="$as_dir $as_dirs"
30169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30171 X"$as_dir" : 'X\(//\)[^/]' \| \
30172 X"$as_dir" : 'X\(//\)$' \| \
30173 X"$as_dir" : 'X\(/\)' \| \
30174 . : '\(.\)' 2>/dev/null ||
30175 echo X"$as_dir" |
30176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30178 /^X\(\/\/\)$/{ s//\1/; q; }
30179 /^X\(\/\).*/{ s//\1/; q; }
30180 s/.*/./; q'`
30181 done
30182 test ! -n "$as_dirs" || mkdir $as_dirs
30183 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30184 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30185 { (exit 1); exit 1; }; }; }
30186
30187 # echo "creating $dirpart/$file"
30188 echo '# dummy' > "$dirpart/$file"
30189 done
30190 done
30191 ;;
30192 gdb_stdint.h )
30193 if test "$GCC" = yes; then
30194 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30195 else
30196 echo "/* generated for $CC */" > tmp-stdint.h
30197 fi
30198
30199 sed 's/^ *//' >> tmp-stdint.h <<EOF
30200
30201 #ifndef GCC_GENERATED_STDINT_H
30202 #define GCC_GENERATED_STDINT_H 1
30203
30204 #include <sys/types.h>
30205 EOF
30206
30207 if test "$acx_cv_header_stdint" != stdint.h; then
30208 echo "#include <stddef.h>" >> tmp-stdint.h
30209 fi
30210 if test "$acx_cv_header_stdint" != stddef.h; then
30211 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30212 fi
30213
30214 sed 's/^ *//' >> tmp-stdint.h <<EOF
30215 /* glibc uses these symbols as guards to prevent redefinitions. */
30216 #ifdef __int8_t_defined
30217 #define _INT8_T
30218 #define _INT16_T
30219 #define _INT32_T
30220 #endif
30221 #ifdef __uint32_t_defined
30222 #define _UINT32_T
30223 #endif
30224
30225 EOF
30226
30227 # ----------------- done header, emit basic int types -------------
30228 if test "$acx_cv_header_stdint" = stddef.h; then
30229 sed 's/^ *//' >> tmp-stdint.h <<EOF
30230
30231 #ifndef _UINT8_T
30232 #define _UINT8_T
30233 #ifndef __uint8_t_defined
30234 #define __uint8_t_defined
30235 typedef unsigned $acx_cv_type_int8_t uint8_t;
30236 #endif
30237 #endif
30238
30239 #ifndef _UINT16_T
30240 #define _UINT16_T
30241 #ifndef __uint16_t_defined
30242 #define __uint16_t_defined
30243 typedef unsigned $acx_cv_type_int16_t uint16_t;
30244 #endif
30245 #endif
30246
30247 #ifndef _UINT32_T
30248 #define _UINT32_T
30249 #ifndef __uint32_t_defined
30250 #define __uint32_t_defined
30251 typedef unsigned $acx_cv_type_int32_t uint32_t;
30252 #endif
30253 #endif
30254
30255 #ifndef _INT8_T
30256 #define _INT8_T
30257 #ifndef __int8_t_defined
30258 #define __int8_t_defined
30259 typedef $acx_cv_type_int8_t int8_t;
30260 #endif
30261 #endif
30262
30263 #ifndef _INT16_T
30264 #define _INT16_T
30265 #ifndef __int16_t_defined
30266 #define __int16_t_defined
30267 typedef $acx_cv_type_int16_t int16_t;
30268 #endif
30269 #endif
30270
30271 #ifndef _INT32_T
30272 #define _INT32_T
30273 #ifndef __int32_t_defined
30274 #define __int32_t_defined
30275 typedef $acx_cv_type_int32_t int32_t;
30276 #endif
30277 #endif
30278 EOF
30279 elif test "$ac_cv_type_u_int32_t" = yes; then
30280 sed 's/^ *//' >> tmp-stdint.h <<EOF
30281
30282 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30283 #ifndef _INT8_T
30284 #define _INT8_T
30285 #endif
30286 #ifndef _INT16_T
30287 #define _INT16_T
30288 #endif
30289 #ifndef _INT32_T
30290 #define _INT32_T
30291 #endif
30292
30293 #ifndef _UINT8_T
30294 #define _UINT8_T
30295 #ifndef __uint8_t_defined
30296 #define __uint8_t_defined
30297 typedef u_int8_t uint8_t;
30298 #endif
30299 #endif
30300
30301 #ifndef _UINT16_T
30302 #define _UINT16_T
30303 #ifndef __uint16_t_defined
30304 #define __uint16_t_defined
30305 typedef u_int16_t uint16_t;
30306 #endif
30307 #endif
30308
30309 #ifndef _UINT32_T
30310 #define _UINT32_T
30311 #ifndef __uint32_t_defined
30312 #define __uint32_t_defined
30313 typedef u_int32_t uint32_t;
30314 #endif
30315 #endif
30316 EOF
30317 else
30318 sed 's/^ *//' >> tmp-stdint.h <<EOF
30319
30320 /* Some systems have guard macros to prevent redefinitions, define them. */
30321 #ifndef _INT8_T
30322 #define _INT8_T
30323 #endif
30324 #ifndef _INT16_T
30325 #define _INT16_T
30326 #endif
30327 #ifndef _INT32_T
30328 #define _INT32_T
30329 #endif
30330 #ifndef _UINT8_T
30331 #define _UINT8_T
30332 #endif
30333 #ifndef _UINT16_T
30334 #define _UINT16_T
30335 #endif
30336 #ifndef _UINT32_T
30337 #define _UINT32_T
30338 #endif
30339 EOF
30340 fi
30341
30342 # ------------- done basic int types, emit int64_t types ------------
30343 if test "$ac_cv_type_uint64_t" = yes; then
30344 sed 's/^ *//' >> tmp-stdint.h <<EOF
30345
30346 /* system headers have good uint64_t and int64_t */
30347 #ifndef _INT64_T
30348 #define _INT64_T
30349 #endif
30350 #ifndef _UINT64_T
30351 #define _UINT64_T
30352 #endif
30353 EOF
30354 elif test "$ac_cv_type_u_int64_t" = yes; then
30355 sed 's/^ *//' >> tmp-stdint.h <<EOF
30356
30357 /* system headers have an u_int64_t (and int64_t) */
30358 #ifndef _INT64_T
30359 #define _INT64_T
30360 #endif
30361 #ifndef _UINT64_T
30362 #define _UINT64_T
30363 #ifndef __uint64_t_defined
30364 #define __uint64_t_defined
30365 typedef u_int64_t uint64_t;
30366 #endif
30367 #endif
30368 EOF
30369 elif test -n "$acx_cv_type_int64_t"; then
30370 sed 's/^ *//' >> tmp-stdint.h <<EOF
30371
30372 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30373 #ifndef _INT64_T
30374 #define _INT64_T
30375 typedef $acx_cv_type_int64_t int64_t;
30376 #endif
30377 #ifndef _UINT64_T
30378 #define _UINT64_T
30379 #ifndef __uint64_t_defined
30380 #define __uint64_t_defined
30381 typedef unsigned $acx_cv_type_int64_t uint64_t;
30382 #endif
30383 #endif
30384 EOF
30385 else
30386 sed 's/^ *//' >> tmp-stdint.h <<EOF
30387
30388 /* some common heuristics for int64_t, using compiler-specific tests */
30389 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30390 #ifndef _INT64_T
30391 #define _INT64_T
30392 #ifndef __int64_t_defined
30393 typedef long long int64_t;
30394 #endif
30395 #endif
30396 #ifndef _UINT64_T
30397 #define _UINT64_T
30398 typedef unsigned long long uint64_t;
30399 #endif
30400
30401 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30402 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30403 does not implement __extension__. But that compiler doesn't define
30404 __GNUC_MINOR__. */
30405 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30406 # define __extension__
30407 # endif
30408
30409 # ifndef _INT64_T
30410 # define _INT64_T
30411 __extension__ typedef long long int64_t;
30412 # endif
30413 # ifndef _UINT64_T
30414 # define _UINT64_T
30415 __extension__ typedef unsigned long long uint64_t;
30416 # endif
30417
30418 #elif !defined __STRICT_ANSI__
30419 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30420
30421 # ifndef _INT64_T
30422 # define _INT64_T
30423 typedef __int64 int64_t;
30424 # endif
30425 # ifndef _UINT64_T
30426 # define _UINT64_T
30427 typedef unsigned __int64 uint64_t;
30428 # endif
30429 # endif /* compiler */
30430
30431 #endif /* ANSI version */
30432 EOF
30433 fi
30434
30435 # ------------- done int64_t types, emit intptr types ------------
30436 if test "$ac_cv_type_uintptr_t" != yes; then
30437 sed 's/^ *//' >> tmp-stdint.h <<EOF
30438
30439 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30440 #ifndef __uintptr_t_defined
30441 typedef u$acx_cv_type_intptr_t uintptr_t;
30442 #endif
30443 #ifndef __intptr_t_defined
30444 typedef $acx_cv_type_intptr_t intptr_t;
30445 #endif
30446 EOF
30447 fi
30448
30449 # ------------- done intptr types, emit int_least types ------------
30450 if test "$ac_cv_type_int_least32_t" != yes; then
30451 sed 's/^ *//' >> tmp-stdint.h <<EOF
30452
30453 /* Define int_least types */
30454 typedef int8_t int_least8_t;
30455 typedef int16_t int_least16_t;
30456 typedef int32_t int_least32_t;
30457 #ifdef _INT64_T
30458 typedef int64_t int_least64_t;
30459 #endif
30460
30461 typedef uint8_t uint_least8_t;
30462 typedef uint16_t uint_least16_t;
30463 typedef uint32_t uint_least32_t;
30464 #ifdef _UINT64_T
30465 typedef uint64_t uint_least64_t;
30466 #endif
30467 EOF
30468 fi
30469
30470 # ------------- done intptr types, emit int_fast types ------------
30471 if test "$ac_cv_type_int_fast32_t" != yes; then
30472 sed 's/^ *//' >> tmp-stdint.h <<EOF
30473
30474 /* Define int_fast types. short is often slow */
30475 typedef int8_t int_fast8_t;
30476 typedef int int_fast16_t;
30477 typedef int32_t int_fast32_t;
30478 #ifdef _INT64_T
30479 typedef int64_t int_fast64_t;
30480 #endif
30481
30482 typedef uint8_t uint_fast8_t;
30483 typedef unsigned int uint_fast16_t;
30484 typedef uint32_t uint_fast32_t;
30485 #ifdef _UINT64_T
30486 typedef uint64_t uint_fast64_t;
30487 #endif
30488 EOF
30489 fi
30490
30491 if test "$ac_cv_type_uintmax_t" != yes; then
30492 sed 's/^ *//' >> tmp-stdint.h <<EOF
30493
30494 /* Define intmax based on what we found */
30495 #ifdef _INT64_T
30496 typedef int64_t intmax_t;
30497 #else
30498 typedef long intmax_t;
30499 #endif
30500 #ifdef _UINT64_T
30501 typedef uint64_t uintmax_t;
30502 #else
30503 typedef unsigned long uintmax_t;
30504 #endif
30505 EOF
30506 fi
30507
30508 sed 's/^ *//' >> tmp-stdint.h <<EOF
30509
30510 #endif /* GCC_GENERATED_STDINT_H */
30511 EOF
30512
30513 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30514 rm -f tmp-stdint.h
30515 else
30516 mv -f tmp-stdint.h gdb_stdint.h
30517 fi
30518
30519 ;;
30520 default )
30521
30522 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
30523 mv -f Makefile.tmp Makefile
30524
30525
30526 case x$CONFIG_HEADERS in
30527 xconfig.h:config.in)
30528 echo > stamp-h ;;
30529 esac
30530 ;;
30531 esac
30532 done
30533 _ACEOF
30534
30535 cat >>$CONFIG_STATUS <<\_ACEOF
30536
30537 { (exit 0); exit 0; }
30538 _ACEOF
30539 chmod +x $CONFIG_STATUS
30540 ac_clean_files=$ac_clean_files_save
30541
30542
30543 # configure is writing to config.log, and then calls config.status.
30544 # config.status does its own redirection, appending to config.log.
30545 # Unfortunately, on DOS this fails, as config.log is still kept open
30546 # by configure, so config.status won't be able to write to it; its
30547 # output is simply discarded. So we exec the FD to /dev/null,
30548 # effectively closing config.log, so it can be properly (re)opened and
30549 # appended to by config.status. When coming back to configure, we
30550 # need to make the FD available again.
30551 if test "$no_create" != yes; then
30552 ac_cs_success=:
30553 ac_config_status_args=
30554 test "$silent" = yes &&
30555 ac_config_status_args="$ac_config_status_args --quiet"
30556 exec 5>/dev/null
30557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30558 exec 5>>config.log
30559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30560 # would make configure fail if this is the last instruction.
30561 $ac_cs_success || { (exit 1); exit 1; }
30562 fi
30563
30564 #
30565 # CONFIG_SUBDIRS section.
30566 #
30567 if test "$no_recursion" != yes; then
30568
30569 # Remove --cache-file and --srcdir arguments so they do not pile up.
30570 ac_sub_configure_args=
30571 ac_prev=
30572 for ac_arg in $ac_configure_args; do
30573 if test -n "$ac_prev"; then
30574 ac_prev=
30575 continue
30576 fi
30577 case $ac_arg in
30578 -cache-file | --cache-file | --cache-fil | --cache-fi \
30579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30580 ac_prev=cache_file ;;
30581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30583 | --c=*)
30584 ;;
30585 --config-cache | -C)
30586 ;;
30587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30588 ac_prev=srcdir ;;
30589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30590 ;;
30591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30592 ac_prev=prefix ;;
30593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30594 ;;
30595 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
30596 esac
30597 done
30598
30599 # Always prepend --prefix to ensure using the same prefix
30600 # in subdir configurations.
30601 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
30602
30603 ac_popdir=`pwd`
30604 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30605
30606 # Do not complain, so a configure script can configure whichever
30607 # parts of a large source tree are present.
30608 test -d $srcdir/$ac_dir || continue
30609
30610 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30611 echo "$as_me: configuring in $ac_dir" >&6;}
30612 { if $as_mkdir_p; then
30613 mkdir -p "$ac_dir"
30614 else
30615 as_dir="$ac_dir"
30616 as_dirs=
30617 while test ! -d "$as_dir"; do
30618 as_dirs="$as_dir $as_dirs"
30619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30621 X"$as_dir" : 'X\(//\)[^/]' \| \
30622 X"$as_dir" : 'X\(//\)$' \| \
30623 X"$as_dir" : 'X\(/\)' \| \
30624 . : '\(.\)' 2>/dev/null ||
30625 echo X"$as_dir" |
30626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30628 /^X\(\/\/\)$/{ s//\1/; q; }
30629 /^X\(\/\).*/{ s//\1/; q; }
30630 s/.*/./; q'`
30631 done
30632 test ! -n "$as_dirs" || mkdir $as_dirs
30633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30635 { (exit 1); exit 1; }; }; }
30636
30637 ac_builddir=.
30638
30639 if test "$ac_dir" != .; then
30640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30641 # A "../" for each directory in $ac_dir_suffix.
30642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30643 else
30644 ac_dir_suffix= ac_top_builddir=
30645 fi
30646
30647 case $srcdir in
30648 .) # No --srcdir option. We are building in place.
30649 ac_srcdir=.
30650 if test -z "$ac_top_builddir"; then
30651 ac_top_srcdir=.
30652 else
30653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30654 fi ;;
30655 [\\/]* | ?:[\\/]* ) # Absolute path.
30656 ac_srcdir=$srcdir$ac_dir_suffix;
30657 ac_top_srcdir=$srcdir ;;
30658 *) # Relative path.
30659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30661 esac
30662
30663 # Do not use `cd foo && pwd` to compute absolute paths, because
30664 # the directories may not exist.
30665 case `pwd` in
30666 .) ac_abs_builddir="$ac_dir";;
30667 *)
30668 case "$ac_dir" in
30669 .) ac_abs_builddir=`pwd`;;
30670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30672 esac;;
30673 esac
30674 case $ac_abs_builddir in
30675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30676 *)
30677 case ${ac_top_builddir}. in
30678 .) ac_abs_top_builddir=$ac_abs_builddir;;
30679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30681 esac;;
30682 esac
30683 case $ac_abs_builddir in
30684 .) ac_abs_srcdir=$ac_srcdir;;
30685 *)
30686 case $ac_srcdir in
30687 .) ac_abs_srcdir=$ac_abs_builddir;;
30688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30690 esac;;
30691 esac
30692 case $ac_abs_builddir in
30693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30694 *)
30695 case $ac_top_srcdir in
30696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30699 esac;;
30700 esac
30701
30702
30703 cd $ac_dir
30704
30705 # Check for guested configure; otherwise get Cygnus style configure.
30706 if test -f $ac_srcdir/configure.gnu; then
30707 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
30708 elif test -f $ac_srcdir/configure; then
30709 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
30710 elif test -f $ac_srcdir/configure.in; then
30711 ac_sub_configure=$ac_configure
30712 else
30713 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
30714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30715 ac_sub_configure=
30716 fi
30717
30718 # The recursion is here.
30719 if test -n "$ac_sub_configure"; then
30720 # Make the cache file name correct relative to the subdirectory.
30721 case $cache_file in
30722 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30723 *) # Relative path.
30724 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
30725 esac
30726
30727 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30728 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30729 # The eval makes quoting arguments work.
30730 eval $ac_sub_configure $ac_sub_configure_args \
30731 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
30732 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
30733 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
30734 { (exit 1); exit 1; }; }
30735 fi
30736
30737 cd $ac_popdir
30738 done
30739 fi
30740
30741
30742 exit 0
This page took 1.089722 seconds and 5 git commands to generate.