* configure.ac: On alpha-osf, error out if enable_tui is set to
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE 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 GNULIB_STDINT_H 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 AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 PYTHON_CFLAGS 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS 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 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881 Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support (auto/yes/no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
893 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.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 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326 done
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1375 else
1376 USE_MAINTAINER_MODE=no
1377 fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1380
1381
1382 if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385 else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388 fi
1389
1390 MAINT=$MAINTAINER_MODE_TRUE
1391
1392
1393
1394 ac_ext=c
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1412 do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421 done
1422 done
1423
1424 fi
1425 fi
1426 CC=$ac_cv_prog_CC
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1430 else
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435 fi
1436 if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 CC=$ac_ct_CC
1474 else
1475 CC="$ac_cv_prog_CC"
1476 fi
1477
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 CC=$ac_ct_CC
1554 else
1555 CC="$ac_cv_prog_CC"
1556 fi
1557
1558 fi
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else
1570 ac_prog_rejected=no
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586 done
1587 done
1588
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1599 fi
1600 fi
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 fi
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1615 for ac_prog in cl
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638 done
1639 done
1640
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 test -n "$CC" && break
1653 done
1654 fi
1655 if test -z "$CC"; then
1656 ac_ct_CC=$CC
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 test -n "$ac_ct_CC" && break
1695 done
1696
1697 CC=$ac_ct_CC
1698 fi
1699
1700 fi
1701
1702
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 /* confdefs.h. */
1733 _ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h. */
1737
1738 int
1739 main ()
1740 {
1741
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1750 # of exeext.
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761 # resort.
1762
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 ac_cv_exeext=
1766 # b.out is created by i960 compilers.
1767 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
1789 esac
1790 done
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1802 fi
1803
1804 ac_exeext=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1807
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
1822 else
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1835 fi
1836 fi
1837 fi
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840
1841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842 ac_clean_files=$ac_clean_files_save
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1849
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1860 # `rm'.
1861 for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870 done
1871 else
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1879 fi
1880
1881 rm -f conftest$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885 rm -f conftest.$ac_ext
1886 EXEEXT=$ac_cv_exeext
1887 ac_exeext=$EXEEXT
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 cat >conftest.$ac_ext <<_ACEOF
1894 /* confdefs.h. */
1895 _ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1899
1900 int
1901 main ()
1902 {
1903
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920 done
1921 else
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1932 fi
1933
1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 fi
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT=$ac_cv_objext
1939 ac_objext=$OBJEXT
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1951
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956 choke me
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_compiler_gnu=no
1991 fi
1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995 fi
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2001 CFLAGS="-g"
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 cat >conftest.$ac_ext <<_ACEOF
2008 /* confdefs.h. */
2009 _ACEOF
2010 cat confdefs.h >>conftest.$ac_ext
2011 cat >>conftest.$ac_ext <<_ACEOF
2012 /* end confdefs.h. */
2013
2014 int
2015 main ()
2016 {
2017
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2044 ac_cv_prog_cc_g=yes
2045 else
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_cv_prog_cc_g=no
2050 fi
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063 else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069 fi
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 ac_cv_prog_cc_stdc=no
2076 ac_save_CC=$CC
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2083 #include <stdarg.h>
2084 #include <stdio.h>
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2091 char **p;
2092 int i;
2093 {
2094 return p[i];
2095 }
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2097 {
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104 }
2105
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119 int argc;
2120 char **argv;
2121 int
2122 main ()
2123 {
2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX -qlanglvl=ansi
2132 # Ultrix and OSF/1 -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions -Aa -D_HPUX_SOURCE
2135 # SVR4 -Xc -D__EXTENSIONS__
2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137 do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2162 break
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 fi
2168 rm -f conftest.err conftest.$ac_objext
2169 done
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2171 CC=$ac_save_CC
2172
2173 fi
2174
2175 case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2179 *)
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 esac
2184
2185 # Some people use a C++ compiler to compile C. Since we use `exit',
2186 # in C++ we need to declare it. In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #ifndef __cplusplus
2191 choke me
2192 #endif
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223 do
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230 $ac_declaration
2231 #include <stdlib.h>
2232 int
2233 main ()
2234 {
2235 exit (42);
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 continue
2268 fi
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_declaration
2277 int
2278 main ()
2279 {
2280 exit (42);
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 fi
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 done
2315 rm -f conftest*
2316 if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320 fi
2321
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define _GNU_SOURCE 1
2337 _ACEOF
2338
2339
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
2351 fi
2352 if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360 for ac_c_preproc_warn_flag in '' yes
2361 do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374 #ifdef __STDC__
2375 # include <limits.h>
2376 #else
2377 # include <assert.h>
2378 #endif
2379 Syntax error
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395 else
2396 ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399 :
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405 continue
2406 fi
2407 rm -f conftest.err conftest.$ac_ext
2408
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433 else
2434 ac_cpp_err=yes
2435 fi
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438 continue
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 # Passes both tests.
2444 ac_preproc_ok=:
2445 break
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448
2449 done
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2453 break
2454 fi
2455
2456 done
2457 ac_cv_prog_CPP=$CPP
2458
2459 fi
2460 CPP=$ac_cv_prog_CPP
2461 else
2462 ac_cv_prog_CPP=$CPP
2463 fi
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2466 ac_preproc_ok=false
2467 for ac_c_preproc_warn_flag in '' yes
2468 do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 #ifdef __STDC__
2482 # include <limits.h>
2483 #else
2484 # include <assert.h>
2485 #endif
2486 Syntax error
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
2502 else
2503 ac_cpp_err=yes
2504 fi
2505 if test -z "$ac_cpp_err"; then
2506 :
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512 continue
2513 fi
2514 rm -f conftest.err conftest.$ac_ext
2515
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h. */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 #include <ac_nonexistent.h>
2525 _ACEOF
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
2540 else
2541 ac_cpp_err=yes
2542 fi
2543 if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545 continue
2546 else
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 # Passes both tests.
2551 ac_preproc_ok=:
2552 break
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556 done
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2560 :
2561 else
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2569 fi
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
2586 fi
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
2591
2592
2593
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602 #ifdef _AIX
2603 yes
2604 #endif
2605
2606 _ACEOF
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev/null 2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h <<\_ACEOF
2612 #define _ALL_SOURCE 1
2613 _ACEOF
2614
2615 else
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619 rm -f conftest*
2620
2621
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 ac_func_search_save_LIBS=$LIBS
2628 ac_cv_search_strerror=no
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 #ifdef __cplusplus
2638 extern "C"
2639 #endif
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char strerror ();
2643 int
2644 main ()
2645 {
2646 strerror ();
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror="none required"
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681 if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697 char strerror ();
2698 int
2699 main ()
2700 {
2701 strerror ();
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729 break
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
2738 fi
2739 LIBS=$ac_func_search_save_LIBS
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2745
2746 fi
2747
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772
2773 fi
2774 fi
2775 RANLIB=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2782 fi
2783
2784 fi
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812 fi
2813 fi
2814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824 else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826 fi
2827
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2843
2844 int
2845 main ()
2846 {
2847
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc=yes
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #include <string.h>
2892
2893 _ACEOF
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
2897 else
2898 ac_cv_header_stdc=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903
2904 if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913
2914 _ACEOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
2918 else
2919 ac_cv_header_stdc=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924
2925 if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
2929 else
2930 cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 #include <ctype.h>
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 #else
2941 # define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946 #endif
2947
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949 int
2950 main ()
2951 {
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958 }
2959 _ACEOF
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972 else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ( exit $ac_status )
2978 ac_cv_header_stdc=no
2979 fi
2980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2990 _ACEOF
2991
2992 fi
2993
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006 do
3007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_includes_default
3020
3021 #include <$ac_header>
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 eval "$as_ac_Header=no"
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059 _ACEOF
3060
3061 fi
3062
3063 done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 fi
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 else
3076 # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3086 #include <minix/config.h>
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_header_compiler=no
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <minix/config.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146 else
3147 ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156 fi
3157 rm -f conftest.err conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161 # So? What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists. ##
3187 ## ------------------------------------------ ##
3188 _ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192 esac
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203 fi
3204 if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206 else
3207 MINIX=
3208 fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _POSIX_SOURCE 1
3215 _ACEOF
3216
3217
3218 cat >>confdefs.h <<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3220 _ACEOF
3221
3222
3223 cat >>confdefs.h <<\_ACEOF
3224 #define _MINIX 1
3225 _ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 # define __EXTENSIONS__ 1
3244 $ac_includes_default
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_cv_safe_to_define___extensions__=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288 #define __EXTENSIONS__ 1
3289 _ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292 #define _ALL_SOURCE 1
3293 _ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define _GNU_SOURCE 1
3297 _ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3301 _ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3305 _ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 am_cv_prog_cc_stdc=no
3322 ac_save_CC="$CC"
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367
3368 int
3369 main ()
3370 {
3371
3372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 fi
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 done
3408 CC="$ac_save_CC"
3409
3410 fi
3411
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3415 else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418 fi
3419 case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422 esac
3423
3424
3425 ac_aux_dir=
3426 for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440 done
3441 if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445 fi
3446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_build_alias=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3476 build=$ac_cv_build
3477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_cv_host_alias=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3498 host=$ac_cv_host
3499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 ac_cv_target_alias=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias=$ac_cv_host_alias
3512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target=$ac_cv_target
3521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
3533 # Dependency checking.
3534 rm -rf .tst 2>/dev/null
3535 mkdir .tst 2>/dev/null
3536 if test -d .tst; then
3537 am__leading_dot=.
3538 else
3539 am__leading_dot=_
3540 fi
3541 rmdir .tst 2>/dev/null
3542
3543 DEPDIR="${am__leading_dot}deps"
3544
3545 ac_config_commands="$ac_config_commands depdir"
3546
3547
3548 depcc="$CC" am_compiler_list=
3549
3550 am_depcomp=$ac_aux_dir/depcomp
3551 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3581
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "include sub/conftest.Po" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3622 break
3623 fi
3624 fi
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3627 done
3628
3629 cd ..
3630 rm -rf conftest.dir
3631 else
3632 am_cv_CC_dependencies_compiler_type=none
3633 fi
3634
3635 fi
3636 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640 echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 fi
3645
3646
3647 # Check for the 'make' the user wants to use.
3648 for ac_prog in make
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673
3674 fi
3675 fi
3676 MAKE=$ac_cv_prog_MAKE
3677 if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679 echo "${ECHO_T}$MAKE" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3683 fi
3684
3685 test -n "$MAKE" && break
3686 done
3687
3688 MAKE_IS_GNU=
3689 case "`$MAKE --version 2>&1 | sed 1q`" in
3690 *GNU*)
3691 MAKE_IS_GNU=yes
3692 ;;
3693 esac
3694
3695
3696 if test "$MAKE_IS_GNU" = yes; then
3697 GMAKE_TRUE=
3698 GMAKE_FALSE='#'
3699 else
3700 GMAKE_TRUE='#'
3701 GMAKE_FALSE=
3702 fi
3703
3704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 cat >conftest.make <<\_ACEOF
3711 all:
3712 @echo 'ac_maketemp="$(MAKE)"'
3713 _ACEOF
3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716 if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3718 else
3719 eval ac_cv_prog_make_${ac_make}_set=no
3720 fi
3721 rm -f conftest.make
3722 fi
3723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3726 SET_MAKE=
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3731 fi
3732
3733
3734
3735 CONFIG_OBS=
3736 CONFIG_DEPS=
3737 CONFIG_SRCS=
3738 ENABLE_CFLAGS=
3739
3740 CONFIG_ALL=
3741 CONFIG_CLEAN=
3742 CONFIG_INSTALL=
3743 CONFIG_UNINSTALL=
3744
3745 # If we haven't got the data from the intl directory,
3746 # assume NLS is disabled.
3747 USE_NLS=no
3748 LIBINTL=
3749 LIBINTL_DEP=
3750 INCINTL=
3751 XGETTEXT=
3752 GMSGFMT=
3753 POSUB=
3754
3755 if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3757 fi
3758 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760 if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 else
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define ENABLE_NLS 1
3769 _ACEOF
3770
3771
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3775 CATALOGS=
3776 XLINGUAS=
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3780 # weeded out.
3781 case "$cat" in *\**)
3782 continue;;
3783 esac
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3795 else
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3799 ;;
3800 esac
3801 fi
3802 done
3803 LINGUAS="$XLINGUAS"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805 echo "${ECHO_T}$LINGUAS" >&6
3806
3807
3808 DATADIRNAME=share
3809
3810 INSTOBJEXT=.mo
3811
3812 GENCAT=gencat
3813
3814 CATOBJEXT=.gmo
3815
3816 fi
3817
3818 localedir='${datadir}/locale'
3819
3820
3821 if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3826 fi
3827
3828
3829 GNULIB_MEMMEM=0;
3830 GNULIB_MEMPCPY=0;
3831 GNULIB_MEMRCHR=0;
3832 GNULIB_STPCPY=0;
3833 GNULIB_STPNCPY=0;
3834 GNULIB_STRCHRNUL=0;
3835 GNULIB_STRDUP=0;
3836 GNULIB_STRNDUP=0;
3837 GNULIB_STRNLEN=0;
3838 GNULIB_STRPBRK=0;
3839 GNULIB_STRSEP=0;
3840 GNULIB_STRSTR=0;
3841 GNULIB_STRCASESTR=0;
3842 GNULIB_STRTOK_R=0;
3843 GNULIB_MBSLEN=0;
3844 GNULIB_MBSNLEN=0;
3845 GNULIB_MBSCHR=0;
3846 GNULIB_MBSRCHR=0;
3847 GNULIB_MBSSTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3852 GNULIB_MBSCSPN=0;
3853 GNULIB_MBSPBRK=0;
3854 GNULIB_MBSSPN=0;
3855 GNULIB_MBSSEP=0;
3856 GNULIB_MBSTOK_R=0;
3857 GNULIB_STRERROR=0;
3858 GNULIB_STRSIGNAL=0;
3859 HAVE_DECL_MEMMEM=1;
3860 HAVE_MEMPCPY=1;
3861 HAVE_DECL_MEMRCHR=1;
3862 HAVE_STPCPY=1;
3863 HAVE_STPNCPY=1;
3864 HAVE_STRCHRNUL=1;
3865 HAVE_DECL_STRDUP=1;
3866 HAVE_STRNDUP=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3869 HAVE_STRPBRK=1;
3870 HAVE_STRSEP=1;
3871 HAVE_STRCASESTR=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3875 REPLACE_STRERROR=0;
3876 REPLACE_STRSIGNAL=0;
3877 REPLACE_MEMMEM=0;
3878 REPLACE_STRCASESTR=0;
3879 REPLACE_STRSTR=0;
3880
3881
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884 if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3894 int
3895 main ()
3896 {
3897 #ifndef memmem
3898 char *p = (char *) memmem;
3899 #endif
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 ac_cv_have_decl_memmem=no
3933 fi
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938 if test $ac_cv_have_decl_memmem = yes; then
3939
3940 cat >>confdefs.h <<_ACEOF
3941 #define HAVE_DECL_MEMMEM 1
3942 _ACEOF
3943
3944
3945 else
3946 cat >>confdefs.h <<_ACEOF
3947 #define HAVE_DECL_MEMMEM 0
3948 _ACEOF
3949
3950
3951 fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967 for ac_func in memmem
3968 do
3969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983 #define $ac_func innocuous_$ac_func
3984
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3989
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995
3996 #undef $ac_func
3997
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 #ifdef __cplusplus
4000 extern "C"
4001 {
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char $ac_func ();
4006 /* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010 choke me
4011 #else
4012 char (*f) () = $ac_func;
4013 #endif
4014 #ifdef __cplusplus
4015 }
4016 #endif
4017
4018 int
4019 main ()
4020 {
4021 return f != $ac_func;
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 eval "$as_ac_var=no"
4054 fi
4055 rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060 if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4063 _ACEOF
4064
4065 else
4066
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4068
4069 fi
4070 done
4071
4072
4073
4074 :
4075
4076
4077
4078
4079
4080 if test $ac_cv_have_decl_memmem = no; then
4081 HAVE_DECL_MEMMEM=0
4082 fi
4083 :
4084
4085
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088 if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 cat >conftest.$ac_ext <<_ACEOF
4092
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4108 ? 1 : -1)];
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4110 ? 1 : -1)];
4111 int i = 63;
4112 int
4113 main ()
4114 {
4115 /* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4122 ;
4123 return 0;
4124 }
4125
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <limits.h>
4159 #ifndef LLONG_MAX
4160 # define HALF \
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4163 #endif
4164 int
4165 main ()
4166 {
4167 long long int n = 1;
4168 int i;
4169 for (i = 0; ; i++)
4170 {
4171 long long int m = n << i;
4172 if (m >> i != n)
4173 return 1;
4174 if (LLONG_MAX / 2 < m)
4175 break;
4176 }
4177 return 0;
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4194 else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ( exit $ac_status )
4200 ac_cv_type_long_long_int=no
4201 fi
4202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ac_cv_type_long_long_int=no
4209 fi
4210 rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4216
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_LONG_LONG_INT 1
4219 _ACEOF
4220
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 /* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4246 ? 1 : -1)];
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4248 ? 1 : -1)];
4249 int i = 63;
4250 int
4251 main ()
4252 {
4253 /* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4260 ;
4261 return 0;
4262 }
4263
4264 _ACEOF
4265 rm -f conftest.$ac_objext conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ac_cv_type_unsigned_long_long_int=no
4293 fi
4294 rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4303 _ACEOF
4304
4305 fi
4306
4307
4308
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311 if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317 #define DEFINED_IN_CONFTESTD1
4318 #include_next <conftest.h>
4319 #ifdef DEFINED_IN_CONFTESTD2
4320 int foo;
4321 #else
4322 #error "include_next doesn't work"
4323 #endif
4324 EOF
4325 cat <<EOF > conftestd2/conftest.h
4326 #ifndef DEFINED_IN_CONFTESTD1
4327 #error "include_next test doesn't work"
4328 #endif
4329 #define DEFINED_IN_CONFTESTD2
4330 EOF
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #include <conftest.h>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 gl_cv_have_include_next=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4368
4369 fi
4370 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4373
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_INCLUDE_NEXT 1
4377 _ACEOF
4378
4379
4380 INCLUDE_NEXT=include_next
4381 else
4382 INCLUDE_NEXT=include
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391 for ac_header in $gl_header_list
4392 do
4393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 fi
4400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4402 else
4403 # Is the header compilable?
4404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <$ac_header>
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_header_compiler=no
4443 fi
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6
4447
4448 # Is the header present?
4449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <$ac_header>
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4472 fi
4473 else
4474 ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ac_header_preproc=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6
4487
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 (
4511 cat <<\_ASBOX
4512 ## ------------------------------------------ ##
4513 ## Report this to the AC_PACKAGE_NAME lists. ##
4514 ## ------------------------------------------ ##
4515 _ASBOX
4516 ) |
4517 sed "s/^/$as_me: WARNING: /" >&2
4518 ;;
4519 esac
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 eval "$as_ac_Header=\$ac_header_preproc"
4526 fi
4527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529
4530 fi
4531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534 _ACEOF
4535
4536 fi
4537
4538 done
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553 if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_cv_c_restrict=no
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4567 return ip[0];
4568 }
4569 int
4570 main ()
4571 {
4572 int s[1];
4573 int * $ac_kw t = s;
4574 t[0] = 0;
4575 return foo(t)
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 fi
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4610 done
4611
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4615
4616
4617 case $ac_cv_c_restrict in
4618 restrict) ;;
4619 no) cat >>confdefs.h <<\_ACEOF
4620 #define restrict
4621 _ACEOF
4622 ;;
4623 *) cat >>confdefs.h <<_ACEOF
4624 #define restrict $ac_cv_c_restrict
4625 _ACEOF
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 :
4642
4643
4644
4645
4646
4647
4648
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4651 else
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654 if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 #include <string.h>
4666
4667 _ACEOF
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4671 s#^/[^/]#//&#
4672 p
4673 q
4674 }'`'"'
4675 else
4676 gl_cv_next_string_h='<'string.h'>'
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4682 fi
4683 NEXT_STRING_H=$gl_cv_next_string_h
4684
4685
4686
4687
4688
4689 GNULIB_WCWIDTH=0;
4690 HAVE_DECL_WCWIDTH=1;
4691 REPLACE_WCWIDTH=0;
4692 WCHAR_H=
4693
4694
4695
4696
4697
4698 if false; then
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4701 else
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4704 fi
4705
4706 gl_cond_libtool=false
4707 gl_libdeps=
4708 gl_ltlibdeps=
4709
4710
4711
4712 gl_source_base='gnulib'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_func in memchr
4723 do
4724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4739
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4744
4745 #ifdef __STDC__
4746 # include <limits.h>
4747 #else
4748 # include <assert.h>
4749 #endif
4750
4751 #undef $ac_func
4752
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 {
4757 #endif
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760 char $ac_func ();
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 choke me
4766 #else
4767 char (*f) () = $ac_func;
4768 #endif
4769 #ifdef __cplusplus
4770 }
4771 #endif
4772
4773 int
4774 main ()
4775 {
4776 return f != $ac_func;
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 eval "$as_ac_var=no"
4809 fi
4810 rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815 if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818 _ACEOF
4819
4820 else
4821
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4823
4824 fi
4825 done
4826
4827
4828 if test $ac_cv_func_memchr = no; then
4829
4830
4831 for ac_header in bp-sym.h
4832 do
4833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 fi
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 else
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_header_compiler=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <$ac_header>
4898 _ACEOF
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913 else
4914 ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926 echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928 # So? What about this header?
4929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 yes:no: )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4936 ;;
4937 no:yes:* )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4950 (
4951 cat <<\_ASBOX
4952 ## ------------------------------------------ ##
4953 ## Report this to the AC_PACKAGE_NAME lists. ##
4954 ## ------------------------------------------ ##
4955 _ASBOX
4956 ) |
4957 sed "s/^/$as_me: WARNING: /" >&2
4958 ;;
4959 esac
4960 echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 eval "$as_ac_Header=\$ac_header_preproc"
4966 fi
4967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969
4970 fi
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974 _ACEOF
4975
4976 fi
4977
4978 done
4979
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986 if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999 int
5000 main ()
5001 {
5002
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5006 exit (1);
5007
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5011 {
5012 char foo[21];
5013 char bar[21];
5014 int i;
5015 for (i = 0; i < 4; i++)
5016 {
5017 char *a = foo + i;
5018 char *b = bar + i;
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5022 exit (1);
5023 }
5024 exit (0);
5025 }
5026
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5043 else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ( exit $ac_status )
5049 ac_cv_func_memcmp_working=no
5050 fi
5051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056 test $ac_cv_func_memcmp_working = no &&
5057
5058
5059
5060
5061
5062
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5064
5065
5066 if test $ac_cv_func_memcmp_working = no; then
5067
5068 cat >>confdefs.h <<\_ACEOF
5069 #define memcmp rpl_memcmp
5070 _ACEOF
5071
5072 :
5073 fi
5074
5075
5076
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080 if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092
5093 #include <string.h> /* for memmem */
5094 #include <stdlib.h> /* for malloc */
5095 #include <unistd.h> /* for alarm */
5096
5097 int
5098 main ()
5099 {
5100 size_t m = 1000000;
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5103 void *result = 0;
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5106 alarm (5);
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5109 {
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5113 needle[m] = 'B';
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5115 }
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5134 else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ( exit $ac_status )
5140 gl_cv_func_memmem_works=no
5141 fi
5142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 fi
5145 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5148 REPLACE_MEMMEM=1
5149
5150
5151
5152
5153
5154
5155
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5157
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 for ac_func in memmem
5174 do
5175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_func" >&5
5177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189 #define $ac_func innocuous_$ac_func
5190
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201
5202 #undef $ac_func
5203
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 #ifdef __cplusplus
5206 extern "C"
5207 {
5208 #endif
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211 char $ac_func ();
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216 choke me
5217 #else
5218 char (*f) () = $ac_func;
5219 #endif
5220 #ifdef __cplusplus
5221 }
5222 #endif
5223
5224 int
5225 main ()
5226 {
5227 return f != $ac_func;
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 eval "$as_ac_var=no"
5260 fi
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 fi
5264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266 if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269 _ACEOF
5270
5271 else
5272
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5274
5275 fi
5276 done
5277
5278
5279
5280 :
5281
5282
5283
5284
5285
5286 if test $ac_cv_have_decl_memmem = no; then
5287 HAVE_DECL_MEMMEM=0
5288 fi
5289 :
5290
5291
5292
5293 GNULIB_MEMMEM=1
5294
5295
5296
5297
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5300 else
5301 HAVE_LONG_LONG_INT=0
5302 fi
5303
5304
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5307 else
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5309 fi
5310
5311
5312 if test $ac_cv_header_inttypes_h = yes; then
5313 HAVE_INTTYPES_H=1
5314 else
5315 HAVE_INTTYPES_H=0
5316 fi
5317
5318
5319 if test $ac_cv_header_sys_types_h = yes; then
5320 HAVE_SYS_TYPES_H=1
5321 else
5322 HAVE_SYS_TYPES_H=0
5323 fi
5324
5325
5326
5327
5328
5329 :
5330
5331
5332
5333
5334
5335
5336
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5339 else
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342 if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <stdint.h>
5354
5355 _ACEOF
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5359 s#^/[^/]#//&#
5360 p
5361 q
5362 }'`'"'
5363 else
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5365 fi
5366
5367 fi
5368 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5370 fi
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5372
5373
5374
5375 if test $ac_cv_header_stdint_h = yes; then
5376 HAVE_STDINT_H=1
5377 else
5378 HAVE_STDINT_H=0
5379 fi
5380
5381
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5390
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396
5397 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5400 #include <stdint.h>
5401 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5404 #endif
5405
5406
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5409 #include <stddef.h>
5410 #include <signal.h>
5411 #if HAVE_WCHAR_H
5412 # include <stdio.h>
5413 # include <time.h>
5414 # include <wchar.h>
5415 #endif
5416
5417
5418 #ifdef INT8_MAX
5419 int8_t a1 = INT8_MAX;
5420 int8_t a1min = INT8_MIN;
5421 #endif
5422 #ifdef INT16_MAX
5423 int16_t a2 = INT16_MAX;
5424 int16_t a2min = INT16_MIN;
5425 #endif
5426 #ifdef INT32_MAX
5427 int32_t a3 = INT32_MAX;
5428 int32_t a3min = INT32_MIN;
5429 #endif
5430 #ifdef INT64_MAX
5431 int64_t a4 = INT64_MAX;
5432 int64_t a4min = INT64_MIN;
5433 #endif
5434 #ifdef UINT8_MAX
5435 uint8_t b1 = UINT8_MAX;
5436 #else
5437 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5438 #endif
5439 #ifdef UINT16_MAX
5440 uint16_t b2 = UINT16_MAX;
5441 #endif
5442 #ifdef UINT32_MAX
5443 uint32_t b3 = UINT32_MAX;
5444 #endif
5445 #ifdef UINT64_MAX
5446 uint64_t b4 = UINT64_MAX;
5447 #endif
5448 int_least8_t c1 = INT8_C (0x7f);
5449 int_least8_t c1max = INT_LEAST8_MAX;
5450 int_least8_t c1min = INT_LEAST8_MIN;
5451 int_least16_t c2 = INT16_C (0x7fff);
5452 int_least16_t c2max = INT_LEAST16_MAX;
5453 int_least16_t c2min = INT_LEAST16_MIN;
5454 int_least32_t c3 = INT32_C (0x7fffffff);
5455 int_least32_t c3max = INT_LEAST32_MAX;
5456 int_least32_t c3min = INT_LEAST32_MIN;
5457 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458 int_least64_t c4max = INT_LEAST64_MAX;
5459 int_least64_t c4min = INT_LEAST64_MIN;
5460 uint_least8_t d1 = UINT8_C (0xff);
5461 uint_least8_t d1max = UINT_LEAST8_MAX;
5462 uint_least16_t d2 = UINT16_C (0xffff);
5463 uint_least16_t d2max = UINT_LEAST16_MAX;
5464 uint_least32_t d3 = UINT32_C (0xffffffff);
5465 uint_least32_t d3max = UINT_LEAST32_MAX;
5466 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467 uint_least64_t d4max = UINT_LEAST64_MAX;
5468 int_fast8_t e1 = INT_FAST8_MAX;
5469 int_fast8_t e1min = INT_FAST8_MIN;
5470 int_fast16_t e2 = INT_FAST16_MAX;
5471 int_fast16_t e2min = INT_FAST16_MIN;
5472 int_fast32_t e3 = INT_FAST32_MAX;
5473 int_fast32_t e3min = INT_FAST32_MIN;
5474 int_fast64_t e4 = INT_FAST64_MAX;
5475 int_fast64_t e4min = INT_FAST64_MIN;
5476 uint_fast8_t f1 = UINT_FAST8_MAX;
5477 uint_fast16_t f2 = UINT_FAST16_MAX;
5478 uint_fast32_t f3 = UINT_FAST32_MAX;
5479 uint_fast64_t f4 = UINT_FAST64_MAX;
5480 #ifdef INTPTR_MAX
5481 intptr_t g = INTPTR_MAX;
5482 intptr_t gmin = INTPTR_MIN;
5483 #endif
5484 #ifdef UINTPTR_MAX
5485 uintptr_t h = UINTPTR_MAX;
5486 #endif
5487 intmax_t i = INTMAX_MAX;
5488 uintmax_t j = UINTMAX_MAX;
5489
5490 #include <limits.h> /* for CHAR_BIT */
5491 #define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493 #define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5495 struct s {
5496 int check_PTRDIFF:
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5499 ? 1 : -1;
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5504 ? 1 : -1;
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5506 int check_WCHAR:
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5509 ? 1 : -1;
5510 /* Detect bug in mingw. */
5511 int check_WINT:
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5514 ? 1 : -1;
5515
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5517 int check_UINT8_C:
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5519 int check_UINT16_C:
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5521
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5523 #ifdef UINT8_MAX
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5525 #endif
5526 #ifdef UINT16_MAX
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5528 #endif
5529 #ifdef UINT32_MAX
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5531 #endif
5532 #ifdef UINT64_MAX
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5534 #endif
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5546 };
5547
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5588 fi
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5590 STDINT_H=
5591 else
5592
5593
5594 for ac_header in sys/inttypes.h sys/bitypes.h
5595 do
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 fi
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5605 else
5606 # Is the header compilable?
5607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5661 _ACEOF
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676 else
5677 ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 (
5714 cat <<\_ASBOX
5715 ## ------------------------------------------ ##
5716 ## Report this to the AC_PACKAGE_NAME lists. ##
5717 ## ------------------------------------------ ##
5718 _ASBOX
5719 ) |
5720 sed "s/^/$as_me: WARNING: /" >&2
5721 ;;
5722 esac
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5729 fi
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732
5733 fi
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 fi
5740
5741 done
5742
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5745 else
5746 HAVE_SYS_INTTYPES_H=0
5747 fi
5748
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5751 else
5752 HAVE_SYS_BITYPES_H=0
5753 fi
5754
5755
5756
5757 :
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5789 #include <stddef.h>
5790 #include <signal.h>
5791 #if HAVE_WCHAR_H
5792 # include <stdio.h>
5793 # include <time.h>
5794 # include <wchar.h>
5795 #endif
5796
5797 #include <limits.h>
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5802 test_array [0] = 0
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_lo=0 ac_mid=0
5831 while :; do
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5841 #include <stddef.h>
5842 #include <signal.h>
5843 #if HAVE_WCHAR_H
5844 # include <stdio.h>
5845 # include <time.h>
5846 # include <wchar.h>
5847 #endif
5848
5849 #include <limits.h>
5850 int
5851 main ()
5852 {
5853 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854 test_array [0] = 0
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5889 ac_lo= ac_hi=
5890 break
5891 fi
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917 #include <limits.h>
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=-1 ac_mid=-1
5951 while :; do
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5961 #include <stddef.h>
5962 #include <signal.h>
5963 #if HAVE_WCHAR_H
5964 # include <stdio.h>
5965 # include <time.h>
5966 # include <wchar.h>
5967 #endif
5968
5969 #include <limits.h>
5970 int
5971 main ()
5972 {
5973 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5974 test_array [0] = 0
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6009 ac_lo= ac_hi=
6010 break
6011 fi
6012 ac_mid=`expr 2 '*' $ac_mid`
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 ac_lo= ac_hi=
6021 fi
6022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 # Binary search between lo and hi bounds.
6026 while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6037 #include <stddef.h>
6038 #include <signal.h>
6039 #if HAVE_WCHAR_H
6040 # include <stdio.h>
6041 # include <time.h>
6042 # include <wchar.h>
6043 #endif
6044
6045 #include <limits.h>
6046 int
6047 main ()
6048 {
6049 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6050 test_array [0] = 0
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_lo=`expr '(' $ac_mid ')' + 1`
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 done
6087 case $ac_lo in
6088 ?*) result=$ac_lo;;
6089 '') result=unknown ;;
6090 esac
6091 else
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6110 #include <stddef.h>
6111 #include <signal.h>
6112 #if HAVE_WCHAR_H
6113 # include <stdio.h>
6114 # include <time.h>
6115 # include <wchar.h>
6116 #endif
6117
6118 #include <limits.h>
6119 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6121 #include <stdio.h>
6122 #include <stdlib.h>
6123 int
6124 main ()
6125 {
6126
6127 FILE *f = fopen ("conftest.val", "w");
6128 if (! f)
6129 exit (1);
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6131 {
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6134 exit (1);
6135 fprintf (f, "%ld\n", i);
6136 }
6137 else
6138 {
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6141 exit (1);
6142 fprintf (f, "%lu\n", i);
6143 }
6144 exit (ferror (f) || fclose (f) != 0);
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6162 else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ( exit $ac_status )
6168 result=unknown
6169 fi
6170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 fi
6173 rm -f conftest.val
6174 eval gl_cv_bitsizeof_${gltype}=\$result
6175
6176 fi
6177 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6181 result=0
6182 fi
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185 #define BITSIZEOF_${GLTYPE} $result
6186 _ACEOF
6187
6188 eval BITSIZEOF_${GLTYPE}=\$result
6189 done
6190
6191
6192
6193
6194
6195
6196
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6212 #include <stddef.h>
6213 #include <signal.h>
6214 #if HAVE_WCHAR_H
6215 # include <stdio.h>
6216 # include <time.h>
6217 # include <wchar.h>
6218 #endif
6219
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6221 int
6222 main ()
6223 {
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 result=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 result=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6260
6261 fi
6262 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_SIGNED_${GLTYPE} 1
6269 _ACEOF
6270
6271 eval HAVE_SIGNED_${GLTYPE}=1
6272 else
6273 eval HAVE_SIGNED_${GLTYPE}=0
6274 fi
6275 done
6276
6277
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6280
6281
6282
6283
6284
6285
6286
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6296 glsufu=
6297 else
6298 glsufu=u
6299 fi
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6301 case $glsuf in
6302 '') gltype1='int';;
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6310 esac
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6320 #include <stddef.h>
6321 #include <signal.h>
6322 #if HAVE_WCHAR_H
6323 # include <stdio.h>
6324 # include <time.h>
6325 # include <wchar.h>
6326 #endif
6327
6328 extern $gltype foo;
6329 extern $gltype1 foo;
6330 int
6331 main ()
6332 {
6333
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6369 done
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378 #define ${GLTYPE}_SUFFIX $result
6379 _ACEOF
6380
6381 done
6382
6383
6384
6385 STDINT_H=stdint.h
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #include <wchar.h>
6401 wchar_t w;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 gl_cv_header_wchar_h_standalone=no
6431 fi
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6437 WCHAR_H=wchar.h
6438 fi
6439
6440
6441 :
6442
6443
6444
6445
6446
6447 if test $ac_cv_header_wchar_h = yes; then
6448 HAVE_WCHAR_H=1
6449 else
6450 HAVE_WCHAR_H=0
6451 fi
6452
6453
6454
6455
6456 :
6457
6458
6459
6460
6461
6462
6463
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6466 else
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469 if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <wchar.h>
6481
6482 _ACEOF
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6486 s#^/[^/]#//&#
6487 p
6488 q
6489 }'`'"'
6490 else
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6492 fi
6493
6494 fi
6495 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6497 fi
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6499
6500
6501
6502
6503
6504
6505
6506
6507 gltests_libdeps=
6508 gltests_ltlibdeps=
6509
6510
6511
6512 gl_source_base='tests'
6513
6514
6515
6516
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6518
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6520
6521
6522
6523 # For Makefile dependencies.
6524 GNULIB_STDINT_H=
6525 if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6527 fi
6528
6529
6530 PACKAGE=gdb
6531
6532 cat >>confdefs.h <<_ACEOF
6533 #define PACKAGE "$PACKAGE"
6534 _ACEOF
6535
6536
6537
6538 # GDB does not use automake, but gnulib does. This line lets us
6539 # generate its Makefile.in.
6540 am__api_version="1.9"
6541 # Find a good install program. We prefer a C program (faster),
6542 # so one script is as good as another. But avoid the broken or
6543 # incompatible versions:
6544 # SysV /etc/install, /usr/sbin/install
6545 # SunOS /usr/etc/install
6546 # IRIX /sbin/install
6547 # AIX /bin/install
6548 # AmigaOS /C/install, which installs bootblocks on floppy discs
6549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552 # OS/2's system install, which has a completely different semantic
6553 # ./install, which can be erroneously created by make from ./install.sh.
6554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556 if test -z "$INSTALL"; then
6557 if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6566 case $as_dir/ in
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6570 /usr/ucb/* ) ;;
6571 *)
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6574 # by default.
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6581 :
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6585 :
6586 else
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6588 break 3
6589 fi
6590 fi
6591 done
6592 done
6593 ;;
6594 esac
6595 done
6596
6597
6598 fi
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6601 else
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6607 fi
6608 fi
6609 echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 echo "${ECHO_T}$INSTALL" >&6
6611
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6622 # Just in case
6623 sleep 1
6624 echo timestamp > conftest.file
6625 # Do `set' in a subshell so we don't clobber the current shell's
6626 # arguments. Must try -L first in case configure is actually a
6627 # symlink; some systems play weird games with the mod time of symlinks
6628 # (eg FreeBSD returns the mod time of the symlink's containing
6629 # directory).
6630 if (
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6633 # -L didn't work.
6634 set X `ls -t $srcdir/configure conftest.file`
6635 fi
6636 rm -f conftest.file
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6639
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645 alias in your environment" >&5
6646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647 alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi
6650
6651 test "$2" = conftest.file
6652 )
6653 then
6654 # Ok.
6655 :
6656 else
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658 Check your system clock" >&5
6659 echo "$as_me: error: newly created file is older than distributed files!
6660 Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6662 fi
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667 # Use a double $ so make ignores it.
6668 test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670 # Double any \ or $. echo might interpret backslashes.
6671 # By default was `s,x,x', remove it if useless.
6672 cat <<\_ACEOF >conftest.sed
6673 s/[\\$]/&&/g;s/;s,x,x,$//
6674 _ACEOF
6675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6676 rm conftest.sed
6677
6678 # expand $ac_aux_dir to an absolute path
6679 am_aux_dir=`cd $ac_aux_dir && pwd`
6680
6681 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682 # Use eval to expand $SHELL
6683 if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6685 else
6686 am_missing_run=
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6689 fi
6690
6691 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6696 # for two reasons:
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6707 else
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6711 # exists.
6712 for d in ./-p ./--version;
6713 do
6714 test -d $d && rmdir $d
6715 done
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6719 else
6720 mkdir_p='$(install_sh) -d'
6721 fi
6722 fi
6723
6724 for ac_prog in gawk mawk nawk awk
6725 do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749
6750 fi
6751 fi
6752 AWK=$ac_cv_prog_AWK
6753 if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755 echo "${ECHO_T}$AWK" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761 test -n "$AWK" && break
6762 done
6763
6764 ac_config_commands="$ac_config_commands depfiles"
6765
6766
6767 am_make=${MAKE-make}
6768 cat > confinc << 'END'
6769 am__doit:
6770 @echo done
6771 .PHONY: am__doit
6772 END
6773 # If we don't find an include directive, just comment out the code.
6774 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6776 am__include="#"
6777 am__quote=
6778 _am_result=none
6779 # First try GNU make style include.
6780 echo "include confinc" > confmf
6781 # We grep out `Entering directory' and `Leaving directory'
6782 # messages which can occur if `w' ends up in MAKEFLAGS.
6783 # In particular we don't look at `^make:' because GNU make might
6784 # be invoked under some other name (usually "gmake"), in which
6785 # case it prints its new name instead of `make'.
6786 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6787 am__include=include
6788 am__quote=
6789 _am_result=GNU
6790 fi
6791 # Now try BSD make style include.
6792 if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6796 am__quote="\""
6797 _am_result=BSD
6798 fi
6799 fi
6800
6801
6802 echo "$as_me:$LINENO: result: $_am_result" >&5
6803 echo "${ECHO_T}$_am_result" >&6
6804 rm -f confinc confmf
6805
6806 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807 if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6809
6810 fi;
6811 if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6813 AMDEPBACKSLASH='\'
6814 fi
6815
6816
6817 if test "x$enable_dependency_tracking" != xno; then
6818 AMDEP_TRUE=
6819 AMDEP_FALSE='#'
6820 else
6821 AMDEP_TRUE='#'
6822 AMDEP_FALSE=
6823 fi
6824
6825
6826
6827 # test to see if srcdir already configured
6828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6833 fi
6834
6835 # test whether we have cygpath
6836 if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6839 else
6840 CYGPATH_W=echo
6841 fi
6842 fi
6843
6844
6845 # Define the identity of the package.
6846 PACKAGE=gdb
6847 VERSION=UNUSED-VERSION
6848
6849
6850 # Some tools Automake needs.
6851
6852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6853
6854
6855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6856
6857
6858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6859
6860
6861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6862
6863
6864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6865
6866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6867
6868 # Installed binaries are usually stripped using `strip' when the user
6869 # run `make install-strip'. However `strip' might not be the right
6870 # tool to use in cross-compilation environments, therefore Automake
6871 # will honor the `STRIP' environment variable to overrule this program.
6872 if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6
6904 else
6905 echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6907 fi
6908
6909 fi
6910 if test -z "$ac_cv_prog_STRIP"; then
6911 ac_ct_STRIP=$STRIP
6912 # Extract the first word of "strip", so it can be a program name with args.
6913 set dummy strip; ac_word=$2
6914 echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6937 fi
6938 fi
6939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940 if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942 echo "${ECHO_T}$ac_ct_STRIP" >&6
6943 else
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 fi
6947
6948 STRIP=$ac_ct_STRIP
6949 else
6950 STRIP="$ac_cv_prog_STRIP"
6951 fi
6952
6953 fi
6954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6955
6956 # We need awk for the "check" target. The system "awk" is bad on
6957 # some platforms.
6958 # Always define AMTAR for backward compatibility.
6959
6960 AMTAR=${AMTAR-"${am_missing_run}tar"}
6961
6962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6963
6964
6965
6966
6967 depcc="$CC" am_compiler_list=
6968
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6979 # in D'.
6980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014 case $depmode in
7015 nosideeffect)
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
7024 none) break ;;
7025 esac
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7047 break
7048 fi
7049 fi
7050 done
7051
7052 cd ..
7053 rm -rf conftest.dir
7054 else
7055 am_cv_CC_dependencies_compiler_type=none
7056 fi
7057
7058 fi
7059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7062
7063
7064
7065 if
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCC_TRUE=
7069 am__fastdepCC_FALSE='#'
7070 else
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7073 fi
7074
7075
7076
7077
7078 debugdir=${libdir}/debug
7079
7080
7081 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082 if test "${with_separate_debug_dir+set}" = set; then
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7085 fi;
7086
7087
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define DEBUGDIR "$ac_define_dir"
7095 _ACEOF
7096
7097
7098 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7099
7100 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7103 else
7104 test_prefix=$prefix
7105 fi
7106 else
7107 test_prefix=$exec_prefix
7108 fi
7109 case ${debugdir} in
7110 "${test_prefix}"|"${test_prefix}/"*|\
7111 '${exec_prefix}'|'${exec_prefix}/'*)
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define DEBUGDIR_RELOCATABLE 1
7115 _ACEOF
7116
7117 ;;
7118 esac
7119
7120
7121
7122 subdirs="$subdirs doc testsuite"
7123
7124
7125 # Check whether to support alternative target configurations
7126 # Check whether --enable-targets or --disable-targets was given.
7127 if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7133 ;;
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7136 esac
7137 fi;
7138
7139 # Check whether to enable 64-bit support on 32-bit hosts
7140 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141 if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7144 yes) want64=true ;;
7145 no) want64=false ;;
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7149 esac
7150 else
7151 want64=false
7152 fi;
7153 # Provide defaults for some variables set by the per-host and per-target
7154 # configuration.
7155 gdb_host_obs=posix-hdep.o
7156
7157 if test "${target}" = "${host}"; then
7158 gdb_native=yes
7159 else
7160 gdb_native=no
7161 fi
7162
7163 . $srcdir/configure.host
7164
7165 # Accumulate some settings from configure.tgt over all enabled targets
7166
7167 TARGET_OBS=
7168 all_targets=
7169
7170 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7171 do
7172 if test "$targ_alias" = "all"; then
7173 all_targets=true
7174 else
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7178 targ=$result
7179 else
7180 targ=$targ_alias
7181 fi
7182
7183 . ${srcdir}/configure.tgt
7184
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7188 *" ${i} "*) ;;
7189 *)
7190 TARGET_OBS="$TARGET_OBS ${i}"
7191 ;;
7192 esac
7193 done
7194
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7198 fi
7199 fi
7200 done
7201
7202 if test x${all_targets} = xtrue; then
7203
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7209 #
7210 # NOTE: This test must be in sync with the corresponding
7211 # tests in BFD!
7212
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215 echo $ECHO_N "checking for long... $ECHO_C" >&6
7216 if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7226 int
7227 main ()
7228 {
7229 if ((long *) 0)
7230 return 0;
7231 if (sizeof (long))
7232 return 0;
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7259 ac_cv_type_long=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_type_long=no
7265 fi
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269 echo "${ECHO_T}$ac_cv_type_long" >&6
7270
7271 echo "$as_me:$LINENO: checking size of long" >&5
7272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273 if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 int
7291 main ()
7292 {
7293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7294 test_array [0] = 0
7295
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_lo=0 ac_mid=0
7323 while :; do
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7331 int
7332 main ()
7333 {
7334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7335 test_array [0] = 0
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7370 ac_lo= ac_hi=
7371 break
7372 fi
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7374 fi
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 int
7389 main ()
7390 {
7391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7392 test_array [0] = 0
7393
7394 ;
7395 return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=-1 ac_mid=-1
7421 while :; do
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 int
7430 main ()
7431 {
7432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7433 test_array [0] = 0
7434
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466 ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7468 ac_lo= ac_hi=
7469 break
7470 fi
7471 ac_mid=`expr 2 '*' $ac_mid`
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 done
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_lo= ac_hi=
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 # Binary search between lo and hi bounds.
7485 while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 int
7495 main ()
7496 {
7497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7498 test_array [0] = 0
7499
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_hi=$ac_mid
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_lo=`expr '(' $ac_mid ')' + 1`
7532 fi
7533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534 done
7535 case $ac_lo in
7536 ?*) ac_cv_sizeof_long=$ac_lo;;
7537 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540 See \`config.log' for more details." >&5
7541 echo "$as_me: error: cannot compute sizeof (long), 77
7542 See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7544 esac
7545 else
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550 See \`config.log' for more details." >&5
7551 echo "$as_me: error: cannot run test program while cross compiling
7552 See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 long longval () { return (long) (sizeof (long)); }
7563 unsigned long ulongval () { return (long) (sizeof (long)); }
7564 #include <stdio.h>
7565 #include <stdlib.h>
7566 int
7567 main ()
7568 {
7569
7570 FILE *f = fopen ("conftest.val", "w");
7571 if (! f)
7572 exit (1);
7573 if (((long) (sizeof (long))) < 0)
7574 {
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7577 exit (1);
7578 fprintf (f, "%ld\n", i);
7579 }
7580 else
7581 {
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7584 exit (1);
7585 fprintf (f, "%lu\n", i);
7586 }
7587 exit (ferror (f) || fclose (f) != 0);
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7605 else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ( exit $ac_status )
7611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: cannot compute sizeof (long), 77
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7618 fi
7619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7620 fi
7621 fi
7622 rm -f conftest.val
7623 else
7624 ac_cv_sizeof_long=0
7625 fi
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629 cat >>confdefs.h <<_ACEOF
7630 #define SIZEOF_LONG $ac_cv_sizeof_long
7631 _ACEOF
7632
7633
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7635 want64=true
7636 fi
7637 fi
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7640 else
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7642 fi
7643 fi
7644
7645
7646
7647 # For other settings, only the main target counts.
7648 gdb_sim=
7649 gdb_osabi=
7650 build_gdbserver=
7651 targ=$target; . ${srcdir}/configure.tgt
7652
7653 # Fetch the default architecture and default target vector from BFD.
7654 targ=$target; . $srcdir/../bfd/config.bfd
7655
7656 # We only want the first architecture, so strip off the others if
7657 # there is more than one.
7658 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7659
7660 if test "x$targ_archs" != x; then
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define DEFAULT_BFD_ARCH $targ_archs
7664 _ACEOF
7665
7666 fi
7667 if test "x$targ_defvec" != x; then
7668
7669 cat >>confdefs.h <<_ACEOF
7670 #define DEFAULT_BFD_VEC $targ_defvec
7671 _ACEOF
7672
7673 fi
7674
7675 # The CLI cannot be disabled yet, but may be in the future.
7676
7677 # Enable CLI.
7678 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7679 if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7681 case $enableval in
7682 yes)
7683 ;;
7684 no)
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7688 *)
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7692 esac
7693 else
7694 enable_gdbcli=yes
7695 fi;
7696 if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7702 fi
7703 fi
7704
7705 # Enable MI.
7706 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7707 if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7709 case $enableval in
7710 yes | no)
7711 ;;
7712 *)
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716 esac
7717 else
7718 enable_gdbmi=yes
7719 fi;
7720 if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7726 fi
7727 fi
7728
7729 # Enable TUI.
7730 # Check whether --enable-tui or --disable-tui was given.
7731 if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7733 case $enableval in
7734 yes | no | auto)
7735 ;;
7736 *)
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7740 esac
7741 else
7742 enable_tui=auto
7743 fi;
7744
7745 # Enable gdbtk.
7746 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7747 if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7749 case $enableval in
7750 yes | no)
7751 ;;
7752 *)
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7756 esac
7757 else
7758 if test -d $srcdir/gdbtk; then
7759 enable_gdbtk=yes
7760 else
7761 enable_gdbtk=no
7762 fi
7763 fi;
7764 # We unconditionally disable gdbtk tests on selected platforms.
7765 case $host_os in
7766 go32* | windows*)
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7769 enable_gdbtk=no ;;
7770 esac
7771
7772 # Libunwind support.
7773
7774 # Check whether --with-libunwind or --without-libunwind was given.
7775 if test "${with_libunwind+set}" = set; then
7776 withval="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7783 esac
7784 else
7785
7786
7787 for ac_header in libunwind.h
7788 do
7789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 fi
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 else
7799 # Is the header compilable?
7800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 $ac_includes_default
7809 #include <$ac_header>
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_header_compiler=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6
7843
7844 # Is the header present?
7845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <$ac_header>
7854 _ACEOF
7855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866 else
7867 ac_cpp_err=
7868 fi
7869 else
7870 ac_cpp_err=yes
7871 fi
7872 if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_header_preproc=no
7879 fi
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7883
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886 yes:no: )
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7892 ;;
7893 no:yes:* )
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906 (
7907 cat <<\_ASBOX
7908 ## ------------------------------------------ ##
7909 ## Report this to the AC_PACKAGE_NAME lists. ##
7910 ## ------------------------------------------ ##
7911 _ASBOX
7912 ) |
7913 sed "s/^/$as_me: WARNING: /" >&2
7914 ;;
7915 esac
7916 echo "$as_me:$LINENO: checking for $ac_header" >&5
7917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 eval "$as_ac_Header=\$ac_header_preproc"
7922 fi
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925
7926 fi
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7931
7932 fi
7933
7934 done
7935
7936
7937 for ac_header in libunwind-ia64.h
7938 do
7939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 fi
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948 else
7949 # Is the header compilable?
7950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7951 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
7959 #include <$ac_header>
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_header_compiler=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_header_compiler=no
7989 fi
7990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992 echo "${ECHO_T}$ac_header_compiler" >&6
7993
7994 # Is the header present?
7995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <$ac_header>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019 else
8020 ac_cpp_err=yes
8021 fi
8022 if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_header_preproc=no
8029 fi
8030 rm -f conftest.err conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032 echo "${ECHO_T}$ac_header_preproc" >&6
8033
8034 # So? What about this header?
8035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 yes:no: )
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8042 ;;
8043 no:yes:* )
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8056 (
8057 cat <<\_ASBOX
8058 ## ------------------------------------------ ##
8059 ## Report this to the AC_PACKAGE_NAME lists. ##
8060 ## ------------------------------------------ ##
8061 _ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
8064 ;;
8065 esac
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 eval "$as_ac_Header=\$ac_header_preproc"
8072 fi
8073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8075
8076 fi
8077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8081
8082 fi
8083
8084 done
8085
8086 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8087 enable_libunwind=yes;
8088 fi
8089
8090 fi;
8091
8092 if test x"$enable_libunwind" = xyes; then
8093
8094 for ac_header in libunwind.h
8095 do
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 fi
8103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8105 else
8106 # Is the header compilable?
8107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 #include <$ac_header>
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_header_compiler=no
8146 fi
8147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8149 echo "${ECHO_T}$ac_header_compiler" >&6
8150
8151 # Is the header present?
8152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 #include <$ac_header>
8161 _ACEOF
8162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8173 else
8174 ac_cpp_err=
8175 fi
8176 else
8177 ac_cpp_err=yes
8178 fi
8179 if test -z "$ac_cpp_err"; then
8180 ac_header_preproc=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_header_preproc=no
8186 fi
8187 rm -f conftest.err conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8189 echo "${ECHO_T}$ac_header_preproc" >&6
8190
8191 # So? What about this header?
8192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8193 yes:no: )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8198 ac_header_preproc=yes
8199 ;;
8200 no:yes:* )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8213 (
8214 cat <<\_ASBOX
8215 ## ------------------------------------------ ##
8216 ## Report this to the AC_PACKAGE_NAME lists. ##
8217 ## ------------------------------------------ ##
8218 _ASBOX
8219 ) |
8220 sed "s/^/$as_me: WARNING: /" >&2
8221 ;;
8222 esac
8223 echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 eval "$as_ac_Header=\$ac_header_preproc"
8229 fi
8230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232
8233 fi
8234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237 _ACEOF
8238
8239 fi
8240
8241 done
8242
8243
8244 for ac_header in libunwind-ia64.h
8245 do
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 fi
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8255 else
8256 # Is the header compilable?
8257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #include <$ac_header>
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_header_compiler=no
8296 fi
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299 echo "${ECHO_T}$ac_header_compiler" >&6
8300
8301 # Is the header present?
8302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <$ac_header>
8311 _ACEOF
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323 else
8324 ac_cpp_err=
8325 fi
8326 else
8327 ac_cpp_err=yes
8328 fi
8329 if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_header_preproc=no
8336 fi
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343 yes:no: )
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8349 ;;
8350 no:yes:* )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8363 (
8364 cat <<\_ASBOX
8365 ## ------------------------------------------ ##
8366 ## Report this to the AC_PACKAGE_NAME lists. ##
8367 ## ------------------------------------------ ##
8368 _ASBOX
8369 ) |
8370 sed "s/^/$as_me: WARNING: /" >&2
8371 ;;
8372 esac
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379 fi
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382
8383 fi
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LIBUNWIND 1
8396 _ACEOF
8397
8398 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8399 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8400 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8401 fi
8402
8403 # Profiling support.
8404 # Check whether --enable-profiling or --disable-profiling was given.
8405 if test "${enable_profiling+set}" = set; then
8406 enableval="$enable_profiling"
8407 case $enableval in
8408 yes | no)
8409 ;;
8410 *)
8411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8412 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8413 { (exit 1); exit 1; }; } ;;
8414 esac
8415 else
8416 enable_profiling=no
8417 fi;
8418
8419
8420
8421 for ac_func in monstartup _mcleanup
8422 do
8423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424 echo "$as_me:$LINENO: checking for $ac_func" >&5
8425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_var+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8437 #define $ac_func innocuous_$ac_func
8438
8439 /* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char $ac_func (); below.
8441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442 <limits.h> exists even on freestanding compilers. */
8443
8444 #ifdef __STDC__
8445 # include <limits.h>
8446 #else
8447 # include <assert.h>
8448 #endif
8449
8450 #undef $ac_func
8451
8452 /* Override any gcc2 internal prototype to avoid an error. */
8453 #ifdef __cplusplus
8454 extern "C"
8455 {
8456 #endif
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459 char $ac_func ();
8460 /* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 choke me
8465 #else
8466 char (*f) () = $ac_func;
8467 #endif
8468 #ifdef __cplusplus
8469 }
8470 #endif
8471
8472 int
8473 main ()
8474 {
8475 return f != $ac_func;
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 eval "$as_ac_var=no"
8508 fi
8509 rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 fi
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8514 if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8517 _ACEOF
8518
8519 fi
8520 done
8521
8522 echo "$as_me:$LINENO: checking for _etext" >&5
8523 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8524 if test "${ac_cv_var__etext+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 #include <stdlib.h>
8534 extern char _etext;
8535
8536 int
8537 main ()
8538 {
8539 free (&_etext);
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_var__etext=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_var__etext=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8577 echo "${ECHO_T}$ac_cv_var__etext" >&6
8578 if test $ac_cv_var__etext = yes; then
8579
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE__ETEXT 1
8582 _ACEOF
8583
8584 fi
8585 echo "$as_me:$LINENO: checking for etext" >&5
8586 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8587 if test "${ac_cv_var_etext+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 #include <stdlib.h>
8597 extern char etext;
8598
8599 int
8600 main ()
8601 {
8602 free (&etext);
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_var_etext=yes
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_cv_var_etext=no
8635 fi
8636 rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8640 echo "${ECHO_T}$ac_cv_var_etext" >&6
8641 if test $ac_cv_var_etext = yes; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAVE_ETEXT 1
8645 _ACEOF
8646
8647 fi
8648 if test "$enable_profiling" = yes ; then
8649 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8650 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8651 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8652 { (exit 1); exit 1; }; }
8653 fi
8654 PROFILE_CFLAGS=-pg
8655 OLD_CFLAGS="$CFLAGS"
8656 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8657
8658 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8659 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8660 if test "${ac_cv_cc_supports_pg+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669
8670 int
8671 main ()
8672 {
8673 int x;
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_cc_supports_pg=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_cv_cc_supports_pg=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8710 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8711
8712 if test $ac_cv_cc_supports_pg = no; then
8713 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8714 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8715 { (exit 1); exit 1; }; }
8716 fi
8717
8718 CFLAGS="$OLD_CFLAGS"
8719 fi
8720
8721
8722
8723 # Check whether --with-pkgversion or --without-pkgversion was given.
8724 if test "${with_pkgversion+set}" = set; then
8725 withval="$with_pkgversion"
8726 case "$withval" in
8727 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8728 echo "$as_me: error: package version not specified" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8730 no) PKGVERSION= ;;
8731 *) PKGVERSION="($withval) " ;;
8732 esac
8733 else
8734 PKGVERSION="(GDB) "
8735
8736 fi;
8737
8738
8739
8740
8741 # Check whether --with-bugurl or --without-bugurl was given.
8742 if test "${with_bugurl+set}" = set; then
8743 withval="$with_bugurl"
8744 case "$withval" in
8745 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8746 echo "$as_me: error: bug URL not specified" >&2;}
8747 { (exit 1); exit 1; }; } ;;
8748 no) BUGURL=
8749 ;;
8750 *) BUGURL="$withval"
8751 ;;
8752 esac
8753 else
8754 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8755
8756 fi;
8757 case ${BUGURL} in
8758 "")
8759 REPORT_BUGS_TO=
8760 REPORT_BUGS_TEXI=
8761 ;;
8762 *)
8763 REPORT_BUGS_TO="<$BUGURL>"
8764 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8765 ;;
8766 esac;
8767
8768
8769
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define PKGVERSION "$PKGVERSION"
8773 _ACEOF
8774
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8778 _ACEOF
8779
8780
8781 # --------------------- #
8782 # Checks for programs. #
8783 # --------------------- #
8784
8785 for ac_prog in gawk mawk nawk awk
8786 do
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 echo "$as_me:$LINENO: checking for $ac_word" >&5
8790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791 if test "${ac_cv_prog_AWK+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 if test -n "$AWK"; then
8795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_AWK="$ac_prog"
8805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808 done
8809 done
8810
8811 fi
8812 fi
8813 AWK=$ac_cv_prog_AWK
8814 if test -n "$AWK"; then
8815 echo "$as_me:$LINENO: result: $AWK" >&5
8816 echo "${ECHO_T}$AWK" >&6
8817 else
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8820 fi
8821
8822 test -n "$AWK" && break
8823 done
8824
8825 # Find a good install program. We prefer a C program (faster),
8826 # so one script is as good as another. But avoid the broken or
8827 # incompatible versions:
8828 # SysV /etc/install, /usr/sbin/install
8829 # SunOS /usr/etc/install
8830 # IRIX /sbin/install
8831 # AIX /bin/install
8832 # AmigaOS /C/install, which installs bootblocks on floppy discs
8833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8836 # OS/2's system install, which has a completely different semantic
8837 # ./install, which can be erroneously created by make from ./install.sh.
8838 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8840 if test -z "$INSTALL"; then
8841 if test "${ac_cv_path_install+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 # Account for people who put trailing slashes in PATH elements.
8850 case $as_dir/ in
8851 ./ | .// | /cC/* | \
8852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8854 /usr/ucb/* ) ;;
8855 *)
8856 # OSF1 and SCO ODT 3.0 have their own names for install.
8857 # Don't use installbsd from OSF since it installs stuff as root
8858 # by default.
8859 for ac_prog in ginstall scoinst install; do
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8862 if test $ac_prog = install &&
8863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8864 # AIX install. It has an incompatible calling convention.
8865 :
8866 elif test $ac_prog = install &&
8867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8868 # program-specific install script used by HP pwplus--don't use.
8869 :
8870 else
8871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8872 break 3
8873 fi
8874 fi
8875 done
8876 done
8877 ;;
8878 esac
8879 done
8880
8881
8882 fi
8883 if test "${ac_cv_path_install+set}" = set; then
8884 INSTALL=$ac_cv_path_install
8885 else
8886 # As a last resort, use the slow shell script. We don't cache a
8887 # path for INSTALL within a source directory, because that will
8888 # break other packages using the cache if that directory is
8889 # removed, or if the path is relative.
8890 INSTALL=$ac_install_sh
8891 fi
8892 fi
8893 echo "$as_me:$LINENO: result: $INSTALL" >&5
8894 echo "${ECHO_T}$INSTALL" >&6
8895
8896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8897 # It thinks the first close brace ends the variable substitution.
8898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8899
8900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8901
8902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8903
8904 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8905 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8906 LN_S=$as_ln_s
8907 if test "$LN_S" = "ln -s"; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6
8910 else
8911 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8912 echo "${ECHO_T}no, using $LN_S" >&6
8913 fi
8914
8915 if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8918 echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920 if test "${ac_cv_prog_RANLIB+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939
8940 fi
8941 fi
8942 RANLIB=$ac_cv_prog_RANLIB
8943 if test -n "$RANLIB"; then
8944 echo "$as_me:$LINENO: result: $RANLIB" >&5
8945 echo "${ECHO_T}$RANLIB" >&6
8946 else
8947 echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6
8949 fi
8950
8951 fi
8952 if test -z "$ac_cv_prog_RANLIB"; then
8953 ac_ct_RANLIB=$RANLIB
8954 # Extract the first word of "ranlib", so it can be a program name with args.
8955 set dummy ranlib; ac_word=$2
8956 echo "$as_me:$LINENO: checking for $ac_word" >&5
8957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 if test -n "$ac_ct_RANLIB"; then
8962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_RANLIB="ranlib"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977
8978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8979 fi
8980 fi
8981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8982 if test -n "$ac_ct_RANLIB"; then
8983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8988 fi
8989
8990 RANLIB=$ac_ct_RANLIB
8991 else
8992 RANLIB="$ac_cv_prog_RANLIB"
8993 fi
8994
8995 for ac_prog in 'bison -y' byacc
8996 do
8997 # Extract the first word of "$ac_prog", so it can be a program name with args.
8998 set dummy $ac_prog; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_YACC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 if test -n "$YACC"; then
9005 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_YACC="$ac_prog"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020
9021 fi
9022 fi
9023 YACC=$ac_cv_prog_YACC
9024 if test -n "$YACC"; then
9025 echo "$as_me:$LINENO: result: $YACC" >&5
9026 echo "${ECHO_T}$YACC" >&6
9027 else
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9030 fi
9031
9032 test -n "$YACC" && break
9033 done
9034 test -n "$YACC" || YACC="yacc"
9035
9036
9037 if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}ar; ac_word=$2
9040 echo "$as_me:$LINENO: checking for $ac_word" >&5
9041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042 if test "${ac_cv_prog_AR+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 if test -n "$AR"; then
9046 ac_cv_prog_AR="$AR" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_AR="${ac_tool_prefix}ar"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059 done
9060 done
9061
9062 fi
9063 fi
9064 AR=$ac_cv_prog_AR
9065 if test -n "$AR"; then
9066 echo "$as_me:$LINENO: result: $AR" >&5
9067 echo "${ECHO_T}$AR" >&6
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9071 fi
9072
9073 fi
9074 if test -z "$ac_cv_prog_AR"; then
9075 ac_ct_AR=$AR
9076 # Extract the first word of "ar", so it can be a program name with args.
9077 set dummy ar; ac_word=$2
9078 echo "$as_me:$LINENO: checking for $ac_word" >&5
9079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_AR="ar"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099
9100 fi
9101 fi
9102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9103 if test -n "$ac_ct_AR"; then
9104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9105 echo "${ECHO_T}$ac_ct_AR" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109 fi
9110
9111 AR=$ac_ct_AR
9112 else
9113 AR="$ac_cv_prog_AR"
9114 fi
9115
9116 if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9118 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9119 echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9121 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 if test -n "$DLLTOOL"; then
9125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138 done
9139 done
9140
9141 fi
9142 fi
9143 DLLTOOL=$ac_cv_prog_DLLTOOL
9144 if test -n "$DLLTOOL"; then
9145 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9146 echo "${ECHO_T}$DLLTOOL" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9150 fi
9151
9152 fi
9153 if test -z "$ac_cv_prog_DLLTOOL"; then
9154 ac_ct_DLLTOOL=$DLLTOOL
9155 # Extract the first word of "dlltool", so it can be a program name with args.
9156 set dummy dlltool; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176 done
9177 done
9178
9179 fi
9180 fi
9181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9182 if test -n "$ac_ct_DLLTOOL"; then
9183 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9184 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9188 fi
9189
9190 DLLTOOL=$ac_ct_DLLTOOL
9191 else
9192 DLLTOOL="$ac_cv_prog_DLLTOOL"
9193 fi
9194
9195 if test -n "$ac_tool_prefix"; then
9196 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9197 set dummy ${ac_tool_prefix}windres; ac_word=$2
9198 echo "$as_me:$LINENO: checking for $ac_word" >&5
9199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200 if test "${ac_cv_prog_WINDRES+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 if test -n "$WINDRES"; then
9204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217 done
9218 done
9219
9220 fi
9221 fi
9222 WINDRES=$ac_cv_prog_WINDRES
9223 if test -n "$WINDRES"; then
9224 echo "$as_me:$LINENO: result: $WINDRES" >&5
9225 echo "${ECHO_T}$WINDRES" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9229 fi
9230
9231 fi
9232 if test -z "$ac_cv_prog_WINDRES"; then
9233 ac_ct_WINDRES=$WINDRES
9234 # Extract the first word of "windres", so it can be a program name with args.
9235 set dummy windres; ac_word=$2
9236 echo "$as_me:$LINENO: checking for $ac_word" >&5
9237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 if test -n "$ac_ct_WINDRES"; then
9242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_ac_ct_WINDRES="windres"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255 done
9256 done
9257
9258 fi
9259 fi
9260 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9261 if test -n "$ac_ct_WINDRES"; then
9262 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9263 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6
9267 fi
9268
9269 WINDRES=$ac_ct_WINDRES
9270 else
9271 WINDRES="$ac_cv_prog_WINDRES"
9272 fi
9273
9274
9275 # Needed for GNU/Hurd.
9276 if test -n "$ac_tool_prefix"; then
9277 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9278 set dummy ${ac_tool_prefix}mig; ac_word=$2
9279 echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281 if test "${ac_cv_prog_MIG+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 if test -n "$MIG"; then
9285 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298 done
9299 done
9300
9301 fi
9302 fi
9303 MIG=$ac_cv_prog_MIG
9304 if test -n "$MIG"; then
9305 echo "$as_me:$LINENO: result: $MIG" >&5
9306 echo "${ECHO_T}$MIG" >&6
9307 else
9308 echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6
9310 fi
9311
9312 fi
9313 if test -z "$ac_cv_prog_MIG"; then
9314 ac_ct_MIG=$MIG
9315 # Extract the first word of "mig", so it can be a program name with args.
9316 set dummy mig; ac_word=$2
9317 echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 if test -n "$ac_ct_MIG"; then
9323 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_ac_ct_MIG="mig"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338
9339 fi
9340 fi
9341 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9342 if test -n "$ac_ct_MIG"; then
9343 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9344 echo "${ECHO_T}$ac_ct_MIG" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6
9348 fi
9349
9350 MIG=$ac_ct_MIG
9351 else
9352 MIG="$ac_cv_prog_MIG"
9353 fi
9354
9355
9356 # ---------------------- #
9357 # Checks for libraries. #
9358 # ---------------------- #
9359
9360 # We might need to link with -lm; most simulators need it.
9361
9362 echo "$as_me:$LINENO: checking for main in -lm" >&5
9363 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9364 if test "${ac_cv_lib_m_main+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lm $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375
9376
9377 int
9378 main ()
9379 {
9380 main ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_m_main=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_m_main=no
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9419 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9420 if test $ac_cv_lib_m_main = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBM 1
9423 _ACEOF
9424
9425 LIBS="-lm $LIBS"
9426
9427 fi
9428
9429
9430 # We need to link with -lw to get `wctype' on Solaris before Solaris
9431 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9432 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9433 # is known to have this problem). Therefore we avoid libw if we can.
9434 echo "$as_me:$LINENO: checking for wctype" >&5
9435 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9436 if test "${ac_cv_func_wctype+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9447 #define wctype innocuous_wctype
9448
9449 /* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char wctype (); below.
9451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9452 <limits.h> exists even on freestanding compilers. */
9453
9454 #ifdef __STDC__
9455 # include <limits.h>
9456 #else
9457 # include <assert.h>
9458 #endif
9459
9460 #undef wctype
9461
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 {
9466 #endif
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9469 char wctype ();
9470 /* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
9473 #if defined (__stub_wctype) || defined (__stub___wctype)
9474 choke me
9475 #else
9476 char (*f) () = wctype;
9477 #endif
9478 #ifdef __cplusplus
9479 }
9480 #endif
9481
9482 int
9483 main ()
9484 {
9485 return f != wctype;
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_wctype=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_func_wctype=no
9518 fi
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9523 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9524 if test $ac_cv_func_wctype = yes; then
9525 :
9526 else
9527
9528 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9529 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9530 if test "${ac_cv_lib_w_wctype+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-lw $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541
9542 /* Override any gcc2 internal prototype to avoid an error. */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char wctype ();
9549 int
9550 main ()
9551 {
9552 wctype ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_lib_w_wctype=yes
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ac_cv_lib_w_wctype=no
9585 fi
9586 rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LIBS=$ac_check_lib_save_LIBS
9589 fi
9590 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9591 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9592 if test $ac_cv_lib_w_wctype = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_LIBW 1
9595 _ACEOF
9596
9597 LIBS="-lw $LIBS"
9598
9599 fi
9600
9601 fi
9602
9603
9604 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9605 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9606 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9607 if test "${ac_cv_search_gethostbyname+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 ac_func_search_save_LIBS=$LIBS
9611 ac_cv_search_gethostbyname=no
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618
9619 /* Override any gcc2 internal prototype to avoid an error. */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9625 char gethostbyname ();
9626 int
9627 main ()
9628 {
9629 gethostbyname ();
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_gethostbyname="none required"
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 fi
9662 rm -f conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 if test "$ac_cv_search_gethostbyname" = no; then
9665 for ac_lib in nsl; do
9666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673
9674 /* Override any gcc2 internal prototype to avoid an error. */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char gethostbyname ();
9681 int
9682 main ()
9683 {
9684 gethostbyname ();
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_search_gethostbyname="-l$ac_lib"
9712 break
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 fi
9718 rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 done
9721 fi
9722 LIBS=$ac_func_search_save_LIBS
9723 fi
9724 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9725 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9726 if test "$ac_cv_search_gethostbyname" != no; then
9727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9728
9729 fi
9730
9731
9732 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9733 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9734 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9735 if test "${ac_cv_search_socketpair+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_func_search_save_LIBS=$LIBS
9739 ac_cv_search_socketpair=no
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9753 char socketpair ();
9754 int
9755 main ()
9756 {
9757 socketpair ();
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_socketpair="none required"
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 fi
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test "$ac_cv_search_socketpair" = no; then
9793 for ac_lib in socket; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801
9802 /* Override any gcc2 internal prototype to avoid an error. */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char socketpair ();
9809 int
9810 main ()
9811 {
9812 socketpair ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_socketpair="-l$ac_lib"
9840 break
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 fi
9846 rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 done
9849 fi
9850 LIBS=$ac_func_search_save_LIBS
9851 fi
9852 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9853 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9854 if test "$ac_cv_search_socketpair" != no; then
9855 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9856
9857 fi
9858
9859
9860 # Link in zlib if we can. This allows us to read compressed debug sections.
9861 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9862 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9863 if test "${ac_cv_search_zlibVersion+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 ac_func_search_save_LIBS=$LIBS
9867 ac_cv_search_zlibVersion=no
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874
9875 /* Override any gcc2 internal prototype to avoid an error. */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881 char zlibVersion ();
9882 int
9883 main ()
9884 {
9885 zlibVersion ();
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_zlibVersion="none required"
9913 else
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_zlibVersion" = no; then
9921 for ac_lib in z; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char zlibVersion ();
9937 int
9938 main ()
9939 {
9940 zlibVersion ();
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_search_zlibVersion="-l$ac_lib"
9968 break
9969 else
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 fi
9974 rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 done
9977 fi
9978 LIBS=$ac_func_search_save_LIBS
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9981 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9982 if test "$ac_cv_search_zlibVersion" != no; then
9983 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9984
9985 for ac_header in zlib.h
9986 do
9987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 fi
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996 else
9997 # Is the header compilable?
9998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10007 #include <$ac_header>
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_header_compiler=yes
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_header_compiler=no
10037 fi
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10040 echo "${ECHO_T}$ac_header_compiler" >&6
10041
10042 # Is the header present?
10043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #include <$ac_header>
10052 _ACEOF
10053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } >/dev/null; then
10061 if test -s conftest.err; then
10062 ac_cpp_err=$ac_c_preproc_warn_flag
10063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10064 else
10065 ac_cpp_err=
10066 fi
10067 else
10068 ac_cpp_err=yes
10069 fi
10070 if test -z "$ac_cpp_err"; then
10071 ac_header_preproc=yes
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_preproc=no
10077 fi
10078 rm -f conftest.err conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080 echo "${ECHO_T}$ac_header_preproc" >&6
10081
10082 # So? What about this header?
10083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10084 yes:no: )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes
10090 ;;
10091 no:yes:* )
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10104 (
10105 cat <<\_ASBOX
10106 ## ------------------------------------------ ##
10107 ## Report this to the AC_PACKAGE_NAME lists. ##
10108 ## ------------------------------------------ ##
10109 _ASBOX
10110 ) |
10111 sed "s/^/$as_me: WARNING: /" >&2
10112 ;;
10113 esac
10114 echo "$as_me:$LINENO: checking for $ac_header" >&5
10115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 eval "$as_ac_Header=\$ac_header_preproc"
10120 fi
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10123
10124 fi
10125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10128 _ACEOF
10129
10130 fi
10131
10132 done
10133
10134 fi
10135
10136
10137 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10138 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10139 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10140 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 ac_func_search_save_LIBS=$LIBS
10144 ac_cv_search_dlgetmodinfo=no
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151
10152 /* Override any gcc2 internal prototype to avoid an error. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char dlgetmodinfo ();
10159 int
10160 main ()
10161 {
10162 dlgetmodinfo ();
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_search_dlgetmodinfo="none required"
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 fi
10195 rm -f conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 if test "$ac_cv_search_dlgetmodinfo" = no; then
10198 for ac_lib in dl xpdl; do
10199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206
10207 /* Override any gcc2 internal prototype to avoid an error. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10213 char dlgetmodinfo ();
10214 int
10215 main ()
10216 {
10217 dlgetmodinfo ();
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10245 break
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 fi
10251 rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 done
10254 fi
10255 LIBS=$ac_func_search_save_LIBS
10256 fi
10257 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10258 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10259 if test "$ac_cv_search_dlgetmodinfo" != no; then
10260 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10261
10262 fi
10263
10264
10265 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10266 # There is a very specific comment in /usr/include/curses.h explaining that
10267 # termcap routines built into libcurses must not be used.
10268 #
10269 # The symptoms we observed so far is GDB unexpectedly changing
10270 # the terminal settings when tgetent is called - this is particularly
10271 # visible as the output is missing carriage returns, and so rapidly
10272 # becomes very hard to read.
10273 #
10274 # The readline configure script has already decided that libtermcap
10275 # was enough for its purposes, and so decided to build readline using
10276 # libtermcap. Since the TUI mode requires curses, building GDB with
10277 # TUI enabled results in both libraries to be used at the same time,
10278 # which is not allowed. This basically means that GDB with TUI is
10279 # broken on alpha-osf.
10280
10281 case $host_os in
10282 alpha*-*-osf* )
10283 if "$enable_tui" = "yes"; then
10284 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10285 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10286 { (exit 1); exit 1; }; }
10287 fi
10288 if "$enable_tui" = "auto"; then
10289 enable_tui=no
10290 fi
10291 ;;
10292 esac
10293
10294 # Check whether we should enable the TUI, but only do so if we really
10295 # can.
10296 if test x"$enable_tui" != xno; then
10297 if test -d $srcdir/tui; then
10298 # For the TUI, we need enhanced curses functionality.
10299 #
10300 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10301 # curses library because the latter might not provide all the
10302 # functionality we need. However, this leads to problems on systems
10303 # where the linker searches /usr/local/lib, but the compiler doesn't
10304 # search /usr/local/include, if ncurses is installed in /usr/local. A
10305 # default installation of ncurses on alpha*-dec-osf* will lead to such
10306 # a situation.
10307 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10308 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10309 if test "${ac_cv_search_waddstr+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 ac_func_search_save_LIBS=$LIBS
10313 ac_cv_search_waddstr=no
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char waddstr ();
10328 int
10329 main ()
10330 {
10331 waddstr ();
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_search_waddstr="none required"
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 fi
10364 rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test "$ac_cv_search_waddstr" = no; then
10367 for ac_lib in ncurses cursesX curses; do
10368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375
10376 /* Override any gcc2 internal prototype to avoid an error. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10382 char waddstr ();
10383 int
10384 main ()
10385 {
10386 waddstr ();
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_search_waddstr="-l$ac_lib"
10414 break
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 fi
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 done
10423 fi
10424 LIBS=$ac_func_search_save_LIBS
10425 fi
10426 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10427 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10428 if test "$ac_cv_search_waddstr" != no; then
10429 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10430
10431 fi
10432
10433
10434 if test "$ac_cv_search_waddstr" != no; then
10435 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10436 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10437 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10438 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10439 CONFIG_ALL="${CONFIG_ALL} all-tui"
10440 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10441 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10442 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10443 else
10444 if test x"$enable_tui" = xyes; then
10445 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10446 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10447 { (exit 1); exit 1; }; }
10448 else
10449 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10450 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10451 fi
10452 fi
10453 fi
10454 fi
10455
10456 # Since GDB uses Readline, we need termcap functionality. In many
10457 # cases this will be provided by the curses library, but some systems
10458 # have a seperate termcap library, or no curses library at all.
10459
10460 case $host_os in
10461 cygwin*)
10462 if test -d $srcdir/libtermcap; then
10463 LIBS="../libtermcap/libtermcap.a $LIBS"
10464 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10465 fi ;;
10466 go32* | *djgpp*)
10467 ac_cv_search_tgetent="none required"
10468 ;;
10469 *mingw32*)
10470 ac_cv_search_tgetent="none required"
10471 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10472 ;;
10473 esac
10474
10475 # These are the libraries checked by Readline.
10476 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10477 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10478 if test "${ac_cv_search_tgetent+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 ac_func_search_save_LIBS=$LIBS
10482 ac_cv_search_tgetent=no
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489
10490 /* Override any gcc2 internal prototype to avoid an error. */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 /* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496 char tgetent ();
10497 int
10498 main ()
10499 {
10500 tgetent ();
10501 ;
10502 return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_search_tgetent="none required"
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 fi
10533 rm -f conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 if test "$ac_cv_search_tgetent" = no; then
10536 for ac_lib in termcap tinfo curses ncurses; do
10537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h. */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544
10545 /* Override any gcc2 internal prototype to avoid an error. */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10551 char tgetent ();
10552 int
10553 main ()
10554 {
10555 tgetent ();
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_search_tgetent="-l$ac_lib"
10583 break
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 fi
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 done
10592 fi
10593 LIBS=$ac_func_search_save_LIBS
10594 fi
10595 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10596 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10597 if test "$ac_cv_search_tgetent" != no; then
10598 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10599
10600 fi
10601
10602
10603 if test "$ac_cv_search_tgetent" = no; then
10604 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10605 echo "$as_me: error: no termcap library found" >&2;}
10606 { (exit 1); exit 1; }; }
10607 fi
10608
10609
10610 # Check whether --with-system-readline or --without-system-readline was given.
10611 if test "${with_system_readline+set}" = set; then
10612 withval="$with_system_readline"
10613
10614 fi;
10615
10616 if test "$with_system_readline" = yes; then
10617 READLINE=-lreadline
10618 READLINE_DEPS=
10619 READLINE_CFLAGS=
10620 else
10621 READLINE='$(READLINE_DIR)/libreadline.a'
10622 READLINE_DEPS='$(READLINE)'
10623 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10624 fi
10625
10626
10627
10628
10629
10630 # Check whether --with-expat or --without-expat was given.
10631 if test "${with_expat+set}" = set; then
10632 withval="$with_expat"
10633
10634 else
10635 with_expat=auto
10636 fi;
10637 echo "$as_me:$LINENO: checking whether to use expat" >&5
10638 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10639 echo "$as_me:$LINENO: result: $with_expat" >&5
10640 echo "${ECHO_T}$with_expat" >&6
10641
10642 if test "${with_expat}" = no; then
10643 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10644 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10645 HAVE_LIBEXPAT=no
10646 else
10647
10648 if test "X$prefix" = "XNONE"; then
10649 acl_final_prefix="$ac_default_prefix"
10650 else
10651 acl_final_prefix="$prefix"
10652 fi
10653 if test "X$exec_prefix" = "XNONE"; then
10654 acl_final_exec_prefix='${prefix}'
10655 else
10656 acl_final_exec_prefix="$exec_prefix"
10657 fi
10658 acl_save_prefix="$prefix"
10659 prefix="$acl_final_prefix"
10660 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10661 prefix="$acl_save_prefix"
10662
10663
10664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10665 if test "${with_gnu_ld+set}" = set; then
10666 withval="$with_gnu_ld"
10667 test "$withval" = no || with_gnu_ld=yes
10668 else
10669 with_gnu_ld=no
10670 fi;
10671 # Prepare PATH_SEPARATOR.
10672 # The user is always right.
10673 if test "${PATH_SEPARATOR+set}" != set; then
10674 echo "#! /bin/sh" >conf$$.sh
10675 echo "exit 0" >>conf$$.sh
10676 chmod +x conf$$.sh
10677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10678 PATH_SEPARATOR=';'
10679 else
10680 PATH_SEPARATOR=:
10681 fi
10682 rm -f conf$$.sh
10683 fi
10684 ac_prog=ld
10685 if test "$GCC" = yes; then
10686 # Check if gcc -print-prog-name=ld gives a path.
10687 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10688 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10689 case $host in
10690 *-*-mingw*)
10691 # gcc leaves a trailing carriage return which upsets mingw
10692 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10693 *)
10694 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10695 esac
10696 case $ac_prog in
10697 # Accept absolute paths.
10698 [\\/]* | [A-Za-z]:[\\/]*)
10699 re_direlt='/[^/][^/]*/\.\./'
10700 # Canonicalize the path of ld
10701 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10702 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10703 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10704 done
10705 test -z "$LD" && LD="$ac_prog"
10706 ;;
10707 "")
10708 # If it fails, then pretend we aren't using GCC.
10709 ac_prog=ld
10710 ;;
10711 *)
10712 # If it is relative, then search for the first ld in PATH.
10713 with_gnu_ld=unknown
10714 ;;
10715 esac
10716 elif test "$with_gnu_ld" = yes; then
10717 echo "$as_me:$LINENO: checking for GNU ld" >&5
10718 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10719 else
10720 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10721 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10722 fi
10723 if test "${acl_cv_path_LD+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 if test -z "$LD"; then
10727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10728 for ac_dir in $PATH; do
10729 test -z "$ac_dir" && ac_dir=.
10730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10731 acl_cv_path_LD="$ac_dir/$ac_prog"
10732 # Check to see if the program is GNU ld. I'd rather use --version,
10733 # but apparently some GNU ld's only accept -v.
10734 # Break only if it was the GNU/non-GNU ld that we prefer.
10735 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10736 test "$with_gnu_ld" != no && break
10737 else
10738 test "$with_gnu_ld" != yes && break
10739 fi
10740 fi
10741 done
10742 IFS="$ac_save_ifs"
10743 else
10744 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10745 fi
10746 fi
10747
10748 LD="$acl_cv_path_LD"
10749 if test -n "$LD"; then
10750 echo "$as_me:$LINENO: result: $LD" >&5
10751 echo "${ECHO_T}$LD" >&6
10752 else
10753 echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10755 fi
10756 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10757 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10758 { (exit 1); exit 1; }; }
10759 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10760 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10761 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10766 acl_cv_prog_gnu_ld=yes
10767 else
10768 acl_cv_prog_gnu_ld=no
10769 fi
10770 fi
10771 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10772 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10773 with_gnu_ld=$acl_cv_prog_gnu_ld
10774
10775
10776
10777 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10778 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10779 if test "${acl_cv_rpath+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782
10783 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10785 . ./conftest.sh
10786 rm -f ./conftest.sh
10787 acl_cv_rpath=done
10788
10789 fi
10790 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10791 echo "${ECHO_T}$acl_cv_rpath" >&6
10792 wl="$acl_cv_wl"
10793 libext="$acl_cv_libext"
10794 shlibext="$acl_cv_shlibext"
10795 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10796 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10797 hardcode_direct="$acl_cv_hardcode_direct"
10798 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10799 # Check whether --enable-rpath or --disable-rpath was given.
10800 if test "${enable_rpath+set}" = set; then
10801 enableval="$enable_rpath"
10802 :
10803 else
10804 enable_rpath=yes
10805 fi;
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815 use_additional=yes
10816
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10821
10822 eval additional_includedir=\"$includedir\"
10823 eval additional_libdir=\"$libdir\"
10824
10825 exec_prefix="$acl_save_exec_prefix"
10826 prefix="$acl_save_prefix"
10827
10828
10829 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10830 if test "${with_libexpat_prefix+set}" = set; then
10831 withval="$with_libexpat_prefix"
10832
10833 if test "X$withval" = "Xno"; then
10834 use_additional=no
10835 else
10836 if test "X$withval" = "X"; then
10837
10838 acl_save_prefix="$prefix"
10839 prefix="$acl_final_prefix"
10840 acl_save_exec_prefix="$exec_prefix"
10841 exec_prefix="$acl_final_exec_prefix"
10842
10843 eval additional_includedir=\"$includedir\"
10844 eval additional_libdir=\"$libdir\"
10845
10846 exec_prefix="$acl_save_exec_prefix"
10847 prefix="$acl_save_prefix"
10848
10849 else
10850 additional_includedir="$withval/include"
10851 additional_libdir="$withval/lib"
10852 fi
10853 fi
10854
10855 fi;
10856 LIBEXPAT=
10857 LTLIBEXPAT=
10858 INCEXPAT=
10859 rpathdirs=
10860 ltrpathdirs=
10861 names_already_handled=
10862 names_next_round='expat '
10863 while test -n "$names_next_round"; do
10864 names_this_round="$names_next_round"
10865 names_next_round=
10866 for name in $names_this_round; do
10867 already_handled=
10868 for n in $names_already_handled; do
10869 if test "$n" = "$name"; then
10870 already_handled=yes
10871 break
10872 fi
10873 done
10874 if test -z "$already_handled"; then
10875 names_already_handled="$names_already_handled $name"
10876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10877 eval value=\"\$HAVE_LIB$uppername\"
10878 if test -n "$value"; then
10879 if test "$value" = yes; then
10880 eval value=\"\$LIB$uppername\"
10881 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10882 eval value=\"\$LTLIB$uppername\"
10883 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10884 else
10885 :
10886 fi
10887 else
10888 found_dir=
10889 found_la=
10890 found_so=
10891 found_a=
10892 if test $use_additional = yes; then
10893 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10894 found_dir="$additional_libdir"
10895 found_so="$additional_libdir/lib$name.$shlibext"
10896 if test -f "$additional_libdir/lib$name.la"; then
10897 found_la="$additional_libdir/lib$name.la"
10898 fi
10899 else
10900 if test -f "$additional_libdir/lib$name.$libext"; then
10901 found_dir="$additional_libdir"
10902 found_a="$additional_libdir/lib$name.$libext"
10903 if test -f "$additional_libdir/lib$name.la"; then
10904 found_la="$additional_libdir/lib$name.la"
10905 fi
10906 fi
10907 fi
10908 fi
10909 if test "X$found_dir" = "X"; then
10910 for x in $LDFLAGS $LTLIBEXPAT; do
10911
10912 acl_save_prefix="$prefix"
10913 prefix="$acl_final_prefix"
10914 acl_save_exec_prefix="$exec_prefix"
10915 exec_prefix="$acl_final_exec_prefix"
10916 eval x=\"$x\"
10917 exec_prefix="$acl_save_exec_prefix"
10918 prefix="$acl_save_prefix"
10919
10920 case "$x" in
10921 -L*)
10922 dir=`echo "X$x" | sed -e 's/^X-L//'`
10923 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10924 found_dir="$dir"
10925 found_so="$dir/lib$name.$shlibext"
10926 if test -f "$dir/lib$name.la"; then
10927 found_la="$dir/lib$name.la"
10928 fi
10929 else
10930 if test -f "$dir/lib$name.$libext"; then
10931 found_dir="$dir"
10932 found_a="$dir/lib$name.$libext"
10933 if test -f "$dir/lib$name.la"; then
10934 found_la="$dir/lib$name.la"
10935 fi
10936 fi
10937 fi
10938 ;;
10939 esac
10940 if test "X$found_dir" != "X"; then
10941 break
10942 fi
10943 done
10944 fi
10945 if test "X$found_dir" != "X"; then
10946 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
10948 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10949 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10950 else
10951 haveit=
10952 for x in $ltrpathdirs; do
10953 if test "X$x" = "X$found_dir"; then
10954 haveit=yes
10955 break
10956 fi
10957 done
10958 if test -z "$haveit"; then
10959 ltrpathdirs="$ltrpathdirs $found_dir"
10960 fi
10961 if test "$hardcode_direct" = yes; then
10962 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10963 else
10964 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10965 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10966 haveit=
10967 for x in $rpathdirs; do
10968 if test "X$x" = "X$found_dir"; then
10969 haveit=yes
10970 break
10971 fi
10972 done
10973 if test -z "$haveit"; then
10974 rpathdirs="$rpathdirs $found_dir"
10975 fi
10976 else
10977 haveit=
10978 for x in $LDFLAGS $LIBEXPAT; do
10979
10980 acl_save_prefix="$prefix"
10981 prefix="$acl_final_prefix"
10982 acl_save_exec_prefix="$exec_prefix"
10983 exec_prefix="$acl_final_exec_prefix"
10984 eval x=\"$x\"
10985 exec_prefix="$acl_save_exec_prefix"
10986 prefix="$acl_save_prefix"
10987
10988 if test "X$x" = "X-L$found_dir"; then
10989 haveit=yes
10990 break
10991 fi
10992 done
10993 if test -z "$haveit"; then
10994 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10995 fi
10996 if test "$hardcode_minus_L" != no; then
10997 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10998 else
10999 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11000 fi
11001 fi
11002 fi
11003 fi
11004 else
11005 if test "X$found_a" != "X"; then
11006 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11007 else
11008 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11009 fi
11010 fi
11011 additional_includedir=
11012 case "$found_dir" in
11013 */lib | */lib/)
11014 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11015 additional_includedir="$basedir/include"
11016 ;;
11017 esac
11018 if test "X$additional_includedir" != "X"; then
11019 if test "X$additional_includedir" != "X/usr/include"; then
11020 haveit=
11021 if test "X$additional_includedir" = "X/usr/local/include"; then
11022 if test -n "$GCC"; then
11023 case $host_os in
11024 linux*) haveit=yes;;
11025 esac
11026 fi
11027 fi
11028 if test -z "$haveit"; then
11029 for x in $CPPFLAGS $INCEXPAT; do
11030
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11035 eval x=\"$x\"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
11038
11039 if test "X$x" = "X-I$additional_includedir"; then
11040 haveit=yes
11041 break
11042 fi
11043 done
11044 if test -z "$haveit"; then
11045 if test -d "$additional_includedir"; then
11046 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11047 fi
11048 fi
11049 fi
11050 fi
11051 fi
11052 if test -n "$found_la"; then
11053 save_libdir="$libdir"
11054 case "$found_la" in
11055 */* | *\\*) . "$found_la" ;;
11056 *) . "./$found_la" ;;
11057 esac
11058 libdir="$save_libdir"
11059 for dep in $dependency_libs; do
11060 case "$dep" in
11061 -L*)
11062 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11063 if test "X$additional_libdir" != "X/usr/lib"; then
11064 haveit=
11065 if test "X$additional_libdir" = "X/usr/local/lib"; then
11066 if test -n "$GCC"; then
11067 case $host_os in
11068 linux*) haveit=yes;;
11069 esac
11070 fi
11071 fi
11072 if test -z "$haveit"; then
11073 haveit=
11074 for x in $LDFLAGS $LIBEXPAT; do
11075
11076 acl_save_prefix="$prefix"
11077 prefix="$acl_final_prefix"
11078 acl_save_exec_prefix="$exec_prefix"
11079 exec_prefix="$acl_final_exec_prefix"
11080 eval x=\"$x\"
11081 exec_prefix="$acl_save_exec_prefix"
11082 prefix="$acl_save_prefix"
11083
11084 if test "X$x" = "X-L$additional_libdir"; then
11085 haveit=yes
11086 break
11087 fi
11088 done
11089 if test -z "$haveit"; then
11090 if test -d "$additional_libdir"; then
11091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11092 fi
11093 fi
11094 haveit=
11095 for x in $LDFLAGS $LTLIBEXPAT; do
11096
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11101 eval x=\"$x\"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11104
11105 if test "X$x" = "X-L$additional_libdir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 if test -d "$additional_libdir"; then
11112 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11113 fi
11114 fi
11115 fi
11116 fi
11117 ;;
11118 -R*)
11119 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11120 if test "$enable_rpath" != no; then
11121 haveit=
11122 for x in $rpathdirs; do
11123 if test "X$x" = "X$dir"; then
11124 haveit=yes
11125 break
11126 fi
11127 done
11128 if test -z "$haveit"; then
11129 rpathdirs="$rpathdirs $dir"
11130 fi
11131 haveit=
11132 for x in $ltrpathdirs; do
11133 if test "X$x" = "X$dir"; then
11134 haveit=yes
11135 break
11136 fi
11137 done
11138 if test -z "$haveit"; then
11139 ltrpathdirs="$ltrpathdirs $dir"
11140 fi
11141 fi
11142 ;;
11143 -l*)
11144 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11145 ;;
11146 *.la)
11147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11148 ;;
11149 *)
11150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11151 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11152 ;;
11153 esac
11154 done
11155 fi
11156 else
11157 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11158 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11159 fi
11160 fi
11161 fi
11162 done
11163 done
11164 if test "X$rpathdirs" != "X"; then
11165 if test -n "$hardcode_libdir_separator"; then
11166 alldirs=
11167 for found_dir in $rpathdirs; do
11168 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11169 done
11170 acl_save_libdir="$libdir"
11171 libdir="$alldirs"
11172 eval flag=\"$hardcode_libdir_flag_spec\"
11173 libdir="$acl_save_libdir"
11174 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11175 else
11176 for found_dir in $rpathdirs; do
11177 acl_save_libdir="$libdir"
11178 libdir="$found_dir"
11179 eval flag=\"$hardcode_libdir_flag_spec\"
11180 libdir="$acl_save_libdir"
11181 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11182 done
11183 fi
11184 fi
11185 if test "X$ltrpathdirs" != "X"; then
11186 for found_dir in $ltrpathdirs; do
11187 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11188 done
11189 fi
11190
11191
11192 ac_save_CPPFLAGS="$CPPFLAGS"
11193
11194 for element in $INCEXPAT; do
11195 haveit=
11196 for x in $CPPFLAGS; do
11197
11198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11202 eval x=\"$x\"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11205
11206 if test "X$x" = "X$element"; then
11207 haveit=yes
11208 break
11209 fi
11210 done
11211 if test -z "$haveit"; then
11212 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11213 fi
11214 done
11215
11216
11217 echo "$as_me:$LINENO: checking for libexpat" >&5
11218 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11219 if test "${ac_cv_libexpat+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222
11223 ac_save_LIBS="$LIBS"
11224 LIBS="$LIBS $LIBEXPAT"
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include "expat.h"
11232 int
11233 main ()
11234 {
11235 XML_Parser p = XML_ParserCreate (0);
11236 ;
11237 return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_libexpat=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 ac_cv_libexpat=no
11268 fi
11269 rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS="$ac_save_LIBS"
11272
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11275 echo "${ECHO_T}$ac_cv_libexpat" >&6
11276 if test "$ac_cv_libexpat" = yes; then
11277 HAVE_LIBEXPAT=yes
11278
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_LIBEXPAT 1
11281 _ACEOF
11282
11283 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11284 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11285 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11286 echo "${ECHO_T}$LIBEXPAT" >&6
11287 else
11288 HAVE_LIBEXPAT=no
11289 CPPFLAGS="$ac_save_CPPFLAGS"
11290 LIBEXPAT=
11291 LTLIBEXPAT=
11292 fi
11293
11294
11295
11296
11297
11298
11299 if test "$HAVE_LIBEXPAT" != yes; then
11300 if test "$with_expat" = yes; then
11301 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11302 echo "$as_me: error: expat is missing or unusable" >&2;}
11303 { (exit 1); exit 1; }; }
11304 else
11305 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11306 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11307 fi
11308 else
11309 save_LIBS=$LIBS
11310 LIBS="$LIBS $LIBEXPAT"
11311
11312 for ac_func in XML_StopParser
11313 do
11314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315 echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11317 if eval "test \"\${$as_ac_var+set}\" = set"; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11329
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11334
11335 #ifdef __STDC__
11336 # include <limits.h>
11337 #else
11338 # include <assert.h>
11339 #endif
11340
11341 #undef $ac_func
11342
11343 /* Override any gcc2 internal prototype to avoid an error. */
11344 #ifdef __cplusplus
11345 extern "C"
11346 {
11347 #endif
11348 /* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11350 char $ac_func ();
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11355 choke me
11356 #else
11357 char (*f) () = $ac_func;
11358 #endif
11359 #ifdef __cplusplus
11360 }
11361 #endif
11362
11363 int
11364 main ()
11365 {
11366 return f != $ac_func;
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest$ac_exeext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 eval "$as_ac_var=yes"
11394 else
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 eval "$as_ac_var=no"
11399 fi
11400 rm -f conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411 done
11412
11413 LIBS=$save_LIBS
11414 fi
11415 fi
11416
11417
11418
11419
11420 # Check whether --with-python or --without-python was given.
11421 if test "${with_python+set}" = set; then
11422 withval="$with_python"
11423
11424 else
11425 with_python=auto
11426 fi;
11427 echo "$as_me:$LINENO: checking whether to use python" >&5
11428 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11429 echo "$as_me:$LINENO: result: $with_python" >&5
11430 echo "${ECHO_T}$with_python" >&6
11431
11432 if test "${with_python}" = no; then
11433 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11434 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11435 have_libpython=no
11436 else
11437 case "${with_python}" in
11438 yes | auto)
11439 # Leave as empty, use defaults.
11440 python_includes=
11441 python_libs=
11442 ;;
11443 /*)
11444 python_includes="-I${with_python}/include"
11445 python_libs="-L${with_python}/lib"
11446 ;;
11447 *)
11448 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11449 echo "$as_me: error: invalid value for --with-python" >&2;}
11450 { (exit 1); exit 1; }; }
11451 ;;
11452 esac
11453
11454 save_CPPFLAGS=$CPPFLAGS
11455 CPPFLAGS="$CPPFLAGS ${python_includes}"
11456 save_LIBS=$LIBS
11457 LIBS="$LIBS ${python_libs}"
11458 have_libpython=no
11459 if test "${have_libpython}" = no; then
11460
11461 version=python2.6
11462
11463
11464 HAVE_LIBPYTHON2_6=no
11465 echo "$as_me:$LINENO: checking for ${version}" >&5
11466 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11467 save_LIBS=$LIBS
11468 LIBS="$LIBS -l${version}"
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include "${version}/Python.h"
11476 int
11477 main ()
11478 {
11479 Py_Initialize ();
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 HAVE_LIBPYTHON2_6=yes
11507 have_libpython=yes
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 LIBS=$save_LIBS
11513 fi
11514 rm -f conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11517 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11518
11519 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11520
11521 cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_LIBPYTHON2_6 1
11523 _ACEOF
11524
11525 fi
11526 fi
11527 if test ${have_libpython} = no; then
11528
11529 version=python2.5
11530
11531
11532 HAVE_LIBPYTHON2_5=no
11533 echo "$as_me:$LINENO: checking for ${version}" >&5
11534 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11535 save_LIBS=$LIBS
11536 LIBS="$LIBS -l${version}"
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include "${version}/Python.h"
11544 int
11545 main ()
11546 {
11547 Py_Initialize ();
11548 ;
11549 return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag"
11562 || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 HAVE_LIBPYTHON2_5=yes
11575 have_libpython=yes
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 LIBS=$save_LIBS
11581 fi
11582 rm -f conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11585 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11586
11587 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11588
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_LIBPYTHON2_5 1
11591 _ACEOF
11592
11593 fi
11594 fi
11595 if test ${have_libpython} = no; then
11596
11597 version=python2.4
11598
11599
11600 HAVE_LIBPYTHON2_4=no
11601 echo "$as_me:$LINENO: checking for ${version}" >&5
11602 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11603 save_LIBS=$LIBS
11604 LIBS="$LIBS -l${version}"
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include "${version}/Python.h"
11612 int
11613 main ()
11614 {
11615 Py_Initialize ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 HAVE_LIBPYTHON2_4=yes
11643 have_libpython=yes
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 LIBS=$save_LIBS
11649 fi
11650 rm -f conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11653 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11654
11655 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11656
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_LIBPYTHON2_4 1
11659 _ACEOF
11660
11661 fi
11662 fi
11663 if test ${have_libpython} = no; then
11664 case "${with_python}" in
11665 yes)
11666 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11667 echo "$as_me: error: python is missing or unusable" >&2;}
11668 { (exit 1); exit 1; }; }
11669 ;;
11670 auto)
11671 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11672 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11673 ;;
11674 *)
11675 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11676 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11677 { (exit 1); exit 1; }; }
11678 ;;
11679 esac
11680 CPPFLAGS=$save_CPPFLAGS
11681 LIBS=$save_LIBS
11682 fi
11683 fi
11684
11685 if test "${have_libpython}" = yes; then
11686
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_PYTHON 1
11689 _ACEOF
11690
11691 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11692 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11693 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11694 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11695
11696 # Flags needed to compile Python code (taken from python-config --cflags).
11697 # We cannot call python-config directly because it will output whatever was
11698 # used when compiling the Python interpreter itself, including flags which
11699 # would make the python-related objects be compiled differently from the
11700 # rest of GDB (e.g., -O2 and -fPIC).
11701 if test "${GCC}" = yes; then
11702 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11703 fi
11704
11705 if test "x${tentative_python_cflags}" != x; then
11706 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11707 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11708 for flag in ${tentative_python_cflags}; do
11709 # Check that the compiler accepts it
11710 saved_CFLAGS="$CFLAGS"
11711 CFLAGS="$CFLAGS $flag"
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718
11719 int
11720 main ()
11721 {
11722
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 fi
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 CFLAGS="$saved_CFLAGS"
11757 done
11758 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11759 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11760 fi
11761 else
11762 # Even if Python support is not compiled in, we need to have these files
11763 # included in order to recognize the GDB command "python".
11764 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11765 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11766 fi
11767
11768
11769 # ------------------------- #
11770 # Checks for header files. #
11771 # ------------------------- #
11772
11773
11774
11775
11776
11777
11778 ac_header_dirent=no
11779 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11780 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11781 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11782 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <sys/types.h>
11793 #include <$ac_hdr>
11794
11795 int
11796 main ()
11797 {
11798 if ((DIR *) 0)
11799 return 0;
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest.$ac_objext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_Header=yes"
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 eval "$as_ac_Header=no"
11832 fi
11833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11834 fi
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11840 _ACEOF
11841
11842 ac_header_dirent=$ac_hdr; break
11843 fi
11844
11845 done
11846 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11847 if test $ac_header_dirent = dirent.h; then
11848 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11849 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11850 if test "${ac_cv_search_opendir+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 ac_func_search_save_LIBS=$LIBS
11854 ac_cv_search_opendir=no
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868 char opendir ();
11869 int
11870 main ()
11871 {
11872 opendir ();
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_search_opendir="none required"
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 if test "$ac_cv_search_opendir" = no; then
11908 for ac_lib in dir; do
11909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916
11917 /* Override any gcc2 internal prototype to avoid an error. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923 char opendir ();
11924 int
11925 main ()
11926 {
11927 opendir ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
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); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_search_opendir="-l$ac_lib"
11955 break
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 fi
11961 rm -f conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 done
11964 fi
11965 LIBS=$ac_func_search_save_LIBS
11966 fi
11967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11969 if test "$ac_cv_search_opendir" != no; then
11970 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11971
11972 fi
11973
11974 else
11975 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11977 if test "${ac_cv_search_opendir+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 ac_func_search_save_LIBS=$LIBS
11981 ac_cv_search_opendir=no
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988
11989 /* Override any gcc2 internal prototype to avoid an error. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995 char opendir ();
11996 int
11997 main ()
11998 {
11999 opendir ();
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_search_opendir="none required"
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 fi
12032 rm -f conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 if test "$ac_cv_search_opendir" = no; then
12035 for ac_lib in x; do
12036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 /* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12050 char opendir ();
12051 int
12052 main ()
12053 {
12054 opendir ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_search_opendir="-l$ac_lib"
12082 break
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 fi
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 done
12091 fi
12092 LIBS=$ac_func_search_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12095 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12096 if test "$ac_cv_search_opendir" != no; then
12097 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12098
12099 fi
12100
12101 fi
12102
12103 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12104 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12105 if test "${ac_cv_header_stat_broken+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <sys/types.h>
12115 #include <sys/stat.h>
12116
12117 #if defined(S_ISBLK) && defined(S_IFDIR)
12118 # if S_ISBLK (S_IFDIR)
12119 You lose.
12120 # endif
12121 #endif
12122
12123 #if defined(S_ISBLK) && defined(S_IFCHR)
12124 # if S_ISBLK (S_IFCHR)
12125 You lose.
12126 # endif
12127 #endif
12128
12129 #if defined(S_ISLNK) && defined(S_IFREG)
12130 # if S_ISLNK (S_IFREG)
12131 You lose.
12132 # endif
12133 #endif
12134
12135 #if defined(S_ISSOCK) && defined(S_IFREG)
12136 # if S_ISSOCK (S_IFREG)
12137 You lose.
12138 # endif
12139 #endif
12140
12141 _ACEOF
12142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12143 $EGREP "You lose" >/dev/null 2>&1; then
12144 ac_cv_header_stat_broken=yes
12145 else
12146 ac_cv_header_stat_broken=no
12147 fi
12148 rm -f conftest*
12149
12150 fi
12151 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12152 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12153 if test $ac_cv_header_stat_broken = yes; then
12154
12155 cat >>confdefs.h <<\_ACEOF
12156 #define STAT_MACROS_BROKEN 1
12157 _ACEOF
12158
12159 fi
12160
12161 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12163 if test "${ac_cv_header_stdc+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h. */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <stdlib.h>
12173 #include <stdarg.h>
12174 #include <string.h>
12175 #include <float.h>
12176
12177 int
12178 main ()
12179 {
12180
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag"
12195 || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_header_stdc=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_header_stdc=no
12213 fi
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215
12216 if test $ac_cv_header_stdc = yes; then
12217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include <string.h>
12225
12226 _ACEOF
12227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 $EGREP "memchr" >/dev/null 2>&1; then
12229 :
12230 else
12231 ac_cv_header_stdc=no
12232 fi
12233 rm -f conftest*
12234
12235 fi
12236
12237 if test $ac_cv_header_stdc = yes; then
12238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <stdlib.h>
12246
12247 _ACEOF
12248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12249 $EGREP "free" >/dev/null 2>&1; then
12250 :
12251 else
12252 ac_cv_header_stdc=no
12253 fi
12254 rm -f conftest*
12255
12256 fi
12257
12258 if test $ac_cv_header_stdc = yes; then
12259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12260 if test "$cross_compiling" = yes; then
12261 :
12262 else
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h. */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 #include <ctype.h>
12270 #if ((' ' & 0x0FF) == 0x020)
12271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12273 #else
12274 # define ISLOWER(c) \
12275 (('a' <= (c) && (c) <= 'i') \
12276 || ('j' <= (c) && (c) <= 'r') \
12277 || ('s' <= (c) && (c) <= 'z'))
12278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12279 #endif
12280
12281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12282 int
12283 main ()
12284 {
12285 int i;
12286 for (i = 0; i < 256; i++)
12287 if (XOR (islower (i), ISLOWER (i))
12288 || toupper (i) != TOUPPER (i))
12289 exit(2);
12290 exit (0);
12291 }
12292 _ACEOF
12293 rm -f conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 :
12305 else
12306 echo "$as_me: program exited with status $ac_status" >&5
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ( exit $ac_status )
12311 ac_cv_header_stdc=no
12312 fi
12313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12314 fi
12315 fi
12316 fi
12317 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12318 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12319 if test $ac_cv_header_stdc = yes; then
12320
12321 cat >>confdefs.h <<\_ACEOF
12322 #define STDC_HEADERS 1
12323 _ACEOF
12324
12325 fi
12326
12327
12328 for ac_header in nlist.h
12329 do
12330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 fi
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12339 else
12340 # Is the header compilable?
12341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_header_compiler=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6
12384
12385 # Is the header present?
12386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12395 _ACEOF
12396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12409 fi
12410 else
12411 ac_cpp_err=yes
12412 fi
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420 fi
12421 rm -f conftest.err conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6
12424
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12433 ;;
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 (
12448 cat <<\_ASBOX
12449 ## ------------------------------------------ ##
12450 ## Report this to the AC_PACKAGE_NAME lists. ##
12451 ## ------------------------------------------ ##
12452 _ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
12455 ;;
12456 esac
12457 echo "$as_me:$LINENO: checking for $ac_header" >&5
12458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 eval "$as_ac_Header=\$ac_header_preproc"
12463 fi
12464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12466
12467 fi
12468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471 _ACEOF
12472
12473 fi
12474
12475 done
12476
12477
12478 for ac_header in link.h
12479 do
12480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 #if HAVE_SYS_TYPES_H
12493 # include <sys/types.h>
12494 #endif
12495 #if HAVE_NLIST_H
12496 # include <nlist.h>
12497 #endif
12498
12499
12500 #include <$ac_header>
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 eval "$as_ac_Header=yes"
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 eval "$as_ac_Header=no"
12530 fi
12531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12532 fi
12533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12538 _ACEOF
12539
12540 fi
12541
12542 done
12543
12544
12545 for ac_header in machine/reg.h
12546 do
12547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12549 echo "$as_me:$LINENO: checking for $ac_header" >&5
12550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 fi
12554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12556 else
12557 # Is the header compilable?
12558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12567 #include <$ac_header>
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 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); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_header_compiler=yes
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_header_compiler=no
12597 fi
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600 echo "${ECHO_T}$ac_header_compiler" >&6
12601
12602 # Is the header present?
12603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h. */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 #include <$ac_header>
12612 _ACEOF
12613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null; then
12621 if test -s conftest.err; then
12622 ac_cpp_err=$ac_c_preproc_warn_flag
12623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12624 else
12625 ac_cpp_err=
12626 fi
12627 else
12628 ac_cpp_err=yes
12629 fi
12630 if test -z "$ac_cpp_err"; then
12631 ac_header_preproc=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_header_preproc=no
12637 fi
12638 rm -f conftest.err conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12640 echo "${ECHO_T}$ac_header_preproc" >&6
12641
12642 # So? What about this header?
12643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12644 yes:no: )
12645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12649 ac_header_preproc=yes
12650 ;;
12651 no:yes:* )
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12664 (
12665 cat <<\_ASBOX
12666 ## ------------------------------------------ ##
12667 ## Report this to the AC_PACKAGE_NAME lists. ##
12668 ## ------------------------------------------ ##
12669 _ASBOX
12670 ) |
12671 sed "s/^/$as_me: WARNING: /" >&2
12672 ;;
12673 esac
12674 echo "$as_me:$LINENO: checking for $ac_header" >&5
12675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679 eval "$as_ac_Header=\$ac_header_preproc"
12680 fi
12681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12683
12684 fi
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12688 _ACEOF
12689
12690 fi
12691
12692 done
12693
12694
12695
12696 for ac_header in poll.h sys/poll.h
12697 do
12698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo "$as_me:$LINENO: checking for $ac_header" >&5
12701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 fi
12705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12707 else
12708 # Is the header compilable?
12709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 $ac_includes_default
12718 #include <$ac_header>
12719 _ACEOF
12720 rm -f conftest.$ac_objext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_header_compiler=yes
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 ac_header_compiler=no
12748 fi
12749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12751 echo "${ECHO_T}$ac_header_compiler" >&6
12752
12753 # Is the header present?
12754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 #include <$ac_header>
12763 _ACEOF
12764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null; then
12772 if test -s conftest.err; then
12773 ac_cpp_err=$ac_c_preproc_warn_flag
12774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12775 else
12776 ac_cpp_err=
12777 fi
12778 else
12779 ac_cpp_err=yes
12780 fi
12781 if test -z "$ac_cpp_err"; then
12782 ac_header_preproc=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 ac_header_preproc=no
12788 fi
12789 rm -f conftest.err conftest.$ac_ext
12790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6
12792
12793 # So? What about this header?
12794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12795 yes:no: )
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12801 ;;
12802 no:yes:* )
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12815 (
12816 cat <<\_ASBOX
12817 ## ------------------------------------------ ##
12818 ## Report this to the AC_PACKAGE_NAME lists. ##
12819 ## ------------------------------------------ ##
12820 _ASBOX
12821 ) |
12822 sed "s/^/$as_me: WARNING: /" >&2
12823 ;;
12824 esac
12825 echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 eval "$as_ac_Header=\$ac_header_preproc"
12831 fi
12832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12834
12835 fi
12836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12839 _ACEOF
12840
12841 fi
12842
12843 done
12844
12845
12846
12847
12848 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12849 do
12850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12852 echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 fi
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12859 else
12860 # Is the header compilable?
12861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 $ac_includes_default
12870 #include <$ac_header>
12871 _ACEOF
12872 rm -f conftest.$ac_objext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest.$ac_objext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_header_compiler=yes
12895 else
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_header_compiler=no
12900 fi
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12903 echo "${ECHO_T}$ac_header_compiler" >&6
12904
12905 # Is the header present?
12906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 #include <$ac_header>
12915 _ACEOF
12916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12927 else
12928 ac_cpp_err=
12929 fi
12930 else
12931 ac_cpp_err=yes
12932 fi
12933 if test -z "$ac_cpp_err"; then
12934 ac_header_preproc=yes
12935 else
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ac_header_preproc=no
12940 fi
12941 rm -f conftest.err conftest.$ac_ext
12942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943 echo "${ECHO_T}$ac_header_preproc" >&6
12944
12945 # So? What about this header?
12946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12947 yes:no: )
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952 ac_header_preproc=yes
12953 ;;
12954 no:yes:* )
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12967 (
12968 cat <<\_ASBOX
12969 ## ------------------------------------------ ##
12970 ## Report this to the AC_PACKAGE_NAME lists. ##
12971 ## ------------------------------------------ ##
12972 _ASBOX
12973 ) |
12974 sed "s/^/$as_me: WARNING: /" >&2
12975 ;;
12976 esac
12977 echo "$as_me:$LINENO: checking for $ac_header" >&5
12978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 eval "$as_ac_Header=\$ac_header_preproc"
12983 fi
12984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12986
12987 fi
12988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991 _ACEOF
12992
12993 fi
12994
12995 done
12996
12997
12998 for ac_header in signal.h
12999 do
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 fi
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13009 else
13010 # Is the header compilable?
13011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <$ac_header>
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_header_compiler=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 ac_header_compiler=no
13050 fi
13051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053 echo "${ECHO_T}$ac_header_compiler" >&6
13054
13055 # Is the header present?
13056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13058 cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h. */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <$ac_header>
13065 _ACEOF
13066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } >/dev/null; then
13074 if test -s conftest.err; then
13075 ac_cpp_err=$ac_c_preproc_warn_flag
13076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13077 else
13078 ac_cpp_err=
13079 fi
13080 else
13081 ac_cpp_err=yes
13082 fi
13083 if test -z "$ac_cpp_err"; then
13084 ac_header_preproc=yes
13085 else
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_header_preproc=no
13090 fi
13091 rm -f conftest.err conftest.$ac_ext
13092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13093 echo "${ECHO_T}$ac_header_preproc" >&6
13094
13095 # So? What about this header?
13096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13097 yes:no: )
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13102 ac_header_preproc=yes
13103 ;;
13104 no:yes:* )
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13117 (
13118 cat <<\_ASBOX
13119 ## ------------------------------------------ ##
13120 ## Report this to the AC_PACKAGE_NAME lists. ##
13121 ## ------------------------------------------ ##
13122 _ASBOX
13123 ) |
13124 sed "s/^/$as_me: WARNING: /" >&2
13125 ;;
13126 esac
13127 echo "$as_me:$LINENO: checking for $ac_header" >&5
13128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 eval "$as_ac_Header=\$ac_header_preproc"
13133 fi
13134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13136
13137 fi
13138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13139 cat >>confdefs.h <<_ACEOF
13140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13141 _ACEOF
13142
13143 fi
13144
13145 done
13146
13147
13148 for ac_header in stddef.h
13149 do
13150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152 echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 fi
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159 else
13160 # Is the header compilable?
13161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13163 cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h. */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 $ac_includes_default
13170 #include <$ac_header>
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_header_compiler=yes
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 ac_header_compiler=no
13200 fi
13201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203 echo "${ECHO_T}$ac_header_compiler" >&6
13204
13205 # Is the header present?
13206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h. */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 #include <$ac_header>
13215 _ACEOF
13216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null; then
13224 if test -s conftest.err; then
13225 ac_cpp_err=$ac_c_preproc_warn_flag
13226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13227 else
13228 ac_cpp_err=
13229 fi
13230 else
13231 ac_cpp_err=yes
13232 fi
13233 if test -z "$ac_cpp_err"; then
13234 ac_header_preproc=yes
13235 else
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 ac_header_preproc=no
13240 fi
13241 rm -f conftest.err conftest.$ac_ext
13242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13243 echo "${ECHO_T}$ac_header_preproc" >&6
13244
13245 # So? What about this header?
13246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13247 yes:no: )
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13252 ac_header_preproc=yes
13253 ;;
13254 no:yes:* )
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13267 (
13268 cat <<\_ASBOX
13269 ## ------------------------------------------ ##
13270 ## Report this to the AC_PACKAGE_NAME lists. ##
13271 ## ------------------------------------------ ##
13272 _ASBOX
13273 ) |
13274 sed "s/^/$as_me: WARNING: /" >&2
13275 ;;
13276 esac
13277 echo "$as_me:$LINENO: checking for $ac_header" >&5
13278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 eval "$as_ac_Header=\$ac_header_preproc"
13283 fi
13284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13286
13287 fi
13288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13289 cat >>confdefs.h <<_ACEOF
13290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13291 _ACEOF
13292
13293 fi
13294
13295 done
13296
13297
13298 for ac_header in stdlib.h
13299 do
13300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 fi
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13309 else
13310 # Is the header compilable?
13311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <$ac_header>
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_header_compiler=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_header_compiler=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13353 echo "${ECHO_T}$ac_header_compiler" >&6
13354
13355 # Is the header present?
13356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <$ac_header>
13365 _ACEOF
13366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } >/dev/null; then
13374 if test -s conftest.err; then
13375 ac_cpp_err=$ac_c_preproc_warn_flag
13376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13377 else
13378 ac_cpp_err=
13379 fi
13380 else
13381 ac_cpp_err=yes
13382 fi
13383 if test -z "$ac_cpp_err"; then
13384 ac_header_preproc=yes
13385 else
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ac_header_preproc=no
13390 fi
13391 rm -f conftest.err conftest.$ac_ext
13392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393 echo "${ECHO_T}$ac_header_preproc" >&6
13394
13395 # So? What about this header?
13396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13397 yes:no: )
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc=yes
13403 ;;
13404 no:yes:* )
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13417 (
13418 cat <<\_ASBOX
13419 ## ------------------------------------------ ##
13420 ## Report this to the AC_PACKAGE_NAME lists. ##
13421 ## ------------------------------------------ ##
13422 _ASBOX
13423 ) |
13424 sed "s/^/$as_me: WARNING: /" >&2
13425 ;;
13426 esac
13427 echo "$as_me:$LINENO: checking for $ac_header" >&5
13428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 eval "$as_ac_Header=\$ac_header_preproc"
13433 fi
13434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13436
13437 fi
13438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441 _ACEOF
13442
13443 fi
13444
13445 done
13446
13447
13448
13449
13450 for ac_header in string.h memory.h strings.h
13451 do
13452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 fi
13459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13461 else
13462 # Is the header compilable?
13463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 #include <$ac_header>
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_header_compiler=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 ac_header_compiler=no
13502 fi
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6
13506
13507 # Is the header present?
13508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <$ac_header>
13517 _ACEOF
13518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } >/dev/null; then
13526 if test -s conftest.err; then
13527 ac_cpp_err=$ac_c_preproc_warn_flag
13528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13529 else
13530 ac_cpp_err=
13531 fi
13532 else
13533 ac_cpp_err=yes
13534 fi
13535 if test -z "$ac_cpp_err"; then
13536 ac_header_preproc=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_header_preproc=no
13542 fi
13543 rm -f conftest.err conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 echo "${ECHO_T}$ac_header_preproc" >&6
13546
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 yes:no: )
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13555 ;;
13556 no:yes:* )
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13569 (
13570 cat <<\_ASBOX
13571 ## ------------------------------------------ ##
13572 ## Report this to the AC_PACKAGE_NAME lists. ##
13573 ## ------------------------------------------ ##
13574 _ASBOX
13575 ) |
13576 sed "s/^/$as_me: WARNING: /" >&2
13577 ;;
13578 esac
13579 echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 eval "$as_ac_Header=\$ac_header_preproc"
13585 fi
13586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13588
13589 fi
13590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13591 cat >>confdefs.h <<_ACEOF
13592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13593 _ACEOF
13594
13595 fi
13596
13597 done
13598
13599
13600 for ac_header in sys/fault.h
13601 do
13602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13604 echo "$as_me:$LINENO: checking for $ac_header" >&5
13605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 fi
13609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13611 else
13612 # Is the header compilable?
13613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 $ac_includes_default
13622 #include <$ac_header>
13623 _ACEOF
13624 rm -f conftest.$ac_objext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_header_compiler=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 ac_header_compiler=no
13652 fi
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655 echo "${ECHO_T}$ac_header_compiler" >&6
13656
13657 # Is the header present?
13658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <$ac_header>
13667 _ACEOF
13668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } >/dev/null; then
13676 if test -s conftest.err; then
13677 ac_cpp_err=$ac_c_preproc_warn_flag
13678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13679 else
13680 ac_cpp_err=
13681 fi
13682 else
13683 ac_cpp_err=yes
13684 fi
13685 if test -z "$ac_cpp_err"; then
13686 ac_header_preproc=yes
13687 else
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_header_preproc=no
13692 fi
13693 rm -f conftest.err conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13695 echo "${ECHO_T}$ac_header_preproc" >&6
13696
13697 # So? What about this header?
13698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13699 yes:no: )
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13704 ac_header_preproc=yes
13705 ;;
13706 no:yes:* )
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13719 (
13720 cat <<\_ASBOX
13721 ## ------------------------------------------ ##
13722 ## Report this to the AC_PACKAGE_NAME lists. ##
13723 ## ------------------------------------------ ##
13724 _ASBOX
13725 ) |
13726 sed "s/^/$as_me: WARNING: /" >&2
13727 ;;
13728 esac
13729 echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 eval "$as_ac_Header=\$ac_header_preproc"
13735 fi
13736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13738
13739 fi
13740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13743 _ACEOF
13744
13745 fi
13746
13747 done
13748
13749
13750 for ac_header in sys/file.h
13751 do
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 fi
13759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13761 else
13762 # Is the header compilable?
13763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 $ac_includes_default
13772 #include <$ac_header>
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_header_compiler=yes
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_header_compiler=no
13802 fi
13803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 echo "${ECHO_T}$ac_header_compiler" >&6
13806
13807 # Is the header present?
13808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <$ac_header>
13817 _ACEOF
13818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } >/dev/null; then
13826 if test -s conftest.err; then
13827 ac_cpp_err=$ac_c_preproc_warn_flag
13828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13829 else
13830 ac_cpp_err=
13831 fi
13832 else
13833 ac_cpp_err=yes
13834 fi
13835 if test -z "$ac_cpp_err"; then
13836 ac_header_preproc=yes
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_header_preproc=no
13842 fi
13843 rm -f conftest.err conftest.$ac_ext
13844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845 echo "${ECHO_T}$ac_header_preproc" >&6
13846
13847 # So? What about this header?
13848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849 yes:no: )
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854 ac_header_preproc=yes
13855 ;;
13856 no:yes:* )
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13869 (
13870 cat <<\_ASBOX
13871 ## ------------------------------------------ ##
13872 ## Report this to the AC_PACKAGE_NAME lists. ##
13873 ## ------------------------------------------ ##
13874 _ASBOX
13875 ) |
13876 sed "s/^/$as_me: WARNING: /" >&2
13877 ;;
13878 esac
13879 echo "$as_me:$LINENO: checking for $ac_header" >&5
13880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 eval "$as_ac_Header=\$ac_header_preproc"
13885 fi
13886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13888
13889 fi
13890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13891 cat >>confdefs.h <<_ACEOF
13892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13893 _ACEOF
13894
13895 fi
13896
13897 done
13898
13899
13900 for ac_header in sys/filio.h
13901 do
13902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo "$as_me:$LINENO: checking for $ac_header" >&5
13905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 fi
13909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13911 else
13912 # Is the header compilable?
13913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h. */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13922 #include <$ac_header>
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_header_compiler=yes
13947 else
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_header_compiler=no
13952 fi
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955 echo "${ECHO_T}$ac_header_compiler" >&6
13956
13957 # Is the header present?
13958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include <$ac_header>
13967 _ACEOF
13968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null; then
13976 if test -s conftest.err; then
13977 ac_cpp_err=$ac_c_preproc_warn_flag
13978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13979 else
13980 ac_cpp_err=
13981 fi
13982 else
13983 ac_cpp_err=yes
13984 fi
13985 if test -z "$ac_cpp_err"; then
13986 ac_header_preproc=yes
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991 ac_header_preproc=no
13992 fi
13993 rm -f conftest.err conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13996
13997 # So? What about this header?
13998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13999 yes:no: )
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14004 ac_header_preproc=yes
14005 ;;
14006 no:yes:* )
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14019 (
14020 cat <<\_ASBOX
14021 ## ------------------------------------------ ##
14022 ## Report this to the AC_PACKAGE_NAME lists. ##
14023 ## ------------------------------------------ ##
14024 _ASBOX
14025 ) |
14026 sed "s/^/$as_me: WARNING: /" >&2
14027 ;;
14028 esac
14029 echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034 eval "$as_ac_Header=\$ac_header_preproc"
14035 fi
14036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14038
14039 fi
14040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14043 _ACEOF
14044
14045 fi
14046
14047 done
14048
14049
14050 for ac_header in sys/ioctl.h
14051 do
14052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 fi
14059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14061 else
14062 # Is the header compilable?
14063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 $ac_includes_default
14072 #include <$ac_header>
14073 _ACEOF
14074 rm -f conftest.$ac_objext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag"
14084 || test ! -s conftest.err'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_header_compiler=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101 ac_header_compiler=no
14102 fi
14103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105 echo "${ECHO_T}$ac_header_compiler" >&6
14106
14107 # Is the header present?
14108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 #include <$ac_header>
14117 _ACEOF
14118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } >/dev/null; then
14126 if test -s conftest.err; then
14127 ac_cpp_err=$ac_c_preproc_warn_flag
14128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14129 else
14130 ac_cpp_err=
14131 fi
14132 else
14133 ac_cpp_err=yes
14134 fi
14135 if test -z "$ac_cpp_err"; then
14136 ac_header_preproc=yes
14137 else
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141 ac_header_preproc=no
14142 fi
14143 rm -f conftest.err conftest.$ac_ext
14144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14145 echo "${ECHO_T}$ac_header_preproc" >&6
14146
14147 # So? What about this header?
14148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14149 yes:no: )
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14154 ac_header_preproc=yes
14155 ;;
14156 no:yes:* )
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14169 (
14170 cat <<\_ASBOX
14171 ## ------------------------------------------ ##
14172 ## Report this to the AC_PACKAGE_NAME lists. ##
14173 ## ------------------------------------------ ##
14174 _ASBOX
14175 ) |
14176 sed "s/^/$as_me: WARNING: /" >&2
14177 ;;
14178 esac
14179 echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 eval "$as_ac_Header=\$ac_header_preproc"
14185 fi
14186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14188
14189 fi
14190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14191 cat >>confdefs.h <<_ACEOF
14192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14193 _ACEOF
14194
14195 fi
14196
14197 done
14198
14199
14200 for ac_header in sys/param.h
14201 do
14202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14204 echo "$as_me:$LINENO: checking for $ac_header" >&5
14205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 fi
14209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14211 else
14212 # Is the header compilable?
14213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 $ac_includes_default
14222 #include <$ac_header>
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_header_compiler=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_header_compiler=no
14252 fi
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14255 echo "${ECHO_T}$ac_header_compiler" >&6
14256
14257 # Is the header present?
14258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <$ac_header>
14267 _ACEOF
14268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } >/dev/null; then
14276 if test -s conftest.err; then
14277 ac_cpp_err=$ac_c_preproc_warn_flag
14278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14279 else
14280 ac_cpp_err=
14281 fi
14282 else
14283 ac_cpp_err=yes
14284 fi
14285 if test -z "$ac_cpp_err"; then
14286 ac_header_preproc=yes
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291 ac_header_preproc=no
14292 fi
14293 rm -f conftest.err conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6
14296
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14299 yes:no: )
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc=yes
14305 ;;
14306 no:yes:* )
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14319 (
14320 cat <<\_ASBOX
14321 ## ------------------------------------------ ##
14322 ## Report this to the AC_PACKAGE_NAME lists. ##
14323 ## ------------------------------------------ ##
14324 _ASBOX
14325 ) |
14326 sed "s/^/$as_me: WARNING: /" >&2
14327 ;;
14328 esac
14329 echo "$as_me:$LINENO: checking for $ac_header" >&5
14330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 eval "$as_ac_Header=\$ac_header_preproc"
14335 fi
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338
14339 fi
14340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 _ACEOF
14344
14345 fi
14346
14347 done
14348
14349
14350 for ac_header in sys/resource.h
14351 do
14352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14354 echo "$as_me:$LINENO: checking for $ac_header" >&5
14355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 fi
14359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14361 else
14362 # Is the header compilable?
14363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <$ac_header>
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_header_compiler=yes
14397 else
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 ac_header_compiler=no
14402 fi
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 echo "${ECHO_T}$ac_header_compiler" >&6
14406
14407 # Is the header present?
14408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <$ac_header>
14417 _ACEOF
14418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null; then
14426 if test -s conftest.err; then
14427 ac_cpp_err=$ac_c_preproc_warn_flag
14428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14429 else
14430 ac_cpp_err=
14431 fi
14432 else
14433 ac_cpp_err=yes
14434 fi
14435 if test -z "$ac_cpp_err"; then
14436 ac_header_preproc=yes
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14440
14441 ac_header_preproc=no
14442 fi
14443 rm -f conftest.err conftest.$ac_ext
14444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 echo "${ECHO_T}$ac_header_preproc" >&6
14446
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449 yes:no: )
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14455 ;;
14456 no:yes:* )
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14469 (
14470 cat <<\_ASBOX
14471 ## ------------------------------------------ ##
14472 ## Report this to the AC_PACKAGE_NAME lists. ##
14473 ## ------------------------------------------ ##
14474 _ASBOX
14475 ) |
14476 sed "s/^/$as_me: WARNING: /" >&2
14477 ;;
14478 esac
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 eval "$as_ac_Header=\$ac_header_preproc"
14485 fi
14486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14488
14489 fi
14490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491 cat >>confdefs.h <<_ACEOF
14492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14493 _ACEOF
14494
14495 fi
14496
14497 done
14498
14499
14500 for ac_header in sys/proc.h
14501 do
14502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503 echo "$as_me:$LINENO: checking for $ac_header" >&5
14504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 #if HAVE_SYS_PARAM_H
14515 # include <sys/param.h>
14516 #endif
14517
14518
14519 #include <$ac_header>
14520 _ACEOF
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$as_ac_Header=yes"
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 eval "$as_ac_Header=no"
14549 fi
14550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14551 fi
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14557 _ACEOF
14558
14559 fi
14560
14561 done
14562
14563
14564 for ac_header in sys/procfs.h
14565 do
14566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 fi
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14575 else
14576 # Is the header compilable?
14577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 #include <$ac_header>
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_header_compiler=yes
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_header_compiler=no
14616 fi
14617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14619 echo "${ECHO_T}$ac_header_compiler" >&6
14620
14621 # Is the header present?
14622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h. */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <$ac_header>
14631 _ACEOF
14632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev/null; then
14640 if test -s conftest.err; then
14641 ac_cpp_err=$ac_c_preproc_warn_flag
14642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14643 else
14644 ac_cpp_err=
14645 fi
14646 else
14647 ac_cpp_err=yes
14648 fi
14649 if test -z "$ac_cpp_err"; then
14650 ac_header_preproc=yes
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655 ac_header_preproc=no
14656 fi
14657 rm -f conftest.err conftest.$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6
14660
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14663 yes:no: )
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc=yes
14669 ;;
14670 no:yes:* )
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14683 (
14684 cat <<\_ASBOX
14685 ## ------------------------------------------ ##
14686 ## Report this to the AC_PACKAGE_NAME lists. ##
14687 ## ------------------------------------------ ##
14688 _ASBOX
14689 ) |
14690 sed "s/^/$as_me: WARNING: /" >&2
14691 ;;
14692 esac
14693 echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 eval "$as_ac_Header=\$ac_header_preproc"
14699 fi
14700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14702
14703 fi
14704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707 _ACEOF
14708
14709 fi
14710
14711 done
14712
14713
14714
14715 for ac_header in sys/ptrace.h ptrace.h
14716 do
14717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 fi
14724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14726 else
14727 # Is the header compilable?
14728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 $ac_includes_default
14737 #include <$ac_header>
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_header_compiler=no
14767 fi
14768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770 echo "${ECHO_T}$ac_header_compiler" >&6
14771
14772 # Is the header present?
14773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 #include <$ac_header>
14782 _ACEOF
14783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14794 else
14795 ac_cpp_err=
14796 fi
14797 else
14798 ac_cpp_err=yes
14799 fi
14800 if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_header_preproc=no
14807 fi
14808 rm -f conftest.err conftest.$ac_ext
14809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810 echo "${ECHO_T}$ac_header_preproc" >&6
14811
14812 # So? What about this header?
14813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14814 yes:no: )
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
14820 ;;
14821 no:yes:* )
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14834 (
14835 cat <<\_ASBOX
14836 ## ------------------------------------------ ##
14837 ## Report this to the AC_PACKAGE_NAME lists. ##
14838 ## ------------------------------------------ ##
14839 _ASBOX
14840 ) |
14841 sed "s/^/$as_me: WARNING: /" >&2
14842 ;;
14843 esac
14844 echo "$as_me:$LINENO: checking for $ac_header" >&5
14845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 eval "$as_ac_Header=\$ac_header_preproc"
14850 fi
14851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14853
14854 fi
14855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858 _ACEOF
14859
14860 fi
14861
14862 done
14863
14864
14865
14866 for ac_header in sys/reg.h sys/debugreg.h
14867 do
14868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo "$as_me:$LINENO: checking for $ac_header" >&5
14871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 fi
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14877 else
14878 # Is the header compilable?
14879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14888 #include <$ac_header>
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag"
14900 || test ! -s conftest.err'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14913 else
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 ac_header_compiler=no
14918 fi
14919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14922
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <$ac_header>
14933 _ACEOF
14934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } >/dev/null; then
14942 if test -s conftest.err; then
14943 ac_cpp_err=$ac_c_preproc_warn_flag
14944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14945 else
14946 ac_cpp_err=
14947 fi
14948 else
14949 ac_cpp_err=yes
14950 fi
14951 if test -z "$ac_cpp_err"; then
14952 ac_header_preproc=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 ac_header_preproc=no
14958 fi
14959 rm -f conftest.err conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961 echo "${ECHO_T}$ac_header_preproc" >&6
14962
14963 # So? What about this header?
14964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965 yes:no: )
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14970 ac_header_preproc=yes
14971 ;;
14972 no:yes:* )
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14985 (
14986 cat <<\_ASBOX
14987 ## ------------------------------------------ ##
14988 ## Report this to the AC_PACKAGE_NAME lists. ##
14989 ## ------------------------------------------ ##
14990 _ASBOX
14991 ) |
14992 sed "s/^/$as_me: WARNING: /" >&2
14993 ;;
14994 esac
14995 echo "$as_me:$LINENO: checking for $ac_header" >&5
14996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 eval "$as_ac_Header=\$ac_header_preproc"
15001 fi
15002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15004
15005 fi
15006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15009 _ACEOF
15010
15011 fi
15012
15013 done
15014
15015
15016 for ac_header in sys/select.h
15017 do
15018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo "$as_me:$LINENO: checking for $ac_header" >&5
15021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 fi
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15027 else
15028 # Is the header compilable?
15029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 #include <$ac_header>
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_header_compiler=no
15068 fi
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15072
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <$ac_header>
15083 _ACEOF
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15095 else
15096 ac_cpp_err=
15097 fi
15098 else
15099 ac_cpp_err=yes
15100 fi
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_header_preproc=no
15108 fi
15109 rm -f conftest.err conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15112
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15121 ;;
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15135 (
15136 cat <<\_ASBOX
15137 ## ------------------------------------------ ##
15138 ## Report this to the AC_PACKAGE_NAME lists. ##
15139 ## ------------------------------------------ ##
15140 _ASBOX
15141 ) |
15142 sed "s/^/$as_me: WARNING: /" >&2
15143 ;;
15144 esac
15145 echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 eval "$as_ac_Header=\$ac_header_preproc"
15151 fi
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154
15155 fi
15156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159 _ACEOF
15160
15161 fi
15162
15163 done
15164
15165
15166 for ac_header in sys/syscall.h
15167 do
15168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15170 echo "$as_me:$LINENO: checking for $ac_header" >&5
15171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 fi
15175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15177 else
15178 # Is the header compilable?
15179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15188 #include <$ac_header>
15189 _ACEOF
15190 rm -f conftest.$ac_objext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag"
15200 || test ! -s conftest.err'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_header_compiler=yes
15213 else
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 ac_header_compiler=no
15218 fi
15219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15221 echo "${ECHO_T}$ac_header_compiler" >&6
15222
15223 # Is the header present?
15224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <$ac_header>
15233 _ACEOF
15234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev/null; then
15242 if test -s conftest.err; then
15243 ac_cpp_err=$ac_c_preproc_warn_flag
15244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15245 else
15246 ac_cpp_err=
15247 fi
15248 else
15249 ac_cpp_err=yes
15250 fi
15251 if test -z "$ac_cpp_err"; then
15252 ac_header_preproc=yes
15253 else
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257 ac_header_preproc=no
15258 fi
15259 rm -f conftest.err conftest.$ac_ext
15260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15261 echo "${ECHO_T}$ac_header_preproc" >&6
15262
15263 # So? What about this header?
15264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15265 yes:no: )
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15270 ac_header_preproc=yes
15271 ;;
15272 no:yes:* )
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15285 (
15286 cat <<\_ASBOX
15287 ## ------------------------------------------ ##
15288 ## Report this to the AC_PACKAGE_NAME lists. ##
15289 ## ------------------------------------------ ##
15290 _ASBOX
15291 ) |
15292 sed "s/^/$as_me: WARNING: /" >&2
15293 ;;
15294 esac
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300 eval "$as_ac_Header=\$ac_header_preproc"
15301 fi
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15304
15305 fi
15306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15309 _ACEOF
15310
15311 fi
15312
15313 done
15314
15315
15316 for ac_header in sys/types.h
15317 do
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 fi
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15327 else
15328 # Is the header compilable?
15329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_header_compiler=yes
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367 ac_header_compiler=no
15368 fi
15369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371 echo "${ECHO_T}$ac_header_compiler" >&6
15372
15373 # Is the header present?
15374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <$ac_header>
15383 _ACEOF
15384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } >/dev/null; then
15392 if test -s conftest.err; then
15393 ac_cpp_err=$ac_c_preproc_warn_flag
15394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15395 else
15396 ac_cpp_err=
15397 fi
15398 else
15399 ac_cpp_err=yes
15400 fi
15401 if test -z "$ac_cpp_err"; then
15402 ac_header_preproc=yes
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407 ac_header_preproc=no
15408 fi
15409 rm -f conftest.err conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411 echo "${ECHO_T}$ac_header_preproc" >&6
15412
15413 # So? What about this header?
15414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415 yes:no: )
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15420 ac_header_preproc=yes
15421 ;;
15422 no:yes:* )
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15435 (
15436 cat <<\_ASBOX
15437 ## ------------------------------------------ ##
15438 ## Report this to the AC_PACKAGE_NAME lists. ##
15439 ## ------------------------------------------ ##
15440 _ASBOX
15441 ) |
15442 sed "s/^/$as_me: WARNING: /" >&2
15443 ;;
15444 esac
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450 eval "$as_ac_Header=\$ac_header_preproc"
15451 fi
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15454
15455 fi
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15459 _ACEOF
15460
15461 fi
15462
15463 done
15464
15465
15466 for ac_header in sys/user.h
15467 do
15468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469 echo "$as_me:$LINENO: checking for $ac_header" >&5
15470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #if HAVE_SYS_PARAM_H
15481 # include <sys/param.h>
15482 #endif
15483
15484
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 eval "$as_ac_Header=yes"
15510 else
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 eval "$as_ac_Header=no"
15515 fi
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 fi
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15523 _ACEOF
15524
15525 fi
15526
15527 done
15528
15529
15530
15531 for ac_header in sys/wait.h wait.h
15532 do
15533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 fi
15540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15542 else
15543 # Is the header compilable?
15544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 #include <$ac_header>
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag"
15565 || test ! -s conftest.err'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_compiler=no
15583 fi
15584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6
15587
15588 # Is the header present?
15589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h. */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <$ac_header>
15598 _ACEOF
15599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev/null; then
15607 if test -s conftest.err; then
15608 ac_cpp_err=$ac_c_preproc_warn_flag
15609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15610 else
15611 ac_cpp_err=
15612 fi
15613 else
15614 ac_cpp_err=yes
15615 fi
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_header_preproc=no
15623 fi
15624 rm -f conftest.err conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6
15627
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630 yes:no: )
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15636 ;;
15637 no:yes:* )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15650 (
15651 cat <<\_ASBOX
15652 ## ------------------------------------------ ##
15653 ## Report this to the AC_PACKAGE_NAME lists. ##
15654 ## ------------------------------------------ ##
15655 _ASBOX
15656 ) |
15657 sed "s/^/$as_me: WARNING: /" >&2
15658 ;;
15659 esac
15660 echo "$as_me:$LINENO: checking for $ac_header" >&5
15661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 eval "$as_ac_Header=\$ac_header_preproc"
15666 fi
15667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15669
15670 fi
15671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15674 _ACEOF
15675
15676 fi
15677
15678 done
15679
15680
15681
15682
15683 for ac_header in termios.h termio.h sgtty.h
15684 do
15685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15687 echo "$as_me:$LINENO: checking for $ac_header" >&5
15688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 fi
15692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15694 else
15695 # Is the header compilable?
15696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 $ac_includes_default
15705 #include <$ac_header>
15706 _ACEOF
15707 rm -f conftest.$ac_objext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709 (eval $ac_compile) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15730 else
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 ac_header_compiler=no
15735 fi
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15738 echo "${ECHO_T}$ac_header_compiler" >&6
15739
15740 # Is the header present?
15741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #include <$ac_header>
15750 _ACEOF
15751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } >/dev/null; then
15759 if test -s conftest.err; then
15760 ac_cpp_err=$ac_c_preproc_warn_flag
15761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15762 else
15763 ac_cpp_err=
15764 fi
15765 else
15766 ac_cpp_err=yes
15767 fi
15768 if test -z "$ac_cpp_err"; then
15769 ac_header_preproc=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_preproc=no
15775 fi
15776 rm -f conftest.err conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6
15779
15780 # So? What about this header?
15781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782 yes:no: )
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15788 ;;
15789 no:yes:* )
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15802 (
15803 cat <<\_ASBOX
15804 ## ------------------------------------------ ##
15805 ## Report this to the AC_PACKAGE_NAME lists. ##
15806 ## ------------------------------------------ ##
15807 _ASBOX
15808 ) |
15809 sed "s/^/$as_me: WARNING: /" >&2
15810 ;;
15811 esac
15812 echo "$as_me:$LINENO: checking for $ac_header" >&5
15813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 eval "$as_ac_Header=\$ac_header_preproc"
15818 fi
15819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15821
15822 fi
15823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15826 _ACEOF
15827
15828 fi
15829
15830 done
15831
15832
15833 for ac_header in unistd.h
15834 do
15835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15837 echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 fi
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15844 else
15845 # Is the header compilable?
15846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 $ac_includes_default
15855 #include <$ac_header>
15856 _ACEOF
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884 ac_header_compiler=no
15885 fi
15886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888 echo "${ECHO_T}$ac_header_compiler" >&6
15889
15890 # Is the header present?
15891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
15900 _ACEOF
15901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15912 else
15913 ac_cpp_err=
15914 fi
15915 else
15916 ac_cpp_err=yes
15917 fi
15918 if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_preproc=no
15925 fi
15926 rm -f conftest.err conftest.$ac_ext
15927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6
15929
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15938 ;;
15939 no:yes:* )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952 (
15953 cat <<\_ASBOX
15954 ## ------------------------------------------ ##
15955 ## Report this to the AC_PACKAGE_NAME lists. ##
15956 ## ------------------------------------------ ##
15957 _ASBOX
15958 ) |
15959 sed "s/^/$as_me: WARNING: /" >&2
15960 ;;
15961 esac
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967 eval "$as_ac_Header=\$ac_header_preproc"
15968 fi
15969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15971
15972 fi
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976 _ACEOF
15977
15978 fi
15979
15980 done
15981
15982
15983 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15984 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15985 # think that we don't have <curses.h> if we're using GCC.
15986 case $host_os in
15987 solaris2.[789])
15988 if test "$GCC" = yes; then
15989
15990 cat >>confdefs.h <<\_ACEOF
15991 #define _MSE_INT_H 1
15992 _ACEOF
15993
15994 fi ;;
15995 esac
15996
15997
15998
15999
16000 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
16001 do
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 fi
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16011 else
16012 # Is the header compilable?
16013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 $ac_includes_default
16022 #include <$ac_header>
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler=yes
16047 else
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_header_compiler=no
16052 fi
16053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6
16056
16057 # Is the header present?
16058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <$ac_header>
16067 _ACEOF
16068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079 else
16080 ac_cpp_err=
16081 fi
16082 else
16083 ac_cpp_err=yes
16084 fi
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092 fi
16093 rm -f conftest.err conftest.$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6
16096
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 yes:no: )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16105 ;;
16106 no:yes:* )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 (
16120 cat <<\_ASBOX
16121 ## ------------------------------------------ ##
16122 ## Report this to the AC_PACKAGE_NAME lists. ##
16123 ## ------------------------------------------ ##
16124 _ASBOX
16125 ) |
16126 sed "s/^/$as_me: WARNING: /" >&2
16127 ;;
16128 esac
16129 echo "$as_me:$LINENO: checking for $ac_header" >&5
16130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134 eval "$as_ac_Header=\$ac_header_preproc"
16135 fi
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16138
16139 fi
16140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16143 _ACEOF
16144
16145 fi
16146
16147 done
16148
16149
16150 for ac_header in ncurses/term.h
16151 do
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154 echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 fi
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161 else
16162 # Is the header compilable?
16163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h. */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 $ac_includes_default
16172 #include <$ac_header>
16173 _ACEOF
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_header_compiler=yes
16197 else
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201 ac_header_compiler=no
16202 fi
16203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205 echo "${ECHO_T}$ac_header_compiler" >&6
16206
16207 # Is the header present?
16208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h. */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 #include <$ac_header>
16217 _ACEOF
16218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null; then
16226 if test -s conftest.err; then
16227 ac_cpp_err=$ac_c_preproc_warn_flag
16228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16229 else
16230 ac_cpp_err=
16231 fi
16232 else
16233 ac_cpp_err=yes
16234 fi
16235 if test -z "$ac_cpp_err"; then
16236 ac_header_preproc=yes
16237 else
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241 ac_header_preproc=no
16242 fi
16243 rm -f conftest.err conftest.$ac_ext
16244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245 echo "${ECHO_T}$ac_header_preproc" >&6
16246
16247 # So? What about this header?
16248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249 yes:no: )
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16255 ;;
16256 no:yes:* )
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269 (
16270 cat <<\_ASBOX
16271 ## ------------------------------------------ ##
16272 ## Report this to the AC_PACKAGE_NAME lists. ##
16273 ## ------------------------------------------ ##
16274 _ASBOX
16275 ) |
16276 sed "s/^/$as_me: WARNING: /" >&2
16277 ;;
16278 esac
16279 echo "$as_me:$LINENO: checking for $ac_header" >&5
16280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284 eval "$as_ac_Header=\$ac_header_preproc"
16285 fi
16286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16288
16289 fi
16290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16293 _ACEOF
16294
16295 fi
16296
16297 done
16298
16299
16300 for ac_header in term.h
16301 do
16302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16303 echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308 cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h. */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 #if HAVE_CURSES_H
16315 # include <curses.h>
16316 #endif
16317
16318
16319 #include <$ac_header>
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 eval "$as_ac_Header=yes"
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 eval "$as_ac_Header=no"
16349 fi
16350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357 _ACEOF
16358
16359 fi
16360
16361 done
16362
16363
16364 # Check for HP/UX 64-bit shared library support
16365
16366 for ac_header in elf_hp.h
16367 do
16368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo "$as_me:$LINENO: checking for $ac_header" >&5
16371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 fi
16375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377 else
16378 # Is the header compilable?
16379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 #include <$ac_header>
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16413 else
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_header_compiler=no
16418 fi
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421 echo "${ECHO_T}$ac_header_compiler" >&6
16422
16423 # Is the header present?
16424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <$ac_header>
16433 _ACEOF
16434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16435 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16442 if test -s conftest.err; then
16443 ac_cpp_err=$ac_c_preproc_warn_flag
16444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16445 else
16446 ac_cpp_err=
16447 fi
16448 else
16449 ac_cpp_err=yes
16450 fi
16451 if test -z "$ac_cpp_err"; then
16452 ac_header_preproc=yes
16453 else
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ac_header_preproc=no
16458 fi
16459 rm -f conftest.err conftest.$ac_ext
16460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461 echo "${ECHO_T}$ac_header_preproc" >&6
16462
16463 # So? What about this header?
16464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16465 yes:no: )
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470 ac_header_preproc=yes
16471 ;;
16472 no:yes:* )
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16485 (
16486 cat <<\_ASBOX
16487 ## ------------------------------------------ ##
16488 ## Report this to the AC_PACKAGE_NAME lists. ##
16489 ## ------------------------------------------ ##
16490 _ASBOX
16491 ) |
16492 sed "s/^/$as_me: WARNING: /" >&2
16493 ;;
16494 esac
16495 echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500 eval "$as_ac_Header=\$ac_header_preproc"
16501 fi
16502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504
16505 fi
16506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16509 _ACEOF
16510
16511 fi
16512
16513 done
16514
16515
16516 # FIXME: kettenis/20030102: In most cases we include these
16517 # unconditionally, so what's the point in checking these?
16518
16519
16520 for ac_header in ctype.h time.h
16521 do
16522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 fi
16529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16531 else
16532 # Is the header compilable?
16533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h. */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <$ac_header>
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 ac_header_compiler=no
16572 fi
16573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16576
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <$ac_header>
16587 _ACEOF
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 else
16600 ac_cpp_err=
16601 fi
16602 else
16603 ac_cpp_err=yes
16604 fi
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_header_preproc=no
16612 fi
16613 rm -f conftest.err conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16616
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 yes:no: )
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc=yes
16625 ;;
16626 no:yes:* )
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16639 (
16640 cat <<\_ASBOX
16641 ## ------------------------------------------ ##
16642 ## Report this to the AC_PACKAGE_NAME lists. ##
16643 ## ------------------------------------------ ##
16644 _ASBOX
16645 ) |
16646 sed "s/^/$as_me: WARNING: /" >&2
16647 ;;
16648 esac
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 eval "$as_ac_Header=\$ac_header_preproc"
16655 fi
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658
16659 fi
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16663 _ACEOF
16664
16665 fi
16666
16667 done
16668
16669
16670 # ------------------------- #
16671 # Checks for declarations. #
16672 # ------------------------- #
16673
16674 echo "$as_me:$LINENO: checking whether free is declared" >&5
16675 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16676 if test "${ac_cv_have_decl_free+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16686 int
16687 main ()
16688 {
16689 #ifndef free
16690 char *p = (char *) free;
16691 #endif
16692
16693 ;
16694 return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag"
16707 || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_have_decl_free=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_cv_have_decl_free=no
16725 fi
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16727 fi
16728 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16729 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16730 if test $ac_cv_have_decl_free = yes; then
16731
16732 cat >>confdefs.h <<_ACEOF
16733 #define HAVE_DECL_FREE 1
16734 _ACEOF
16735
16736
16737 else
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_DECL_FREE 0
16740 _ACEOF
16741
16742
16743 fi
16744 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16745 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16746 if test "${ac_cv_have_decl_malloc+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 int
16757 main ()
16758 {
16759 #ifndef malloc
16760 char *p = (char *) malloc;
16761 #endif
16762
16763 ;
16764 return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_have_decl_malloc=yes
16790 else
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 ac_cv_have_decl_malloc=no
16795 fi
16796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16797 fi
16798 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16799 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16800 if test $ac_cv_have_decl_malloc = yes; then
16801
16802 cat >>confdefs.h <<_ACEOF
16803 #define HAVE_DECL_MALLOC 1
16804 _ACEOF
16805
16806
16807 else
16808 cat >>confdefs.h <<_ACEOF
16809 #define HAVE_DECL_MALLOC 0
16810 _ACEOF
16811
16812
16813 fi
16814 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16815 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16816 if test "${ac_cv_have_decl_realloc+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 int
16827 main ()
16828 {
16829 #ifndef realloc
16830 char *p = (char *) realloc;
16831 #endif
16832
16833 ;
16834 return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_have_decl_realloc=yes
16860 else
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ac_cv_have_decl_realloc=no
16865 fi
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867 fi
16868 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16869 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16870 if test $ac_cv_have_decl_realloc = yes; then
16871
16872 cat >>confdefs.h <<_ACEOF
16873 #define HAVE_DECL_REALLOC 1
16874 _ACEOF
16875
16876
16877 else
16878 cat >>confdefs.h <<_ACEOF
16879 #define HAVE_DECL_REALLOC 0
16880 _ACEOF
16881
16882
16883 fi
16884
16885
16886 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16887 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16888 if test "${ac_cv_have_decl_strerror+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 $ac_includes_default
16898 int
16899 main ()
16900 {
16901 #ifndef strerror
16902 char *p = (char *) strerror;
16903 #endif
16904
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_have_decl_strerror=yes
16932 else
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_cv_have_decl_strerror=no
16937 fi
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16941 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16942 if test $ac_cv_have_decl_strerror = yes; then
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_DECL_STRERROR 1
16946 _ACEOF
16947
16948
16949 else
16950 cat >>confdefs.h <<_ACEOF
16951 #define HAVE_DECL_STRERROR 0
16952 _ACEOF
16953
16954
16955 fi
16956 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16957 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16958 if test "${ac_cv_have_decl_strstr+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h. */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16968 int
16969 main ()
16970 {
16971 #ifndef strstr
16972 char *p = (char *) strstr;
16973 #endif
16974
16975 ;
16976 return 0;
16977 }
16978 _ACEOF
16979 rm -f conftest.$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_cv_have_decl_strstr=yes
17002 else
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 ac_cv_have_decl_strstr=no
17007 fi
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 fi
17010 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17011 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17012 if test $ac_cv_have_decl_strstr = yes; then
17013
17014 cat >>confdefs.h <<_ACEOF
17015 #define HAVE_DECL_STRSTR 1
17016 _ACEOF
17017
17018
17019 else
17020 cat >>confdefs.h <<_ACEOF
17021 #define HAVE_DECL_STRSTR 0
17022 _ACEOF
17023
17024
17025 fi
17026
17027
17028 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
17029 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
17030 if test "${ac_cv_have_decl_getopt+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17040 int
17041 main ()
17042 {
17043 #ifndef getopt
17044 char *p = (char *) getopt;
17045 #endif
17046
17047 ;
17048 return 0;
17049 }
17050 _ACEOF
17051 rm -f conftest.$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_have_decl_getopt=yes
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_cv_have_decl_getopt=no
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
17083 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
17084 if test $ac_cv_have_decl_getopt = yes; then
17085
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_DECL_GETOPT 1
17088 _ACEOF
17089
17090
17091 else
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_DECL_GETOPT 0
17094 _ACEOF
17095
17096
17097 fi
17098 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17099 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17100 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103 cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h. */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 $ac_includes_default
17110 int
17111 main ()
17112 {
17113 #ifndef snprintf
17114 char *p = (char *) snprintf;
17115 #endif
17116
17117 ;
17118 return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_have_decl_snprintf=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ac_cv_have_decl_snprintf=no
17149 fi
17150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17151 fi
17152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17153 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17154 if test $ac_cv_have_decl_snprintf = yes; then
17155
17156 cat >>confdefs.h <<_ACEOF
17157 #define HAVE_DECL_SNPRINTF 1
17158 _ACEOF
17159
17160
17161 else
17162 cat >>confdefs.h <<_ACEOF
17163 #define HAVE_DECL_SNPRINTF 0
17164 _ACEOF
17165
17166
17167 fi
17168 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17169 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17170 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h. */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17180 int
17181 main ()
17182 {
17183 #ifndef vsnprintf
17184 char *p = (char *) vsnprintf;
17185 #endif
17186
17187 ;
17188 return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_have_decl_vsnprintf=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_cv_have_decl_vsnprintf=no
17219 fi
17220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17221 fi
17222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17223 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17224 if test $ac_cv_have_decl_vsnprintf = yes; then
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_DECL_VSNPRINTF 1
17228 _ACEOF
17229
17230
17231 else
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_DECL_VSNPRINTF 0
17234 _ACEOF
17235
17236
17237 fi
17238
17239
17240
17241 # ----------------------- #
17242 # Checks for structures. #
17243 # ----------------------- #
17244
17245 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17246 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17247 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 int
17258 main ()
17259 {
17260 static struct stat ac_aggr;
17261 if (ac_aggr.st_blocks)
17262 return 0;
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17269 (eval $ac_compile) 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_member_struct_stat_st_blocks=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 $ac_includes_default
17301 int
17302 main ()
17303 {
17304 static struct stat ac_aggr;
17305 if (sizeof ac_aggr.st_blocks)
17306 return 0;
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_member_struct_stat_st_blocks=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_cv_member_struct_stat_st_blocks=no
17339 fi
17340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17341 fi
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17345 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17346 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17347
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17350 _ACEOF
17351
17352
17353 fi
17354
17355 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17356 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17357 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 $ac_includes_default
17367 int
17368 main ()
17369 {
17370 static struct stat ac_aggr;
17371 if (ac_aggr.st_blksize)
17372 return 0;
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_member_struct_stat_st_blksize=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h. */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 $ac_includes_default
17411 int
17412 main ()
17413 {
17414 static struct stat ac_aggr;
17415 if (sizeof ac_aggr.st_blksize)
17416 return 0;
17417 ;
17418 return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_stat_st_blksize=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 ac_cv_member_struct_stat_st_blksize=no
17449 fi
17450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17451 fi
17452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17455 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17456 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17460 _ACEOF
17461
17462
17463 fi
17464
17465
17466 # ------------------ #
17467 # Checks for types. #
17468 # ------------------ #
17469
17470 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17471 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17472 if test "${ac_cv_type_signal+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <sys/types.h>
17482 #include <signal.h>
17483 #ifdef signal
17484 # undef signal
17485 #endif
17486 #ifdef __cplusplus
17487 extern "C" void (*signal (int, void (*)(int)))(int);
17488 #else
17489 void (*signal ()) ();
17490 #endif
17491
17492 int
17493 main ()
17494 {
17495 int i;
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_type_signal=void
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527 ac_cv_type_signal=int
17528 fi
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 fi
17531 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17532 echo "${ECHO_T}$ac_cv_type_signal" >&6
17533
17534 cat >>confdefs.h <<_ACEOF
17535 #define RETSIGTYPE $ac_cv_type_signal
17536 _ACEOF
17537
17538
17539 echo "$as_me:$LINENO: checking for socklen_t" >&5
17540 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17541 if test "${ac_cv_type_socklen_t+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 #include <sys/types.h>
17551 #include <sys/socket.h>
17552
17553
17554 int
17555 main ()
17556 {
17557 if ((socklen_t *) 0)
17558 return 0;
17559 if (sizeof (socklen_t))
17560 return 0;
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_type_socklen_t=yes
17588 else
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 ac_cv_type_socklen_t=no
17593 fi
17594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17595 fi
17596 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17597 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17598 if test $ac_cv_type_socklen_t = yes; then
17599
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_SOCKLEN_T 1
17602 _ACEOF
17603
17604
17605 fi
17606
17607
17608 # ------------------------------------- #
17609 # Checks for compiler characteristics. #
17610 # ------------------------------------- #
17611
17612 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17614 if test "${ac_cv_c_const+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
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
17624 int
17625 main ()
17626 {
17627 /* FIXME: Include the comments suggested by Paul. */
17628 #ifndef __cplusplus
17629 /* Ultrix mips cc rejects this. */
17630 typedef int charset[2];
17631 const charset x;
17632 /* SunOS 4.1.1 cc rejects this. */
17633 char const *const *ccp;
17634 char **p;
17635 /* NEC SVR4.0.2 mips cc rejects this. */
17636 struct point {int x, y;};
17637 static struct point const zero = {0,0};
17638 /* AIX XL C 1.02.0.0 rejects this.
17639 It does not let you subtract one const X* pointer from another in
17640 an arm of an if-expression whose if-part is not a constant
17641 expression */
17642 const char *g = "string";
17643 ccp = &g + (g ? g-g : 0);
17644 /* HPUX 7.0 cc rejects these. */
17645 ++ccp;
17646 p = (char**) ccp;
17647 ccp = (char const *const *) p;
17648 { /* SCO 3.2v4 cc rejects this. */
17649 char *t;
17650 char const *s = 0 ? (char *) 0 : (char const *) 0;
17651
17652 *t++ = 0;
17653 }
17654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17655 int x[] = {25, 17};
17656 const int *foo = &x[0];
17657 ++foo;
17658 }
17659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17660 typedef const int *iptr;
17661 iptr p = 0;
17662 ++p;
17663 }
17664 { /* AIX XL C 1.02.0.0 rejects this saying
17665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17666 struct s { int j; const int *ap[3]; };
17667 struct s *b; b->j = 5;
17668 }
17669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17670 const int foo = 10;
17671 }
17672 #endif
17673
17674 ;
17675 return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_c_const=yes
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 ac_cv_c_const=no
17706 fi
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17708 fi
17709 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17710 echo "${ECHO_T}$ac_cv_c_const" >&6
17711 if test $ac_cv_c_const = no; then
17712
17713 cat >>confdefs.h <<\_ACEOF
17714 #define const
17715 _ACEOF
17716
17717 fi
17718
17719 echo "$as_me:$LINENO: checking for inline" >&5
17720 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17721 if test "${ac_cv_c_inline+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 ac_cv_c_inline=no
17725 for ac_kw in inline __inline__ __inline; do
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #ifndef __cplusplus
17733 typedef int foo_t;
17734 static $ac_kw foo_t static_foo () {return 0; }
17735 $ac_kw foo_t foo () {return 0; }
17736 #endif
17737
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_cv_c_inline=$ac_kw; break
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 fi
17767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17768 done
17769
17770 fi
17771 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17772 echo "${ECHO_T}$ac_cv_c_inline" >&6
17773
17774
17775 case $ac_cv_c_inline in
17776 inline | yes) ;;
17777 *)
17778 case $ac_cv_c_inline in
17779 no) ac_val=;;
17780 *) ac_val=$ac_cv_c_inline;;
17781 esac
17782 cat >>confdefs.h <<_ACEOF
17783 #ifndef __cplusplus
17784 #define inline $ac_val
17785 #endif
17786 _ACEOF
17787 ;;
17788 esac
17789
17790 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17791 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17792 if test "${ac_cv_c_bigendian+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 # See if sys/param.h defines the BYTE_ORDER macro.
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <sys/types.h>
17803 #include <sys/param.h>
17804
17805 int
17806 main ()
17807 {
17808 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17809 bogus endian macros
17810 #endif
17811
17812 ;
17813 return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 # It does; now see whether it defined to BIG_ENDIAN or not.
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 #include <sys/types.h>
17846 #include <sys/param.h>
17847
17848 int
17849 main ()
17850 {
17851 #if BYTE_ORDER != BIG_ENDIAN
17852 not big endian
17853 #endif
17854
17855 ;
17856 return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_c_bigendian=yes
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 ac_cv_c_bigendian=no
17887 fi
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889 else
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893 # It does not; compile a test program.
17894 if test "$cross_compiling" = yes; then
17895 # try to guess the endianness by grepping values into an object file
17896 ac_cv_c_bigendian=unknown
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17904 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17905 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17906 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17907 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17908 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17909 int
17910 main ()
17911 {
17912 _ascii (); _ebcdic ();
17913 ;
17914 return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17940 ac_cv_c_bigendian=yes
17941 fi
17942 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17943 if test "$ac_cv_c_bigendian" = unknown; then
17944 ac_cv_c_bigendian=no
17945 else
17946 # finding both strings is unlikely to happen, but who knows?
17947 ac_cv_c_bigendian=unknown
17948 fi
17949 fi
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 fi
17955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956 else
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 int
17964 main ()
17965 {
17966 /* Are we little or big endian? From Harbison&Steele. */
17967 union
17968 {
17969 long l;
17970 char c[sizeof (long)];
17971 } u;
17972 u.l = 1;
17973 exit (u.c[sizeof (long) - 1] == 1);
17974 }
17975 _ACEOF
17976 rm -f conftest$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_c_bigendian=no
17988 else
17989 echo "$as_me: program exited with status $ac_status" >&5
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 ( exit $ac_status )
17994 ac_cv_c_bigendian=yes
17995 fi
17996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17997 fi
17998 fi
17999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18000 fi
18001 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18002 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18003 case $ac_cv_c_bigendian in
18004 yes)
18005
18006 cat >>confdefs.h <<\_ACEOF
18007 #define WORDS_BIGENDIAN 1
18008 _ACEOF
18009 ;;
18010 no)
18011 ;;
18012 *)
18013 { { echo "$as_me:$LINENO: error: unknown endianness
18014 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18015 echo "$as_me: error: unknown endianness
18016 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18017 { (exit 1); exit 1; }; } ;;
18018 esac
18019
18020
18021 # ------------------------------ #
18022 # Checks for library functions. #
18023 # ------------------------------ #
18024
18025 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18026 # for constant arguments. Useless!
18027 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18028 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18029 if test "${ac_cv_working_alloca_h+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h. */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <alloca.h>
18039 int
18040 main ()
18041 {
18042 char *p = (char *) alloca (2 * sizeof (int));
18043 ;
18044 return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_working_alloca_h=yes
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_cv_working_alloca_h=no
18075 fi
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18078 fi
18079 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18080 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18081 if test $ac_cv_working_alloca_h = yes; then
18082
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_ALLOCA_H 1
18085 _ACEOF
18086
18087 fi
18088
18089 echo "$as_me:$LINENO: checking for alloca" >&5
18090 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18091 if test "${ac_cv_func_alloca_works+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 #ifdef __GNUC__
18101 # define alloca __builtin_alloca
18102 #else
18103 # ifdef _MSC_VER
18104 # include <malloc.h>
18105 # define alloca _alloca
18106 # else
18107 # if HAVE_ALLOCA_H
18108 # include <alloca.h>
18109 # else
18110 # ifdef _AIX
18111 #pragma alloca
18112 # else
18113 # ifndef alloca /* predefined by HP cc +Olibcalls */
18114 char *alloca ();
18115 # endif
18116 # endif
18117 # endif
18118 # endif
18119 #endif
18120
18121 int
18122 main ()
18123 {
18124 char *p = (char *) alloca (1);
18125 ;
18126 return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest$ac_exeext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_func_alloca_works=yes
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 ac_cv_func_alloca_works=no
18157 fi
18158 rm -f conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18160 fi
18161 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18162 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18163
18164 if test $ac_cv_func_alloca_works = yes; then
18165
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_ALLOCA 1
18168 _ACEOF
18169
18170 else
18171 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18172 # that cause trouble. Some versions do not even contain alloca or
18173 # contain a buggy version. If you still want to use their alloca,
18174 # use ar to extract alloca.o from them instead of compiling alloca.c.
18175
18176 ALLOCA=alloca.$ac_objext
18177
18178 cat >>confdefs.h <<\_ACEOF
18179 #define C_ALLOCA 1
18180 _ACEOF
18181
18182
18183 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18184 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18185 if test "${ac_cv_os_cray+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 #if defined(CRAY) && ! defined(CRAY2)
18195 webecray
18196 #else
18197 wenotbecray
18198 #endif
18199
18200 _ACEOF
18201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18202 $EGREP "webecray" >/dev/null 2>&1; then
18203 ac_cv_os_cray=yes
18204 else
18205 ac_cv_os_cray=no
18206 fi
18207 rm -f conftest*
18208
18209 fi
18210 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18211 echo "${ECHO_T}$ac_cv_os_cray" >&6
18212 if test $ac_cv_os_cray = yes; then
18213 for ac_func in _getb67 GETB67 getb67; do
18214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18215 echo "$as_me:$LINENO: checking for $ac_func" >&5
18216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18217 if eval "test \"\${$as_ac_var+set}\" = set"; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18228 #define $ac_func innocuous_$ac_func
18229
18230 /* System header to define __stub macros and hopefully few prototypes,
18231 which can conflict with char $ac_func (); below.
18232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 <limits.h> exists even on freestanding compilers. */
18234
18235 #ifdef __STDC__
18236 # include <limits.h>
18237 #else
18238 # include <assert.h>
18239 #endif
18240
18241 #undef $ac_func
18242
18243 /* Override any gcc2 internal prototype to avoid an error. */
18244 #ifdef __cplusplus
18245 extern "C"
18246 {
18247 #endif
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18250 char $ac_func ();
18251 /* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18255 choke me
18256 #else
18257 char (*f) () = $ac_func;
18258 #endif
18259 #ifdef __cplusplus
18260 }
18261 #endif
18262
18263 int
18264 main ()
18265 {
18266 return f != $ac_func;
18267 ;
18268 return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18294 else
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298 eval "$as_ac_var=no"
18299 fi
18300 rm -f conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 fi
18303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18305 if test `eval echo '${'$as_ac_var'}'` = yes; then
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define CRAY_STACKSEG_END $ac_func
18309 _ACEOF
18310
18311 break
18312 fi
18313
18314 done
18315 fi
18316
18317 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18318 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18319 if test "${ac_cv_c_stack_direction+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322 if test "$cross_compiling" = yes; then
18323 ac_cv_c_stack_direction=0
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 int
18332 find_stack_direction ()
18333 {
18334 static char *addr = 0;
18335 auto char dummy;
18336 if (addr == 0)
18337 {
18338 addr = &dummy;
18339 return find_stack_direction ();
18340 }
18341 else
18342 return (&dummy > addr) ? 1 : -1;
18343 }
18344
18345 int
18346 main ()
18347 {
18348 exit (find_stack_direction () < 0);
18349 }
18350 _ACEOF
18351 rm -f conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_c_stack_direction=1
18363 else
18364 echo "$as_me: program exited with status $ac_status" >&5
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ( exit $ac_status )
18369 ac_cv_c_stack_direction=-1
18370 fi
18371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18372 fi
18373 fi
18374 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18376
18377 cat >>confdefs.h <<_ACEOF
18378 #define STACK_DIRECTION $ac_cv_c_stack_direction
18379 _ACEOF
18380
18381
18382 fi
18383
18384
18385
18386 for ac_header in stdlib.h unistd.h
18387 do
18388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18390 echo "$as_me:$LINENO: checking for $ac_header" >&5
18391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 fi
18395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18397 else
18398 # Is the header compilable?
18399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h. */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 $ac_includes_default
18408 #include <$ac_header>
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_header_compiler=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437 ac_header_compiler=no
18438 fi
18439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18441 echo "${ECHO_T}$ac_header_compiler" >&6
18442
18443 # Is the header present?
18444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18446 cat >conftest.$ac_ext <<_ACEOF
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 #include <$ac_header>
18453 _ACEOF
18454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } >/dev/null; then
18462 if test -s conftest.err; then
18463 ac_cpp_err=$ac_c_preproc_warn_flag
18464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18465 else
18466 ac_cpp_err=
18467 fi
18468 else
18469 ac_cpp_err=yes
18470 fi
18471 if test -z "$ac_cpp_err"; then
18472 ac_header_preproc=yes
18473 else
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_header_preproc=no
18478 fi
18479 rm -f conftest.err conftest.$ac_ext
18480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18481 echo "${ECHO_T}$ac_header_preproc" >&6
18482
18483 # So? What about this header?
18484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18485 yes:no: )
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18490 ac_header_preproc=yes
18491 ;;
18492 no:yes:* )
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18505 (
18506 cat <<\_ASBOX
18507 ## ------------------------------------------ ##
18508 ## Report this to the AC_PACKAGE_NAME lists. ##
18509 ## ------------------------------------------ ##
18510 _ASBOX
18511 ) |
18512 sed "s/^/$as_me: WARNING: /" >&2
18513 ;;
18514 esac
18515 echo "$as_me:$LINENO: checking for $ac_header" >&5
18516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520 eval "$as_ac_Header=\$ac_header_preproc"
18521 fi
18522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18524
18525 fi
18526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18527 cat >>confdefs.h <<_ACEOF
18528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18529 _ACEOF
18530
18531 fi
18532
18533 done
18534
18535
18536 for ac_func in getpagesize
18537 do
18538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18539 echo "$as_me:$LINENO: checking for $ac_func" >&5
18540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18541 if eval "test \"\${$as_ac_var+set}\" = set"; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18552 #define $ac_func innocuous_$ac_func
18553
18554 /* System header to define __stub macros and hopefully few prototypes,
18555 which can conflict with char $ac_func (); below.
18556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18557 <limits.h> exists even on freestanding compilers. */
18558
18559 #ifdef __STDC__
18560 # include <limits.h>
18561 #else
18562 # include <assert.h>
18563 #endif
18564
18565 #undef $ac_func
18566
18567 /* Override any gcc2 internal prototype to avoid an error. */
18568 #ifdef __cplusplus
18569 extern "C"
18570 {
18571 #endif
18572 /* We use char because int might match the return type of a gcc2
18573 builtin and then its argument prototype would still apply. */
18574 char $ac_func ();
18575 /* The GNU C library defines this for functions which it implements
18576 to always fail with ENOSYS. Some functions are actually named
18577 something starting with __ and the normal name is an alias. */
18578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18579 choke me
18580 #else
18581 char (*f) () = $ac_func;
18582 #endif
18583 #ifdef __cplusplus
18584 }
18585 #endif
18586
18587 int
18588 main ()
18589 {
18590 return f != $ac_func;
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 eval "$as_ac_var=yes"
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 eval "$as_ac_var=no"
18623 fi
18624 rm -f conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626 fi
18627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18629 if test `eval echo '${'$as_ac_var'}'` = yes; then
18630 cat >>confdefs.h <<_ACEOF
18631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18632 _ACEOF
18633
18634 fi
18635 done
18636
18637 echo "$as_me:$LINENO: checking for working mmap" >&5
18638 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18639 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642 if test "$cross_compiling" = yes; then
18643 ac_cv_func_mmap_fixed_mapped=no
18644 else
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18652 /* malloc might have been renamed as rpl_malloc. */
18653 #undef malloc
18654
18655 /* Thanks to Mike Haertel and Jim Avera for this test.
18656 Here is a matrix of mmap possibilities:
18657 mmap private not fixed
18658 mmap private fixed at somewhere currently unmapped
18659 mmap private fixed at somewhere already mapped
18660 mmap shared not fixed
18661 mmap shared fixed at somewhere currently unmapped
18662 mmap shared fixed at somewhere already mapped
18663 For private mappings, we should verify that changes cannot be read()
18664 back from the file, nor mmap's back from the file at a different
18665 address. (There have been systems where private was not correctly
18666 implemented like the infamous i386 svr4.0, and systems where the
18667 VM page cache was not coherent with the file system buffer cache
18668 like early versions of FreeBSD and possibly contemporary NetBSD.)
18669 For shared mappings, we should conversely verify that changes get
18670 propagated back to all the places they're supposed to be.
18671
18672 Grep wants private fixed already mapped.
18673 The main things grep needs to know about mmap are:
18674 * does it exist and is it safe to write into the mmap'd area
18675 * how to use it (BSD variants) */
18676
18677 #include <fcntl.h>
18678 #include <sys/mman.h>
18679
18680 #if !STDC_HEADERS && !HAVE_STDLIB_H
18681 char *malloc ();
18682 #endif
18683
18684 /* This mess was copied from the GNU getpagesize.h. */
18685 #if !HAVE_GETPAGESIZE
18686 /* Assume that all systems that can run configure have sys/param.h. */
18687 # if !HAVE_SYS_PARAM_H
18688 # define HAVE_SYS_PARAM_H 1
18689 # endif
18690
18691 # ifdef _SC_PAGESIZE
18692 # define getpagesize() sysconf(_SC_PAGESIZE)
18693 # else /* no _SC_PAGESIZE */
18694 # if HAVE_SYS_PARAM_H
18695 # include <sys/param.h>
18696 # ifdef EXEC_PAGESIZE
18697 # define getpagesize() EXEC_PAGESIZE
18698 # else /* no EXEC_PAGESIZE */
18699 # ifdef NBPG
18700 # define getpagesize() NBPG * CLSIZE
18701 # ifndef CLSIZE
18702 # define CLSIZE 1
18703 # endif /* no CLSIZE */
18704 # else /* no NBPG */
18705 # ifdef NBPC
18706 # define getpagesize() NBPC
18707 # else /* no NBPC */
18708 # ifdef PAGESIZE
18709 # define getpagesize() PAGESIZE
18710 # endif /* PAGESIZE */
18711 # endif /* no NBPC */
18712 # endif /* no NBPG */
18713 # endif /* no EXEC_PAGESIZE */
18714 # else /* no HAVE_SYS_PARAM_H */
18715 # define getpagesize() 8192 /* punt totally */
18716 # endif /* no HAVE_SYS_PARAM_H */
18717 # endif /* no _SC_PAGESIZE */
18718
18719 #endif /* no HAVE_GETPAGESIZE */
18720
18721 int
18722 main ()
18723 {
18724 char *data, *data2, *data3;
18725 int i, pagesize;
18726 int fd;
18727
18728 pagesize = getpagesize ();
18729
18730 /* First, make a file with some known garbage in it. */
18731 data = (char *) malloc (pagesize);
18732 if (!data)
18733 exit (1);
18734 for (i = 0; i < pagesize; ++i)
18735 *(data + i) = rand ();
18736 umask (0);
18737 fd = creat ("conftest.mmap", 0600);
18738 if (fd < 0)
18739 exit (1);
18740 if (write (fd, data, pagesize) != pagesize)
18741 exit (1);
18742 close (fd);
18743
18744 /* Next, try to mmap the file at a fixed address which already has
18745 something else allocated at it. If we can, also make sure that
18746 we see the same garbage. */
18747 fd = open ("conftest.mmap", O_RDWR);
18748 if (fd < 0)
18749 exit (1);
18750 data2 = (char *) malloc (2 * pagesize);
18751 if (!data2)
18752 exit (1);
18753 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18756 exit (1);
18757 for (i = 0; i < pagesize; ++i)
18758 if (*(data + i) != *(data2 + i))
18759 exit (1);
18760
18761 /* Finally, make sure that changes to the mapped area do not
18762 percolate back to the file as seen by read(). (This is a bug on
18763 some variants of i386 svr4.0.) */
18764 for (i = 0; i < pagesize; ++i)
18765 *(data2 + i) = *(data2 + i) + 1;
18766 data3 = (char *) malloc (pagesize);
18767 if (!data3)
18768 exit (1);
18769 if (read (fd, data3, pagesize) != pagesize)
18770 exit (1);
18771 for (i = 0; i < pagesize; ++i)
18772 if (*(data + i) != *(data3 + i))
18773 exit (1);
18774 close (fd);
18775 exit (0);
18776 }
18777 _ACEOF
18778 rm -f conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_func_mmap_fixed_mapped=yes
18790 else
18791 echo "$as_me: program exited with status $ac_status" >&5
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ( exit $ac_status )
18796 ac_cv_func_mmap_fixed_mapped=no
18797 fi
18798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18799 fi
18800 fi
18801 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18802 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18804
18805 cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_MMAP 1
18807 _ACEOF
18808
18809 fi
18810 rm -f conftest.mmap
18811
18812 echo "$as_me:$LINENO: checking for pid_t" >&5
18813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18814 if test "${ac_cv_type_pid_t+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 $ac_includes_default
18824 int
18825 main ()
18826 {
18827 if ((pid_t *) 0)
18828 return 0;
18829 if (sizeof (pid_t))
18830 return 0;
18831 ;
18832 return 0;
18833 }
18834 _ACEOF
18835 rm -f conftest.$ac_objext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18837 (eval $ac_compile) 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest.$ac_objext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_type_pid_t=yes
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_cv_type_pid_t=no
18863 fi
18864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18865 fi
18866 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18868 if test $ac_cv_type_pid_t = yes; then
18869 :
18870 else
18871
18872 cat >>confdefs.h <<_ACEOF
18873 #define pid_t int
18874 _ACEOF
18875
18876 fi
18877
18878
18879
18880 for ac_header in unistd.h vfork.h
18881 do
18882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18884 echo "$as_me:$LINENO: checking for $ac_header" >&5
18885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 fi
18889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18891 else
18892 # Is the header compilable?
18893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h. */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 $ac_includes_default
18902 #include <$ac_header>
18903 _ACEOF
18904 rm -f conftest.$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_header_compiler=yes
18927 else
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 ac_header_compiler=no
18932 fi
18933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18935 echo "${ECHO_T}$ac_header_compiler" >&6
18936
18937 # Is the header present?
18938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h. */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <$ac_header>
18947 _ACEOF
18948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } >/dev/null; then
18956 if test -s conftest.err; then
18957 ac_cpp_err=$ac_c_preproc_warn_flag
18958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18959 else
18960 ac_cpp_err=
18961 fi
18962 else
18963 ac_cpp_err=yes
18964 fi
18965 if test -z "$ac_cpp_err"; then
18966 ac_header_preproc=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_preproc=no
18972 fi
18973 rm -f conftest.err conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18975 echo "${ECHO_T}$ac_header_preproc" >&6
18976
18977 # So? What about this header?
18978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18979 yes:no: )
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18984 ac_header_preproc=yes
18985 ;;
18986 no:yes:* )
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18999 (
19000 cat <<\_ASBOX
19001 ## ------------------------------------------ ##
19002 ## Report this to the AC_PACKAGE_NAME lists. ##
19003 ## ------------------------------------------ ##
19004 _ASBOX
19005 ) |
19006 sed "s/^/$as_me: WARNING: /" >&2
19007 ;;
19008 esac
19009 echo "$as_me:$LINENO: checking for $ac_header" >&5
19010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 eval "$as_ac_Header=\$ac_header_preproc"
19015 fi
19016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19018
19019 fi
19020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19023 _ACEOF
19024
19025 fi
19026
19027 done
19028
19029
19030
19031 for ac_func in fork vfork
19032 do
19033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19034 echo "$as_me:$LINENO: checking for $ac_func" >&5
19035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_var+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19047 #define $ac_func innocuous_$ac_func
19048
19049 /* System header to define __stub macros and hopefully few prototypes,
19050 which can conflict with char $ac_func (); below.
19051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19052 <limits.h> exists even on freestanding compilers. */
19053
19054 #ifdef __STDC__
19055 # include <limits.h>
19056 #else
19057 # include <assert.h>
19058 #endif
19059
19060 #undef $ac_func
19061
19062 /* Override any gcc2 internal prototype to avoid an error. */
19063 #ifdef __cplusplus
19064 extern "C"
19065 {
19066 #endif
19067 /* We use char because int might match the return type of a gcc2
19068 builtin and then its argument prototype would still apply. */
19069 char $ac_func ();
19070 /* The GNU C library defines this for functions which it implements
19071 to always fail with ENOSYS. Some functions are actually named
19072 something starting with __ and the normal name is an alias. */
19073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19074 choke me
19075 #else
19076 char (*f) () = $ac_func;
19077 #endif
19078 #ifdef __cplusplus
19079 }
19080 #endif
19081
19082 int
19083 main ()
19084 {
19085 return f != $ac_func;
19086 ;
19087 return 0;
19088 }
19089 _ACEOF
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 eval "$as_ac_var=yes"
19113 else
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 eval "$as_ac_var=no"
19118 fi
19119 rm -f conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121 fi
19122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19124 if test `eval echo '${'$as_ac_var'}'` = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19127 _ACEOF
19128
19129 fi
19130 done
19131
19132 if test "x$ac_cv_func_fork" = xyes; then
19133 echo "$as_me:$LINENO: checking for working fork" >&5
19134 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19135 if test "${ac_cv_func_fork_works+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138 if test "$cross_compiling" = yes; then
19139 ac_cv_func_fork_works=cross
19140 else
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* By Ruediger Kuhlmann. */
19143 #include <sys/types.h>
19144 #if HAVE_UNISTD_H
19145 # include <unistd.h>
19146 #endif
19147 /* Some systems only have a dummy stub for fork() */
19148 int main ()
19149 {
19150 if (fork() < 0)
19151 exit (1);
19152 exit (0);
19153 }
19154 _ACEOF
19155 rm -f conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_func_fork_works=yes
19167 else
19168 echo "$as_me: program exited with status $ac_status" >&5
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ( exit $ac_status )
19173 ac_cv_func_fork_works=no
19174 fi
19175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19176 fi
19177 fi
19178 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19179 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19180
19181 else
19182 ac_cv_func_fork_works=$ac_cv_func_fork
19183 fi
19184 if test "x$ac_cv_func_fork_works" = xcross; then
19185 case $host in
19186 *-*-amigaos* | *-*-msdosdjgpp*)
19187 # Override, as these systems have only a dummy fork() stub
19188 ac_cv_func_fork_works=no
19189 ;;
19190 *)
19191 ac_cv_func_fork_works=yes
19192 ;;
19193 esac
19194 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19195 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19196 fi
19197 ac_cv_func_vfork_works=$ac_cv_func_vfork
19198 if test "x$ac_cv_func_vfork" = xyes; then
19199 echo "$as_me:$LINENO: checking for working vfork" >&5
19200 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19201 if test "${ac_cv_func_vfork_works+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204 if test "$cross_compiling" = yes; then
19205 ac_cv_func_vfork_works=cross
19206 else
19207 cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h. */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 /* Thanks to Paul Eggert for this test. */
19214 #include <stdio.h>
19215 #include <stdlib.h>
19216 #include <sys/types.h>
19217 #include <sys/stat.h>
19218 #include <sys/wait.h>
19219 #if HAVE_UNISTD_H
19220 # include <unistd.h>
19221 #endif
19222 #if HAVE_VFORK_H
19223 # include <vfork.h>
19224 #endif
19225 /* On some sparc systems, changes by the child to local and incoming
19226 argument registers are propagated back to the parent. The compiler
19227 is told about this with #include <vfork.h>, but some compilers
19228 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19229 static variable whose address is put into a register that is
19230 clobbered by the vfork. */
19231 static void
19232 #ifdef __cplusplus
19233 sparc_address_test (int arg)
19234 # else
19235 sparc_address_test (arg) int arg;
19236 #endif
19237 {
19238 static pid_t child;
19239 if (!child) {
19240 child = vfork ();
19241 if (child < 0) {
19242 perror ("vfork");
19243 _exit(2);
19244 }
19245 if (!child) {
19246 arg = getpid();
19247 write(-1, "", 0);
19248 _exit (arg);
19249 }
19250 }
19251 }
19252
19253 int
19254 main ()
19255 {
19256 pid_t parent = getpid ();
19257 pid_t child;
19258
19259 sparc_address_test (0);
19260
19261 child = vfork ();
19262
19263 if (child == 0) {
19264 /* Here is another test for sparc vfork register problems. This
19265 test uses lots of local variables, at least as many local
19266 variables as main has allocated so far including compiler
19267 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19268 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19269 reuse the register of parent for one of the local variables,
19270 since it will think that parent can't possibly be used any more
19271 in this routine. Assigning to the local variable will thus
19272 munge parent in the parent process. */
19273 pid_t
19274 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19275 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19276 /* Convince the compiler that p..p7 are live; otherwise, it might
19277 use the same hardware register for all 8 local variables. */
19278 if (p != p1 || p != p2 || p != p3 || p != p4
19279 || p != p5 || p != p6 || p != p7)
19280 _exit(1);
19281
19282 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19283 from child file descriptors. If the child closes a descriptor
19284 before it execs or exits, this munges the parent's descriptor
19285 as well. Test for this by closing stdout in the child. */
19286 _exit(close(fileno(stdout)) != 0);
19287 } else {
19288 int status;
19289 struct stat st;
19290
19291 while (wait(&status) != child)
19292 ;
19293 exit(
19294 /* Was there some problem with vforking? */
19295 child < 0
19296
19297 /* Did the child fail? (This shouldn't happen.) */
19298 || status
19299
19300 /* Did the vfork/compiler bug occur? */
19301 || parent != getpid()
19302
19303 /* Did the file descriptor bug occur? */
19304 || fstat(fileno(stdout), &st) != 0
19305 );
19306 }
19307 }
19308 _ACEOF
19309 rm -f conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_func_vfork_works=yes
19321 else
19322 echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ( exit $ac_status )
19327 ac_cv_func_vfork_works=no
19328 fi
19329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19330 fi
19331 fi
19332 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19333 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19334
19335 fi;
19336 if test "x$ac_cv_func_fork_works" = xcross; then
19337 ac_cv_func_vfork_works=$ac_cv_func_vfork
19338 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19339 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19340 fi
19341
19342 if test "x$ac_cv_func_vfork_works" = xyes; then
19343
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_WORKING_VFORK 1
19346 _ACEOF
19347
19348 else
19349
19350 cat >>confdefs.h <<\_ACEOF
19351 #define vfork fork
19352 _ACEOF
19353
19354 fi
19355 if test "x$ac_cv_func_fork_works" = xyes; then
19356
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_WORKING_FORK 1
19359 _ACEOF
19360
19361 fi
19362
19363
19364
19365 for ac_func in canonicalize_file_name realpath
19366 do
19367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19368 echo "$as_me:$LINENO: checking for $ac_func" >&5
19369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19370 if eval "test \"\${$as_ac_var+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19381 #define $ac_func innocuous_$ac_func
19382
19383 /* System header to define __stub macros and hopefully few prototypes,
19384 which can conflict with char $ac_func (); below.
19385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19386 <limits.h> exists even on freestanding compilers. */
19387
19388 #ifdef __STDC__
19389 # include <limits.h>
19390 #else
19391 # include <assert.h>
19392 #endif
19393
19394 #undef $ac_func
19395
19396 /* Override any gcc2 internal prototype to avoid an error. */
19397 #ifdef __cplusplus
19398 extern "C"
19399 {
19400 #endif
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403 char $ac_func ();
19404 /* The GNU C library defines this for functions which it implements
19405 to always fail with ENOSYS. Some functions are actually named
19406 something starting with __ and the normal name is an alias. */
19407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19408 choke me
19409 #else
19410 char (*f) () = $ac_func;
19411 #endif
19412 #ifdef __cplusplus
19413 }
19414 #endif
19415
19416 int
19417 main ()
19418 {
19419 return f != $ac_func;
19420 ;
19421 return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag"
19434 || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19446 eval "$as_ac_var=yes"
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 eval "$as_ac_var=no"
19452 fi
19453 rm -f conftest.err conftest.$ac_objext \
19454 conftest$ac_exeext conftest.$ac_ext
19455 fi
19456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19458 if test `eval echo '${'$as_ac_var'}'` = yes; then
19459 cat >>confdefs.h <<_ACEOF
19460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19461 _ACEOF
19462
19463 fi
19464 done
19465
19466
19467 for ac_func in getrusage
19468 do
19469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19470 echo "$as_me:$LINENO: checking for $ac_func" >&5
19471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19472 if eval "test \"\${$as_ac_var+set}\" = set"; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19483 #define $ac_func innocuous_$ac_func
19484
19485 /* System header to define __stub macros and hopefully few prototypes,
19486 which can conflict with char $ac_func (); below.
19487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19488 <limits.h> exists even on freestanding compilers. */
19489
19490 #ifdef __STDC__
19491 # include <limits.h>
19492 #else
19493 # include <assert.h>
19494 #endif
19495
19496 #undef $ac_func
19497
19498 /* Override any gcc2 internal prototype to avoid an error. */
19499 #ifdef __cplusplus
19500 extern "C"
19501 {
19502 #endif
19503 /* We use char because int might match the return type of a gcc2
19504 builtin and then its argument prototype would still apply. */
19505 char $ac_func ();
19506 /* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19510 choke me
19511 #else
19512 char (*f) () = $ac_func;
19513 #endif
19514 #ifdef __cplusplus
19515 }
19516 #endif
19517
19518 int
19519 main ()
19520 {
19521 return f != $ac_func;
19522 ;
19523 return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext conftest$ac_exeext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 eval "$as_ac_var=yes"
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 eval "$as_ac_var=no"
19554 fi
19555 rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557 fi
19558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19560 if test `eval echo '${'$as_ac_var'}'` = yes; then
19561 cat >>confdefs.h <<_ACEOF
19562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19563 _ACEOF
19564
19565 fi
19566 done
19567
19568
19569
19570 for ac_func in getuid getgid
19571 do
19572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19573 echo "$as_me:$LINENO: checking for $ac_func" >&5
19574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19575 if eval "test \"\${$as_ac_var+set}\" = set"; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19586 #define $ac_func innocuous_$ac_func
19587
19588 /* System header to define __stub macros and hopefully few prototypes,
19589 which can conflict with char $ac_func (); below.
19590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19591 <limits.h> exists even on freestanding compilers. */
19592
19593 #ifdef __STDC__
19594 # include <limits.h>
19595 #else
19596 # include <assert.h>
19597 #endif
19598
19599 #undef $ac_func
19600
19601 /* Override any gcc2 internal prototype to avoid an error. */
19602 #ifdef __cplusplus
19603 extern "C"
19604 {
19605 #endif
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19608 char $ac_func ();
19609 /* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
19612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19613 choke me
19614 #else
19615 char (*f) () = $ac_func;
19616 #endif
19617 #ifdef __cplusplus
19618 }
19619 #endif
19620
19621 int
19622 main ()
19623 {
19624 return f != $ac_func;
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 eval "$as_ac_var=yes"
19652 else
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 eval "$as_ac_var=no"
19657 fi
19658 rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 fi
19661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19666 _ACEOF
19667
19668 fi
19669 done
19670
19671
19672 for ac_func in poll
19673 do
19674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19675 echo "$as_me:$LINENO: checking for $ac_func" >&5
19676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19677 if eval "test \"\${$as_ac_var+set}\" = set"; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h. */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19688 #define $ac_func innocuous_$ac_func
19689
19690 /* System header to define __stub macros and hopefully few prototypes,
19691 which can conflict with char $ac_func (); below.
19692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19693 <limits.h> exists even on freestanding compilers. */
19694
19695 #ifdef __STDC__
19696 # include <limits.h>
19697 #else
19698 # include <assert.h>
19699 #endif
19700
19701 #undef $ac_func
19702
19703 /* Override any gcc2 internal prototype to avoid an error. */
19704 #ifdef __cplusplus
19705 extern "C"
19706 {
19707 #endif
19708 /* We use char because int might match the return type of a gcc2
19709 builtin and then its argument prototype would still apply. */
19710 char $ac_func ();
19711 /* The GNU C library defines this for functions which it implements
19712 to always fail with ENOSYS. Some functions are actually named
19713 something starting with __ and the normal name is an alias. */
19714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19715 choke me
19716 #else
19717 char (*f) () = $ac_func;
19718 #endif
19719 #ifdef __cplusplus
19720 }
19721 #endif
19722
19723 int
19724 main ()
19725 {
19726 return f != $ac_func;
19727 ;
19728 return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 eval "$as_ac_var=yes"
19754 else
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758 eval "$as_ac_var=no"
19759 fi
19760 rm -f conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 fi
19763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19765 if test `eval echo '${'$as_ac_var'}'` = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19768 _ACEOF
19769
19770 fi
19771 done
19772
19773
19774 for ac_func in pread64
19775 do
19776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777 echo "$as_me:$LINENO: checking for $ac_func" >&5
19778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19779 if eval "test \"\${$as_ac_var+set}\" = set"; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19790 #define $ac_func innocuous_$ac_func
19791
19792 /* System header to define __stub macros and hopefully few prototypes,
19793 which can conflict with char $ac_func (); below.
19794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795 <limits.h> exists even on freestanding compilers. */
19796
19797 #ifdef __STDC__
19798 # include <limits.h>
19799 #else
19800 # include <assert.h>
19801 #endif
19802
19803 #undef $ac_func
19804
19805 /* Override any gcc2 internal prototype to avoid an error. */
19806 #ifdef __cplusplus
19807 extern "C"
19808 {
19809 #endif
19810 /* We use char because int might match the return type of a gcc2
19811 builtin and then its argument prototype would still apply. */
19812 char $ac_func ();
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19817 choke me
19818 #else
19819 char (*f) () = $ac_func;
19820 #endif
19821 #ifdef __cplusplus
19822 }
19823 #endif
19824
19825 int
19826 main ()
19827 {
19828 return f != $ac_func;
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 eval "$as_ac_var=yes"
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 eval "$as_ac_var=no"
19861 fi
19862 rm -f conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864 fi
19865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19867 if test `eval echo '${'$as_ac_var'}'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19870 _ACEOF
19871
19872 fi
19873 done
19874
19875
19876 for ac_func in sbrk
19877 do
19878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19879 echo "$as_me:$LINENO: checking for $ac_func" >&5
19880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19881 if eval "test \"\${$as_ac_var+set}\" = set"; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892 #define $ac_func innocuous_$ac_func
19893
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char $ac_func (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19898
19899 #ifdef __STDC__
19900 # include <limits.h>
19901 #else
19902 # include <assert.h>
19903 #endif
19904
19905 #undef $ac_func
19906
19907 /* Override any gcc2 internal prototype to avoid an error. */
19908 #ifdef __cplusplus
19909 extern "C"
19910 {
19911 #endif
19912 /* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
19914 char $ac_func ();
19915 /* The GNU C library defines this for functions which it implements
19916 to always fail with ENOSYS. Some functions are actually named
19917 something starting with __ and the normal name is an alias. */
19918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19919 choke me
19920 #else
19921 char (*f) () = $ac_func;
19922 #endif
19923 #ifdef __cplusplus
19924 }
19925 #endif
19926
19927 int
19928 main ()
19929 {
19930 return f != $ac_func;
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19937 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 eval "$as_ac_var=no"
19963 fi
19964 rm -f conftest.err conftest.$ac_objext \
19965 conftest$ac_exeext conftest.$ac_ext
19966 fi
19967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19969 if test `eval echo '${'$as_ac_var'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19972 _ACEOF
19973
19974 fi
19975 done
19976
19977
19978
19979
19980 for ac_func in setpgid setpgrp setsid
19981 do
19982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19983 echo "$as_me:$LINENO: checking for $ac_func" >&5
19984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_var+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19996 #define $ac_func innocuous_$ac_func
19997
19998 /* System header to define __stub macros and hopefully few prototypes,
19999 which can conflict with char $ac_func (); below.
20000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20001 <limits.h> exists even on freestanding compilers. */
20002
20003 #ifdef __STDC__
20004 # include <limits.h>
20005 #else
20006 # include <assert.h>
20007 #endif
20008
20009 #undef $ac_func
20010
20011 /* Override any gcc2 internal prototype to avoid an error. */
20012 #ifdef __cplusplus
20013 extern "C"
20014 {
20015 #endif
20016 /* We use char because int might match the return type of a gcc2
20017 builtin and then its argument prototype would still apply. */
20018 char $ac_func ();
20019 /* The GNU C library defines this for functions which it implements
20020 to always fail with ENOSYS. Some functions are actually named
20021 something starting with __ and the normal name is an alias. */
20022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20023 choke me
20024 #else
20025 char (*f) () = $ac_func;
20026 #endif
20027 #ifdef __cplusplus
20028 }
20029 #endif
20030
20031 int
20032 main ()
20033 {
20034 return f != $ac_func;
20035 ;
20036 return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 eval "$as_ac_var=yes"
20062 else
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 eval "$as_ac_var=no"
20067 fi
20068 rm -f conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070 fi
20071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20073 if test `eval echo '${'$as_ac_var'}'` = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20076 _ACEOF
20077
20078 fi
20079 done
20080
20081
20082
20083
20084 for ac_func in sigaction sigprocmask sigsetmask
20085 do
20086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20087 echo "$as_me:$LINENO: checking for $ac_func" >&5
20088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20089 if eval "test \"\${$as_ac_var+set}\" = set"; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100 #define $ac_func innocuous_$ac_func
20101
20102 /* System header to define __stub macros and hopefully few prototypes,
20103 which can conflict with char $ac_func (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20106
20107 #ifdef __STDC__
20108 # include <limits.h>
20109 #else
20110 # include <assert.h>
20111 #endif
20112
20113 #undef $ac_func
20114
20115 /* Override any gcc2 internal prototype to avoid an error. */
20116 #ifdef __cplusplus
20117 extern "C"
20118 {
20119 #endif
20120 /* We use char because int might match the return type of a gcc2
20121 builtin and then its argument prototype would still apply. */
20122 char $ac_func ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20127 choke me
20128 #else
20129 char (*f) () = $ac_func;
20130 #endif
20131 #ifdef __cplusplus
20132 }
20133 #endif
20134
20135 int
20136 main ()
20137 {
20138 return f != $ac_func;
20139 ;
20140 return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20145 (eval $ac_link) 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -z "$ac_c_werror_flag"
20153 || test ! -s conftest.err'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20166 else
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 eval "$as_ac_var=no"
20171 fi
20172 rm -f conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
20174 fi
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20177 if test `eval echo '${'$as_ac_var'}'` = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20180 _ACEOF
20181
20182 fi
20183 done
20184
20185
20186 for ac_func in socketpair
20187 do
20188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20189 echo "$as_me:$LINENO: checking for $ac_func" >&5
20190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20191 if eval "test \"\${$as_ac_var+set}\" = set"; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20202 #define $ac_func innocuous_$ac_func
20203
20204 /* System header to define __stub macros and hopefully few prototypes,
20205 which can conflict with char $ac_func (); below.
20206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20207 <limits.h> exists even on freestanding compilers. */
20208
20209 #ifdef __STDC__
20210 # include <limits.h>
20211 #else
20212 # include <assert.h>
20213 #endif
20214
20215 #undef $ac_func
20216
20217 /* Override any gcc2 internal prototype to avoid an error. */
20218 #ifdef __cplusplus
20219 extern "C"
20220 {
20221 #endif
20222 /* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
20224 char $ac_func ();
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20229 choke me
20230 #else
20231 char (*f) () = $ac_func;
20232 #endif
20233 #ifdef __cplusplus
20234 }
20235 #endif
20236
20237 int
20238 main ()
20239 {
20240 return f != $ac_func;
20241 ;
20242 return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247 (eval $ac_link) 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest$ac_exeext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 eval "$as_ac_var=yes"
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 eval "$as_ac_var=no"
20273 fi
20274 rm -f conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276 fi
20277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20279 if test `eval echo '${'$as_ac_var'}'` = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20282 _ACEOF
20283
20284 fi
20285 done
20286
20287
20288 for ac_func in syscall
20289 do
20290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20293 if eval "test \"\${$as_ac_var+set}\" = set"; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20304 #define $ac_func innocuous_$ac_func
20305
20306 /* System header to define __stub macros and hopefully few prototypes,
20307 which can conflict with char $ac_func (); below.
20308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20309 <limits.h> exists even on freestanding compilers. */
20310
20311 #ifdef __STDC__
20312 # include <limits.h>
20313 #else
20314 # include <assert.h>
20315 #endif
20316
20317 #undef $ac_func
20318
20319 /* Override any gcc2 internal prototype to avoid an error. */
20320 #ifdef __cplusplus
20321 extern "C"
20322 {
20323 #endif
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20326 char $ac_func ();
20327 /* The GNU C library defines this for functions which it implements
20328 to always fail with ENOSYS. Some functions are actually named
20329 something starting with __ and the normal name is an alias. */
20330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20331 choke me
20332 #else
20333 char (*f) () = $ac_func;
20334 #endif
20335 #ifdef __cplusplus
20336 }
20337 #endif
20338
20339 int
20340 main ()
20341 {
20342 return f != $ac_func;
20343 ;
20344 return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 eval "$as_ac_var=yes"
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 eval "$as_ac_var=no"
20375 fi
20376 rm -f conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20378 fi
20379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20381 if test `eval echo '${'$as_ac_var'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20384 _ACEOF
20385
20386 fi
20387 done
20388
20389
20390 for ac_func in ttrace
20391 do
20392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20393 echo "$as_me:$LINENO: checking for $ac_func" >&5
20394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20395 if eval "test \"\${$as_ac_var+set}\" = set"; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20406 #define $ac_func innocuous_$ac_func
20407
20408 /* System header to define __stub macros and hopefully few prototypes,
20409 which can conflict with char $ac_func (); below.
20410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20411 <limits.h> exists even on freestanding compilers. */
20412
20413 #ifdef __STDC__
20414 # include <limits.h>
20415 #else
20416 # include <assert.h>
20417 #endif
20418
20419 #undef $ac_func
20420
20421 /* Override any gcc2 internal prototype to avoid an error. */
20422 #ifdef __cplusplus
20423 extern "C"
20424 {
20425 #endif
20426 /* We use char because int might match the return type of a gcc2
20427 builtin and then its argument prototype would still apply. */
20428 char $ac_func ();
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20433 choke me
20434 #else
20435 char (*f) () = $ac_func;
20436 #endif
20437 #ifdef __cplusplus
20438 }
20439 #endif
20440
20441 int
20442 main ()
20443 {
20444 return f != $ac_func;
20445 ;
20446 return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext conftest$ac_exeext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20451 (eval $ac_link) 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest$ac_exeext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 eval "$as_ac_var=yes"
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 eval "$as_ac_var=no"
20477 fi
20478 rm -f conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20480 fi
20481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20483 if test `eval echo '${'$as_ac_var'}'` = yes; then
20484 cat >>confdefs.h <<_ACEOF
20485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20486 _ACEOF
20487
20488 fi
20489 done
20490
20491
20492 for ac_func in wborder
20493 do
20494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20495 echo "$as_me:$LINENO: checking for $ac_func" >&5
20496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20497 if eval "test \"\${$as_ac_var+set}\" = set"; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20508 #define $ac_func innocuous_$ac_func
20509
20510 /* System header to define __stub macros and hopefully few prototypes,
20511 which can conflict with char $ac_func (); below.
20512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20513 <limits.h> exists even on freestanding compilers. */
20514
20515 #ifdef __STDC__
20516 # include <limits.h>
20517 #else
20518 # include <assert.h>
20519 #endif
20520
20521 #undef $ac_func
20522
20523 /* Override any gcc2 internal prototype to avoid an error. */
20524 #ifdef __cplusplus
20525 extern "C"
20526 {
20527 #endif
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20530 char $ac_func ();
20531 /* The GNU C library defines this for functions which it implements
20532 to always fail with ENOSYS. Some functions are actually named
20533 something starting with __ and the normal name is an alias. */
20534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20535 choke me
20536 #else
20537 char (*f) () = $ac_func;
20538 #endif
20539 #ifdef __cplusplus
20540 }
20541 #endif
20542
20543 int
20544 main ()
20545 {
20546 return f != $ac_func;
20547 ;
20548 return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 eval "$as_ac_var=yes"
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 eval "$as_ac_var=no"
20579 fi
20580 rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20582 fi
20583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20585 if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20588 _ACEOF
20589
20590 fi
20591 done
20592
20593
20594 # Check the return and argument types of ptrace. No canned test for
20595 # this, so roll our own.
20596 gdb_ptrace_headers='
20597 #if HAVE_SYS_TYPES_H
20598 # include <sys/types.h>
20599 #endif
20600 #if HAVE_SYS_PTRACE_H
20601 # include <sys/ptrace.h>
20602 #endif
20603 #if HAVE_UNISTD_H
20604 # include <unistd.h>
20605 #endif
20606 '
20607 # There is no point in checking if we don't have a prototype.
20608 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20609 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20610 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 $gdb_ptrace_headers
20620
20621 int
20622 main ()
20623 {
20624 #ifndef ptrace
20625 char *p = (char *) ptrace;
20626 #endif
20627
20628 ;
20629 return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
20641 { ac_try='test -z "$ac_c_werror_flag"
20642 || test ! -s conftest.err'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest.$ac_objext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654 ac_cv_have_decl_ptrace=yes
20655 else
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 ac_cv_have_decl_ptrace=no
20660 fi
20661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20662 fi
20663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20664 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20665 if test $ac_cv_have_decl_ptrace = yes; then
20666
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_DECL_PTRACE 1
20669 _ACEOF
20670
20671
20672 else
20673 cat >>confdefs.h <<_ACEOF
20674 #define HAVE_DECL_PTRACE 0
20675 _ACEOF
20676
20677
20678 : ${gdb_cv_func_ptrace_ret='int'}
20679 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20680
20681 fi
20682
20683
20684 # Check return type. Varargs (used on GNU/Linux) conflict with the
20685 # empty argument list, so check for that explicitly.
20686 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20687 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20688 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691 cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h. */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 $gdb_ptrace_headers
20698 int
20699 main ()
20700 {
20701 extern long ptrace (enum __ptrace_request, ...);
20702 ;
20703 return 0;
20704 }
20705 _ACEOF
20706 rm -f conftest.$ac_objext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708 (eval $ac_compile) 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 gdb_cv_func_ptrace_ret='long'
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h. */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 $gdb_ptrace_headers
20740 int
20741 main ()
20742 {
20743 extern int ptrace ();
20744 ;
20745 return 0;
20746 }
20747 _ACEOF
20748 rm -f conftest.$ac_objext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750 (eval $ac_compile) 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -z "$ac_c_werror_flag"
20758 || test ! -s conftest.err'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest.$ac_objext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 gdb_cv_func_ptrace_ret='int'
20771 else
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 gdb_cv_func_ptrace_ret='long'
20776 fi
20777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20778 fi
20779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20780 fi
20781 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20782 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20783
20784 cat >>confdefs.h <<_ACEOF
20785 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20786 _ACEOF
20787
20788 # Check argument types.
20789 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20790 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20791 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h. */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $gdb_ptrace_headers
20802 int
20803 main ()
20804 {
20805 extern long ptrace (enum __ptrace_request, ...);
20806 ;
20807 return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 gdb_cv_func_ptrace_args='int,int,long,long'
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837
20838 for gdb_arg1 in 'int' 'long'; do
20839 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20840 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20841 for gdb_arg4 in 'int' 'long'; do
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 $gdb_ptrace_headers
20849 int
20850 main ()
20851 {
20852
20853 extern $gdb_cv_func_ptrace_ret
20854 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20855
20856 ;
20857 return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20883 break 4;
20884 else
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888 fi
20889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20890 for gdb_arg5 in 'int *' 'int' 'long'; do
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 $gdb_ptrace_headers
20898 int
20899 main ()
20900 {
20901
20902 extern $gdb_cv_func_ptrace_ret
20903 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20904
20905 ;
20906 return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931
20932 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20933 break 5;
20934 else
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938 fi
20939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20940 done
20941 done
20942 done
20943 done
20944 done
20945 # Provide a safe default value.
20946 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20947
20948 fi
20949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20950 fi
20951 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20952 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20953 ac_save_IFS=$IFS; IFS=','
20954 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20955 IFS=$ac_save_IFS
20956 shift
20957
20958 cat >>confdefs.h <<_ACEOF
20959 #define PTRACE_TYPE_ARG3 $3
20960 _ACEOF
20961
20962 if test -n "$5"; then
20963
20964 cat >>confdefs.h <<_ACEOF
20965 #define PTRACE_TYPE_ARG5 $5
20966 _ACEOF
20967
20968 fi
20969
20970 if test "$cross_compiling" = no; then
20971 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20972 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976 if test "$cross_compiling" = yes; then
20977 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20978 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20979 { (exit 1); exit 1; }; }
20980 else
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 #if HAVE_UNISTD_H
20988 # include <unistd.h>
20989 #endif
20990
20991 int
20992 main ()
20993 {
20994 /* If this system has a BSD-style setpgrp which takes arguments,
20995 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20996 exit successfully. */
20997 exit (setpgrp (1,1) == -1 ? 0 : 1);
20998 ;
20999 return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_func_setpgrp_void=no
21014 else
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ( exit $ac_status )
21020 ac_cv_func_setpgrp_void=yes
21021 fi
21022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21023 fi
21024 fi
21025 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21026 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21027 if test $ac_cv_func_setpgrp_void = yes; then
21028
21029 cat >>confdefs.h <<\_ACEOF
21030 #define SETPGRP_VOID 1
21031 _ACEOF
21032
21033 fi
21034
21035 else
21036 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
21037 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
21038 if test "${ac_cv_func_setpgrp_void+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h. */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047
21048 #include <unistd.h>
21049
21050 int
21051 main ()
21052 {
21053
21054 if (setpgrp(1,1) == -1)
21055 exit (0);
21056 else
21057 exit (1);
21058
21059 ;
21060 return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065 (eval $ac_compile) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_func_setpgrp_void=no
21086 else
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_cv_func_setpgrp_void=yes
21091 fi
21092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093 fi
21094 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21095 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21096 if test $ac_cv_func_setpgrp_void = yes; then
21097 cat >>confdefs.h <<\_ACEOF
21098 #define SETPGRP_VOID 1
21099 _ACEOF
21100
21101 fi
21102 fi
21103
21104 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
21105 # since sigsetjmp might only be defined as a macro.
21106 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21107 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
21108 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117
21118 #include <setjmp.h>
21119
21120 int
21121 main ()
21122 {
21123 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21124 ;
21125 return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 gdb_cv_func_sigsetjmp=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 gdb_cv_func_sigsetjmp=no
21156 fi
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21158 fi
21159 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21160 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
21161 if test $gdb_cv_func_sigsetjmp = yes; then
21162
21163 cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_SIGSETJMP 1
21165 _ACEOF
21166
21167 fi
21168
21169 # Assume we'll default to using the included libiberty regex.
21170 gdb_use_included_regex=yes
21171
21172 # However, if the system regex is GNU regex, then default to *not*
21173 # using the included regex.
21174 echo "$as_me:$LINENO: checking for GNU regex" >&5
21175 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
21176 if test "${gdb_cv_have_gnu_regex+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <gnu-versions.h>
21186 int
21187 main ()
21188 {
21189 #define REGEX_INTERFACE_VERSION 1
21190 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21191 # error "Version mismatch"
21192 #endif
21193 ;
21194 return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 gdb_cv_have_gnu_regex=yes
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 gdb_cv_have_gnu_regex=no
21225 fi
21226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21229 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
21230 if test $gdb_cv_have_gnu_regex = yes; then
21231 gdb_use_included_regex=no
21232 fi
21233
21234
21235 # Check whether --with-included-regex or --without-included-regex was given.
21236 if test "${with_included_regex+set}" = set; then
21237 withval="$with_included_regex"
21238 gdb_with_regex=$withval
21239 else
21240 gdb_with_regex=$gdb_use_included_regex
21241 fi;
21242 if test "$gdb_with_regex" = yes; then
21243
21244 cat >>confdefs.h <<\_ACEOF
21245 #define USE_INCLUDED_REGEX 1
21246 _ACEOF
21247
21248 fi
21249
21250 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
21251 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21252 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
21253 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h. */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <sys/param.h>
21263 #include <sys/proc.h>
21264
21265
21266 int
21267 main ()
21268 {
21269 static struct thread ac_aggr;
21270 if (ac_aggr.td_pcb)
21271 return 0;
21272 ;
21273 return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_c_werror_flag"
21286 || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_cv_member_struct_thread_td_pcb=yes
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h. */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <sys/param.h>
21310 #include <sys/proc.h>
21311
21312
21313 int
21314 main ()
21315 {
21316 static struct thread ac_aggr;
21317 if (sizeof ac_aggr.td_pcb)
21318 return 0;
21319 ;
21320 return 0;
21321 }
21322 _ACEOF
21323 rm -f conftest.$ac_objext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325 (eval $ac_compile) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
21332 { ac_try='test -z "$ac_c_werror_flag"
21333 || test ! -s conftest.err'
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; } &&
21339 { ac_try='test -s conftest.$ac_objext'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_member_struct_thread_td_pcb=yes
21346 else
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350 ac_cv_member_struct_thread_td_pcb=no
21351 fi
21352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21357 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
21358 if test $ac_cv_member_struct_thread_td_pcb = yes; then
21359
21360 cat >>confdefs.h <<_ACEOF
21361 #define HAVE_STRUCT_THREAD_TD_PCB 1
21362 _ACEOF
21363
21364
21365 fi
21366
21367
21368 # See if <sys/lwp.h> defines `struct lwp`.
21369 echo "$as_me:$LINENO: checking for struct lwp" >&5
21370 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
21371 if test "${gdb_cv_struct_lwp+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h. */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <sys/param.h>
21381 #include <sys/lwp.h>
21382 int
21383 main ()
21384 {
21385 struct lwp l;
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 gdb_cv_struct_lwp=yes
21413 else
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417 gdb_cv_struct_lwp=no
21418 fi
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21420 fi
21421 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21422 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
21423 if test $gdb_cv_struct_lwp = yes; then
21424
21425 cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_STRUCT_LWP 1
21427 _ACEOF
21428
21429 fi
21430
21431 # See if <machine/reg.h> degines `struct reg'.
21432 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21433 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
21434 if test "${gdb_cv_struct_reg+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 else
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <sys/types.h>
21444 #include <machine/reg.h>
21445 int
21446 main ()
21447 {
21448 struct reg r;
21449 ;
21450 return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455 (eval $ac_compile) 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 gdb_cv_struct_reg=yes
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 gdb_cv_struct_reg=no
21481 fi
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21483 fi
21484 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21485 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
21486 if test $gdb_cv_struct_reg = yes; then
21487
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_STRUCT_REG 1
21490 _ACEOF
21491
21492 fi
21493
21494 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21495 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21496 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21497 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
21498 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h. */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 #include <machine/reg.h>
21508
21509 int
21510 main ()
21511 {
21512 static struct reg ac_aggr;
21513 if (ac_aggr.r_fs)
21514 return 0;
21515 ;
21516 return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21521 (eval $ac_compile) 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
21528 { ac_try='test -z "$ac_c_werror_flag"
21529 || test ! -s conftest.err'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21532 ac_status=$?
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; } &&
21535 { ac_try='test -s conftest.$ac_objext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_member_struct_reg_r_fs=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <machine/reg.h>
21553
21554 int
21555 main ()
21556 {
21557 static struct reg ac_aggr;
21558 if (sizeof ac_aggr.r_fs)
21559 return 0;
21560 ;
21561 return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566 (eval $ac_compile) 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
21573 { ac_try='test -z "$ac_c_werror_flag"
21574 || test ! -s conftest.err'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest.$ac_objext'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ac_cv_member_struct_reg_r_fs=yes
21587 else
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 ac_cv_member_struct_reg_r_fs=no
21592 fi
21593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21594 fi
21595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596 fi
21597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21598 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21599 if test $ac_cv_member_struct_reg_r_fs = yes; then
21600
21601 cat >>confdefs.h <<_ACEOF
21602 #define HAVE_STRUCT_REG_R_FS 1
21603 _ACEOF
21604
21605
21606 fi
21607 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21608 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21609 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <machine/reg.h>
21619
21620 int
21621 main ()
21622 {
21623 static struct reg ac_aggr;
21624 if (ac_aggr.r_gs)
21625 return 0;
21626 ;
21627 return 0;
21628 }
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21632 (eval $ac_compile) 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -z "$ac_c_werror_flag"
21640 || test ! -s conftest.err'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; } &&
21646 { ac_try='test -s conftest.$ac_objext'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
21652 ac_cv_member_struct_reg_r_gs=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <machine/reg.h>
21664
21665 int
21666 main ()
21667 {
21668 static struct reg ac_aggr;
21669 if (sizeof ac_aggr.r_gs)
21670 return 0;
21671 ;
21672 return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677 (eval $ac_compile) 2>conftest.er1
21678 ac_status=$?
21679 grep -v '^ *+' conftest.er1 >conftest.err
21680 rm -f conftest.er1
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
21684 { ac_try='test -z "$ac_c_werror_flag"
21685 || test ! -s conftest.err'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_member_struct_reg_r_gs=yes
21698 else
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ac_cv_member_struct_reg_r_gs=no
21703 fi
21704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21705 fi
21706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707 fi
21708 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21709 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21710 if test $ac_cv_member_struct_reg_r_gs = yes; then
21711
21712 cat >>confdefs.h <<_ACEOF
21713 #define HAVE_STRUCT_REG_R_GS 1
21714 _ACEOF
21715
21716
21717 fi
21718
21719
21720 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21721 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21722 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21723 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726 cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h. */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <sys/ptrace.h>
21733 int
21734 main ()
21735 {
21736 PTRACE_GETREGS;
21737 ;
21738 return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743 (eval $ac_compile) 2>conftest.er1
21744 ac_status=$?
21745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
21750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest.$ac_objext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 gdb_cv_have_ptrace_getregs=yes
21764 else
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 gdb_cv_have_ptrace_getregs=no
21769 fi
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771 fi
21772
21773 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21774 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21775 if test $gdb_cv_have_ptrace_getregs = yes; then
21776
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_PTRACE_GETREGS 1
21779 _ACEOF
21780
21781 fi
21782
21783 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21784 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21785 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21786 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 #include <sys/ptrace.h>
21796 int
21797 main ()
21798 {
21799 PTRACE_GETFPXREGS;
21800 ;
21801 return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 gdb_cv_have_ptrace_getfpxregs=yes
21827 else
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 gdb_cv_have_ptrace_getfpxregs=no
21832 fi
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21834 fi
21835
21836 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21837 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21838 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21839
21840 cat >>confdefs.h <<\_ACEOF
21841 #define HAVE_PTRACE_GETFPXREGS 1
21842 _ACEOF
21843
21844 fi
21845
21846 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21847 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21848 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21849 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852 cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h. */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 #include <sys/types.h>
21859 #include <sys/ptrace.h>
21860 int
21861 main ()
21862 {
21863 PT_GETDBREGS;
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870 (eval $ac_compile) 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest.$ac_objext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 gdb_cv_have_pt_getdbregs=yes
21891 else
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 gdb_cv_have_pt_getdbregs=no
21896 fi
21897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21898 fi
21899
21900 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21901 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21902 if test $gdb_cv_have_pt_getdbregs = yes; then
21903
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_PT_GETDBREGS 1
21906 _ACEOF
21907
21908 fi
21909
21910 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21911 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21912 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21913 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916 cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h. */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 #include <sys/types.h>
21923 #include <sys/ptrace.h>
21924 int
21925 main ()
21926 {
21927 PT_GETXMMREGS;
21928 ;
21929 return 0;
21930 }
21931 _ACEOF
21932 rm -f conftest.$ac_objext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934 (eval $ac_compile) 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -z "$ac_c_werror_flag"
21942 || test ! -s conftest.err'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; } &&
21948 { ac_try='test -s conftest.$ac_objext'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 gdb_cv_have_pt_getxmmregs=yes
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 gdb_cv_have_pt_getxmmregs=no
21960 fi
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 fi
21963
21964 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21965 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21966 if test $gdb_cv_have_pt_getxmmregs = yes; then
21967
21968 cat >>confdefs.h <<\_ACEOF
21969 #define HAVE_PT_GETXMMREGS 1
21970 _ACEOF
21971
21972 fi
21973
21974 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21975
21976 if test "${target}" = "${host}"; then
21977 case "${host}" in
21978 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21979
21980 cat >>confdefs.h <<\_ACEOF
21981 #define NEW_PROC_API 1
21982 _ACEOF
21983
21984 ;;
21985 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21986
21987 cat >>confdefs.h <<\_ACEOF
21988 #define NEW_PROC_API 1
21989 _ACEOF
21990
21991 ;;
21992 mips-sgi-irix5*)
21993 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21994
21995 cat >>confdefs.h <<\_ACEOF
21996 #define _KMEMUSER 1
21997 _ACEOF
21998
21999 ;;
22000 esac
22001 fi
22002
22003 if test "$ac_cv_header_sys_procfs_h" = yes; then
22004 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
22005 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
22006 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015
22016 #define _SYSCALL32
22017 #include <sys/procfs.h>
22018 int
22019 main ()
22020 {
22021 pstatus_t avar
22022 ;
22023 return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest.$ac_objext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 bfd_cv_have_sys_procfs_type_pstatus_t=yes
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053 bfd_cv_have_sys_procfs_type_pstatus_t=no
22054
22055 fi
22056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22057 fi
22058
22059 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
22060
22061 cat >>confdefs.h <<\_ACEOF
22062 #define HAVE_PSTATUS_T 1
22063 _ACEOF
22064
22065 fi
22066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
22067 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
22068
22069 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
22070 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
22071 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h. */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080
22081 #define _SYSCALL32
22082 #include <sys/procfs.h>
22083 int
22084 main ()
22085 {
22086 prrun_t avar
22087 ;
22088 return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093 (eval $ac_compile) 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 bfd_cv_have_sys_procfs_type_prrun_t=yes
22114 else
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 bfd_cv_have_sys_procfs_type_prrun_t=no
22119
22120 fi
22121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122 fi
22123
22124 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
22125
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_PRRUN_T 1
22128 _ACEOF
22129
22130 fi
22131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22132 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
22133
22134 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22135 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
22136 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145
22146 #define _SYSCALL32
22147 #include <sys/procfs.h>
22148 int
22149 main ()
22150 {
22151 gregset_t avar
22152 ;
22153 return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158 (eval $ac_compile) 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 bfd_cv_have_sys_procfs_type_gregset_t=yes
22179 else
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 bfd_cv_have_sys_procfs_type_gregset_t=no
22184
22185 fi
22186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22187 fi
22188
22189 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
22190
22191 cat >>confdefs.h <<\_ACEOF
22192 #define HAVE_GREGSET_T 1
22193 _ACEOF
22194
22195 fi
22196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
22198
22199 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22200 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
22201 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204 cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h. */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210
22211 #define _SYSCALL32
22212 #include <sys/procfs.h>
22213 int
22214 main ()
22215 {
22216 fpregset_t avar
22217 ;
22218 return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22223 (eval $ac_compile) 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } &&
22230 { ac_try='test -z "$ac_c_werror_flag"
22231 || test ! -s conftest.err'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 bfd_cv_have_sys_procfs_type_fpregset_t=yes
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248 bfd_cv_have_sys_procfs_type_fpregset_t=no
22249
22250 fi
22251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252 fi
22253
22254 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_FPREGSET_T 1
22258 _ACEOF
22259
22260 fi
22261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22262 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
22263
22264 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22265 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
22266 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h. */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275
22276 #define _SYSCALL32
22277 #include <sys/procfs.h>
22278 int
22279 main ()
22280 {
22281 prgregset_t avar
22282 ;
22283 return 0;
22284 }
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288 (eval $ac_compile) 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 bfd_cv_have_sys_procfs_type_prgregset_t=yes
22309 else
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 bfd_cv_have_sys_procfs_type_prgregset_t=no
22314
22315 fi
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22317 fi
22318
22319 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22320
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_PRGREGSET_T 1
22323 _ACEOF
22324
22325 fi
22326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22327 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
22328
22329 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22330 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
22331 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340
22341 #define _SYSCALL32
22342 #include <sys/procfs.h>
22343 int
22344 main ()
22345 {
22346 prfpregset_t avar
22347 ;
22348 return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353 (eval $ac_compile) 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -z "$ac_c_werror_flag"
22361 || test ! -s conftest.err'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest.$ac_objext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 bfd_cv_have_sys_procfs_type_prfpregset_t=no
22379
22380 fi
22381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22382 fi
22383
22384 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22385
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_PRFPREGSET_T 1
22388 _ACEOF
22389
22390 fi
22391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22392 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
22393
22394 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22395 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
22396 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399 cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h. */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405
22406 #define _SYSCALL32
22407 #include <sys/procfs.h>
22408 int
22409 main ()
22410 {
22411 prgregset32_t avar
22412 ;
22413 return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>conftest.er1
22419 ac_status=$?
22420 grep -v '^ *+' conftest.er1 >conftest.err
22421 rm -f conftest.er1
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } &&
22425 { ac_try='test -z "$ac_c_werror_flag"
22426 || test ! -s conftest.err'
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22439 else
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 bfd_cv_have_sys_procfs_type_prgregset32_t=no
22444
22445 fi
22446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22447 fi
22448
22449 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22450
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_PRGREGSET32_T 1
22453 _ACEOF
22454
22455 fi
22456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22457 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
22458
22459 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22460 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
22461 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464 cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470
22471 #define _SYSCALL32
22472 #include <sys/procfs.h>
22473 int
22474 main ()
22475 {
22476 prfpregset32_t avar
22477 ;
22478 return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483 (eval $ac_compile) 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_c_werror_flag"
22491 || test ! -s conftest.err'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22504 else
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22509
22510 fi
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512 fi
22513
22514 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22515
22516 cat >>confdefs.h <<\_ACEOF
22517 #define HAVE_PRFPREGSET32_T 1
22518 _ACEOF
22519
22520 fi
22521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
22523
22524 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22525 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
22526 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535
22536 #define _SYSCALL32
22537 #include <sys/procfs.h>
22538 int
22539 main ()
22540 {
22541 lwpid_t avar
22542 ;
22543 return 0;
22544 }
22545 _ACEOF
22546 rm -f conftest.$ac_objext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22548 (eval $ac_compile) 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 bfd_cv_have_sys_procfs_type_lwpid_t=yes
22569 else
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573 bfd_cv_have_sys_procfs_type_lwpid_t=no
22574
22575 fi
22576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22577 fi
22578
22579 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_LWPID_T 1
22583 _ACEOF
22584
22585 fi
22586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22587 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22588
22589 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22590 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22591 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h. */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600
22601 #define _SYSCALL32
22602 #include <sys/procfs.h>
22603 int
22604 main ()
22605 {
22606 psaddr_t avar
22607 ;
22608 return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -z "$ac_c_werror_flag"
22621 || test ! -s conftest.err'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 bfd_cv_have_sys_procfs_type_psaddr_t=yes
22634 else
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638 bfd_cv_have_sys_procfs_type_psaddr_t=no
22639
22640 fi
22641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22642 fi
22643
22644 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22645
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_PSADDR_T 1
22648 _ACEOF
22649
22650 fi
22651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22652 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22653
22654 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22655 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22656 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665
22666 #define _SYSCALL32
22667 #include <sys/procfs.h>
22668 int
22669 main ()
22670 {
22671 prsysent_t avar
22672 ;
22673 return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678 (eval $ac_compile) 2>conftest.er1
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
22685 { ac_try='test -z "$ac_c_werror_flag"
22686 || test ! -s conftest.err'
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); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22699 else
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703 bfd_cv_have_sys_procfs_type_prsysent_t=no
22704
22705 fi
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708
22709 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22710
22711 cat >>confdefs.h <<\_ACEOF
22712 #define HAVE_PRSYSENT_T 1
22713 _ACEOF
22714
22715 fi
22716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22717 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22718
22719 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22720 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22721 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 else
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730
22731 #define _SYSCALL32
22732 #include <sys/procfs.h>
22733 int
22734 main ()
22735 {
22736 pr_sigset_t avar
22737 ;
22738 return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743 (eval $ac_compile) 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -z "$ac_c_werror_flag"
22751 || test ! -s conftest.err'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22764 else
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22769
22770 fi
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22772 fi
22773
22774 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22775
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_PR_SIGSET_T 1
22778 _ACEOF
22779
22780 fi
22781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22782 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22783
22784 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22785 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22786 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789 cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h. */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22795
22796 #define _SYSCALL32
22797 #include <sys/procfs.h>
22798 int
22799 main ()
22800 {
22801 pr_sigaction64_t avar
22802 ;
22803 return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22809 ac_status=$?
22810 grep -v '^ *+' conftest.er1 >conftest.err
22811 rm -f conftest.er1
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
22815 { ac_try='test -z "$ac_c_werror_flag"
22816 || test ! -s conftest.err'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22819 ac_status=$?
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22829 else
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22834
22835 fi
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837 fi
22838
22839 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22840
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_PR_SIGACTION64_T 1
22843 _ACEOF
22844
22845 fi
22846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22847 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22848
22849 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22850 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22851 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854 cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h. */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860
22861 #define _SYSCALL32
22862 #include <sys/procfs.h>
22863 int
22864 main ()
22865 {
22866 pr_siginfo64_t avar
22867 ;
22868 return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22874 ac_status=$?
22875 grep -v '^ *+' conftest.er1 >conftest.err
22876 rm -f conftest.er1
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22894 else
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22899
22900 fi
22901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22902 fi
22903
22904 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_PR_SIGINFO64_T 1
22908 _ACEOF
22909
22910 fi
22911 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22912 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22913
22914
22915
22916
22917
22918 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22919 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22920 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22921 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 else
22924 if test "$cross_compiling" = yes; then
22925 gdb_cv_prfpregset_t_broken=yes
22926 else
22927 cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h. */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <sys/procfs.h>
22934 int main ()
22935 {
22936 if (sizeof (prfpregset_t) == sizeof (void *))
22937 return 1;
22938 return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
22952 gdb_cv_prfpregset_t_broken=no
22953 else
22954 echo "$as_me: program exited with status $ac_status" >&5
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958 ( exit $ac_status )
22959 gdb_cv_prfpregset_t_broken=yes
22960 fi
22961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22962 fi
22963 fi
22964
22965 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22966 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22967 if test $gdb_cv_prfpregset_t_broken = yes; then
22968
22969 cat >>confdefs.h <<\_ACEOF
22970 #define PRFPREGSET_T_BROKEN 1
22971 _ACEOF
22972
22973 fi
22974 fi
22975
22976
22977 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22978 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22979 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <unistd.h>
22989 #include <sys/types.h>
22990 #include <sys/procfs.h>
22991
22992 int
22993 main ()
22994 {
22995
22996 int dummy;;
22997 dummy = ioctl(0, PIOCSET, &dummy);
22998
22999 ;
23000 return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -z "$ac_c_werror_flag"
23013 || test ! -s conftest.err'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 gdb_cv_have_procfs_piocset=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 gdb_cv_have_procfs_piocset=no
23031 fi
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23033 fi
23034
23035 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
23036 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
23037 if test $gdb_cv_have_procfs_piocset = yes; then
23038
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_PROCFS_PIOCSET 1
23041 _ACEOF
23042
23043 fi
23044 fi
23045
23046 if test ${host} = ${target} ; then
23047
23048 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
23049 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
23050 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h. */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 #include <link.h>
23060 int
23061 main ()
23062 {
23063 struct link_map lm; (void) lm.l_addr;
23064 ;
23065 return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23070 (eval $ac_compile) 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
23077 { ac_try='test -z "$ac_c_werror_flag"
23078 || test ! -s conftest.err'
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 gdb_cv_have_struct_link_map_with_l_members=yes
23091 else
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095 gdb_cv_have_struct_link_map_with_l_members=no
23096 fi
23097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23098 fi
23099
23100 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
23101 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
23102 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
23103
23104 cat >>confdefs.h <<\_ACEOF
23105 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
23106 _ACEOF
23107
23108 fi
23109
23110
23111 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
23112 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
23113 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 #include <sys/types.h>
23123 #include <link.h>
23124 int
23125 main ()
23126 {
23127 struct link_map lm; (void) lm.lm_addr;
23128 ;
23129 return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 gdb_cv_have_struct_link_map_with_lm_members=yes
23155 else
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159 gdb_cv_have_struct_link_map_with_lm_members=no
23160 fi
23161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23162 fi
23163
23164 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23165 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
23166 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
23170 _ACEOF
23171
23172 fi
23173
23174
23175 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23176 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
23177 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <sys/types.h>
23187 #ifdef HAVE_NLIST_H
23188 #include <nlist.h>
23189 #endif
23190 #include <link.h>
23191 int
23192 main ()
23193 {
23194 struct so_map lm; (void) lm.som_addr;
23195 ;
23196 return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 gdb_cv_have_struct_so_map_with_som_members=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 gdb_cv_have_struct_so_map_with_som_members=no
23227 fi
23228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23229 fi
23230
23231 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23232 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
23233 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23234
23235 cat >>confdefs.h <<\_ACEOF
23236 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23237 _ACEOF
23238
23239 fi
23240
23241
23242 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23243 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
23244 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247 cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h. */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 #define _SYSCALL32
23254 #include <sys/link.h>
23255 int
23256 main ()
23257 {
23258 struct link_map32 l;
23259 ;
23260 return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 gdb_cv_have_struct_link_map32=yes
23286 else
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 gdb_cv_have_struct_link_map32=no
23291 fi
23292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23293 fi
23294
23295 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23296 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
23297 if test $gdb_cv_have_struct_link_map32 = yes; then
23298
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_STRUCT_LINK_MAP32 1
23301 _ACEOF
23302
23303
23304 cat >>confdefs.h <<\_ACEOF
23305 #define _SYSCALL32 1
23306 _ACEOF
23307
23308 fi
23309 fi
23310
23311 # Check if the compiler supports the `long long' type.
23312
23313 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23314 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
23315 if test "${gdb_cv_c_long_long+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h. */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 extern long long foo;
23325 int
23326 main ()
23327 {
23328 switch (foo & 2) { case 0: return 1; }
23329 ;
23330 return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335 (eval $ac_compile) 2>conftest.er1
23336 ac_status=$?
23337 grep -v '^ *+' conftest.er1 >conftest.err
23338 rm -f conftest.er1
23339 cat conftest.err >&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } &&
23342 { ac_try='test -z "$ac_c_werror_flag"
23343 || test ! -s conftest.err'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest.$ac_objext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
23355 gdb_cv_c_long_long=yes
23356 else
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23359
23360 gdb_cv_c_long_long=no
23361 fi
23362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23363 fi
23364 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23365 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
23366 if test $gdb_cv_c_long_long = yes; then
23367
23368 cat >>confdefs.h <<\_ACEOF
23369 #define CC_HAS_LONG_LONG 1
23370 _ACEOF
23371
23372 fi
23373
23374 # Check if the compiler and runtime support printing long longs.
23375
23376 echo "$as_me:$LINENO: checking for long long support in printf" >&5
23377 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
23378 if test "${gdb_cv_printf_has_long_long+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381 if test "$cross_compiling" = yes; then
23382 gdb_cv_printf_has_long_long=no
23383 else
23384 cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h. */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 $ac_includes_default
23391 int
23392 main ()
23393 {
23394 char buf[32];
23395 long long l = 0;
23396 l = (l << 16) + 0x0123;
23397 l = (l << 16) + 0x4567;
23398 l = (l << 16) + 0x89ab;
23399 l = (l << 16) + 0xcdef;
23400 sprintf (buf, "0x%016llx", l);
23401 return (strcmp ("0x0123456789abcdef", buf));
23402 ;
23403 return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 gdb_cv_printf_has_long_long=yes
23418 else
23419 echo "$as_me: program exited with status $ac_status" >&5
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ( exit $ac_status )
23424 gdb_cv_printf_has_long_long=no
23425 fi
23426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23427 fi
23428 fi
23429 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23430 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
23431 if test $gdb_cv_printf_has_long_long = yes; then
23432
23433 cat >>confdefs.h <<\_ACEOF
23434 #define PRINTF_HAS_LONG_LONG 1
23435 _ACEOF
23436
23437 fi
23438
23439 # Check if the compiler and runtime support printing decfloats.
23440
23441 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23442 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23443 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446 if test "$cross_compiling" = yes; then
23447 gdb_cv_printf_has_decfloat=no
23448 else
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 $ac_includes_default
23456 int
23457 main ()
23458 {
23459 char buf[64];
23460 _Decimal32 d32 = 1.2345df;
23461 _Decimal64 d64 = 1.2345dd;
23462 _Decimal128 d128 = 1.2345dl;
23463 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23464 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23465 ;
23466 return 0;
23467 }
23468 _ACEOF
23469 rm -f conftest$ac_exeext
23470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23471 (eval $ac_link) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 gdb_cv_printf_has_decfloat=yes
23481 else
23482 echo "$as_me: program exited with status $ac_status" >&5
23483 echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486 ( exit $ac_status )
23487 gdb_cv_printf_has_decfloat=no
23488 fi
23489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490 fi
23491 fi
23492 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23493 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23494 if test $gdb_cv_printf_has_decfloat = yes; then
23495
23496 cat >>confdefs.h <<\_ACEOF
23497 #define PRINTF_HAS_DECFLOAT 1
23498 _ACEOF
23499
23500 fi
23501
23502 # Check if the compiler supports the `long double' type. We can't use
23503 # AC_C_LONG_DOUBLE because that one does additional checks on the
23504 # constants defined in <float.h> that fail on some systems,
23505 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23506
23507 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23508 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
23509 if test "${gdb_cv_c_long_double+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 else
23512 cat >conftest.$ac_ext <<_ACEOF
23513 /* confdefs.h. */
23514 _ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h. */
23518 long double foo;
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23522 (eval $ac_compile) 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
23529 { ac_try='test -z "$ac_c_werror_flag"
23530 || test ! -s conftest.err'
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; } &&
23536 { ac_try='test -s conftest.$ac_objext'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 gdb_cv_c_long_double=yes
23543 else
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547 gdb_cv_c_long_double=no
23548 fi
23549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23550 fi
23551 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23552 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
23553 if test $gdb_cv_c_long_double = yes; then
23554
23555 cat >>confdefs.h <<\_ACEOF
23556 #define HAVE_LONG_DOUBLE 1
23557 _ACEOF
23558
23559 fi
23560
23561 # Check if the compiler and runtime support printing long doubles.
23562
23563 echo "$as_me:$LINENO: checking for long double support in printf" >&5
23564 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23565 if test "${gdb_cv_printf_has_long_double+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568 if test "$cross_compiling" = yes; then
23569 gdb_cv_printf_has_long_double=no
23570 else
23571 cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h. */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577 $ac_includes_default
23578 int
23579 main ()
23580 {
23581 char buf[16];
23582 long double f = 3.141592653;
23583 sprintf (buf, "%Lg", f);
23584 return (strncmp ("3.14159", buf, 7));
23585 ;
23586 return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest$ac_exeext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23591 (eval $ac_link) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 gdb_cv_printf_has_long_double=yes
23601 else
23602 echo "$as_me: program exited with status $ac_status" >&5
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23605
23606 ( exit $ac_status )
23607 gdb_cv_printf_has_long_double=no
23608 fi
23609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23610 fi
23611 fi
23612 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23613 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23614 if test $gdb_cv_printf_has_long_double = yes; then
23615
23616 cat >>confdefs.h <<\_ACEOF
23617 #define PRINTF_HAS_LONG_DOUBLE 1
23618 _ACEOF
23619
23620 fi
23621
23622 # Check if the compiler and runtime support scanning long doubles.
23623
23624 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23625 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23626 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629 if test "$cross_compiling" = yes; then
23630 gdb_cv_scanf_has_long_double=no
23631 else
23632 cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 #include <stdio.h>
23639 int
23640 main ()
23641 {
23642 char *buf = "3.141592653";
23643 long double f = 0;
23644 sscanf (buf, "%Lg", &f);
23645 return !(f > 3.14159 && f < 3.14160);
23646 ;
23647 return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
23661 gdb_cv_scanf_has_long_double=yes
23662 else
23663 echo "$as_me: program exited with status $ac_status" >&5
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 ( exit $ac_status )
23668 gdb_cv_scanf_has_long_double=no
23669 fi
23670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23671 fi
23672 fi
23673 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23674 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23675 if test $gdb_cv_scanf_has_long_double = yes; then
23676
23677 cat >>confdefs.h <<\_ACEOF
23678 #define SCANF_HAS_LONG_DOUBLE 1
23679 _ACEOF
23680
23681 fi
23682
23683 case ${host_os} in
23684 aix*)
23685 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23686 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23687 if test "${gdb_cv_bigtoc+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690
23691 SAVE_LDFLAGS=$LDFLAGS
23692
23693 case $GCC in
23694 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23695 *) gdb_cv_bigtoc=-bbigtoc ;;
23696 esac
23697
23698 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23699 cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h. */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23705
23706 int
23707 main ()
23708 {
23709 int i;
23710 ;
23711 return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716 (eval $ac_link) 2>conftest.er1
23717 ac_status=$?
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
23723 { ac_try='test -z "$ac_c_werror_flag"
23724 || test ! -s conftest.err'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; } &&
23730 { ac_try='test -s conftest$ac_exeext'
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; }; then
23736 :
23737 else
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741 gdb_cv_bigtoc=
23742 fi
23743 rm -f conftest.err conftest.$ac_objext \
23744 conftest$ac_exeext conftest.$ac_ext
23745 LDFLAGS="${SAVE_LDFLAGS}"
23746
23747 fi
23748 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23749 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23750 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23751 ;;
23752 esac
23753
23754
23755
23756 if test ${build} = ${host} -a ${host} = ${target} ; then
23757 case ${host_os} in
23758 hpux*)
23759 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23760 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23761 if test -f /usr/include/dce/cma_config.h ; then
23762 if test "$GCC" = "yes" ; then
23763 echo "$as_me:$LINENO: result: yes" >&5
23764 echo "${ECHO_T}yes" >&6
23765
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_HPUX_THREAD_SUPPORT 1
23768 _ACEOF
23769
23770 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23771 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23772 else
23773 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23774 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23775 fi
23776 else
23777 echo "$as_me:$LINENO: result: no" >&5
23778 echo "${ECHO_T}no" >&6
23779 fi
23780 ;;
23781 solaris*)
23782 # See if thread_db library is around for Solaris thread debugging.
23783 # Note that we must explicitly test for version 1 of the library
23784 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23785 # the same API.
23786 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23787 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23788 if test -f /usr/lib/libthread_db.so.1 ; then
23789 echo "$as_me:$LINENO: result: yes" >&5
23790 echo "${ECHO_T}yes" >&6
23791
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_THREAD_DB_LIB 1
23794 _ACEOF
23795
23796 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23797 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23798
23799 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23800 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23801 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804 ac_check_lib_save_LIBS=$LIBS
23805 LIBS="-ldl $LIBS"
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812
23813 /* Override any gcc2 internal prototype to avoid an error. */
23814 #ifdef __cplusplus
23815 extern "C"
23816 #endif
23817 /* We use char because int might match the return type of a gcc2
23818 builtin and then its argument prototype would still apply. */
23819 char dlopen ();
23820 int
23821 main ()
23822 {
23823 dlopen ();
23824 ;
23825 return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23830 (eval $ac_link) 2>conftest.er1
23831 ac_status=$?
23832 grep -v '^ *+' conftest.er1 >conftest.err
23833 rm -f conftest.er1
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } &&
23837 { ac_try='test -z "$ac_c_werror_flag"
23838 || test ! -s conftest.err'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; } &&
23844 { ac_try='test -s conftest$ac_exeext'
23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23850 ac_cv_lib_dl_dlopen=yes
23851 else
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855 ac_cv_lib_dl_dlopen=no
23856 fi
23857 rm -f conftest.err conftest.$ac_objext \
23858 conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23860 fi
23861 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23862 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23863 if test $ac_cv_lib_dl_dlopen = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_LIBDL 1
23866 _ACEOF
23867
23868 LIBS="-ldl $LIBS"
23869
23870 fi
23871
23872 if test "$GCC" = "yes" ; then
23873 # The GNU linker requires the -export-dynamic option to make
23874 # all symbols visible in the dynamic symbol table.
23875 hold_ldflags=$LDFLAGS
23876 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23877 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23878 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h. */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885
23886 int
23887 main ()
23888 {
23889 int i;
23890 ;
23891 return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest.$ac_objext conftest$ac_exeext
23895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23896 (eval $ac_link) 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } &&
23903 { ac_try='test -z "$ac_c_werror_flag"
23904 || test ! -s conftest.err'
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; } &&
23910 { ac_try='test -s conftest$ac_exeext'
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 found=yes
23917 else
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921 found=no
23922 fi
23923 rm -f conftest.err conftest.$ac_objext \
23924 conftest$ac_exeext conftest.$ac_ext
23925 LDFLAGS=$hold_ldflags
23926 echo "$as_me:$LINENO: result: $found" >&5
23927 echo "${ECHO_T}$found" >&6
23928 if test $found = yes; then
23929 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23930 fi
23931 fi
23932 # Sun randomly tweaked the prototypes in <proc_service.h>
23933 # at one point.
23934 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23935 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23936 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h. */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946
23947 #include <proc_service.h>
23948 ps_err_e ps_pdwrite
23949 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23950
23951 int
23952 main ()
23953 {
23954
23955 ;
23956 return 0;
23957 }
23958 _ACEOF
23959 rm -f conftest.$ac_objext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961 (eval $ac_compile) 2>conftest.er1
23962 ac_status=$?
23963 grep -v '^ *+' conftest.er1 >conftest.err
23964 rm -f conftest.er1
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } &&
23968 { ac_try='test -z "$ac_c_werror_flag"
23969 || test ! -s conftest.err'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 gdb_cv_proc_service_is_old=no
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 gdb_cv_proc_service_is_old=yes
23987 fi
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989
23990 fi
23991
23992 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23993 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23994 if test $gdb_cv_proc_service_is_old = yes; then
23995
23996 cat >>confdefs.h <<\_ACEOF
23997 #define PROC_SERVICE_IS_OLD 1
23998 _ACEOF
23999
24000 fi
24001 else
24002 echo "$as_me:$LINENO: result: no" >&5
24003 echo "${ECHO_T}no" >&6
24004 fi
24005 ;;
24006 aix*)
24007 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
24008 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
24009 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24011 else
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 #include <sys/pthdebug.h>
24019 int
24020 main ()
24021 {
24022 #ifndef PTHDB_VERSION_3
24023 #error
24024 #endif
24025 ;
24026 return 0;
24027 }
24028 _ACEOF
24029 rm -f conftest.$ac_objext
24030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24031 (eval $ac_compile) 2>conftest.er1
24032 ac_status=$?
24033 grep -v '^ *+' conftest.er1 >conftest.err
24034 rm -f conftest.er1
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
24038 { ac_try='test -z "$ac_c_werror_flag"
24039 || test ! -s conftest.err'
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; } &&
24045 { ac_try='test -s conftest.$ac_objext'
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24048 ac_status=$?
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; }; then
24051 gdb_cv_have_aix_thread_debug=yes
24052 else
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 gdb_cv_have_aix_thread_debug=no
24057 fi
24058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24059 fi
24060
24061 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
24062 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
24063 if test $gdb_cv_have_aix_thread_debug = yes; then
24064 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
24065 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
24066 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
24067 fi
24068 ;;
24069 esac
24070
24071 fi
24072
24073 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
24074 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
24075 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
24076 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h. */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <thread_db.h>
24086 int
24087 main ()
24088 {
24089 int i = TD_NOTALLOC;
24090 ;
24091 return 0;
24092 }
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 gdb_cv_thread_db_h_has_td_notalloc=yes
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121 gdb_cv_thread_db_h_has_td_notalloc=no
24122
24123 fi
24124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24125
24126 fi
24127 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24128 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
24129 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
24130 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
24131 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134 cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h. */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 #include <thread_db.h>
24141 int
24142 main ()
24143 {
24144 int i = TD_VERSION;
24145 ;
24146 return 0;
24147 }
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
24158 { ac_try='test -z "$ac_c_werror_flag"
24159 || test ! -s conftest.err'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; } &&
24165 { ac_try='test -s conftest.$ac_objext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 gdb_cv_thread_db_h_has_td_version=yes
24172 else
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176 gdb_cv_thread_db_h_has_td_version=no
24177
24178 fi
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180
24181 fi
24182 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24183 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
24184 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
24185 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
24186 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 #include <thread_db.h>
24196 int
24197 main ()
24198 {
24199 int i = TD_NOTLS;
24200 ;
24201 return 0;
24202 }
24203 _ACEOF
24204 rm -f conftest.$ac_objext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24206 (eval $ac_compile) 2>conftest.er1
24207 ac_status=$?
24208 grep -v '^ *+' conftest.er1 >conftest.err
24209 rm -f conftest.er1
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -z "$ac_c_werror_flag"
24214 || test ! -s conftest.err'
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24217 ac_status=$?
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; } &&
24220 { ac_try='test -s conftest.$ac_objext'
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; }; then
24226 gdb_cv_thread_db_h_has_td_notls=yes
24227 else
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231 gdb_cv_thread_db_h_has_td_notls=no
24232
24233 fi
24234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24235
24236 fi
24237 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24238 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
24239 fi
24240 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24241
24242 cat >>confdefs.h <<\_ACEOF
24243 #define THREAD_DB_HAS_TD_NOTALLOC 1
24244 _ACEOF
24245
24246 fi
24247 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24248
24249 cat >>confdefs.h <<\_ACEOF
24250 #define THREAD_DB_HAS_TD_VERSION 1
24251 _ACEOF
24252
24253 fi
24254 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24255
24256 cat >>confdefs.h <<\_ACEOF
24257 #define THREAD_DB_HAS_TD_NOTLS 1
24258 _ACEOF
24259
24260 fi
24261
24262 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24263 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24264 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
24265 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267 else
24268 cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h. */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 #include <sys/syscall.h>
24275 int
24276 main ()
24277 {
24278 int i = __NR_tkill;
24279 ;
24280 return 0;
24281 }
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285 (eval $ac_compile) 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 gdb_cv_sys_syscall_h_has_tkill=yes
24306 else
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310 gdb_cv_sys_syscall_h_has_tkill=no
24311
24312 fi
24313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24314
24315 fi
24316 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24317 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
24318 fi
24319 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24320
24321 cat >>confdefs.h <<\_ACEOF
24322 #define HAVE_TKILL_SYSCALL 1
24323 _ACEOF
24324
24325 fi
24326
24327 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24328 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24329 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h. */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <sys/personality.h>
24339
24340 int
24341 main ()
24342 {
24343 #ifndef ADDR_NO_RANDOMIZE
24344 char *p = (char *) ADDR_NO_RANDOMIZE;
24345 #endif
24346
24347 ;
24348 return 0;
24349 }
24350 _ACEOF
24351 rm -f conftest.$ac_objext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24353 (eval $ac_compile) 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
24360 { ac_try='test -z "$ac_c_werror_flag"
24361 || test ! -s conftest.err'
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24374 else
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24379 fi
24380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24381 fi
24382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24383 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24384 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24385
24386 cat >>confdefs.h <<_ACEOF
24387 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24388 _ACEOF
24389
24390
24391 else
24392 cat >>confdefs.h <<_ACEOF
24393 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24394 _ACEOF
24395
24396
24397 fi
24398
24399
24400
24401 if test "$cross_compiling" = yes; then
24402 cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h. */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 #include <sys/personality.h>
24409 int
24410 main ()
24411 {
24412
24413 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24414 # define ADDR_NO_RANDOMIZE 0x0040000
24415 # endif
24416 /* Test the flag could be set and stays set. */
24417 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24418 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24419 return 1
24420 ;
24421 return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext conftest$ac_exeext
24425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24426 (eval $ac_link) 2>conftest.er1
24427 ac_status=$?
24428 grep -v '^ *+' conftest.er1 >conftest.err
24429 rm -f conftest.er1
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } &&
24433 { ac_try='test -z "$ac_c_werror_flag"
24434 || test ! -s conftest.err'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; } &&
24440 { ac_try='test -s conftest$ac_exeext'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; }; then
24446 have_personality=true
24447 else
24448 echo "$as_me: failed program was:" >&5
24449 sed 's/^/| /' conftest.$ac_ext >&5
24450
24451 have_personality=false
24452 fi
24453 rm -f conftest.err conftest.$ac_objext \
24454 conftest$ac_exeext conftest.$ac_ext
24455 else
24456 cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h. */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 #include <sys/personality.h>
24463 int
24464 main ()
24465 {
24466
24467 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24468 # define ADDR_NO_RANDOMIZE 0x0040000
24469 # endif
24470 /* Test the flag could be set and stays set. */
24471 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24472 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24473 return 1
24474 ;
24475 return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest$ac_exeext
24479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24480 (eval $ac_link) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 have_personality=true
24490 else
24491 echo "$as_me: program exited with status $ac_status" >&5
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 ( exit $ac_status )
24496 have_personality=false
24497 fi
24498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24499 fi
24500 if $have_personality
24501 then
24502
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_PERSONALITY 1
24505 _ACEOF
24506
24507 fi
24508
24509
24510
24511 # Check whether --with-sysroot or --without-sysroot was given.
24512 if test "${with_sysroot+set}" = set; then
24513 withval="$with_sysroot"
24514
24515 case ${with_sysroot} in
24516 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24517 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24518 esac
24519
24520 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24521
24522 if test "x$prefix" = xNONE; then
24523 test_prefix=/usr/local
24524 else
24525 test_prefix=$prefix
24526 fi
24527 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24528 test_exec_prefix=$test_prefix
24529 else
24530 test_exec_prefix=$exec_prefix
24531 fi
24532 case ${TARGET_SYSTEM_ROOT} in
24533 "${test_prefix}"|"${test_prefix}/"*|\
24534 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24535 '${prefix}'|'${prefix}/'*|\
24536 '${exec_prefix}'|'${exec_prefix}/'*)
24537 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24538 TARGET_SYSTEM_ROOT_DEFINE="$t"
24539 ;;
24540 esac
24541
24542 else
24543
24544 TARGET_SYSTEM_ROOT=
24545 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24546
24547 fi;
24548
24549
24550
24551 # Check whether --enable-werror or --disable-werror was given.
24552 if test "${enable_werror+set}" = set; then
24553 enableval="$enable_werror"
24554 case "${enableval}" in
24555 yes | y) ERROR_ON_WARNING="yes" ;;
24556 no | n) ERROR_ON_WARNING="no" ;;
24557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24558 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24559 { (exit 1); exit 1; }; } ;;
24560 esac
24561 fi;
24562
24563 # Enable -Werror by default when using gcc
24564 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24565 ERROR_ON_WARNING=yes
24566 fi
24567
24568 WERROR_CFLAGS=""
24569 if test "${ERROR_ON_WARNING}" = yes ; then
24570 WERROR_CFLAGS="-Werror"
24571 fi
24572
24573 # The entries after -Wno-pointer-sign are disabled warnings which may
24574 # be enabled in the future, which can not currently be used to build
24575 # GDB.
24576 # NOTE: If you change this list, remember to update
24577 # gdb/doc/gdbint.texinfo.
24578 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24579 -Wformat-nonliteral -Wno-pointer-sign \
24580 -Wno-unused -Wno-switch -Wno-char-subscripts"
24581
24582 # Enable -Wno-format by default when using gcc on mingw since many
24583 # GCC versions complain about %I64.
24584 case "${host}" in
24585 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24586 esac
24587
24588 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24589 if test "${enable_build_warnings+set}" = set; then
24590 enableval="$enable_build_warnings"
24591 case "${enableval}" in
24592 yes) ;;
24593 no) build_warnings="-w";;
24594 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24595 build_warnings="${build_warnings} ${t}";;
24596 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24597 build_warnings="${t} ${build_warnings}";;
24598 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24599 esac
24600 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24601 echo "Setting compiler warning flags = $build_warnings" 6>&1
24602 fi
24603 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24604 if test "${enable_gdb_build_warnings+set}" = set; then
24605 enableval="$enable_gdb_build_warnings"
24606 case "${enableval}" in
24607 yes) ;;
24608 no) build_warnings="-w";;
24609 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24610 build_warnings="${build_warnings} ${t}";;
24611 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24612 build_warnings="${t} ${build_warnings}";;
24613 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24614 esac
24615 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24616 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24617 fi
24618 fi; WARN_CFLAGS=""
24619 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24620 then
24621 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24622 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24623 # Separate out the -Werror flag as some files just cannot be
24624 # compiled with it enabled.
24625 for w in ${build_warnings}; do
24626 case $w in
24627 -Werr*) WERROR_CFLAGS=-Werror ;;
24628 *) # Check that GCC accepts it
24629 saved_CFLAGS="$CFLAGS"
24630 CFLAGS="$CFLAGS $w"
24631 cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h. */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24637
24638 int
24639 main ()
24640 {
24641
24642 ;
24643 return 0;
24644 }
24645 _ACEOF
24646 rm -f conftest.$ac_objext
24647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648 (eval $ac_compile) 2>conftest.er1
24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } &&
24655 { ac_try='test -z "$ac_c_werror_flag"
24656 || test ! -s conftest.err'
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); }; } &&
24662 { ac_try='test -s conftest.$ac_objext'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
24668 WARN_CFLAGS="${WARN_CFLAGS} $w"
24669 else
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24672
24673 fi
24674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24675 CFLAGS="$saved_CFLAGS"
24676 esac
24677 done
24678 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24679 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24680 fi
24681
24682
24683
24684 # In the Cygwin environment, we need some additional flags.
24685 echo "$as_me:$LINENO: checking for cygwin" >&5
24686 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24687 if test "${gdb_cv_os_cygwin+set}" = set; then
24688 echo $ECHO_N "(cached) $ECHO_C" >&6
24689 else
24690 cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h. */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696
24697 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24698 lose
24699 #endif
24700 _ACEOF
24701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24702 $EGREP "lose" >/dev/null 2>&1; then
24703 gdb_cv_os_cygwin=yes
24704 else
24705 gdb_cv_os_cygwin=no
24706 fi
24707 rm -f conftest*
24708
24709 fi
24710 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24711 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24712
24713
24714 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24715 case ${host} in
24716 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24717 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24718 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24719 esac
24720
24721
24722 # libreadline needs libuser32.a in a cygwin environment
24723 WIN32LIBS=
24724 if test x$gdb_cv_os_cygwin = xyes; then
24725 WIN32LIBS="-luser32"
24726 case "${target}" in
24727 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24728 ;;
24729 esac
24730 fi
24731
24732 # The ser-tcp.c module requires sockets.
24733 case ${host} in
24734 *mingw32*)
24735
24736 cat >>confdefs.h <<\_ACEOF
24737 #define USE_WIN32API 1
24738 _ACEOF
24739
24740 WIN32LIBS="$WIN32LIBS -lws2_32"
24741 ;;
24742 esac
24743
24744
24745 # Add ELF support to GDB, but only if BFD includes ELF support.
24746 OLD_CFLAGS=$CFLAGS
24747 OLD_LDFLAGS=$LDFLAGS
24748 OLD_LIBS=$LIBS
24749 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24750 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24751 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24752 LIBS="-lbfd -liberty $intl $LIBS"
24753 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24754 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24755 if test "${gdb_cv_var_elf+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758 cat >conftest.$ac_ext <<_ACEOF
24759 /* confdefs.h. */
24760 _ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h. */
24764 #include <stdlib.h>
24765 #include "bfd.h"
24766 #include "elf-bfd.h"
24767
24768 int
24769 main ()
24770 {
24771 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24772 ;
24773 return 0;
24774 }
24775 _ACEOF
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24778 (eval $ac_link) 2>conftest.er1
24779 ac_status=$?
24780 grep -v '^ *+' conftest.er1 >conftest.err
24781 rm -f conftest.er1
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag"
24786 || test ! -s conftest.err'
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); }; } &&
24792 { ac_try='test -s conftest$ac_exeext'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 gdb_cv_var_elf=yes
24799 else
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24802
24803 gdb_cv_var_elf=no
24804 fi
24805 rm -f conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24807 fi
24808 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24809 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24810 if test $gdb_cv_var_elf = yes; then
24811 CONFIG_OBS="$CONFIG_OBS elfread.o"
24812
24813 cat >>confdefs.h <<\_ACEOF
24814 #define HAVE_ELF 1
24815 _ACEOF
24816
24817 fi
24818 CFLAGS=$OLD_CFLAGS
24819 LDFLAGS=$OLD_LDFLAGS
24820 LIBS=$OLD_LIBS
24821
24822 # Add any host-specific objects to GDB.
24823 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24824
24825 LIBGUI="../libgui/src/libgui.a"
24826 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24827
24828
24829
24830 WIN32LDAPP=
24831
24832
24833
24834 case "${host}" in
24835 *-*-cygwin* | *-*-mingw* )
24836 configdir="win"
24837 ;;
24838 *)
24839 configdir="unix"
24840 ;;
24841 esac
24842
24843 GDBTKLIBS=
24844 if test "${enable_gdbtk}" = "yes"; then
24845
24846 # Gdbtk must have an absolute path to srcdir in order to run
24847 # properly when not installed.
24848 here=`pwd`
24849 cd ${srcdir}
24850 GDBTK_SRC_DIR=`pwd`
24851 cd $here
24852
24853
24854 #
24855 # Ok, lets find the tcl configuration
24856 # First, look for one uninstalled.
24857 # the alternative search directory is invoked by --with-tcl
24858 #
24859
24860 if test x"${no_tcl}" = x ; then
24861 # we reset no_tcl in case something fails here
24862 no_tcl=true
24863
24864 # Check whether --with-tcl or --without-tcl was given.
24865 if test "${with_tcl+set}" = set; then
24866 withval="$with_tcl"
24867 with_tclconfig=${withval}
24868 fi;
24869 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24870 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24871 if test "${ac_cv_c_tclconfig+set}" = set; then
24872 echo $ECHO_N "(cached) $ECHO_C" >&6
24873 else
24874
24875
24876 # First check to see if --with-tcl was specified.
24877 case "${host}" in
24878 *-*-cygwin*) platDir="win" ;;
24879 *) platDir="unix" ;;
24880 esac
24881 if test x"${with_tclconfig}" != x ; then
24882 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24883 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24884 else
24885 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24886 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24887 { (exit 1); exit 1; }; }
24888 fi
24889 fi
24890
24891 # then check for a private Tcl installation
24892 if test x"${ac_cv_c_tclconfig}" = x ; then
24893 for i in \
24894 ../tcl \
24895 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24896 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24897 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24898 ../../tcl \
24899 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24900 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24901 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24902 ../../../tcl \
24903 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24904 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24905 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24906 if test -f "$i/$platDir/tclConfig.sh" ; then
24907 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24908 break
24909 fi
24910 done
24911 fi
24912
24913 # on Darwin, check in Framework installation locations
24914 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24915 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24916 `ls -d /Library/Frameworks 2>/dev/null` \
24917 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24918 `ls -d /System/Library/Frameworks 2>/dev/null` \
24919 ; do
24920 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24921 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24922 break
24923 fi
24924 done
24925 fi
24926
24927 # check in a few common install locations
24928 if test x"${ac_cv_c_tclconfig}" = x ; then
24929 for i in `ls -d ${libdir} 2>/dev/null` \
24930 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24931 `ls -d ${prefix}/lib 2>/dev/null` \
24932 `ls -d /usr/local/lib 2>/dev/null` \
24933 `ls -d /usr/contrib/lib 2>/dev/null` \
24934 `ls -d /usr/lib 2>/dev/null` \
24935 ; do
24936 if test -f "$i/tclConfig.sh" ; then
24937 ac_cv_c_tclconfig=`(cd $i; pwd)`
24938 break
24939 fi
24940 done
24941 fi
24942
24943 # check in a few other private locations
24944 if test x"${ac_cv_c_tclconfig}" = x ; then
24945 for i in \
24946 ${srcdir}/../tcl \
24947 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24948 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24949 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24950 if test -f "$i/$platDir/tclConfig.sh" ; then
24951 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24952 break
24953 fi
24954 done
24955 fi
24956
24957 fi
24958
24959
24960 if test x"${ac_cv_c_tclconfig}" = x ; then
24961 TCL_BIN_DIR="# no Tcl configs found"
24962 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24963 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24964 exit 0
24965 else
24966 no_tcl=
24967 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24968 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24969 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24970 fi
24971 fi
24972
24973 if test -z "${no_tcl}"; then
24974
24975 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24976 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24977
24978 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24979 echo "$as_me:$LINENO: result: loading" >&5
24980 echo "${ECHO_T}loading" >&6
24981 . ${TCL_BIN_DIR}/tclConfig.sh
24982 else
24983 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24984 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24985 fi
24986
24987 # eval is required to do the TCL_DBGX substitution
24988 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24989 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24990
24991 # If the TCL_BIN_DIR is the build directory (not the install directory),
24992 # then set the common variable name to the value of the build variables.
24993 # For example, the variable TCL_LIB_SPEC will be set to the value
24994 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24995 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24996 # installed and uninstalled version of Tcl.
24997 if test -f ${TCL_BIN_DIR}/Makefile ; then
24998 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24999 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
25000 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
25001 elif test "`uname -s`" = "Darwin"; then
25002 # If Tcl was built as a framework, attempt to use the libraries
25003 # from the framework at the given location so that linking works
25004 # against Tcl.framework installed in an arbitary location.
25005 case ${TCL_DEFS} in
25006 *TCL_FRAMEWORK*)
25007 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
25008 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
25009 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
25010 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
25011 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
25012 break
25013 fi
25014 done
25015 fi
25016 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
25017 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
25018 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
25019 fi
25020 ;;
25021 esac
25022 fi
25023
25024 # eval is required to do the TCL_DBGX substitution
25025 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
25026 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
25027 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
25028 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044 # Check for in-tree tcl
25045 here=`pwd`
25046 cd ${srcdir}/..
25047 topdir=`pwd`
25048 cd ${here}
25049
25050 intree="no"
25051 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
25052 intree="yes"
25053 fi
25054
25055 # Find Tcl private headers
25056 if test x"${intree}" = xno; then
25057
25058 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
25059 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
25060 private_dir=""
25061 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
25062 if test -f ${dir}/tclInt.h ; then
25063 private_dir=${dir}
25064 fi
25065
25066 if test x"${private_dir}" = x; then
25067 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
25068 echo "$as_me: error: could not find private Tcl headers" >&2;}
25069 { (exit 1); exit 1; }; }
25070 else
25071 TCL_PRIVATE_INCLUDE="-I${private_dir}"
25072 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25073 echo "${ECHO_T}${private_dir}" >&6
25074 fi
25075
25076 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
25077 TCL_LIBRARY="${TCL_LIB_SPEC}"
25078 TCL_DEPS=""
25079 else
25080 # If building tcl in the same src tree, private headers
25081 # are not needed, but we need to be sure to use the right
25082 # headers library
25083 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
25084 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
25085 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
25086 fi
25087
25088
25089
25090
25091 # If $no_tk is nonempty, then we can't do Tk, and there is no
25092 # point to doing Tcl.
25093 if test -z "${no_tk}"; then
25094
25095 #
25096 # Ok, lets find the tk configuration
25097 # First, look for one uninstalled.
25098 # the alternative search directory is invoked by --with-tk
25099 #
25100
25101 if test x"${no_tk}" = x ; then
25102 # we reset no_tk in case something fails here
25103 no_tk=true
25104
25105 # Check whether --with-tk or --without-tk was given.
25106 if test "${with_tk+set}" = set; then
25107 withval="$with_tk"
25108 with_tkconfig=${withval}
25109 fi;
25110 echo "$as_me:$LINENO: checking for Tk configuration" >&5
25111 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
25112 if test "${ac_cv_c_tkconfig+set}" = set; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 else
25115
25116
25117 # First check to see if --with-tkconfig was specified.
25118 if test x"${with_tkconfig}" != x ; then
25119 if test -f "${with_tkconfig}/tkConfig.sh" ; then
25120 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
25121 else
25122 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
25123 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
25124 { (exit 1); exit 1; }; }
25125 fi
25126 fi
25127
25128 # then check for a private Tk library
25129 case "${host}" in
25130 *-*-cygwin*) platDir="win" ;;
25131 *) platDir="unix" ;;
25132 esac
25133 if test x"${ac_cv_c_tkconfig}" = x ; then
25134 for i in \
25135 ../tk \
25136 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25137 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
25138 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
25139 ../../tk \
25140 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25141 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
25142 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
25143 ../../../tk \
25144 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25145 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
25146 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
25147 if test -f "$i/$platDir/tkConfig.sh" ; then
25148 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25149 break
25150 fi
25151 done
25152 fi
25153
25154 # on Darwin, check in Framework installation locations
25155 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
25156 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
25157 `ls -d /Library/Frameworks 2>/dev/null` \
25158 `ls -d /Network/Library/Frameworks 2>/dev/null` \
25159 `ls -d /System/Library/Frameworks 2>/dev/null` \
25160 ; do
25161 if test -f "$i/Tk.framework/tkConfig.sh" ; then
25162 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
25163 break
25164 fi
25165 done
25166 fi
25167
25168 # check in a few common install locations
25169 if test x"${ac_cv_c_tkconfig}" = x ; then
25170 for i in `ls -d ${libdir} 2>/dev/null` \
25171 `ls -d ${exec_prefix}/lib 2>/dev/null` \
25172 `ls -d ${prefix}/lib 2>/dev/null` \
25173 `ls -d /usr/local/lib 2>/dev/null` \
25174 `ls -d /usr/contrib/lib 2>/dev/null` \
25175 `ls -d /usr/lib 2>/dev/null` \
25176 ; do
25177 if test -f "$i/tkConfig.sh" ; then
25178 ac_cv_c_tkconfig=`(cd $i; pwd)`
25179 break
25180 fi
25181 done
25182 fi
25183 # check in a few other private locations
25184 if test x"${ac_cv_c_tkconfig}" = x ; then
25185 for i in \
25186 ${srcdir}/../tk \
25187 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25188 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
25189 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
25190 if test -f "$i/$platDir/tkConfig.sh" ; then
25191 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25192 break
25193 fi
25194 done
25195 fi
25196
25197 fi
25198
25199
25200 if test x"${ac_cv_c_tkconfig}" = x ; then
25201 TK_BIN_DIR="# no Tk configs found"
25202 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
25203 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
25204 exit 0
25205 else
25206 no_tk=
25207 TK_BIN_DIR=${ac_cv_c_tkconfig}
25208 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
25209 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
25210 fi
25211 fi
25212
25213
25214 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
25215 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
25216
25217 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25218 echo "$as_me:$LINENO: result: loading" >&5
25219 echo "${ECHO_T}loading" >&6
25220 . ${TK_BIN_DIR}/tkConfig.sh
25221 else
25222 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25223 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
25224 fi
25225
25226 # eval is required to do the TK_DBGX substitution
25227 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25228 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25229
25230 # If the TK_BIN_DIR is the build directory (not the install directory),
25231 # then set the common variable name to the value of the build variables.
25232 # For example, the variable TK_LIB_SPEC will be set to the value
25233 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25234 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25235 # installed and uninstalled version of Tcl.
25236 if test -f ${TK_BIN_DIR}/Makefile ; then
25237 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25238 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25239 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25240 elif test "`uname -s`" = "Darwin"; then
25241 # If Tk was built as a framework, attempt to use the libraries
25242 # from the framework at the given location so that linking works
25243 # against Tk.framework installed in an arbitary location.
25244 case ${TK_DEFS} in
25245 *TK_FRAMEWORK*)
25246 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25247 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25248 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25249 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25250 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25251 break
25252 fi
25253 done
25254 fi
25255 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25256 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25257 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25258 fi
25259 ;;
25260 esac
25261 fi
25262
25263 # eval is required to do the TK_DBGX substitution
25264 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25265 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25266 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25267 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282 # Check for in-tree Tk
25283 intree="no"
25284 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25285 intree="yes"
25286 fi
25287
25288 # Find Tk private headers
25289 if test x"${intree}" = xno; then
25290
25291 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25292 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25293 private_dir=""
25294 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25295 if test -f ${dir}/tkInt.h; then
25296 private_dir=${dir}
25297 fi
25298
25299 if test x"${private_dir}" = x; then
25300 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25301 echo "$as_me: error: could not find Tk private headers" >&2;}
25302 { (exit 1); exit 1; }; }
25303 else
25304 TK_PRIVATE_INCLUDE="-I${private_dir}"
25305 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25306 echo "${ECHO_T}${private_dir}" >&6
25307 fi
25308
25309 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25310 TK_LIBRARY=${TK_LIB_SPEC}
25311 TK_DEPS=""
25312 else
25313 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25314 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25315 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25316 fi
25317
25318
25319
25320
25321
25322 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25323
25324 # Include some libraries that Tcl and Tk want.
25325 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25326 # Yes, the ordering seems wrong here. But it isn't.
25327 # TK_LIBS is the list of libraries that need to be linked
25328 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25329 # were in LIBS then any link tests after this point would
25330 # try to include things like `$(LIBGUI)', which wouldn't work.
25331 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25332
25333 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25334 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25335 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25336 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25337 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25338 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25339 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25340
25341 if test x$gdb_cv_os_cygwin = xyes; then
25342 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25343 WIN32LDAPP="-Wl,--subsystem,console"
25344 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25345 fi
25346 fi
25347 fi
25348
25349
25350
25351 subdirs="$subdirs gdbtk"
25352
25353 fi
25354
25355
25356
25357
25358
25359
25360
25361
25362 echo "$as_me:$LINENO: checking for X" >&5
25363 echo $ECHO_N "checking for X... $ECHO_C" >&6
25364
25365
25366 # Check whether --with-x or --without-x was given.
25367 if test "${with_x+set}" = set; then
25368 withval="$with_x"
25369
25370 fi;
25371 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25372 if test "x$with_x" = xno; then
25373 # The user explicitly disabled X.
25374 have_x=disabled
25375 else
25376 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25377 # Both variables are already set.
25378 have_x=yes
25379 else
25380 if test "${ac_cv_have_x+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383 # One or both of the vars are not set, and there is no cached value.
25384 ac_x_includes=no ac_x_libraries=no
25385 rm -fr conftest.dir
25386 if mkdir conftest.dir; then
25387 cd conftest.dir
25388 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25389 cat >Imakefile <<'_ACEOF'
25390 acfindx:
25391 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25392 _ACEOF
25393 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25395 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25396 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25397 for ac_extension in a so sl; do
25398 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25399 test -f $ac_im_libdir/libX11.$ac_extension; then
25400 ac_im_usrlibdir=$ac_im_libdir; break
25401 fi
25402 done
25403 # Screen out bogus values from the imake configuration. They are
25404 # bogus both because they are the default anyway, and because
25405 # using them would break gcc on systems where it needs fixed includes.
25406 case $ac_im_incroot in
25407 /usr/include) ;;
25408 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25409 esac
25410 case $ac_im_usrlibdir in
25411 /usr/lib | /lib) ;;
25412 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25413 esac
25414 fi
25415 cd ..
25416 rm -fr conftest.dir
25417 fi
25418
25419 # Standard set of common directories for X headers.
25420 # Check X11 before X11Rn because it is often a symlink to the current release.
25421 ac_x_header_dirs='
25422 /usr/X11/include
25423 /usr/X11R6/include
25424 /usr/X11R5/include
25425 /usr/X11R4/include
25426
25427 /usr/include/X11
25428 /usr/include/X11R6
25429 /usr/include/X11R5
25430 /usr/include/X11R4
25431
25432 /usr/local/X11/include
25433 /usr/local/X11R6/include
25434 /usr/local/X11R5/include
25435 /usr/local/X11R4/include
25436
25437 /usr/local/include/X11
25438 /usr/local/include/X11R6
25439 /usr/local/include/X11R5
25440 /usr/local/include/X11R4
25441
25442 /usr/X386/include
25443 /usr/x386/include
25444 /usr/XFree86/include/X11
25445
25446 /usr/include
25447 /usr/local/include
25448 /usr/unsupported/include
25449 /usr/athena/include
25450 /usr/local/x11r5/include
25451 /usr/lpp/Xamples/include
25452
25453 /usr/openwin/include
25454 /usr/openwin/share/include'
25455
25456 if test "$ac_x_includes" = no; then
25457 # Guess where to find include files, by looking for Intrinsic.h.
25458 # First, try using that file with no special directory specified.
25459 cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h. */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 #include <X11/Intrinsic.h>
25466 _ACEOF
25467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25469 ac_status=$?
25470 grep -v '^ *+' conftest.er1 >conftest.err
25471 rm -f conftest.er1
25472 cat conftest.err >&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } >/dev/null; then
25475 if test -s conftest.err; then
25476 ac_cpp_err=$ac_c_preproc_warn_flag
25477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25478 else
25479 ac_cpp_err=
25480 fi
25481 else
25482 ac_cpp_err=yes
25483 fi
25484 if test -z "$ac_cpp_err"; then
25485 # We can compile using X headers with no special include directory.
25486 ac_x_includes=
25487 else
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 for ac_dir in $ac_x_header_dirs; do
25492 if test -r "$ac_dir/X11/Intrinsic.h"; then
25493 ac_x_includes=$ac_dir
25494 break
25495 fi
25496 done
25497 fi
25498 rm -f conftest.err conftest.$ac_ext
25499 fi # $ac_x_includes = no
25500
25501 if test "$ac_x_libraries" = no; then
25502 # Check for the libraries.
25503 # See if we find them without any special options.
25504 # Don't add to $LIBS permanently.
25505 ac_save_LIBS=$LIBS
25506 LIBS="-lXt $LIBS"
25507 cat >conftest.$ac_ext <<_ACEOF
25508 /* confdefs.h. */
25509 _ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 #include <X11/Intrinsic.h>
25514 int
25515 main ()
25516 {
25517 XtMalloc (0)
25518 ;
25519 return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext conftest$ac_exeext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest$ac_exeext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 LIBS=$ac_save_LIBS
25545 # We can link X programs with no special library path.
25546 ac_x_libraries=
25547 else
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551 LIBS=$ac_save_LIBS
25552 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25553 do
25554 # Don't even attempt the hair of trying to link an X program!
25555 for ac_extension in a so sl; do
25556 if test -r $ac_dir/libXt.$ac_extension; then
25557 ac_x_libraries=$ac_dir
25558 break 2
25559 fi
25560 done
25561 done
25562 fi
25563 rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 fi # $ac_x_libraries = no
25566
25567 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25568 # Didn't find X anywhere. Cache the known absence of X.
25569 ac_cv_have_x="have_x=no"
25570 else
25571 # Record where we found X for the cache.
25572 ac_cv_have_x="have_x=yes \
25573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25574 fi
25575 fi
25576
25577 fi
25578 eval "$ac_cv_have_x"
25579 fi # $with_x != no
25580
25581 if test "$have_x" != yes; then
25582 echo "$as_me:$LINENO: result: $have_x" >&5
25583 echo "${ECHO_T}$have_x" >&6
25584 no_x=yes
25585 else
25586 # If each of the values was on the command line, it overrides each guess.
25587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25589 # Update the cache value to reflect the command line values.
25590 ac_cv_have_x="have_x=yes \
25591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25592 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25593 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25594 fi
25595
25596
25597 # Unlike the sim directory, whether a simulator is linked is controlled by
25598 # presence of a gdb_sim definition in the target configure.tgt entry.
25599 # This code just checks for a few cases where we'd like to ignore those
25600 # definitions, even when they're present in the '.mt' file. These cases
25601 # are when --disable-sim is specified, or if the simulator directory is
25602 # not part of the source tree.
25603 #
25604 # Check whether --enable-sim or --disable-sim was given.
25605 if test "${enable_sim+set}" = set; then
25606 enableval="$enable_sim"
25607 echo "enable_sim = $enable_sim";
25608 echo "enableval = ${enableval}";
25609 case "${enableval}" in
25610 yes) ignore_sim=false ;;
25611 no) ignore_sim=true ;;
25612 *) ignore_sim=false ;;
25613 esac
25614 else
25615 ignore_sim=false
25616 fi;
25617
25618 if test ! -d "${srcdir}/../sim"; then
25619 ignore_sim=true
25620 fi
25621
25622 SIM=
25623 SIM_OBS=
25624 if test "${ignore_sim}" = "false"; then
25625 if test x"${gdb_sim}" != x ; then
25626 SIM="${gdb_sim}"
25627 SIM_OBS="remote-sim.o"
25628
25629 cat >>confdefs.h <<\_ACEOF
25630 #define WITH_SIM 1
25631 _ACEOF
25632
25633 fi
25634 fi
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649 # List of host floatformats.
25650
25651 cat >>confdefs.h <<_ACEOF
25652 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25653 _ACEOF
25654
25655
25656 cat >>confdefs.h <<_ACEOF
25657 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25658 _ACEOF
25659
25660
25661 cat >>confdefs.h <<_ACEOF
25662 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25663 _ACEOF
25664
25665
25666 # target_subdir is used by the testsuite to find the target libraries.
25667 target_subdir=
25668 if test "${host}" != "${target}"; then
25669 target_subdir="${target_alias}/"
25670 fi
25671
25672
25673 frags=
25674 if test "${gdb_native}" = "yes"; then
25675 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25676 if test ! -f ${host_makefile_frag}; then
25677 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25678 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25679 { (exit 1); exit 1; }; }
25680 fi
25681 frags="$frags $host_makefile_frag"
25682 else
25683 host_makefile_frag=/dev/null
25684 fi
25685
25686
25687
25688
25689 if test "${gdb_native}" = "yes"; then
25690 # We pick this up from the host configuration file (.mh) because we
25691 # do not have a native configuration Makefile fragment.
25692 nativefile=`sed -n '
25693 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25694 ' ${host_makefile_frag}`
25695 fi
25696
25697
25698 if test x"${gdb_osabi}" != x ; then
25699
25700 cat >>confdefs.h <<_ACEOF
25701 #define GDB_OSABI_DEFAULT $gdb_osabi
25702 _ACEOF
25703
25704 fi
25705
25706 # Enable multi-ice-gdb-server.
25707 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25708 if test "${enable_multi_ice+set}" = set; then
25709 enableval="$enable_multi_ice"
25710 case $enableval in
25711 yes | no)
25712 ;;
25713 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25714 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25715 { (exit 1); exit 1; }; } ;;
25716 esac
25717 fi;
25718 if test "x$enable_multi_ice" = xyes; then
25719
25720
25721 subdirs="$subdirs multi-ice"
25722
25723 fi
25724
25725 # We only build gdbserver automatically in a native configuration.
25726 if test "$gdb_native" = "yes"; then
25727 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25728 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25729 if test "x$build_gdbserver" = xyes; then
25730 echo "$as_me:$LINENO: result: yes" >&5
25731 echo "${ECHO_T}yes" >&6
25732
25733
25734 subdirs="$subdirs gdbserver"
25735
25736 else
25737 echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6
25739 fi
25740 fi
25741
25742 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25743 # to an empty version.
25744
25745 files=
25746 links=
25747
25748 rm -f nm.h
25749 nm_h=""
25750 if test "${nativefile}" != ""; then
25751 nm_h=nm.h
25752 case "${nativefile}" in
25753 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25754 * ) GDB_NM_FILE="${nativefile}"
25755 esac
25756 files="${files} ${GDB_NM_FILE}"
25757 links="${links} nm.h"
25758
25759 cat >>confdefs.h <<_ACEOF
25760 #define GDB_NM_FILE "${GDB_NM_FILE}"
25761 _ACEOF
25762
25763 fi
25764
25765
25766 ac_sources="$files"
25767 ac_dests="$links"
25768 while test -n "$ac_sources"; do
25769 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25770 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25771 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25772 done
25773 ac_config_links="$ac_config_links $ac_config_links_1"
25774
25775
25776
25777
25778
25779
25780 cat >>confdefs.h <<\_ACEOF
25781 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25782 _ACEOF
25783
25784
25785
25786
25787
25788 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25789 if test "${with_libiconv_prefix+set}" = set; then
25790 withval="$with_libiconv_prefix"
25791
25792 for dir in `echo "$withval" | tr : ' '`; do
25793 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25794 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25795 done
25796
25797 fi;
25798
25799 echo "$as_me:$LINENO: checking for iconv" >&5
25800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25801 if test "${am_cv_func_iconv+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25803 else
25804
25805 am_cv_func_iconv="no, consider installing GNU libiconv"
25806 am_cv_lib_iconv=no
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h. */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 #include <stdlib.h>
25814 #include <iconv.h>
25815 int
25816 main ()
25817 {
25818 iconv_t cd = iconv_open("","");
25819 iconv(cd,NULL,NULL,NULL,NULL);
25820 iconv_close(cd);
25821 ;
25822 return 0;
25823 }
25824 _ACEOF
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 am_cv_func_iconv=yes
25848 else
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852 fi
25853 rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855 if test "$am_cv_func_iconv" != yes; then
25856 am_save_LIBS="$LIBS"
25857 LIBS="$LIBS -liconv"
25858 cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h. */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 #include <stdlib.h>
25865 #include <iconv.h>
25866 int
25867 main ()
25868 {
25869 iconv_t cd = iconv_open("","");
25870 iconv(cd,NULL,NULL,NULL,NULL);
25871 iconv_close(cd);
25872 ;
25873 return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext conftest$ac_exeext
25877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25878 (eval $ac_link) 2>conftest.er1
25879 ac_status=$?
25880 grep -v '^ *+' conftest.er1 >conftest.err
25881 rm -f conftest.er1
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } &&
25885 { ac_try='test -z "$ac_c_werror_flag"
25886 || test ! -s conftest.err'
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; } &&
25892 { ac_try='test -s conftest$ac_exeext'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
25898 am_cv_lib_iconv=yes
25899 am_cv_func_iconv=yes
25900 else
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904 fi
25905 rm -f conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
25907 LIBS="$am_save_LIBS"
25908 fi
25909
25910 fi
25911 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25912 echo "${ECHO_T}$am_cv_func_iconv" >&6
25913 if test "$am_cv_func_iconv" = yes; then
25914
25915 cat >>confdefs.h <<\_ACEOF
25916 #define HAVE_ICONV 1
25917 _ACEOF
25918
25919 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25920 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25921 if test "${am_cv_proto_iconv+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923 else
25924
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h. */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931
25932 #include <stdlib.h>
25933 #include <iconv.h>
25934 extern
25935 #ifdef __cplusplus
25936 "C"
25937 #endif
25938 #if defined(__STDC__) || defined(__cplusplus)
25939 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25940 #else
25941 size_t iconv();
25942 #endif
25943
25944 int
25945 main ()
25946 {
25947
25948 ;
25949 return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest.$ac_objext
25953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25954 (eval $ac_compile) 2>conftest.er1
25955 ac_status=$?
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 am_cv_proto_iconv_arg1=""
25975 else
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979 am_cv_proto_iconv_arg1="const"
25980 fi
25981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 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);"
25983 fi
25984
25985 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25986 echo "$as_me:$LINENO: result: ${ac_t:-
25987 }$am_cv_proto_iconv" >&5
25988 echo "${ECHO_T}${ac_t:-
25989 }$am_cv_proto_iconv" >&6
25990
25991 cat >>confdefs.h <<_ACEOF
25992 #define ICONV_CONST $am_cv_proto_iconv_arg1
25993 _ACEOF
25994
25995 fi
25996 LIBICONV=
25997 if test "$am_cv_lib_iconv" = yes; then
25998 LIBICONV="-liconv"
25999 fi
26000
26001
26002
26003 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
26004 ac_config_commands="$ac_config_commands default"
26005 cat >confcache <<\_ACEOF
26006 # This file is a shell script that caches the results of configure
26007 # tests run on this system so they can be shared between configure
26008 # scripts and configure runs, see configure's option --config-cache.
26009 # It is not useful on other systems. If it contains results you don't
26010 # want to keep, you may remove or edit it.
26011 #
26012 # config.status only pays attention to the cache file if you give it
26013 # the --recheck option to rerun configure.
26014 #
26015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26017 # following values.
26018
26019 _ACEOF
26020
26021 # The following way of writing the cache mishandles newlines in values,
26022 # but we know of no workaround that is simple, portable, and efficient.
26023 # So, don't put newlines in cache variables' values.
26024 # Ultrix sh set writes to stderr and can't be redirected directly,
26025 # and sets the high bit in the cache file unless we assign to the vars.
26026 {
26027 (set) 2>&1 |
26028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26029 *ac_space=\ *)
26030 # `set' does not quote correctly, so add quotes (double-quote
26031 # substitution turns \\\\ into \\, and sed turns \\ into \).
26032 sed -n \
26033 "s/'/'\\\\''/g;
26034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26035 ;;
26036 *)
26037 # `set' quotes correctly as required by POSIX, so do not add quotes.
26038 sed -n \
26039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26040 ;;
26041 esac;
26042 } |
26043 sed '
26044 t clear
26045 : clear
26046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26047 t end
26048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26049 : end' >>confcache
26050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26051 if test -w $cache_file; then
26052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26053 cat confcache >$cache_file
26054 else
26055 echo "not updating unwritable cache $cache_file"
26056 fi
26057 fi
26058 rm -f confcache
26059
26060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26061 # Let make expand exec_prefix.
26062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26063
26064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26066 # trailing colons and then remove the whole line if VPATH becomes empty
26067 # (actually we leave an empty line to preserve line numbers).
26068 if test "x$srcdir" = x.; then
26069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26070 s/:*\$(srcdir):*/:/;
26071 s/:*\${srcdir}:*/:/;
26072 s/:*@srcdir@:*/:/;
26073 s/^\([^=]*=[ ]*\):*/\1/;
26074 s/:*$//;
26075 s/^[^=]*=[ ]*$//;
26076 }'
26077 fi
26078
26079 DEFS=-DHAVE_CONFIG_H
26080
26081 ac_libobjs=
26082 ac_ltlibobjs=
26083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26084 # 1. Remove the extension, and $U if already installed.
26085 ac_i=`echo "$ac_i" |
26086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26087 # 2. Add them.
26088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26090 done
26091 LIBOBJS=$ac_libobjs
26092
26093 LTLIBOBJS=$ac_ltlibobjs
26094
26095
26096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26097 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26098 Usually this means the macro was only invoked conditionally." >&5
26099 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26100 Usually this means the macro was only invoked conditionally." >&2;}
26101 { (exit 1); exit 1; }; }
26102 fi
26103 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
26104 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
26105 Usually this means the macro was only invoked conditionally." >&5
26106 echo "$as_me: error: conditional \"GMAKE\" was never defined.
26107 Usually this means the macro was only invoked conditionally." >&2;}
26108 { (exit 1); exit 1; }; }
26109 fi
26110 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26111 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26112 Usually this means the macro was only invoked conditionally." >&5
26113 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26114 Usually this means the macro was only invoked conditionally." >&2;}
26115 { (exit 1); exit 1; }; }
26116 fi
26117
26118 gl_libobjs=
26119 gl_ltlibobjs=
26120 if test -n "$gl_LIBOBJS"; then
26121 # Remove the extension.
26122 sed_drop_objext='s/\.o$//;s/\.obj$//'
26123 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26124 gl_libobjs="$gl_libobjs $i.$ac_objext"
26125 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26126 done
26127 fi
26128 gl_LIBOBJS=$gl_libobjs
26129
26130 gl_LTLIBOBJS=$gl_ltlibobjs
26131
26132
26133
26134 gltests_libobjs=
26135 gltests_ltlibobjs=
26136 if test -n "$gltests_LIBOBJS"; then
26137 # Remove the extension.
26138 sed_drop_objext='s/\.o$//;s/\.obj$//'
26139 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26140 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26141 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26142 done
26143 fi
26144 gltests_LIBOBJS=$gltests_libobjs
26145
26146 gltests_LTLIBOBJS=$gltests_ltlibobjs
26147
26148
26149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26150 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26151 Usually this means the macro was only invoked conditionally." >&5
26152 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26153 Usually this means the macro was only invoked conditionally." >&2;}
26154 { (exit 1); exit 1; }; }
26155 fi
26156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26158 Usually this means the macro was only invoked conditionally." >&5
26159 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26160 Usually this means the macro was only invoked conditionally." >&2;}
26161 { (exit 1); exit 1; }; }
26162 fi
26163
26164 : ${CONFIG_STATUS=./config.status}
26165 ac_clean_files_save=$ac_clean_files
26166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26167 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26168 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26169 cat >$CONFIG_STATUS <<_ACEOF
26170 #! $SHELL
26171 # Generated by $as_me.
26172 # Run this file to recreate the current configuration.
26173 # Compiler output produced by configure, useful for debugging
26174 # configure, is in config.log if it exists.
26175
26176 debug=false
26177 ac_cs_recheck=false
26178 ac_cs_silent=false
26179 SHELL=\${CONFIG_SHELL-$SHELL}
26180 _ACEOF
26181
26182 cat >>$CONFIG_STATUS <<\_ACEOF
26183 ## --------------------- ##
26184 ## M4sh Initialization. ##
26185 ## --------------------- ##
26186
26187 # Be Bourne compatible
26188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26189 emulate sh
26190 NULLCMD=:
26191 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26192 # is contrary to our usage. Disable this feature.
26193 alias -g '${1+"$@"}'='"$@"'
26194 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26195 set -o posix
26196 fi
26197 DUALCASE=1; export DUALCASE # for MKS sh
26198
26199 # Support unset when possible.
26200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26201 as_unset=unset
26202 else
26203 as_unset=false
26204 fi
26205
26206
26207 # Work around bugs in pre-3.0 UWIN ksh.
26208 $as_unset ENV MAIL MAILPATH
26209 PS1='$ '
26210 PS2='> '
26211 PS4='+ '
26212
26213 # NLS nuisances.
26214 for as_var in \
26215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26217 LC_TELEPHONE LC_TIME
26218 do
26219 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26220 eval $as_var=C; export $as_var
26221 else
26222 $as_unset $as_var
26223 fi
26224 done
26225
26226 # Required to use basename.
26227 if expr a : '\(a\)' >/dev/null 2>&1; then
26228 as_expr=expr
26229 else
26230 as_expr=false
26231 fi
26232
26233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26234 as_basename=basename
26235 else
26236 as_basename=false
26237 fi
26238
26239
26240 # Name of the executable.
26241 as_me=`$as_basename "$0" ||
26242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26243 X"$0" : 'X\(//\)$' \| \
26244 X"$0" : 'X\(/\)$' \| \
26245 . : '\(.\)' 2>/dev/null ||
26246 echo X/"$0" |
26247 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26248 /^X\/\(\/\/\)$/{ s//\1/; q; }
26249 /^X\/\(\/\).*/{ s//\1/; q; }
26250 s/.*/./; q'`
26251
26252
26253 # PATH needs CR, and LINENO needs CR and PATH.
26254 # Avoid depending upon Character Ranges.
26255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26258 as_cr_digits='0123456789'
26259 as_cr_alnum=$as_cr_Letters$as_cr_digits
26260
26261 # The user is always right.
26262 if test "${PATH_SEPARATOR+set}" != set; then
26263 echo "#! /bin/sh" >conf$$.sh
26264 echo "exit 0" >>conf$$.sh
26265 chmod +x conf$$.sh
26266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26267 PATH_SEPARATOR=';'
26268 else
26269 PATH_SEPARATOR=:
26270 fi
26271 rm -f conf$$.sh
26272 fi
26273
26274
26275 as_lineno_1=$LINENO
26276 as_lineno_2=$LINENO
26277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26278 test "x$as_lineno_1" != "x$as_lineno_2" &&
26279 test "x$as_lineno_3" = "x$as_lineno_2" || {
26280 # Find who we are. Look in the path if we contain no path at all
26281 # relative or not.
26282 case $0 in
26283 *[\\/]* ) as_myself=$0 ;;
26284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26285 for as_dir in $PATH
26286 do
26287 IFS=$as_save_IFS
26288 test -z "$as_dir" && as_dir=.
26289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26290 done
26291
26292 ;;
26293 esac
26294 # We did not find ourselves, most probably we were run as `sh COMMAND'
26295 # in which case we are not to be found in the path.
26296 if test "x$as_myself" = x; then
26297 as_myself=$0
26298 fi
26299 if test ! -f "$as_myself"; then
26300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26302 { (exit 1); exit 1; }; }
26303 fi
26304 case $CONFIG_SHELL in
26305 '')
26306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26308 do
26309 IFS=$as_save_IFS
26310 test -z "$as_dir" && as_dir=.
26311 for as_base in sh bash ksh sh5; do
26312 case $as_dir in
26313 /*)
26314 if ("$as_dir/$as_base" -c '
26315 as_lineno_1=$LINENO
26316 as_lineno_2=$LINENO
26317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26318 test "x$as_lineno_1" != "x$as_lineno_2" &&
26319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26320 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26321 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26322 CONFIG_SHELL=$as_dir/$as_base
26323 export CONFIG_SHELL
26324 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26325 fi;;
26326 esac
26327 done
26328 done
26329 ;;
26330 esac
26331
26332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26333 # uniformly replaced by the line number. The first 'sed' inserts a
26334 # line-number line before each line; the second 'sed' does the real
26335 # work. The second script uses 'N' to pair each line-number line
26336 # with the numbered line, and appends trailing '-' during
26337 # substitution so that $LINENO is not a special case at line end.
26338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26339 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26340 sed '=' <$as_myself |
26341 sed '
26342 N
26343 s,$,-,
26344 : loop
26345 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26346 t loop
26347 s,-$,,
26348 s,^['$as_cr_digits']*\n,,
26349 ' >$as_me.lineno &&
26350 chmod +x $as_me.lineno ||
26351 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26353 { (exit 1); exit 1; }; }
26354
26355 # Don't try to exec as it changes $[0], causing all sort of problems
26356 # (the dirname of $[0] is not the place where we might find the
26357 # original and so on. Autoconf is especially sensible to this).
26358 . ./$as_me.lineno
26359 # Exit status is that of the last command.
26360 exit
26361 }
26362
26363
26364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26365 *c*,-n*) ECHO_N= ECHO_C='
26366 ' ECHO_T=' ' ;;
26367 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26368 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26369 esac
26370
26371 if expr a : '\(a\)' >/dev/null 2>&1; then
26372 as_expr=expr
26373 else
26374 as_expr=false
26375 fi
26376
26377 rm -f conf$$ conf$$.exe conf$$.file
26378 echo >conf$$.file
26379 if ln -s conf$$.file conf$$ 2>/dev/null; then
26380 # We could just check for DJGPP; but this test a) works b) is more generic
26381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26382 if test -f conf$$.exe; then
26383 # Don't use ln at all; we don't have any links
26384 as_ln_s='cp -p'
26385 else
26386 as_ln_s='ln -s'
26387 fi
26388 elif ln conf$$.file conf$$ 2>/dev/null; then
26389 as_ln_s=ln
26390 else
26391 as_ln_s='cp -p'
26392 fi
26393 rm -f conf$$ conf$$.exe conf$$.file
26394
26395 if mkdir -p . 2>/dev/null; then
26396 as_mkdir_p=:
26397 else
26398 test -d ./-p && rmdir ./-p
26399 as_mkdir_p=false
26400 fi
26401
26402 as_executable_p="test -f"
26403
26404 # Sed expression to map a string onto a valid CPP name.
26405 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26406
26407 # Sed expression to map a string onto a valid variable name.
26408 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26409
26410
26411 # IFS
26412 # We need space, tab and new line, in precisely that order.
26413 as_nl='
26414 '
26415 IFS=" $as_nl"
26416
26417 # CDPATH.
26418 $as_unset CDPATH
26419
26420 exec 6>&1
26421
26422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26423 # report actual input values of CONFIG_FILES etc. instead of their
26424 # values after options handling. Logging --version etc. is OK.
26425 exec 5>>config.log
26426 {
26427 echo
26428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26429 ## Running $as_me. ##
26430 _ASBOX
26431 } >&5
26432 cat >&5 <<_CSEOF
26433
26434 This file was extended by $as_me, which was
26435 generated by GNU Autoconf 2.59. Invocation command line was
26436
26437 CONFIG_FILES = $CONFIG_FILES
26438 CONFIG_HEADERS = $CONFIG_HEADERS
26439 CONFIG_LINKS = $CONFIG_LINKS
26440 CONFIG_COMMANDS = $CONFIG_COMMANDS
26441 $ $0 $@
26442
26443 _CSEOF
26444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26445 echo >&5
26446 _ACEOF
26447
26448 # Files that config.status was made for.
26449 if test -n "$ac_config_files"; then
26450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26451 fi
26452
26453 if test -n "$ac_config_headers"; then
26454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26455 fi
26456
26457 if test -n "$ac_config_links"; then
26458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26459 fi
26460
26461 if test -n "$ac_config_commands"; then
26462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26463 fi
26464
26465 cat >>$CONFIG_STATUS <<\_ACEOF
26466
26467 ac_cs_usage="\
26468 \`$as_me' instantiates files from templates according to the
26469 current configuration.
26470
26471 Usage: $0 [OPTIONS] [FILE]...
26472
26473 -h, --help print this help, then exit
26474 -V, --version print version number, then exit
26475 -q, --quiet do not print progress messages
26476 -d, --debug don't remove temporary files
26477 --recheck update $as_me by reconfiguring in the same conditions
26478 --file=FILE[:TEMPLATE]
26479 instantiate the configuration file FILE
26480 --header=FILE[:TEMPLATE]
26481 instantiate the configuration header FILE
26482
26483 Configuration files:
26484 $config_files
26485
26486 Configuration headers:
26487 $config_headers
26488
26489 Configuration links:
26490 $config_links
26491
26492 Configuration commands:
26493 $config_commands
26494
26495 Report bugs to <bug-autoconf@gnu.org>."
26496 _ACEOF
26497
26498 cat >>$CONFIG_STATUS <<_ACEOF
26499 ac_cs_version="\\
26500 config.status
26501 configured by $0, generated by GNU Autoconf 2.59,
26502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26503
26504 Copyright (C) 2003 Free Software Foundation, Inc.
26505 This config.status script is free software; the Free Software Foundation
26506 gives unlimited permission to copy, distribute and modify it."
26507 srcdir=$srcdir
26508 INSTALL="$INSTALL"
26509 _ACEOF
26510
26511 cat >>$CONFIG_STATUS <<\_ACEOF
26512 # If no file are specified by the user, then we need to provide default
26513 # value. By we need to know if files were specified by the user.
26514 ac_need_defaults=:
26515 while test $# != 0
26516 do
26517 case $1 in
26518 --*=*)
26519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26521 ac_shift=:
26522 ;;
26523 -*)
26524 ac_option=$1
26525 ac_optarg=$2
26526 ac_shift=shift
26527 ;;
26528 *) # This is not an option, so the user has probably given explicit
26529 # arguments.
26530 ac_option=$1
26531 ac_need_defaults=false;;
26532 esac
26533
26534 case $ac_option in
26535 # Handling of the options.
26536 _ACEOF
26537 cat >>$CONFIG_STATUS <<\_ACEOF
26538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26539 ac_cs_recheck=: ;;
26540 --version | --vers* | -V )
26541 echo "$ac_cs_version"; exit 0 ;;
26542 --he | --h)
26543 # Conflict between --help and --header
26544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26545 Try \`$0 --help' for more information." >&5
26546 echo "$as_me: error: ambiguous option: $1
26547 Try \`$0 --help' for more information." >&2;}
26548 { (exit 1); exit 1; }; };;
26549 --help | --hel | -h )
26550 echo "$ac_cs_usage"; exit 0 ;;
26551 --debug | --d* | -d )
26552 debug=: ;;
26553 --file | --fil | --fi | --f )
26554 $ac_shift
26555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26556 ac_need_defaults=false;;
26557 --header | --heade | --head | --hea )
26558 $ac_shift
26559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26560 ac_need_defaults=false;;
26561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26563 ac_cs_silent=: ;;
26564
26565 # This is an error.
26566 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26567 Try \`$0 --help' for more information." >&5
26568 echo "$as_me: error: unrecognized option: $1
26569 Try \`$0 --help' for more information." >&2;}
26570 { (exit 1); exit 1; }; } ;;
26571
26572 *) ac_config_targets="$ac_config_targets $1" ;;
26573
26574 esac
26575 shift
26576 done
26577
26578 ac_configure_extra_args=
26579
26580 if $ac_cs_silent; then
26581 exec 6>/dev/null
26582 ac_configure_extra_args="$ac_configure_extra_args --silent"
26583 fi
26584
26585 _ACEOF
26586 cat >>$CONFIG_STATUS <<_ACEOF
26587 if \$ac_cs_recheck; then
26588 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26589 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26590 fi
26591
26592 _ACEOF
26593
26594 cat >>$CONFIG_STATUS <<_ACEOF
26595 #
26596 # INIT-COMMANDS section.
26597 #
26598
26599 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
26600 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26601
26602 gdb_host_cpu=$gdb_host_cpu
26603 nativefile=$nativefile
26604
26605
26606 _ACEOF
26607
26608
26609
26610 cat >>$CONFIG_STATUS <<\_ACEOF
26611 for ac_config_target in $ac_config_targets
26612 do
26613 case "$ac_config_target" in
26614 # Handling of arguments.
26615 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26616 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26617 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26618 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26619 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
26620 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26621 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26622 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26625 { (exit 1); exit 1; }; };;
26626 esac
26627 done
26628
26629 # If the user did not use the arguments to specify the items to instantiate,
26630 # then the envvar interface is used. Set only those that are not.
26631 # We use the long form for the default assignment because of an extremely
26632 # bizarre bug on SunOS 4.1.3.
26633 if $ac_need_defaults; then
26634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26636 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26638 fi
26639
26640 # Have a temporary directory for convenience. Make it in the build tree
26641 # simply because there is no reason to put it here, and in addition,
26642 # creating and moving files from /tmp can sometimes cause problems.
26643 # Create a temporary directory, and hook for its removal unless debugging.
26644 $debug ||
26645 {
26646 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26647 trap '{ (exit 1); exit 1; }' 1 2 13 15
26648 }
26649
26650 # Create a (secure) tmp directory for tmp files.
26651
26652 {
26653 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26654 test -n "$tmp" && test -d "$tmp"
26655 } ||
26656 {
26657 tmp=./confstat$$-$RANDOM
26658 (umask 077 && mkdir $tmp)
26659 } ||
26660 {
26661 echo "$me: cannot create a temporary directory in ." >&2
26662 { (exit 1); exit 1; }
26663 }
26664
26665 _ACEOF
26666
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668
26669 #
26670 # CONFIG_FILES section.
26671 #
26672
26673 # No need to generate the scripts if there are no CONFIG_FILES.
26674 # This happens for instance when ./config.status config.h
26675 if test -n "\$CONFIG_FILES"; then
26676 # Protect against being on the right side of a sed subst in config.status.
26677 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26678 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26679 s,@SHELL@,$SHELL,;t t
26680 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26686 s,@exec_prefix@,$exec_prefix,;t t
26687 s,@prefix@,$prefix,;t t
26688 s,@program_transform_name@,$program_transform_name,;t t
26689 s,@bindir@,$bindir,;t t
26690 s,@sbindir@,$sbindir,;t t
26691 s,@libexecdir@,$libexecdir,;t t
26692 s,@datadir@,$datadir,;t t
26693 s,@sysconfdir@,$sysconfdir,;t t
26694 s,@sharedstatedir@,$sharedstatedir,;t t
26695 s,@localstatedir@,$localstatedir,;t t
26696 s,@libdir@,$libdir,;t t
26697 s,@includedir@,$includedir,;t t
26698 s,@oldincludedir@,$oldincludedir,;t t
26699 s,@infodir@,$infodir,;t t
26700 s,@mandir@,$mandir,;t t
26701 s,@build_alias@,$build_alias,;t t
26702 s,@host_alias@,$host_alias,;t t
26703 s,@target_alias@,$target_alias,;t t
26704 s,@DEFS@,$DEFS,;t t
26705 s,@ECHO_C@,$ECHO_C,;t t
26706 s,@ECHO_N@,$ECHO_N,;t t
26707 s,@ECHO_T@,$ECHO_T,;t t
26708 s,@LIBS@,$LIBS,;t t
26709 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26710 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26711 s,@MAINT@,$MAINT,;t t
26712 s,@CC@,$CC,;t t
26713 s,@CFLAGS@,$CFLAGS,;t t
26714 s,@LDFLAGS@,$LDFLAGS,;t t
26715 s,@CPPFLAGS@,$CPPFLAGS,;t t
26716 s,@ac_ct_CC@,$ac_ct_CC,;t t
26717 s,@EXEEXT@,$EXEEXT,;t t
26718 s,@OBJEXT@,$OBJEXT,;t t
26719 s,@CPP@,$CPP,;t t
26720 s,@EGREP@,$EGREP,;t t
26721 s,@RANLIB@,$RANLIB,;t t
26722 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26723 s,@build@,$build,;t t
26724 s,@build_cpu@,$build_cpu,;t t
26725 s,@build_vendor@,$build_vendor,;t t
26726 s,@build_os@,$build_os,;t t
26727 s,@host@,$host,;t t
26728 s,@host_cpu@,$host_cpu,;t t
26729 s,@host_vendor@,$host_vendor,;t t
26730 s,@host_os@,$host_os,;t t
26731 s,@target@,$target,;t t
26732 s,@target_cpu@,$target_cpu,;t t
26733 s,@target_vendor@,$target_vendor,;t t
26734 s,@target_os@,$target_os,;t t
26735 s,@am__leading_dot@,$am__leading_dot,;t t
26736 s,@DEPDIR@,$DEPDIR,;t t
26737 s,@CCDEPMODE@,$CCDEPMODE,;t t
26738 s,@MAKE@,$MAKE,;t t
26739 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
26740 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
26741 s,@SET_MAKE@,$SET_MAKE,;t t
26742 s,@USE_NLS@,$USE_NLS,;t t
26743 s,@LIBINTL@,$LIBINTL,;t t
26744 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26745 s,@INCINTL@,$INCINTL,;t t
26746 s,@XGETTEXT@,$XGETTEXT,;t t
26747 s,@GMSGFMT@,$GMSGFMT,;t t
26748 s,@POSUB@,$POSUB,;t t
26749 s,@CATALOGS@,$CATALOGS,;t t
26750 s,@DATADIRNAME@,$DATADIRNAME,;t t
26751 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26752 s,@GENCAT@,$GENCAT,;t t
26753 s,@CATOBJEXT@,$CATOBJEXT,;t t
26754 s,@localedir@,$localedir,;t t
26755 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26756 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26757 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26758 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26759 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26760 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26761 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26762 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26763 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26764 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26765 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26766 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26767 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26768 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26769 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26770 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26771 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26772 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26773 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26774 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26775 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26776 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26777 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26778 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26779 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26780 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26781 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26782 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26783 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26784 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26785 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26786 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26787 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26788 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26789 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26790 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26791 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26792 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26793 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26794 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26795 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26796 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26797 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26798 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26799 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26800 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26801 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26802 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26803 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26804 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26805 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26806 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26807 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26808 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26809 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26810 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26811 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26812 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26813 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26814 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26815 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26816 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26817 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26818 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26819 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26820 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26821 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26822 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26823 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26824 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26825 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26826 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26827 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26828 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26829 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26830 s,@STDINT_H@,$STDINT_H,;t t
26831 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26832 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26833 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26834 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26835 s,@WCHAR_H@,$WCHAR_H,;t t
26836 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26837 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26838 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26839 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26840 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26841 s,@PACKAGE@,$PACKAGE,;t t
26842 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26843 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26844 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26845 s,@CYGPATH_W@,$CYGPATH_W,;t t
26846 s,@PYTHON2_4@,$PYTHON2_4,;t t
26847 s,@ACLOCAL@,$ACLOCAL,;t t
26848 s,@AUTOCONF@,$AUTOCONF,;t t
26849 s,@AUTOMAKE@,$AUTOMAKE,;t t
26850 s,@AUTOHEADER@,$AUTOHEADER,;t t
26851 s,@MAKEINFO@,$MAKEINFO,;t t
26852 s,@install_sh@,$install_sh,;t t
26853 s,@STRIP@,$STRIP,;t t
26854 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26855 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26856 s,@mkdir_p@,$mkdir_p,;t t
26857 s,@AWK@,$AWK,;t t
26858 s,@AMTAR@,$AMTAR,;t t
26859 s,@am__tar@,$am__tar,;t t
26860 s,@am__untar@,$am__untar,;t t
26861 s,@am__include@,$am__include,;t t
26862 s,@am__quote@,$am__quote,;t t
26863 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26864 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26865 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26866 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26867 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26868 s,@subdirs@,$subdirs,;t t
26869 s,@TARGET_OBS@,$TARGET_OBS,;t t
26870 s,@PKGVERSION@,$PKGVERSION,;t t
26871 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26872 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26873 s,@LN_S@,$LN_S,;t t
26874 s,@YACC@,$YACC,;t t
26875 s,@AR@,$AR,;t t
26876 s,@ac_ct_AR@,$ac_ct_AR,;t t
26877 s,@DLLTOOL@,$DLLTOOL,;t t
26878 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26879 s,@WINDRES@,$WINDRES,;t t
26880 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26881 s,@MIG@,$MIG,;t t
26882 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26883 s,@READLINE@,$READLINE,;t t
26884 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26885 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26886 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26887 s,@LIBEXPAT@,$LIBEXPAT,;t t
26888 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26889 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
26890 s,@ALLOCA@,$ALLOCA,;t t
26891 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26892 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26893 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26894 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26895 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26896 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26897 s,@WIN32LIBS@,$WIN32LIBS,;t t
26898 s,@LIBGUI@,$LIBGUI,;t t
26899 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26900 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26901 s,@TCL_VERSION@,$TCL_VERSION,;t t
26902 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26903 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26904 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26905 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26906 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26907 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26908 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26909 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26910 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26911 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26912 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26913 s,@TCL_DEPS@,$TCL_DEPS,;t t
26914 s,@TK_VERSION@,$TK_VERSION,;t t
26915 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26916 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26917 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26918 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26919 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26920 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26921 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26922 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26923 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26924 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26925 s,@TK_DEPS@,$TK_DEPS,;t t
26926 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26927 s,@X_CFLAGS@,$X_CFLAGS,;t t
26928 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26929 s,@X_LIBS@,$X_LIBS,;t t
26930 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26931 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26932 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26933 s,@SIM@,$SIM,;t t
26934 s,@SIM_OBS@,$SIM_OBS,;t t
26935 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26936 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26937 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26938 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26939 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26940 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26941 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26942 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26943 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26944 s,@target_subdir@,$target_subdir,;t t
26945 s,@frags@,$frags,;t t
26946 s,@nm_h@,$nm_h,;t t
26947 s,@LIBICONV@,$LIBICONV,;t t
26948 s,@LIBOBJS@,$LIBOBJS,;t t
26949 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26950 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26951 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26952 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26953 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26954 /@host_makefile_frag@/r $host_makefile_frag
26955 s,@host_makefile_frag@,,;t t
26956 CEOF
26957
26958 _ACEOF
26959
26960 cat >>$CONFIG_STATUS <<\_ACEOF
26961 # Split the substitutions into bite-sized pieces for seds with
26962 # small command number limits, like on Digital OSF/1 and HP-UX.
26963 ac_max_sed_lines=48
26964 ac_sed_frag=1 # Number of current file.
26965 ac_beg=1 # First line for current file.
26966 ac_end=$ac_max_sed_lines # Line after last line for current file.
26967 ac_more_lines=:
26968 ac_sed_cmds=
26969 while $ac_more_lines; do
26970 if test $ac_beg -gt 1; then
26971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26972 else
26973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26974 fi
26975 if test ! -s $tmp/subs.frag; then
26976 ac_more_lines=false
26977 else
26978 # The purpose of the label and of the branching condition is to
26979 # speed up the sed processing (if there are no `@' at all, there
26980 # is no need to browse any of the substitutions).
26981 # These are the two extra sed commands mentioned above.
26982 (echo ':t
26983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26984 if test -z "$ac_sed_cmds"; then
26985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26986 else
26987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26988 fi
26989 ac_sed_frag=`expr $ac_sed_frag + 1`
26990 ac_beg=$ac_end
26991 ac_end=`expr $ac_end + $ac_max_sed_lines`
26992 fi
26993 done
26994 if test -z "$ac_sed_cmds"; then
26995 ac_sed_cmds=cat
26996 fi
26997 fi # test -n "$CONFIG_FILES"
26998
26999 _ACEOF
27000 cat >>$CONFIG_STATUS <<\_ACEOF
27001 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27003 case $ac_file in
27004 - | *:- | *:-:* ) # input from stdin
27005 cat >$tmp/stdin
27006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27010 * ) ac_file_in=$ac_file.in ;;
27011 esac
27012
27013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016 X"$ac_file" : 'X\(//\)[^/]' \| \
27017 X"$ac_file" : 'X\(//\)$' \| \
27018 X"$ac_file" : 'X\(/\)' \| \
27019 . : '\(.\)' 2>/dev/null ||
27020 echo X"$ac_file" |
27021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27023 /^X\(\/\/\)$/{ s//\1/; q; }
27024 /^X\(\/\).*/{ s//\1/; q; }
27025 s/.*/./; q'`
27026 { if $as_mkdir_p; then
27027 mkdir -p "$ac_dir"
27028 else
27029 as_dir="$ac_dir"
27030 as_dirs=
27031 while test ! -d "$as_dir"; do
27032 as_dirs="$as_dir $as_dirs"
27033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27035 X"$as_dir" : 'X\(//\)[^/]' \| \
27036 X"$as_dir" : 'X\(//\)$' \| \
27037 X"$as_dir" : 'X\(/\)' \| \
27038 . : '\(.\)' 2>/dev/null ||
27039 echo X"$as_dir" |
27040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27042 /^X\(\/\/\)$/{ s//\1/; q; }
27043 /^X\(\/\).*/{ s//\1/; q; }
27044 s/.*/./; q'`
27045 done
27046 test ! -n "$as_dirs" || mkdir $as_dirs
27047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27049 { (exit 1); exit 1; }; }; }
27050
27051 ac_builddir=.
27052
27053 if test "$ac_dir" != .; then
27054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27055 # A "../" for each directory in $ac_dir_suffix.
27056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27057 else
27058 ac_dir_suffix= ac_top_builddir=
27059 fi
27060
27061 case $srcdir in
27062 .) # No --srcdir option. We are building in place.
27063 ac_srcdir=.
27064 if test -z "$ac_top_builddir"; then
27065 ac_top_srcdir=.
27066 else
27067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27068 fi ;;
27069 [\\/]* | ?:[\\/]* ) # Absolute path.
27070 ac_srcdir=$srcdir$ac_dir_suffix;
27071 ac_top_srcdir=$srcdir ;;
27072 *) # Relative path.
27073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27075 esac
27076
27077 # Do not use `cd foo && pwd` to compute absolute paths, because
27078 # the directories may not exist.
27079 case `pwd` in
27080 .) ac_abs_builddir="$ac_dir";;
27081 *)
27082 case "$ac_dir" in
27083 .) ac_abs_builddir=`pwd`;;
27084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27086 esac;;
27087 esac
27088 case $ac_abs_builddir in
27089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27090 *)
27091 case ${ac_top_builddir}. in
27092 .) ac_abs_top_builddir=$ac_abs_builddir;;
27093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27095 esac;;
27096 esac
27097 case $ac_abs_builddir in
27098 .) ac_abs_srcdir=$ac_srcdir;;
27099 *)
27100 case $ac_srcdir in
27101 .) ac_abs_srcdir=$ac_abs_builddir;;
27102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27104 esac;;
27105 esac
27106 case $ac_abs_builddir in
27107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27108 *)
27109 case $ac_top_srcdir in
27110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27113 esac;;
27114 esac
27115
27116
27117 case $INSTALL in
27118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27119 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27120 esac
27121
27122 if test x"$ac_file" != x-; then
27123 { echo "$as_me:$LINENO: creating $ac_file" >&5
27124 echo "$as_me: creating $ac_file" >&6;}
27125 rm -f "$ac_file"
27126 fi
27127 # Let's still pretend it is `configure' which instantiates (i.e., don't
27128 # use $as_me), people would be surprised to read:
27129 # /* config.h. Generated by config.status. */
27130 if test x"$ac_file" = x-; then
27131 configure_input=
27132 else
27133 configure_input="$ac_file. "
27134 fi
27135 configure_input=$configure_input"Generated from `echo $ac_file_in |
27136 sed 's,.*/,,'` by configure."
27137
27138 # First look for the input files in the build tree, otherwise in the
27139 # src tree.
27140 ac_file_inputs=`IFS=:
27141 for f in $ac_file_in; do
27142 case $f in
27143 -) echo $tmp/stdin ;;
27144 [\\/$]*)
27145 # Absolute (can't be DOS-style, as IFS=:)
27146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27147 echo "$as_me: error: cannot find input file: $f" >&2;}
27148 { (exit 1); exit 1; }; }
27149 echo "$f";;
27150 *) # Relative
27151 if test -f "$f"; then
27152 # Build tree
27153 echo "$f"
27154 elif test -f "$srcdir/$f"; then
27155 # Source tree
27156 echo "$srcdir/$f"
27157 else
27158 # /dev/null tree
27159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27160 echo "$as_me: error: cannot find input file: $f" >&2;}
27161 { (exit 1); exit 1; }; }
27162 fi;;
27163 esac
27164 done` || { (exit 1); exit 1; }
27165 _ACEOF
27166 cat >>$CONFIG_STATUS <<_ACEOF
27167 sed "$ac_vpsub
27168 $extrasub
27169 _ACEOF
27170 cat >>$CONFIG_STATUS <<\_ACEOF
27171 :t
27172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27173 s,@configure_input@,$configure_input,;t t
27174 s,@srcdir@,$ac_srcdir,;t t
27175 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27176 s,@top_srcdir@,$ac_top_srcdir,;t t
27177 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27178 s,@builddir@,$ac_builddir,;t t
27179 s,@abs_builddir@,$ac_abs_builddir,;t t
27180 s,@top_builddir@,$ac_top_builddir,;t t
27181 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27182 s,@INSTALL@,$ac_INSTALL,;t t
27183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27184 rm -f $tmp/stdin
27185 if test x"$ac_file" != x-; then
27186 mv $tmp/out $ac_file
27187 else
27188 cat $tmp/out
27189 rm -f $tmp/out
27190 fi
27191
27192 done
27193 _ACEOF
27194 cat >>$CONFIG_STATUS <<\_ACEOF
27195
27196 #
27197 # CONFIG_HEADER section.
27198 #
27199
27200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27202 #
27203 # ac_d sets the value in "#define NAME VALUE" lines.
27204 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27205 ac_dB='[ ].*$,\1#\2'
27206 ac_dC=' '
27207 ac_dD=',;t'
27208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27209 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27210 ac_uB='$,\1#\2define\3'
27211 ac_uC=' '
27212 ac_uD=',;t'
27213
27214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27216 case $ac_file in
27217 - | *:- | *:-:* ) # input from stdin
27218 cat >$tmp/stdin
27219 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27220 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27221 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27223 * ) ac_file_in=$ac_file.in ;;
27224 esac
27225
27226 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27227 echo "$as_me: creating $ac_file" >&6;}
27228
27229 # First look for the input files in the build tree, otherwise in the
27230 # src tree.
27231 ac_file_inputs=`IFS=:
27232 for f in $ac_file_in; do
27233 case $f in
27234 -) echo $tmp/stdin ;;
27235 [\\/$]*)
27236 # Absolute (can't be DOS-style, as IFS=:)
27237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27238 echo "$as_me: error: cannot find input file: $f" >&2;}
27239 { (exit 1); exit 1; }; }
27240 # Do quote $f, to prevent DOS paths from being IFS'd.
27241 echo "$f";;
27242 *) # Relative
27243 if test -f "$f"; then
27244 # Build tree
27245 echo "$f"
27246 elif test -f "$srcdir/$f"; then
27247 # Source tree
27248 echo "$srcdir/$f"
27249 else
27250 # /dev/null tree
27251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27252 echo "$as_me: error: cannot find input file: $f" >&2;}
27253 { (exit 1); exit 1; }; }
27254 fi;;
27255 esac
27256 done` || { (exit 1); exit 1; }
27257 # Remove the trailing spaces.
27258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27259
27260 _ACEOF
27261
27262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27263 # `conftest.undefs', that substitutes the proper values into
27264 # config.h.in to produce config.h. The first handles `#define'
27265 # templates, and the second `#undef' templates.
27266 # And first: Protect against being on the right side of a sed subst in
27267 # config.status. Protect against being in an unquoted here document
27268 # in config.status.
27269 rm -f conftest.defines conftest.undefs
27270 # Using a here document instead of a string reduces the quoting nightmare.
27271 # Putting comments in sed scripts is not portable.
27272 #
27273 # `end' is used to avoid that the second main sed command (meant for
27274 # 0-ary CPP macros) applies to n-ary macro definitions.
27275 # See the Autoconf documentation for `clear'.
27276 cat >confdef2sed.sed <<\_ACEOF
27277 s/[\\&,]/\\&/g
27278 s,[\\$`],\\&,g
27279 t clear
27280 : clear
27281 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27282 t end
27283 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27284 : end
27285 _ACEOF
27286 # If some macros were called several times there might be several times
27287 # the same #defines, which is useless. Nevertheless, we may not want to
27288 # sort them, since we want the *last* AC-DEFINE to be honored.
27289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27291 rm -f confdef2sed.sed
27292
27293 # This sed command replaces #undef with comments. This is necessary, for
27294 # example, in the case of _POSIX_SOURCE, which is predefined and required
27295 # on some systems where configure will not decide to define it.
27296 cat >>conftest.undefs <<\_ACEOF
27297 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27298 _ACEOF
27299
27300 # Break up conftest.defines because some shells have a limit on the size
27301 # of here documents, and old seds have small limits too (100 cmds).
27302 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27303 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27304 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27305 echo ' :' >>$CONFIG_STATUS
27306 rm -f conftest.tail
27307 while grep . conftest.defines >/dev/null
27308 do
27309 # Write a limited-size here document to $tmp/defines.sed.
27310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27311 # Speed up: don't consider the non `#define' lines.
27312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27313 # Work around the forget-to-reset-the-flag bug.
27314 echo 't clr' >>$CONFIG_STATUS
27315 echo ': clr' >>$CONFIG_STATUS
27316 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27317 echo 'CEOF
27318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27319 rm -f $tmp/in
27320 mv $tmp/out $tmp/in
27321 ' >>$CONFIG_STATUS
27322 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27323 rm -f conftest.defines
27324 mv conftest.tail conftest.defines
27325 done
27326 rm -f conftest.defines
27327 echo ' fi # grep' >>$CONFIG_STATUS
27328 echo >>$CONFIG_STATUS
27329
27330 # Break up conftest.undefs because some shells have a limit on the size
27331 # of here documents, and old seds have small limits too (100 cmds).
27332 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27333 rm -f conftest.tail
27334 while grep . conftest.undefs >/dev/null
27335 do
27336 # Write a limited-size here document to $tmp/undefs.sed.
27337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27338 # Speed up: don't consider the non `#undef'
27339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27340 # Work around the forget-to-reset-the-flag bug.
27341 echo 't clr' >>$CONFIG_STATUS
27342 echo ': clr' >>$CONFIG_STATUS
27343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27344 echo 'CEOF
27345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27346 rm -f $tmp/in
27347 mv $tmp/out $tmp/in
27348 ' >>$CONFIG_STATUS
27349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27350 rm -f conftest.undefs
27351 mv conftest.tail conftest.undefs
27352 done
27353 rm -f conftest.undefs
27354
27355 cat >>$CONFIG_STATUS <<\_ACEOF
27356 # Let's still pretend it is `configure' which instantiates (i.e., don't
27357 # use $as_me), people would be surprised to read:
27358 # /* config.h. Generated by config.status. */
27359 if test x"$ac_file" = x-; then
27360 echo "/* Generated by configure. */" >$tmp/config.h
27361 else
27362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27363 fi
27364 cat $tmp/in >>$tmp/config.h
27365 rm -f $tmp/in
27366 if test x"$ac_file" != x-; then
27367 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369 echo "$as_me: $ac_file is unchanged" >&6;}
27370 else
27371 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373 X"$ac_file" : 'X\(//\)[^/]' \| \
27374 X"$ac_file" : 'X\(//\)$' \| \
27375 X"$ac_file" : 'X\(/\)' \| \
27376 . : '\(.\)' 2>/dev/null ||
27377 echo X"$ac_file" |
27378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380 /^X\(\/\/\)$/{ s//\1/; q; }
27381 /^X\(\/\).*/{ s//\1/; q; }
27382 s/.*/./; q'`
27383 { if $as_mkdir_p; then
27384 mkdir -p "$ac_dir"
27385 else
27386 as_dir="$ac_dir"
27387 as_dirs=
27388 while test ! -d "$as_dir"; do
27389 as_dirs="$as_dir $as_dirs"
27390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| \
27395 . : '\(.\)' 2>/dev/null ||
27396 echo X"$as_dir" |
27397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399 /^X\(\/\/\)$/{ s//\1/; q; }
27400 /^X\(\/\).*/{ s//\1/; q; }
27401 s/.*/./; q'`
27402 done
27403 test ! -n "$as_dirs" || mkdir $as_dirs
27404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27406 { (exit 1); exit 1; }; }; }
27407
27408 rm -f $ac_file
27409 mv $tmp/config.h $ac_file
27410 fi
27411 else
27412 cat $tmp/config.h
27413 rm -f $tmp/config.h
27414 fi
27415 # Compute $ac_file's index in $config_headers.
27416 _am_stamp_count=1
27417 for _am_header in $config_headers :; do
27418 case $_am_header in
27419 $ac_file | $ac_file:* )
27420 break ;;
27421 * )
27422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27423 esac
27424 done
27425 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27426 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427 X$ac_file : 'X\(//\)[^/]' \| \
27428 X$ac_file : 'X\(//\)$' \| \
27429 X$ac_file : 'X\(/\)' \| \
27430 . : '\(.\)' 2>/dev/null ||
27431 echo X$ac_file |
27432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434 /^X\(\/\/\)$/{ s//\1/; q; }
27435 /^X\(\/\).*/{ s//\1/; q; }
27436 s/.*/./; q'`/stamp-h$_am_stamp_count
27437 done
27438 _ACEOF
27439 cat >>$CONFIG_STATUS <<\_ACEOF
27440
27441 #
27442 # CONFIG_LINKS section.
27443 #
27444
27445 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27448
27449 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27450 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27451
27452 if test ! -r $srcdir/$ac_source; then
27453 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27454 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27455 { (exit 1); exit 1; }; }
27456 fi
27457 rm -f $ac_dest
27458
27459 # Make relative symlinks.
27460 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462 X"$ac_dest" : 'X\(//\)[^/]' \| \
27463 X"$ac_dest" : 'X\(//\)$' \| \
27464 X"$ac_dest" : 'X\(/\)' \| \
27465 . : '\(.\)' 2>/dev/null ||
27466 echo X"$ac_dest" |
27467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469 /^X\(\/\/\)$/{ s//\1/; q; }
27470 /^X\(\/\).*/{ s//\1/; q; }
27471 s/.*/./; q'`
27472 { if $as_mkdir_p; then
27473 mkdir -p "$ac_dest_dir"
27474 else
27475 as_dir="$ac_dest_dir"
27476 as_dirs=
27477 while test ! -d "$as_dir"; do
27478 as_dirs="$as_dir $as_dirs"
27479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481 X"$as_dir" : 'X\(//\)[^/]' \| \
27482 X"$as_dir" : 'X\(//\)$' \| \
27483 X"$as_dir" : 'X\(/\)' \| \
27484 . : '\(.\)' 2>/dev/null ||
27485 echo X"$as_dir" |
27486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488 /^X\(\/\/\)$/{ s//\1/; q; }
27489 /^X\(\/\).*/{ s//\1/; q; }
27490 s/.*/./; q'`
27491 done
27492 test ! -n "$as_dirs" || mkdir $as_dirs
27493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27494 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27495 { (exit 1); exit 1; }; }; }
27496
27497 ac_builddir=.
27498
27499 if test "$ac_dest_dir" != .; then
27500 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27501 # A "../" for each directory in $ac_dir_suffix.
27502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27503 else
27504 ac_dir_suffix= ac_top_builddir=
27505 fi
27506
27507 case $srcdir in
27508 .) # No --srcdir option. We are building in place.
27509 ac_srcdir=.
27510 if test -z "$ac_top_builddir"; then
27511 ac_top_srcdir=.
27512 else
27513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27514 fi ;;
27515 [\\/]* | ?:[\\/]* ) # Absolute path.
27516 ac_srcdir=$srcdir$ac_dir_suffix;
27517 ac_top_srcdir=$srcdir ;;
27518 *) # Relative path.
27519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27521 esac
27522
27523 # Do not use `cd foo && pwd` to compute absolute paths, because
27524 # the directories may not exist.
27525 case `pwd` in
27526 .) ac_abs_builddir="$ac_dest_dir";;
27527 *)
27528 case "$ac_dest_dir" in
27529 .) ac_abs_builddir=`pwd`;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27531 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27532 esac;;
27533 esac
27534 case $ac_abs_builddir in
27535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27536 *)
27537 case ${ac_top_builddir}. in
27538 .) ac_abs_top_builddir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27541 esac;;
27542 esac
27543 case $ac_abs_builddir in
27544 .) ac_abs_srcdir=$ac_srcdir;;
27545 *)
27546 case $ac_srcdir in
27547 .) ac_abs_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27550 esac;;
27551 esac
27552 case $ac_abs_builddir in
27553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27554 *)
27555 case $ac_top_srcdir in
27556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27559 esac;;
27560 esac
27561
27562
27563 case $srcdir in
27564 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27565 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27566 esac
27567
27568 # Try a symlink, then a hard link, then a copy.
27569 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27570 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27571 cp -p $srcdir/$ac_source $ac_dest ||
27572 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27573 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27574 { (exit 1); exit 1; }; }
27575 done
27576 _ACEOF
27577 cat >>$CONFIG_STATUS <<\_ACEOF
27578
27579 #
27580 # CONFIG_COMMANDS section.
27581 #
27582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587 X"$ac_dest" : 'X\(//\)[^/]' \| \
27588 X"$ac_dest" : 'X\(//\)$' \| \
27589 X"$ac_dest" : 'X\(/\)' \| \
27590 . : '\(.\)' 2>/dev/null ||
27591 echo X"$ac_dest" |
27592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27594 /^X\(\/\/\)$/{ s//\1/; q; }
27595 /^X\(\/\).*/{ s//\1/; q; }
27596 s/.*/./; q'`
27597 { if $as_mkdir_p; then
27598 mkdir -p "$ac_dir"
27599 else
27600 as_dir="$ac_dir"
27601 as_dirs=
27602 while test ! -d "$as_dir"; do
27603 as_dirs="$as_dir $as_dirs"
27604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| \
27609 . : '\(.\)' 2>/dev/null ||
27610 echo X"$as_dir" |
27611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27613 /^X\(\/\/\)$/{ s//\1/; q; }
27614 /^X\(\/\).*/{ s//\1/; q; }
27615 s/.*/./; q'`
27616 done
27617 test ! -n "$as_dirs" || mkdir $as_dirs
27618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27620 { (exit 1); exit 1; }; }; }
27621
27622 ac_builddir=.
27623
27624 if test "$ac_dir" != .; then
27625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27626 # A "../" for each directory in $ac_dir_suffix.
27627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27628 else
27629 ac_dir_suffix= ac_top_builddir=
27630 fi
27631
27632 case $srcdir in
27633 .) # No --srcdir option. We are building in place.
27634 ac_srcdir=.
27635 if test -z "$ac_top_builddir"; then
27636 ac_top_srcdir=.
27637 else
27638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27639 fi ;;
27640 [\\/]* | ?:[\\/]* ) # Absolute path.
27641 ac_srcdir=$srcdir$ac_dir_suffix;
27642 ac_top_srcdir=$srcdir ;;
27643 *) # Relative path.
27644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27646 esac
27647
27648 # Do not use `cd foo && pwd` to compute absolute paths, because
27649 # the directories may not exist.
27650 case `pwd` in
27651 .) ac_abs_builddir="$ac_dir";;
27652 *)
27653 case "$ac_dir" in
27654 .) ac_abs_builddir=`pwd`;;
27655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27657 esac;;
27658 esac
27659 case $ac_abs_builddir in
27660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27661 *)
27662 case ${ac_top_builddir}. in
27663 .) ac_abs_top_builddir=$ac_abs_builddir;;
27664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27666 esac;;
27667 esac
27668 case $ac_abs_builddir in
27669 .) ac_abs_srcdir=$ac_srcdir;;
27670 *)
27671 case $ac_srcdir in
27672 .) ac_abs_srcdir=$ac_abs_builddir;;
27673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27675 esac;;
27676 esac
27677 case $ac_abs_builddir in
27678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27679 *)
27680 case $ac_top_srcdir in
27681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27684 esac;;
27685 esac
27686
27687
27688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27689 echo "$as_me: executing $ac_dest commands" >&6;}
27690 case $ac_dest in
27691 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
27692 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27693 # Strip MF so we end up with the name of the file.
27694 mf=`echo "$mf" | sed -e 's/:.*$//'`
27695 # Check whether this is an Automake generated Makefile or not.
27696 # We used to match only the files named `Makefile.in', but
27697 # some people rename them; so instead we look at the file content.
27698 # Grep'ing the first line is not enough: some people post-process
27699 # each Makefile.in and add a new line on top of each file to say so.
27700 # So let's grep whole file.
27701 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27702 dirpart=`(dirname "$mf") 2>/dev/null ||
27703 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27704 X"$mf" : 'X\(//\)[^/]' \| \
27705 X"$mf" : 'X\(//\)$' \| \
27706 X"$mf" : 'X\(/\)' \| \
27707 . : '\(.\)' 2>/dev/null ||
27708 echo X"$mf" |
27709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27711 /^X\(\/\/\)$/{ s//\1/; q; }
27712 /^X\(\/\).*/{ s//\1/; q; }
27713 s/.*/./; q'`
27714 else
27715 continue
27716 fi
27717 # Extract the definition of DEPDIR, am__include, and am__quote
27718 # from the Makefile without running `make'.
27719 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27720 test -z "$DEPDIR" && continue
27721 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27722 test -z "am__include" && continue
27723 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27724 # When using ansi2knr, U may be empty or an underscore; expand it
27725 U=`sed -n 's/^U = //p' < "$mf"`
27726 # Find all dependency output files, they are included files with
27727 # $(DEPDIR) in their names. We invoke sed twice because it is the
27728 # simplest approach to changing $(DEPDIR) to its actual value in the
27729 # expansion.
27730 for file in `sed -n "
27731 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27733 # Make sure the directory exists.
27734 test -f "$dirpart/$file" && continue
27735 fdir=`(dirname "$file") 2>/dev/null ||
27736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27737 X"$file" : 'X\(//\)[^/]' \| \
27738 X"$file" : 'X\(//\)$' \| \
27739 X"$file" : 'X\(/\)' \| \
27740 . : '\(.\)' 2>/dev/null ||
27741 echo X"$file" |
27742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27744 /^X\(\/\/\)$/{ s//\1/; q; }
27745 /^X\(\/\).*/{ s//\1/; q; }
27746 s/.*/./; q'`
27747 { if $as_mkdir_p; then
27748 mkdir -p $dirpart/$fdir
27749 else
27750 as_dir=$dirpart/$fdir
27751 as_dirs=
27752 while test ! -d "$as_dir"; do
27753 as_dirs="$as_dir $as_dirs"
27754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756 X"$as_dir" : 'X\(//\)[^/]' \| \
27757 X"$as_dir" : 'X\(//\)$' \| \
27758 X"$as_dir" : 'X\(/\)' \| \
27759 . : '\(.\)' 2>/dev/null ||
27760 echo X"$as_dir" |
27761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27763 /^X\(\/\/\)$/{ s//\1/; q; }
27764 /^X\(\/\).*/{ s//\1/; q; }
27765 s/.*/./; q'`
27766 done
27767 test ! -n "$as_dirs" || mkdir $as_dirs
27768 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27769 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27770 { (exit 1); exit 1; }; }; }
27771
27772 # echo "creating $dirpart/$file"
27773 echo '# dummy' > "$dirpart/$file"
27774 done
27775 done
27776 ;;
27777 default )
27778
27779 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27780 mv -f Makefile.tmp Makefile
27781
27782
27783 case x$CONFIG_HEADERS in
27784 xconfig.h:config.in)
27785 echo > stamp-h ;;
27786 esac
27787 ;;
27788 esac
27789 done
27790 _ACEOF
27791
27792 cat >>$CONFIG_STATUS <<\_ACEOF
27793
27794 { (exit 0); exit 0; }
27795 _ACEOF
27796 chmod +x $CONFIG_STATUS
27797 ac_clean_files=$ac_clean_files_save
27798
27799
27800 # configure is writing to config.log, and then calls config.status.
27801 # config.status does its own redirection, appending to config.log.
27802 # Unfortunately, on DOS this fails, as config.log is still kept open
27803 # by configure, so config.status won't be able to write to it; its
27804 # output is simply discarded. So we exec the FD to /dev/null,
27805 # effectively closing config.log, so it can be properly (re)opened and
27806 # appended to by config.status. When coming back to configure, we
27807 # need to make the FD available again.
27808 if test "$no_create" != yes; then
27809 ac_cs_success=:
27810 ac_config_status_args=
27811 test "$silent" = yes &&
27812 ac_config_status_args="$ac_config_status_args --quiet"
27813 exec 5>/dev/null
27814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27815 exec 5>>config.log
27816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27817 # would make configure fail if this is the last instruction.
27818 $ac_cs_success || { (exit 1); exit 1; }
27819 fi
27820
27821 #
27822 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27823 #
27824 if test "$no_recursion" != yes; then
27825
27826 # Remove --cache-file and --srcdir arguments so they do not pile up.
27827 ac_sub_configure_args=
27828 ac_prev=
27829 eval "set x $ac_configure_args"
27830 shift
27831 for ac_arg
27832 do
27833 if test -n "$ac_prev"; then
27834 ac_prev=
27835 continue
27836 fi
27837 case $ac_arg in
27838 -cache-file | --cache-file | --cache-fil | --cache-fi \
27839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27840 ac_prev=cache_file ;;
27841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27843 | --c=*)
27844 ;;
27845 --config-cache | -C)
27846 ;;
27847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27848 ac_prev=srcdir ;;
27849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27850 ;;
27851 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27852 ac_prev=prefix ;;
27853 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27854 ;;
27855 *)
27856 case $ac_arg in
27857 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27858 esac
27859 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27860 esac
27861 done
27862
27863 # Always prepend --prefix to ensure using the same prefix
27864 # in subdir configurations.
27865 ac_arg="--prefix=$prefix"
27866 case $ac_arg in
27867 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27868 esac
27869 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27870
27871 ac_popdir=`pwd`
27872 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27873
27874 # Do not complain, so a configure script can configure whichever
27875 # parts of a large source tree are present.
27876 test -d "$srcdir/$ac_dir" || continue
27877
27878 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27879 echo "$as_me: configuring in $ac_dir" >&6;}
27880 { if $as_mkdir_p; then
27881 mkdir -p "$ac_dir"
27882 else
27883 as_dir="$ac_dir"
27884 as_dirs=
27885 while test ! -d "$as_dir"; do
27886 as_dirs="$as_dir $as_dirs"
27887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$as_dir" : 'X\(//\)[^/]' \| \
27890 X"$as_dir" : 'X\(//\)$' \| \
27891 X"$as_dir" : 'X\(/\)' \| \
27892 . : '\(.\)' 2>/dev/null ||
27893 echo X"$as_dir" |
27894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27896 /^X\(\/\/\)$/{ s//\1/; q; }
27897 /^X\(\/\).*/{ s//\1/; q; }
27898 s/.*/./; q'`
27899 done
27900 test ! -n "$as_dirs" || mkdir $as_dirs
27901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27903 { (exit 1); exit 1; }; }; }
27904
27905 ac_builddir=.
27906
27907 if test "$ac_dir" != .; then
27908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27909 # A "../" for each directory in $ac_dir_suffix.
27910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27911 else
27912 ac_dir_suffix= ac_top_builddir=
27913 fi
27914
27915 case $srcdir in
27916 .) # No --srcdir option. We are building in place.
27917 ac_srcdir=.
27918 if test -z "$ac_top_builddir"; then
27919 ac_top_srcdir=.
27920 else
27921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27922 fi ;;
27923 [\\/]* | ?:[\\/]* ) # Absolute path.
27924 ac_srcdir=$srcdir$ac_dir_suffix;
27925 ac_top_srcdir=$srcdir ;;
27926 *) # Relative path.
27927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27929 esac
27930
27931 # Do not use `cd foo && pwd` to compute absolute paths, because
27932 # the directories may not exist.
27933 case `pwd` in
27934 .) ac_abs_builddir="$ac_dir";;
27935 *)
27936 case "$ac_dir" in
27937 .) ac_abs_builddir=`pwd`;;
27938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27940 esac;;
27941 esac
27942 case $ac_abs_builddir in
27943 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27944 *)
27945 case ${ac_top_builddir}. in
27946 .) ac_abs_top_builddir=$ac_abs_builddir;;
27947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27949 esac;;
27950 esac
27951 case $ac_abs_builddir in
27952 .) ac_abs_srcdir=$ac_srcdir;;
27953 *)
27954 case $ac_srcdir in
27955 .) ac_abs_srcdir=$ac_abs_builddir;;
27956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27958 esac;;
27959 esac
27960 case $ac_abs_builddir in
27961 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27962 *)
27963 case $ac_top_srcdir in
27964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27967 esac;;
27968 esac
27969
27970
27971 cd "$ac_dir"
27972
27973 # Check for guested configure; otherwise get Cygnus style configure.
27974 if test -f "$ac_srcdir/configure.gnu"; then
27975 ac_sub_configure=$ac_srcdir/configure.gnu
27976 elif test -f "$ac_srcdir/configure"; then
27977 ac_sub_configure=$ac_srcdir/configure
27978 elif test -f "$ac_srcdir/configure.in"; then
27979 # This should be Cygnus configure.
27980 ac_sub_configure=$ac_aux_dir/configure
27981 else
27982 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27984 ac_sub_configure=
27985 fi
27986
27987 # The recursion is here.
27988 if test -n "$ac_sub_configure"; then
27989 # Make the cache file name correct relative to the subdirectory.
27990 case $cache_file in
27991 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27992 *) # Relative path.
27993 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27994 esac
27995
27996 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27997 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27998 # The eval makes quoting arguments work.
27999 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28000 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28001 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28002 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28003 { (exit 1); exit 1; }; }
28004 fi
28005
28006 cd "$ac_popdir"
28007 done
28008 fi
28009
28010
28011 exit 0
This page took 0.784222 seconds and 5 git commands to generate.