2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / configure
... / ...
CommitLineData
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_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
312gl_header_list=
313ac_subdirs_all="$ac_subdirs_all doc testsuite"
314ac_subdirs_all="$ac_subdirs_all gdbtk"
315ac_subdirs_all="$ac_subdirs_all multi-ice"
316ac_subdirs_all="$ac_subdirs_all gdbserver"
317ac_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 datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318ac_subst_files='host_makefile_frag'
319ac_pwd=`pwd`
320
321# Initialize some variables set by options.
322ac_init_help=
323ac_init_version=false
324# The variables have the same names as the options, with
325# dashes changed to underlines.
326cache_file=/dev/null
327exec_prefix=NONE
328no_create=
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
337verbose=
338x_includes=NONE
339x_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.
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
358
359ac_prev=
360for ac_option
361do
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
633Try \`$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
656done
657
658if 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; }; }
662fi
663
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
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
673done
674
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678do
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
685done
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.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if 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
703fi
704
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
709
710
711# Find the source files, if location was not specified.
712if 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 ||
721echo 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
731else
732 ac_srcdir_defaulted=no
733fi
734if 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
742fi
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; }; }
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
779
780#
781# Report the --help message.
782#
783if 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
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
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
810Installation 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
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine 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
840Program 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
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System 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
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional 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=TARGETS
868 alternative target configurations
869 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
870 --disable-gdbcli disable command-line interface (CLI)
871 --disable-gdbmi disable machine-interface (MI)
872 --enable-tui enable full-screen terminal user interface (TUI)
873 --enable-gdbtk enable gdbtk graphical user interface (GUI)
874 --enable-profiling enable profiling of GDB
875 --disable-rpath do not hardcode runtime library paths
876 --enable-werror treat compile warnings as errors
877 --enable-build-warnings Enable build-time compiler warnings if gcc is used
878 --enable-gdb-build-warnings
879 Enable GDB specific build-time compiler warnings if
880 gcc is used
881 --enable-sim Link gdb with simulator
882 --enable-multi-ice build the multi-ice-gdb-server
883
884Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-separate-debug-dir=PATH
888 Look for global separate debug info in this path
889 LIBDIR/debug
890 --with-relocated-sources=PATH
891 Automatically relocate this path for source files
892 --with-libunwind Use libunwind frame unwinding support
893 --with-curses use the curses library instead of the termcap
894 library
895 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
896 --with-bugurl=URL Direct users to URL to report a bug
897 --with-libiconv-prefix=DIR
898 search for libiconv in DIR/include and DIR/lib
899 --with-system-readline use installed readline library
900 --with-expat include expat support (auto/yes/no)
901 --with-gnu-ld assume the C compiler uses GNU ld default=no
902 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
903 --without-libexpat-prefix don't search for libexpat in includedir and libdir
904 --with-python include python support (auto/yes/no/<path>)
905 --without-included-regex
906 don't use included regex; this is the default on
907 systems with version 2 of the GNU C library (use
908 with caution on other system)
909 --with-sysroot=DIR Search for usr/lib et al within DIR.
910 --with-system-gdbinit=FILE
911 Automatically load a system-wide gdbinit file
912 --with-tcl directory containing tcl configuration (tclConfig.sh)
913 --with-tk directory containing tk configuration (tkConfig.sh)
914 --with-x use the X Window System
915
916Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CPP C preprocessor
924
925Use these variables to override the choices made by `configure' or to help
926it to find libraries and programs with nonstandard names/locations.
927
928_ACEOF
929fi
930
931if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
933 ac_popdir=`pwd`
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
936 ac_builddir=.
937
938if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942else
943 ac_dir_suffix= ac_top_builddir=
944fi
945
946case $srcdir in
947 .) # No --srcdir option. We are building in place.
948 ac_srcdir=.
949 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=.
951 else
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953 fi ;;
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
957 *) # Relative path.
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
960esac
961
962# Do not use `cd foo && pwd` to compute absolute paths, because
963# the directories may not exist.
964case `pwd` in
965.) ac_abs_builddir="$ac_dir";;
966*)
967 case "$ac_dir" in
968 .) ac_abs_builddir=`pwd`;;
969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
970 *) ac_abs_builddir=`pwd`/"$ac_dir";;
971 esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_builddir=${ac_top_builddir}.;;
975*)
976 case ${ac_top_builddir}. in
977 .) ac_abs_top_builddir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
980 esac;;
981esac
982case $ac_abs_builddir in
983.) ac_abs_srcdir=$ac_srcdir;;
984*)
985 case $ac_srcdir in
986 .) ac_abs_srcdir=$ac_abs_builddir;;
987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
989 esac;;
990esac
991case $ac_abs_builddir in
992.) ac_abs_top_srcdir=$ac_top_srcdir;;
993*)
994 case $ac_top_srcdir in
995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
998 esac;;
999esac
1000
1001 cd $ac_dir
1002 # Check for guested configure; otherwise get Cygnus style configure.
1003 if test -f $ac_srcdir/configure.gnu; then
1004 echo
1005 $SHELL $ac_srcdir/configure.gnu --help=recursive
1006 elif test -f $ac_srcdir/configure; then
1007 echo
1008 $SHELL $ac_srcdir/configure --help=recursive
1009 elif test -f $ac_srcdir/configure.ac ||
1010 test -f $ac_srcdir/configure.in; then
1011 echo
1012 $ac_configure --help
1013 else
1014 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1015 fi
1016 cd $ac_popdir
1017 done
1018fi
1019
1020test -n "$ac_init_help" && exit 0
1021if $ac_init_version; then
1022 cat <<\_ACEOF
1023
1024Copyright (C) 2003 Free Software Foundation, Inc.
1025This configure script is free software; the Free Software Foundation
1026gives unlimited permission to copy, distribute and modify it.
1027_ACEOF
1028 exit 0
1029fi
1030exec 5>config.log
1031cat >&5 <<_ACEOF
1032This file contains any messages produced by compilers while
1033running configure, to aid debugging if configure makes a mistake.
1034
1035It was created by $as_me, which was
1036generated by GNU Autoconf 2.59. Invocation command line was
1037
1038 $ $0 $@
1039
1040_ACEOF
1041{
1042cat <<_ASUNAME
1043## --------- ##
1044## Platform. ##
1045## --------- ##
1046
1047hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1048uname -m = `(uname -m) 2>/dev/null || echo unknown`
1049uname -r = `(uname -r) 2>/dev/null || echo unknown`
1050uname -s = `(uname -s) 2>/dev/null || echo unknown`
1051uname -v = `(uname -v) 2>/dev/null || echo unknown`
1052
1053/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1054/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1055
1056/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1057/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1058/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1059hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1060/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1061/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1062/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1063
1064_ASUNAME
1065
1066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067for as_dir in $PATH
1068do
1069 IFS=$as_save_IFS
1070 test -z "$as_dir" && as_dir=.
1071 echo "PATH: $as_dir"
1072done
1073
1074} >&5
1075
1076cat >&5 <<_ACEOF
1077
1078
1079## ----------- ##
1080## Core tests. ##
1081## ----------- ##
1082
1083_ACEOF
1084
1085
1086# Keep a trace of the command line.
1087# Strip out --no-create and --no-recursion so they do not pile up.
1088# Strip out --silent because we don't want to record it for future runs.
1089# Also quote any args containing shell meta-characters.
1090# Make two passes to allow for proper duplicate-argument suppression.
1091ac_configure_args=
1092ac_configure_args0=
1093ac_configure_args1=
1094ac_sep=
1095ac_must_keep_next=false
1096for ac_pass in 1 2
1097do
1098 for ac_arg
1099 do
1100 case $ac_arg in
1101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 continue ;;
1105 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1106 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1107 esac
1108 case $ac_pass in
1109 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1110 2)
1111 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1112 if test $ac_must_keep_next = true; then
1113 ac_must_keep_next=false # Got value, back to normal.
1114 else
1115 case $ac_arg in
1116 *=* | --config-cache | -C | -disable-* | --disable-* \
1117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1119 | -with-* | --with-* | -without-* | --without-* | --x)
1120 case "$ac_configure_args0 " in
1121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122 esac
1123 ;;
1124 -* ) ac_must_keep_next=true ;;
1125 esac
1126 fi
1127 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1128 # Get rid of the leading space.
1129 ac_sep=" "
1130 ;;
1131 esac
1132 done
1133done
1134$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1135$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1136
1137# When interrupted or exit'd, cleanup temporary files, and complete
1138# config.log. We remove comments because anyway the quotes in there
1139# would cause problems or look ugly.
1140# WARNING: Be sure not to use single quotes in there, as some shells,
1141# such as our DU 5.0 friend, will then `close' the trap.
1142trap 'exit_status=$?
1143 # Save into config.log some information that might help in debugging.
1144 {
1145 echo
1146
1147 cat <<\_ASBOX
1148## ---------------- ##
1149## Cache variables. ##
1150## ---------------- ##
1151_ASBOX
1152 echo
1153 # The following way of writing the cache mishandles newlines in values,
1154{
1155 (set) 2>&1 |
1156 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157 *ac_space=\ *)
1158 sed -n \
1159 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1161 ;;
1162 *)
1163 sed -n \
1164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1165 ;;
1166 esac;
1167}
1168 echo
1169
1170 cat <<\_ASBOX
1171## ----------------- ##
1172## Output variables. ##
1173## ----------------- ##
1174_ASBOX
1175 echo
1176 for ac_var in $ac_subst_vars
1177 do
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1180 done | sort
1181 echo
1182
1183 if test -n "$ac_subst_files"; then
1184 cat <<\_ASBOX
1185## ------------- ##
1186## Output files. ##
1187## ------------- ##
1188_ASBOX
1189 echo
1190 for ac_var in $ac_subst_files
1191 do
1192 eval ac_val=$`echo $ac_var`
1193 echo "$ac_var='"'"'$ac_val'"'"'"
1194 done | sort
1195 echo
1196 fi
1197
1198 if test -s confdefs.h; then
1199 cat <<\_ASBOX
1200## ----------- ##
1201## confdefs.h. ##
1202## ----------- ##
1203_ASBOX
1204 echo
1205 sed "/^$/d" confdefs.h | sort
1206 echo
1207 fi
1208 test "$ac_signal" != 0 &&
1209 echo "$as_me: caught signal $ac_signal"
1210 echo "$as_me: exit $exit_status"
1211 } >&5
1212 rm -f core *.core &&
1213 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1214 exit $exit_status
1215 ' 0
1216for ac_signal in 1 2 13 15; do
1217 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1218done
1219ac_signal=0
1220
1221# confdefs.h avoids OS command line length limits that DEFS can exceed.
1222rm -rf conftest* confdefs.h
1223# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224echo >confdefs.h
1225
1226# Predefined preprocessor variables.
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_NAME "$PACKAGE_NAME"
1230_ACEOF
1231
1232
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1235_ACEOF
1236
1237
1238cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_VERSION "$PACKAGE_VERSION"
1240_ACEOF
1241
1242
1243cat >>confdefs.h <<_ACEOF
1244#define PACKAGE_STRING "$PACKAGE_STRING"
1245_ACEOF
1246
1247
1248cat >>confdefs.h <<_ACEOF
1249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1250_ACEOF
1251
1252
1253# Let the site file select an alternate cache file if it wants to.
1254# Prefer explicitly selected file to automatically selected ones.
1255if test -z "$CONFIG_SITE"; then
1256 if test "x$prefix" != xNONE; then
1257 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1258 else
1259 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260 fi
1261fi
1262for ac_site_file in $CONFIG_SITE; do
1263 if test -r "$ac_site_file"; then
1264 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1265echo "$as_me: loading site script $ac_site_file" >&6;}
1266 sed 's/^/| /' "$ac_site_file" >&5
1267 . "$ac_site_file"
1268 fi
1269done
1270
1271if test -r "$cache_file"; then
1272 # Some versions of bash will fail to source /dev/null (special
1273 # files actually), so we avoid doing that.
1274 if test -f "$cache_file"; then
1275 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1276echo "$as_me: loading cache $cache_file" >&6;}
1277 case $cache_file in
1278 [\\/]* | ?:[\\/]* ) . $cache_file;;
1279 *) . ./$cache_file;;
1280 esac
1281 fi
1282else
1283 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1284echo "$as_me: creating cache $cache_file" >&6;}
1285 >$cache_file
1286fi
1287
1288# Check that the precious variables saved in the cache have kept the same
1289# value.
1290ac_cache_corrupted=false
1291for ac_var in `(set) 2>&1 |
1292 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1294 eval ac_new_set=\$ac_env_${ac_var}_set
1295 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1296 eval ac_new_val="\$ac_env_${ac_var}_value"
1297 case $ac_old_set,$ac_new_set in
1298 set,)
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1300echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1302 ,set)
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1304echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1306 ,);;
1307 *)
1308 if test "x$ac_old_val" != "x$ac_new_val"; then
1309 # differences in whitespace do not lead to failure.
1310 ac_old_val_w=`echo x $ac_old_val`
1311 ac_new_val_w=`echo x $ac_new_val`
1312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1313 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 ac_cache_corrupted=:
1316 else
1317 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1318echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1319 eval $ac_var=\$ac_old_val
1320 fi
1321 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1322echo "$as_me: former value: \`$ac_old_val'" >&2;}
1323 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1324echo "$as_me: current value: \`$ac_new_val'" >&2;}
1325 fi;;
1326 esac
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1329 case $ac_new_val in
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1333 esac
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337 esac
1338 fi
1339done
1340if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1342echo "$as_me: error: in \`$ac_pwd':" >&2;}
1343 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1344echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1345 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1346echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1347 { (exit 1); exit 1; }; }
1348fi
1349
1350ac_ext=c
1351ac_cpp='$CPP $CPPFLAGS'
1352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1354ac_compiler_gnu=$ac_cv_c_compiler_gnu
1355
1356
1357gl_header_list="$gl_header_list stdint.h"
1358gl_header_list="$gl_header_list wchar.h"
1359gl_header_list="$gl_header_list string.h"
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380 ac_config_headers="$ac_config_headers config.h:config.in"
1381
1382echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1383echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1384 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1385if test "${enable_maintainer_mode+set}" = set; then
1386 enableval="$enable_maintainer_mode"
1387 USE_MAINTAINER_MODE=$enableval
1388else
1389 USE_MAINTAINER_MODE=no
1390fi;
1391 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1392echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1393
1394
1395if test $USE_MAINTAINER_MODE = yes; then
1396 MAINTAINER_MODE_TRUE=
1397 MAINTAINER_MODE_FALSE='#'
1398else
1399 MAINTAINER_MODE_TRUE='#'
1400 MAINTAINER_MODE_FALSE=
1401fi
1402
1403 MAINT=$MAINTAINER_MODE_TRUE
1404
1405
1406
1407ac_ext=c
1408ac_cpp='$CPP $CPPFLAGS'
1409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1411ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412if test -n "$ac_tool_prefix"; then
1413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1414set dummy ${ac_tool_prefix}gcc; ac_word=$2
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 if test -n "$CC"; then
1421 ac_cv_prog_CC="$CC" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434done
1435done
1436
1437fi
1438fi
1439CC=$ac_cv_prog_CC
1440if test -n "$CC"; then
1441 echo "$as_me:$LINENO: result: $CC" >&5
1442echo "${ECHO_T}$CC" >&6
1443else
1444 echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448fi
1449if test -z "$ac_cv_prog_CC"; then
1450 ac_ct_CC=$CC
1451 # Extract the first word of "gcc", so it can be a program name with args.
1452set dummy gcc; ac_word=$2
1453echo "$as_me:$LINENO: checking for $ac_word" >&5
1454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
1458 if test -n "$ac_ct_CC"; then
1459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1460else
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 for ac_exec_ext in '' $ac_executable_extensions; do
1467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468 ac_cv_prog_ac_ct_CC="gcc"
1469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470 break 2
1471 fi
1472done
1473done
1474
1475fi
1476fi
1477ac_ct_CC=$ac_cv_prog_ac_ct_CC
1478if test -n "$ac_ct_CC"; then
1479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1480echo "${ECHO_T}$ac_ct_CC" >&6
1481else
1482 echo "$as_me:$LINENO: result: no" >&5
1483echo "${ECHO_T}no" >&6
1484fi
1485
1486 CC=$ac_ct_CC
1487else
1488 CC="$ac_cv_prog_CC"
1489fi
1490
1491if test -z "$CC"; then
1492 if test -n "$ac_tool_prefix"; then
1493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1494set dummy ${ac_tool_prefix}cc; ac_word=$2
1495echo "$as_me:$LINENO: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500 if test -n "$CC"; then
1501 ac_cv_prog_CC="$CC" # Let the user override the test.
1502else
1503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504for as_dir in $PATH
1505do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_CC="${ac_tool_prefix}cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514done
1515done
1516
1517fi
1518fi
1519CC=$ac_cv_prog_CC
1520if test -n "$CC"; then
1521 echo "$as_me:$LINENO: result: $CC" >&5
1522echo "${ECHO_T}$CC" >&6
1523else
1524 echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
1526fi
1527
1528fi
1529if test -z "$ac_cv_prog_CC"; then
1530 ac_ct_CC=$CC
1531 # Extract the first word of "cc", so it can be a program name with args.
1532set dummy cc; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 if test -n "$ac_ct_CC"; then
1539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544 IFS=$as_save_IFS
1545 test -z "$as_dir" && as_dir=.
1546 for ac_exec_ext in '' $ac_executable_extensions; do
1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548 ac_cv_prog_ac_ct_CC="cc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552done
1553done
1554
1555fi
1556fi
1557ac_ct_CC=$ac_cv_prog_ac_ct_CC
1558if test -n "$ac_ct_CC"; then
1559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1560echo "${ECHO_T}$ac_ct_CC" >&6
1561else
1562 echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566 CC=$ac_ct_CC
1567else
1568 CC="$ac_cv_prog_CC"
1569fi
1570
1571fi
1572if test -z "$CC"; then
1573 # Extract the first word of "cc", so it can be a program name with args.
1574set dummy cc; ac_word=$2
1575echo "$as_me:$LINENO: checking for $ac_word" >&5
1576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577if test "${ac_cv_prog_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 if test -n "$CC"; then
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1582else
1583 ac_prog_rejected=no
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1592 ac_prog_rejected=yes
1593 continue
1594 fi
1595 ac_cv_prog_CC="cc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 break 2
1598 fi
1599done
1600done
1601
1602if test $ac_prog_rejected = yes; then
1603 # We found a bogon in the path, so make sure we never use it.
1604 set dummy $ac_cv_prog_CC
1605 shift
1606 if test $# != 0; then
1607 # We chose a different compiler from the bogus one.
1608 # However, it has the same basename, so the bogon will be chosen
1609 # first if we set CC to just the basename; use the full file name.
1610 shift
1611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1612 fi
1613fi
1614fi
1615fi
1616CC=$ac_cv_prog_CC
1617if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619echo "${ECHO_T}$CC" >&6
1620else
1621 echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
1623fi
1624
1625fi
1626if test -z "$CC"; then
1627 if test -n "$ac_tool_prefix"; then
1628 for ac_prog in cl
1629 do
1630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1632echo "$as_me:$LINENO: checking for $ac_word" >&5
1633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1639else
1640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641for as_dir in $PATH
1642do
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 break 2
1650 fi
1651done
1652done
1653
1654fi
1655fi
1656CC=$ac_cv_prog_CC
1657if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659echo "${ECHO_T}$CC" >&6
1660else
1661 echo "$as_me:$LINENO: result: no" >&5
1662echo "${ECHO_T}no" >&6
1663fi
1664
1665 test -n "$CC" && break
1666 done
1667fi
1668if test -z "$CC"; then
1669 ac_ct_CC=$CC
1670 for ac_prog in cl
1671do
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673set dummy $ac_prog; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1692 fi
1693done
1694done
1695
1696fi
1697fi
1698ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701echo "${ECHO_T}$ac_ct_CC" >&6
1702else
1703 echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707 test -n "$ac_ct_CC" && break
1708done
1709
1710 CC=$ac_ct_CC
1711fi
1712
1713fi
1714
1715
1716test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1717echo "$as_me: error: in \`$ac_pwd':" >&2;}
1718{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1719See \`config.log' for more details." >&5
1720echo "$as_me: error: no acceptable C compiler found in \$PATH
1721See \`config.log' for more details." >&2;}
1722 { (exit 1); exit 1; }; }; }
1723
1724# Provide some information about the compiler.
1725echo "$as_me:$LINENO:" \
1726 "checking for C compiler version" >&5
1727ac_compiler=`set X $ac_compile; echo $2`
1728{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1729 (eval $ac_compiler --version </dev/null >&5) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1734 (eval $ac_compiler -v </dev/null >&5) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }
1738{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1739 (eval $ac_compiler -V </dev/null >&5) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }
1743
1744cat >conftest.$ac_ext <<_ACEOF
1745/* confdefs.h. */
1746_ACEOF
1747cat confdefs.h >>conftest.$ac_ext
1748cat >>conftest.$ac_ext <<_ACEOF
1749/* end confdefs.h. */
1750
1751int
1752main ()
1753{
1754
1755 ;
1756 return 0;
1757}
1758_ACEOF
1759ac_clean_files_save=$ac_clean_files
1760ac_clean_files="$ac_clean_files a.out a.exe b.out"
1761# Try to create an executable without -o first, disregard a.out.
1762# It will help us diagnose broken compilers, and finding out an intuition
1763# of exeext.
1764echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1765echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1767if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1768 (eval $ac_link_default) 2>&5
1769 ac_status=$?
1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771 (exit $ac_status); }; then
1772 # Find the output, starting from the most likely. This scheme is
1773# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1774# resort.
1775
1776# Be careful to initialize this variable, since it used to be cached.
1777# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1778ac_cv_exeext=
1779# b.out is created by i960 compilers.
1780for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1781do
1782 test -f "$ac_file" || continue
1783 case $ac_file in
1784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1785 ;;
1786 conftest.$ac_ext )
1787 # This is the source file.
1788 ;;
1789 [ab].out )
1790 # We found the default executable, but exeext='' is most
1791 # certainly right.
1792 break;;
1793 *.* )
1794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1795 # FIXME: I believe we export ac_cv_exeext for Libtool,
1796 # but it would be cool to find out if it's true. Does anybody
1797 # maintain Libtool? --akim.
1798 export ac_cv_exeext
1799 break;;
1800 * )
1801 break;;
1802 esac
1803done
1804else
1805 echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1809echo "$as_me: error: in \`$ac_pwd':" >&2;}
1810{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1811See \`config.log' for more details." >&5
1812echo "$as_me: error: C compiler cannot create executables
1813See \`config.log' for more details." >&2;}
1814 { (exit 77); exit 77; }; }; }
1815fi
1816
1817ac_exeext=$ac_cv_exeext
1818echo "$as_me:$LINENO: result: $ac_file" >&5
1819echo "${ECHO_T}$ac_file" >&6
1820
1821# Check the compiler produces executables we can run. If not, either
1822# the compiler is broken, or we cross compile.
1823echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1824echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1825# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1826# If not cross compiling, check that we can run a simple program.
1827if test "$cross_compiling" != yes; then
1828 if { ac_try='./$ac_file'
1829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1830 (eval $ac_try) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }; }; then
1834 cross_compiling=no
1835 else
1836 if test "$cross_compiling" = maybe; then
1837 cross_compiling=yes
1838 else
1839 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1840echo "$as_me: error: in \`$ac_pwd':" >&2;}
1841{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1842If you meant to cross compile, use \`--host'.
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: cannot run C compiled programs.
1845If you meant to cross compile, use \`--host'.
1846See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }; }
1848 fi
1849 fi
1850fi
1851echo "$as_me:$LINENO: result: yes" >&5
1852echo "${ECHO_T}yes" >&6
1853
1854rm -f a.out a.exe conftest$ac_cv_exeext b.out
1855ac_clean_files=$ac_clean_files_save
1856# Check the compiler produces executables we can run. If not, either
1857# the compiler is broken, or we cross compile.
1858echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1859echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1860echo "$as_me:$LINENO: result: $cross_compiling" >&5
1861echo "${ECHO_T}$cross_compiling" >&6
1862
1863echo "$as_me:$LINENO: checking for suffix of executables" >&5
1864echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1866 (eval $ac_link) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1871# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1872# work properly (i.e., refer to `conftest.exe'), while it won't with
1873# `rm'.
1874for ac_file in conftest.exe conftest conftest.*; do
1875 test -f "$ac_file" || continue
1876 case $ac_file in
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879 export ac_cv_exeext
1880 break;;
1881 * ) break;;
1882 esac
1883done
1884else
1885 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1886echo "$as_me: error: in \`$ac_pwd':" >&2;}
1887{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1890See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }; }
1892fi
1893
1894rm -f conftest$ac_cv_exeext
1895echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1896echo "${ECHO_T}$ac_cv_exeext" >&6
1897
1898rm -f conftest.$ac_ext
1899EXEEXT=$ac_cv_exeext
1900ac_exeext=$EXEEXT
1901echo "$as_me:$LINENO: checking for suffix of object files" >&5
1902echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1903if test "${ac_cv_objext+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906 cat >conftest.$ac_ext <<_ACEOF
1907/* confdefs.h. */
1908_ACEOF
1909cat confdefs.h >>conftest.$ac_ext
1910cat >>conftest.$ac_ext <<_ACEOF
1911/* end confdefs.h. */
1912
1913int
1914main ()
1915{
1916
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921rm -f conftest.o conftest.obj
1922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928 case $ac_file in
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1931 break;;
1932 esac
1933done
1934else
1935 echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1939echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1941See \`config.log' for more details." >&5
1942echo "$as_me: error: cannot compute suffix of object files: cannot compile
1943See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }; }
1945fi
1946
1947rm -f conftest.$ac_cv_objext conftest.$ac_ext
1948fi
1949echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1950echo "${ECHO_T}$ac_cv_objext" >&6
1951OBJEXT=$ac_cv_objext
1952ac_objext=$OBJEXT
1953echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1954echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1955if test "${ac_cv_c_compiler_gnu+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 cat >conftest.$ac_ext <<_ACEOF
1959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */
1964
1965int
1966main ()
1967{
1968#ifndef __GNUC__
1969 choke me
1970#endif
1971
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976rm -f conftest.$ac_objext
1977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>conftest.er1
1979 ac_status=$?
1980 grep -v '^ *+' conftest.er1 >conftest.err
1981 rm -f conftest.er1
1982 cat conftest.err >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); } &&
1985 { ac_try='test -z "$ac_c_werror_flag"
1986 || test ! -s conftest.err'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 ac_compiler_gnu=yes
1999else
2000 echo "$as_me: failed program was:" >&5
2001sed 's/^/| /' conftest.$ac_ext >&5
2002
2003ac_compiler_gnu=no
2004fi
2005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2006ac_cv_c_compiler_gnu=$ac_compiler_gnu
2007
2008fi
2009echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2010echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2011GCC=`test $ac_compiler_gnu = yes && echo yes`
2012ac_test_CFLAGS=${CFLAGS+set}
2013ac_save_CFLAGS=$CFLAGS
2014CFLAGS="-g"
2015echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2017if test "${ac_cv_prog_cc_g+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 cat >conftest.$ac_ext <<_ACEOF
2021/* confdefs.h. */
2022_ACEOF
2023cat confdefs.h >>conftest.$ac_ext
2024cat >>conftest.$ac_ext <<_ACEOF
2025/* end confdefs.h. */
2026
2027int
2028main ()
2029{
2030
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035rm -f conftest.$ac_objext
2036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2038 ac_status=$?
2039 grep -v '^ *+' conftest.er1 >conftest.err
2040 rm -f conftest.er1
2041 cat conftest.err >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -z "$ac_c_werror_flag"
2045 || test ! -s conftest.err'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_g=yes
2058else
2059 echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062ac_cv_prog_cc_g=no
2063fi
2064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2065fi
2066echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2067echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2068if test "$ac_test_CFLAGS" = set; then
2069 CFLAGS=$ac_save_CFLAGS
2070elif test $ac_cv_prog_cc_g = yes; then
2071 if test "$GCC" = yes; then
2072 CFLAGS="-g -O2"
2073 else
2074 CFLAGS="-g"
2075 fi
2076else
2077 if test "$GCC" = yes; then
2078 CFLAGS="-O2"
2079 else
2080 CFLAGS=
2081 fi
2082fi
2083echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2084echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2085if test "${ac_cv_prog_cc_stdc+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088 ac_cv_prog_cc_stdc=no
2089ac_save_CC=$CC
2090cat >conftest.$ac_ext <<_ACEOF
2091/* confdefs.h. */
2092_ACEOF
2093cat confdefs.h >>conftest.$ac_ext
2094cat >>conftest.$ac_ext <<_ACEOF
2095/* end confdefs.h. */
2096#include <stdarg.h>
2097#include <stdio.h>
2098#include <sys/types.h>
2099#include <sys/stat.h>
2100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101struct buf { int x; };
2102FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103static char *e (p, i)
2104 char **p;
2105 int i;
2106{
2107 return p[i];
2108}
2109static char *f (char * (*g) (char **, int), char **p, ...)
2110{
2111 char *s;
2112 va_list v;
2113 va_start (v,p);
2114 s = g (p, va_arg (v,int));
2115 va_end (v);
2116 return s;
2117}
2118
2119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2120 function prototypes and stuff, but not '\xHH' hex character constants.
2121 These don't provoke an error unfortunately, instead are silently treated
2122 as 'x'. The following induces an error, until -std1 is added to get
2123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2124 array size at least. It's necessary to write '\x00'==0 to get something
2125 that's true only with -std1. */
2126int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2127
2128int test (int i, double x);
2129struct s1 {int (*f) (int a);};
2130struct s2 {int (*f) (double a);};
2131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2132int argc;
2133char **argv;
2134int
2135main ()
2136{
2137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142# Don't try gcc -ansi; that turns off useful extensions and
2143# breaks some systems' header files.
2144# AIX -qlanglvl=ansi
2145# Ultrix and OSF/1 -std1
2146# HP-UX 10.20 and later -Ae
2147# HP-UX older versions -Aa -D_HPUX_SOURCE
2148# SVR4 -Xc -D__EXTENSIONS__
2149for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2150do
2151 CC="$ac_save_CC $ac_arg"
2152 rm -f conftest.$ac_objext
2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 ac_cv_prog_cc_stdc=$ac_arg
2175break
2176else
2177 echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180fi
2181rm -f conftest.err conftest.$ac_objext
2182done
2183rm -f conftest.$ac_ext conftest.$ac_objext
2184CC=$ac_save_CC
2185
2186fi
2187
2188case "x$ac_cv_prog_cc_stdc" in
2189 x|xno)
2190 echo "$as_me:$LINENO: result: none needed" >&5
2191echo "${ECHO_T}none needed" >&6 ;;
2192 *)
2193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2194echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2195 CC="$CC $ac_cv_prog_cc_stdc" ;;
2196esac
2197
2198# Some people use a C++ compiler to compile C. Since we use `exit',
2199# in C++ we need to declare it. In case someone uses the same compiler
2200# for both compiling C and C++ we need to have the C++ compiler decide
2201# the declaration of exit, since it's the most demanding environment.
2202cat >conftest.$ac_ext <<_ACEOF
2203#ifndef __cplusplus
2204 choke me
2205#endif
2206_ACEOF
2207rm -f conftest.$ac_objext
2208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 for ac_declaration in \
2230 '' \
2231 'extern "C" void std::exit (int) throw (); using std::exit;' \
2232 'extern "C" void std::exit (int); using std::exit;' \
2233 'extern "C" void exit (int) throw ();' \
2234 'extern "C" void exit (int);' \
2235 'void exit (int);'
2236do
2237 cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h. */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h. */
2243$ac_declaration
2244#include <stdlib.h>
2245int
2246main ()
2247{
2248exit (42);
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 :
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280continue
2281fi
2282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289$ac_declaration
2290int
2291main ()
2292{
2293exit (42);
2294 ;
2295 return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>conftest.er1
2301 ac_status=$?
2302 grep -v '^ *+' conftest.er1 >conftest.err
2303 rm -f conftest.er1
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_c_werror_flag"
2308 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 break
2321else
2322 echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325fi
2326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327done
2328rm -f conftest*
2329if test -n "$ac_declaration"; then
2330 echo '#ifdef __cplusplus' >>confdefs.h
2331 echo $ac_declaration >>confdefs.h
2332 echo '#endif' >>confdefs.h
2333fi
2334
2335else
2336 echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341ac_ext=c
2342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
2347
2348cat >>confdefs.h <<\_ACEOF
2349#define _GNU_SOURCE 1
2350_ACEOF
2351
2352
2353
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2360echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2361# On Suns, sometimes $CPP names a directory.
2362if test -n "$CPP" && test -d "$CPP"; then
2363 CPP=
2364fi
2365if test -z "$CPP"; then
2366 if test "${ac_cv_prog_CPP+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 # Double quotes because CPP needs to be expanded
2370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2371 do
2372 ac_preproc_ok=false
2373for ac_c_preproc_warn_flag in '' yes
2374do
2375 # Use a header file that comes with gcc, so configuring glibc
2376 # with a fresh cross-compiler works.
2377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 # <limits.h> exists even on freestanding compilers.
2379 # On the NeXT, cc -E runs the code through the compiler's parser,
2380 # not just through cpp. "Syntax error" is here to catch this case.
2381 cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h. */
2387#ifdef __STDC__
2388# include <limits.h>
2389#else
2390# include <assert.h>
2391#endif
2392 Syntax error
2393_ACEOF
2394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } >/dev/null; then
2402 if test -s conftest.err; then
2403 ac_cpp_err=$ac_c_preproc_warn_flag
2404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2405 else
2406 ac_cpp_err=
2407 fi
2408else
2409 ac_cpp_err=yes
2410fi
2411if test -z "$ac_cpp_err"; then
2412 :
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 # Broken: fails on valid input.
2418continue
2419fi
2420rm -f conftest.err conftest.$ac_ext
2421
2422 # OK, works on sane cases. Now check whether non-existent headers
2423 # can be detected and how.
2424 cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h. */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h. */
2430#include <ac_nonexistent.h>
2431_ACEOF
2432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } >/dev/null; then
2440 if test -s conftest.err; then
2441 ac_cpp_err=$ac_c_preproc_warn_flag
2442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2443 else
2444 ac_cpp_err=
2445 fi
2446else
2447 ac_cpp_err=yes
2448fi
2449if test -z "$ac_cpp_err"; then
2450 # Broken: success on invalid input.
2451continue
2452else
2453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 # Passes both tests.
2457ac_preproc_ok=:
2458break
2459fi
2460rm -f conftest.err conftest.$ac_ext
2461
2462done
2463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464rm -f conftest.err conftest.$ac_ext
2465if $ac_preproc_ok; then
2466 break
2467fi
2468
2469 done
2470 ac_cv_prog_CPP=$CPP
2471
2472fi
2473 CPP=$ac_cv_prog_CPP
2474else
2475 ac_cv_prog_CPP=$CPP
2476fi
2477echo "$as_me:$LINENO: result: $CPP" >&5
2478echo "${ECHO_T}$CPP" >&6
2479ac_preproc_ok=false
2480for ac_c_preproc_warn_flag in '' yes
2481do
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 # <limits.h> exists even on freestanding compilers.
2486 # On the NeXT, cc -E runs the code through the compiler's parser,
2487 # not just through cpp. "Syntax error" is here to catch this case.
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494#ifdef __STDC__
2495# include <limits.h>
2496#else
2497# include <assert.h>
2498#endif
2499 Syntax error
2500_ACEOF
2501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } >/dev/null; then
2509 if test -s conftest.err; then
2510 ac_cpp_err=$ac_c_preproc_warn_flag
2511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2512 else
2513 ac_cpp_err=
2514 fi
2515else
2516 ac_cpp_err=yes
2517fi
2518if test -z "$ac_cpp_err"; then
2519 :
2520else
2521 echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 # Broken: fails on valid input.
2525continue
2526fi
2527rm -f conftest.err conftest.$ac_ext
2528
2529 # OK, works on sane cases. Now check whether non-existent headers
2530 # can be detected and how.
2531 cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
2537#include <ac_nonexistent.h>
2538_ACEOF
2539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2541 ac_status=$?
2542 grep -v '^ *+' conftest.er1 >conftest.err
2543 rm -f conftest.er1
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } >/dev/null; then
2547 if test -s conftest.err; then
2548 ac_cpp_err=$ac_c_preproc_warn_flag
2549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2550 else
2551 ac_cpp_err=
2552 fi
2553else
2554 ac_cpp_err=yes
2555fi
2556if test -z "$ac_cpp_err"; then
2557 # Broken: success on invalid input.
2558continue
2559else
2560 echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563 # Passes both tests.
2564ac_preproc_ok=:
2565break
2566fi
2567rm -f conftest.err conftest.$ac_ext
2568
2569done
2570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571rm -f conftest.err conftest.$ac_ext
2572if $ac_preproc_ok; then
2573 :
2574else
2575 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2576echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2578See \`config.log' for more details." >&5
2579echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2580See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }; }
2582fi
2583
2584ac_ext=c
2585ac_cpp='$CPP $CPPFLAGS'
2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590
2591echo "$as_me:$LINENO: checking for egrep" >&5
2592echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2593if test "${ac_cv_prog_egrep+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2597 then ac_cv_prog_egrep='grep -E'
2598 else ac_cv_prog_egrep='egrep'
2599 fi
2600fi
2601echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2602echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2603 EGREP=$ac_cv_prog_egrep
2604
2605
2606
2607echo "$as_me:$LINENO: checking for AIX" >&5
2608echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2609cat >conftest.$ac_ext <<_ACEOF
2610/* confdefs.h. */
2611_ACEOF
2612cat confdefs.h >>conftest.$ac_ext
2613cat >>conftest.$ac_ext <<_ACEOF
2614/* end confdefs.h. */
2615#ifdef _AIX
2616 yes
2617#endif
2618
2619_ACEOF
2620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2621 $EGREP "yes" >/dev/null 2>&1; then
2622 echo "$as_me:$LINENO: result: yes" >&5
2623echo "${ECHO_T}yes" >&6
2624cat >>confdefs.h <<\_ACEOF
2625#define _ALL_SOURCE 1
2626_ACEOF
2627
2628else
2629 echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6
2631fi
2632rm -f conftest*
2633
2634
2635echo "$as_me:$LINENO: checking for library containing strerror" >&5
2636echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2637if test "${ac_cv_search_strerror+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640 ac_func_search_save_LIBS=$LIBS
2641ac_cv_search_strerror=no
2642cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h. */
2648
2649/* Override any gcc2 internal prototype to avoid an error. */
2650#ifdef __cplusplus
2651extern "C"
2652#endif
2653/* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2655char strerror ();
2656int
2657main ()
2658{
2659strerror ();
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext conftest$ac_exeext
2665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2666 (eval $ac_link) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest$ac_exeext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_cv_search_strerror="none required"
2687else
2688 echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691fi
2692rm -f conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2694if test "$ac_cv_search_strerror" = no; then
2695 for ac_lib in cposix; do
2696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2697 cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
2703
2704/* Override any gcc2 internal prototype to avoid an error. */
2705#ifdef __cplusplus
2706extern "C"
2707#endif
2708/* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2710char strerror ();
2711int
2712main ()
2713{
2714strerror ();
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext conftest$ac_exeext
2720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721 (eval $ac_link) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest$ac_exeext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_search_strerror="-l$ac_lib"
2742break
2743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747fi
2748rm -f conftest.err conftest.$ac_objext \
2749 conftest$ac_exeext conftest.$ac_ext
2750 done
2751fi
2752LIBS=$ac_func_search_save_LIBS
2753fi
2754echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2755echo "${ECHO_T}$ac_cv_search_strerror" >&6
2756if test "$ac_cv_search_strerror" != no; then
2757 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2758
2759fi
2760
2761if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2764echo "$as_me:$LINENO: checking for $ac_word" >&5
2765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766if test "${ac_cv_prog_RANLIB+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 if test -n "$RANLIB"; then
2770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784done
2785
2786fi
2787fi
2788RANLIB=$ac_cv_prog_RANLIB
2789if test -n "$RANLIB"; then
2790 echo "$as_me:$LINENO: result: $RANLIB" >&5
2791echo "${ECHO_T}$RANLIB" >&6
2792else
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795fi
2796
2797fi
2798if test -z "$ac_cv_prog_RANLIB"; then
2799 ac_ct_RANLIB=$RANLIB
2800 # Extract the first word of "ranlib", so it can be a program name with args.
2801set dummy ranlib; ac_word=$2
2802echo "$as_me:$LINENO: checking for $ac_word" >&5
2803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 if test -n "$ac_ct_RANLIB"; then
2808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_ac_ct_RANLIB="ranlib"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821done
2822done
2823
2824 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2825fi
2826fi
2827ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2828if test -n "$ac_ct_RANLIB"; then
2829 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2830echo "${ECHO_T}$ac_ct_RANLIB" >&6
2831else
2832 echo "$as_me:$LINENO: result: no" >&5
2833echo "${ECHO_T}no" >&6
2834fi
2835
2836 RANLIB=$ac_ct_RANLIB
2837else
2838 RANLIB="$ac_cv_prog_RANLIB"
2839fi
2840
2841echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2842echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2843if test "${ac_cv_header_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h. */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h. */
2852#include <stdlib.h>
2853#include <stdarg.h>
2854#include <string.h>
2855#include <float.h>
2856
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext
2866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_header_stdc=yes
2888else
2889 echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892ac_cv_header_stdc=no
2893fi
2894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2895
2896if test $ac_cv_header_stdc = yes; then
2897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2898 cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h. */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h. */
2904#include <string.h>
2905
2906_ACEOF
2907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2908 $EGREP "memchr" >/dev/null 2>&1; then
2909 :
2910else
2911 ac_cv_header_stdc=no
2912fi
2913rm -f conftest*
2914
2915fi
2916
2917if test $ac_cv_header_stdc = yes; then
2918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925#include <stdlib.h>
2926
2927_ACEOF
2928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 $EGREP "free" >/dev/null 2>&1; then
2930 :
2931else
2932 ac_cv_header_stdc=no
2933fi
2934rm -f conftest*
2935
2936fi
2937
2938if test $ac_cv_header_stdc = yes; then
2939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2940 if test "$cross_compiling" = yes; then
2941 :
2942else
2943 cat >conftest.$ac_ext <<_ACEOF
2944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
2949#include <ctype.h>
2950#if ((' ' & 0x0FF) == 0x020)
2951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2953#else
2954# define ISLOWER(c) \
2955 (('a' <= (c) && (c) <= 'i') \
2956 || ('j' <= (c) && (c) <= 'r') \
2957 || ('s' <= (c) && (c) <= 'z'))
2958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2959#endif
2960
2961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2962int
2963main ()
2964{
2965 int i;
2966 for (i = 0; i < 256; i++)
2967 if (XOR (islower (i), ISLOWER (i))
2968 || toupper (i) != TOUPPER (i))
2969 exit(2);
2970 exit (0);
2971}
2972_ACEOF
2973rm -f conftest$ac_exeext
2974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 :
2985else
2986 echo "$as_me: program exited with status $ac_status" >&5
2987echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990( exit $ac_status )
2991ac_cv_header_stdc=no
2992fi
2993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2994fi
2995fi
2996fi
2997echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2998echo "${ECHO_T}$ac_cv_header_stdc" >&6
2999if test $ac_cv_header_stdc = yes; then
3000
3001cat >>confdefs.h <<\_ACEOF
3002#define STDC_HEADERS 1
3003_ACEOF
3004
3005fi
3006
3007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3018 inttypes.h stdint.h unistd.h
3019do
3020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3021echo "$as_me:$LINENO: checking for $ac_header" >&5
3022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3023if eval "test \"\${$as_ac_Header+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032$ac_includes_default
3033
3034#include <$ac_header>
3035_ACEOF
3036rm -f conftest.$ac_objext
3037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag"
3046 || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 eval "$as_ac_Header=yes"
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063eval "$as_ac_Header=no"
3064fi
3065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066fi
3067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3069if test `eval echo '${'$as_ac_Header'}'` = yes; then
3070 cat >>confdefs.h <<_ACEOF
3071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3072_ACEOF
3073
3074fi
3075
3076done
3077
3078
3079
3080 if test "${ac_cv_header_minix_config_h+set}" = set; then
3081 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3082echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3083if test "${ac_cv_header_minix_config_h+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085fi
3086echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3087echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3088else
3089 # Is the header compilable?
3090echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3091echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3092cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098$ac_includes_default
3099#include <minix/config.h>
3100_ACEOF
3101rm -f conftest.$ac_objext
3102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_c_werror_flag"
3111 || test ! -s conftest.err'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 ac_header_compiler=yes
3124else
3125 echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128ac_header_compiler=no
3129fi
3130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3132echo "${ECHO_T}$ac_header_compiler" >&6
3133
3134# Is the header present?
3135echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3136echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3137cat >conftest.$ac_ext <<_ACEOF
3138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
3143#include <minix/config.h>
3144_ACEOF
3145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 else
3157 ac_cpp_err=
3158 fi
3159else
3160 ac_cpp_err=yes
3161fi
3162if test -z "$ac_cpp_err"; then
3163 ac_header_preproc=yes
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_header_preproc=no
3169fi
3170rm -f conftest.err conftest.$ac_ext
3171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3172echo "${ECHO_T}$ac_header_preproc" >&6
3173
3174# So? What about this header?
3175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3176 yes:no: )
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3178echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3180echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3181 ac_header_preproc=yes
3182 ;;
3183 no:yes:* )
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3185echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3186 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3187echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3188 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3189echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3190 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3191echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3192 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3193echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3194 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3195echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3196 (
3197 cat <<\_ASBOX
3198## ------------------------------------------ ##
3199## Report this to the AC_PACKAGE_NAME lists. ##
3200## ------------------------------------------ ##
3201_ASBOX
3202 ) |
3203 sed "s/^/$as_me: WARNING: /" >&2
3204 ;;
3205esac
3206echo "$as_me:$LINENO: checking for minix/config.h" >&5
3207echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3208if test "${ac_cv_header_minix_config_h+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_cv_header_minix_config_h=$ac_header_preproc
3212fi
3213echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3214echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3215
3216fi
3217if test $ac_cv_header_minix_config_h = yes; then
3218 MINIX=yes
3219else
3220 MINIX=
3221fi
3222
3223
3224 if test "$MINIX" = yes; then
3225
3226cat >>confdefs.h <<\_ACEOF
3227#define _POSIX_SOURCE 1
3228_ACEOF
3229
3230
3231cat >>confdefs.h <<\_ACEOF
3232#define _POSIX_1_SOURCE 2
3233_ACEOF
3234
3235
3236cat >>confdefs.h <<\_ACEOF
3237#define _MINIX 1
3238_ACEOF
3239
3240 fi
3241
3242
3243
3244 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3245echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3246if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255
3256# define __EXTENSIONS__ 1
3257 $ac_includes_default
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 ac_cv_safe_to_define___extensions__=yes
3289else
3290 echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293ac_cv_safe_to_define___extensions__=no
3294fi
3295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3296fi
3297echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3298echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3299 test $ac_cv_safe_to_define___extensions__ = yes &&
3300 cat >>confdefs.h <<\_ACEOF
3301#define __EXTENSIONS__ 1
3302_ACEOF
3303
3304 cat >>confdefs.h <<\_ACEOF
3305#define _ALL_SOURCE 1
3306_ACEOF
3307
3308 cat >>confdefs.h <<\_ACEOF
3309#define _GNU_SOURCE 1
3310_ACEOF
3311
3312 cat >>confdefs.h <<\_ACEOF
3313#define _POSIX_PTHREAD_SEMANTICS 1
3314_ACEOF
3315
3316 cat >>confdefs.h <<\_ACEOF
3317#define _TANDEM_SOURCE 1
3318_ACEOF
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3330echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3331if test "${am_cv_prog_cc_stdc+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334 am_cv_prog_cc_stdc=no
3335ac_save_CC="$CC"
3336# Don't try gcc -ansi; that turns off useful extensions and
3337# breaks some systems' header files.
3338# AIX -qlanglvl=ansi
3339# Ultrix and OSF/1 -std1
3340# HP-UX 10.20 and later -Ae
3341# HP-UX older versions -Aa -D_HPUX_SOURCE
3342# SVR4 -Xc -D__EXTENSIONS__
3343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344do
3345 CC="$ac_save_CC $ac_arg"
3346 cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
3352#include <stdarg.h>
3353#include <stdio.h>
3354#include <sys/types.h>
3355#include <sys/stat.h>
3356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357struct buf { int x; };
3358FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359static char *e (p, i)
3360 char **p;
3361 int i;
3362{
3363 return p[i];
3364}
3365static char *f (char * (*g) (char **, int), char **p, ...)
3366{
3367 char *s;
3368 va_list v;
3369 va_start (v,p);
3370 s = g (p, va_arg (v,int));
3371 va_end (v);
3372 return s;
3373}
3374int test (int i, double x);
3375struct s1 {int (*f) (int a);};
3376struct s2 {int (*f) (double a);};
3377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378int argc;
3379char **argv;
3380
3381int
3382main ()
3383{
3384
3385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 am_cv_prog_cc_stdc="$ac_arg"; break
3414else
3415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420done
3421CC="$ac_save_CC"
3422
3423fi
3424
3425if test -z "$am_cv_prog_cc_stdc"; then
3426 echo "$as_me:$LINENO: result: none needed" >&5
3427echo "${ECHO_T}none needed" >&6
3428else
3429 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3430echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3431fi
3432case "x$am_cv_prog_cc_stdc" in
3433 x|xno) ;;
3434 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3435esac
3436
3437
3438ac_aux_dir=
3439for ac_dir in .. $srcdir/..; do
3440 if test -f $ac_dir/install-sh; then
3441 ac_aux_dir=$ac_dir
3442 ac_install_sh="$ac_aux_dir/install-sh -c"
3443 break
3444 elif test -f $ac_dir/install.sh; then
3445 ac_aux_dir=$ac_dir
3446 ac_install_sh="$ac_aux_dir/install.sh -c"
3447 break
3448 elif test -f $ac_dir/shtool; then
3449 ac_aux_dir=$ac_dir
3450 ac_install_sh="$ac_aux_dir/shtool install -c"
3451 break
3452 fi
3453done
3454if test -z "$ac_aux_dir"; then
3455 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3456echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3457 { (exit 1); exit 1; }; }
3458fi
3459ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3460ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3461ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3462
3463# Make sure we can run config.sub.
3464$ac_config_sub sun4 >/dev/null 2>&1 ||
3465 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3466echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3467 { (exit 1); exit 1; }; }
3468
3469echo "$as_me:$LINENO: checking build system type" >&5
3470echo $ECHO_N "checking build system type... $ECHO_C" >&6
3471if test "${ac_cv_build+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 ac_cv_build_alias=$build_alias
3475test -z "$ac_cv_build_alias" &&
3476 ac_cv_build_alias=`$ac_config_guess`
3477test -z "$ac_cv_build_alias" &&
3478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3479echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3480 { (exit 1); exit 1; }; }
3481ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3482 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3483echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3484 { (exit 1); exit 1; }; }
3485
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3488echo "${ECHO_T}$ac_cv_build" >&6
3489build=$ac_cv_build
3490build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3491build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3492build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3493
3494
3495echo "$as_me:$LINENO: checking host system type" >&5
3496echo $ECHO_N "checking host system type... $ECHO_C" >&6
3497if test "${ac_cv_host+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 ac_cv_host_alias=$host_alias
3501test -z "$ac_cv_host_alias" &&
3502 ac_cv_host_alias=$ac_cv_build_alias
3503ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3504 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3505echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3506 { (exit 1); exit 1; }; }
3507
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3510echo "${ECHO_T}$ac_cv_host" >&6
3511host=$ac_cv_host
3512host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3513host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3514host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3515
3516
3517echo "$as_me:$LINENO: checking target system type" >&5
3518echo $ECHO_N "checking target system type... $ECHO_C" >&6
3519if test "${ac_cv_target+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 ac_cv_target_alias=$target_alias
3523test "x$ac_cv_target_alias" = "x" &&
3524 ac_cv_target_alias=$ac_cv_host_alias
3525ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3526 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3527echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3528 { (exit 1); exit 1; }; }
3529
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3532echo "${ECHO_T}$ac_cv_target" >&6
3533target=$ac_cv_target
3534target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3535target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3536target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3537
3538
3539# The aliases save the names the user supplied, while $host etc.
3540# will get canonicalized.
3541test -n "$target_alias" &&
3542 test "$program_prefix$program_suffix$program_transform_name" = \
3543 NONENONEs,x,x, &&
3544 program_prefix=${target_alias}-
3545
3546# Dependency checking.
3547rm -rf .tst 2>/dev/null
3548mkdir .tst 2>/dev/null
3549if test -d .tst; then
3550 am__leading_dot=.
3551else
3552 am__leading_dot=_
3553fi
3554rmdir .tst 2>/dev/null
3555
3556DEPDIR="${am__leading_dot}deps"
3557
3558 ac_config_commands="$ac_config_commands depdir"
3559
3560
3561depcc="$CC" am_compiler_list=
3562
3563am_depcomp=$ac_aux_dir/depcomp
3564echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3566if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 if test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3574 # in D'.
3575 mkdir conftest.dir
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3579 cd conftest.dir
3580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3585 # directory.
3586 mkdir sub
3587
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591 fi
3592 for depmode in $am_compiler_list; do
3593 if test $depmode = none; then break; fi
3594
3595 echo "$as_me:$LINENO: trying $depmode" >&5
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3599 #
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3603 : > sub/conftest.c
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3609 done
3610 echo "include sub/conftest.Po" > confmf
3611
3612 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3613 # mode. It turns out that the SunPro C++ compiler does not properly
3614 # handle `-M -o', and we need to detect this.
3615 depcmd="depmode=$depmode \
3616 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3619 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3620 if env $depcmd > conftest.err 2>&1 &&
3621 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3623 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CC_dependencies_compiler_type=$depmode
3634 echo "$as_me:$LINENO: success" >&5
3635 break
3636 fi
3637 fi
3638 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3639 sed -e 's/^/| /' < conftest.err >&5
3640 done
3641
3642 cd ..
3643 rm -rf conftest.dir
3644else
3645 am_cv_CC_dependencies_compiler_type=none
3646fi
3647
3648fi
3649echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3650echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3651if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3652then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3653echo "$as_me: error: no usable dependency style found" >&2;}
3654 { (exit 1); exit 1; }; }
3655else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656
3657fi
3658
3659
3660# Check for the 'make' the user wants to use.
3661for ac_prog in make
3662do
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664set dummy $ac_prog; ac_word=$2
3665echo "$as_me:$LINENO: checking for $ac_word" >&5
3666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667if test "${ac_cv_prog_MAKE+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 if test -n "$MAKE"; then
3671 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_MAKE="$ac_prog"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684done
3685done
3686
3687fi
3688fi
3689MAKE=$ac_cv_prog_MAKE
3690if test -n "$MAKE"; then
3691 echo "$as_me:$LINENO: result: $MAKE" >&5
3692echo "${ECHO_T}$MAKE" >&6
3693else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696fi
3697
3698 test -n "$MAKE" && break
3699done
3700
3701MAKE_IS_GNU=
3702case "`$MAKE --version 2>&1 | sed 1q`" in
3703 *GNU*)
3704 MAKE_IS_GNU=yes
3705 ;;
3706esac
3707
3708
3709if test "$MAKE_IS_GNU" = yes; then
3710 GMAKE_TRUE=
3711 GMAKE_FALSE='#'
3712else
3713 GMAKE_TRUE='#'
3714 GMAKE_FALSE=
3715fi
3716
3717echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3718echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3719set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3720if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 cat >conftest.make <<\_ACEOF
3724all:
3725 @echo 'ac_maketemp="$(MAKE)"'
3726_ACEOF
3727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3728eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3729if test -n "$ac_maketemp"; then
3730 eval ac_cv_prog_make_${ac_make}_set=yes
3731else
3732 eval ac_cv_prog_make_${ac_make}_set=no
3733fi
3734rm -f conftest.make
3735fi
3736if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 SET_MAKE=
3740else
3741 echo "$as_me:$LINENO: result: no" >&5
3742echo "${ECHO_T}no" >&6
3743 SET_MAKE="MAKE=${MAKE-make}"
3744fi
3745
3746
3747
3748CONFIG_OBS=
3749CONFIG_DEPS=
3750CONFIG_SRCS=
3751ENABLE_CFLAGS=
3752
3753CONFIG_ALL=
3754CONFIG_CLEAN=
3755CONFIG_INSTALL=
3756CONFIG_UNINSTALL=
3757
3758# If we haven't got the data from the intl directory,
3759# assume NLS is disabled.
3760USE_NLS=no
3761LIBINTL=
3762LIBINTL_DEP=
3763INCINTL=
3764XGETTEXT=
3765GMSGFMT=
3766POSUB=
3767
3768if test -f ../intl/config.intl; then
3769 . ../intl/config.intl
3770fi
3771echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3772echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3773if test x"$USE_NLS" != xyes; then
3774 echo "$as_me:$LINENO: result: no" >&5
3775echo "${ECHO_T}no" >&6
3776else
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779
3780cat >>confdefs.h <<\_ACEOF
3781#define ENABLE_NLS 1
3782_ACEOF
3783
3784
3785 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3786echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3787 # Look for .po and .gmo files in the source directory.
3788 CATALOGS=
3789 XLINGUAS=
3790 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3791 # If there aren't any .gmo files the shell will give us the
3792 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3793 # weeded out.
3794 case "$cat" in *\**)
3795 continue;;
3796 esac
3797 # The quadruple backslash is collapsed to a double backslash
3798 # by the backticks, then collapsed again by the double quotes,
3799 # leaving us with one backslash in the sed expression (right
3800 # before the dot that mustn't act as a wildcard).
3801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3802 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3803 # The user is allowed to set LINGUAS to a list of languages to
3804 # install catalogs for. If it's empty that means "all of them."
3805 if test "x$LINGUAS" = x; then
3806 CATALOGS="$CATALOGS $cat"
3807 XLINGUAS="$XLINGUAS $lang"
3808 else
3809 case "$LINGUAS" in *$lang*)
3810 CATALOGS="$CATALOGS $cat"
3811 XLINGUAS="$XLINGUAS $lang"
3812 ;;
3813 esac
3814 fi
3815 done
3816 LINGUAS="$XLINGUAS"
3817 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3818echo "${ECHO_T}$LINGUAS" >&6
3819
3820
3821 DATADIRNAME=share
3822
3823 INSTOBJEXT=.mo
3824
3825 GENCAT=gencat
3826
3827 CATOBJEXT=.gmo
3828
3829fi
3830
3831localedir='${datadir}/locale'
3832
3833
3834if test x"$USE_NLS" = xyes; then
3835 CONFIG_ALL="$CONFIG_ALL all-po"
3836 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3837 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3838 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3839fi
3840
3841
3842 GNULIB_MEMMEM=0;
3843 GNULIB_MEMPCPY=0;
3844 GNULIB_MEMRCHR=0;
3845 GNULIB_STPCPY=0;
3846 GNULIB_STPNCPY=0;
3847 GNULIB_STRCHRNUL=0;
3848 GNULIB_STRDUP=0;
3849 GNULIB_STRNDUP=0;
3850 GNULIB_STRNLEN=0;
3851 GNULIB_STRPBRK=0;
3852 GNULIB_STRSEP=0;
3853 GNULIB_STRSTR=0;
3854 GNULIB_STRCASESTR=0;
3855 GNULIB_STRTOK_R=0;
3856 GNULIB_MBSLEN=0;
3857 GNULIB_MBSNLEN=0;
3858 GNULIB_MBSCHR=0;
3859 GNULIB_MBSRCHR=0;
3860 GNULIB_MBSSTR=0;
3861 GNULIB_MBSCASECMP=0;
3862 GNULIB_MBSNCASECMP=0;
3863 GNULIB_MBSPCASECMP=0;
3864 GNULIB_MBSCASESTR=0;
3865 GNULIB_MBSCSPN=0;
3866 GNULIB_MBSPBRK=0;
3867 GNULIB_MBSSPN=0;
3868 GNULIB_MBSSEP=0;
3869 GNULIB_MBSTOK_R=0;
3870 GNULIB_STRERROR=0;
3871 GNULIB_STRSIGNAL=0;
3872 HAVE_DECL_MEMMEM=1;
3873 HAVE_MEMPCPY=1;
3874 HAVE_DECL_MEMRCHR=1;
3875 HAVE_STPCPY=1;
3876 HAVE_STPNCPY=1;
3877 HAVE_STRCHRNUL=1;
3878 HAVE_DECL_STRDUP=1;
3879 HAVE_STRNDUP=1;
3880 HAVE_DECL_STRNDUP=1;
3881 HAVE_DECL_STRNLEN=1;
3882 HAVE_STRPBRK=1;
3883 HAVE_STRSEP=1;
3884 HAVE_STRCASESTR=1;
3885 HAVE_DECL_STRTOK_R=1;
3886 HAVE_DECL_STRERROR=1;
3887 HAVE_DECL_STRSIGNAL=1;
3888 REPLACE_STRERROR=0;
3889 REPLACE_STRSIGNAL=0;
3890 REPLACE_MEMMEM=0;
3891 REPLACE_STRCASESTR=0;
3892 REPLACE_STRSTR=0;
3893
3894
3895 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3896echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3897if test "${ac_cv_have_decl_memmem+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906$ac_includes_default
3907int
3908main ()
3909{
3910#ifndef memmem
3911 char *p = (char *) memmem;
3912#endif
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext
3919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_have_decl_memmem=yes
3941else
3942 echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945ac_cv_have_decl_memmem=no
3946fi
3947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948fi
3949echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3950echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3951if test $ac_cv_have_decl_memmem = yes; then
3952
3953cat >>confdefs.h <<_ACEOF
3954#define HAVE_DECL_MEMMEM 1
3955_ACEOF
3956
3957
3958else
3959 cat >>confdefs.h <<_ACEOF
3960#define HAVE_DECL_MEMMEM 0
3961_ACEOF
3962
3963
3964fi
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980for ac_func in memmem
3981do
3982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3983echo "$as_me:$LINENO: checking for $ac_func" >&5
3984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3985if eval "test \"\${$as_ac_var+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3996#define $ac_func innocuous_$ac_func
3997
3998/* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func (); below.
4000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 <limits.h> exists even on freestanding compilers. */
4002
4003#ifdef __STDC__
4004# include <limits.h>
4005#else
4006# include <assert.h>
4007#endif
4008
4009#undef $ac_func
4010
4011/* Override any gcc2 internal prototype to avoid an error. */
4012#ifdef __cplusplus
4013extern "C"
4014{
4015#endif
4016/* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4018char $ac_func ();
4019/* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4023choke me
4024#else
4025char (*f) () = $ac_func;
4026#endif
4027#ifdef __cplusplus
4028}
4029#endif
4030
4031int
4032main ()
4033{
4034return f != $ac_func;
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041 (eval $ac_link) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_var=yes"
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066eval "$as_ac_var=no"
4067fi
4068rm -f conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4070fi
4071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4073if test `eval echo '${'$as_ac_var'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4076_ACEOF
4077
4078else
4079
4080 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4081
4082fi
4083done
4084
4085
4086
4087 :
4088
4089
4090
4091
4092
4093 if test $ac_cv_have_decl_memmem = no; then
4094 HAVE_DECL_MEMMEM=0
4095 fi
4096 :
4097
4098
4099 echo "$as_me:$LINENO: checking for long long int" >&5
4100echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4101if test "${ac_cv_type_long_long_int+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 cat >conftest.$ac_ext <<_ACEOF
4105
4106 /* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111/* For now, do not test the preprocessor; as of 2007 there are too many
4112 implementations with broken preprocessors. Perhaps this can
4113 be revisited in 2012. In the meantime, code should not expect
4114 #if to work with literals wider than 32 bits. */
4115 /* Test literals. */
4116 long long int ll = 9223372036854775807ll;
4117 long long int nll = -9223372036854775807LL;
4118 unsigned long long int ull = 18446744073709551615ULL;
4119 /* Test constant expressions. */
4120 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4121 ? 1 : -1)];
4122 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4123 ? 1 : -1)];
4124 int i = 63;
4125int
4126main ()
4127{
4128/* Test availability of runtime routines for shift and division. */
4129 long long int llmax = 9223372036854775807ll;
4130 unsigned long long int ullmax = 18446744073709551615ull;
4131 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4132 | (llmax / ll) | (llmax % ll)
4133 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4134 | (ullmax / ull) | (ullmax % ull));
4135 ;
4136 return 0;
4137}
4138
4139_ACEOF
4140rm -f conftest.$ac_objext conftest$ac_exeext
4141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 if test "$cross_compiling" = yes; then
4163 ac_cv_type_long_long_int=yes
4164else
4165 cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
4171#include <limits.h>
4172 #ifndef LLONG_MAX
4173 # define HALF \
4174 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4175 # define LLONG_MAX (HALF - 1 + HALF)
4176 #endif
4177int
4178main ()
4179{
4180long long int n = 1;
4181 int i;
4182 for (i = 0; ; i++)
4183 {
4184 long long int m = n << i;
4185 if (m >> i != n)
4186 return 1;
4187 if (LLONG_MAX / 2 < m)
4188 break;
4189 }
4190 return 0;
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest$ac_exeext
4196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4197 (eval $ac_link) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_type_long_long_int=yes
4207else
4208 echo "$as_me: program exited with status $ac_status" >&5
4209echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212( exit $ac_status )
4213ac_cv_type_long_long_int=no
4214fi
4215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216fi
4217else
4218 echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221ac_cv_type_long_long_int=no
4222fi
4223rm -f conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4225fi
4226echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4227echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4228 if test $ac_cv_type_long_long_int = yes; then
4229
4230cat >>confdefs.h <<\_ACEOF
4231#define HAVE_LONG_LONG_INT 1
4232_ACEOF
4233
4234 fi
4235
4236
4237 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4238echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4239if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242 cat >conftest.$ac_ext <<_ACEOF
4243
4244 /* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249/* For now, do not test the preprocessor; as of 2007 there are too many
4250 implementations with broken preprocessors. Perhaps this can
4251 be revisited in 2012. In the meantime, code should not expect
4252 #if to work with literals wider than 32 bits. */
4253 /* Test literals. */
4254 long long int ll = 9223372036854775807ll;
4255 long long int nll = -9223372036854775807LL;
4256 unsigned long long int ull = 18446744073709551615ULL;
4257 /* Test constant expressions. */
4258 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4259 ? 1 : -1)];
4260 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4261 ? 1 : -1)];
4262 int i = 63;
4263int
4264main ()
4265{
4266/* Test availability of runtime routines for shift and division. */
4267 long long int llmax = 9223372036854775807ll;
4268 unsigned long long int ullmax = 18446744073709551615ull;
4269 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4270 | (llmax / ll) | (llmax % ll)
4271 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4272 | (ullmax / ull) | (ullmax % ull));
4273 ;
4274 return 0;
4275}
4276
4277_ACEOF
4278rm -f conftest.$ac_objext conftest$ac_exeext
4279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280 (eval $ac_link) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest$ac_exeext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_type_unsigned_long_long_int=yes
4301else
4302 echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305ac_cv_type_unsigned_long_long_int=no
4306fi
4307rm -f conftest.err conftest.$ac_objext \
4308 conftest$ac_exeext conftest.$ac_ext
4309fi
4310echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4311echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4312 if test $ac_cv_type_unsigned_long_long_int = yes; then
4313
4314cat >>confdefs.h <<\_ACEOF
4315#define HAVE_UNSIGNED_LONG_LONG_INT 1
4316_ACEOF
4317
4318 fi
4319
4320
4321
4322 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4323echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4324if test "${gl_cv_have_include_next+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 rm -rf conftestd1 conftestd2
4328 mkdir conftestd1 conftestd2
4329 cat <<EOF > conftestd1/conftest.h
4330#define DEFINED_IN_CONFTESTD1
4331#include_next <conftest.h>
4332#ifdef DEFINED_IN_CONFTESTD2
4333int foo;
4334#else
4335#error "include_next doesn't work"
4336#endif
4337EOF
4338 cat <<EOF > conftestd2/conftest.h
4339#ifndef DEFINED_IN_CONFTESTD1
4340#error "include_next test doesn't work"
4341#endif
4342#define DEFINED_IN_CONFTESTD2
4343EOF
4344 save_CPPFLAGS="$CPPFLAGS"
4345 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4346 cat >conftest.$ac_ext <<_ACEOF
4347#include <conftest.h>
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 gl_cv_have_include_next=yes
4372else
4373 echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376gl_cv_have_include_next=no
4377fi
4378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 CPPFLAGS="$save_CPPFLAGS"
4380 rm -rf conftestd1 conftestd2
4381
4382fi
4383echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4384echo "${ECHO_T}$gl_cv_have_include_next" >&6
4385 if test $gl_cv_have_include_next = yes; then
4386
4387
4388cat >>confdefs.h <<\_ACEOF
4389#define HAVE_INCLUDE_NEXT 1
4390_ACEOF
4391
4392
4393 INCLUDE_NEXT=include_next
4394 else
4395 INCLUDE_NEXT=include
4396 fi
4397
4398
4399
4400
4401
4402
4403
4404for ac_header in $gl_header_list
4405do
4406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4407if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo "$as_me:$LINENO: checking for $ac_header" >&5
4409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4410if eval "test \"\${$as_ac_Header+set}\" = set"; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412fi
4413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4415else
4416 # Is the header compilable?
4417echo "$as_me:$LINENO: checking $ac_header usability" >&5
4418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4419cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
4425$ac_includes_default
4426#include <$ac_header>
4427_ACEOF
4428rm -f conftest.$ac_objext
4429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_header_compiler=yes
4451else
4452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455ac_header_compiler=no
4456fi
4457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459echo "${ECHO_T}$ac_header_compiler" >&6
4460
4461# Is the header present?
4462echo "$as_me:$LINENO: checking $ac_header presence" >&5
4463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4464cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
4470#include <$ac_header>
4471_ACEOF
4472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null; then
4480 if test -s conftest.err; then
4481 ac_cpp_err=$ac_c_preproc_warn_flag
4482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4483 else
4484 ac_cpp_err=
4485 fi
4486else
4487 ac_cpp_err=yes
4488fi
4489if test -z "$ac_cpp_err"; then
4490 ac_header_preproc=yes
4491else
4492 echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_header_preproc=no
4496fi
4497rm -f conftest.err conftest.$ac_ext
4498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4499echo "${ECHO_T}$ac_header_preproc" >&6
4500
4501# So? What about this header?
4502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4503 yes:no: )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4508 ac_header_preproc=yes
4509 ;;
4510 no:yes:* )
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4523 (
4524 cat <<\_ASBOX
4525## ------------------------------------------ ##
4526## Report this to the AC_PACKAGE_NAME lists. ##
4527## ------------------------------------------ ##
4528_ASBOX
4529 ) |
4530 sed "s/^/$as_me: WARNING: /" >&2
4531 ;;
4532esac
4533echo "$as_me:$LINENO: checking for $ac_header" >&5
4534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538 eval "$as_ac_Header=\$ac_header_preproc"
4539fi
4540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4542
4543fi
4544if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h <<_ACEOF
4546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547_ACEOF
4548
4549fi
4550
4551done
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4565echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4566if test "${ac_cv_c_restrict+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 ac_cv_c_restrict=no
4570 # The order here caters to the fact that C++ does not require restrict.
4571 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4572 cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
4577/* end confdefs.h. */
4578typedef int * int_ptr;
4579 int foo (int_ptr $ac_kw ip) {
4580 return ip[0];
4581 }
4582int
4583main ()
4584{
4585int s[1];
4586 int * $ac_kw t = s;
4587 t[0] = 0;
4588 return foo(t)
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_c_restrict=$ac_kw
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 test "$ac_cv_c_restrict" != no && break
4623 done
4624
4625fi
4626echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4627echo "${ECHO_T}$ac_cv_c_restrict" >&6
4628
4629
4630 case $ac_cv_c_restrict in
4631 restrict) ;;
4632 no) cat >>confdefs.h <<\_ACEOF
4633#define restrict
4634_ACEOF
4635 ;;
4636 *) cat >>confdefs.h <<_ACEOF
4637#define restrict $ac_cv_c_restrict
4638_ACEOF
4639 ;;
4640 esac
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 :
4655
4656
4657
4658
4659
4660
4661
4662 if test $gl_cv_have_include_next = yes; then
4663 gl_cv_next_string_h='<'string.h'>'
4664 else
4665 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4666echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4667if test "${gl_cv_next_string_h+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670
4671 if test $ac_cv_header_string_h = yes; then
4672 cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
4678#include <string.h>
4679
4680_ACEOF
4681 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682 sed -n '\#/string.h#{
4683 s#.*"\(.*/string.h\)".*#\1#
4684 s#^/[^/]#//&#
4685 p
4686 q
4687 }'`'"'
4688 else
4689 gl_cv_next_string_h='<'string.h'>'
4690 fi
4691
4692fi
4693echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4694echo "${ECHO_T}$gl_cv_next_string_h" >&6
4695 fi
4696 NEXT_STRING_H=$gl_cv_next_string_h
4697
4698
4699
4700
4701
4702 GNULIB_WCWIDTH=0;
4703 HAVE_DECL_WCWIDTH=1;
4704 REPLACE_WCWIDTH=0;
4705 WCHAR_H=
4706
4707
4708
4709
4710
4711if false; then
4712 GL_COND_LIBTOOL_TRUE=
4713 GL_COND_LIBTOOL_FALSE='#'
4714else
4715 GL_COND_LIBTOOL_TRUE='#'
4716 GL_COND_LIBTOOL_FALSE=
4717fi
4718
4719 gl_cond_libtool=false
4720 gl_libdeps=
4721 gl_ltlibdeps=
4722
4723
4724
4725 gl_source_base='gnulib'
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735for ac_func in memchr
4736do
4737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738echo "$as_me:$LINENO: checking for $ac_func" >&5
4739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743 cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h. */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h. */
4749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4751#define $ac_func innocuous_$ac_func
4752
4753/* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func (); below.
4755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 <limits.h> exists even on freestanding compilers. */
4757
4758#ifdef __STDC__
4759# include <limits.h>
4760#else
4761# include <assert.h>
4762#endif
4763
4764#undef $ac_func
4765
4766/* Override any gcc2 internal prototype to avoid an error. */
4767#ifdef __cplusplus
4768extern "C"
4769{
4770#endif
4771/* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773char $ac_func ();
4774/* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778choke me
4779#else
4780char (*f) () = $ac_func;
4781#endif
4782#ifdef __cplusplus
4783}
4784#endif
4785
4786int
4787main ()
4788{
4789return f != $ac_func;
4790 ;
4791 return 0;
4792}
4793_ACEOF
4794rm -f conftest.$ac_objext conftest$ac_exeext
4795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_var=yes"
4817else
4818 echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821eval "$as_ac_var=no"
4822fi
4823rm -f conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4825fi
4826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4831_ACEOF
4832
4833else
4834
4835 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4836
4837fi
4838done
4839
4840
4841 if test $ac_cv_func_memchr = no; then
4842
4843
4844for ac_header in bp-sym.h
4845do
4846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4847if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo "$as_me:$LINENO: checking for $ac_header" >&5
4849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4850if eval "test \"\${$as_ac_Header+set}\" = set"; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852fi
4853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4855else
4856 # Is the header compilable?
4857echo "$as_me:$LINENO: checking $ac_header usability" >&5
4858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4859cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865$ac_includes_default
4866#include <$ac_header>
4867_ACEOF
4868rm -f conftest.$ac_objext
4869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_header_compiler=yes
4891else
4892 echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895ac_header_compiler=no
4896fi
4897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4899echo "${ECHO_T}$ac_header_compiler" >&6
4900
4901# Is the header present?
4902echo "$as_me:$LINENO: checking $ac_header presence" >&5
4903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4904cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <$ac_header>
4911_ACEOF
4912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null; then
4920 if test -s conftest.err; then
4921 ac_cpp_err=$ac_c_preproc_warn_flag
4922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4923 else
4924 ac_cpp_err=
4925 fi
4926else
4927 ac_cpp_err=yes
4928fi
4929if test -z "$ac_cpp_err"; then
4930 ac_header_preproc=yes
4931else
4932 echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 ac_header_preproc=no
4936fi
4937rm -f conftest.err conftest.$ac_ext
4938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4939echo "${ECHO_T}$ac_header_preproc" >&6
4940
4941# So? What about this header?
4942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4943 yes:no: )
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4948 ac_header_preproc=yes
4949 ;;
4950 no:yes:* )
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4963 (
4964 cat <<\_ASBOX
4965## ------------------------------------------ ##
4966## Report this to the AC_PACKAGE_NAME lists. ##
4967## ------------------------------------------ ##
4968_ASBOX
4969 ) |
4970 sed "s/^/$as_me: WARNING: /" >&2
4971 ;;
4972esac
4973echo "$as_me:$LINENO: checking for $ac_header" >&5
4974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4975if eval "test \"\${$as_ac_Header+set}\" = set"; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 eval "$as_ac_Header=\$ac_header_preproc"
4979fi
4980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4982
4983fi
4984if test `eval echo '${'$as_ac_Header'}'` = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987_ACEOF
4988
4989fi
4990
4991done
4992
4993
4994 fi
4995
4996
4997 echo "$as_me:$LINENO: checking for working memcmp" >&5
4998echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4999if test "${ac_cv_func_memcmp_working+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002 if test "$cross_compiling" = yes; then
5003 ac_cv_func_memcmp_working=no
5004else
5005 cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011$ac_includes_default
5012int
5013main ()
5014{
5015
5016 /* Some versions of memcmp are not 8-bit clean. */
5017 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5018 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5019 exit (1);
5020
5021 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5022 or more and with at least one buffer not starting on a 4-byte boundary.
5023 William Lewis provided this test program. */
5024 {
5025 char foo[21];
5026 char bar[21];
5027 int i;
5028 for (i = 0; i < 4; i++)
5029 {
5030 char *a = foo + i;
5031 char *b = bar + i;
5032 strcpy (a, "--------01111111");
5033 strcpy (b, "--------10000000");
5034 if (memcmp (a, b, 16) >= 0)
5035 exit (1);
5036 }
5037 exit (0);
5038 }
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
5044rm -f conftest$ac_exeext
5045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5046 (eval $ac_link) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_func_memcmp_working=yes
5056else
5057 echo "$as_me: program exited with status $ac_status" >&5
5058echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061( exit $ac_status )
5062ac_cv_func_memcmp_working=no
5063fi
5064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5065fi
5066fi
5067echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5068echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5069test $ac_cv_func_memcmp_working = no &&
5070
5071
5072
5073
5074
5075
5076 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5077
5078
5079 if test $ac_cv_func_memcmp_working = no; then
5080
5081cat >>confdefs.h <<\_ACEOF
5082#define memcmp rpl_memcmp
5083_ACEOF
5084
5085 :
5086 fi
5087
5088
5089
5090 if test $ac_cv_have_decl_memmem = yes; then
5091 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5092echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5093if test "${gl_cv_func_memmem_works+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 if test "$cross_compiling" = yes; then
5097 gl_cv_func_memmem_works="guessing no"
5098else
5099 cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105
5106#include <string.h> /* for memmem */
5107#include <stdlib.h> /* for malloc */
5108#include <unistd.h> /* for alarm */
5109
5110int
5111main ()
5112{
5113size_t m = 1000000;
5114 char *haystack = (char *) malloc (2 * m + 1);
5115 char *needle = (char *) malloc (m + 1);
5116 void *result = 0;
5117 /* Failure to compile this test due to missing alarm is okay,
5118 since all such platforms (mingw) also lack memmem. */
5119 alarm (5);
5120 /* Check for quadratic performance. */
5121 if (haystack && needle)
5122 {
5123 memset (haystack, 'A', 2 * m);
5124 haystack[2 * m] = 'B';
5125 memset (needle, 'A', m);
5126 needle[m] = 'B';
5127 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5128 }
5129 /* Check for empty needle behavior. */
5130 return !result || !memmem ("a", 1, 0, 0);
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest$ac_exeext
5136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137 (eval $ac_link) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 gl_cv_func_memmem_works=yes
5147else
5148 echo "$as_me: program exited with status $ac_status" >&5
5149echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152( exit $ac_status )
5153gl_cv_func_memmem_works=no
5154fi
5155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156fi
5157fi
5158echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5159echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5160 if test "$gl_cv_func_memmem_works" != yes; then
5161 REPLACE_MEMMEM=1
5162
5163
5164
5165
5166
5167
5168
5169 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5170
5171 fi
5172 fi
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186for ac_func in memmem
5187do
5188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5189echo "$as_me:$LINENO: checking for $ac_func" >&5
5190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5191if eval "test \"\${$as_ac_var+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h. */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h. */
5200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5202#define $ac_func innocuous_$ac_func
5203
5204/* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func (); below.
5206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207 <limits.h> exists even on freestanding compilers. */
5208
5209#ifdef __STDC__
5210# include <limits.h>
5211#else
5212# include <assert.h>
5213#endif
5214
5215#undef $ac_func
5216
5217/* Override any gcc2 internal prototype to avoid an error. */
5218#ifdef __cplusplus
5219extern "C"
5220{
5221#endif
5222/* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5224char $ac_func ();
5225/* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5229choke me
5230#else
5231char (*f) () = $ac_func;
5232#endif
5233#ifdef __cplusplus
5234}
5235#endif
5236
5237int
5238main ()
5239{
5240return f != $ac_func;
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245rm -f conftest.$ac_objext conftest$ac_exeext
5246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 eval "$as_ac_var=yes"
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272eval "$as_ac_var=no"
5273fi
5274rm -f conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5276fi
5277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5279if test `eval echo '${'$as_ac_var'}'` = yes; then
5280 cat >>confdefs.h <<_ACEOF
5281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5282_ACEOF
5283
5284else
5285
5286 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5287
5288fi
5289done
5290
5291
5292
5293 :
5294
5295
5296
5297
5298
5299 if test $ac_cv_have_decl_memmem = no; then
5300 HAVE_DECL_MEMMEM=0
5301 fi
5302 :
5303
5304
5305
5306 GNULIB_MEMMEM=1
5307
5308
5309
5310
5311 if test $ac_cv_type_long_long_int = yes; then
5312 HAVE_LONG_LONG_INT=1
5313 else
5314 HAVE_LONG_LONG_INT=0
5315 fi
5316
5317
5318 if test $ac_cv_type_unsigned_long_long_int = yes; then
5319 HAVE_UNSIGNED_LONG_LONG_INT=1
5320 else
5321 HAVE_UNSIGNED_LONG_LONG_INT=0
5322 fi
5323
5324
5325 if test $ac_cv_header_inttypes_h = yes; then
5326 HAVE_INTTYPES_H=1
5327 else
5328 HAVE_INTTYPES_H=0
5329 fi
5330
5331
5332 if test $ac_cv_header_sys_types_h = yes; then
5333 HAVE_SYS_TYPES_H=1
5334 else
5335 HAVE_SYS_TYPES_H=0
5336 fi
5337
5338
5339
5340
5341
5342 :
5343
5344
5345
5346
5347
5348
5349
5350 if test $gl_cv_have_include_next = yes; then
5351 gl_cv_next_stdint_h='<'stdint.h'>'
5352 else
5353 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5354echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5355if test "${gl_cv_next_stdint_h+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358
5359 if test $ac_cv_header_stdint_h = yes; then
5360 cat >conftest.$ac_ext <<_ACEOF
5361/* confdefs.h. */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h. */
5366#include <stdint.h>
5367
5368_ACEOF
5369 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 sed -n '\#/stdint.h#{
5371 s#.*"\(.*/stdint.h\)".*#\1#
5372 s#^/[^/]#//&#
5373 p
5374 q
5375 }'`'"'
5376 else
5377 gl_cv_next_stdint_h='<'stdint.h'>'
5378 fi
5379
5380fi
5381echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5382echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5383 fi
5384 NEXT_STDINT_H=$gl_cv_next_stdint_h
5385
5386
5387
5388 if test $ac_cv_header_stdint_h = yes; then
5389 HAVE_STDINT_H=1
5390 else
5391 HAVE_STDINT_H=0
5392 fi
5393
5394
5395 if test $ac_cv_header_stdint_h = yes; then
5396 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5397echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5398if test "${gl_cv_header_working_stdint_h+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 gl_cv_header_working_stdint_h=no
5402 cat >conftest.$ac_ext <<_ACEOF
5403
5404 /* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409
5410#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5411#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5412#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5413#include <stdint.h>
5414/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5415#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5416#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5417#endif
5418
5419
5420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5421 included before <wchar.h>. */
5422 #include <stddef.h>
5423 #include <signal.h>
5424 #if HAVE_WCHAR_H
5425 # include <stdio.h>
5426 # include <time.h>
5427 # include <wchar.h>
5428 #endif
5429
5430
5431#ifdef INT8_MAX
5432int8_t a1 = INT8_MAX;
5433int8_t a1min = INT8_MIN;
5434#endif
5435#ifdef INT16_MAX
5436int16_t a2 = INT16_MAX;
5437int16_t a2min = INT16_MIN;
5438#endif
5439#ifdef INT32_MAX
5440int32_t a3 = INT32_MAX;
5441int32_t a3min = INT32_MIN;
5442#endif
5443#ifdef INT64_MAX
5444int64_t a4 = INT64_MAX;
5445int64_t a4min = INT64_MIN;
5446#endif
5447#ifdef UINT8_MAX
5448uint8_t b1 = UINT8_MAX;
5449#else
5450typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5451#endif
5452#ifdef UINT16_MAX
5453uint16_t b2 = UINT16_MAX;
5454#endif
5455#ifdef UINT32_MAX
5456uint32_t b3 = UINT32_MAX;
5457#endif
5458#ifdef UINT64_MAX
5459uint64_t b4 = UINT64_MAX;
5460#endif
5461int_least8_t c1 = INT8_C (0x7f);
5462int_least8_t c1max = INT_LEAST8_MAX;
5463int_least8_t c1min = INT_LEAST8_MIN;
5464int_least16_t c2 = INT16_C (0x7fff);
5465int_least16_t c2max = INT_LEAST16_MAX;
5466int_least16_t c2min = INT_LEAST16_MIN;
5467int_least32_t c3 = INT32_C (0x7fffffff);
5468int_least32_t c3max = INT_LEAST32_MAX;
5469int_least32_t c3min = INT_LEAST32_MIN;
5470int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5471int_least64_t c4max = INT_LEAST64_MAX;
5472int_least64_t c4min = INT_LEAST64_MIN;
5473uint_least8_t d1 = UINT8_C (0xff);
5474uint_least8_t d1max = UINT_LEAST8_MAX;
5475uint_least16_t d2 = UINT16_C (0xffff);
5476uint_least16_t d2max = UINT_LEAST16_MAX;
5477uint_least32_t d3 = UINT32_C (0xffffffff);
5478uint_least32_t d3max = UINT_LEAST32_MAX;
5479uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5480uint_least64_t d4max = UINT_LEAST64_MAX;
5481int_fast8_t e1 = INT_FAST8_MAX;
5482int_fast8_t e1min = INT_FAST8_MIN;
5483int_fast16_t e2 = INT_FAST16_MAX;
5484int_fast16_t e2min = INT_FAST16_MIN;
5485int_fast32_t e3 = INT_FAST32_MAX;
5486int_fast32_t e3min = INT_FAST32_MIN;
5487int_fast64_t e4 = INT_FAST64_MAX;
5488int_fast64_t e4min = INT_FAST64_MIN;
5489uint_fast8_t f1 = UINT_FAST8_MAX;
5490uint_fast16_t f2 = UINT_FAST16_MAX;
5491uint_fast32_t f3 = UINT_FAST32_MAX;
5492uint_fast64_t f4 = UINT_FAST64_MAX;
5493#ifdef INTPTR_MAX
5494intptr_t g = INTPTR_MAX;
5495intptr_t gmin = INTPTR_MIN;
5496#endif
5497#ifdef UINTPTR_MAX
5498uintptr_t h = UINTPTR_MAX;
5499#endif
5500intmax_t i = INTMAX_MAX;
5501uintmax_t j = UINTMAX_MAX;
5502
5503#include <limits.h> /* for CHAR_BIT */
5504#define TYPE_MINIMUM(t) \
5505 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5506#define TYPE_MAXIMUM(t) \
5507 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5508struct s {
5509 int check_PTRDIFF:
5510 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5511 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5512 ? 1 : -1;
5513 /* Detect bug in FreeBSD 6.0 / ia64. */
5514 int check_SIG_ATOMIC:
5515 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5516 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5517 ? 1 : -1;
5518 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5519 int check_WCHAR:
5520 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5521 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5522 ? 1 : -1;
5523 /* Detect bug in mingw. */
5524 int check_WINT:
5525 WINT_MIN == TYPE_MINIMUM (wint_t)
5526 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5527 ? 1 : -1;
5528
5529 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5530 int check_UINT8_C:
5531 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5532 int check_UINT16_C:
5533 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5534
5535 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5536#ifdef UINT8_MAX
5537 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5538#endif
5539#ifdef UINT16_MAX
5540 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5541#endif
5542#ifdef UINT32_MAX
5543 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5544#endif
5545#ifdef UINT64_MAX
5546 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5547#endif
5548 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5549 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5550 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5551 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5552 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5553 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5554 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5555 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5556 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5557 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5558 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5559};
5560
5561int
5562main ()
5563{
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 gl_cv_header_working_stdint_h=yes
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596fi
5597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5598fi
5599echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5600echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5601 fi
5602 if test "$gl_cv_header_working_stdint_h" = yes; then
5603 STDINT_H=
5604 else
5605
5606
5607for ac_header in sys/inttypes.h sys/bitypes.h
5608do
5609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611 echo "$as_me:$LINENO: checking for $ac_header" >&5
5612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615fi
5616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618else
5619 # Is the header compilable?
5620echo "$as_me:$LINENO: checking $ac_header usability" >&5
5621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5622cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628$ac_includes_default
5629#include <$ac_header>
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_header_compiler=yes
5654else
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658ac_header_compiler=no
5659fi
5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5662echo "${ECHO_T}$ac_header_compiler" >&6
5663
5664# Is the header present?
5665echo "$as_me:$LINENO: checking $ac_header presence" >&5
5666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
5673#include <$ac_header>
5674_ACEOF
5675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null; then
5683 if test -s conftest.err; then
5684 ac_cpp_err=$ac_c_preproc_warn_flag
5685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5686 else
5687 ac_cpp_err=
5688 fi
5689else
5690 ac_cpp_err=yes
5691fi
5692if test -z "$ac_cpp_err"; then
5693 ac_header_preproc=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_header_preproc=no
5699fi
5700rm -f conftest.err conftest.$ac_ext
5701echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5702echo "${ECHO_T}$ac_header_preproc" >&6
5703
5704# So? What about this header?
5705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5706 yes:no: )
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5711 ac_header_preproc=yes
5712 ;;
5713 no:yes:* )
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5726 (
5727 cat <<\_ASBOX
5728## ------------------------------------------ ##
5729## Report this to the AC_PACKAGE_NAME lists. ##
5730## ------------------------------------------ ##
5731_ASBOX
5732 ) |
5733 sed "s/^/$as_me: WARNING: /" >&2
5734 ;;
5735esac
5736echo "$as_me:$LINENO: checking for $ac_header" >&5
5737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5738if eval "test \"\${$as_ac_Header+set}\" = set"; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741 eval "$as_ac_Header=\$ac_header_preproc"
5742fi
5743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745
5746fi
5747if test `eval echo '${'$as_ac_Header'}'` = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750_ACEOF
5751
5752fi
5753
5754done
5755
5756 if test $ac_cv_header_sys_inttypes_h = yes; then
5757 HAVE_SYS_INTTYPES_H=1
5758 else
5759 HAVE_SYS_INTTYPES_H=0
5760 fi
5761
5762 if test $ac_cv_header_sys_bitypes_h = yes; then
5763 HAVE_SYS_BITYPES_H=1
5764 else
5765 HAVE_SYS_BITYPES_H=0
5766 fi
5767
5768
5769
5770 :
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5786 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5787echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5788if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 if test "$cross_compiling" = yes; then
5792 # Depending upon the size, compute the lo and hi bounds.
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */
5799
5800 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5801 included before <wchar.h>. */
5802 #include <stddef.h>
5803 #include <signal.h>
5804 #if HAVE_WCHAR_H
5805 # include <stdio.h>
5806 # include <time.h>
5807 # include <wchar.h>
5808 #endif
5809
5810#include <limits.h>
5811int
5812main ()
5813{
5814static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5815test_array [0] = 0
5816
5817 ;
5818 return 0;
5819}
5820_ACEOF
5821rm -f conftest.$ac_objext
5822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_lo=0 ac_mid=0
5844 while :; do
5845 cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851
5852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5853 included before <wchar.h>. */
5854 #include <stddef.h>
5855 #include <signal.h>
5856 #if HAVE_WCHAR_H
5857 # include <stdio.h>
5858 # include <time.h>
5859 # include <wchar.h>
5860 #endif
5861
5862#include <limits.h>
5863int
5864main ()
5865{
5866static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5867test_array [0] = 0
5868
5869 ;
5870 return 0;
5871}
5872_ACEOF
5873rm -f conftest.$ac_objext
5874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_hi=$ac_mid; break
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900ac_lo=`expr $ac_mid + 1`
5901 if test $ac_lo -le $ac_mid; then
5902 ac_lo= ac_hi=
5903 break
5904 fi
5905 ac_mid=`expr 2 '*' $ac_mid + 1`
5906fi
5907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 done
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
5919
5920 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5921 included before <wchar.h>. */
5922 #include <stddef.h>
5923 #include <signal.h>
5924 #if HAVE_WCHAR_H
5925 # include <stdio.h>
5926 # include <time.h>
5927 # include <wchar.h>
5928 #endif
5929
5930#include <limits.h>
5931int
5932main ()
5933{
5934static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5935test_array [0] = 0
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 (eval $ac_try) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_hi=-1 ac_mid=-1
5964 while :; do
5965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5971
5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5973 included before <wchar.h>. */
5974 #include <stddef.h>
5975 #include <signal.h>
5976 #if HAVE_WCHAR_H
5977 # include <stdio.h>
5978 # include <time.h>
5979 # include <wchar.h>
5980 #endif
5981
5982#include <limits.h>
5983int
5984main ()
5985{
5986static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5987test_array [0] = 0
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag"
6003 || test ! -s conftest.err'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_lo=$ac_mid; break
6016else
6017 echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020ac_hi=`expr '(' $ac_mid ')' - 1`
6021 if test $ac_mid -le $ac_hi; then
6022 ac_lo= ac_hi=
6023 break
6024 fi
6025 ac_mid=`expr 2 '*' $ac_mid`
6026fi
6027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 done
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033ac_lo= ac_hi=
6034fi
6035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
6037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038# Binary search between lo and hi bounds.
6039while test "x$ac_lo" != "x$ac_hi"; do
6040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047
6048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6049 included before <wchar.h>. */
6050 #include <stddef.h>
6051 #include <signal.h>
6052 #if HAVE_WCHAR_H
6053 # include <stdio.h>
6054 # include <time.h>
6055 # include <wchar.h>
6056 #endif
6057
6058#include <limits.h>
6059int
6060main ()
6061{
6062static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6063test_array [0] = 0
6064
6065 ;
6066 return 0;
6067}
6068_ACEOF
6069rm -f conftest.$ac_objext
6070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_hi=$ac_mid
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096ac_lo=`expr '(' $ac_mid ')' + 1`
6097fi
6098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099done
6100case $ac_lo in
6101?*) result=$ac_lo;;
6102'') result=unknown ;;
6103esac
6104else
6105 if test "$cross_compiling" = yes; then
6106 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6107echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6109See \`config.log' for more details." >&5
6110echo "$as_me: error: cannot run test program while cross compiling
6111See \`config.log' for more details." >&2;}
6112 { (exit 1); exit 1; }; }; }
6113else
6114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120
6121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6122 included before <wchar.h>. */
6123 #include <stddef.h>
6124 #include <signal.h>
6125 #if HAVE_WCHAR_H
6126 # include <stdio.h>
6127 # include <time.h>
6128 # include <wchar.h>
6129 #endif
6130
6131#include <limits.h>
6132long longval () { return sizeof ($gltype) * CHAR_BIT; }
6133unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6134#include <stdio.h>
6135#include <stdlib.h>
6136int
6137main ()
6138{
6139
6140 FILE *f = fopen ("conftest.val", "w");
6141 if (! f)
6142 exit (1);
6143 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6144 {
6145 long i = longval ();
6146 if (i != (sizeof ($gltype) * CHAR_BIT))
6147 exit (1);
6148 fprintf (f, "%ld\n", i);
6149 }
6150 else
6151 {
6152 unsigned long i = ulongval ();
6153 if (i != (sizeof ($gltype) * CHAR_BIT))
6154 exit (1);
6155 fprintf (f, "%lu\n", i);
6156 }
6157 exit (ferror (f) || fclose (f) != 0);
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163rm -f conftest$ac_exeext
6164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 result=`cat conftest.val`
6175else
6176 echo "$as_me: program exited with status $ac_status" >&5
6177echo "$as_me: failed program was:" >&5
6178sed 's/^/| /' conftest.$ac_ext >&5
6179
6180( exit $ac_status )
6181result=unknown
6182fi
6183rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6184fi
6185fi
6186rm -f conftest.val
6187 eval gl_cv_bitsizeof_${gltype}=\$result
6188
6189fi
6190echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6191echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6192 eval result=\$gl_cv_bitsizeof_${gltype}
6193 if test $result = unknown; then
6194 result=0
6195 fi
6196 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6197 cat >>confdefs.h <<_ACEOF
6198#define BITSIZEOF_${GLTYPE} $result
6199_ACEOF
6200
6201 eval BITSIZEOF_${GLTYPE}=\$result
6202 done
6203
6204
6205
6206
6207
6208
6209
6210 for gltype in sig_atomic_t wchar_t wint_t ; do
6211 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6212echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6213if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
6222
6223 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6224 included before <wchar.h>. */
6225 #include <stddef.h>
6226 #include <signal.h>
6227 #if HAVE_WCHAR_H
6228 # include <stdio.h>
6229 # include <time.h>
6230 # include <wchar.h>
6231 #endif
6232
6233 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6234int
6235main ()
6236{
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 result=yes
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269result=no
6270fi
6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 eval gl_cv_type_${gltype}_signed=\$result
6273
6274fi
6275echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6276echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6277 eval result=\$gl_cv_type_${gltype}_signed
6278 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6279 if test "$result" = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281#define HAVE_SIGNED_${GLTYPE} 1
6282_ACEOF
6283
6284 eval HAVE_SIGNED_${GLTYPE}=1
6285 else
6286 eval HAVE_SIGNED_${GLTYPE}=0
6287 fi
6288 done
6289
6290
6291 gl_cv_type_ptrdiff_t_signed=yes
6292 gl_cv_type_size_t_signed=no
6293
6294
6295
6296
6297
6298
6299
6300 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6301 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6302echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6303if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 eval gl_cv_type_${gltype}_suffix=no
6307 eval result=\$gl_cv_type_${gltype}_signed
6308 if test "$result" = yes; then
6309 glsufu=
6310 else
6311 glsufu=u
6312 fi
6313 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6314 case $glsuf in
6315 '') gltype1='int';;
6316 l) gltype1='long int';;
6317 ll) gltype1='long long int';;
6318 i64) gltype1='__int64';;
6319 u) gltype1='unsigned int';;
6320 ul) gltype1='unsigned long int';;
6321 ull) gltype1='unsigned long long int';;
6322 ui64)gltype1='unsigned __int64';;
6323 esac
6324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330
6331 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6332 included before <wchar.h>. */
6333 #include <stddef.h>
6334 #include <signal.h>
6335 #if HAVE_WCHAR_H
6336 # include <stdio.h>
6337 # include <time.h>
6338 # include <wchar.h>
6339 #endif
6340
6341 extern $gltype foo;
6342 extern $gltype1 foo;
6343int
6344main ()
6345{
6346
6347 ;
6348 return 0;
6349}
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 eval gl_cv_type_${gltype}_suffix=\$glsuf
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378fi
6379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 eval result=\$gl_cv_type_${gltype}_suffix
6381 test "$result" != no && break
6382 done
6383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6386 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6387 eval result=\$gl_cv_type_${gltype}_suffix
6388 test "$result" = no && result=
6389 eval ${GLTYPE}_SUFFIX=\$result
6390 cat >>confdefs.h <<_ACEOF
6391#define ${GLTYPE}_SUFFIX $result
6392_ACEOF
6393
6394 done
6395
6396
6397
6398 STDINT_H=stdint.h
6399 fi
6400
6401
6402
6403
6404
6405
6406
6407 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6408echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6409if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 cat >conftest.$ac_ext <<_ACEOF
6413#include <wchar.h>
6414wchar_t w;
6415_ACEOF
6416rm -f conftest.$ac_objext
6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 gl_cv_header_wchar_h_standalone=yes
6439else
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443gl_cv_header_wchar_h_standalone=no
6444fi
6445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6448echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6449 if test $gl_cv_header_wchar_h_standalone != yes; then
6450 WCHAR_H=wchar.h
6451 fi
6452
6453
6454 :
6455
6456
6457
6458
6459
6460 if test $ac_cv_header_wchar_h = yes; then
6461 HAVE_WCHAR_H=1
6462 else
6463 HAVE_WCHAR_H=0
6464 fi
6465
6466
6467
6468
6469 :
6470
6471
6472
6473
6474
6475
6476
6477 if test $gl_cv_have_include_next = yes; then
6478 gl_cv_next_wchar_h='<'wchar.h'>'
6479 else
6480 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6481echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6482if test "${gl_cv_next_wchar_h+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485
6486 if test $ac_cv_header_wchar_h = yes; then
6487 cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493#include <wchar.h>
6494
6495_ACEOF
6496 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6497 sed -n '\#/wchar.h#{
6498 s#.*"\(.*/wchar.h\)".*#\1#
6499 s#^/[^/]#//&#
6500 p
6501 q
6502 }'`'"'
6503 else
6504 gl_cv_next_wchar_h='<'wchar.h'>'
6505 fi
6506
6507fi
6508echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6509echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6510 fi
6511 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6512
6513
6514
6515
6516
6517
6518
6519
6520 gltests_libdeps=
6521 gltests_ltlibdeps=
6522
6523
6524
6525 gl_source_base='tests'
6526
6527
6528
6529
6530 LIBGNU_LIBDEPS="$gl_libdeps"
6531
6532 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6533
6534
6535
6536# For Makefile dependencies.
6537GNULIB_STDINT_H=
6538if test x"$STDINT_H" != x; then
6539 GNULIB_STDINT_H=gnulib/$STDINT_H
6540fi
6541
6542
6543PACKAGE=gdb
6544
6545cat >>confdefs.h <<_ACEOF
6546#define PACKAGE "$PACKAGE"
6547_ACEOF
6548
6549
6550
6551# GDB does not use automake, but gnulib does. This line lets us
6552# generate its Makefile.in.
6553am__api_version="1.9"
6554# Find a good install program. We prefer a C program (faster),
6555# so one script is as good as another. But avoid the broken or
6556# incompatible versions:
6557# SysV /etc/install, /usr/sbin/install
6558# SunOS /usr/etc/install
6559# IRIX /sbin/install
6560# AIX /bin/install
6561# AmigaOS /C/install, which installs bootblocks on floppy discs
6562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6565# OS/2's system install, which has a completely different semantic
6566# ./install, which can be erroneously created by make from ./install.sh.
6567# Reject install programs that cannot install multiple files.
6568echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6569echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6570if test -z "$INSTALL"; then
6571if test "${ac_cv_path_install+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 # Account for people who put trailing slashes in PATH elements.
6580case $as_dir/ in
6581 ./ | .// | /cC/* | \
6582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6583 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6584 /usr/ucb/* ) ;;
6585 *)
6586 # OSF1 and SCO ODT 3.0 have their own names for install.
6587 # Don't use installbsd from OSF since it installs stuff as root
6588 # by default.
6589 for ac_prog in ginstall scoinst install; do
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6592 if test $ac_prog = install &&
6593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6594 # AIX install. It has an incompatible calling convention.
6595 :
6596 elif test $ac_prog = install &&
6597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6598 # program-specific install script used by HP pwplus--don't use.
6599 :
6600 else
6601 rm -rf conftest.one conftest.two conftest.dir
6602 echo one > conftest.one
6603 echo two > conftest.two
6604 mkdir conftest.dir
6605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6606 test -s conftest.one && test -s conftest.two &&
6607 test -s conftest.dir/conftest.one &&
6608 test -s conftest.dir/conftest.two
6609 then
6610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6611 break 3
6612 fi
6613 fi
6614 fi
6615 done
6616 done
6617 ;;
6618esac
6619done
6620
6621rm -rf conftest.one conftest.two conftest.dir
6622
6623fi
6624 if test "${ac_cv_path_install+set}" = set; then
6625 INSTALL=$ac_cv_path_install
6626 else
6627 # As a last resort, use the slow shell script. Don't cache a
6628 # value for INSTALL within a source directory, because that will
6629 # break other packages using the cache if that directory is
6630 # removed, or if the value is a relative name.
6631 INSTALL=$ac_install_sh
6632 fi
6633fi
6634echo "$as_me:$LINENO: result: $INSTALL" >&5
6635echo "${ECHO_T}$INSTALL" >&6
6636
6637# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6638# It thinks the first close brace ends the variable substitution.
6639test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6640
6641test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6642
6643test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6644
6645echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6646echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6647# Just in case
6648sleep 1
6649echo timestamp > conftest.file
6650# Do `set' in a subshell so we don't clobber the current shell's
6651# arguments. Must try -L first in case configure is actually a
6652# symlink; some systems play weird games with the mod time of symlinks
6653# (eg FreeBSD returns the mod time of the symlink's containing
6654# directory).
6655if (
6656 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6657 if test "$*" = "X"; then
6658 # -L didn't work.
6659 set X `ls -t $srcdir/configure conftest.file`
6660 fi
6661 rm -f conftest.file
6662 if test "$*" != "X $srcdir/configure conftest.file" \
6663 && test "$*" != "X conftest.file $srcdir/configure"; then
6664
6665 # If neither matched, then we have a broken ls. This can happen
6666 # if, for instance, CONFIG_SHELL is bash and it inherits a
6667 # broken ls alias from the environment. This has actually
6668 # happened. Such a system could not be considered "sane".
6669 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6670alias in your environment" >&5
6671echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6672alias in your environment" >&2;}
6673 { (exit 1); exit 1; }; }
6674 fi
6675
6676 test "$2" = conftest.file
6677 )
6678then
6679 # Ok.
6680 :
6681else
6682 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6683Check your system clock" >&5
6684echo "$as_me: error: newly created file is older than distributed files!
6685Check your system clock" >&2;}
6686 { (exit 1); exit 1; }; }
6687fi
6688echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
6690test "$program_prefix" != NONE &&
6691 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6692# Use a double $ so make ignores it.
6693test "$program_suffix" != NONE &&
6694 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6695# Double any \ or $. echo might interpret backslashes.
6696# By default was `s,x,x', remove it if useless.
6697cat <<\_ACEOF >conftest.sed
6698s/[\\$]/&&/g;s/;s,x,x,$//
6699_ACEOF
6700program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6701rm conftest.sed
6702
6703# expand $ac_aux_dir to an absolute path
6704am_aux_dir=`cd $ac_aux_dir && pwd`
6705
6706test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6707# Use eval to expand $SHELL
6708if eval "$MISSING --run true"; then
6709 am_missing_run="$MISSING --run "
6710else
6711 am_missing_run=
6712 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6713echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6714fi
6715
6716if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6717 # We used to keeping the `.' as first argument, in order to
6718 # allow $(mkdir_p) to be used without argument. As in
6719 # $(mkdir_p) $(somedir)
6720 # where $(somedir) is conditionally defined. However this is wrong
6721 # for two reasons:
6722 # 1. if the package is installed by a user who cannot write `.'
6723 # make install will fail,
6724 # 2. the above comment should most certainly read
6725 # $(mkdir_p) $(DESTDIR)$(somedir)
6726 # so it does not work when $(somedir) is undefined and
6727 # $(DESTDIR) is not.
6728 # To support the latter case, we have to write
6729 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6730 # so the `.' trick is pointless.
6731 mkdir_p='mkdir -p --'
6732else
6733 # On NextStep and OpenStep, the `mkdir' command does not
6734 # recognize any option. It will interpret all options as
6735 # directories to create, and then abort because `.' already
6736 # exists.
6737 for d in ./-p ./--version;
6738 do
6739 test -d $d && rmdir $d
6740 done
6741 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6742 if test -f "$ac_aux_dir/mkinstalldirs"; then
6743 mkdir_p='$(mkinstalldirs)'
6744 else
6745 mkdir_p='$(install_sh) -d'
6746 fi
6747fi
6748
6749for ac_prog in gawk mawk nawk awk
6750do
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752set dummy $ac_prog; ac_word=$2
6753echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755if test "${ac_cv_prog_AWK+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$AWK"; then
6759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_AWK="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
6774
6775fi
6776fi
6777AWK=$ac_cv_prog_AWK
6778if test -n "$AWK"; then
6779 echo "$as_me:$LINENO: result: $AWK" >&5
6780echo "${ECHO_T}$AWK" >&6
6781else
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
6784fi
6785
6786 test -n "$AWK" && break
6787done
6788
6789 ac_config_commands="$ac_config_commands depfiles"
6790
6791
6792am_make=${MAKE-make}
6793cat > confinc << 'END'
6794am__doit:
6795 @echo done
6796.PHONY: am__doit
6797END
6798# If we don't find an include directive, just comment out the code.
6799echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6800echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6801am__include="#"
6802am__quote=
6803_am_result=none
6804# First try GNU make style include.
6805echo "include confinc" > confmf
6806# We grep out `Entering directory' and `Leaving directory'
6807# messages which can occur if `w' ends up in MAKEFLAGS.
6808# In particular we don't look at `^make:' because GNU make might
6809# be invoked under some other name (usually "gmake"), in which
6810# case it prints its new name instead of `make'.
6811if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6812 am__include=include
6813 am__quote=
6814 _am_result=GNU
6815fi
6816# Now try BSD make style include.
6817if test "$am__include" = "#"; then
6818 echo '.include "confinc"' > confmf
6819 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6820 am__include=.include
6821 am__quote="\""
6822 _am_result=BSD
6823 fi
6824fi
6825
6826
6827echo "$as_me:$LINENO: result: $_am_result" >&5
6828echo "${ECHO_T}$_am_result" >&6
6829rm -f confinc confmf
6830
6831# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6832if test "${enable_dependency_tracking+set}" = set; then
6833 enableval="$enable_dependency_tracking"
6834
6835fi;
6836if test "x$enable_dependency_tracking" != xno; then
6837 am_depcomp="$ac_aux_dir/depcomp"
6838 AMDEPBACKSLASH='\'
6839fi
6840
6841
6842if test "x$enable_dependency_tracking" != xno; then
6843 AMDEP_TRUE=
6844 AMDEP_FALSE='#'
6845else
6846 AMDEP_TRUE='#'
6847 AMDEP_FALSE=
6848fi
6849
6850
6851
6852# test to see if srcdir already configured
6853if test "`cd $srcdir && pwd`" != "`pwd`" &&
6854 test -f $srcdir/config.status; then
6855 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6856echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6857 { (exit 1); exit 1; }; }
6858fi
6859
6860# test whether we have cygpath
6861if test -z "$CYGPATH_W"; then
6862 if (cygpath --version) >/dev/null 2>/dev/null; then
6863 CYGPATH_W='cygpath -w'
6864 else
6865 CYGPATH_W=echo
6866 fi
6867fi
6868
6869
6870# Define the identity of the package.
6871 PACKAGE=gdb
6872 VERSION=UNUSED-VERSION
6873
6874
6875# Some tools Automake needs.
6876
6877ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6878
6879
6880AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6881
6882
6883AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6884
6885
6886AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6887
6888
6889MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6890
6891install_sh=${install_sh-"$am_aux_dir/install-sh"}
6892
6893# Installed binaries are usually stripped using `strip' when the user
6894# run `make install-strip'. However `strip' might not be the right
6895# tool to use in cross-compilation environments, therefore Automake
6896# will honor the `STRIP' environment variable to overrule this program.
6897if test "$cross_compiling" != no; then
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6900set dummy ${ac_tool_prefix}strip; ac_word=$2
6901echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903if test "${ac_cv_prog_STRIP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 if test -n "$STRIP"; then
6907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922
6923fi
6924fi
6925STRIP=$ac_cv_prog_STRIP
6926if test -n "$STRIP"; then
6927 echo "$as_me:$LINENO: result: $STRIP" >&5
6928echo "${ECHO_T}$STRIP" >&6
6929else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932fi
6933
6934fi
6935if test -z "$ac_cv_prog_STRIP"; then
6936 ac_ct_STRIP=$STRIP
6937 # Extract the first word of "strip", so it can be a program name with args.
6938set dummy strip; ac_word=$2
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
6960
6961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6962fi
6963fi
6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965if test -n "$ac_ct_STRIP"; then
6966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967echo "${ECHO_T}$ac_ct_STRIP" >&6
6968else
6969 echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
6971fi
6972
6973 STRIP=$ac_ct_STRIP
6974else
6975 STRIP="$ac_cv_prog_STRIP"
6976fi
6977
6978fi
6979INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6980
6981# We need awk for the "check" target. The system "awk" is bad on
6982# some platforms.
6983# Always define AMTAR for backward compatibility.
6984
6985AMTAR=${AMTAR-"${am_missing_run}tar"}
6986
6987am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6988
6989
6990
6991
6992depcc="$CC" am_compiler_list=
6993
6994echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6995echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6996if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7000 # We make a subdir and do the tests there. Otherwise we can end up
7001 # making bogus files that we don't know about and never remove. For
7002 # instance it was reported that on HP-UX the gcc test will end up
7003 # making a dummy file named `D' -- because `-MD' means `put the output
7004 # in D'.
7005 mkdir conftest.dir
7006 # Copy depcomp to subdir because otherwise we won't find it if we're
7007 # using a relative directory.
7008 cp "$am_depcomp" conftest.dir
7009 cd conftest.dir
7010 # We will build objects and dependencies in a subdirectory because
7011 # it helps to detect inapplicable dependency modes. For instance
7012 # both Tru64's cc and ICC support -MD to output dependencies as a
7013 # side effect of compilation, but ICC will put the dependencies in
7014 # the current directory while Tru64 will put them in the object
7015 # directory.
7016 mkdir sub
7017
7018 am_cv_CC_dependencies_compiler_type=none
7019 if test "$am_compiler_list" = ""; then
7020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7021 fi
7022 for depmode in $am_compiler_list; do
7023 # Setup a source with many dependencies, because some compilers
7024 # like to wrap large dependency lists on column 80 (with \), and
7025 # we should not choose a depcomp mode which is confused by this.
7026 #
7027 # We need to recreate these files for each test, as the compiler may
7028 # overwrite some of them when testing with obscure command lines.
7029 # This happens at least with the AIX C compiler.
7030 : > sub/conftest.c
7031 for i in 1 2 3 4 5 6; do
7032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7034 # Solaris 8's {/usr,}/bin/sh.
7035 touch sub/conftst$i.h
7036 done
7037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7038
7039 case $depmode in
7040 nosideeffect)
7041 # after this tag, mechanisms are not by side-effect, so they'll
7042 # only be used when explicitly requested
7043 if test "x$enable_dependency_tracking" = xyes; then
7044 continue
7045 else
7046 break
7047 fi
7048 ;;
7049 none) break ;;
7050 esac
7051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7052 # mode. It turns out that the SunPro C++ compiler does not properly
7053 # handle `-M -o', and we need to detect this.
7054 if depmode=$depmode \
7055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7058 >/dev/null 2>conftest.err &&
7059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7062 # icc doesn't choke on unknown options, it will just issue warnings
7063 # or remarks (even with -Werror). So we grep stderr for any message
7064 # that says an option was ignored or not supported.
7065 # When given -MP, icc 7.0 and 7.1 complain thusly:
7066 # icc: Command line warning: ignoring option '-M'; no argument required
7067 # The diagnosis changed in icc 8.0:
7068 # icc: Command line remark: option '-MP' not supported
7069 if (grep 'ignoring option' conftest.err ||
7070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7071 am_cv_CC_dependencies_compiler_type=$depmode
7072 break
7073 fi
7074 fi
7075 done
7076
7077 cd ..
7078 rm -rf conftest.dir
7079else
7080 am_cv_CC_dependencies_compiler_type=none
7081fi
7082
7083fi
7084echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7085echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7086CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7087
7088
7089
7090if
7091 test "x$enable_dependency_tracking" != xno \
7092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7093 am__fastdepCC_TRUE=
7094 am__fastdepCC_FALSE='#'
7095else
7096 am__fastdepCC_TRUE='#'
7097 am__fastdepCC_FALSE=
7098fi
7099
7100
7101
7102
7103debugdir=${libdir}/debug
7104
7105
7106# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7107if test "${with_separate_debug_dir+set}" = set; then
7108 withval="$with_separate_debug_dir"
7109 debugdir="${withval}"
7110fi;
7111
7112
7113 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7115 ac_define_dir=`eval echo $debugdir`
7116 ac_define_dir=`eval echo $ac_define_dir`
7117
7118cat >>confdefs.h <<_ACEOF
7119#define DEBUGDIR "$ac_define_dir"
7120_ACEOF
7121
7122
7123#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7124
7125if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7126 if test "x$prefix" = xNONE; then
7127 test_prefix=/usr/local
7128 else
7129 test_prefix=$prefix
7130 fi
7131else
7132 test_prefix=$exec_prefix
7133fi
7134case ${debugdir} in
7135"${test_prefix}"|"${test_prefix}/"*|\
7136'${exec_prefix}'|'${exec_prefix}/'*)
7137
7138cat >>confdefs.h <<\_ACEOF
7139#define DEBUGDIR_RELOCATABLE 1
7140_ACEOF
7141
7142 ;;
7143esac
7144
7145
7146# Check whether --with-relocated-sources or --without-relocated-sources was given.
7147if test "${with_relocated_sources+set}" = set; then
7148 withval="$with_relocated_sources"
7149 reloc_srcdir="${withval}"
7150
7151 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7153 ac_define_dir=`eval echo $reloc_srcdir`
7154 ac_define_dir=`eval echo $ac_define_dir`
7155
7156cat >>confdefs.h <<_ACEOF
7157#define RELOC_SRCDIR "$ac_define_dir"
7158_ACEOF
7159
7160
7161
7162fi;
7163
7164
7165
7166subdirs="$subdirs doc testsuite"
7167
7168
7169# Check whether to support alternative target configurations
7170# Check whether --enable-targets or --disable-targets was given.
7171if test "${enable_targets+set}" = set; then
7172 enableval="$enable_targets"
7173 case "${enableval}" in
7174 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7175echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7176 { (exit 1); exit 1; }; }
7177 ;;
7178 no) enable_targets= ;;
7179 *) enable_targets=$enableval ;;
7180esac
7181fi;
7182
7183# Check whether to enable 64-bit support on 32-bit hosts
7184# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7185if test "${enable_64_bit_bfd+set}" = set; then
7186 enableval="$enable_64_bit_bfd"
7187 case "${enableval}" in
7188 yes) want64=true ;;
7189 no) want64=false ;;
7190 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7191echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7192 { (exit 1); exit 1; }; } ;;
7193esac
7194else
7195 want64=false
7196fi;
7197# Provide defaults for some variables set by the per-host and per-target
7198# configuration.
7199gdb_host_obs=posix-hdep.o
7200
7201if test "${target}" = "${host}"; then
7202 gdb_native=yes
7203else
7204 gdb_native=no
7205fi
7206
7207. $srcdir/configure.host
7208
7209# Accumulate some settings from configure.tgt over all enabled targets
7210
7211TARGET_OBS=
7212all_targets=
7213
7214for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7215do
7216 if test "$targ_alias" = "all"; then
7217 all_targets=true
7218 else
7219 # Canonicalize the secondary target names.
7220 result=`$ac_config_sub $targ_alias 2>/dev/null`
7221 if test -n "$result"; then
7222 targ=$result
7223 else
7224 targ=$targ_alias
7225 fi
7226
7227 . ${srcdir}/configure.tgt
7228
7229 # Target-specific object files
7230 for i in ${gdb_target_obs}; do
7231 case " $TARGET_OBS " in
7232 *" ${i} "*) ;;
7233 *)
7234 TARGET_OBS="$TARGET_OBS ${i}"
7235 ;;
7236 esac
7237 done
7238
7239 # Check whether this target needs 64-bit CORE_ADDR
7240 if test x${want64} = xfalse; then
7241 . ${srcdir}/../bfd/config.bfd
7242 fi
7243 fi
7244done
7245
7246if test x${all_targets} = xtrue; then
7247
7248 # We want all 64-bit targets if we either:
7249 # - run on a 64-bit host or
7250 # - already require 64-bit support for some other target or
7251 # - the --enable-64-bit-bfd option was supplied
7252 # Otherwise we only support all 32-bit targets.
7253 #
7254 # NOTE: This test must be in sync with the corresponding
7255 # tests in BFD!
7256
7257 if test x${want64} = xfalse; then
7258 echo "$as_me:$LINENO: checking for long" >&5
7259echo $ECHO_N "checking for long... $ECHO_C" >&6
7260if test "${ac_cv_type_long+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263 cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h. */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h. */
7269$ac_includes_default
7270int
7271main ()
7272{
7273if ((long *) 0)
7274 return 0;
7275if (sizeof (long))
7276 return 0;
7277 ;
7278 return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext
7282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_cv_type_long=yes
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308ac_cv_type_long=no
7309fi
7310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7313echo "${ECHO_T}$ac_cv_type_long" >&6
7314
7315echo "$as_me:$LINENO: checking size of long" >&5
7316echo $ECHO_N "checking size of long... $ECHO_C" >&6
7317if test "${ac_cv_sizeof_long+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 if test "$ac_cv_type_long" = yes; then
7321 # The cast to unsigned long works around a bug in the HP C Compiler
7322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7324 # This bug is HP SR number 8606223364.
7325 if test "$cross_compiling" = yes; then
7326 # Depending upon the size, compute the lo and hi bounds.
7327cat >conftest.$ac_ext <<_ACEOF
7328/* confdefs.h. */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h. */
7333$ac_includes_default
7334int
7335main ()
7336{
7337static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7338test_array [0] = 0
7339
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344rm -f conftest.$ac_objext
7345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_lo=0 ac_mid=0
7367 while :; do
7368 cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h. */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h. */
7374$ac_includes_default
7375int
7376main ()
7377{
7378static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7379test_array [0] = 0
7380
7381 ;
7382 return 0;
7383}
7384_ACEOF
7385rm -f conftest.$ac_objext
7386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_c_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_hi=$ac_mid; break
7408else
7409 echo "$as_me: failed program was:" >&5
7410sed 's/^/| /' conftest.$ac_ext >&5
7411
7412ac_lo=`expr $ac_mid + 1`
7413 if test $ac_lo -le $ac_mid; then
7414 ac_lo= ac_hi=
7415 break
7416 fi
7417 ac_mid=`expr 2 '*' $ac_mid + 1`
7418fi
7419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 done
7421else
7422 echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425cat >conftest.$ac_ext <<_ACEOF
7426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
7431$ac_includes_default
7432int
7433main ()
7434{
7435static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7436test_array [0] = 0
7437
7438 ;
7439 return 0;
7440}
7441_ACEOF
7442rm -f conftest.$ac_objext
7443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_hi=-1 ac_mid=-1
7465 while :; do
7466 cat >conftest.$ac_ext <<_ACEOF
7467/* confdefs.h. */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h. */
7472$ac_includes_default
7473int
7474main ()
7475{
7476static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7477test_array [0] = 0
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_lo=$ac_mid; break
7506else
7507 echo "$as_me: failed program was:" >&5
7508sed 's/^/| /' conftest.$ac_ext >&5
7509
7510ac_hi=`expr '(' $ac_mid ')' - 1`
7511 if test $ac_mid -le $ac_hi; then
7512 ac_lo= ac_hi=
7513 break
7514 fi
7515 ac_mid=`expr 2 '*' $ac_mid`
7516fi
7517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7518 done
7519else
7520 echo "$as_me: failed program was:" >&5
7521sed 's/^/| /' conftest.$ac_ext >&5
7522
7523ac_lo= ac_hi=
7524fi
7525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7528# Binary search between lo and hi bounds.
7529while test "x$ac_lo" != "x$ac_hi"; do
7530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537$ac_includes_default
7538int
7539main ()
7540{
7541static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7542test_array [0] = 0
7543
7544 ;
7545 return 0;
7546}
7547_ACEOF
7548rm -f conftest.$ac_objext
7549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest.$ac_objext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_hi=$ac_mid
7571else
7572 echo "$as_me: failed program was:" >&5
7573sed 's/^/| /' conftest.$ac_ext >&5
7574
7575ac_lo=`expr '(' $ac_mid ')' + 1`
7576fi
7577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578done
7579case $ac_lo in
7580?*) ac_cv_sizeof_long=$ac_lo;;
7581'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7582echo "$as_me: error: in \`$ac_pwd':" >&2;}
7583{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7584See \`config.log' for more details." >&5
7585echo "$as_me: error: cannot compute sizeof (long), 77
7586See \`config.log' for more details." >&2;}
7587 { (exit 1); exit 1; }; }; } ;;
7588esac
7589else
7590 if test "$cross_compiling" = yes; then
7591 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7592echo "$as_me: error: in \`$ac_pwd':" >&2;}
7593{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7594See \`config.log' for more details." >&5
7595echo "$as_me: error: cannot run test program while cross compiling
7596See \`config.log' for more details." >&2;}
7597 { (exit 1); exit 1; }; }; }
7598else
7599 cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h. */
7605$ac_includes_default
7606long longval () { return (long) (sizeof (long)); }
7607unsigned long ulongval () { return (long) (sizeof (long)); }
7608#include <stdio.h>
7609#include <stdlib.h>
7610int
7611main ()
7612{
7613
7614 FILE *f = fopen ("conftest.val", "w");
7615 if (! f)
7616 exit (1);
7617 if (((long) (sizeof (long))) < 0)
7618 {
7619 long i = longval ();
7620 if (i != ((long) (sizeof (long))))
7621 exit (1);
7622 fprintf (f, "%ld\n", i);
7623 }
7624 else
7625 {
7626 unsigned long i = ulongval ();
7627 if (i != ((long) (sizeof (long))))
7628 exit (1);
7629 fprintf (f, "%lu\n", i);
7630 }
7631 exit (ferror (f) || fclose (f) != 0);
7632
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest$ac_exeext
7638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_sizeof_long=`cat conftest.val`
7649else
7650 echo "$as_me: program exited with status $ac_status" >&5
7651echo "$as_me: failed program was:" >&5
7652sed 's/^/| /' conftest.$ac_ext >&5
7653
7654( exit $ac_status )
7655{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7656echo "$as_me: error: in \`$ac_pwd':" >&2;}
7657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7658See \`config.log' for more details." >&5
7659echo "$as_me: error: cannot compute sizeof (long), 77
7660See \`config.log' for more details." >&2;}
7661 { (exit 1); exit 1; }; }; }
7662fi
7663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7664fi
7665fi
7666rm -f conftest.val
7667else
7668 ac_cv_sizeof_long=0
7669fi
7670fi
7671echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7672echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7673cat >>confdefs.h <<_ACEOF
7674#define SIZEOF_LONG $ac_cv_sizeof_long
7675_ACEOF
7676
7677
7678 if test "x${ac_cv_sizeof_long}" = "x8"; then
7679 want64=true
7680 fi
7681 fi
7682 if test x${want64} = xtrue; then
7683 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7684 else
7685 TARGET_OBS='$(ALL_TARGET_OBS)'
7686 fi
7687fi
7688
7689
7690
7691# For other settings, only the main target counts.
7692gdb_sim=
7693gdb_osabi=
7694build_gdbserver=
7695targ=$target; . ${srcdir}/configure.tgt
7696
7697# Fetch the default architecture and default target vector from BFD.
7698targ=$target; . $srcdir/../bfd/config.bfd
7699
7700# We only want the first architecture, so strip off the others if
7701# there is more than one.
7702targ_archs=`echo $targ_archs | sed 's/ .*//'`
7703
7704if test "x$targ_archs" != x; then
7705
7706cat >>confdefs.h <<_ACEOF
7707#define DEFAULT_BFD_ARCH $targ_archs
7708_ACEOF
7709
7710fi
7711if test "x$targ_defvec" != x; then
7712
7713cat >>confdefs.h <<_ACEOF
7714#define DEFAULT_BFD_VEC $targ_defvec
7715_ACEOF
7716
7717fi
7718
7719# The CLI cannot be disabled yet, but may be in the future.
7720
7721# Enable CLI.
7722# Check whether --enable-gdbcli or --disable-gdbcli was given.
7723if test "${enable_gdbcli+set}" = set; then
7724 enableval="$enable_gdbcli"
7725 case $enableval in
7726 yes)
7727 ;;
7728 no)
7729 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7730echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7731 { (exit 1); exit 1; }; } ;;
7732 *)
7733 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7734echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7735 { (exit 1); exit 1; }; } ;;
7736 esac
7737else
7738 enable_gdbcli=yes
7739fi;
7740if test x"$enable_gdbcli" = xyes; then
7741 if test -d $srcdir/cli; then
7742 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7743 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7744 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7745 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7746 fi
7747fi
7748
7749# Enable MI.
7750# Check whether --enable-gdbmi or --disable-gdbmi was given.
7751if test "${enable_gdbmi+set}" = set; then
7752 enableval="$enable_gdbmi"
7753 case $enableval in
7754 yes | no)
7755 ;;
7756 *)
7757 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7758echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7759 { (exit 1); exit 1; }; } ;;
7760 esac
7761else
7762 enable_gdbmi=yes
7763fi;
7764if test x"$enable_gdbmi" = xyes; then
7765 if test -d $srcdir/mi; then
7766 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7767 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7768 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7769 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7770 fi
7771fi
7772
7773# Enable TUI.
7774# Check whether --enable-tui or --disable-tui was given.
7775if test "${enable_tui+set}" = set; then
7776 enableval="$enable_tui"
7777 case $enableval in
7778 yes | no | auto)
7779 ;;
7780 *)
7781 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7782echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7783 { (exit 1); exit 1; }; } ;;
7784 esac
7785else
7786 enable_tui=auto
7787fi;
7788
7789# Enable gdbtk.
7790# Check whether --enable-gdbtk or --disable-gdbtk was given.
7791if test "${enable_gdbtk+set}" = set; then
7792 enableval="$enable_gdbtk"
7793 case $enableval in
7794 yes | no)
7795 ;;
7796 *)
7797 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7798echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7799 { (exit 1); exit 1; }; } ;;
7800 esac
7801else
7802 if test -d $srcdir/gdbtk; then
7803 enable_gdbtk=yes
7804 else
7805 enable_gdbtk=no
7806 fi
7807fi;
7808# We unconditionally disable gdbtk tests on selected platforms.
7809case $host_os in
7810 go32* | windows*)
7811 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7812echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7813 enable_gdbtk=no ;;
7814esac
7815
7816# Libunwind support.
7817
7818# Check whether --with-libunwind or --without-libunwind was given.
7819if test "${with_libunwind+set}" = set; then
7820 withval="$with_libunwind"
7821 case "${withval}" in
7822 yes) enable_libunwind=yes ;;
7823 no) enable_libunwind=no ;;
7824 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7825echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7826 { (exit 1); exit 1; }; } ;;
7827esac
7828else
7829
7830
7831
7832for ac_header in libunwind.h libunwind-ia64.h
7833do
7834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835if eval "test \"\${$as_ac_Header+set}\" = set"; then
7836 echo "$as_me:$LINENO: checking for $ac_header" >&5
7837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7838if eval "test \"\${$as_ac_Header+set}\" = set"; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840fi
7841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7843else
7844 # Is the header compilable?
7845echo "$as_me:$LINENO: checking $ac_header usability" >&5
7846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853$ac_includes_default
7854#include <$ac_header>
7855_ACEOF
7856rm -f conftest.$ac_objext
7857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag"
7866 || test ! -s conftest.err'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest.$ac_objext'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_header_compiler=yes
7879else
7880 echo "$as_me: failed program was:" >&5
7881sed 's/^/| /' conftest.$ac_ext >&5
7882
7883ac_header_compiler=no
7884fi
7885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7887echo "${ECHO_T}$ac_header_compiler" >&6
7888
7889# Is the header present?
7890echo "$as_me:$LINENO: checking $ac_header presence" >&5
7891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7892cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898#include <$ac_header>
7899_ACEOF
7900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } >/dev/null; then
7908 if test -s conftest.err; then
7909 ac_cpp_err=$ac_c_preproc_warn_flag
7910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7911 else
7912 ac_cpp_err=
7913 fi
7914else
7915 ac_cpp_err=yes
7916fi
7917if test -z "$ac_cpp_err"; then
7918 ac_header_preproc=yes
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 ac_header_preproc=no
7924fi
7925rm -f conftest.err conftest.$ac_ext
7926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7927echo "${ECHO_T}$ac_header_preproc" >&6
7928
7929# So? What about this header?
7930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7931 yes:no: )
7932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7936 ac_header_preproc=yes
7937 ;;
7938 no:yes:* )
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7951 (
7952 cat <<\_ASBOX
7953## ------------------------------------------ ##
7954## Report this to the AC_PACKAGE_NAME lists. ##
7955## ------------------------------------------ ##
7956_ASBOX
7957 ) |
7958 sed "s/^/$as_me: WARNING: /" >&2
7959 ;;
7960esac
7961echo "$as_me:$LINENO: checking for $ac_header" >&5
7962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966 eval "$as_ac_Header=\$ac_header_preproc"
7967fi
7968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7970
7971fi
7972if test `eval echo '${'$as_ac_Header'}'` = yes; then
7973 cat >>confdefs.h <<_ACEOF
7974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975_ACEOF
7976
7977fi
7978
7979done
7980
7981 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7982 enable_libunwind=yes;
7983 fi
7984
7985fi;
7986
7987if test x"$enable_libunwind" = xyes; then
7988
7989
7990for ac_header in libunwind.h libunwind-ia64.h
7991do
7992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7993if eval "test \"\${$as_ac_Header+set}\" = set"; then
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998fi
7999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8001else
8002 # Is the header compilable?
8003echo "$as_me:$LINENO: checking $ac_header usability" >&5
8004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8005cat >conftest.$ac_ext <<_ACEOF
8006/* confdefs.h. */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h. */
8011$ac_includes_default
8012#include <$ac_header>
8013_ACEOF
8014rm -f conftest.$ac_objext
8015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_header_compiler=yes
8037else
8038 echo "$as_me: failed program was:" >&5
8039sed 's/^/| /' conftest.$ac_ext >&5
8040
8041ac_header_compiler=no
8042fi
8043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045echo "${ECHO_T}$ac_header_compiler" >&6
8046
8047# Is the header present?
8048echo "$as_me:$LINENO: checking $ac_header presence" >&5
8049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8050cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056#include <$ac_header>
8057_ACEOF
8058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } >/dev/null; then
8066 if test -s conftest.err; then
8067 ac_cpp_err=$ac_c_preproc_warn_flag
8068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8069 else
8070 ac_cpp_err=
8071 fi
8072else
8073 ac_cpp_err=yes
8074fi
8075if test -z "$ac_cpp_err"; then
8076 ac_header_preproc=yes
8077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_header_preproc=no
8082fi
8083rm -f conftest.err conftest.$ac_ext
8084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8085echo "${ECHO_T}$ac_header_preproc" >&6
8086
8087# So? What about this header?
8088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8089 yes:no: )
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8094 ac_header_preproc=yes
8095 ;;
8096 no:yes:* )
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8109 (
8110 cat <<\_ASBOX
8111## ------------------------------------------ ##
8112## Report this to the AC_PACKAGE_NAME lists. ##
8113## ------------------------------------------ ##
8114_ASBOX
8115 ) |
8116 sed "s/^/$as_me: WARNING: /" >&2
8117 ;;
8118esac
8119echo "$as_me:$LINENO: checking for $ac_header" >&5
8120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8121if eval "test \"\${$as_ac_Header+set}\" = set"; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 eval "$as_ac_Header=\$ac_header_preproc"
8125fi
8126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8128
8129fi
8130if test `eval echo '${'$as_ac_Header'}'` = yes; then
8131 cat >>confdefs.h <<_ACEOF
8132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8133_ACEOF
8134
8135fi
8136
8137done
8138
8139
8140cat >>confdefs.h <<\_ACEOF
8141#define HAVE_LIBUNWIND 1
8142_ACEOF
8143
8144 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8145 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8146 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8147fi
8148
8149opt_curses=no
8150
8151# Check whether --with-curses or --without-curses was given.
8152if test "${with_curses+set}" = set; then
8153 withval="$with_curses"
8154 opt_curses=$withval
8155fi;
8156
8157prefer_curses=no
8158if test "$opt_curses" = "yes"; then
8159 prefer_curses=yes
8160fi
8161
8162# Profiling support.
8163# Check whether --enable-profiling or --disable-profiling was given.
8164if test "${enable_profiling+set}" = set; then
8165 enableval="$enable_profiling"
8166 case $enableval in
8167 yes | no)
8168 ;;
8169 *)
8170 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8171echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8172 { (exit 1); exit 1; }; } ;;
8173 esac
8174else
8175 enable_profiling=no
8176fi;
8177
8178
8179
8180for ac_func in monstartup _mcleanup
8181do
8182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8183echo "$as_me:$LINENO: checking for $ac_func" >&5
8184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8185if eval "test \"\${$as_ac_var+set}\" = set"; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188 cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8196#define $ac_func innocuous_$ac_func
8197
8198/* System header to define __stub macros and hopefully few prototypes,
8199 which can conflict with char $ac_func (); below.
8200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8201 <limits.h> exists even on freestanding compilers. */
8202
8203#ifdef __STDC__
8204# include <limits.h>
8205#else
8206# include <assert.h>
8207#endif
8208
8209#undef $ac_func
8210
8211/* Override any gcc2 internal prototype to avoid an error. */
8212#ifdef __cplusplus
8213extern "C"
8214{
8215#endif
8216/* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218char $ac_func ();
8219/* The GNU C library defines this for functions which it implements
8220 to always fail with ENOSYS. Some functions are actually named
8221 something starting with __ and the normal name is an alias. */
8222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8223choke me
8224#else
8225char (*f) () = $ac_func;
8226#endif
8227#ifdef __cplusplus
8228}
8229#endif
8230
8231int
8232main ()
8233{
8234return f != $ac_func;
8235 ;
8236 return 0;
8237}
8238_ACEOF
8239rm -f conftest.$ac_objext conftest$ac_exeext
8240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241 (eval $ac_link) 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag"
8249 || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 eval "$as_ac_var=yes"
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266eval "$as_ac_var=no"
8267fi
8268rm -f conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270fi
8271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8273if test `eval echo '${'$as_ac_var'}'` = yes; then
8274 cat >>confdefs.h <<_ACEOF
8275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8276_ACEOF
8277
8278fi
8279done
8280
8281echo "$as_me:$LINENO: checking for _etext" >&5
8282echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8283if test "${ac_cv_var__etext+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292#include <stdlib.h>
8293extern char _etext;
8294
8295int
8296main ()
8297{
8298free (&_etext);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_var__etext=yes
8326else
8327 echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
8330ac_cv_var__etext=no
8331fi
8332rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334fi
8335echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8336echo "${ECHO_T}$ac_cv_var__etext" >&6
8337if test $ac_cv_var__etext = yes; then
8338
8339cat >>confdefs.h <<\_ACEOF
8340#define HAVE__ETEXT 1
8341_ACEOF
8342
8343fi
8344echo "$as_me:$LINENO: checking for etext" >&5
8345echo $ECHO_N "checking for etext... $ECHO_C" >&6
8346if test "${ac_cv_var_etext+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
8355#include <stdlib.h>
8356extern char etext;
8357
8358int
8359main ()
8360{
8361free (&etext);
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext conftest$ac_exeext
8367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_var_etext=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393ac_cv_var_etext=no
8394fi
8395rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397fi
8398echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8399echo "${ECHO_T}$ac_cv_var_etext" >&6
8400if test $ac_cv_var_etext = yes; then
8401
8402cat >>confdefs.h <<\_ACEOF
8403#define HAVE_ETEXT 1
8404_ACEOF
8405
8406fi
8407if test "$enable_profiling" = yes ; then
8408 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8409 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8410echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8411 { (exit 1); exit 1; }; }
8412 fi
8413 PROFILE_CFLAGS=-pg
8414 OLD_CFLAGS="$CFLAGS"
8415 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8416
8417 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8418echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8419if test "${ac_cv_cc_supports_pg+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
8428
8429int
8430main ()
8431{
8432int x;
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext
8438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_cc_supports_pg=yes
8460else
8461 echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464ac_cv_cc_supports_pg=no
8465fi
8466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8467fi
8468echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8469echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8470
8471 if test $ac_cv_cc_supports_pg = no; then
8472 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8473echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8474 { (exit 1); exit 1; }; }
8475 fi
8476
8477 CFLAGS="$OLD_CFLAGS"
8478fi
8479
8480
8481
8482# Check whether --with-pkgversion or --without-pkgversion was given.
8483if test "${with_pkgversion+set}" = set; then
8484 withval="$with_pkgversion"
8485 case "$withval" in
8486 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8487echo "$as_me: error: package version not specified" >&2;}
8488 { (exit 1); exit 1; }; } ;;
8489 no) PKGVERSION= ;;
8490 *) PKGVERSION="($withval) " ;;
8491 esac
8492else
8493 PKGVERSION="(GDB) "
8494
8495fi;
8496
8497
8498
8499
8500# Check whether --with-bugurl or --without-bugurl was given.
8501if test "${with_bugurl+set}" = set; then
8502 withval="$with_bugurl"
8503 case "$withval" in
8504 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8505echo "$as_me: error: bug URL not specified" >&2;}
8506 { (exit 1); exit 1; }; } ;;
8507 no) BUGURL=
8508 ;;
8509 *) BUGURL="$withval"
8510 ;;
8511 esac
8512else
8513 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8514
8515fi;
8516 case ${BUGURL} in
8517 "")
8518 REPORT_BUGS_TO=
8519 REPORT_BUGS_TEXI=
8520 ;;
8521 *)
8522 REPORT_BUGS_TO="<$BUGURL>"
8523 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8524 ;;
8525 esac;
8526
8527
8528
8529
8530cat >>confdefs.h <<_ACEOF
8531#define PKGVERSION "$PKGVERSION"
8532_ACEOF
8533
8534
8535cat >>confdefs.h <<_ACEOF
8536#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8537_ACEOF
8538
8539
8540# --------------------- #
8541# Checks for programs. #
8542# --------------------- #
8543
8544for ac_prog in gawk mawk nawk awk
8545do
8546 # Extract the first word of "$ac_prog", so it can be a program name with args.
8547set dummy $ac_prog; ac_word=$2
8548echo "$as_me:$LINENO: checking for $ac_word" >&5
8549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8550if test "${ac_cv_prog_AWK+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 if test -n "$AWK"; then
8554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_AWK="$ac_prog"
8564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567done
8568done
8569
8570fi
8571fi
8572AWK=$ac_cv_prog_AWK
8573if test -n "$AWK"; then
8574 echo "$as_me:$LINENO: result: $AWK" >&5
8575echo "${ECHO_T}$AWK" >&6
8576else
8577 echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6
8579fi
8580
8581 test -n "$AWK" && break
8582done
8583
8584# Find a good install program. We prefer a C program (faster),
8585# so one script is as good as another. But avoid the broken or
8586# incompatible versions:
8587# SysV /etc/install, /usr/sbin/install
8588# SunOS /usr/etc/install
8589# IRIX /sbin/install
8590# AIX /bin/install
8591# AmigaOS /C/install, which installs bootblocks on floppy discs
8592# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8593# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8594# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8595# OS/2's system install, which has a completely different semantic
8596# ./install, which can be erroneously created by make from ./install.sh.
8597# Reject install programs that cannot install multiple files.
8598echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8599echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8600if test -z "$INSTALL"; then
8601if test "${ac_cv_path_install+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 # Account for people who put trailing slashes in PATH elements.
8610case $as_dir/ in
8611 ./ | .// | /cC/* | \
8612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8613 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8614 /usr/ucb/* ) ;;
8615 *)
8616 # OSF1 and SCO ODT 3.0 have their own names for install.
8617 # Don't use installbsd from OSF since it installs stuff as root
8618 # by default.
8619 for ac_prog in ginstall scoinst install; do
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8622 if test $ac_prog = install &&
8623 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8624 # AIX install. It has an incompatible calling convention.
8625 :
8626 elif test $ac_prog = install &&
8627 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8628 # program-specific install script used by HP pwplus--don't use.
8629 :
8630 else
8631 rm -rf conftest.one conftest.two conftest.dir
8632 echo one > conftest.one
8633 echo two > conftest.two
8634 mkdir conftest.dir
8635 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8636 test -s conftest.one && test -s conftest.two &&
8637 test -s conftest.dir/conftest.one &&
8638 test -s conftest.dir/conftest.two
8639 then
8640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8641 break 3
8642 fi
8643 fi
8644 fi
8645 done
8646 done
8647 ;;
8648esac
8649done
8650
8651rm -rf conftest.one conftest.two conftest.dir
8652
8653fi
8654 if test "${ac_cv_path_install+set}" = set; then
8655 INSTALL=$ac_cv_path_install
8656 else
8657 # As a last resort, use the slow shell script. Don't cache a
8658 # value for INSTALL within a source directory, because that will
8659 # break other packages using the cache if that directory is
8660 # removed, or if the value is a relative name.
8661 INSTALL=$ac_install_sh
8662 fi
8663fi
8664echo "$as_me:$LINENO: result: $INSTALL" >&5
8665echo "${ECHO_T}$INSTALL" >&6
8666
8667# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8668# It thinks the first close brace ends the variable substitution.
8669test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8670
8671test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8672
8673test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8674
8675echo "$as_me:$LINENO: checking whether ln -s works" >&5
8676echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8677LN_S=$as_ln_s
8678if test "$LN_S" = "ln -s"; then
8679 echo "$as_me:$LINENO: result: yes" >&5
8680echo "${ECHO_T}yes" >&6
8681else
8682 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8683echo "${ECHO_T}no, using $LN_S" >&6
8684fi
8685
8686if test -n "$ac_tool_prefix"; then
8687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8688set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8689echo "$as_me:$LINENO: checking for $ac_word" >&5
8690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8691if test "${ac_cv_prog_RANLIB+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694 if test -n "$RANLIB"; then
8695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708done
8709done
8710
8711fi
8712fi
8713RANLIB=$ac_cv_prog_RANLIB
8714if test -n "$RANLIB"; then
8715 echo "$as_me:$LINENO: result: $RANLIB" >&5
8716echo "${ECHO_T}$RANLIB" >&6
8717else
8718 echo "$as_me:$LINENO: result: no" >&5
8719echo "${ECHO_T}no" >&6
8720fi
8721
8722fi
8723if test -z "$ac_cv_prog_RANLIB"; then
8724 ac_ct_RANLIB=$RANLIB
8725 # Extract the first word of "ranlib", so it can be a program name with args.
8726set dummy ranlib; ac_word=$2
8727echo "$as_me:$LINENO: checking for $ac_word" >&5
8728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8729if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732 if test -n "$ac_ct_RANLIB"; then
8733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8734else
8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_ac_ct_RANLIB="ranlib"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746done
8747done
8748
8749 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8750fi
8751fi
8752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8753if test -n "$ac_ct_RANLIB"; then
8754 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8755echo "${ECHO_T}$ac_ct_RANLIB" >&6
8756else
8757 echo "$as_me:$LINENO: result: no" >&5
8758echo "${ECHO_T}no" >&6
8759fi
8760
8761 RANLIB=$ac_ct_RANLIB
8762else
8763 RANLIB="$ac_cv_prog_RANLIB"
8764fi
8765
8766for ac_prog in 'bison -y' byacc
8767do
8768 # Extract the first word of "$ac_prog", so it can be a program name with args.
8769set dummy $ac_prog; ac_word=$2
8770echo "$as_me:$LINENO: checking for $ac_word" >&5
8771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8772if test "${ac_cv_prog_YACC+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774else
8775 if test -n "$YACC"; then
8776 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8777else
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_YACC="$ac_prog"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8788 fi
8789done
8790done
8791
8792fi
8793fi
8794YACC=$ac_cv_prog_YACC
8795if test -n "$YACC"; then
8796 echo "$as_me:$LINENO: result: $YACC" >&5
8797echo "${ECHO_T}$YACC" >&6
8798else
8799 echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
8801fi
8802
8803 test -n "$YACC" && break
8804done
8805test -n "$YACC" || YACC="yacc"
8806
8807
8808if test -n "$ac_tool_prefix"; then
8809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8810set dummy ${ac_tool_prefix}ar; ac_word=$2
8811echo "$as_me:$LINENO: checking for $ac_word" >&5
8812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813if test "${ac_cv_prog_AR+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815else
8816 if test -n "$AR"; then
8817 ac_cv_prog_AR="$AR" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_AR="${ac_tool_prefix}ar"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831done
8832
8833fi
8834fi
8835AR=$ac_cv_prog_AR
8836if test -n "$AR"; then
8837 echo "$as_me:$LINENO: result: $AR" >&5
8838echo "${ECHO_T}$AR" >&6
8839else
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
8842fi
8843
8844fi
8845if test -z "$ac_cv_prog_AR"; then
8846 ac_ct_AR=$AR
8847 # Extract the first word of "ar", so it can be a program name with args.
8848set dummy ar; ac_word=$2
8849echo "$as_me:$LINENO: checking for $ac_word" >&5
8850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 if test -n "$ac_ct_AR"; then
8855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8856else
8857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858for as_dir in $PATH
8859do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_ac_ct_AR="ar"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868done
8869done
8870
8871fi
8872fi
8873ac_ct_AR=$ac_cv_prog_ac_ct_AR
8874if test -n "$ac_ct_AR"; then
8875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8876echo "${ECHO_T}$ac_ct_AR" >&6
8877else
8878 echo "$as_me:$LINENO: result: no" >&5
8879echo "${ECHO_T}no" >&6
8880fi
8881
8882 AR=$ac_ct_AR
8883else
8884 AR="$ac_cv_prog_AR"
8885fi
8886
8887if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8889set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8890echo "$as_me:$LINENO: checking for $ac_word" >&5
8891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894else
8895 if test -n "$DLLTOOL"; then
8896 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8897else
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909done
8910done
8911
8912fi
8913fi
8914DLLTOOL=$ac_cv_prog_DLLTOOL
8915if test -n "$DLLTOOL"; then
8916 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8917echo "${ECHO_T}$DLLTOOL" >&6
8918else
8919 echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
8921fi
8922
8923fi
8924if test -z "$ac_cv_prog_DLLTOOL"; then
8925 ac_ct_DLLTOOL=$DLLTOOL
8926 # Extract the first word of "dlltool", so it can be a program name with args.
8927set dummy dlltool; ac_word=$2
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 if test -n "$ac_ct_DLLTOOL"; then
8934 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948done
8949
8950fi
8951fi
8952ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8953if test -n "$ac_ct_DLLTOOL"; then
8954 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8955echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8956else
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
8959fi
8960
8961 DLLTOOL=$ac_ct_DLLTOOL
8962else
8963 DLLTOOL="$ac_cv_prog_DLLTOOL"
8964fi
8965
8966if test -n "$ac_tool_prefix"; then
8967 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8968set dummy ${ac_tool_prefix}windres; ac_word=$2
8969echo "$as_me:$LINENO: checking for $ac_word" >&5
8970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971if test "${ac_cv_prog_WINDRES+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973else
8974 if test -n "$WINDRES"; then
8975 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988done
8989done
8990
8991fi
8992fi
8993WINDRES=$ac_cv_prog_WINDRES
8994if test -n "$WINDRES"; then
8995 echo "$as_me:$LINENO: result: $WINDRES" >&5
8996echo "${ECHO_T}$WINDRES" >&6
8997else
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
9000fi
9001
9002fi
9003if test -z "$ac_cv_prog_WINDRES"; then
9004 ac_ct_WINDRES=$WINDRES
9005 # Extract the first word of "windres", so it can be a program name with args.
9006set dummy windres; ac_word=$2
9007echo "$as_me:$LINENO: checking for $ac_word" >&5
9008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 if test -n "$ac_ct_WINDRES"; then
9013 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_ac_ct_WINDRES="windres"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026done
9027done
9028
9029fi
9030fi
9031ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9032if test -n "$ac_ct_WINDRES"; then
9033 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9034echo "${ECHO_T}$ac_ct_WINDRES" >&6
9035else
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038fi
9039
9040 WINDRES=$ac_ct_WINDRES
9041else
9042 WINDRES="$ac_cv_prog_WINDRES"
9043fi
9044
9045
9046# Needed for GNU/Hurd.
9047if test -n "$ac_tool_prefix"; then
9048 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9049set dummy ${ac_tool_prefix}mig; ac_word=$2
9050echo "$as_me:$LINENO: checking for $ac_word" >&5
9051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9052if test "${ac_cv_prog_MIG+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 if test -n "$MIG"; then
9056 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9057else
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069done
9070done
9071
9072fi
9073fi
9074MIG=$ac_cv_prog_MIG
9075if test -n "$MIG"; then
9076 echo "$as_me:$LINENO: result: $MIG" >&5
9077echo "${ECHO_T}$MIG" >&6
9078else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081fi
9082
9083fi
9084if test -z "$ac_cv_prog_MIG"; then
9085 ac_ct_MIG=$MIG
9086 # Extract the first word of "mig", so it can be a program name with args.
9087set dummy mig; ac_word=$2
9088echo "$as_me:$LINENO: checking for $ac_word" >&5
9089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9090if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 if test -n "$ac_ct_MIG"; then
9094 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_ac_ct_MIG="mig"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107done
9108done
9109
9110fi
9111fi
9112ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9113if test -n "$ac_ct_MIG"; then
9114 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9115echo "${ECHO_T}$ac_ct_MIG" >&6
9116else
9117 echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
9119fi
9120
9121 MIG=$ac_ct_MIG
9122else
9123 MIG="$ac_cv_prog_MIG"
9124fi
9125
9126
9127# ---------------------- #
9128# Checks for libraries. #
9129# ---------------------- #
9130
9131# We might need to link with -lm; most simulators need it.
9132
9133echo "$as_me:$LINENO: checking for main in -lm" >&5
9134echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9135if test "${ac_cv_lib_m_main+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 ac_check_lib_save_LIBS=$LIBS
9139LIBS="-lm $LIBS"
9140cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146
9147
9148int
9149main ()
9150{
9151main ();
9152 ;
9153 return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
9157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_m_main=yes
9179else
9180 echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183ac_cv_lib_m_main=no
9184fi
9185rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187LIBS=$ac_check_lib_save_LIBS
9188fi
9189echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9190echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9191if test $ac_cv_lib_m_main = yes; then
9192 cat >>confdefs.h <<_ACEOF
9193#define HAVE_LIBM 1
9194_ACEOF
9195
9196 LIBS="-lm $LIBS"
9197
9198fi
9199
9200
9201# We need to link with -lw to get `wctype' on Solaris before Solaris
9202# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9203# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9204# is known to have this problem). Therefore we avoid libw if we can.
9205echo "$as_me:$LINENO: checking for wctype" >&5
9206echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9207if test "${ac_cv_func_wctype+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210 cat >conftest.$ac_ext <<_ACEOF
9211/* confdefs.h. */
9212_ACEOF
9213cat confdefs.h >>conftest.$ac_ext
9214cat >>conftest.$ac_ext <<_ACEOF
9215/* end confdefs.h. */
9216/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9218#define wctype innocuous_wctype
9219
9220/* System header to define __stub macros and hopefully few prototypes,
9221 which can conflict with char wctype (); below.
9222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223 <limits.h> exists even on freestanding compilers. */
9224
9225#ifdef __STDC__
9226# include <limits.h>
9227#else
9228# include <assert.h>
9229#endif
9230
9231#undef wctype
9232
9233/* Override any gcc2 internal prototype to avoid an error. */
9234#ifdef __cplusplus
9235extern "C"
9236{
9237#endif
9238/* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9240char wctype ();
9241/* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244#if defined (__stub_wctype) || defined (__stub___wctype)
9245choke me
9246#else
9247char (*f) () = wctype;
9248#endif
9249#ifdef __cplusplus
9250}
9251#endif
9252
9253int
9254main ()
9255{
9256return f != wctype;
9257 ;
9258 return 0;
9259}
9260_ACEOF
9261rm -f conftest.$ac_objext conftest$ac_exeext
9262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_func_wctype=yes
9284else
9285 echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288ac_cv_func_wctype=no
9289fi
9290rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292fi
9293echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9294echo "${ECHO_T}$ac_cv_func_wctype" >&6
9295if test $ac_cv_func_wctype = yes; then
9296 :
9297else
9298
9299echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9300echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9301if test "${ac_cv_lib_w_wctype+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303else
9304 ac_check_lib_save_LIBS=$LIBS
9305LIBS="-lw $LIBS"
9306cat >conftest.$ac_ext <<_ACEOF
9307/* confdefs.h. */
9308_ACEOF
9309cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h. */
9312
9313/* Override any gcc2 internal prototype to avoid an error. */
9314#ifdef __cplusplus
9315extern "C"
9316#endif
9317/* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319char wctype ();
9320int
9321main ()
9322{
9323wctype ();
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext conftest$ac_exeext
9329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_lib_w_wctype=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
9355ac_cv_lib_w_wctype=no
9356fi
9357rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359LIBS=$ac_check_lib_save_LIBS
9360fi
9361echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9362echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9363if test $ac_cv_lib_w_wctype = yes; then
9364 cat >>confdefs.h <<_ACEOF
9365#define HAVE_LIBW 1
9366_ACEOF
9367
9368 LIBS="-lw $LIBS"
9369
9370fi
9371
9372fi
9373
9374
9375# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9376echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9377echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9378if test "${ac_cv_search_gethostbyname+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 ac_func_search_save_LIBS=$LIBS
9382ac_cv_search_gethostbyname=no
9383cat >conftest.$ac_ext <<_ACEOF
9384/* confdefs.h. */
9385_ACEOF
9386cat confdefs.h >>conftest.$ac_ext
9387cat >>conftest.$ac_ext <<_ACEOF
9388/* end confdefs.h. */
9389
9390/* Override any gcc2 internal prototype to avoid an error. */
9391#ifdef __cplusplus
9392extern "C"
9393#endif
9394/* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396char gethostbyname ();
9397int
9398main ()
9399{
9400gethostbyname ();
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_search_gethostbyname="none required"
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432fi
9433rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435if test "$ac_cv_search_gethostbyname" = no; then
9436 for ac_lib in nsl; do
9437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9438 cat >conftest.$ac_ext <<_ACEOF
9439/* confdefs.h. */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h. */
9444
9445/* Override any gcc2 internal prototype to avoid an error. */
9446#ifdef __cplusplus
9447extern "C"
9448#endif
9449/* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451char gethostbyname ();
9452int
9453main ()
9454{
9455gethostbyname ();
9456 ;
9457 return 0;
9458}
9459_ACEOF
9460rm -f conftest.$ac_objext conftest$ac_exeext
9461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_search_gethostbyname="-l$ac_lib"
9483break
9484else
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488fi
9489rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 done
9492fi
9493LIBS=$ac_func_search_save_LIBS
9494fi
9495echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9496echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9497if test "$ac_cv_search_gethostbyname" != no; then
9498 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9499
9500fi
9501
9502
9503# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9504echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9505echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9506if test "${ac_cv_search_socketpair+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 ac_func_search_save_LIBS=$LIBS
9510ac_cv_search_socketpair=no
9511cat >conftest.$ac_ext <<_ACEOF
9512/* confdefs.h. */
9513_ACEOF
9514cat confdefs.h >>conftest.$ac_ext
9515cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */
9517
9518/* Override any gcc2 internal prototype to avoid an error. */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522/* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9524char socketpair ();
9525int
9526main ()
9527{
9528socketpair ();
9529 ;
9530 return 0;
9531}
9532_ACEOF
9533rm -f conftest.$ac_objext conftest$ac_exeext
9534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_search_socketpair="none required"
9556else
9557 echo "$as_me: failed program was:" >&5
9558sed 's/^/| /' conftest.$ac_ext >&5
9559
9560fi
9561rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563if test "$ac_cv_search_socketpair" = no; then
9564 for ac_lib in socket; do
9565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9566 cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h. */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h. */
9572
9573/* Override any gcc2 internal prototype to avoid an error. */
9574#ifdef __cplusplus
9575extern "C"
9576#endif
9577/* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579char socketpair ();
9580int
9581main ()
9582{
9583socketpair ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588rm -f conftest.$ac_objext conftest$ac_exeext
9589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_search_socketpair="-l$ac_lib"
9611break
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
9616fi
9617rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 done
9620fi
9621LIBS=$ac_func_search_save_LIBS
9622fi
9623echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9624echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9625if test "$ac_cv_search_socketpair" != no; then
9626 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9627
9628fi
9629
9630
9631# Link in zlib if we can. This allows us to read compressed debug sections.
9632echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9633echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9634if test "${ac_cv_search_zlibVersion+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 ac_func_search_save_LIBS=$LIBS
9638ac_cv_search_zlibVersion=no
9639cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645
9646/* Override any gcc2 internal prototype to avoid an error. */
9647#ifdef __cplusplus
9648extern "C"
9649#endif
9650/* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652char zlibVersion ();
9653int
9654main ()
9655{
9656zlibVersion ();
9657 ;
9658 return 0;
9659}
9660_ACEOF
9661rm -f conftest.$ac_objext conftest$ac_exeext
9662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_search_zlibVersion="none required"
9684else
9685 echo "$as_me: failed program was:" >&5
9686sed 's/^/| /' conftest.$ac_ext >&5
9687
9688fi
9689rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691if test "$ac_cv_search_zlibVersion" = no; then
9692 for ac_lib in z; do
9693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
9700
9701/* Override any gcc2 internal prototype to avoid an error. */
9702#ifdef __cplusplus
9703extern "C"
9704#endif
9705/* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9707char zlibVersion ();
9708int
9709main ()
9710{
9711zlibVersion ();
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag"
9726 || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_search_zlibVersion="-l$ac_lib"
9739break
9740else
9741 echo "$as_me: failed program was:" >&5
9742sed 's/^/| /' conftest.$ac_ext >&5
9743
9744fi
9745rm -f conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 done
9748fi
9749LIBS=$ac_func_search_save_LIBS
9750fi
9751echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9752echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9753if test "$ac_cv_search_zlibVersion" != no; then
9754 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9755
9756for ac_header in zlib.h
9757do
9758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9759if eval "test \"\${$as_ac_Header+set}\" = set"; then
9760 echo "$as_me:$LINENO: checking for $ac_header" >&5
9761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9762if eval "test \"\${$as_ac_Header+set}\" = set"; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764fi
9765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9767else
9768 # Is the header compilable?
9769echo "$as_me:$LINENO: checking $ac_header usability" >&5
9770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9771cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
9777$ac_includes_default
9778#include <$ac_header>
9779_ACEOF
9780rm -f conftest.$ac_objext
9781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782 (eval $ac_compile) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag"
9790 || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest.$ac_objext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_header_compiler=yes
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807ac_header_compiler=no
9808fi
9809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9811echo "${ECHO_T}$ac_header_compiler" >&6
9812
9813# Is the header present?
9814echo "$as_me:$LINENO: checking $ac_header presence" >&5
9815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h. */
9822#include <$ac_header>
9823_ACEOF
9824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } >/dev/null; then
9832 if test -s conftest.err; then
9833 ac_cpp_err=$ac_c_preproc_warn_flag
9834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9835 else
9836 ac_cpp_err=
9837 fi
9838else
9839 ac_cpp_err=yes
9840fi
9841if test -z "$ac_cpp_err"; then
9842 ac_header_preproc=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_preproc=no
9848fi
9849rm -f conftest.err conftest.$ac_ext
9850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9851echo "${ECHO_T}$ac_header_preproc" >&6
9852
9853# So? What about this header?
9854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9855 yes:no: )
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9860 ac_header_preproc=yes
9861 ;;
9862 no:yes:* )
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9875 (
9876 cat <<\_ASBOX
9877## ------------------------------------------ ##
9878## Report this to the AC_PACKAGE_NAME lists. ##
9879## ------------------------------------------ ##
9880_ASBOX
9881 ) |
9882 sed "s/^/$as_me: WARNING: /" >&2
9883 ;;
9884esac
9885echo "$as_me:$LINENO: checking for $ac_header" >&5
9886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9887if eval "test \"\${$as_ac_Header+set}\" = set"; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889else
9890 eval "$as_ac_Header=\$ac_header_preproc"
9891fi
9892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9894
9895fi
9896if test `eval echo '${'$as_ac_Header'}'` = yes; then
9897 cat >>confdefs.h <<_ACEOF
9898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9899_ACEOF
9900
9901fi
9902
9903done
9904
9905fi
9906
9907
9908# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9909echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9910echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9911if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 ac_func_search_save_LIBS=$LIBS
9915ac_cv_search_dlgetmodinfo=no
9916cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922
9923/* Override any gcc2 internal prototype to avoid an error. */
9924#ifdef __cplusplus
9925extern "C"
9926#endif
9927/* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9929char dlgetmodinfo ();
9930int
9931main ()
9932{
9933dlgetmodinfo ();
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_search_dlgetmodinfo="none required"
9961else
9962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965fi
9966rm -f conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968if test "$ac_cv_search_dlgetmodinfo" = no; then
9969 for ac_lib in dl xpdl; do
9970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977
9978/* Override any gcc2 internal prototype to avoid an error. */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982/* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984char dlgetmodinfo ();
9985int
9986main ()
9987{
9988dlgetmodinfo ();
9989 ;
9990 return 0;
9991}
9992_ACEOF
9993rm -f conftest.$ac_objext conftest$ac_exeext
9994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest$ac_exeext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10016break
10017else
10018 echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021fi
10022rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 done
10025fi
10026LIBS=$ac_func_search_save_LIBS
10027fi
10028echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10029echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10030if test "$ac_cv_search_dlgetmodinfo" != no; then
10031 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10032
10033fi
10034
10035
10036
10037
10038
10039# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10040if test "${with_libiconv_prefix+set}" = set; then
10041 withval="$with_libiconv_prefix"
10042
10043 for dir in `echo "$withval" | tr : ' '`; do
10044 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10045 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10046 done
10047
10048fi;
10049
10050 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10051 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10052
10053 echo "$as_me:$LINENO: checking for iconv" >&5
10054echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10055if test "${am_cv_func_iconv+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058
10059 am_cv_func_iconv="no, consider installing GNU libiconv"
10060 am_cv_lib_iconv=no
10061 am_cv_use_build_libiconv=no
10062 # First, try to find iconv in libc.
10063 cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069#include <stdlib.h>
10070#include <iconv.h>
10071int
10072main ()
10073{
10074iconv_t cd = iconv_open("","");
10075 iconv(cd,NULL,NULL,NULL,NULL);
10076 iconv_close(cd);
10077 ;
10078 return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 am_cv_func_iconv=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108fi
10109rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111
10112 # If iconv was not in libc, try -liconv. In this case, arrange to
10113 # look in the libiconv prefix, if it was specified by the user.
10114 if test "$am_cv_func_iconv" != yes; then
10115 am_save_CPPFLAGS="$CPPFLAGS"
10116 am_save_LIBS="$LIBS"
10117 if test -n "$LIBICONV_INCLUDE"; then
10118 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10119 LIBS="$LIBS $LIBICONV_LIBDIR"
10120 fi
10121 LIBS="$LIBS -liconv"
10122 cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h. */
10128#include <stdlib.h>
10129#include <iconv.h>
10130int
10131main ()
10132{
10133iconv_t cd = iconv_open("","");
10134 iconv(cd,NULL,NULL,NULL,NULL);
10135 iconv_close(cd);
10136 ;
10137 return 0;
10138}
10139_ACEOF
10140rm -f conftest.$ac_objext conftest$ac_exeext
10141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 am_cv_lib_iconv=yes
10163 am_cv_func_iconv=yes
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168fi
10169rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$am_save_LIBS"
10172 CPPFLAGS="$am_save_CPPFLAGS"
10173 fi
10174
10175 # If that didn't work, try to find libiconv in the build tree.
10176 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10177 am_save_LIBS="$LIBS"
10178 am_save_CPPFLAGS="$CPPFLAGS"
10179 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10180 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10181 cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187#include <stdlib.h>
10188#include <iconv.h>
10189int
10190main ()
10191{
10192iconv_t cd = iconv_open("","");
10193 iconv(cd,NULL,NULL,NULL,NULL);
10194 iconv_close(cd);
10195 ;
10196 return 0;
10197}
10198_ACEOF
10199rm -f conftest.$ac_objext conftest$ac_exeext
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 am_cv_use_build_libiconv=yes
10222 am_cv_lib_iconv=yes
10223 am_cv_func_iconv=yes
10224else
10225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228fi
10229rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS="$am_save_LIBS"
10232 CPPFLAGS="$am_save_CPPFLAGS"
10233 fi
10234
10235fi
10236echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10237echo "${ECHO_T}$am_cv_func_iconv" >&6
10238
10239 # Set the various flags based on the cache variables. We can't rely
10240 # on the flags to remain set from the above code, due to caching.
10241 LIBICONV=
10242 if test "$am_cv_lib_iconv" = yes; then
10243 LIBICONV="-liconv"
10244 else
10245 LIBICONV_LIBDIR=
10246 LIBICONV_INCLUDE=
10247 fi
10248 if test "$am_cv_use_build_libiconv" = yes; then
10249 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10250 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10251 fi
10252 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10253 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10254
10255 if test "$am_cv_func_iconv" = yes; then
10256
10257cat >>confdefs.h <<\_ACEOF
10258#define HAVE_ICONV 1
10259_ACEOF
10260
10261 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10262echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10263 if test "${am_cv_proto_iconv+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266
10267 cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h. */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h. */
10273
10274#include <stdlib.h>
10275#include <iconv.h>
10276extern
10277#ifdef __cplusplus
10278"C"
10279#endif
10280#if defined(__STDC__) || defined(__cplusplus)
10281size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10282#else
10283size_t iconv();
10284#endif
10285
10286int
10287main ()
10288{
10289
10290 ;
10291 return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext
10295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 am_cv_proto_iconv_arg1=""
10317else
10318 echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
10320
10321am_cv_proto_iconv_arg1="const"
10322fi
10323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 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);"
10325fi
10326
10327 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10328 echo "$as_me:$LINENO: result: ${ac_t:-
10329 }$am_cv_proto_iconv" >&5
10330echo "${ECHO_T}${ac_t:-
10331 }$am_cv_proto_iconv" >&6
10332
10333cat >>confdefs.h <<_ACEOF
10334#define ICONV_CONST $am_cv_proto_iconv_arg1
10335_ACEOF
10336
10337 fi
10338
10339
10340# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10341# There is a very specific comment in /usr/include/curses.h explaining that
10342# termcap routines built into libcurses must not be used.
10343#
10344# The symptoms we observed so far is GDB unexpectedly changing
10345# the terminal settings when tgetent is called - this is particularly
10346# visible as the output is missing carriage returns, and so rapidly
10347# becomes very hard to read.
10348#
10349# The readline configure script has already decided that libtermcap
10350# was enough for its purposes, and so decided to build readline using
10351# libtermcap. Since the TUI mode requires curses, building GDB with
10352# TUI enabled results in both libraries to be used at the same time,
10353# which is not allowed. This basically means that GDB with TUI is
10354# broken on alpha-osf.
10355
10356case $host_os in
10357 alpha*-*-osf* )
10358 if "$enable_tui" = "yes"; then
10359 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10360echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10361 { (exit 1); exit 1; }; }
10362 fi
10363 if "$enable_tui" = "auto"; then
10364 enable_tui=no
10365 fi
10366 ;;
10367esac
10368
10369# For the TUI, we need enhanced curses functionality.
10370if test x"$enable_tui" != xno; then
10371 prefer_curses=yes
10372fi
10373
10374curses_found=no
10375if test x"$prefer_curses" = xyes; then
10376 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10377 # curses library because the latter might not provide all the
10378 # functionality we need. However, this leads to problems on systems
10379 # where the linker searches /usr/local/lib, but the compiler doesn't
10380 # search /usr/local/include, if ncurses is installed in /usr/local. A
10381 # default installation of ncurses on alpha*-dec-osf* will lead to such
10382 # a situation.
10383 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10384echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10385if test "${ac_cv_search_waddstr+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 ac_func_search_save_LIBS=$LIBS
10389ac_cv_search_waddstr=no
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
10396
10397/* Override any gcc2 internal prototype to avoid an error. */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401/* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403char waddstr ();
10404int
10405main ()
10406{
10407waddstr ();
10408 ;
10409 return 0;
10410}
10411_ACEOF
10412rm -f conftest.$ac_objext conftest$ac_exeext
10413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_search_waddstr="none required"
10435else
10436 echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
10439fi
10440rm -f conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442if test "$ac_cv_search_waddstr" = no; then
10443 for ac_lib in ncurses cursesX curses; do
10444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452/* Override any gcc2 internal prototype to avoid an error. */
10453#ifdef __cplusplus
10454extern "C"
10455#endif
10456/* We use char because int might match the return type of a gcc2
10457 builtin and then its argument prototype would still apply. */
10458char waddstr ();
10459int
10460main ()
10461{
10462waddstr ();
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469 (eval $ac_link) 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag"
10477 || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } &&
10483 { ac_try='test -s conftest$ac_exeext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_search_waddstr="-l$ac_lib"
10490break
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
10495fi
10496rm -f conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10498 done
10499fi
10500LIBS=$ac_func_search_save_LIBS
10501fi
10502echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10503echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10504if test "$ac_cv_search_waddstr" != no; then
10505 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10506
10507fi
10508
10509
10510 if test "$ac_cv_search_waddstr" != no; then
10511 curses_found=yes
10512 fi
10513fi
10514
10515# Check whether we should enable the TUI, but only do so if we really
10516# can.
10517if test x"$enable_tui" != xno; then
10518 if test -d $srcdir/tui; then
10519 if test "$curses_found" != no; then
10520 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10521 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10522 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10523 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10524 CONFIG_ALL="${CONFIG_ALL} all-tui"
10525 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10526 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10527 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10528 else
10529 if test x"$enable_tui" = xyes; then
10530 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10531echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10532 { (exit 1); exit 1; }; }
10533 else
10534 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10535echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10536 fi
10537 fi
10538 fi
10539fi
10540
10541# Since GDB uses Readline, we need termcap functionality. In many
10542# cases this will be provided by the curses library, but some systems
10543# have a seperate termcap library, or no curses library at all.
10544
10545case $host_os in
10546 cygwin*)
10547 if test -d $srcdir/libtermcap; then
10548 LIBS="../libtermcap/libtermcap.a $LIBS"
10549 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10550 fi ;;
10551 go32* | *djgpp*)
10552 ac_cv_search_tgetent="none required"
10553 ;;
10554 *mingw32*)
10555 ac_cv_search_tgetent="none required"
10556 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10557 ;;
10558esac
10559
10560# These are the libraries checked by Readline.
10561echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10562echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10563if test "${ac_cv_search_tgetent+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 ac_func_search_save_LIBS=$LIBS
10567ac_cv_search_tgetent=no
10568cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574
10575/* Override any gcc2 internal prototype to avoid an error. */
10576#ifdef __cplusplus
10577extern "C"
10578#endif
10579/* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10581char tgetent ();
10582int
10583main ()
10584{
10585tgetent ();
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590rm -f conftest.$ac_objext conftest$ac_exeext
10591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_search_tgetent="none required"
10613else
10614 echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617fi
10618rm -f conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620if test "$ac_cv_search_tgetent" = no; then
10621 for ac_lib in termcap tinfo curses ncurses; do
10622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10623 cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
10629
10630/* Override any gcc2 internal prototype to avoid an error. */
10631#ifdef __cplusplus
10632extern "C"
10633#endif
10634/* We use char because int might match the return type of a gcc2
10635 builtin and then its argument prototype would still apply. */
10636char tgetent ();
10637int
10638main ()
10639{
10640tgetent ();
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext conftest$ac_exeext
10646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_search_tgetent="-l$ac_lib"
10668break
10669else
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673fi
10674rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 done
10677fi
10678LIBS=$ac_func_search_save_LIBS
10679fi
10680echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10681echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10682if test "$ac_cv_search_tgetent" != no; then
10683 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10684
10685fi
10686
10687
10688if test "$ac_cv_search_tgetent" = no; then
10689 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10690echo "$as_me: error: no termcap library found" >&2;}
10691 { (exit 1); exit 1; }; }
10692fi
10693
10694
10695# Check whether --with-system-readline or --without-system-readline was given.
10696if test "${with_system_readline+set}" = set; then
10697 withval="$with_system_readline"
10698
10699fi;
10700
10701if test "$with_system_readline" = yes; then
10702 READLINE=-lreadline
10703 READLINE_DEPS=
10704 READLINE_CFLAGS=
10705else
10706 READLINE='$(READLINE_DIR)/libreadline.a'
10707 READLINE_DEPS='$(READLINE)'
10708 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10709fi
10710
10711
10712
10713
10714
10715# Check whether --with-expat or --without-expat was given.
10716if test "${with_expat+set}" = set; then
10717 withval="$with_expat"
10718
10719else
10720 with_expat=auto
10721fi;
10722echo "$as_me:$LINENO: checking whether to use expat" >&5
10723echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10724echo "$as_me:$LINENO: result: $with_expat" >&5
10725echo "${ECHO_T}$with_expat" >&6
10726
10727if test "${with_expat}" = no; then
10728 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10729echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10730 HAVE_LIBEXPAT=no
10731else
10732
10733 if test "X$prefix" = "XNONE"; then
10734 acl_final_prefix="$ac_default_prefix"
10735 else
10736 acl_final_prefix="$prefix"
10737 fi
10738 if test "X$exec_prefix" = "XNONE"; then
10739 acl_final_exec_prefix='${prefix}'
10740 else
10741 acl_final_exec_prefix="$exec_prefix"
10742 fi
10743 acl_save_prefix="$prefix"
10744 prefix="$acl_final_prefix"
10745 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10746 prefix="$acl_save_prefix"
10747
10748
10749# Check whether --with-gnu-ld or --without-gnu-ld was given.
10750if test "${with_gnu_ld+set}" = set; then
10751 withval="$with_gnu_ld"
10752 test "$withval" = no || with_gnu_ld=yes
10753else
10754 with_gnu_ld=no
10755fi;
10756# Prepare PATH_SEPARATOR.
10757# The user is always right.
10758if test "${PATH_SEPARATOR+set}" != set; then
10759 echo "#! /bin/sh" >conf$$.sh
10760 echo "exit 0" >>conf$$.sh
10761 chmod +x conf$$.sh
10762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10763 PATH_SEPARATOR=';'
10764 else
10765 PATH_SEPARATOR=:
10766 fi
10767 rm -f conf$$.sh
10768fi
10769ac_prog=ld
10770if test "$GCC" = yes; then
10771 # Check if gcc -print-prog-name=ld gives a path.
10772 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10773echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10774 case $host in
10775 *-*-mingw*)
10776 # gcc leaves a trailing carriage return which upsets mingw
10777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10778 *)
10779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10780 esac
10781 case $ac_prog in
10782 # Accept absolute paths.
10783 [\\/]* | [A-Za-z]:[\\/]*)
10784 re_direlt='/[^/][^/]*/\.\./'
10785 # Canonicalize the path of ld
10786 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10788 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10789 done
10790 test -z "$LD" && LD="$ac_prog"
10791 ;;
10792 "")
10793 # If it fails, then pretend we aren't using GCC.
10794 ac_prog=ld
10795 ;;
10796 *)
10797 # If it is relative, then search for the first ld in PATH.
10798 with_gnu_ld=unknown
10799 ;;
10800 esac
10801elif test "$with_gnu_ld" = yes; then
10802 echo "$as_me:$LINENO: checking for GNU ld" >&5
10803echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10804else
10805 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10806echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10807fi
10808if test "${acl_cv_path_LD+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 if test -z "$LD"; then
10812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10813 for ac_dir in $PATH; do
10814 test -z "$ac_dir" && ac_dir=.
10815 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10816 acl_cv_path_LD="$ac_dir/$ac_prog"
10817 # Check to see if the program is GNU ld. I'd rather use --version,
10818 # but apparently some GNU ld's only accept -v.
10819 # Break only if it was the GNU/non-GNU ld that we prefer.
10820 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10821 test "$with_gnu_ld" != no && break
10822 else
10823 test "$with_gnu_ld" != yes && break
10824 fi
10825 fi
10826 done
10827 IFS="$ac_save_ifs"
10828else
10829 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10830fi
10831fi
10832
10833LD="$acl_cv_path_LD"
10834if test -n "$LD"; then
10835 echo "$as_me:$LINENO: result: $LD" >&5
10836echo "${ECHO_T}$LD" >&6
10837else
10838 echo "$as_me:$LINENO: result: no" >&5
10839echo "${ECHO_T}no" >&6
10840fi
10841test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10842echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10843 { (exit 1); exit 1; }; }
10844echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10845echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10846if test "${acl_cv_prog_gnu_ld+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10850if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10851 acl_cv_prog_gnu_ld=yes
10852else
10853 acl_cv_prog_gnu_ld=no
10854fi
10855fi
10856echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10857echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10858with_gnu_ld=$acl_cv_prog_gnu_ld
10859
10860
10861
10862 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10863echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10864if test "${acl_cv_rpath+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867
10868 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10869 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10870 . ./conftest.sh
10871 rm -f ./conftest.sh
10872 acl_cv_rpath=done
10873
10874fi
10875echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10876echo "${ECHO_T}$acl_cv_rpath" >&6
10877 wl="$acl_cv_wl"
10878 libext="$acl_cv_libext"
10879 shlibext="$acl_cv_shlibext"
10880 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10881 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10882 hardcode_direct="$acl_cv_hardcode_direct"
10883 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10884 # Check whether --enable-rpath or --disable-rpath was given.
10885if test "${enable_rpath+set}" = set; then
10886 enableval="$enable_rpath"
10887 :
10888else
10889 enable_rpath=yes
10890fi;
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 use_additional=yes
10901
10902 acl_save_prefix="$prefix"
10903 prefix="$acl_final_prefix"
10904 acl_save_exec_prefix="$exec_prefix"
10905 exec_prefix="$acl_final_exec_prefix"
10906
10907 eval additional_includedir=\"$includedir\"
10908 eval additional_libdir=\"$libdir\"
10909
10910 exec_prefix="$acl_save_exec_prefix"
10911 prefix="$acl_save_prefix"
10912
10913
10914# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10915if test "${with_libexpat_prefix+set}" = set; then
10916 withval="$with_libexpat_prefix"
10917
10918 if test "X$withval" = "Xno"; then
10919 use_additional=no
10920 else
10921 if test "X$withval" = "X"; then
10922
10923 acl_save_prefix="$prefix"
10924 prefix="$acl_final_prefix"
10925 acl_save_exec_prefix="$exec_prefix"
10926 exec_prefix="$acl_final_exec_prefix"
10927
10928 eval additional_includedir=\"$includedir\"
10929 eval additional_libdir=\"$libdir\"
10930
10931 exec_prefix="$acl_save_exec_prefix"
10932 prefix="$acl_save_prefix"
10933
10934 else
10935 additional_includedir="$withval/include"
10936 additional_libdir="$withval/lib"
10937 fi
10938 fi
10939
10940fi;
10941 LIBEXPAT=
10942 LTLIBEXPAT=
10943 INCEXPAT=
10944 rpathdirs=
10945 ltrpathdirs=
10946 names_already_handled=
10947 names_next_round='expat '
10948 while test -n "$names_next_round"; do
10949 names_this_round="$names_next_round"
10950 names_next_round=
10951 for name in $names_this_round; do
10952 already_handled=
10953 for n in $names_already_handled; do
10954 if test "$n" = "$name"; then
10955 already_handled=yes
10956 break
10957 fi
10958 done
10959 if test -z "$already_handled"; then
10960 names_already_handled="$names_already_handled $name"
10961 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10962 eval value=\"\$HAVE_LIB$uppername\"
10963 if test -n "$value"; then
10964 if test "$value" = yes; then
10965 eval value=\"\$LIB$uppername\"
10966 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10967 eval value=\"\$LTLIB$uppername\"
10968 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10969 else
10970 :
10971 fi
10972 else
10973 found_dir=
10974 found_la=
10975 found_so=
10976 found_a=
10977 if test $use_additional = yes; then
10978 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10979 found_dir="$additional_libdir"
10980 found_so="$additional_libdir/lib$name.$shlibext"
10981 if test -f "$additional_libdir/lib$name.la"; then
10982 found_la="$additional_libdir/lib$name.la"
10983 fi
10984 else
10985 if test -f "$additional_libdir/lib$name.$libext"; then
10986 found_dir="$additional_libdir"
10987 found_a="$additional_libdir/lib$name.$libext"
10988 if test -f "$additional_libdir/lib$name.la"; then
10989 found_la="$additional_libdir/lib$name.la"
10990 fi
10991 fi
10992 fi
10993 fi
10994 if test "X$found_dir" = "X"; then
10995 for x in $LDFLAGS $LTLIBEXPAT; do
10996
10997 acl_save_prefix="$prefix"
10998 prefix="$acl_final_prefix"
10999 acl_save_exec_prefix="$exec_prefix"
11000 exec_prefix="$acl_final_exec_prefix"
11001 eval x=\"$x\"
11002 exec_prefix="$acl_save_exec_prefix"
11003 prefix="$acl_save_prefix"
11004
11005 case "$x" in
11006 -L*)
11007 dir=`echo "X$x" | sed -e 's/^X-L//'`
11008 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11009 found_dir="$dir"
11010 found_so="$dir/lib$name.$shlibext"
11011 if test -f "$dir/lib$name.la"; then
11012 found_la="$dir/lib$name.la"
11013 fi
11014 else
11015 if test -f "$dir/lib$name.$libext"; then
11016 found_dir="$dir"
11017 found_a="$dir/lib$name.$libext"
11018 if test -f "$dir/lib$name.la"; then
11019 found_la="$dir/lib$name.la"
11020 fi
11021 fi
11022 fi
11023 ;;
11024 esac
11025 if test "X$found_dir" != "X"; then
11026 break
11027 fi
11028 done
11029 fi
11030 if test "X$found_dir" != "X"; then
11031 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11032 if test "X$found_so" != "X"; then
11033 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11034 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11035 else
11036 haveit=
11037 for x in $ltrpathdirs; do
11038 if test "X$x" = "X$found_dir"; then
11039 haveit=yes
11040 break
11041 fi
11042 done
11043 if test -z "$haveit"; then
11044 ltrpathdirs="$ltrpathdirs $found_dir"
11045 fi
11046 if test "$hardcode_direct" = yes; then
11047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11048 else
11049 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11050 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11051 haveit=
11052 for x in $rpathdirs; do
11053 if test "X$x" = "X$found_dir"; then
11054 haveit=yes
11055 break
11056 fi
11057 done
11058 if test -z "$haveit"; then
11059 rpathdirs="$rpathdirs $found_dir"
11060 fi
11061 else
11062 haveit=
11063 for x in $LDFLAGS $LIBEXPAT; do
11064
11065 acl_save_prefix="$prefix"
11066 prefix="$acl_final_prefix"
11067 acl_save_exec_prefix="$exec_prefix"
11068 exec_prefix="$acl_final_exec_prefix"
11069 eval x=\"$x\"
11070 exec_prefix="$acl_save_exec_prefix"
11071 prefix="$acl_save_prefix"
11072
11073 if test "X$x" = "X-L$found_dir"; then
11074 haveit=yes
11075 break
11076 fi
11077 done
11078 if test -z "$haveit"; then
11079 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11080 fi
11081 if test "$hardcode_minus_L" != no; then
11082 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11083 else
11084 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11085 fi
11086 fi
11087 fi
11088 fi
11089 else
11090 if test "X$found_a" != "X"; then
11091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11092 else
11093 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11094 fi
11095 fi
11096 additional_includedir=
11097 case "$found_dir" in
11098 */lib | */lib/)
11099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11100 additional_includedir="$basedir/include"
11101 ;;
11102 esac
11103 if test "X$additional_includedir" != "X"; then
11104 if test "X$additional_includedir" != "X/usr/include"; then
11105 haveit=
11106 if test "X$additional_includedir" = "X/usr/local/include"; then
11107 if test -n "$GCC"; then
11108 case $host_os in
11109 linux*) haveit=yes;;
11110 esac
11111 fi
11112 fi
11113 if test -z "$haveit"; then
11114 for x in $CPPFLAGS $INCEXPAT; do
11115
11116 acl_save_prefix="$prefix"
11117 prefix="$acl_final_prefix"
11118 acl_save_exec_prefix="$exec_prefix"
11119 exec_prefix="$acl_final_exec_prefix"
11120 eval x=\"$x\"
11121 exec_prefix="$acl_save_exec_prefix"
11122 prefix="$acl_save_prefix"
11123
11124 if test "X$x" = "X-I$additional_includedir"; then
11125 haveit=yes
11126 break
11127 fi
11128 done
11129 if test -z "$haveit"; then
11130 if test -d "$additional_includedir"; then
11131 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11132 fi
11133 fi
11134 fi
11135 fi
11136 fi
11137 if test -n "$found_la"; then
11138 save_libdir="$libdir"
11139 case "$found_la" in
11140 */* | *\\*) . "$found_la" ;;
11141 *) . "./$found_la" ;;
11142 esac
11143 libdir="$save_libdir"
11144 for dep in $dependency_libs; do
11145 case "$dep" in
11146 -L*)
11147 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11148 if test "X$additional_libdir" != "X/usr/lib"; then
11149 haveit=
11150 if test "X$additional_libdir" = "X/usr/local/lib"; then
11151 if test -n "$GCC"; then
11152 case $host_os in
11153 linux*) haveit=yes;;
11154 esac
11155 fi
11156 fi
11157 if test -z "$haveit"; then
11158 haveit=
11159 for x in $LDFLAGS $LIBEXPAT; do
11160
11161 acl_save_prefix="$prefix"
11162 prefix="$acl_final_prefix"
11163 acl_save_exec_prefix="$exec_prefix"
11164 exec_prefix="$acl_final_exec_prefix"
11165 eval x=\"$x\"
11166 exec_prefix="$acl_save_exec_prefix"
11167 prefix="$acl_save_prefix"
11168
11169 if test "X$x" = "X-L$additional_libdir"; then
11170 haveit=yes
11171 break
11172 fi
11173 done
11174 if test -z "$haveit"; then
11175 if test -d "$additional_libdir"; then
11176 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11177 fi
11178 fi
11179 haveit=
11180 for x in $LDFLAGS $LTLIBEXPAT; do
11181
11182 acl_save_prefix="$prefix"
11183 prefix="$acl_final_prefix"
11184 acl_save_exec_prefix="$exec_prefix"
11185 exec_prefix="$acl_final_exec_prefix"
11186 eval x=\"$x\"
11187 exec_prefix="$acl_save_exec_prefix"
11188 prefix="$acl_save_prefix"
11189
11190 if test "X$x" = "X-L$additional_libdir"; then
11191 haveit=yes
11192 break
11193 fi
11194 done
11195 if test -z "$haveit"; then
11196 if test -d "$additional_libdir"; then
11197 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11198 fi
11199 fi
11200 fi
11201 fi
11202 ;;
11203 -R*)
11204 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11205 if test "$enable_rpath" != no; then
11206 haveit=
11207 for x in $rpathdirs; do
11208 if test "X$x" = "X$dir"; then
11209 haveit=yes
11210 break
11211 fi
11212 done
11213 if test -z "$haveit"; then
11214 rpathdirs="$rpathdirs $dir"
11215 fi
11216 haveit=
11217 for x in $ltrpathdirs; do
11218 if test "X$x" = "X$dir"; then
11219 haveit=yes
11220 break
11221 fi
11222 done
11223 if test -z "$haveit"; then
11224 ltrpathdirs="$ltrpathdirs $dir"
11225 fi
11226 fi
11227 ;;
11228 -l*)
11229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11230 ;;
11231 *.la)
11232 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11233 ;;
11234 *)
11235 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11236 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11237 ;;
11238 esac
11239 done
11240 fi
11241 else
11242 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11243 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11244 fi
11245 fi
11246 fi
11247 done
11248 done
11249 if test "X$rpathdirs" != "X"; then
11250 if test -n "$hardcode_libdir_separator"; then
11251 alldirs=
11252 for found_dir in $rpathdirs; do
11253 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11254 done
11255 acl_save_libdir="$libdir"
11256 libdir="$alldirs"
11257 eval flag=\"$hardcode_libdir_flag_spec\"
11258 libdir="$acl_save_libdir"
11259 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11260 else
11261 for found_dir in $rpathdirs; do
11262 acl_save_libdir="$libdir"
11263 libdir="$found_dir"
11264 eval flag=\"$hardcode_libdir_flag_spec\"
11265 libdir="$acl_save_libdir"
11266 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11267 done
11268 fi
11269 fi
11270 if test "X$ltrpathdirs" != "X"; then
11271 for found_dir in $ltrpathdirs; do
11272 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11273 done
11274 fi
11275
11276
11277 ac_save_CPPFLAGS="$CPPFLAGS"
11278
11279 for element in $INCEXPAT; do
11280 haveit=
11281 for x in $CPPFLAGS; do
11282
11283 acl_save_prefix="$prefix"
11284 prefix="$acl_final_prefix"
11285 acl_save_exec_prefix="$exec_prefix"
11286 exec_prefix="$acl_final_exec_prefix"
11287 eval x=\"$x\"
11288 exec_prefix="$acl_save_exec_prefix"
11289 prefix="$acl_save_prefix"
11290
11291 if test "X$x" = "X$element"; then
11292 haveit=yes
11293 break
11294 fi
11295 done
11296 if test -z "$haveit"; then
11297 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11298 fi
11299 done
11300
11301
11302 echo "$as_me:$LINENO: checking for libexpat" >&5
11303echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11304if test "${ac_cv_libexpat+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306else
11307
11308 ac_save_LIBS="$LIBS"
11309 LIBS="$LIBS $LIBEXPAT"
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316#include "expat.h"
11317int
11318main ()
11319{
11320XML_Parser p = XML_ParserCreate (0);
11321 ;
11322 return 0;
11323}
11324_ACEOF
11325rm -f conftest.$ac_objext conftest$ac_exeext
11326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327 (eval $ac_link) 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag"
11335 || test ! -s conftest.err'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_cv_libexpat=yes
11348else
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352ac_cv_libexpat=no
11353fi
11354rm -f conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356 LIBS="$ac_save_LIBS"
11357
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11360echo "${ECHO_T}$ac_cv_libexpat" >&6
11361 if test "$ac_cv_libexpat" = yes; then
11362 HAVE_LIBEXPAT=yes
11363
11364cat >>confdefs.h <<\_ACEOF
11365#define HAVE_LIBEXPAT 1
11366_ACEOF
11367
11368 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11369echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11370 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11371echo "${ECHO_T}$LIBEXPAT" >&6
11372 else
11373 HAVE_LIBEXPAT=no
11374 CPPFLAGS="$ac_save_CPPFLAGS"
11375 LIBEXPAT=
11376 LTLIBEXPAT=
11377 fi
11378
11379
11380
11381
11382
11383
11384 if test "$HAVE_LIBEXPAT" != yes; then
11385 if test "$with_expat" = yes; then
11386 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11387echo "$as_me: error: expat is missing or unusable" >&2;}
11388 { (exit 1); exit 1; }; }
11389 else
11390 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11391echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11392 fi
11393 else
11394 save_LIBS=$LIBS
11395 LIBS="$LIBS $LIBEXPAT"
11396
11397for ac_func in XML_StopParser
11398do
11399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400echo "$as_me:$LINENO: checking for $ac_func" >&5
11401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11402if eval "test \"\${$as_ac_var+set}\" = set"; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11413#define $ac_func innocuous_$ac_func
11414
11415/* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char $ac_func (); below.
11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418 <limits.h> exists even on freestanding compilers. */
11419
11420#ifdef __STDC__
11421# include <limits.h>
11422#else
11423# include <assert.h>
11424#endif
11425
11426#undef $ac_func
11427
11428/* Override any gcc2 internal prototype to avoid an error. */
11429#ifdef __cplusplus
11430extern "C"
11431{
11432#endif
11433/* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11435char $ac_func ();
11436/* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11440choke me
11441#else
11442char (*f) () = $ac_func;
11443#endif
11444#ifdef __cplusplus
11445}
11446#endif
11447
11448int
11449main ()
11450{
11451return f != $ac_func;
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456rm -f conftest.$ac_objext conftest$ac_exeext
11457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 eval "$as_ac_var=yes"
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483eval "$as_ac_var=no"
11484fi
11485rm -f conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487fi
11488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11490if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11493_ACEOF
11494
11495fi
11496done
11497
11498 LIBS=$save_LIBS
11499 fi
11500fi
11501
11502
11503
11504
11505# Check whether --with-python or --without-python was given.
11506if test "${with_python+set}" = set; then
11507 withval="$with_python"
11508
11509else
11510 with_python=auto
11511fi;
11512echo "$as_me:$LINENO: checking whether to use python" >&5
11513echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11514echo "$as_me:$LINENO: result: $with_python" >&5
11515echo "${ECHO_T}$with_python" >&6
11516
11517if test "${with_python}" = no; then
11518 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11519echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11520 have_libpython=no
11521else
11522 case "${with_python}" in
11523 yes | auto)
11524 # Leave as empty, use defaults.
11525 python_includes=
11526 python_libs=
11527 ;;
11528 /*)
11529 python_includes="-I${with_python}/include"
11530 python_libs="-L${with_python}/lib"
11531 ;;
11532 *)
11533 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11534echo "$as_me: error: invalid value for --with-python" >&2;}
11535 { (exit 1); exit 1; }; }
11536 ;;
11537 esac
11538
11539 save_CPPFLAGS=$CPPFLAGS
11540 CPPFLAGS="$CPPFLAGS ${python_includes}"
11541 save_LIBS=$LIBS
11542 LIBS="$LIBS ${python_libs}"
11543 have_libpython=no
11544 if test "${have_libpython}" = no; then
11545
11546 version=python2.6
11547
11548
11549 HAVE_LIBPYTHON2_6=no
11550 echo "$as_me:$LINENO: checking for ${version}" >&5
11551echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11552 save_LIBS=$LIBS
11553 LIBS="$LIBS -l${version}"
11554 cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560#include "${version}/Python.h"
11561int
11562main ()
11563{
11564Py_Initialize ();
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext conftest$ac_exeext
11570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag"
11579 || test ! -s conftest.err'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 HAVE_LIBPYTHON2_6=yes
11592 have_libpython=yes
11593else
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
11597LIBS=$save_LIBS
11598fi
11599rm -f conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11602echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11603
11604 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11605
11606cat >>confdefs.h <<\_ACEOF
11607#define HAVE_LIBPYTHON2_6 1
11608_ACEOF
11609
11610 fi
11611 fi
11612 if test ${have_libpython} = no; then
11613
11614 version=python2.5
11615
11616
11617 HAVE_LIBPYTHON2_5=no
11618 echo "$as_me:$LINENO: checking for ${version}" >&5
11619echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11620 save_LIBS=$LIBS
11621 LIBS="$LIBS -l${version}"
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628#include "${version}/Python.h"
11629int
11630main ()
11631{
11632Py_Initialize ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 HAVE_LIBPYTHON2_5=yes
11660 have_libpython=yes
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665LIBS=$save_LIBS
11666fi
11667rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11670echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11671
11672 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11673
11674cat >>confdefs.h <<\_ACEOF
11675#define HAVE_LIBPYTHON2_5 1
11676_ACEOF
11677
11678 fi
11679 fi
11680 if test ${have_libpython} = no; then
11681
11682 version=python2.4
11683
11684
11685 HAVE_LIBPYTHON2_4=no
11686 echo "$as_me:$LINENO: checking for ${version}" >&5
11687echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11688 save_LIBS=$LIBS
11689 LIBS="$LIBS -l${version}"
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696#include "${version}/Python.h"
11697int
11698main ()
11699{
11700Py_Initialize ();
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext conftest$ac_exeext
11706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 HAVE_LIBPYTHON2_4=yes
11728 have_libpython=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733LIBS=$save_LIBS
11734fi
11735rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11738echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11739
11740 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11741
11742cat >>confdefs.h <<\_ACEOF
11743#define HAVE_LIBPYTHON2_4 1
11744_ACEOF
11745
11746 fi
11747 fi
11748 if test ${have_libpython} = no; then
11749 case "${with_python}" in
11750 yes)
11751 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11752echo "$as_me: error: python is missing or unusable" >&2;}
11753 { (exit 1); exit 1; }; }
11754 ;;
11755 auto)
11756 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11757echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11758 ;;
11759 *)
11760 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11761echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11762 { (exit 1); exit 1; }; }
11763 ;;
11764 esac
11765 CPPFLAGS=$save_CPPFLAGS
11766 LIBS=$save_LIBS
11767 fi
11768fi
11769
11770if test "${have_libpython}" = yes; then
11771
11772cat >>confdefs.h <<\_ACEOF
11773#define HAVE_PYTHON 1
11774_ACEOF
11775
11776 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11777 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11778 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11779 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11780
11781 # Flags needed to compile Python code (taken from python-config --cflags).
11782 # We cannot call python-config directly because it will output whatever was
11783 # used when compiling the Python interpreter itself, including flags which
11784 # would make the python-related objects be compiled differently from the
11785 # rest of GDB (e.g., -O2 and -fPIC).
11786 if test "${GCC}" = yes; then
11787 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11788 fi
11789
11790 if test "x${tentative_python_cflags}" != x; then
11791 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11792echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11793 for flag in ${tentative_python_cflags}; do
11794 # Check that the compiler accepts it
11795 saved_CFLAGS="$CFLAGS"
11796 CFLAGS="$CFLAGS $flag"
11797 cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803
11804int
11805main ()
11806{
11807
11808 ;
11809 return 0;
11810}
11811_ACEOF
11812rm -f conftest.$ac_objext
11813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11835else
11836 echo "$as_me: failed program was:" >&5
11837sed 's/^/| /' conftest.$ac_ext >&5
11838
11839fi
11840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841 CFLAGS="$saved_CFLAGS"
11842 done
11843 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11844echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11845 fi
11846else
11847 # Even if Python support is not compiled in, we need to have these files
11848 # included in order to recognize the GDB command "python".
11849 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11850 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11851fi
11852
11853
11854# ------------------------- #
11855# Checks for header files. #
11856# ------------------------- #
11857
11858
11859
11860
11861
11862
11863ac_header_dirent=no
11864for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11866echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11867echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11868if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877#include <sys/types.h>
11878#include <$ac_hdr>
11879
11880int
11881main ()
11882{
11883if ((DIR *) 0)
11884return 0;
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889rm -f conftest.$ac_objext
11890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_Header=yes"
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916eval "$as_ac_Header=no"
11917fi
11918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11919fi
11920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11922if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11925_ACEOF
11926
11927ac_header_dirent=$ac_hdr; break
11928fi
11929
11930done
11931# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11932if test $ac_header_dirent = dirent.h; then
11933 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11934echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11935if test "${ac_cv_search_opendir+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 ac_func_search_save_LIBS=$LIBS
11939ac_cv_search_opendir=no
11940cat >conftest.$ac_ext <<_ACEOF
11941/* confdefs.h. */
11942_ACEOF
11943cat confdefs.h >>conftest.$ac_ext
11944cat >>conftest.$ac_ext <<_ACEOF
11945/* end confdefs.h. */
11946
11947/* Override any gcc2 internal prototype to avoid an error. */
11948#ifdef __cplusplus
11949extern "C"
11950#endif
11951/* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11953char opendir ();
11954int
11955main ()
11956{
11957opendir ();
11958 ;
11959 return 0;
11960}
11961_ACEOF
11962rm -f conftest.$ac_objext conftest$ac_exeext
11963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964 (eval $ac_link) 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_search_opendir="none required"
11985else
11986 echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
11989fi
11990rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992if test "$ac_cv_search_opendir" = no; then
11993 for ac_lib in dir; do
11994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001
12002/* Override any gcc2 internal prototype to avoid an error. */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006/* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12008char opendir ();
12009int
12010main ()
12011{
12012opendir ();
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext conftest$ac_exeext
12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_search_opendir="-l$ac_lib"
12040break
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045fi
12046rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 done
12049fi
12050LIBS=$ac_func_search_save_LIBS
12051fi
12052echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12053echo "${ECHO_T}$ac_cv_search_opendir" >&6
12054if test "$ac_cv_search_opendir" != no; then
12055 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12056
12057fi
12058
12059else
12060 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12061echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12062if test "${ac_cv_search_opendir+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065 ac_func_search_save_LIBS=$LIBS
12066ac_cv_search_opendir=no
12067cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073
12074/* Override any gcc2 internal prototype to avoid an error. */
12075#ifdef __cplusplus
12076extern "C"
12077#endif
12078/* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080char opendir ();
12081int
12082main ()
12083{
12084opendir ();
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_c_werror_flag"
12099 || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_search_opendir="none required"
12112else
12113 echo "$as_me: failed program was:" >&5
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
12116fi
12117rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119if test "$ac_cv_search_opendir" = no; then
12120 for ac_lib in x; do
12121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128
12129/* Override any gcc2 internal prototype to avoid an error. */
12130#ifdef __cplusplus
12131extern "C"
12132#endif
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char opendir ();
12136int
12137main ()
12138{
12139opendir ();
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext conftest$ac_exeext
12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_search_opendir="-l$ac_lib"
12167break
12168else
12169 echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172fi
12173rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 done
12176fi
12177LIBS=$ac_func_search_save_LIBS
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12180echo "${ECHO_T}$ac_cv_search_opendir" >&6
12181if test "$ac_cv_search_opendir" != no; then
12182 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12183
12184fi
12185
12186fi
12187
12188echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12189echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12190if test "${ac_cv_header_stat_broken+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199#include <sys/types.h>
12200#include <sys/stat.h>
12201
12202#if defined(S_ISBLK) && defined(S_IFDIR)
12203# if S_ISBLK (S_IFDIR)
12204You lose.
12205# endif
12206#endif
12207
12208#if defined(S_ISBLK) && defined(S_IFCHR)
12209# if S_ISBLK (S_IFCHR)
12210You lose.
12211# endif
12212#endif
12213
12214#if defined(S_ISLNK) && defined(S_IFREG)
12215# if S_ISLNK (S_IFREG)
12216You lose.
12217# endif
12218#endif
12219
12220#if defined(S_ISSOCK) && defined(S_IFREG)
12221# if S_ISSOCK (S_IFREG)
12222You lose.
12223# endif
12224#endif
12225
12226_ACEOF
12227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 $EGREP "You lose" >/dev/null 2>&1; then
12229 ac_cv_header_stat_broken=yes
12230else
12231 ac_cv_header_stat_broken=no
12232fi
12233rm -f conftest*
12234
12235fi
12236echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12237echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12238if test $ac_cv_header_stat_broken = yes; then
12239
12240cat >>confdefs.h <<\_ACEOF
12241#define STAT_MACROS_BROKEN 1
12242_ACEOF
12243
12244fi
12245
12246echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12248if test "${ac_cv_header_stdc+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
12257#include <stdlib.h>
12258#include <stdarg.h>
12259#include <string.h>
12260#include <float.h>
12261
12262int
12263main ()
12264{
12265
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext
12271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_header_stdc=yes
12293else
12294 echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297ac_cv_header_stdc=no
12298fi
12299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300
12301if test $ac_cv_header_stdc = yes; then
12302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12303 cat >conftest.$ac_ext <<_ACEOF
12304/* confdefs.h. */
12305_ACEOF
12306cat confdefs.h >>conftest.$ac_ext
12307cat >>conftest.$ac_ext <<_ACEOF
12308/* end confdefs.h. */
12309#include <string.h>
12310
12311_ACEOF
12312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12313 $EGREP "memchr" >/dev/null 2>&1; then
12314 :
12315else
12316 ac_cv_header_stdc=no
12317fi
12318rm -f conftest*
12319
12320fi
12321
12322if test $ac_cv_header_stdc = yes; then
12323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12324 cat >conftest.$ac_ext <<_ACEOF
12325/* confdefs.h. */
12326_ACEOF
12327cat confdefs.h >>conftest.$ac_ext
12328cat >>conftest.$ac_ext <<_ACEOF
12329/* end confdefs.h. */
12330#include <stdlib.h>
12331
12332_ACEOF
12333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12334 $EGREP "free" >/dev/null 2>&1; then
12335 :
12336else
12337 ac_cv_header_stdc=no
12338fi
12339rm -f conftest*
12340
12341fi
12342
12343if test $ac_cv_header_stdc = yes; then
12344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12345 if test "$cross_compiling" = yes; then
12346 :
12347else
12348 cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354#include <ctype.h>
12355#if ((' ' & 0x0FF) == 0x020)
12356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12358#else
12359# define ISLOWER(c) \
12360 (('a' <= (c) && (c) <= 'i') \
12361 || ('j' <= (c) && (c) <= 'r') \
12362 || ('s' <= (c) && (c) <= 'z'))
12363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12364#endif
12365
12366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12367int
12368main ()
12369{
12370 int i;
12371 for (i = 0; i < 256; i++)
12372 if (XOR (islower (i), ISLOWER (i))
12373 || toupper (i) != TOUPPER (i))
12374 exit(2);
12375 exit (0);
12376}
12377_ACEOF
12378rm -f conftest$ac_exeext
12379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 :
12390else
12391 echo "$as_me: program exited with status $ac_status" >&5
12392echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395( exit $ac_status )
12396ac_cv_header_stdc=no
12397fi
12398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12399fi
12400fi
12401fi
12402echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12403echo "${ECHO_T}$ac_cv_header_stdc" >&6
12404if test $ac_cv_header_stdc = yes; then
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define STDC_HEADERS 1
12408_ACEOF
12409
12410fi
12411
12412# elf_hp.h is for HP/UX 64-bit shared library support.
12413# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12414# unconditionally, so what's the point in checking these?
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12453 thread_db.h gnu/libc-version.h signal.h stddef.h \
12454 stdlib.h string.h memory.h strings.h sys/fault.h \
12455 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12456 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12457 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12458 sys/types.h sys/wait.h wait.h termios.h termio.h \
12459 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12460do
12461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12462if eval "test \"\${$as_ac_Header+set}\" = set"; then
12463 echo "$as_me:$LINENO: checking for $ac_header" >&5
12464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12465if eval "test \"\${$as_ac_Header+set}\" = set"; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467fi
12468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12470else
12471 # Is the header compilable?
12472echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480$ac_includes_default
12481#include <$ac_header>
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_header_compiler=yes
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510ac_header_compiler=no
12511fi
12512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514echo "${ECHO_T}$ac_header_compiler" >&6
12515
12516# Is the header present?
12517echo "$as_me:$LINENO: checking $ac_header presence" >&5
12518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525#include <$ac_header>
12526_ACEOF
12527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } >/dev/null; then
12535 if test -s conftest.err; then
12536 ac_cpp_err=$ac_c_preproc_warn_flag
12537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12538 else
12539 ac_cpp_err=
12540 fi
12541else
12542 ac_cpp_err=yes
12543fi
12544if test -z "$ac_cpp_err"; then
12545 ac_header_preproc=yes
12546else
12547 echo "$as_me: failed program was:" >&5
12548sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_header_preproc=no
12551fi
12552rm -f conftest.err conftest.$ac_ext
12553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554echo "${ECHO_T}$ac_header_preproc" >&6
12555
12556# So? What about this header?
12557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12558 yes:no: )
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12563 ac_header_preproc=yes
12564 ;;
12565 no:yes:* )
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12578 (
12579 cat <<\_ASBOX
12580## ------------------------------------------ ##
12581## Report this to the AC_PACKAGE_NAME lists. ##
12582## ------------------------------------------ ##
12583_ASBOX
12584 ) |
12585 sed "s/^/$as_me: WARNING: /" >&2
12586 ;;
12587esac
12588echo "$as_me:$LINENO: checking for $ac_header" >&5
12589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12590if eval "test \"\${$as_ac_Header+set}\" = set"; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593 eval "$as_ac_Header=\$ac_header_preproc"
12594fi
12595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12597
12598fi
12599if test `eval echo '${'$as_ac_Header'}'` = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12602_ACEOF
12603
12604fi
12605
12606done
12607
12608
12609for ac_header in link.h
12610do
12611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12612echo "$as_me:$LINENO: checking for $ac_header" >&5
12613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12614if eval "test \"\${$as_ac_Header+set}\" = set"; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623#if HAVE_SYS_TYPES_H
12624# include <sys/types.h>
12625#endif
12626#if HAVE_NLIST_H
12627# include <nlist.h>
12628#endif
12629
12630
12631#include <$ac_header>
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_Header=yes"
12656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660eval "$as_ac_Header=no"
12661fi
12662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12663fi
12664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12666if test `eval echo '${'$as_ac_Header'}'` = yes; then
12667 cat >>confdefs.h <<_ACEOF
12668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669_ACEOF
12670
12671fi
12672
12673done
12674
12675
12676for ac_header in sys/proc.h
12677do
12678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12679echo "$as_me:$LINENO: checking for $ac_header" >&5
12680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12681if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690#if HAVE_SYS_PARAM_H
12691# include <sys/param.h>
12692#endif
12693
12694
12695#include <$ac_header>
12696_ACEOF
12697rm -f conftest.$ac_objext
12698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 eval "$as_ac_Header=yes"
12720else
12721 echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724eval "$as_ac_Header=no"
12725fi
12726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12727fi
12728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12730if test `eval echo '${'$as_ac_Header'}'` = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12733_ACEOF
12734
12735fi
12736
12737done
12738
12739
12740for ac_header in sys/user.h
12741do
12742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12743echo "$as_me:$LINENO: checking for $ac_header" >&5
12744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12745if eval "test \"\${$as_ac_Header+set}\" = set"; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754#if HAVE_SYS_PARAM_H
12755# include <sys/param.h>
12756#endif
12757
12758
12759#include <$ac_header>
12760_ACEOF
12761rm -f conftest.$ac_objext
12762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 eval "$as_ac_Header=yes"
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788eval "$as_ac_Header=no"
12789fi
12790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12791fi
12792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12794if test `eval echo '${'$as_ac_Header'}'` = yes; then
12795 cat >>confdefs.h <<_ACEOF
12796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12797_ACEOF
12798
12799fi
12800
12801done
12802
12803
12804# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12805# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12806# think that we don't have <curses.h> if we're using GCC.
12807case $host_os in
12808 solaris2.[789])
12809 if test "$GCC" = yes; then
12810
12811cat >>confdefs.h <<\_ACEOF
12812#define _MSE_INT_H 1
12813_ACEOF
12814
12815 fi ;;
12816esac
12817
12818
12819
12820
12821
12822for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12823do
12824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12825if eval "test \"\${$as_ac_Header+set}\" = set"; then
12826 echo "$as_me:$LINENO: checking for $ac_header" >&5
12827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12828if eval "test \"\${$as_ac_Header+set}\" = set"; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830fi
12831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12833else
12834 # Is the header compilable?
12835echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12837cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
12843$ac_includes_default
12844#include <$ac_header>
12845_ACEOF
12846rm -f conftest.$ac_objext
12847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag"
12856 || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest.$ac_objext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_header_compiler=yes
12869else
12870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
12873ac_header_compiler=no
12874fi
12875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12877echo "${ECHO_T}$ac_header_compiler" >&6
12878
12879# Is the header present?
12880echo "$as_me:$LINENO: checking $ac_header presence" >&5
12881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12882cat >conftest.$ac_ext <<_ACEOF
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888#include <$ac_header>
12889_ACEOF
12890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null; then
12898 if test -s conftest.err; then
12899 ac_cpp_err=$ac_c_preproc_warn_flag
12900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12901 else
12902 ac_cpp_err=
12903 fi
12904else
12905 ac_cpp_err=yes
12906fi
12907if test -z "$ac_cpp_err"; then
12908 ac_header_preproc=yes
12909else
12910 echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
12913 ac_header_preproc=no
12914fi
12915rm -f conftest.err conftest.$ac_ext
12916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12917echo "${ECHO_T}$ac_header_preproc" >&6
12918
12919# So? What about this header?
12920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12921 yes:no: )
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12926 ac_header_preproc=yes
12927 ;;
12928 no:yes:* )
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12941 (
12942 cat <<\_ASBOX
12943## ------------------------------------------ ##
12944## Report this to the AC_PACKAGE_NAME lists. ##
12945## ------------------------------------------ ##
12946_ASBOX
12947 ) |
12948 sed "s/^/$as_me: WARNING: /" >&2
12949 ;;
12950esac
12951echo "$as_me:$LINENO: checking for $ac_header" >&5
12952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12953if eval "test \"\${$as_ac_Header+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955else
12956 eval "$as_ac_Header=\$ac_header_preproc"
12957fi
12958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12960
12961fi
12962if test `eval echo '${'$as_ac_Header'}'` = yes; then
12963 cat >>confdefs.h <<_ACEOF
12964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965_ACEOF
12966
12967fi
12968
12969done
12970
12971
12972for ac_header in term.h
12973do
12974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12975echo "$as_me:$LINENO: checking for $ac_header" >&5
12976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12977if eval "test \"\${$as_ac_Header+set}\" = set"; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 cat >conftest.$ac_ext <<_ACEOF
12981/* confdefs.h. */
12982_ACEOF
12983cat confdefs.h >>conftest.$ac_ext
12984cat >>conftest.$ac_ext <<_ACEOF
12985/* end confdefs.h. */
12986#if HAVE_CURSES_H
12987# include <curses.h>
12988#endif
12989
12990
12991#include <$ac_header>
12992_ACEOF
12993rm -f conftest.$ac_objext
12994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag"
13003 || test ! -s conftest.err'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 eval "$as_ac_Header=yes"
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020eval "$as_ac_Header=no"
13021fi
13022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13026if test `eval echo '${'$as_ac_Header'}'` = yes; then
13027 cat >>confdefs.h <<_ACEOF
13028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13029_ACEOF
13030
13031fi
13032
13033done
13034
13035
13036# ------------------------- #
13037# Checks for declarations. #
13038# ------------------------- #
13039
13040echo "$as_me:$LINENO: checking whether free is declared" >&5
13041echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13042if test "${ac_cv_have_decl_free+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044else
13045 cat >conftest.$ac_ext <<_ACEOF
13046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h. */
13051$ac_includes_default
13052int
13053main ()
13054{
13055#ifndef free
13056 char *p = (char *) free;
13057#endif
13058
13059 ;
13060 return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext
13064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag"
13073 || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_have_decl_free=yes
13086else
13087 echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090ac_cv_have_decl_free=no
13091fi
13092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093fi
13094echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13095echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13096if test $ac_cv_have_decl_free = yes; then
13097
13098cat >>confdefs.h <<_ACEOF
13099#define HAVE_DECL_FREE 1
13100_ACEOF
13101
13102
13103else
13104 cat >>confdefs.h <<_ACEOF
13105#define HAVE_DECL_FREE 0
13106_ACEOF
13107
13108
13109fi
13110echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13111echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13112if test "${ac_cv_have_decl_malloc+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115 cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121$ac_includes_default
13122int
13123main ()
13124{
13125#ifndef malloc
13126 char *p = (char *) malloc;
13127#endif
13128
13129 ;
13130 return 0;
13131}
13132_ACEOF
13133rm -f conftest.$ac_objext
13134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag"
13143 || test ! -s conftest.err'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_have_decl_malloc=yes
13156else
13157 echo "$as_me: failed program was:" >&5
13158sed 's/^/| /' conftest.$ac_ext >&5
13159
13160ac_cv_have_decl_malloc=no
13161fi
13162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13163fi
13164echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13165echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13166if test $ac_cv_have_decl_malloc = yes; then
13167
13168cat >>confdefs.h <<_ACEOF
13169#define HAVE_DECL_MALLOC 1
13170_ACEOF
13171
13172
13173else
13174 cat >>confdefs.h <<_ACEOF
13175#define HAVE_DECL_MALLOC 0
13176_ACEOF
13177
13178
13179fi
13180echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13181echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13182if test "${ac_cv_have_decl_realloc+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185 cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
13191$ac_includes_default
13192int
13193main ()
13194{
13195#ifndef realloc
13196 char *p = (char *) realloc;
13197#endif
13198
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203rm -f conftest.$ac_objext
13204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13205 (eval $ac_compile) 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag"
13213 || test ! -s conftest.err'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest.$ac_objext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_cv_have_decl_realloc=yes
13226else
13227 echo "$as_me: failed program was:" >&5
13228sed 's/^/| /' conftest.$ac_ext >&5
13229
13230ac_cv_have_decl_realloc=no
13231fi
13232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13233fi
13234echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13235echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13236if test $ac_cv_have_decl_realloc = yes; then
13237
13238cat >>confdefs.h <<_ACEOF
13239#define HAVE_DECL_REALLOC 1
13240_ACEOF
13241
13242
13243else
13244 cat >>confdefs.h <<_ACEOF
13245#define HAVE_DECL_REALLOC 0
13246_ACEOF
13247
13248
13249fi
13250echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13251echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13252if test "${ac_cv_have_decl_strerror+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254else
13255 cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261$ac_includes_default
13262int
13263main ()
13264{
13265#ifndef strerror
13266 char *p = (char *) strerror;
13267#endif
13268
13269 ;
13270 return 0;
13271}
13272_ACEOF
13273rm -f conftest.$ac_objext
13274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_have_decl_strerror=yes
13296else
13297 echo "$as_me: failed program was:" >&5
13298sed 's/^/| /' conftest.$ac_ext >&5
13299
13300ac_cv_have_decl_strerror=no
13301fi
13302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13303fi
13304echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13305echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13306if test $ac_cv_have_decl_strerror = yes; then
13307
13308cat >>confdefs.h <<_ACEOF
13309#define HAVE_DECL_STRERROR 1
13310_ACEOF
13311
13312
13313else
13314 cat >>confdefs.h <<_ACEOF
13315#define HAVE_DECL_STRERROR 0
13316_ACEOF
13317
13318
13319fi
13320echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13321echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13322if test "${ac_cv_have_decl_strstr+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324else
13325 cat >conftest.$ac_ext <<_ACEOF
13326/* confdefs.h. */
13327_ACEOF
13328cat confdefs.h >>conftest.$ac_ext
13329cat >>conftest.$ac_ext <<_ACEOF
13330/* end confdefs.h. */
13331$ac_includes_default
13332int
13333main ()
13334{
13335#ifndef strstr
13336 char *p = (char *) strstr;
13337#endif
13338
13339 ;
13340 return 0;
13341}
13342_ACEOF
13343rm -f conftest.$ac_objext
13344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345 (eval $ac_compile) 2>conftest.er1
13346 ac_status=$?
13347 grep -v '^ *+' conftest.er1 >conftest.err
13348 rm -f conftest.er1
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag"
13353 || test ! -s conftest.err'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_have_decl_strstr=yes
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370ac_cv_have_decl_strstr=no
13371fi
13372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373fi
13374echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13375echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13376if test $ac_cv_have_decl_strstr = yes; then
13377
13378cat >>confdefs.h <<_ACEOF
13379#define HAVE_DECL_STRSTR 1
13380_ACEOF
13381
13382
13383else
13384 cat >>confdefs.h <<_ACEOF
13385#define HAVE_DECL_STRSTR 0
13386_ACEOF
13387
13388
13389fi
13390echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13391echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13392if test "${ac_cv_have_decl_getopt+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401$ac_includes_default
13402int
13403main ()
13404{
13405#ifndef getopt
13406 char *p = (char *) getopt;
13407#endif
13408
13409 ;
13410 return 0;
13411}
13412_ACEOF
13413rm -f conftest.$ac_objext
13414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 (eval $ac_compile) 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_have_decl_getopt=yes
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440ac_cv_have_decl_getopt=no
13441fi
13442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13443fi
13444echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13445echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13446if test $ac_cv_have_decl_getopt = yes; then
13447
13448cat >>confdefs.h <<_ACEOF
13449#define HAVE_DECL_GETOPT 1
13450_ACEOF
13451
13452
13453else
13454 cat >>confdefs.h <<_ACEOF
13455#define HAVE_DECL_GETOPT 0
13456_ACEOF
13457
13458
13459fi
13460echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13461echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13462if test "${ac_cv_have_decl_snprintf+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464else
13465 cat >conftest.$ac_ext <<_ACEOF
13466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471$ac_includes_default
13472int
13473main ()
13474{
13475#ifndef snprintf
13476 char *p = (char *) snprintf;
13477#endif
13478
13479 ;
13480 return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext
13484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_have_decl_snprintf=yes
13506else
13507 echo "$as_me: failed program was:" >&5
13508sed 's/^/| /' conftest.$ac_ext >&5
13509
13510ac_cv_have_decl_snprintf=no
13511fi
13512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13513fi
13514echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13515echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13516if test $ac_cv_have_decl_snprintf = yes; then
13517
13518cat >>confdefs.h <<_ACEOF
13519#define HAVE_DECL_SNPRINTF 1
13520_ACEOF
13521
13522
13523else
13524 cat >>confdefs.h <<_ACEOF
13525#define HAVE_DECL_SNPRINTF 0
13526_ACEOF
13527
13528
13529fi
13530echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13531echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13532if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541$ac_includes_default
13542int
13543main ()
13544{
13545#ifndef vsnprintf
13546 char *p = (char *) vsnprintf;
13547#endif
13548
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext
13554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_have_decl_vsnprintf=yes
13576else
13577 echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580ac_cv_have_decl_vsnprintf=no
13581fi
13582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13583fi
13584echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13585echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13586if test $ac_cv_have_decl_vsnprintf = yes; then
13587
13588cat >>confdefs.h <<_ACEOF
13589#define HAVE_DECL_VSNPRINTF 1
13590_ACEOF
13591
13592
13593else
13594 cat >>confdefs.h <<_ACEOF
13595#define HAVE_DECL_VSNPRINTF 0
13596_ACEOF
13597
13598
13599fi
13600
13601
13602
13603 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13604echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13605if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614#include <locale.h>
13615int
13616main ()
13617{
13618return LC_MESSAGES
13619 ;
13620 return 0;
13621}
13622_ACEOF
13623rm -f conftest.$ac_objext conftest$ac_exeext
13624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625 (eval $ac_link) 2>conftest.er1
13626 ac_status=$?
13627 grep -v '^ *+' conftest.er1 >conftest.err
13628 rm -f conftest.er1
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 am_cv_val_LC_MESSAGES=yes
13646else
13647 echo "$as_me: failed program was:" >&5
13648sed 's/^/| /' conftest.$ac_ext >&5
13649
13650am_cv_val_LC_MESSAGES=no
13651fi
13652rm -f conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654fi
13655echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13656echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13657 if test $am_cv_val_LC_MESSAGES = yes; then
13658
13659cat >>confdefs.h <<\_ACEOF
13660#define HAVE_LC_MESSAGES 1
13661_ACEOF
13662
13663 fi
13664
13665
13666# ----------------------- #
13667# Checks for structures. #
13668# ----------------------- #
13669
13670echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13671echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13672if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
13675 cat >conftest.$ac_ext <<_ACEOF
13676/* confdefs.h. */
13677_ACEOF
13678cat confdefs.h >>conftest.$ac_ext
13679cat >>conftest.$ac_ext <<_ACEOF
13680/* end confdefs.h. */
13681$ac_includes_default
13682int
13683main ()
13684{
13685static struct stat ac_aggr;
13686if (ac_aggr.st_blocks)
13687return 0;
13688 ;
13689 return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext
13693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_member_struct_stat_st_blocks=yes
13715else
13716 echo "$as_me: failed program was:" >&5
13717sed 's/^/| /' conftest.$ac_ext >&5
13718
13719cat >conftest.$ac_ext <<_ACEOF
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725$ac_includes_default
13726int
13727main ()
13728{
13729static struct stat ac_aggr;
13730if (sizeof ac_aggr.st_blocks)
13731return 0;
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext
13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_member_struct_stat_st_blocks=yes
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763ac_cv_member_struct_stat_st_blocks=no
13764fi
13765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766fi
13767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13768fi
13769echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13770echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13771if test $ac_cv_member_struct_stat_st_blocks = yes; then
13772
13773cat >>confdefs.h <<_ACEOF
13774#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13775_ACEOF
13776
13777
13778fi
13779echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13780echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13781if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790$ac_includes_default
13791int
13792main ()
13793{
13794static struct stat ac_aggr;
13795if (ac_aggr.st_blksize)
13796return 0;
13797 ;
13798 return 0;
13799}
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_member_struct_stat_st_blksize=yes
13824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834$ac_includes_default
13835int
13836main ()
13837{
13838static struct stat ac_aggr;
13839if (sizeof ac_aggr.st_blksize)
13840return 0;
13841 ;
13842 return 0;
13843}
13844_ACEOF
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag"
13855 || test ! -s conftest.err'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_cv_member_struct_stat_st_blksize=yes
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872ac_cv_member_struct_stat_st_blksize=no
13873fi
13874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13875fi
13876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13877fi
13878echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13879echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13880if test $ac_cv_member_struct_stat_st_blksize = yes; then
13881
13882cat >>confdefs.h <<_ACEOF
13883#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13884_ACEOF
13885
13886
13887fi
13888
13889
13890# ------------------ #
13891# Checks for types. #
13892# ------------------ #
13893
13894echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13895echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13896if test "${ac_cv_type_signal+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905#include <sys/types.h>
13906#include <signal.h>
13907#ifdef signal
13908# undef signal
13909#endif
13910#ifdef __cplusplus
13911extern "C" void (*signal (int, void (*)(int)))(int);
13912#else
13913void (*signal ()) ();
13914#endif
13915
13916int
13917main ()
13918{
13919int i;
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (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_cv_type_signal=void
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
13951ac_cv_type_signal=int
13952fi
13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954fi
13955echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13956echo "${ECHO_T}$ac_cv_type_signal" >&6
13957
13958cat >>confdefs.h <<_ACEOF
13959#define RETSIGTYPE $ac_cv_type_signal
13960_ACEOF
13961
13962
13963echo "$as_me:$LINENO: checking for socklen_t" >&5
13964echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13965if test "${ac_cv_type_socklen_t+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967else
13968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974#include <sys/types.h>
13975#include <sys/socket.h>
13976
13977
13978int
13979main ()
13980{
13981if ((socklen_t *) 0)
13982 return 0;
13983if (sizeof (socklen_t))
13984 return 0;
13985 ;
13986 return 0;
13987}
13988_ACEOF
13989rm -f conftest.$ac_objext
13990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag"
13999 || test ! -s conftest.err'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest.$ac_objext'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_type_socklen_t=yes
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016ac_cv_type_socklen_t=no
14017fi
14018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14019fi
14020echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14021echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14022if test $ac_cv_type_socklen_t = yes; then
14023
14024cat >>confdefs.h <<_ACEOF
14025#define HAVE_SOCKLEN_T 1
14026_ACEOF
14027
14028
14029fi
14030
14031
14032# ------------------------------------- #
14033# Checks for compiler characteristics. #
14034# ------------------------------------- #
14035
14036echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14037echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14038if test "${ac_cv_c_const+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047
14048int
14049main ()
14050{
14051/* FIXME: Include the comments suggested by Paul. */
14052#ifndef __cplusplus
14053 /* Ultrix mips cc rejects this. */
14054 typedef int charset[2];
14055 const charset x;
14056 /* SunOS 4.1.1 cc rejects this. */
14057 char const *const *ccp;
14058 char **p;
14059 /* NEC SVR4.0.2 mips cc rejects this. */
14060 struct point {int x, y;};
14061 static struct point const zero = {0,0};
14062 /* AIX XL C 1.02.0.0 rejects this.
14063 It does not let you subtract one const X* pointer from another in
14064 an arm of an if-expression whose if-part is not a constant
14065 expression */
14066 const char *g = "string";
14067 ccp = &g + (g ? g-g : 0);
14068 /* HPUX 7.0 cc rejects these. */
14069 ++ccp;
14070 p = (char**) ccp;
14071 ccp = (char const *const *) p;
14072 { /* SCO 3.2v4 cc rejects this. */
14073 char *t;
14074 char const *s = 0 ? (char *) 0 : (char const *) 0;
14075
14076 *t++ = 0;
14077 }
14078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14079 int x[] = {25, 17};
14080 const int *foo = &x[0];
14081 ++foo;
14082 }
14083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14084 typedef const int *iptr;
14085 iptr p = 0;
14086 ++p;
14087 }
14088 { /* AIX XL C 1.02.0.0 rejects this saying
14089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14090 struct s { int j; const int *ap[3]; };
14091 struct s *b; b->j = 5;
14092 }
14093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14094 const int foo = 10;
14095 }
14096#endif
14097
14098 ;
14099 return 0;
14100}
14101_ACEOF
14102rm -f conftest.$ac_objext
14103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag"
14112 || test ! -s conftest.err'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_c_const=yes
14125else
14126 echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129ac_cv_c_const=no
14130fi
14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132fi
14133echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14134echo "${ECHO_T}$ac_cv_c_const" >&6
14135if test $ac_cv_c_const = no; then
14136
14137cat >>confdefs.h <<\_ACEOF
14138#define const
14139_ACEOF
14140
14141fi
14142
14143echo "$as_me:$LINENO: checking for inline" >&5
14144echo $ECHO_N "checking for inline... $ECHO_C" >&6
14145if test "${ac_cv_c_inline+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148 ac_cv_c_inline=no
14149for ac_kw in inline __inline__ __inline; do
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156#ifndef __cplusplus
14157typedef int foo_t;
14158static $ac_kw foo_t static_foo () {return 0; }
14159$ac_kw foo_t foo () {return 0; }
14160#endif
14161
14162_ACEOF
14163rm -f conftest.$ac_objext
14164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag"
14173 || test ! -s conftest.err'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_c_inline=$ac_kw; break
14186else
14187 echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190fi
14191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192done
14193
14194fi
14195echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14196echo "${ECHO_T}$ac_cv_c_inline" >&6
14197
14198
14199case $ac_cv_c_inline in
14200 inline | yes) ;;
14201 *)
14202 case $ac_cv_c_inline in
14203 no) ac_val=;;
14204 *) ac_val=$ac_cv_c_inline;;
14205 esac
14206 cat >>confdefs.h <<_ACEOF
14207#ifndef __cplusplus
14208#define inline $ac_val
14209#endif
14210_ACEOF
14211 ;;
14212esac
14213
14214echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14215echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14216if test "${ac_cv_c_bigendian+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219 # See if sys/param.h defines the BYTE_ORDER macro.
14220cat >conftest.$ac_ext <<_ACEOF
14221/* confdefs.h. */
14222_ACEOF
14223cat confdefs.h >>conftest.$ac_ext
14224cat >>conftest.$ac_ext <<_ACEOF
14225/* end confdefs.h. */
14226#include <sys/types.h>
14227#include <sys/param.h>
14228
14229int
14230main ()
14231{
14232#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14233 bogus endian macros
14234#endif
14235
14236 ;
14237 return 0;
14238}
14239_ACEOF
14240rm -f conftest.$ac_objext
14241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag"
14250 || test ! -s conftest.err'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 # It does; now see whether it defined to BIG_ENDIAN or not.
14263cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269#include <sys/types.h>
14270#include <sys/param.h>
14271
14272int
14273main ()
14274{
14275#if BYTE_ORDER != BIG_ENDIAN
14276 not big endian
14277#endif
14278
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283rm -f conftest.$ac_objext
14284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_c_bigendian=yes
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310ac_cv_c_bigendian=no
14311fi
14312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317# It does not; compile a test program.
14318if test "$cross_compiling" = yes; then
14319 # try to guess the endianness by grepping values into an object file
14320 ac_cv_c_bigendian=unknown
14321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14328short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14329void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14330short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14331short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14332void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14333int
14334main ()
14335{
14336 _ascii (); _ebcdic ();
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext
14342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -z "$ac_c_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14364 ac_cv_c_bigendian=yes
14365fi
14366if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14367 if test "$ac_cv_c_bigendian" = unknown; then
14368 ac_cv_c_bigendian=no
14369 else
14370 # finding both strings is unlikely to happen, but who knows?
14371 ac_cv_c_bigendian=unknown
14372 fi
14373fi
14374else
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378fi
14379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h. */
14387int
14388main ()
14389{
14390 /* Are we little or big endian? From Harbison&Steele. */
14391 union
14392 {
14393 long l;
14394 char c[sizeof (long)];
14395 } u;
14396 u.l = 1;
14397 exit (u.c[sizeof (long) - 1] == 1);
14398}
14399_ACEOF
14400rm -f conftest$ac_exeext
14401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402 (eval $ac_link) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_cv_c_bigendian=no
14412else
14413 echo "$as_me: program exited with status $ac_status" >&5
14414echo "$as_me: failed program was:" >&5
14415sed 's/^/| /' conftest.$ac_ext >&5
14416
14417( exit $ac_status )
14418ac_cv_c_bigendian=yes
14419fi
14420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14421fi
14422fi
14423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14424fi
14425echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14426echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14427case $ac_cv_c_bigendian in
14428 yes)
14429
14430cat >>confdefs.h <<\_ACEOF
14431#define WORDS_BIGENDIAN 1
14432_ACEOF
14433 ;;
14434 no)
14435 ;;
14436 *)
14437 { { echo "$as_me:$LINENO: error: unknown endianness
14438presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14439echo "$as_me: error: unknown endianness
14440presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14441 { (exit 1); exit 1; }; } ;;
14442esac
14443
14444
14445# ------------------------------ #
14446# Checks for library functions. #
14447# ------------------------------ #
14448
14449# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14450# for constant arguments. Useless!
14451echo "$as_me:$LINENO: checking for working alloca.h" >&5
14452echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14453if test "${ac_cv_working_alloca_h+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455else
14456 cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462#include <alloca.h>
14463int
14464main ()
14465{
14466char *p = (char *) alloca (2 * sizeof (int));
14467 ;
14468 return 0;
14469}
14470_ACEOF
14471rm -f conftest.$ac_objext conftest$ac_exeext
14472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_cv_working_alloca_h=yes
14494else
14495 echo "$as_me: failed program was:" >&5
14496sed 's/^/| /' conftest.$ac_ext >&5
14497
14498ac_cv_working_alloca_h=no
14499fi
14500rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502fi
14503echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14504echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14505if test $ac_cv_working_alloca_h = yes; then
14506
14507cat >>confdefs.h <<\_ACEOF
14508#define HAVE_ALLOCA_H 1
14509_ACEOF
14510
14511fi
14512
14513echo "$as_me:$LINENO: checking for alloca" >&5
14514echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14515if test "${ac_cv_func_alloca_works+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517else
14518 cat >conftest.$ac_ext <<_ACEOF
14519/* confdefs.h. */
14520_ACEOF
14521cat confdefs.h >>conftest.$ac_ext
14522cat >>conftest.$ac_ext <<_ACEOF
14523/* end confdefs.h. */
14524#ifdef __GNUC__
14525# define alloca __builtin_alloca
14526#else
14527# ifdef _MSC_VER
14528# include <malloc.h>
14529# define alloca _alloca
14530# else
14531# if HAVE_ALLOCA_H
14532# include <alloca.h>
14533# else
14534# ifdef _AIX
14535 #pragma alloca
14536# else
14537# ifndef alloca /* predefined by HP cc +Olibcalls */
14538char *alloca ();
14539# endif
14540# endif
14541# endif
14542# endif
14543#endif
14544
14545int
14546main ()
14547{
14548char *p = (char *) alloca (1);
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext conftest$ac_exeext
14554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest$ac_exeext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_func_alloca_works=yes
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580ac_cv_func_alloca_works=no
14581fi
14582rm -f conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584fi
14585echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14586echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14587
14588if test $ac_cv_func_alloca_works = yes; then
14589
14590cat >>confdefs.h <<\_ACEOF
14591#define HAVE_ALLOCA 1
14592_ACEOF
14593
14594else
14595 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14596# that cause trouble. Some versions do not even contain alloca or
14597# contain a buggy version. If you still want to use their alloca,
14598# use ar to extract alloca.o from them instead of compiling alloca.c.
14599
14600ALLOCA=alloca.$ac_objext
14601
14602cat >>confdefs.h <<\_ACEOF
14603#define C_ALLOCA 1
14604_ACEOF
14605
14606
14607echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14608echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14609if test "${ac_cv_os_cray+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611else
14612 cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618#if defined(CRAY) && ! defined(CRAY2)
14619webecray
14620#else
14621wenotbecray
14622#endif
14623
14624_ACEOF
14625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14626 $EGREP "webecray" >/dev/null 2>&1; then
14627 ac_cv_os_cray=yes
14628else
14629 ac_cv_os_cray=no
14630fi
14631rm -f conftest*
14632
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14635echo "${ECHO_T}$ac_cv_os_cray" >&6
14636if test $ac_cv_os_cray = yes; then
14637 for ac_func in _getb67 GETB67 getb67; do
14638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14639echo "$as_me:$LINENO: checking for $ac_func" >&5
14640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14641if eval "test \"\${$as_ac_var+set}\" = set"; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643else
14644 cat >conftest.$ac_ext <<_ACEOF
14645/* confdefs.h. */
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
14650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14652#define $ac_func innocuous_$ac_func
14653
14654/* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func (); below.
14656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14657 <limits.h> exists even on freestanding compilers. */
14658
14659#ifdef __STDC__
14660# include <limits.h>
14661#else
14662# include <assert.h>
14663#endif
14664
14665#undef $ac_func
14666
14667/* Override any gcc2 internal prototype to avoid an error. */
14668#ifdef __cplusplus
14669extern "C"
14670{
14671#endif
14672/* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14674char $ac_func ();
14675/* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14679choke me
14680#else
14681char (*f) () = $ac_func;
14682#endif
14683#ifdef __cplusplus
14684}
14685#endif
14686
14687int
14688main ()
14689{
14690return f != $ac_func;
14691 ;
14692 return 0;
14693}
14694_ACEOF
14695rm -f conftest.$ac_objext conftest$ac_exeext
14696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag"
14705 || test ! -s conftest.err'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest$ac_exeext'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 eval "$as_ac_var=yes"
14718else
14719 echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
14722eval "$as_ac_var=no"
14723fi
14724rm -f conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726fi
14727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14729if test `eval echo '${'$as_ac_var'}'` = yes; then
14730
14731cat >>confdefs.h <<_ACEOF
14732#define CRAY_STACKSEG_END $ac_func
14733_ACEOF
14734
14735 break
14736fi
14737
14738 done
14739fi
14740
14741echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14742echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14743if test "${ac_cv_c_stack_direction+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745else
14746 if test "$cross_compiling" = yes; then
14747 ac_cv_c_stack_direction=0
14748else
14749 cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755int
14756find_stack_direction ()
14757{
14758 static char *addr = 0;
14759 auto char dummy;
14760 if (addr == 0)
14761 {
14762 addr = &dummy;
14763 return find_stack_direction ();
14764 }
14765 else
14766 return (&dummy > addr) ? 1 : -1;
14767}
14768
14769int
14770main ()
14771{
14772 exit (find_stack_direction () < 0);
14773}
14774_ACEOF
14775rm -f conftest$ac_exeext
14776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_c_stack_direction=1
14787else
14788 echo "$as_me: program exited with status $ac_status" >&5
14789echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792( exit $ac_status )
14793ac_cv_c_stack_direction=-1
14794fi
14795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14796fi
14797fi
14798echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14799echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14800
14801cat >>confdefs.h <<_ACEOF
14802#define STACK_DIRECTION $ac_cv_c_stack_direction
14803_ACEOF
14804
14805
14806fi
14807
14808
14809
14810for ac_header in stdlib.h unistd.h
14811do
14812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14813if eval "test \"\${$as_ac_Header+set}\" = set"; then
14814 echo "$as_me:$LINENO: checking for $ac_header" >&5
14815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14816if eval "test \"\${$as_ac_Header+set}\" = set"; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818fi
14819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14821else
14822 # Is the header compilable?
14823echo "$as_me:$LINENO: checking $ac_header usability" >&5
14824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14825cat >conftest.$ac_ext <<_ACEOF
14826/* confdefs.h. */
14827_ACEOF
14828cat confdefs.h >>conftest.$ac_ext
14829cat >>conftest.$ac_ext <<_ACEOF
14830/* end confdefs.h. */
14831$ac_includes_default
14832#include <$ac_header>
14833_ACEOF
14834rm -f conftest.$ac_objext
14835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag"
14844 || test ! -s conftest.err'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861ac_header_compiler=no
14862fi
14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865echo "${ECHO_T}$ac_header_compiler" >&6
14866
14867# Is the header present?
14868echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14870cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876#include <$ac_header>
14877_ACEOF
14878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null; then
14886 if test -s conftest.err; then
14887 ac_cpp_err=$ac_c_preproc_warn_flag
14888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14889 else
14890 ac_cpp_err=
14891 fi
14892else
14893 ac_cpp_err=yes
14894fi
14895if test -z "$ac_cpp_err"; then
14896 ac_header_preproc=yes
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 ac_header_preproc=no
14902fi
14903rm -f conftest.err conftest.$ac_ext
14904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14905echo "${ECHO_T}$ac_header_preproc" >&6
14906
14907# So? What about this header?
14908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 yes:no: )
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14914 ac_header_preproc=yes
14915 ;;
14916 no:yes:* )
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14929 (
14930 cat <<\_ASBOX
14931## ------------------------------------------ ##
14932## Report this to the AC_PACKAGE_NAME lists. ##
14933## ------------------------------------------ ##
14934_ASBOX
14935 ) |
14936 sed "s/^/$as_me: WARNING: /" >&2
14937 ;;
14938esac
14939echo "$as_me:$LINENO: checking for $ac_header" >&5
14940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14941if eval "test \"\${$as_ac_Header+set}\" = set"; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 eval "$as_ac_Header=\$ac_header_preproc"
14945fi
14946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14948
14949fi
14950if test `eval echo '${'$as_ac_Header'}'` = yes; then
14951 cat >>confdefs.h <<_ACEOF
14952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953_ACEOF
14954
14955fi
14956
14957done
14958
14959
14960for ac_func in getpagesize
14961do
14962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14963echo "$as_me:$LINENO: checking for $ac_func" >&5
14964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14965if eval "test \"\${$as_ac_var+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968 cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14976#define $ac_func innocuous_$ac_func
14977
14978/* System header to define __stub macros and hopefully few prototypes,
14979 which can conflict with char $ac_func (); below.
14980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14981 <limits.h> exists even on freestanding compilers. */
14982
14983#ifdef __STDC__
14984# include <limits.h>
14985#else
14986# include <assert.h>
14987#endif
14988
14989#undef $ac_func
14990
14991/* Override any gcc2 internal prototype to avoid an error. */
14992#ifdef __cplusplus
14993extern "C"
14994{
14995#endif
14996/* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14998char $ac_func ();
14999/* The GNU C library defines this for functions which it implements
15000 to always fail with ENOSYS. Some functions are actually named
15001 something starting with __ and the normal name is an alias. */
15002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003choke me
15004#else
15005char (*f) () = $ac_func;
15006#endif
15007#ifdef __cplusplus
15008}
15009#endif
15010
15011int
15012main ()
15013{
15014return f != $ac_func;
15015 ;
15016 return 0;
15017}
15018_ACEOF
15019rm -f conftest.$ac_objext conftest$ac_exeext
15020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest$ac_exeext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 eval "$as_ac_var=yes"
15042else
15043 echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046eval "$as_ac_var=no"
15047fi
15048rm -f conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050fi
15051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15053if test `eval echo '${'$as_ac_var'}'` = yes; then
15054 cat >>confdefs.h <<_ACEOF
15055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15056_ACEOF
15057
15058fi
15059done
15060
15061echo "$as_me:$LINENO: checking for working mmap" >&5
15062echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15063if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
15066 if test "$cross_compiling" = yes; then
15067 ac_cv_func_mmap_fixed_mapped=no
15068else
15069 cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075$ac_includes_default
15076/* malloc might have been renamed as rpl_malloc. */
15077#undef malloc
15078
15079/* Thanks to Mike Haertel and Jim Avera for this test.
15080 Here is a matrix of mmap possibilities:
15081 mmap private not fixed
15082 mmap private fixed at somewhere currently unmapped
15083 mmap private fixed at somewhere already mapped
15084 mmap shared not fixed
15085 mmap shared fixed at somewhere currently unmapped
15086 mmap shared fixed at somewhere already mapped
15087 For private mappings, we should verify that changes cannot be read()
15088 back from the file, nor mmap's back from the file at a different
15089 address. (There have been systems where private was not correctly
15090 implemented like the infamous i386 svr4.0, and systems where the
15091 VM page cache was not coherent with the file system buffer cache
15092 like early versions of FreeBSD and possibly contemporary NetBSD.)
15093 For shared mappings, we should conversely verify that changes get
15094 propagated back to all the places they're supposed to be.
15095
15096 Grep wants private fixed already mapped.
15097 The main things grep needs to know about mmap are:
15098 * does it exist and is it safe to write into the mmap'd area
15099 * how to use it (BSD variants) */
15100
15101#include <fcntl.h>
15102#include <sys/mman.h>
15103
15104#if !STDC_HEADERS && !HAVE_STDLIB_H
15105char *malloc ();
15106#endif
15107
15108/* This mess was copied from the GNU getpagesize.h. */
15109#if !HAVE_GETPAGESIZE
15110/* Assume that all systems that can run configure have sys/param.h. */
15111# if !HAVE_SYS_PARAM_H
15112# define HAVE_SYS_PARAM_H 1
15113# endif
15114
15115# ifdef _SC_PAGESIZE
15116# define getpagesize() sysconf(_SC_PAGESIZE)
15117# else /* no _SC_PAGESIZE */
15118# if HAVE_SYS_PARAM_H
15119# include <sys/param.h>
15120# ifdef EXEC_PAGESIZE
15121# define getpagesize() EXEC_PAGESIZE
15122# else /* no EXEC_PAGESIZE */
15123# ifdef NBPG
15124# define getpagesize() NBPG * CLSIZE
15125# ifndef CLSIZE
15126# define CLSIZE 1
15127# endif /* no CLSIZE */
15128# else /* no NBPG */
15129# ifdef NBPC
15130# define getpagesize() NBPC
15131# else /* no NBPC */
15132# ifdef PAGESIZE
15133# define getpagesize() PAGESIZE
15134# endif /* PAGESIZE */
15135# endif /* no NBPC */
15136# endif /* no NBPG */
15137# endif /* no EXEC_PAGESIZE */
15138# else /* no HAVE_SYS_PARAM_H */
15139# define getpagesize() 8192 /* punt totally */
15140# endif /* no HAVE_SYS_PARAM_H */
15141# endif /* no _SC_PAGESIZE */
15142
15143#endif /* no HAVE_GETPAGESIZE */
15144
15145int
15146main ()
15147{
15148 char *data, *data2, *data3;
15149 int i, pagesize;
15150 int fd;
15151
15152 pagesize = getpagesize ();
15153
15154 /* First, make a file with some known garbage in it. */
15155 data = (char *) malloc (pagesize);
15156 if (!data)
15157 exit (1);
15158 for (i = 0; i < pagesize; ++i)
15159 *(data + i) = rand ();
15160 umask (0);
15161 fd = creat ("conftest.mmap", 0600);
15162 if (fd < 0)
15163 exit (1);
15164 if (write (fd, data, pagesize) != pagesize)
15165 exit (1);
15166 close (fd);
15167
15168 /* Next, try to mmap the file at a fixed address which already has
15169 something else allocated at it. If we can, also make sure that
15170 we see the same garbage. */
15171 fd = open ("conftest.mmap", O_RDWR);
15172 if (fd < 0)
15173 exit (1);
15174 data2 = (char *) malloc (2 * pagesize);
15175 if (!data2)
15176 exit (1);
15177 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15180 exit (1);
15181 for (i = 0; i < pagesize; ++i)
15182 if (*(data + i) != *(data2 + i))
15183 exit (1);
15184
15185 /* Finally, make sure that changes to the mapped area do not
15186 percolate back to the file as seen by read(). (This is a bug on
15187 some variants of i386 svr4.0.) */
15188 for (i = 0; i < pagesize; ++i)
15189 *(data2 + i) = *(data2 + i) + 1;
15190 data3 = (char *) malloc (pagesize);
15191 if (!data3)
15192 exit (1);
15193 if (read (fd, data3, pagesize) != pagesize)
15194 exit (1);
15195 for (i = 0; i < pagesize; ++i)
15196 if (*(data + i) != *(data3 + i))
15197 exit (1);
15198 close (fd);
15199 exit (0);
15200}
15201_ACEOF
15202rm -f conftest$ac_exeext
15203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204 (eval $ac_link) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_func_mmap_fixed_mapped=yes
15214else
15215 echo "$as_me: program exited with status $ac_status" >&5
15216echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219( exit $ac_status )
15220ac_cv_func_mmap_fixed_mapped=no
15221fi
15222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15223fi
15224fi
15225echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15226echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15227if test $ac_cv_func_mmap_fixed_mapped = yes; then
15228
15229cat >>confdefs.h <<\_ACEOF
15230#define HAVE_MMAP 1
15231_ACEOF
15232
15233fi
15234rm -f conftest.mmap
15235
15236echo "$as_me:$LINENO: checking for pid_t" >&5
15237echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15238if test "${ac_cv_type_pid_t+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240else
15241 cat >conftest.$ac_ext <<_ACEOF
15242/* confdefs.h. */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
15246/* end confdefs.h. */
15247$ac_includes_default
15248int
15249main ()
15250{
15251if ((pid_t *) 0)
15252 return 0;
15253if (sizeof (pid_t))
15254 return 0;
15255 ;
15256 return 0;
15257}
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_type_pid_t=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286ac_cv_type_pid_t=no
15287fi
15288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289fi
15290echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15291echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15292if test $ac_cv_type_pid_t = yes; then
15293 :
15294else
15295
15296cat >>confdefs.h <<_ACEOF
15297#define pid_t int
15298_ACEOF
15299
15300fi
15301
15302
15303
15304for ac_header in unistd.h vfork.h
15305do
15306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo "$as_me:$LINENO: checking for $ac_header" >&5
15309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15310if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312fi
15313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15315else
15316 # Is the header compilable?
15317echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15319cat >conftest.$ac_ext <<_ACEOF
15320/* confdefs.h. */
15321_ACEOF
15322cat confdefs.h >>conftest.$ac_ext
15323cat >>conftest.$ac_ext <<_ACEOF
15324/* end confdefs.h. */
15325$ac_includes_default
15326#include <$ac_header>
15327_ACEOF
15328rm -f conftest.$ac_objext
15329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler=yes
15351else
15352 echo "$as_me: failed program was:" >&5
15353sed 's/^/| /' conftest.$ac_ext >&5
15354
15355ac_header_compiler=no
15356fi
15357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359echo "${ECHO_T}$ac_header_compiler" >&6
15360
15361# Is the header present?
15362echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15364cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
15370#include <$ac_header>
15371_ACEOF
15372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null; then
15380 if test -s conftest.err; then
15381 ac_cpp_err=$ac_c_preproc_warn_flag
15382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15383 else
15384 ac_cpp_err=
15385 fi
15386else
15387 ac_cpp_err=yes
15388fi
15389if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_header_preproc=no
15396fi
15397rm -f conftest.err conftest.$ac_ext
15398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399echo "${ECHO_T}$ac_header_preproc" >&6
15400
15401# So? What about this header?
15402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15403 yes:no: )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15408 ac_header_preproc=yes
15409 ;;
15410 no:yes:* )
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15423 (
15424 cat <<\_ASBOX
15425## ------------------------------------------ ##
15426## Report this to the AC_PACKAGE_NAME lists. ##
15427## ------------------------------------------ ##
15428_ASBOX
15429 ) |
15430 sed "s/^/$as_me: WARNING: /" >&2
15431 ;;
15432esac
15433echo "$as_me:$LINENO: checking for $ac_header" >&5
15434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15435if eval "test \"\${$as_ac_Header+set}\" = set"; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15437else
15438 eval "$as_ac_Header=\$ac_header_preproc"
15439fi
15440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15442
15443fi
15444if test `eval echo '${'$as_ac_Header'}'` = yes; then
15445 cat >>confdefs.h <<_ACEOF
15446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15447_ACEOF
15448
15449fi
15450
15451done
15452
15453
15454
15455for ac_func in fork vfork
15456do
15457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15458echo "$as_me:$LINENO: checking for $ac_func" >&5
15459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15460if eval "test \"\${$as_ac_var+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462else
15463 cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15471#define $ac_func innocuous_$ac_func
15472
15473/* System header to define __stub macros and hopefully few prototypes,
15474 which can conflict with char $ac_func (); below.
15475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15476 <limits.h> exists even on freestanding compilers. */
15477
15478#ifdef __STDC__
15479# include <limits.h>
15480#else
15481# include <assert.h>
15482#endif
15483
15484#undef $ac_func
15485
15486/* Override any gcc2 internal prototype to avoid an error. */
15487#ifdef __cplusplus
15488extern "C"
15489{
15490#endif
15491/* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15493char $ac_func ();
15494/* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15498choke me
15499#else
15500char (*f) () = $ac_func;
15501#endif
15502#ifdef __cplusplus
15503}
15504#endif
15505
15506int
15507main ()
15508{
15509return f != $ac_func;
15510 ;
15511 return 0;
15512}
15513_ACEOF
15514rm -f conftest.$ac_objext conftest$ac_exeext
15515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15516 (eval $ac_link) 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag"
15524 || test ! -s conftest.err'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest$ac_exeext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 eval "$as_ac_var=yes"
15537else
15538 echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541eval "$as_ac_var=no"
15542fi
15543rm -f conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
15545fi
15546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15548if test `eval echo '${'$as_ac_var'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15551_ACEOF
15552
15553fi
15554done
15555
15556if test "x$ac_cv_func_fork" = xyes; then
15557 echo "$as_me:$LINENO: checking for working fork" >&5
15558echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15559if test "${ac_cv_func_fork_works+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561else
15562 if test "$cross_compiling" = yes; then
15563 ac_cv_func_fork_works=cross
15564else
15565 cat >conftest.$ac_ext <<_ACEOF
15566/* By Ruediger Kuhlmann. */
15567 #include <sys/types.h>
15568 #if HAVE_UNISTD_H
15569 # include <unistd.h>
15570 #endif
15571 /* Some systems only have a dummy stub for fork() */
15572 int main ()
15573 {
15574 if (fork() < 0)
15575 exit (1);
15576 exit (0);
15577 }
15578_ACEOF
15579rm -f conftest$ac_exeext
15580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_func_fork_works=yes
15591else
15592 echo "$as_me: program exited with status $ac_status" >&5
15593echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596( exit $ac_status )
15597ac_cv_func_fork_works=no
15598fi
15599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15600fi
15601fi
15602echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15603echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15604
15605else
15606 ac_cv_func_fork_works=$ac_cv_func_fork
15607fi
15608if test "x$ac_cv_func_fork_works" = xcross; then
15609 case $host in
15610 *-*-amigaos* | *-*-msdosdjgpp*)
15611 # Override, as these systems have only a dummy fork() stub
15612 ac_cv_func_fork_works=no
15613 ;;
15614 *)
15615 ac_cv_func_fork_works=yes
15616 ;;
15617 esac
15618 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15619echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15620fi
15621ac_cv_func_vfork_works=$ac_cv_func_vfork
15622if test "x$ac_cv_func_vfork" = xyes; then
15623 echo "$as_me:$LINENO: checking for working vfork" >&5
15624echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15625if test "${ac_cv_func_vfork_works+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627else
15628 if test "$cross_compiling" = yes; then
15629 ac_cv_func_vfork_works=cross
15630else
15631 cat >conftest.$ac_ext <<_ACEOF
15632/* confdefs.h. */
15633_ACEOF
15634cat confdefs.h >>conftest.$ac_ext
15635cat >>conftest.$ac_ext <<_ACEOF
15636/* end confdefs.h. */
15637/* Thanks to Paul Eggert for this test. */
15638#include <stdio.h>
15639#include <stdlib.h>
15640#include <sys/types.h>
15641#include <sys/stat.h>
15642#include <sys/wait.h>
15643#if HAVE_UNISTD_H
15644# include <unistd.h>
15645#endif
15646#if HAVE_VFORK_H
15647# include <vfork.h>
15648#endif
15649/* On some sparc systems, changes by the child to local and incoming
15650 argument registers are propagated back to the parent. The compiler
15651 is told about this with #include <vfork.h>, but some compilers
15652 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15653 static variable whose address is put into a register that is
15654 clobbered by the vfork. */
15655static void
15656#ifdef __cplusplus
15657sparc_address_test (int arg)
15658# else
15659sparc_address_test (arg) int arg;
15660#endif
15661{
15662 static pid_t child;
15663 if (!child) {
15664 child = vfork ();
15665 if (child < 0) {
15666 perror ("vfork");
15667 _exit(2);
15668 }
15669 if (!child) {
15670 arg = getpid();
15671 write(-1, "", 0);
15672 _exit (arg);
15673 }
15674 }
15675}
15676
15677int
15678main ()
15679{
15680 pid_t parent = getpid ();
15681 pid_t child;
15682
15683 sparc_address_test (0);
15684
15685 child = vfork ();
15686
15687 if (child == 0) {
15688 /* Here is another test for sparc vfork register problems. This
15689 test uses lots of local variables, at least as many local
15690 variables as main has allocated so far including compiler
15691 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15692 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15693 reuse the register of parent for one of the local variables,
15694 since it will think that parent can't possibly be used any more
15695 in this routine. Assigning to the local variable will thus
15696 munge parent in the parent process. */
15697 pid_t
15698 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15699 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15700 /* Convince the compiler that p..p7 are live; otherwise, it might
15701 use the same hardware register for all 8 local variables. */
15702 if (p != p1 || p != p2 || p != p3 || p != p4
15703 || p != p5 || p != p6 || p != p7)
15704 _exit(1);
15705
15706 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15707 from child file descriptors. If the child closes a descriptor
15708 before it execs or exits, this munges the parent's descriptor
15709 as well. Test for this by closing stdout in the child. */
15710 _exit(close(fileno(stdout)) != 0);
15711 } else {
15712 int status;
15713 struct stat st;
15714
15715 while (wait(&status) != child)
15716 ;
15717 exit(
15718 /* Was there some problem with vforking? */
15719 child < 0
15720
15721 /* Did the child fail? (This shouldn't happen.) */
15722 || status
15723
15724 /* Did the vfork/compiler bug occur? */
15725 || parent != getpid()
15726
15727 /* Did the file descriptor bug occur? */
15728 || fstat(fileno(stdout), &st) != 0
15729 );
15730 }
15731}
15732_ACEOF
15733rm -f conftest$ac_exeext
15734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_func_vfork_works=yes
15745else
15746 echo "$as_me: program exited with status $ac_status" >&5
15747echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750( exit $ac_status )
15751ac_cv_func_vfork_works=no
15752fi
15753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15754fi
15755fi
15756echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15757echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15758
15759fi;
15760if test "x$ac_cv_func_fork_works" = xcross; then
15761 ac_cv_func_vfork_works=$ac_cv_func_vfork
15762 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15763echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15764fi
15765
15766if test "x$ac_cv_func_vfork_works" = xyes; then
15767
15768cat >>confdefs.h <<\_ACEOF
15769#define HAVE_WORKING_VFORK 1
15770_ACEOF
15771
15772else
15773
15774cat >>confdefs.h <<\_ACEOF
15775#define vfork fork
15776_ACEOF
15777
15778fi
15779if test "x$ac_cv_func_fork_works" = xyes; then
15780
15781cat >>confdefs.h <<\_ACEOF
15782#define HAVE_WORKING_FORK 1
15783_ACEOF
15784
15785fi
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809for ac_func in canonicalize_file_name realpath getrusage getuid \
15810 getgid poll pread64 sbrk setpgid setpgrp setsid \
15811 sigaction sigprocmask sigsetmask socketpair syscall \
15812 ttrace wborder setlocale iconvlist libiconvlist btowc
15813do
15814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815echo "$as_me:$LINENO: checking for $ac_func" >&5
15816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15817if eval "test \"\${$as_ac_var+set}\" = set"; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 cat >conftest.$ac_ext <<_ACEOF
15821/* confdefs.h. */
15822_ACEOF
15823cat confdefs.h >>conftest.$ac_ext
15824cat >>conftest.$ac_ext <<_ACEOF
15825/* end confdefs.h. */
15826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15828#define $ac_func innocuous_$ac_func
15829
15830/* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char $ac_func (); below.
15832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15833 <limits.h> exists even on freestanding compilers. */
15834
15835#ifdef __STDC__
15836# include <limits.h>
15837#else
15838# include <assert.h>
15839#endif
15840
15841#undef $ac_func
15842
15843/* Override any gcc2 internal prototype to avoid an error. */
15844#ifdef __cplusplus
15845extern "C"
15846{
15847#endif
15848/* We use char because int might match the return type of a gcc2
15849 builtin and then its argument prototype would still apply. */
15850char $ac_func ();
15851/* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855choke me
15856#else
15857char (*f) () = $ac_func;
15858#endif
15859#ifdef __cplusplus
15860}
15861#endif
15862
15863int
15864main ()
15865{
15866return f != $ac_func;
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_c_werror_flag"
15881 || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 eval "$as_ac_var=yes"
15894else
15895 echo "$as_me: failed program was:" >&5
15896sed 's/^/| /' conftest.$ac_ext >&5
15897
15898eval "$as_ac_var=no"
15899fi
15900rm -f conftest.err conftest.$ac_objext \
15901 conftest$ac_exeext conftest.$ac_ext
15902fi
15903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15905if test `eval echo '${'$as_ac_var'}'` = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15908_ACEOF
15909
15910fi
15911done
15912
15913
15914 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15915echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15916if test "${am_cv_langinfo_codeset+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925#include <langinfo.h>
15926int
15927main ()
15928{
15929char* cs = nl_langinfo(CODESET);
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 am_cv_langinfo_codeset=yes
15957else
15958 echo "$as_me: failed program was:" >&5
15959sed 's/^/| /' conftest.$ac_ext >&5
15960
15961am_cv_langinfo_codeset=no
15962fi
15963rm -f conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15965
15966fi
15967echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15968echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15969 if test $am_cv_langinfo_codeset = yes; then
15970
15971cat >>confdefs.h <<\_ACEOF
15972#define HAVE_LANGINFO_CODESET 1
15973_ACEOF
15974
15975 fi
15976
15977
15978# Check the return and argument types of ptrace. No canned test for
15979# this, so roll our own.
15980gdb_ptrace_headers='
15981#if HAVE_SYS_TYPES_H
15982# include <sys/types.h>
15983#endif
15984#if HAVE_SYS_PTRACE_H
15985# include <sys/ptrace.h>
15986#endif
15987#if HAVE_UNISTD_H
15988# include <unistd.h>
15989#endif
15990'
15991# There is no point in checking if we don't have a prototype.
15992echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15993echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15994if test "${ac_cv_have_decl_ptrace+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996else
15997 cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003$gdb_ptrace_headers
16004
16005int
16006main ()
16007{
16008#ifndef ptrace
16009 char *p = (char *) ptrace;
16010#endif
16011
16012 ;
16013 return 0;
16014}
16015_ACEOF
16016rm -f conftest.$ac_objext
16017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_cv_have_decl_ptrace=yes
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043ac_cv_have_decl_ptrace=no
16044fi
16045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16046fi
16047echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16048echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16049if test $ac_cv_have_decl_ptrace = yes; then
16050
16051cat >>confdefs.h <<_ACEOF
16052#define HAVE_DECL_PTRACE 1
16053_ACEOF
16054
16055
16056else
16057 cat >>confdefs.h <<_ACEOF
16058#define HAVE_DECL_PTRACE 0
16059_ACEOF
16060
16061
16062 : ${gdb_cv_func_ptrace_ret='int'}
16063 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16064
16065fi
16066
16067
16068# Check return type. Varargs (used on GNU/Linux) conflict with the
16069# empty argument list, so check for that explicitly.
16070echo "$as_me:$LINENO: checking return type of ptrace" >&5
16071echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16072if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081$gdb_ptrace_headers
16082int
16083main ()
16084{
16085extern long ptrace (enum __ptrace_request, ...);
16086 ;
16087 return 0;
16088}
16089_ACEOF
16090rm -f conftest.$ac_objext
16091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092 (eval $ac_compile) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 gdb_cv_func_ptrace_ret='long'
16113else
16114 echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123$gdb_ptrace_headers
16124int
16125main ()
16126{
16127extern int ptrace ();
16128 ;
16129 return 0;
16130}
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 gdb_cv_func_ptrace_ret='int'
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159gdb_cv_func_ptrace_ret='long'
16160fi
16161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16162fi
16163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16164fi
16165echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16166echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16167
16168cat >>confdefs.h <<_ACEOF
16169#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16170_ACEOF
16171
16172# Check argument types.
16173echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16174echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16175if test "${gdb_cv_func_ptrace_args+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177else
16178
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
16185$gdb_ptrace_headers
16186int
16187main ()
16188{
16189extern long ptrace (enum __ptrace_request, ...);
16190 ;
16191 return 0;
16192}
16193_ACEOF
16194rm -f conftest.$ac_objext
16195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16196 (eval $ac_compile) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -z "$ac_c_werror_flag"
16204 || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 gdb_cv_func_ptrace_args='int,int,long,long'
16217else
16218 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221
16222for gdb_arg1 in 'int' 'long'; do
16223 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16224 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16225 for gdb_arg4 in 'int' 'long'; do
16226 cat >conftest.$ac_ext <<_ACEOF
16227/* confdefs.h. */
16228_ACEOF
16229cat confdefs.h >>conftest.$ac_ext
16230cat >>conftest.$ac_ext <<_ACEOF
16231/* end confdefs.h. */
16232$gdb_ptrace_headers
16233int
16234main ()
16235{
16236
16237extern $gdb_cv_func_ptrace_ret
16238 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244rm -f conftest.$ac_objext
16245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>conftest.er1
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16267 break 4;
16268else
16269 echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272fi
16273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 for gdb_arg5 in 'int *' 'int' 'long'; do
16275 cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h. */
16281$gdb_ptrace_headers
16282int
16283main ()
16284{
16285
16286extern $gdb_cv_func_ptrace_ret
16287 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag"
16303 || test ! -s conftest.err'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315
16316gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16317 break 5;
16318else
16319 echo "$as_me: failed program was:" >&5
16320sed 's/^/| /' conftest.$ac_ext >&5
16321
16322fi
16323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16324 done
16325 done
16326 done
16327 done
16328done
16329# Provide a safe default value.
16330: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16331
16332fi
16333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16334fi
16335echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16336echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16337ac_save_IFS=$IFS; IFS=','
16338set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16339IFS=$ac_save_IFS
16340shift
16341
16342cat >>confdefs.h <<_ACEOF
16343#define PTRACE_TYPE_ARG3 $3
16344_ACEOF
16345
16346if test -n "$5"; then
16347
16348cat >>confdefs.h <<_ACEOF
16349#define PTRACE_TYPE_ARG5 $5
16350_ACEOF
16351
16352fi
16353
16354if test "$cross_compiling" = no; then
16355 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16356echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16357if test "${ac_cv_func_setpgrp_void+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360 if test "$cross_compiling" = yes; then
16361 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16362echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16363 { (exit 1); exit 1; }; }
16364else
16365 cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h. */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h. */
16371#if HAVE_UNISTD_H
16372# include <unistd.h>
16373#endif
16374
16375int
16376main ()
16377{
16378/* If this system has a BSD-style setpgrp which takes arguments,
16379 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16380 exit successfully. */
16381 exit (setpgrp (1,1) == -1 ? 0 : 1);
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest$ac_exeext
16387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_func_setpgrp_void=no
16398else
16399 echo "$as_me: program exited with status $ac_status" >&5
16400echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
16403( exit $ac_status )
16404ac_cv_func_setpgrp_void=yes
16405fi
16406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16407fi
16408fi
16409echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16410echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16411if test $ac_cv_func_setpgrp_void = yes; then
16412
16413cat >>confdefs.h <<\_ACEOF
16414#define SETPGRP_VOID 1
16415_ACEOF
16416
16417fi
16418
16419else
16420 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16421echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16422if test "${ac_cv_func_setpgrp_void+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425 cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431
16432#include <unistd.h>
16433
16434int
16435main ()
16436{
16437
16438 if (setpgrp(1,1) == -1)
16439 exit (0);
16440 else
16441 exit (1);
16442
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447rm -f conftest.$ac_objext
16448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>conftest.er1
16450 ac_status=$?
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_func_setpgrp_void=no
16470else
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474ac_cv_func_setpgrp_void=yes
16475fi
16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16477fi
16478echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16479echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16480if test $ac_cv_func_setpgrp_void = yes; then
16481 cat >>confdefs.h <<\_ACEOF
16482#define SETPGRP_VOID 1
16483_ACEOF
16484
16485fi
16486fi
16487
16488# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16489# since sigsetjmp might only be defined as a macro.
16490echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16491echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16492if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501
16502#include <setjmp.h>
16503
16504int
16505main ()
16506{
16507sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext
16513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16514 (eval $ac_compile) 2>conftest.er1
16515 ac_status=$?
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 gdb_cv_func_sigsetjmp=yes
16535else
16536 echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539gdb_cv_func_sigsetjmp=no
16540fi
16541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16542fi
16543echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16544echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16545if test $gdb_cv_func_sigsetjmp = yes; then
16546
16547cat >>confdefs.h <<\_ACEOF
16548#define HAVE_SIGSETJMP 1
16549_ACEOF
16550
16551fi
16552
16553# Assume we'll default to using the included libiberty regex.
16554gdb_use_included_regex=yes
16555
16556# However, if the system regex is GNU regex, then default to *not*
16557# using the included regex.
16558echo "$as_me:$LINENO: checking for GNU regex" >&5
16559echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16560if test "${gdb_cv_have_gnu_regex+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563 cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569#include <gnu-versions.h>
16570int
16571main ()
16572{
16573#define REGEX_INTERFACE_VERSION 1
16574#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16575# error "Version mismatch"
16576#endif
16577 ;
16578 return 0;
16579}
16580_ACEOF
16581rm -f conftest.$ac_objext
16582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16583 (eval $ac_compile) 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag"
16591 || test ! -s conftest.err'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 gdb_cv_have_gnu_regex=yes
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608gdb_cv_have_gnu_regex=no
16609fi
16610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16611fi
16612echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16613echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16614if test $gdb_cv_have_gnu_regex = yes; then
16615 gdb_use_included_regex=no
16616fi
16617
16618
16619# Check whether --with-included-regex or --without-included-regex was given.
16620if test "${with_included_regex+set}" = set; then
16621 withval="$with_included_regex"
16622 gdb_with_regex=$withval
16623else
16624 gdb_with_regex=$gdb_use_included_regex
16625fi;
16626if test "$gdb_with_regex" = yes; then
16627
16628cat >>confdefs.h <<\_ACEOF
16629#define USE_INCLUDED_REGEX 1
16630_ACEOF
16631
16632fi
16633
16634# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16635echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16636echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16637if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639else
16640 cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h. */
16646#include <sys/param.h>
16647#include <sys/proc.h>
16648
16649
16650int
16651main ()
16652{
16653static struct thread ac_aggr;
16654if (ac_aggr.td_pcb)
16655return 0;
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660rm -f conftest.$ac_objext
16661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16662 (eval $ac_compile) 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_member_struct_thread_td_pcb=yes
16683else
16684 echo "$as_me: failed program was:" >&5
16685sed 's/^/| /' conftest.$ac_ext >&5
16686
16687cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693#include <sys/param.h>
16694#include <sys/proc.h>
16695
16696
16697int
16698main ()
16699{
16700static struct thread ac_aggr;
16701if (sizeof ac_aggr.td_pcb)
16702return 0;
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext
16708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest.$ac_objext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_member_struct_thread_td_pcb=yes
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734ac_cv_member_struct_thread_td_pcb=no
16735fi
16736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16737fi
16738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739fi
16740echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16741echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16742if test $ac_cv_member_struct_thread_td_pcb = yes; then
16743
16744cat >>confdefs.h <<_ACEOF
16745#define HAVE_STRUCT_THREAD_TD_PCB 1
16746_ACEOF
16747
16748
16749fi
16750
16751
16752# See if <sys/lwp.h> defines `struct lwp`.
16753echo "$as_me:$LINENO: checking for struct lwp" >&5
16754echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16755if test "${gdb_cv_struct_lwp+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 cat >conftest.$ac_ext <<_ACEOF
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
16764#include <sys/param.h>
16765#include <sys/lwp.h>
16766int
16767main ()
16768{
16769struct lwp l;
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext
16775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 gdb_cv_struct_lwp=yes
16797else
16798 echo "$as_me: failed program was:" >&5
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
16801gdb_cv_struct_lwp=no
16802fi
16803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804fi
16805echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16806echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16807if test $gdb_cv_struct_lwp = yes; then
16808
16809cat >>confdefs.h <<\_ACEOF
16810#define HAVE_STRUCT_LWP 1
16811_ACEOF
16812
16813fi
16814
16815# See if <machine/reg.h> degines `struct reg'.
16816echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16817echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16818if test "${gdb_cv_struct_reg+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 cat >conftest.$ac_ext <<_ACEOF
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
16827#include <sys/types.h>
16828#include <machine/reg.h>
16829int
16830main ()
16831{
16832struct reg r;
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (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 gdb_cv_struct_reg=yes
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864gdb_cv_struct_reg=no
16865fi
16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867fi
16868echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16869echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16870if test $gdb_cv_struct_reg = yes; then
16871
16872cat >>confdefs.h <<\_ACEOF
16873#define HAVE_STRUCT_REG 1
16874_ACEOF
16875
16876fi
16877
16878# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16879# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16880echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16881echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16882if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884else
16885 cat >conftest.$ac_ext <<_ACEOF
16886/* confdefs.h. */
16887_ACEOF
16888cat confdefs.h >>conftest.$ac_ext
16889cat >>conftest.$ac_ext <<_ACEOF
16890/* end confdefs.h. */
16891#include <machine/reg.h>
16892
16893int
16894main ()
16895{
16896static struct reg ac_aggr;
16897if (ac_aggr.r_fs)
16898return 0;
16899 ;
16900 return 0;
16901}
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16905 (eval $ac_compile) 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag"
16913 || test ! -s conftest.err'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16925 ac_cv_member_struct_reg_r_fs=yes
16926else
16927 echo "$as_me: failed program was:" >&5
16928sed 's/^/| /' conftest.$ac_ext >&5
16929
16930cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936#include <machine/reg.h>
16937
16938int
16939main ()
16940{
16941static struct reg ac_aggr;
16942if (sizeof ac_aggr.r_fs)
16943return 0;
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext
16949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_member_struct_reg_r_fs=yes
16971else
16972 echo "$as_me: failed program was:" >&5
16973sed 's/^/| /' conftest.$ac_ext >&5
16974
16975ac_cv_member_struct_reg_r_fs=no
16976fi
16977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16978fi
16979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16980fi
16981echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16982echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16983if test $ac_cv_member_struct_reg_r_fs = yes; then
16984
16985cat >>confdefs.h <<_ACEOF
16986#define HAVE_STRUCT_REG_R_FS 1
16987_ACEOF
16988
16989
16990fi
16991echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16992echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16993if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996 cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
17002#include <machine/reg.h>
17003
17004int
17005main ()
17006{
17007static struct reg ac_aggr;
17008if (ac_aggr.r_gs)
17009return 0;
17010 ;
17011 return 0;
17012}
17013_ACEOF
17014rm -f conftest.$ac_objext
17015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_member_struct_reg_r_gs=yes
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041cat >conftest.$ac_ext <<_ACEOF
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
17047#include <machine/reg.h>
17048
17049int
17050main ()
17051{
17052static struct reg ac_aggr;
17053if (sizeof ac_aggr.r_gs)
17054return 0;
17055 ;
17056 return 0;
17057}
17058_ACEOF
17059rm -f conftest.$ac_objext
17060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try='test -s conftest.$ac_objext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_member_struct_reg_r_gs=yes
17082else
17083 echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
17086ac_cv_member_struct_reg_r_gs=no
17087fi
17088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17089fi
17090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17091fi
17092echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17093echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17094if test $ac_cv_member_struct_reg_r_gs = yes; then
17095
17096cat >>confdefs.h <<_ACEOF
17097#define HAVE_STRUCT_REG_R_GS 1
17098_ACEOF
17099
17100
17101fi
17102
17103
17104# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17105echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17106echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17107if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 cat >conftest.$ac_ext <<_ACEOF
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116#include <sys/ptrace.h>
17117int
17118main ()
17119{
17120PTRACE_GETREGS;
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest.$ac_objext
17126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 gdb_cv_have_ptrace_getregs=yes
17148else
17149 echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152gdb_cv_have_ptrace_getregs=no
17153fi
17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17155fi
17156
17157echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17158echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17159if test $gdb_cv_have_ptrace_getregs = yes; then
17160
17161cat >>confdefs.h <<\_ACEOF
17162#define HAVE_PTRACE_GETREGS 1
17163_ACEOF
17164
17165fi
17166
17167# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17168echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17169echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17170if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 cat >conftest.$ac_ext <<_ACEOF
17174/* confdefs.h. */
17175_ACEOF
17176cat confdefs.h >>conftest.$ac_ext
17177cat >>conftest.$ac_ext <<_ACEOF
17178/* end confdefs.h. */
17179#include <sys/ptrace.h>
17180int
17181main ()
17182{
17183PTRACE_GETFPXREGS;
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 gdb_cv_have_ptrace_getfpxregs=yes
17211else
17212 echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215gdb_cv_have_ptrace_getfpxregs=no
17216fi
17217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17218fi
17219
17220echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17221echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17222if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17223
17224cat >>confdefs.h <<\_ACEOF
17225#define HAVE_PTRACE_GETFPXREGS 1
17226_ACEOF
17227
17228fi
17229
17230# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17231echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17232echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17233if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236 cat >conftest.$ac_ext <<_ACEOF
17237/* confdefs.h. */
17238_ACEOF
17239cat confdefs.h >>conftest.$ac_ext
17240cat >>conftest.$ac_ext <<_ACEOF
17241/* end confdefs.h. */
17242#include <sys/types.h>
17243#include <sys/ptrace.h>
17244int
17245main ()
17246{
17247PT_GETDBREGS;
17248 ;
17249 return 0;
17250}
17251_ACEOF
17252rm -f conftest.$ac_objext
17253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>conftest.er1
17255 ac_status=$?
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -z "$ac_c_werror_flag"
17262 || test ! -s conftest.err'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 gdb_cv_have_pt_getdbregs=yes
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279gdb_cv_have_pt_getdbregs=no
17280fi
17281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282fi
17283
17284echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17285echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17286if test $gdb_cv_have_pt_getdbregs = yes; then
17287
17288cat >>confdefs.h <<\_ACEOF
17289#define HAVE_PT_GETDBREGS 1
17290_ACEOF
17291
17292fi
17293
17294# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17295echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17296echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17297if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17299else
17300 cat >conftest.$ac_ext <<_ACEOF
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306#include <sys/types.h>
17307#include <sys/ptrace.h>
17308int
17309main ()
17310{
17311PT_GETXMMREGS;
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext
17317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest.$ac_objext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 gdb_cv_have_pt_getxmmregs=yes
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343gdb_cv_have_pt_getxmmregs=no
17344fi
17345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346fi
17347
17348echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17349echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17350if test $gdb_cv_have_pt_getxmmregs = yes; then
17351
17352cat >>confdefs.h <<\_ACEOF
17353#define HAVE_PT_GETXMMREGS 1
17354_ACEOF
17355
17356fi
17357
17358# Detect which type of /proc is in use, such as for Unixware or Solaris.
17359
17360if test "${target}" = "${host}"; then
17361 case "${host}" in
17362 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17363
17364cat >>confdefs.h <<\_ACEOF
17365#define NEW_PROC_API 1
17366_ACEOF
17367
17368 ;;
17369 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17370
17371cat >>confdefs.h <<\_ACEOF
17372#define NEW_PROC_API 1
17373_ACEOF
17374
17375 ;;
17376 mips-sgi-irix5*)
17377 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17378
17379cat >>confdefs.h <<\_ACEOF
17380#define _KMEMUSER 1
17381_ACEOF
17382
17383 ;;
17384 esac
17385fi
17386
17387if test "$ac_cv_header_sys_procfs_h" = yes; then
17388 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17389echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17390 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392else
17393 cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399
17400#define _SYSCALL32
17401#include <sys/procfs.h>
17402int
17403main ()
17404{
17405pstatus_t avar
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext
17411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17433else
17434 echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437bfd_cv_have_sys_procfs_type_pstatus_t=no
17438
17439fi
17440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17441fi
17442
17443 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17444
17445cat >>confdefs.h <<\_ACEOF
17446#define HAVE_PSTATUS_T 1
17447_ACEOF
17448
17449 fi
17450 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17451echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17452
17453 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17454echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17455 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457else
17458 cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
17464
17465#define _SYSCALL32
17466#include <sys/procfs.h>
17467int
17468main ()
17469{
17470prrun_t avar
17471 ;
17472 return 0;
17473}
17474_ACEOF
17475rm -f conftest.$ac_objext
17476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag"
17485 || test ! -s conftest.err'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 bfd_cv_have_sys_procfs_type_prrun_t=yes
17498else
17499 echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502bfd_cv_have_sys_procfs_type_prrun_t=no
17503
17504fi
17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17506fi
17507
17508 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17509
17510cat >>confdefs.h <<\_ACEOF
17511#define HAVE_PRRUN_T 1
17512_ACEOF
17513
17514 fi
17515 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17516echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17517
17518 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17519echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17520 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529
17530#define _SYSCALL32
17531#include <sys/procfs.h>
17532int
17533main ()
17534{
17535gregset_t avar
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
17541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } &&
17549 { ac_try='test -z "$ac_c_werror_flag"
17550 || test ! -s conftest.err'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 bfd_cv_have_sys_procfs_type_gregset_t=yes
17563else
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567bfd_cv_have_sys_procfs_type_gregset_t=no
17568
17569fi
17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17571fi
17572
17573 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17574
17575cat >>confdefs.h <<\_ACEOF
17576#define HAVE_GREGSET_T 1
17577_ACEOF
17578
17579 fi
17580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17581echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17582
17583 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17584echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17585 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587else
17588 cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h. */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h. */
17594
17595#define _SYSCALL32
17596#include <sys/procfs.h>
17597int
17598main ()
17599{
17600fpregset_t avar
17601 ;
17602 return 0;
17603}
17604_ACEOF
17605rm -f conftest.$ac_objext
17606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17628else
17629 echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632bfd_cv_have_sys_procfs_type_fpregset_t=no
17633
17634fi
17635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17636fi
17637
17638 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17639
17640cat >>confdefs.h <<\_ACEOF
17641#define HAVE_FPREGSET_T 1
17642_ACEOF
17643
17644 fi
17645 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17646echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17647
17648 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17649echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17650 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652else
17653 cat >conftest.$ac_ext <<_ACEOF
17654/* confdefs.h. */
17655_ACEOF
17656cat confdefs.h >>conftest.$ac_ext
17657cat >>conftest.$ac_ext <<_ACEOF
17658/* end confdefs.h. */
17659
17660#define _SYSCALL32
17661#include <sys/procfs.h>
17662int
17663main ()
17664{
17665prgregset_t avar
17666 ;
17667 return 0;
17668}
17669_ACEOF
17670rm -f conftest.$ac_objext
17671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17672 (eval $ac_compile) 2>conftest.er1
17673 ac_status=$?
17674 grep -v '^ *+' conftest.er1 >conftest.err
17675 rm -f conftest.er1
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -z "$ac_c_werror_flag"
17680 || test ! -s conftest.err'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17693else
17694 echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697bfd_cv_have_sys_procfs_type_prgregset_t=no
17698
17699fi
17700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17701fi
17702
17703 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17704
17705cat >>confdefs.h <<\_ACEOF
17706#define HAVE_PRGREGSET_T 1
17707_ACEOF
17708
17709 fi
17710 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17711echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17712
17713 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17714echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17715 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717else
17718 cat >conftest.$ac_ext <<_ACEOF
17719/* confdefs.h. */
17720_ACEOF
17721cat confdefs.h >>conftest.$ac_ext
17722cat >>conftest.$ac_ext <<_ACEOF
17723/* end confdefs.h. */
17724
17725#define _SYSCALL32
17726#include <sys/procfs.h>
17727int
17728main ()
17729{
17730prfpregset_t avar
17731 ;
17732 return 0;
17733}
17734_ACEOF
17735rm -f conftest.$ac_objext
17736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag"
17745 || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762bfd_cv_have_sys_procfs_type_prfpregset_t=no
17763
17764fi
17765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17766fi
17767
17768 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17769
17770cat >>confdefs.h <<\_ACEOF
17771#define HAVE_PRFPREGSET_T 1
17772_ACEOF
17773
17774 fi
17775 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17776echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17777
17778 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17779echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17780 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789
17790#define _SYSCALL32
17791#include <sys/procfs.h>
17792int
17793main ()
17794{
17795prgregset32_t avar
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802 (eval $ac_compile) 2>conftest.er1
17803 ac_status=$?
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
17809 { ac_try='test -z "$ac_c_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17823else
17824 echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
17827bfd_cv_have_sys_procfs_type_prgregset32_t=no
17828
17829fi
17830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831fi
17832
17833 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17834
17835cat >>confdefs.h <<\_ACEOF
17836#define HAVE_PRGREGSET32_T 1
17837_ACEOF
17838
17839 fi
17840 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17841echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17842
17843 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17844echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17845 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847else
17848 cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h. */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h. */
17854
17855#define _SYSCALL32
17856#include <sys/procfs.h>
17857int
17858main ()
17859{
17860prfpregset32_t avar
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext
17866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17867 (eval $ac_compile) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
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); }; } &&
17881 { ac_try='test -s conftest.$ac_objext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17888else
17889 echo "$as_me: failed program was:" >&5
17890sed 's/^/| /' conftest.$ac_ext >&5
17891
17892bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17893
17894fi
17895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17896fi
17897
17898 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17899
17900cat >>confdefs.h <<\_ACEOF
17901#define HAVE_PRFPREGSET32_T 1
17902_ACEOF
17903
17904 fi
17905 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17906echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17907
17908 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17909echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17910 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912else
17913 cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
17919
17920#define _SYSCALL32
17921#include <sys/procfs.h>
17922int
17923main ()
17924{
17925lwpid_t avar
17926 ;
17927 return 0;
17928}
17929_ACEOF
17930rm -f conftest.$ac_objext
17931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932 (eval $ac_compile) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag"
17940 || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17953else
17954 echo "$as_me: failed program was:" >&5
17955sed 's/^/| /' conftest.$ac_ext >&5
17956
17957bfd_cv_have_sys_procfs_type_lwpid_t=no
17958
17959fi
17960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17961fi
17962
17963 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17964
17965cat >>confdefs.h <<\_ACEOF
17966#define HAVE_LWPID_T 1
17967_ACEOF
17968
17969 fi
17970 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17971echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17972
17973 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17974echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17975 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977else
17978 cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h. */
17984
17985#define _SYSCALL32
17986#include <sys/procfs.h>
17987int
17988main ()
17989{
17990psaddr_t avar
17991 ;
17992 return 0;
17993}
17994_ACEOF
17995rm -f conftest.$ac_objext
17996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18018else
18019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
18022bfd_cv_have_sys_procfs_type_psaddr_t=no
18023
18024fi
18025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18026fi
18027
18028 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18029
18030cat >>confdefs.h <<\_ACEOF
18031#define HAVE_PSADDR_T 1
18032_ACEOF
18033
18034 fi
18035 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18036echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18037
18038 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18039echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18040 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042else
18043 cat >conftest.$ac_ext <<_ACEOF
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
18049
18050#define _SYSCALL32
18051#include <sys/procfs.h>
18052int
18053main ()
18054{
18055prsysent_t avar
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087bfd_cv_have_sys_procfs_type_prsysent_t=no
18088
18089fi
18090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18091fi
18092
18093 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18094
18095cat >>confdefs.h <<\_ACEOF
18096#define HAVE_PRSYSENT_T 1
18097_ACEOF
18098
18099 fi
18100 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18101echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18102
18103 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18104echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18105 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 cat >conftest.$ac_ext <<_ACEOF
18109/* confdefs.h. */
18110_ACEOF
18111cat confdefs.h >>conftest.$ac_ext
18112cat >>conftest.$ac_ext <<_ACEOF
18113/* end confdefs.h. */
18114
18115#define _SYSCALL32
18116#include <sys/procfs.h>
18117int
18118main ()
18119{
18120pr_sigset_t avar
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest.$ac_objext
18126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127 (eval $ac_compile) 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag"
18135 || test ! -s conftest.err'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest.$ac_objext'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18148else
18149 echo "$as_me: failed program was:" >&5
18150sed 's/^/| /' conftest.$ac_ext >&5
18151
18152bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18153
18154fi
18155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18156fi
18157
18158 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18159
18160cat >>confdefs.h <<\_ACEOF
18161#define HAVE_PR_SIGSET_T 1
18162_ACEOF
18163
18164 fi
18165 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18166echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18167
18168 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18169echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18170 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172else
18173 cat >conftest.$ac_ext <<_ACEOF
18174/* confdefs.h. */
18175_ACEOF
18176cat confdefs.h >>conftest.$ac_ext
18177cat >>conftest.$ac_ext <<_ACEOF
18178/* end confdefs.h. */
18179
18180#define _SYSCALL32
18181#include <sys/procfs.h>
18182int
18183main ()
18184{
18185pr_sigaction64_t avar
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext
18191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>conftest.er1
18193 ac_status=$?
18194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest.$ac_objext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18213else
18214 echo "$as_me: failed program was:" >&5
18215sed 's/^/| /' conftest.$ac_ext >&5
18216
18217bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18218
18219fi
18220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18221fi
18222
18223 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18224
18225cat >>confdefs.h <<\_ACEOF
18226#define HAVE_PR_SIGACTION64_T 1
18227_ACEOF
18228
18229 fi
18230 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18231echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18232
18233 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18234echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18235 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237else
18238 cat >conftest.$ac_ext <<_ACEOF
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244
18245#define _SYSCALL32
18246#include <sys/procfs.h>
18247int
18248main ()
18249{
18250pr_siginfo64_t avar
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext
18256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18257 (eval $ac_compile) 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest.$ac_objext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18278else
18279 echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18283
18284fi
18285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18286fi
18287
18288 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18289
18290cat >>confdefs.h <<\_ACEOF
18291#define HAVE_PR_SIGINFO64_T 1
18292_ACEOF
18293
18294 fi
18295 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18296echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18297
18298
18299
18300
18301
18302 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18303 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18304echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18305 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308 if test "$cross_compiling" = yes; then
18309 gdb_cv_prfpregset_t_broken=yes
18310else
18311 cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317#include <sys/procfs.h>
18318 int main ()
18319 {
18320 if (sizeof (prfpregset_t) == sizeof (void *))
18321 return 1;
18322 return 0;
18323 }
18324_ACEOF
18325rm -f conftest$ac_exeext
18326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 gdb_cv_prfpregset_t_broken=no
18337else
18338 echo "$as_me: program exited with status $ac_status" >&5
18339echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
18342( exit $ac_status )
18343gdb_cv_prfpregset_t_broken=yes
18344fi
18345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18346fi
18347fi
18348
18349 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18350echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18351 if test $gdb_cv_prfpregset_t_broken = yes; then
18352
18353cat >>confdefs.h <<\_ACEOF
18354#define PRFPREGSET_T_BROKEN 1
18355_ACEOF
18356
18357 fi
18358 fi
18359
18360
18361 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18362echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18363 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18365else
18366 cat >conftest.$ac_ext <<_ACEOF
18367/* confdefs.h. */
18368_ACEOF
18369cat confdefs.h >>conftest.$ac_ext
18370cat >>conftest.$ac_ext <<_ACEOF
18371/* end confdefs.h. */
18372#include <unistd.h>
18373#include <sys/types.h>
18374#include <sys/procfs.h>
18375
18376int
18377main ()
18378{
18379
18380 int dummy;;
18381 dummy = ioctl(0, PIOCSET, &dummy);
18382
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext
18388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18390 ac_status=$?
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 gdb_cv_have_procfs_piocset=yes
18410else
18411 echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414gdb_cv_have_procfs_piocset=no
18415fi
18416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417fi
18418
18419 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18420echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18421 if test $gdb_cv_have_procfs_piocset = yes; then
18422
18423cat >>confdefs.h <<\_ACEOF
18424#define HAVE_PROCFS_PIOCSET 1
18425_ACEOF
18426
18427 fi
18428fi
18429
18430if test ${host} = ${target} ; then
18431
18432 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18433echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18434 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436else
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443#include <link.h>
18444int
18445main ()
18446{
18447struct link_map lm; (void) lm.l_addr;
18448 ;
18449 return 0;
18450}
18451_ACEOF
18452rm -f conftest.$ac_objext
18453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454 (eval $ac_compile) 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag"
18462 || test ! -s conftest.err'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest.$ac_objext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 gdb_cv_have_struct_link_map_with_l_members=yes
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479gdb_cv_have_struct_link_map_with_l_members=no
18480fi
18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18482fi
18483
18484 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18485echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18486 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18487
18488cat >>confdefs.h <<\_ACEOF
18489#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18490_ACEOF
18491
18492 fi
18493
18494
18495 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18496echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18497 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18499else
18500 cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506#include <sys/types.h>
18507#include <link.h>
18508int
18509main ()
18510{
18511struct link_map lm; (void) lm.lm_addr;
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext
18517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18518 (eval $ac_compile) 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag"
18526 || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 gdb_cv_have_struct_link_map_with_lm_members=yes
18539else
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543gdb_cv_have_struct_link_map_with_lm_members=no
18544fi
18545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546fi
18547
18548 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18549echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18550 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18551
18552cat >>confdefs.h <<\_ACEOF
18553#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18554_ACEOF
18555
18556 fi
18557
18558
18559 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18560echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18561 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563else
18564 cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570#include <sys/types.h>
18571#ifdef HAVE_NLIST_H
18572#include <nlist.h>
18573#endif
18574#include <link.h>
18575int
18576main ()
18577{
18578struct so_map lm; (void) lm.som_addr;
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585 (eval $ac_compile) 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 gdb_cv_have_struct_so_map_with_som_members=yes
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610gdb_cv_have_struct_so_map_with_som_members=no
18611fi
18612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18613fi
18614
18615 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18616echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18617 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18618
18619cat >>confdefs.h <<\_ACEOF
18620#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18621_ACEOF
18622
18623 fi
18624
18625
18626 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18627echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18628 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637#define _SYSCALL32
18638#include <sys/link.h>
18639int
18640main ()
18641{
18642struct link_map32 l;
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext
18648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649 (eval $ac_compile) 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag"
18657 || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 gdb_cv_have_struct_link_map32=yes
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674gdb_cv_have_struct_link_map32=no
18675fi
18676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18677fi
18678
18679 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18680echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18681 if test $gdb_cv_have_struct_link_map32 = yes; then
18682
18683cat >>confdefs.h <<\_ACEOF
18684#define HAVE_STRUCT_LINK_MAP32 1
18685_ACEOF
18686
18687
18688cat >>confdefs.h <<\_ACEOF
18689#define _SYSCALL32 1
18690_ACEOF
18691
18692 fi
18693fi
18694
18695# Check if the compiler supports the `long long' type.
18696
18697echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18698echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18699if test "${gdb_cv_c_long_long+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701else
18702 cat >conftest.$ac_ext <<_ACEOF
18703/* confdefs.h. */
18704_ACEOF
18705cat confdefs.h >>conftest.$ac_ext
18706cat >>conftest.$ac_ext <<_ACEOF
18707/* end confdefs.h. */
18708extern long long foo;
18709int
18710main ()
18711{
18712switch (foo & 2) { case 0: return 1; }
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 gdb_cv_c_long_long=yes
18740else
18741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744gdb_cv_c_long_long=no
18745fi
18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747fi
18748echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18749echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18750if test $gdb_cv_c_long_long = yes; then
18751
18752cat >>confdefs.h <<\_ACEOF
18753#define CC_HAS_LONG_LONG 1
18754_ACEOF
18755
18756fi
18757
18758# Check if the compiler and runtime support printing long longs.
18759
18760echo "$as_me:$LINENO: checking for long long support in printf" >&5
18761echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18762if test "${gdb_cv_printf_has_long_long+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764else
18765 if test "$cross_compiling" = yes; then
18766 gdb_cv_printf_has_long_long=no
18767else
18768 cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774$ac_includes_default
18775int
18776main ()
18777{
18778char buf[32];
18779 long long l = 0;
18780 l = (l << 16) + 0x0123;
18781 l = (l << 16) + 0x4567;
18782 l = (l << 16) + 0x89ab;
18783 l = (l << 16) + 0xcdef;
18784 sprintf (buf, "0x%016llx", l);
18785 return (strcmp ("0x0123456789abcdef", buf));
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest$ac_exeext
18791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792 (eval $ac_link) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 gdb_cv_printf_has_long_long=yes
18802else
18803 echo "$as_me: program exited with status $ac_status" >&5
18804echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807( exit $ac_status )
18808gdb_cv_printf_has_long_long=no
18809fi
18810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18811fi
18812fi
18813echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18814echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18815if test $gdb_cv_printf_has_long_long = yes; then
18816
18817cat >>confdefs.h <<\_ACEOF
18818#define PRINTF_HAS_LONG_LONG 1
18819_ACEOF
18820
18821fi
18822
18823# Check if the compiler and runtime support printing decfloats.
18824
18825echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18826echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18827if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830 if test "$cross_compiling" = yes; then
18831 gdb_cv_printf_has_decfloat=no
18832else
18833 cat >conftest.$ac_ext <<_ACEOF
18834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
18839$ac_includes_default
18840int
18841main ()
18842{
18843char buf[64];
18844 _Decimal32 d32 = 1.2345df;
18845 _Decimal64 d64 = 1.2345dd;
18846 _Decimal128 d128 = 1.2345dl;
18847 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18848 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest$ac_exeext
18854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 gdb_cv_printf_has_decfloat=yes
18865else
18866 echo "$as_me: program exited with status $ac_status" >&5
18867echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870( exit $ac_status )
18871gdb_cv_printf_has_decfloat=no
18872fi
18873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18874fi
18875fi
18876echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18877echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18878if test $gdb_cv_printf_has_decfloat = yes; then
18879
18880cat >>confdefs.h <<\_ACEOF
18881#define PRINTF_HAS_DECFLOAT 1
18882_ACEOF
18883
18884fi
18885
18886# Check if the compiler supports the `long double' type. We can't use
18887# AC_C_LONG_DOUBLE because that one does additional checks on the
18888# constants defined in <float.h> that fail on some systems,
18889# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18890
18891echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18892echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18893if test "${gdb_cv_c_long_double+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896 cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902long double foo;
18903_ACEOF
18904rm -f conftest.$ac_objext
18905if { (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 gdb_cv_c_long_double=yes
18927else
18928 echo "$as_me: failed program was:" >&5
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
18931gdb_cv_c_long_double=no
18932fi
18933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18934fi
18935echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18936echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18937if test $gdb_cv_c_long_double = yes; then
18938
18939cat >>confdefs.h <<\_ACEOF
18940#define HAVE_LONG_DOUBLE 1
18941_ACEOF
18942
18943fi
18944
18945# Check if the compiler and runtime support printing long doubles.
18946
18947echo "$as_me:$LINENO: checking for long double support in printf" >&5
18948echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18949if test "${gdb_cv_printf_has_long_double+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 if test "$cross_compiling" = yes; then
18953 gdb_cv_printf_has_long_double=no
18954else
18955 cat >conftest.$ac_ext <<_ACEOF
18956/* confdefs.h. */
18957_ACEOF
18958cat confdefs.h >>conftest.$ac_ext
18959cat >>conftest.$ac_ext <<_ACEOF
18960/* end confdefs.h. */
18961$ac_includes_default
18962int
18963main ()
18964{
18965char buf[16];
18966 long double f = 3.141592653;
18967 sprintf (buf, "%Lg", f);
18968 return (strncmp ("3.14159", buf, 7));
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest$ac_exeext
18974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18975 (eval $ac_link) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 gdb_cv_printf_has_long_double=yes
18985else
18986 echo "$as_me: program exited with status $ac_status" >&5
18987echo "$as_me: failed program was:" >&5
18988sed 's/^/| /' conftest.$ac_ext >&5
18989
18990( exit $ac_status )
18991gdb_cv_printf_has_long_double=no
18992fi
18993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18994fi
18995fi
18996echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18997echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18998if test $gdb_cv_printf_has_long_double = yes; then
18999
19000cat >>confdefs.h <<\_ACEOF
19001#define PRINTF_HAS_LONG_DOUBLE 1
19002_ACEOF
19003
19004fi
19005
19006# Check if the compiler and runtime support scanning long doubles.
19007
19008echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19009echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19010if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013 if test "$cross_compiling" = yes; then
19014 gdb_cv_scanf_has_long_double=no
19015else
19016 cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022#include <stdio.h>
19023int
19024main ()
19025{
19026char *buf = "3.141592653";
19027 long double f = 0;
19028 sscanf (buf, "%Lg", &f);
19029 return !(f > 3.14159 && f < 3.14160);
19030 ;
19031 return 0;
19032}
19033_ACEOF
19034rm -f conftest$ac_exeext
19035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 gdb_cv_scanf_has_long_double=yes
19046else
19047 echo "$as_me: program exited with status $ac_status" >&5
19048echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051( exit $ac_status )
19052gdb_cv_scanf_has_long_double=no
19053fi
19054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19055fi
19056fi
19057echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19058echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19059if test $gdb_cv_scanf_has_long_double = yes; then
19060
19061cat >>confdefs.h <<\_ACEOF
19062#define SCANF_HAS_LONG_DOUBLE 1
19063_ACEOF
19064
19065fi
19066
19067case ${host_os} in
19068aix*)
19069 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19070echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19071if test "${gdb_cv_bigtoc+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073else
19074
19075 SAVE_LDFLAGS=$LDFLAGS
19076
19077 case $GCC in
19078 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19079 *) gdb_cv_bigtoc=-bbigtoc ;;
19080 esac
19081
19082 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19083 cat >conftest.$ac_ext <<_ACEOF
19084/* confdefs.h. */
19085_ACEOF
19086cat confdefs.h >>conftest.$ac_ext
19087cat >>conftest.$ac_ext <<_ACEOF
19088/* end confdefs.h. */
19089
19090int
19091main ()
19092{
19093int i;
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100 (eval $ac_link) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest$ac_exeext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 :
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125gdb_cv_bigtoc=
19126fi
19127rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LDFLAGS="${SAVE_LDFLAGS}"
19130
19131fi
19132echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19133echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19134 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19135 ;;
19136esac
19137
19138
19139
19140if test ${build} = ${host} -a ${host} = ${target} ; then
19141 case ${host_os} in
19142 hpux*)
19143 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19144echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19145 if test -f /usr/include/dce/cma_config.h ; then
19146 if test "$GCC" = "yes" ; then
19147 echo "$as_me:$LINENO: result: yes" >&5
19148echo "${ECHO_T}yes" >&6
19149
19150cat >>confdefs.h <<\_ACEOF
19151#define HAVE_HPUX_THREAD_SUPPORT 1
19152_ACEOF
19153
19154 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19155 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19156 else
19157 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19158echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19159 fi
19160 else
19161 echo "$as_me:$LINENO: result: no" >&5
19162echo "${ECHO_T}no" >&6
19163 fi
19164 ;;
19165 solaris*)
19166 # See if thread_db library is around for Solaris thread debugging.
19167 # Note that we must explicitly test for version 1 of the library
19168 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19169 # the same API.
19170 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19171echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19172 if test -f /usr/lib/libthread_db.so.1 ; then
19173 echo "$as_me:$LINENO: result: yes" >&5
19174echo "${ECHO_T}yes" >&6
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE_THREAD_DB_LIB 1
19178_ACEOF
19179
19180 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19181 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19182
19183echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19184echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19185if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187else
19188 ac_check_lib_save_LIBS=$LIBS
19189LIBS="-ldl $LIBS"
19190cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196
19197/* Override any gcc2 internal prototype to avoid an error. */
19198#ifdef __cplusplus
19199extern "C"
19200#endif
19201/* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19203char dlopen ();
19204int
19205main ()
19206{
19207dlopen ();
19208 ;
19209 return 0;
19210}
19211_ACEOF
19212rm -f conftest.$ac_objext conftest$ac_exeext
19213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214 (eval $ac_link) 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_c_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_cv_lib_dl_dlopen=yes
19235else
19236 echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239ac_cv_lib_dl_dlopen=no
19240fi
19241rm -f conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243LIBS=$ac_check_lib_save_LIBS
19244fi
19245echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19246echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19247if test $ac_cv_lib_dl_dlopen = yes; then
19248 cat >>confdefs.h <<_ACEOF
19249#define HAVE_LIBDL 1
19250_ACEOF
19251
19252 LIBS="-ldl $LIBS"
19253
19254fi
19255
19256 if test "$GCC" = "yes" ; then
19257 # The GNU linker requires the -export-dynamic option to make
19258 # all symbols visible in the dynamic symbol table.
19259 hold_ldflags=$LDFLAGS
19260 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19261echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19262 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19263 cat >conftest.$ac_ext <<_ACEOF
19264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
19268/* end confdefs.h. */
19269
19270int
19271main ()
19272{
19273int i;
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext conftest$ac_exeext
19279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19280 (eval $ac_link) 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest$ac_exeext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 found=yes
19301else
19302 echo "$as_me: failed program was:" >&5
19303sed 's/^/| /' conftest.$ac_ext >&5
19304
19305found=no
19306fi
19307rm -f conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LDFLAGS=$hold_ldflags
19310 echo "$as_me:$LINENO: result: $found" >&5
19311echo "${ECHO_T}$found" >&6
19312 if test $found = yes; then
19313 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19314 fi
19315 fi
19316 # Sun randomly tweaked the prototypes in <proc_service.h>
19317 # at one point.
19318 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19319echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19320 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323
19324 cat >conftest.$ac_ext <<_ACEOF
19325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330
19331 #include <proc_service.h>
19332 ps_err_e ps_pdwrite
19333 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19334
19335int
19336main ()
19337{
19338
19339 ;
19340 return 0;
19341}
19342_ACEOF
19343rm -f conftest.$ac_objext
19344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 gdb_cv_proc_service_is_old=no
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370gdb_cv_proc_service_is_old=yes
19371fi
19372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373
19374fi
19375
19376 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19377echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19378 if test $gdb_cv_proc_service_is_old = yes; then
19379
19380cat >>confdefs.h <<\_ACEOF
19381#define PROC_SERVICE_IS_OLD 1
19382_ACEOF
19383
19384 fi
19385 else
19386 echo "$as_me:$LINENO: result: no" >&5
19387echo "${ECHO_T}no" >&6
19388 fi
19389 ;;
19390 aix*)
19391 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19392echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19393 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395else
19396 cat >conftest.$ac_ext <<_ACEOF
19397/* confdefs.h. */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
19401/* end confdefs.h. */
19402#include <sys/pthdebug.h>
19403int
19404main ()
19405{
19406#ifndef PTHDB_VERSION_3
19407 #error
19408 #endif
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext
19414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19416 ac_status=$?
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 gdb_cv_have_aix_thread_debug=yes
19436else
19437 echo "$as_me: failed program was:" >&5
19438sed 's/^/| /' conftest.$ac_ext >&5
19439
19440gdb_cv_have_aix_thread_debug=no
19441fi
19442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19443fi
19444
19445 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19446echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19447 if test $gdb_cv_have_aix_thread_debug = yes; then
19448 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19449 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19450 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19451 fi
19452 ;;
19453 esac
19454
19455fi
19456
19457if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19458 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19459echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19460if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462else
19463 cat >conftest.$ac_ext <<_ACEOF
19464/* confdefs.h. */
19465_ACEOF
19466cat confdefs.h >>conftest.$ac_ext
19467cat >>conftest.$ac_ext <<_ACEOF
19468/* end confdefs.h. */
19469#include <thread_db.h>
19470int
19471main ()
19472{
19473int i = TD_NOTALLOC;
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext
19479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19480 (eval $ac_compile) 2>conftest.er1
19481 ac_status=$?
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_c_werror_flag"
19488 || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 gdb_cv_thread_db_h_has_td_notalloc=yes
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505gdb_cv_thread_db_h_has_td_notalloc=no
19506
19507fi
19508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509
19510fi
19511echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19512echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19513 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19514echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19515if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517else
19518 cat >conftest.$ac_ext <<_ACEOF
19519/* confdefs.h. */
19520_ACEOF
19521cat confdefs.h >>conftest.$ac_ext
19522cat >>conftest.$ac_ext <<_ACEOF
19523/* end confdefs.h. */
19524#include <thread_db.h>
19525int
19526main ()
19527{
19528int i = TD_VERSION;
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 gdb_cv_thread_db_h_has_td_version=yes
19556else
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560gdb_cv_thread_db_h_has_td_version=no
19561
19562fi
19563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19564
19565fi
19566echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19567echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19568 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19569echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19570if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
19579#include <thread_db.h>
19580int
19581main ()
19582{
19583int i = TD_NOTLS;
19584 ;
19585 return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 gdb_cv_thread_db_h_has_td_notls=yes
19611else
19612 echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615gdb_cv_thread_db_h_has_td_notls=no
19616
19617fi
19618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19619
19620fi
19621echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19622echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19623fi
19624if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19625
19626cat >>confdefs.h <<\_ACEOF
19627#define THREAD_DB_HAS_TD_NOTALLOC 1
19628_ACEOF
19629
19630fi
19631if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19632
19633cat >>confdefs.h <<\_ACEOF
19634#define THREAD_DB_HAS_TD_VERSION 1
19635_ACEOF
19636
19637fi
19638if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19639
19640cat >>confdefs.h <<\_ACEOF
19641#define THREAD_DB_HAS_TD_NOTLS 1
19642_ACEOF
19643
19644fi
19645
19646if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19647 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19648echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19649if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19651else
19652 cat >conftest.$ac_ext <<_ACEOF
19653/* confdefs.h. */
19654_ACEOF
19655cat confdefs.h >>conftest.$ac_ext
19656cat >>conftest.$ac_ext <<_ACEOF
19657/* end confdefs.h. */
19658#include <sys/syscall.h>
19659int
19660main ()
19661{
19662int i = __NR_tkill;
19663 ;
19664 return 0;
19665}
19666_ACEOF
19667rm -f conftest.$ac_objext
19668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19689 gdb_cv_sys_syscall_h_has_tkill=yes
19690else
19691 echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
19694gdb_cv_sys_syscall_h_has_tkill=no
19695
19696fi
19697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19698
19699fi
19700echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19701echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19702fi
19703if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19704
19705cat >>confdefs.h <<\_ACEOF
19706#define HAVE_TKILL_SYSCALL 1
19707_ACEOF
19708
19709fi
19710
19711echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19712echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19713if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715else
19716 cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722#include <sys/personality.h>
19723
19724int
19725main ()
19726{
19727#ifndef ADDR_NO_RANDOMIZE
19728 char *p = (char *) ADDR_NO_RANDOMIZE;
19729#endif
19730
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest.$ac_objext
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19758else
19759 echo "$as_me: failed program was:" >&5
19760sed 's/^/| /' conftest.$ac_ext >&5
19761
19762ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19763fi
19764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765fi
19766echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19767echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19768if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19769
19770cat >>confdefs.h <<_ACEOF
19771#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19772_ACEOF
19773
19774
19775else
19776 cat >>confdefs.h <<_ACEOF
19777#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19778_ACEOF
19779
19780
19781fi
19782
19783
19784
19785if test "$cross_compiling" = yes; then
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792#include <sys/personality.h>
19793int
19794main ()
19795{
19796
19797# if !HAVE_DECL_ADDR_NO_RANDOMIZE
19798# define ADDR_NO_RANDOMIZE 0x0040000
19799# endif
19800 /* Test the flag could be set and stays set. */
19801 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19802 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19803 return 1
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext conftest$ac_exeext
19809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19810 (eval $ac_link) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest$ac_exeext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 have_personality=true
19831else
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835have_personality=false
19836fi
19837rm -f conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19839else
19840 cat >conftest.$ac_ext <<_ACEOF
19841/* confdefs.h. */
19842_ACEOF
19843cat confdefs.h >>conftest.$ac_ext
19844cat >>conftest.$ac_ext <<_ACEOF
19845/* end confdefs.h. */
19846#include <sys/personality.h>
19847int
19848main ()
19849{
19850
19851# if !HAVE_DECL_ADDR_NO_RANDOMIZE
19852# define ADDR_NO_RANDOMIZE 0x0040000
19853# endif
19854 /* Test the flag could be set and stays set. */
19855 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19856 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19857 return 1
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862rm -f conftest$ac_exeext
19863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864 (eval $ac_link) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 have_personality=true
19874else
19875 echo "$as_me: program exited with status $ac_status" >&5
19876echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
19879( exit $ac_status )
19880have_personality=false
19881fi
19882rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19883fi
19884if $have_personality
19885then
19886
19887cat >>confdefs.h <<\_ACEOF
19888#define HAVE_PERSONALITY 1
19889_ACEOF
19890
19891fi
19892
19893
19894
19895# Check whether --with-sysroot or --without-sysroot was given.
19896if test "${with_sysroot+set}" = set; then
19897 withval="$with_sysroot"
19898
19899 case ${with_sysroot} in
19900 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19901 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19902 esac
19903
19904 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19905
19906 if test "x$prefix" = xNONE; then
19907 test_prefix=/usr/local
19908 else
19909 test_prefix=$prefix
19910 fi
19911 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19912 test_exec_prefix=$test_prefix
19913 else
19914 test_exec_prefix=$exec_prefix
19915 fi
19916 case ${TARGET_SYSTEM_ROOT} in
19917 "${test_prefix}"|"${test_prefix}/"*|\
19918 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19919 '${prefix}'|'${prefix}/'*|\
19920 '${exec_prefix}'|'${exec_prefix}/'*)
19921 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19922 TARGET_SYSTEM_ROOT_DEFINE="$t"
19923 ;;
19924 esac
19925
19926else
19927
19928 TARGET_SYSTEM_ROOT=
19929 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19930
19931fi;
19932
19933
19934
19935system_gdbinit=
19936
19937# Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19938if test "${with_system_gdbinit+set}" = set; then
19939 withval="$with_system_gdbinit"
19940 system_gdbinit=${withval}
19941fi;
19942
19943
19944 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19946 ac_define_dir=`eval echo $system_gdbinit`
19947 ac_define_dir=`eval echo $ac_define_dir`
19948
19949cat >>confdefs.h <<_ACEOF
19950#define SYSTEM_GDBINIT "$ac_define_dir"
19951_ACEOF
19952
19953
19954
19955if test "x$prefix" = xNONE; then
19956 test_prefix=$ac_default_prefix
19957else
19958 test_prefix=$prefix
19959fi
19960if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19961 test_exec_prefix=$test_prefix
19962else
19963 test_exec_prefix=$exec_prefix
19964fi
19965case ${system_gdbinit} in
19966 "${test_prefix}"|"${test_prefix}/"*|\
19967 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19968 '${prefix}'|'${prefix}/'*|\
19969 '${exec_prefix}'|'${exec_prefix}/'*)
19970
19971cat >>confdefs.h <<\_ACEOF
19972#define SYSTEM_GDBINIT_RELOCATABLE 1
19973_ACEOF
19974
19975 ;;
19976esac
19977
19978# Check whether --enable-werror or --disable-werror was given.
19979if test "${enable_werror+set}" = set; then
19980 enableval="$enable_werror"
19981 case "${enableval}" in
19982 yes | y) ERROR_ON_WARNING="yes" ;;
19983 no | n) ERROR_ON_WARNING="no" ;;
19984 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19985echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19986 { (exit 1); exit 1; }; } ;;
19987 esac
19988fi;
19989
19990# Enable -Werror by default when using gcc
19991if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19992 ERROR_ON_WARNING=yes
19993fi
19994
19995WERROR_CFLAGS=""
19996if test "${ERROR_ON_WARNING}" = yes ; then
19997 WERROR_CFLAGS="-Werror"
19998fi
19999
20000# The entries after -Wno-pointer-sign are disabled warnings which may
20001# be enabled in the future, which can not currently be used to build
20002# GDB.
20003# NOTE: If you change this list, remember to update
20004# gdb/doc/gdbint.texinfo.
20005build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20006-Wformat-nonliteral -Wno-pointer-sign \
20007-Wno-unused -Wno-switch -Wno-char-subscripts"
20008
20009# Enable -Wno-format by default when using gcc on mingw since many
20010# GCC versions complain about %I64.
20011case "${host}" in
20012 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
20013esac
20014
20015# Check whether --enable-build-warnings or --disable-build-warnings was given.
20016if test "${enable_build_warnings+set}" = set; then
20017 enableval="$enable_build_warnings"
20018 case "${enableval}" in
20019 yes) ;;
20020 no) build_warnings="-w";;
20021 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20022 build_warnings="${build_warnings} ${t}";;
20023 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20024 build_warnings="${t} ${build_warnings}";;
20025 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20026esac
20027if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20028 echo "Setting compiler warning flags = $build_warnings" 6>&1
20029fi
20030fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20031if test "${enable_gdb_build_warnings+set}" = set; then
20032 enableval="$enable_gdb_build_warnings"
20033 case "${enableval}" in
20034 yes) ;;
20035 no) build_warnings="-w";;
20036 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20037 build_warnings="${build_warnings} ${t}";;
20038 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20039 build_warnings="${t} ${build_warnings}";;
20040 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20041esac
20042if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20043 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20044fi
20045fi; WARN_CFLAGS=""
20046if test "x${build_warnings}" != x -a "x$GCC" = xyes
20047then
20048 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20049echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20050 # Separate out the -Werror flag as some files just cannot be
20051 # compiled with it enabled.
20052 for w in ${build_warnings}; do
20053 case $w in
20054 -Werr*) WERROR_CFLAGS=-Werror ;;
20055 *) # Check that GCC accepts it
20056 saved_CFLAGS="$CFLAGS"
20057 CFLAGS="$CFLAGS $w"
20058 cat >conftest.$ac_ext <<_ACEOF
20059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064
20065int
20066main ()
20067{
20068
20069 ;
20070 return 0;
20071}
20072_ACEOF
20073rm -f conftest.$ac_objext
20074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075 (eval $ac_compile) 2>conftest.er1
20076 ac_status=$?
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
20082 { ac_try='test -z "$ac_c_werror_flag"
20083 || test ! -s conftest.err'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest.$ac_objext'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095 WARN_CFLAGS="${WARN_CFLAGS} $w"
20096else
20097 echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100fi
20101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 CFLAGS="$saved_CFLAGS"
20103 esac
20104 done
20105 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20106echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20107fi
20108
20109
20110
20111# In the Cygwin environment, we need some additional flags.
20112echo "$as_me:$LINENO: checking for cygwin" >&5
20113echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20114if test "${gdb_cv_os_cygwin+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 cat >conftest.$ac_ext <<_ACEOF
20118/* confdefs.h. */
20119_ACEOF
20120cat confdefs.h >>conftest.$ac_ext
20121cat >>conftest.$ac_ext <<_ACEOF
20122/* end confdefs.h. */
20123
20124#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20125lose
20126#endif
20127_ACEOF
20128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129 $EGREP "lose" >/dev/null 2>&1; then
20130 gdb_cv_os_cygwin=yes
20131else
20132 gdb_cv_os_cygwin=no
20133fi
20134rm -f conftest*
20135
20136fi
20137echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20138echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20139
20140
20141SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20142case ${host} in
20143 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20144 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20145 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20146esac
20147
20148
20149# libreadline needs libuser32.a in a cygwin environment
20150WIN32LIBS=
20151if test x$gdb_cv_os_cygwin = xyes; then
20152 WIN32LIBS="-luser32"
20153 case "${target}" in
20154 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20155 ;;
20156 esac
20157fi
20158
20159# The ser-tcp.c module requires sockets.
20160case ${host} in
20161 *mingw32*)
20162
20163cat >>confdefs.h <<\_ACEOF
20164#define USE_WIN32API 1
20165_ACEOF
20166
20167 WIN32LIBS="$WIN32LIBS -lws2_32"
20168 ;;
20169esac
20170
20171
20172# Add ELF support to GDB, but only if BFD includes ELF support.
20173OLD_CFLAGS=$CFLAGS
20174OLD_LDFLAGS=$LDFLAGS
20175OLD_LIBS=$LIBS
20176CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20177LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20178intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20179LIBS="-lbfd -liberty $intl $LIBS"
20180echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20181echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20182if test "${gdb_cv_var_elf+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184else
20185 cat >conftest.$ac_ext <<_ACEOF
20186/* confdefs.h. */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h. */
20191#include <stdlib.h>
20192#include "bfd.h"
20193#include "elf-bfd.h"
20194
20195int
20196main ()
20197{
20198bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20199 ;
20200 return 0;
20201}
20202_ACEOF
20203rm -f conftest.$ac_objext conftest$ac_exeext
20204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag"
20213 || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest$ac_exeext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 gdb_cv_var_elf=yes
20226else
20227 echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230gdb_cv_var_elf=no
20231fi
20232rm -f conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234fi
20235echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20236echo "${ECHO_T}$gdb_cv_var_elf" >&6
20237if test $gdb_cv_var_elf = yes; then
20238 CONFIG_OBS="$CONFIG_OBS elfread.o"
20239
20240cat >>confdefs.h <<\_ACEOF
20241#define HAVE_ELF 1
20242_ACEOF
20243
20244fi
20245CFLAGS=$OLD_CFLAGS
20246LDFLAGS=$OLD_LDFLAGS
20247LIBS=$OLD_LIBS
20248
20249# Add any host-specific objects to GDB.
20250CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20251
20252LIBGUI="../libgui/src/libgui.a"
20253GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20254
20255
20256
20257WIN32LDAPP=
20258
20259
20260
20261case "${host}" in
20262*-*-cygwin* | *-*-mingw* )
20263 configdir="win"
20264 ;;
20265*)
20266 configdir="unix"
20267 ;;
20268esac
20269
20270GDBTKLIBS=
20271if test "${enable_gdbtk}" = "yes"; then
20272
20273 # Gdbtk must have an absolute path to srcdir in order to run
20274 # properly when not installed.
20275 here=`pwd`
20276 cd ${srcdir}
20277 GDBTK_SRC_DIR=`pwd`
20278 cd $here
20279
20280
20281 #
20282 # Ok, lets find the tcl configuration
20283 # First, look for one uninstalled.
20284 # the alternative search directory is invoked by --with-tcl
20285 #
20286
20287 if test x"${no_tcl}" = x ; then
20288 # we reset no_tcl in case something fails here
20289 no_tcl=true
20290
20291# Check whether --with-tcl or --without-tcl was given.
20292if test "${with_tcl+set}" = set; then
20293 withval="$with_tcl"
20294 with_tclconfig=${withval}
20295fi;
20296 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20297echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20298 if test "${ac_cv_c_tclconfig+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301
20302
20303 # First check to see if --with-tcl was specified.
20304 case "${host}" in
20305 *-*-cygwin*) platDir="win" ;;
20306 *) platDir="unix" ;;
20307 esac
20308 if test x"${with_tclconfig}" != x ; then
20309 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20310 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20311 else
20312 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20313echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20314 { (exit 1); exit 1; }; }
20315 fi
20316 fi
20317
20318 # then check for a private Tcl installation
20319 if test x"${ac_cv_c_tclconfig}" = x ; then
20320 for i in \
20321 ../tcl \
20322 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20323 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20324 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20325 ../../tcl \
20326 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20327 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20328 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20329 ../../../tcl \
20330 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20331 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20332 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20333 if test -f "$i/$platDir/tclConfig.sh" ; then
20334 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20335 break
20336 fi
20337 done
20338 fi
20339
20340 # on Darwin, check in Framework installation locations
20341 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20342 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20343 `ls -d /Library/Frameworks 2>/dev/null` \
20344 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20345 `ls -d /System/Library/Frameworks 2>/dev/null` \
20346 ; do
20347 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20348 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20349 break
20350 fi
20351 done
20352 fi
20353
20354 # check in a few common install locations
20355 if test x"${ac_cv_c_tclconfig}" = x ; then
20356 for i in `ls -d ${libdir} 2>/dev/null` \
20357 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20358 `ls -d ${prefix}/lib 2>/dev/null` \
20359 `ls -d /usr/local/lib 2>/dev/null` \
20360 `ls -d /usr/contrib/lib 2>/dev/null` \
20361 `ls -d /usr/lib 2>/dev/null` \
20362 ; do
20363 if test -f "$i/tclConfig.sh" ; then
20364 ac_cv_c_tclconfig=`(cd $i; pwd)`
20365 break
20366 fi
20367 done
20368 fi
20369
20370 # check in a few other private locations
20371 if test x"${ac_cv_c_tclconfig}" = x ; then
20372 for i in \
20373 ${srcdir}/../tcl \
20374 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20375 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20376 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20377 if test -f "$i/$platDir/tclConfig.sh" ; then
20378 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20379 break
20380 fi
20381 done
20382 fi
20383
20384fi
20385
20386
20387 if test x"${ac_cv_c_tclconfig}" = x ; then
20388 TCL_BIN_DIR="# no Tcl configs found"
20389 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20390echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20391 else
20392 no_tcl=
20393 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20394 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20395echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20396 fi
20397 fi
20398
20399
20400 # If $no_tk is nonempty, then we can't do Tk, and there is no
20401 # point to doing Tcl.
20402
20403 #
20404 # Ok, lets find the tk configuration
20405 # First, look for one uninstalled.
20406 # the alternative search directory is invoked by --with-tk
20407 #
20408
20409 if test x"${no_tk}" = x ; then
20410 # we reset no_tk in case something fails here
20411 no_tk=true
20412
20413# Check whether --with-tk or --without-tk was given.
20414if test "${with_tk+set}" = set; then
20415 withval="$with_tk"
20416 with_tkconfig=${withval}
20417fi;
20418 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20419echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20420 if test "${ac_cv_c_tkconfig+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20422else
20423
20424
20425 # First check to see if --with-tkconfig was specified.
20426 if test x"${with_tkconfig}" != x ; then
20427 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20428 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20429 else
20430 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20431echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20432 { (exit 1); exit 1; }; }
20433 fi
20434 fi
20435
20436 # then check for a private Tk library
20437 case "${host}" in
20438 *-*-cygwin*) platDir="win" ;;
20439 *) platDir="unix" ;;
20440 esac
20441 if test x"${ac_cv_c_tkconfig}" = x ; then
20442 for i in \
20443 ../tk \
20444 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20445 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20446 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20447 ../../tk \
20448 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20449 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20450 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20451 ../../../tk \
20452 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20453 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20454 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20455 if test -f "$i/$platDir/tkConfig.sh" ; then
20456 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20457 break
20458 fi
20459 done
20460 fi
20461
20462 # on Darwin, check in Framework installation locations
20463 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20464 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20465 `ls -d /Library/Frameworks 2>/dev/null` \
20466 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20467 `ls -d /System/Library/Frameworks 2>/dev/null` \
20468 ; do
20469 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20470 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20471 break
20472 fi
20473 done
20474 fi
20475
20476 # check in a few common install locations
20477 if test x"${ac_cv_c_tkconfig}" = x ; then
20478 for i in `ls -d ${libdir} 2>/dev/null` \
20479 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20480 `ls -d ${prefix}/lib 2>/dev/null` \
20481 `ls -d /usr/local/lib 2>/dev/null` \
20482 `ls -d /usr/contrib/lib 2>/dev/null` \
20483 `ls -d /usr/lib 2>/dev/null` \
20484 ; do
20485 if test -f "$i/tkConfig.sh" ; then
20486 ac_cv_c_tkconfig=`(cd $i; pwd)`
20487 break
20488 fi
20489 done
20490 fi
20491 # check in a few other private locations
20492 if test x"${ac_cv_c_tkconfig}" = x ; then
20493 for i in \
20494 ${srcdir}/../tk \
20495 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20496 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20497 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20498 if test -f "$i/$platDir/tkConfig.sh" ; then
20499 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20500 break
20501 fi
20502 done
20503 fi
20504
20505fi
20506
20507
20508 if test x"${ac_cv_c_tkconfig}" = x ; then
20509 TK_BIN_DIR="# no Tk configs found"
20510 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20511echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20512 else
20513 no_tk=
20514 TK_BIN_DIR=${ac_cv_c_tkconfig}
20515 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20516echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20517 fi
20518 fi
20519
20520
20521 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20522
20523 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20524echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20525
20526 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20527 echo "$as_me:$LINENO: result: loading" >&5
20528echo "${ECHO_T}loading" >&6
20529 . ${TCL_BIN_DIR}/tclConfig.sh
20530 else
20531 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20532echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20533 fi
20534
20535 # eval is required to do the TCL_DBGX substitution
20536 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20537 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20538
20539 # If the TCL_BIN_DIR is the build directory (not the install directory),
20540 # then set the common variable name to the value of the build variables.
20541 # For example, the variable TCL_LIB_SPEC will be set to the value
20542 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20543 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20544 # installed and uninstalled version of Tcl.
20545 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20546 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20547 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20548 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20549 elif test "`uname -s`" = "Darwin"; then
20550 # If Tcl was built as a framework, attempt to use the libraries
20551 # from the framework at the given location so that linking works
20552 # against Tcl.framework installed in an arbitary location.
20553 case ${TCL_DEFS} in
20554 *TCL_FRAMEWORK*)
20555 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20556 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20557 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20558 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20559 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20560 break
20561 fi
20562 done
20563 fi
20564 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20565 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20566 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20567 fi
20568 ;;
20569 esac
20570 fi
20571
20572 # eval is required to do the TCL_DBGX substitution
20573 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20574 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20575 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20576 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592 # Check for in-tree tcl
20593 here=`pwd`
20594 cd ${srcdir}/..
20595 topdir=`pwd`
20596 cd ${here}
20597
20598 intree="no"
20599 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20600 intree="yes"
20601 fi
20602
20603 # Find Tcl private headers
20604 if test x"${intree}" = xno; then
20605
20606 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20607echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20608 private_dir=""
20609 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20610 if test -f ${dir}/tclInt.h ; then
20611 private_dir=${dir}
20612 fi
20613
20614 if test x"${private_dir}" = x; then
20615 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20616echo "$as_me: error: could not find private Tcl headers" >&2;}
20617 { (exit 1); exit 1; }; }
20618 else
20619 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20620 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20621echo "${ECHO_T}${private_dir}" >&6
20622 fi
20623
20624 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20625 TCL_LIBRARY="${TCL_LIB_SPEC}"
20626 TCL_DEPS=""
20627 else
20628 # If building tcl in the same src tree, private headers
20629 # are not needed, but we need to be sure to use the right
20630 # headers library
20631 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20632 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20633 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20634 fi
20635
20636
20637
20638
20639
20640 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20641echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20642
20643 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20644 echo "$as_me:$LINENO: result: loading" >&5
20645echo "${ECHO_T}loading" >&6
20646 . ${TK_BIN_DIR}/tkConfig.sh
20647 else
20648 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20649echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20650 fi
20651
20652 # eval is required to do the TK_DBGX substitution
20653 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20654 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20655
20656 # If the TK_BIN_DIR is the build directory (not the install directory),
20657 # then set the common variable name to the value of the build variables.
20658 # For example, the variable TK_LIB_SPEC will be set to the value
20659 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20660 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20661 # installed and uninstalled version of Tcl.
20662 if test -f "${TK_BIN_DIR}/Makefile" ; then
20663 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20664 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20665 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20666 elif test "`uname -s`" = "Darwin"; then
20667 # If Tk was built as a framework, attempt to use the libraries
20668 # from the framework at the given location so that linking works
20669 # against Tk.framework installed in an arbitary location.
20670 case ${TK_DEFS} in
20671 *TK_FRAMEWORK*)
20672 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20673 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20674 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20675 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20676 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20677 break
20678 fi
20679 done
20680 fi
20681 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20682 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20683 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20684 fi
20685 ;;
20686 esac
20687 fi
20688
20689 # eval is required to do the TK_DBGX substitution
20690 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20691 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20692 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20693 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708 # Check for in-tree Tk
20709 intree="no"
20710 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20711 intree="yes"
20712 fi
20713
20714 # Find Tk private headers
20715 if test x"${intree}" = xno; then
20716
20717 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20718echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20719 private_dir=""
20720 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20721 if test -f ${dir}/tkInt.h; then
20722 private_dir=${dir}
20723 fi
20724
20725 if test x"${private_dir}" = x; then
20726 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20727echo "$as_me: error: could not find Tk private headers" >&2;}
20728 { (exit 1); exit 1; }; }
20729 else
20730 TK_PRIVATE_INCLUDE="-I${private_dir}"
20731 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20732echo "${ECHO_T}${private_dir}" >&6
20733 fi
20734
20735 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20736 TK_LIBRARY=${TK_LIB_SPEC}
20737 TK_DEPS=""
20738 else
20739 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20740 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20741 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20742 fi
20743
20744
20745
20746
20747
20748 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20749
20750 # Include some libraries that Tcl and Tk want.
20751 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20752 # Yes, the ordering seems wrong here. But it isn't.
20753 # TK_LIBS is the list of libraries that need to be linked
20754 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20755 # were in LIBS then any link tests after this point would
20756 # try to include things like `$(LIBGUI)', which wouldn't work.
20757 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20758
20759 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20760 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20761 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20762 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20763 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20764 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20765 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20766
20767 if test x$gdb_cv_os_cygwin = xyes; then
20768 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20769 WIN32LDAPP="-Wl,--subsystem,console"
20770 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20771 fi
20772
20773
20774
20775subdirs="$subdirs gdbtk"
20776
20777 fi
20778fi
20779
20780
20781
20782
20783
20784
20785
20786
20787echo "$as_me:$LINENO: checking for X" >&5
20788echo $ECHO_N "checking for X... $ECHO_C" >&6
20789
20790
20791# Check whether --with-x or --without-x was given.
20792if test "${with_x+set}" = set; then
20793 withval="$with_x"
20794
20795fi;
20796# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20797if test "x$with_x" = xno; then
20798 # The user explicitly disabled X.
20799 have_x=disabled
20800else
20801 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20802 # Both variables are already set.
20803 have_x=yes
20804 else
20805 if test "${ac_cv_have_x+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20807else
20808 # One or both of the vars are not set, and there is no cached value.
20809ac_x_includes=no ac_x_libraries=no
20810rm -fr conftest.dir
20811if mkdir conftest.dir; then
20812 cd conftest.dir
20813 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20814 cat >Imakefile <<'_ACEOF'
20815acfindx:
20816 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20817_ACEOF
20818 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20820 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20821 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20822 for ac_extension in a so sl; do
20823 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20824 test -f $ac_im_libdir/libX11.$ac_extension; then
20825 ac_im_usrlibdir=$ac_im_libdir; break
20826 fi
20827 done
20828 # Screen out bogus values from the imake configuration. They are
20829 # bogus both because they are the default anyway, and because
20830 # using them would break gcc on systems where it needs fixed includes.
20831 case $ac_im_incroot in
20832 /usr/include) ;;
20833 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20834 esac
20835 case $ac_im_usrlibdir in
20836 /usr/lib | /lib) ;;
20837 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20838 esac
20839 fi
20840 cd ..
20841 rm -fr conftest.dir
20842fi
20843
20844# Standard set of common directories for X headers.
20845# Check X11 before X11Rn because it is often a symlink to the current release.
20846ac_x_header_dirs='
20847/usr/X11/include
20848/usr/X11R6/include
20849/usr/X11R5/include
20850/usr/X11R4/include
20851
20852/usr/include/X11
20853/usr/include/X11R6
20854/usr/include/X11R5
20855/usr/include/X11R4
20856
20857/usr/local/X11/include
20858/usr/local/X11R6/include
20859/usr/local/X11R5/include
20860/usr/local/X11R4/include
20861
20862/usr/local/include/X11
20863/usr/local/include/X11R6
20864/usr/local/include/X11R5
20865/usr/local/include/X11R4
20866
20867/usr/X386/include
20868/usr/x386/include
20869/usr/XFree86/include/X11
20870
20871/usr/include
20872/usr/local/include
20873/usr/unsupported/include
20874/usr/athena/include
20875/usr/local/x11r5/include
20876/usr/lpp/Xamples/include
20877
20878/usr/openwin/include
20879/usr/openwin/share/include'
20880
20881if test "$ac_x_includes" = no; then
20882 # Guess where to find include files, by looking for Intrinsic.h.
20883 # First, try using that file with no special directory specified.
20884 cat >conftest.$ac_ext <<_ACEOF
20885/* confdefs.h. */
20886_ACEOF
20887cat confdefs.h >>conftest.$ac_ext
20888cat >>conftest.$ac_ext <<_ACEOF
20889/* end confdefs.h. */
20890#include <X11/Intrinsic.h>
20891_ACEOF
20892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } >/dev/null; then
20900 if test -s conftest.err; then
20901 ac_cpp_err=$ac_c_preproc_warn_flag
20902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20903 else
20904 ac_cpp_err=
20905 fi
20906else
20907 ac_cpp_err=yes
20908fi
20909if test -z "$ac_cpp_err"; then
20910 # We can compile using X headers with no special include directory.
20911ac_x_includes=
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 for ac_dir in $ac_x_header_dirs; do
20917 if test -r "$ac_dir/X11/Intrinsic.h"; then
20918 ac_x_includes=$ac_dir
20919 break
20920 fi
20921done
20922fi
20923rm -f conftest.err conftest.$ac_ext
20924fi # $ac_x_includes = no
20925
20926if test "$ac_x_libraries" = no; then
20927 # Check for the libraries.
20928 # See if we find them without any special options.
20929 # Don't add to $LIBS permanently.
20930 ac_save_LIBS=$LIBS
20931 LIBS="-lXt $LIBS"
20932 cat >conftest.$ac_ext <<_ACEOF
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
20938#include <X11/Intrinsic.h>
20939int
20940main ()
20941{
20942XtMalloc (0)
20943 ;
20944 return 0;
20945}
20946_ACEOF
20947rm -f conftest.$ac_objext conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
20956 { ac_try='test -z "$ac_c_werror_flag"
20957 || test ! -s conftest.err'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest$ac_exeext'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 LIBS=$ac_save_LIBS
20970# We can link X programs with no special library path.
20971ac_x_libraries=
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976LIBS=$ac_save_LIBS
20977for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20978do
20979 # Don't even attempt the hair of trying to link an X program!
20980 for ac_extension in a so sl; do
20981 if test -r $ac_dir/libXt.$ac_extension; then
20982 ac_x_libraries=$ac_dir
20983 break 2
20984 fi
20985 done
20986done
20987fi
20988rm -f conftest.err conftest.$ac_objext \
20989 conftest$ac_exeext conftest.$ac_ext
20990fi # $ac_x_libraries = no
20991
20992if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20993 # Didn't find X anywhere. Cache the known absence of X.
20994 ac_cv_have_x="have_x=no"
20995else
20996 # Record where we found X for the cache.
20997 ac_cv_have_x="have_x=yes \
20998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20999fi
21000fi
21001
21002 fi
21003 eval "$ac_cv_have_x"
21004fi # $with_x != no
21005
21006if test "$have_x" != yes; then
21007 echo "$as_me:$LINENO: result: $have_x" >&5
21008echo "${ECHO_T}$have_x" >&6
21009 no_x=yes
21010else
21011 # If each of the values was on the command line, it overrides each guess.
21012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21014 # Update the cache value to reflect the command line values.
21015 ac_cv_have_x="have_x=yes \
21016 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21017 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21018echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21019fi
21020
21021
21022# Unlike the sim directory, whether a simulator is linked is controlled by
21023# presence of a gdb_sim definition in the target configure.tgt entry.
21024# This code just checks for a few cases where we'd like to ignore those
21025# definitions, even when they're present in the '.mt' file. These cases
21026# are when --disable-sim is specified, or if the simulator directory is
21027# not part of the source tree.
21028#
21029# Check whether --enable-sim or --disable-sim was given.
21030if test "${enable_sim+set}" = set; then
21031 enableval="$enable_sim"
21032 echo "enable_sim = $enable_sim";
21033 echo "enableval = ${enableval}";
21034 case "${enableval}" in
21035 yes) ignore_sim=false ;;
21036 no) ignore_sim=true ;;
21037 *) ignore_sim=false ;;
21038 esac
21039else
21040 ignore_sim=false
21041fi;
21042
21043if test ! -d "${srcdir}/../sim"; then
21044 ignore_sim=true
21045fi
21046
21047SIM=
21048SIM_OBS=
21049if test "${ignore_sim}" = "false"; then
21050 if test x"${gdb_sim}" != x ; then
21051 SIM="${gdb_sim}"
21052 SIM_OBS="remote-sim.o"
21053
21054cat >>confdefs.h <<\_ACEOF
21055#define WITH_SIM 1
21056_ACEOF
21057
21058 fi
21059fi
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074# List of host floatformats.
21075
21076cat >>confdefs.h <<_ACEOF
21077#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21078_ACEOF
21079
21080
21081cat >>confdefs.h <<_ACEOF
21082#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21083_ACEOF
21084
21085
21086cat >>confdefs.h <<_ACEOF
21087#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21088_ACEOF
21089
21090
21091# target_subdir is used by the testsuite to find the target libraries.
21092target_subdir=
21093if test "${host}" != "${target}"; then
21094 target_subdir="${target_alias}/"
21095fi
21096
21097
21098frags=
21099if test "${gdb_native}" = "yes"; then
21100 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21101 if test ! -f ${host_makefile_frag}; then
21102 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21103echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21104 { (exit 1); exit 1; }; }
21105 fi
21106 frags="$frags $host_makefile_frag"
21107else
21108 host_makefile_frag=/dev/null
21109fi
21110
21111
21112
21113
21114if test "${gdb_native}" = "yes"; then
21115# We pick this up from the host configuration file (.mh) because we
21116# do not have a native configuration Makefile fragment.
21117nativefile=`sed -n '
21118s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21119' ${host_makefile_frag}`
21120fi
21121
21122
21123if test x"${gdb_osabi}" != x ; then
21124
21125cat >>confdefs.h <<_ACEOF
21126#define GDB_OSABI_DEFAULT $gdb_osabi
21127_ACEOF
21128
21129fi
21130
21131# Enable multi-ice-gdb-server.
21132# Check whether --enable-multi-ice or --disable-multi-ice was given.
21133if test "${enable_multi_ice+set}" = set; then
21134 enableval="$enable_multi_ice"
21135 case $enableval in
21136 yes | no)
21137 ;;
21138 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21139echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21140 { (exit 1); exit 1; }; } ;;
21141 esac
21142fi;
21143if test "x$enable_multi_ice" = xyes; then
21144
21145
21146subdirs="$subdirs multi-ice"
21147
21148fi
21149
21150# We only build gdbserver automatically in a native configuration.
21151if test "$gdb_native" = "yes"; then
21152 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21153echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21154 if test "x$build_gdbserver" = xyes; then
21155 echo "$as_me:$LINENO: result: yes" >&5
21156echo "${ECHO_T}yes" >&6
21157
21158
21159subdirs="$subdirs gdbserver"
21160
21161 else
21162 echo "$as_me:$LINENO: result: no" >&5
21163echo "${ECHO_T}no" >&6
21164 fi
21165fi
21166
21167# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21168# to an empty version.
21169
21170files=
21171links=
21172
21173rm -f nm.h
21174nm_h=""
21175if test "${nativefile}" != ""; then
21176 nm_h=nm.h
21177 case "${nativefile}" in
21178 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21179 * ) GDB_NM_FILE="${nativefile}"
21180 esac
21181 files="${files} ${GDB_NM_FILE}"
21182 links="${links} nm.h"
21183
21184cat >>confdefs.h <<_ACEOF
21185#define GDB_NM_FILE "${GDB_NM_FILE}"
21186_ACEOF
21187
21188fi
21189
21190
21191ac_sources="$files"
21192ac_dests="$links"
21193while test -n "$ac_sources"; do
21194 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21195 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21196 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21197done
21198 ac_config_links="$ac_config_links $ac_config_links_1"
21199
21200
21201
21202
21203
21204cat >>confdefs.h <<\_ACEOF
21205#define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21206_ACEOF
21207
21208
21209
21210
21211
21212
21213
21214 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21215 ac_config_commands="$ac_config_commands default"
21216cat >confcache <<\_ACEOF
21217# This file is a shell script that caches the results of configure
21218# tests run on this system so they can be shared between configure
21219# scripts and configure runs, see configure's option --config-cache.
21220# It is not useful on other systems. If it contains results you don't
21221# want to keep, you may remove or edit it.
21222#
21223# config.status only pays attention to the cache file if you give it
21224# the --recheck option to rerun configure.
21225#
21226# `ac_cv_env_foo' variables (set or unset) will be overridden when
21227# loading this file, other *unset* `ac_cv_foo' will be assigned the
21228# following values.
21229
21230_ACEOF
21231
21232# The following way of writing the cache mishandles newlines in values,
21233# but we know of no workaround that is simple, portable, and efficient.
21234# So, don't put newlines in cache variables' values.
21235# Ultrix sh set writes to stderr and can't be redirected directly,
21236# and sets the high bit in the cache file unless we assign to the vars.
21237{
21238 (set) 2>&1 |
21239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21240 *ac_space=\ *)
21241 # `set' does not quote correctly, so add quotes (double-quote
21242 # substitution turns \\\\ into \\, and sed turns \\ into \).
21243 sed -n \
21244 "s/'/'\\\\''/g;
21245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21246 ;;
21247 *)
21248 # `set' quotes correctly as required by POSIX, so do not add quotes.
21249 sed -n \
21250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21251 ;;
21252 esac;
21253} |
21254 sed '
21255 t clear
21256 : clear
21257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21258 t end
21259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21260 : end' >>confcache
21261if diff $cache_file confcache >/dev/null 2>&1; then :; else
21262 if test -w $cache_file; then
21263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21264 cat confcache >$cache_file
21265 else
21266 echo "not updating unwritable cache $cache_file"
21267 fi
21268fi
21269rm -f confcache
21270
21271test "x$prefix" = xNONE && prefix=$ac_default_prefix
21272# Let make expand exec_prefix.
21273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21274
21275# VPATH may cause trouble with some makes, so we remove $(srcdir),
21276# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21277# trailing colons and then remove the whole line if VPATH becomes empty
21278# (actually we leave an empty line to preserve line numbers).
21279if test "x$srcdir" = x.; then
21280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21281s/:*\$(srcdir):*/:/;
21282s/:*\${srcdir}:*/:/;
21283s/:*@srcdir@:*/:/;
21284s/^\([^=]*=[ ]*\):*/\1/;
21285s/:*$//;
21286s/^[^=]*=[ ]*$//;
21287}'
21288fi
21289
21290DEFS=-DHAVE_CONFIG_H
21291
21292ac_libobjs=
21293ac_ltlibobjs=
21294for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21295 # 1. Remove the extension, and $U if already installed.
21296 ac_i=`echo "$ac_i" |
21297 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21298 # 2. Add them.
21299 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21300 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21301done
21302LIBOBJS=$ac_libobjs
21303
21304LTLIBOBJS=$ac_ltlibobjs
21305
21306
21307if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21308 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21309Usually this means the macro was only invoked conditionally." >&5
21310echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21311Usually this means the macro was only invoked conditionally." >&2;}
21312 { (exit 1); exit 1; }; }
21313fi
21314if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21315 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21316Usually this means the macro was only invoked conditionally." >&5
21317echo "$as_me: error: conditional \"GMAKE\" was never defined.
21318Usually this means the macro was only invoked conditionally." >&2;}
21319 { (exit 1); exit 1; }; }
21320fi
21321if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21322 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21323Usually this means the macro was only invoked conditionally." >&5
21324echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21325Usually this means the macro was only invoked conditionally." >&2;}
21326 { (exit 1); exit 1; }; }
21327fi
21328
21329 gl_libobjs=
21330 gl_ltlibobjs=
21331 if test -n "$gl_LIBOBJS"; then
21332 # Remove the extension.
21333 sed_drop_objext='s/\.o$//;s/\.obj$//'
21334 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21335 gl_libobjs="$gl_libobjs $i.$ac_objext"
21336 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21337 done
21338 fi
21339 gl_LIBOBJS=$gl_libobjs
21340
21341 gl_LTLIBOBJS=$gl_ltlibobjs
21342
21343
21344
21345 gltests_libobjs=
21346 gltests_ltlibobjs=
21347 if test -n "$gltests_LIBOBJS"; then
21348 # Remove the extension.
21349 sed_drop_objext='s/\.o$//;s/\.obj$//'
21350 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21351 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21352 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21353 done
21354 fi
21355 gltests_LIBOBJS=$gltests_libobjs
21356
21357 gltests_LTLIBOBJS=$gltests_ltlibobjs
21358
21359
21360if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21361 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21362Usually this means the macro was only invoked conditionally." >&5
21363echo "$as_me: error: conditional \"AMDEP\" was never defined.
21364Usually this means the macro was only invoked conditionally." >&2;}
21365 { (exit 1); exit 1; }; }
21366fi
21367if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21368 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21369Usually this means the macro was only invoked conditionally." >&5
21370echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21371Usually this means the macro was only invoked conditionally." >&2;}
21372 { (exit 1); exit 1; }; }
21373fi
21374
21375: ${CONFIG_STATUS=./config.status}
21376ac_clean_files_save=$ac_clean_files
21377ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21378{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21379echo "$as_me: creating $CONFIG_STATUS" >&6;}
21380cat >$CONFIG_STATUS <<_ACEOF
21381#! $SHELL
21382# Generated by $as_me.
21383# Run this file to recreate the current configuration.
21384# Compiler output produced by configure, useful for debugging
21385# configure, is in config.log if it exists.
21386
21387debug=false
21388ac_cs_recheck=false
21389ac_cs_silent=false
21390SHELL=\${CONFIG_SHELL-$SHELL}
21391_ACEOF
21392
21393cat >>$CONFIG_STATUS <<\_ACEOF
21394## --------------------- ##
21395## M4sh Initialization. ##
21396## --------------------- ##
21397
21398# Be Bourne compatible
21399if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21400 emulate sh
21401 NULLCMD=:
21402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21403 # is contrary to our usage. Disable this feature.
21404 alias -g '${1+"$@"}'='"$@"'
21405elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21406 set -o posix
21407fi
21408DUALCASE=1; export DUALCASE # for MKS sh
21409
21410# Support unset when possible.
21411if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21412 as_unset=unset
21413else
21414 as_unset=false
21415fi
21416
21417
21418# Work around bugs in pre-3.0 UWIN ksh.
21419$as_unset ENV MAIL MAILPATH
21420PS1='$ '
21421PS2='> '
21422PS4='+ '
21423
21424# NLS nuisances.
21425for as_var in \
21426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21428 LC_TELEPHONE LC_TIME
21429do
21430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21431 eval $as_var=C; export $as_var
21432 else
21433 $as_unset $as_var
21434 fi
21435done
21436
21437# Required to use basename.
21438if expr a : '\(a\)' >/dev/null 2>&1; then
21439 as_expr=expr
21440else
21441 as_expr=false
21442fi
21443
21444if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21445 as_basename=basename
21446else
21447 as_basename=false
21448fi
21449
21450
21451# Name of the executable.
21452as_me=`$as_basename "$0" ||
21453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21454 X"$0" : 'X\(//\)$' \| \
21455 X"$0" : 'X\(/\)$' \| \
21456 . : '\(.\)' 2>/dev/null ||
21457echo X/"$0" |
21458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21459 /^X\/\(\/\/\)$/{ s//\1/; q; }
21460 /^X\/\(\/\).*/{ s//\1/; q; }
21461 s/.*/./; q'`
21462
21463
21464# PATH needs CR, and LINENO needs CR and PATH.
21465# Avoid depending upon Character Ranges.
21466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21469as_cr_digits='0123456789'
21470as_cr_alnum=$as_cr_Letters$as_cr_digits
21471
21472# The user is always right.
21473if test "${PATH_SEPARATOR+set}" != set; then
21474 echo "#! /bin/sh" >conf$$.sh
21475 echo "exit 0" >>conf$$.sh
21476 chmod +x conf$$.sh
21477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21478 PATH_SEPARATOR=';'
21479 else
21480 PATH_SEPARATOR=:
21481 fi
21482 rm -f conf$$.sh
21483fi
21484
21485
21486 as_lineno_1=$LINENO
21487 as_lineno_2=$LINENO
21488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21489 test "x$as_lineno_1" != "x$as_lineno_2" &&
21490 test "x$as_lineno_3" = "x$as_lineno_2" || {
21491 # Find who we are. Look in the path if we contain no path at all
21492 # relative or not.
21493 case $0 in
21494 *[\\/]* ) as_myself=$0 ;;
21495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496for as_dir in $PATH
21497do
21498 IFS=$as_save_IFS
21499 test -z "$as_dir" && as_dir=.
21500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21501done
21502
21503 ;;
21504 esac
21505 # We did not find ourselves, most probably we were run as `sh COMMAND'
21506 # in which case we are not to be found in the path.
21507 if test "x$as_myself" = x; then
21508 as_myself=$0
21509 fi
21510 if test ! -f "$as_myself"; then
21511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21512echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21513 { (exit 1); exit 1; }; }
21514 fi
21515 case $CONFIG_SHELL in
21516 '')
21517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21518for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21519do
21520 IFS=$as_save_IFS
21521 test -z "$as_dir" && as_dir=.
21522 for as_base in sh bash ksh sh5; do
21523 case $as_dir in
21524 /*)
21525 if ("$as_dir/$as_base" -c '
21526 as_lineno_1=$LINENO
21527 as_lineno_2=$LINENO
21528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21529 test "x$as_lineno_1" != "x$as_lineno_2" &&
21530 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21533 CONFIG_SHELL=$as_dir/$as_base
21534 export CONFIG_SHELL
21535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21536 fi;;
21537 esac
21538 done
21539done
21540;;
21541 esac
21542
21543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21544 # uniformly replaced by the line number. The first 'sed' inserts a
21545 # line-number line before each line; the second 'sed' does the real
21546 # work. The second script uses 'N' to pair each line-number line
21547 # with the numbered line, and appends trailing '-' during
21548 # substitution so that $LINENO is not a special case at line end.
21549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21551 sed '=' <$as_myself |
21552 sed '
21553 N
21554 s,$,-,
21555 : loop
21556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21557 t loop
21558 s,-$,,
21559 s,^['$as_cr_digits']*\n,,
21560 ' >$as_me.lineno &&
21561 chmod +x $as_me.lineno ||
21562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21563echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21564 { (exit 1); exit 1; }; }
21565
21566 # Don't try to exec as it changes $[0], causing all sort of problems
21567 # (the dirname of $[0] is not the place where we might find the
21568 # original and so on. Autoconf is especially sensible to this).
21569 . ./$as_me.lineno
21570 # Exit status is that of the last command.
21571 exit
21572}
21573
21574
21575case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21576 *c*,-n*) ECHO_N= ECHO_C='
21577' ECHO_T=' ' ;;
21578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21580esac
21581
21582if expr a : '\(a\)' >/dev/null 2>&1; then
21583 as_expr=expr
21584else
21585 as_expr=false
21586fi
21587
21588rm -f conf$$ conf$$.exe conf$$.file
21589echo >conf$$.file
21590if ln -s conf$$.file conf$$ 2>/dev/null; then
21591 # We could just check for DJGPP; but this test a) works b) is more generic
21592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21593 if test -f conf$$.exe; then
21594 # Don't use ln at all; we don't have any links
21595 as_ln_s='cp -p'
21596 else
21597 as_ln_s='ln -s'
21598 fi
21599elif ln conf$$.file conf$$ 2>/dev/null; then
21600 as_ln_s=ln
21601else
21602 as_ln_s='cp -p'
21603fi
21604rm -f conf$$ conf$$.exe conf$$.file
21605
21606if mkdir -p . 2>/dev/null; then
21607 as_mkdir_p=:
21608else
21609 test -d ./-p && rmdir ./-p
21610 as_mkdir_p=false
21611fi
21612
21613as_executable_p="test -f"
21614
21615# Sed expression to map a string onto a valid CPP name.
21616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21617
21618# Sed expression to map a string onto a valid variable name.
21619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21620
21621
21622# IFS
21623# We need space, tab and new line, in precisely that order.
21624as_nl='
21625'
21626IFS=" $as_nl"
21627
21628# CDPATH.
21629$as_unset CDPATH
21630
21631exec 6>&1
21632
21633# Open the log real soon, to keep \$[0] and so on meaningful, and to
21634# report actual input values of CONFIG_FILES etc. instead of their
21635# values after options handling. Logging --version etc. is OK.
21636exec 5>>config.log
21637{
21638 echo
21639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21640## Running $as_me. ##
21641_ASBOX
21642} >&5
21643cat >&5 <<_CSEOF
21644
21645This file was extended by $as_me, which was
21646generated by GNU Autoconf 2.59. Invocation command line was
21647
21648 CONFIG_FILES = $CONFIG_FILES
21649 CONFIG_HEADERS = $CONFIG_HEADERS
21650 CONFIG_LINKS = $CONFIG_LINKS
21651 CONFIG_COMMANDS = $CONFIG_COMMANDS
21652 $ $0 $@
21653
21654_CSEOF
21655echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21656echo >&5
21657_ACEOF
21658
21659# Files that config.status was made for.
21660if test -n "$ac_config_files"; then
21661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21662fi
21663
21664if test -n "$ac_config_headers"; then
21665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21666fi
21667
21668if test -n "$ac_config_links"; then
21669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21670fi
21671
21672if test -n "$ac_config_commands"; then
21673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21674fi
21675
21676cat >>$CONFIG_STATUS <<\_ACEOF
21677
21678ac_cs_usage="\
21679\`$as_me' instantiates files from templates according to the
21680current configuration.
21681
21682Usage: $0 [OPTIONS] [FILE]...
21683
21684 -h, --help print this help, then exit
21685 -V, --version print version number, then exit
21686 -q, --quiet do not print progress messages
21687 -d, --debug don't remove temporary files
21688 --recheck update $as_me by reconfiguring in the same conditions
21689 --file=FILE[:TEMPLATE]
21690 instantiate the configuration file FILE
21691 --header=FILE[:TEMPLATE]
21692 instantiate the configuration header FILE
21693
21694Configuration files:
21695$config_files
21696
21697Configuration headers:
21698$config_headers
21699
21700Configuration links:
21701$config_links
21702
21703Configuration commands:
21704$config_commands
21705
21706Report bugs to <bug-autoconf@gnu.org>."
21707_ACEOF
21708
21709cat >>$CONFIG_STATUS <<_ACEOF
21710ac_cs_version="\\
21711config.status
21712configured by $0, generated by GNU Autoconf 2.59,
21713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21714
21715Copyright (C) 2003 Free Software Foundation, Inc.
21716This config.status script is free software; the Free Software Foundation
21717gives unlimited permission to copy, distribute and modify it."
21718srcdir=$srcdir
21719INSTALL="$INSTALL"
21720_ACEOF
21721
21722cat >>$CONFIG_STATUS <<\_ACEOF
21723# If no file are specified by the user, then we need to provide default
21724# value. By we need to know if files were specified by the user.
21725ac_need_defaults=:
21726while test $# != 0
21727do
21728 case $1 in
21729 --*=*)
21730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21732 ac_shift=:
21733 ;;
21734 -*)
21735 ac_option=$1
21736 ac_optarg=$2
21737 ac_shift=shift
21738 ;;
21739 *) # This is not an option, so the user has probably given explicit
21740 # arguments.
21741 ac_option=$1
21742 ac_need_defaults=false;;
21743 esac
21744
21745 case $ac_option in
21746 # Handling of the options.
21747_ACEOF
21748cat >>$CONFIG_STATUS <<\_ACEOF
21749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21750 ac_cs_recheck=: ;;
21751 --version | --vers* | -V )
21752 echo "$ac_cs_version"; exit 0 ;;
21753 --he | --h)
21754 # Conflict between --help and --header
21755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21756Try \`$0 --help' for more information." >&5
21757echo "$as_me: error: ambiguous option: $1
21758Try \`$0 --help' for more information." >&2;}
21759 { (exit 1); exit 1; }; };;
21760 --help | --hel | -h )
21761 echo "$ac_cs_usage"; exit 0 ;;
21762 --debug | --d* | -d )
21763 debug=: ;;
21764 --file | --fil | --fi | --f )
21765 $ac_shift
21766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21767 ac_need_defaults=false;;
21768 --header | --heade | --head | --hea )
21769 $ac_shift
21770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21771 ac_need_defaults=false;;
21772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21774 ac_cs_silent=: ;;
21775
21776 # This is an error.
21777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21778Try \`$0 --help' for more information." >&5
21779echo "$as_me: error: unrecognized option: $1
21780Try \`$0 --help' for more information." >&2;}
21781 { (exit 1); exit 1; }; } ;;
21782
21783 *) ac_config_targets="$ac_config_targets $1" ;;
21784
21785 esac
21786 shift
21787done
21788
21789ac_configure_extra_args=
21790
21791if $ac_cs_silent; then
21792 exec 6>/dev/null
21793 ac_configure_extra_args="$ac_configure_extra_args --silent"
21794fi
21795
21796_ACEOF
21797cat >>$CONFIG_STATUS <<_ACEOF
21798if \$ac_cs_recheck; then
21799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21801fi
21802
21803_ACEOF
21804
21805cat >>$CONFIG_STATUS <<_ACEOF
21806#
21807# INIT-COMMANDS section.
21808#
21809
21810ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21811AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21812
21813gdb_host_cpu=$gdb_host_cpu
21814nativefile=$nativefile
21815
21816
21817_ACEOF
21818
21819
21820
21821cat >>$CONFIG_STATUS <<\_ACEOF
21822for ac_config_target in $ac_config_targets
21823do
21824 case "$ac_config_target" in
21825 # Handling of arguments.
21826 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21827 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21828 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21829 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21830 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21831 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21832 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21833 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21835echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21836 { (exit 1); exit 1; }; };;
21837 esac
21838done
21839
21840# If the user did not use the arguments to specify the items to instantiate,
21841# then the envvar interface is used. Set only those that are not.
21842# We use the long form for the default assignment because of an extremely
21843# bizarre bug on SunOS 4.1.3.
21844if $ac_need_defaults; then
21845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21847 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21849fi
21850
21851# Have a temporary directory for convenience. Make it in the build tree
21852# simply because there is no reason to put it here, and in addition,
21853# creating and moving files from /tmp can sometimes cause problems.
21854# Create a temporary directory, and hook for its removal unless debugging.
21855$debug ||
21856{
21857 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21858 trap '{ (exit 1); exit 1; }' 1 2 13 15
21859}
21860
21861# Create a (secure) tmp directory for tmp files.
21862
21863{
21864 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21865 test -n "$tmp" && test -d "$tmp"
21866} ||
21867{
21868 tmp=./confstat$$-$RANDOM
21869 (umask 077 && mkdir $tmp)
21870} ||
21871{
21872 echo "$me: cannot create a temporary directory in ." >&2
21873 { (exit 1); exit 1; }
21874}
21875
21876_ACEOF
21877
21878cat >>$CONFIG_STATUS <<_ACEOF
21879
21880#
21881# CONFIG_FILES section.
21882#
21883
21884# No need to generate the scripts if there are no CONFIG_FILES.
21885# This happens for instance when ./config.status config.h
21886if test -n "\$CONFIG_FILES"; then
21887 # Protect against being on the right side of a sed subst in config.status.
21888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21890s,@SHELL@,$SHELL,;t t
21891s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21892s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21893s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21894s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21895s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21896s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21897s,@exec_prefix@,$exec_prefix,;t t
21898s,@prefix@,$prefix,;t t
21899s,@program_transform_name@,$program_transform_name,;t t
21900s,@bindir@,$bindir,;t t
21901s,@sbindir@,$sbindir,;t t
21902s,@libexecdir@,$libexecdir,;t t
21903s,@datadir@,$datadir,;t t
21904s,@sysconfdir@,$sysconfdir,;t t
21905s,@sharedstatedir@,$sharedstatedir,;t t
21906s,@localstatedir@,$localstatedir,;t t
21907s,@libdir@,$libdir,;t t
21908s,@includedir@,$includedir,;t t
21909s,@oldincludedir@,$oldincludedir,;t t
21910s,@infodir@,$infodir,;t t
21911s,@mandir@,$mandir,;t t
21912s,@build_alias@,$build_alias,;t t
21913s,@host_alias@,$host_alias,;t t
21914s,@target_alias@,$target_alias,;t t
21915s,@DEFS@,$DEFS,;t t
21916s,@ECHO_C@,$ECHO_C,;t t
21917s,@ECHO_N@,$ECHO_N,;t t
21918s,@ECHO_T@,$ECHO_T,;t t
21919s,@LIBS@,$LIBS,;t t
21920s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21921s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21922s,@MAINT@,$MAINT,;t t
21923s,@CC@,$CC,;t t
21924s,@CFLAGS@,$CFLAGS,;t t
21925s,@LDFLAGS@,$LDFLAGS,;t t
21926s,@CPPFLAGS@,$CPPFLAGS,;t t
21927s,@ac_ct_CC@,$ac_ct_CC,;t t
21928s,@EXEEXT@,$EXEEXT,;t t
21929s,@OBJEXT@,$OBJEXT,;t t
21930s,@CPP@,$CPP,;t t
21931s,@EGREP@,$EGREP,;t t
21932s,@RANLIB@,$RANLIB,;t t
21933s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21934s,@build@,$build,;t t
21935s,@build_cpu@,$build_cpu,;t t
21936s,@build_vendor@,$build_vendor,;t t
21937s,@build_os@,$build_os,;t t
21938s,@host@,$host,;t t
21939s,@host_cpu@,$host_cpu,;t t
21940s,@host_vendor@,$host_vendor,;t t
21941s,@host_os@,$host_os,;t t
21942s,@target@,$target,;t t
21943s,@target_cpu@,$target_cpu,;t t
21944s,@target_vendor@,$target_vendor,;t t
21945s,@target_os@,$target_os,;t t
21946s,@am__leading_dot@,$am__leading_dot,;t t
21947s,@DEPDIR@,$DEPDIR,;t t
21948s,@CCDEPMODE@,$CCDEPMODE,;t t
21949s,@MAKE@,$MAKE,;t t
21950s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21951s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21952s,@SET_MAKE@,$SET_MAKE,;t t
21953s,@USE_NLS@,$USE_NLS,;t t
21954s,@LIBINTL@,$LIBINTL,;t t
21955s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21956s,@INCINTL@,$INCINTL,;t t
21957s,@XGETTEXT@,$XGETTEXT,;t t
21958s,@GMSGFMT@,$GMSGFMT,;t t
21959s,@POSUB@,$POSUB,;t t
21960s,@CATALOGS@,$CATALOGS,;t t
21961s,@DATADIRNAME@,$DATADIRNAME,;t t
21962s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21963s,@GENCAT@,$GENCAT,;t t
21964s,@CATOBJEXT@,$CATOBJEXT,;t t
21965s,@localedir@,$localedir,;t t
21966s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21967s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21968s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21969s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21970s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21971s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21972s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21973s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21974s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21975s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21976s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21977s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21978s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21979s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21980s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21981s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21982s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21983s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21984s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21985s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21986s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21987s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21988s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21989s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21990s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21991s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21992s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21993s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21994s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21995s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21996s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21997s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21998s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21999s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22000s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22001s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22002s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22003s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22004s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22005s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22006s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22007s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22008s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22009s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22010s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22011s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22012s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22013s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22014s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22015s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22016s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22017s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22018s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22019s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22020s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22021s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22022s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22023s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22024s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22025s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22026s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22027s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22028s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22029s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22030s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22031s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22032s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22033s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22034s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22035s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22036s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22037s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22038s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22039s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22040s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22041s,@STDINT_H@,$STDINT_H,;t t
22042s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22043s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22044s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22045s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22046s,@WCHAR_H@,$WCHAR_H,;t t
22047s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22048s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22049s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22050s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22051s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22052s,@PACKAGE@,$PACKAGE,;t t
22053s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22054s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22055s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22056s,@CYGPATH_W@,$CYGPATH_W,;t t
22057s,@PYTHON2_4@,$PYTHON2_4,;t t
22058s,@ACLOCAL@,$ACLOCAL,;t t
22059s,@AUTOCONF@,$AUTOCONF,;t t
22060s,@AUTOMAKE@,$AUTOMAKE,;t t
22061s,@AUTOHEADER@,$AUTOHEADER,;t t
22062s,@MAKEINFO@,$MAKEINFO,;t t
22063s,@install_sh@,$install_sh,;t t
22064s,@STRIP@,$STRIP,;t t
22065s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22066s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22067s,@mkdir_p@,$mkdir_p,;t t
22068s,@AWK@,$AWK,;t t
22069s,@AMTAR@,$AMTAR,;t t
22070s,@am__tar@,$am__tar,;t t
22071s,@am__untar@,$am__untar,;t t
22072s,@am__include@,$am__include,;t t
22073s,@am__quote@,$am__quote,;t t
22074s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22075s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22076s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22077s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22078s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22079s,@subdirs@,$subdirs,;t t
22080s,@TARGET_OBS@,$TARGET_OBS,;t t
22081s,@PKGVERSION@,$PKGVERSION,;t t
22082s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22083s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22084s,@LN_S@,$LN_S,;t t
22085s,@YACC@,$YACC,;t t
22086s,@AR@,$AR,;t t
22087s,@ac_ct_AR@,$ac_ct_AR,;t t
22088s,@DLLTOOL@,$DLLTOOL,;t t
22089s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22090s,@WINDRES@,$WINDRES,;t t
22091s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22092s,@MIG@,$MIG,;t t
22093s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22094s,@READLINE@,$READLINE,;t t
22095s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22096s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22097s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22098s,@LIBEXPAT@,$LIBEXPAT,;t t
22099s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22100s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22101s,@ALLOCA@,$ALLOCA,;t t
22102s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22103s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22104s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22105s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22106s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22107s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22108s,@WIN32LIBS@,$WIN32LIBS,;t t
22109s,@LIBGUI@,$LIBGUI,;t t
22110s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22111s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22112s,@TCL_VERSION@,$TCL_VERSION,;t t
22113s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22114s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22115s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22116s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22117s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22118s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22119s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22120s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22121s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22122s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22123s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22124s,@TCL_DEPS@,$TCL_DEPS,;t t
22125s,@TK_VERSION@,$TK_VERSION,;t t
22126s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22127s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22128s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22129s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22130s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22131s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22132s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22133s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22134s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22135s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22136s,@TK_DEPS@,$TK_DEPS,;t t
22137s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22138s,@X_CFLAGS@,$X_CFLAGS,;t t
22139s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22140s,@X_LIBS@,$X_LIBS,;t t
22141s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22142s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22143s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22144s,@SIM@,$SIM,;t t
22145s,@SIM_OBS@,$SIM_OBS,;t t
22146s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22147s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22148s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22149s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22150s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22151s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22152s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22153s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22154s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22155s,@target_subdir@,$target_subdir,;t t
22156s,@frags@,$frags,;t t
22157s,@nm_h@,$nm_h,;t t
22158s,@datarootdir@,$datarootdir,;t t
22159s,@docdir@,$docdir,;t t
22160s,@htmldir@,$htmldir,;t t
22161s,@pdfdir@,$pdfdir,;t t
22162s,@LIBOBJS@,$LIBOBJS,;t t
22163s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22164s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22165s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22166s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22167s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22168/@host_makefile_frag@/r $host_makefile_frag
22169s,@host_makefile_frag@,,;t t
22170CEOF
22171
22172_ACEOF
22173
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 # Split the substitutions into bite-sized pieces for seds with
22176 # small command number limits, like on Digital OSF/1 and HP-UX.
22177 ac_max_sed_lines=48
22178 ac_sed_frag=1 # Number of current file.
22179 ac_beg=1 # First line for current file.
22180 ac_end=$ac_max_sed_lines # Line after last line for current file.
22181 ac_more_lines=:
22182 ac_sed_cmds=
22183 while $ac_more_lines; do
22184 if test $ac_beg -gt 1; then
22185 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22186 else
22187 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22188 fi
22189 if test ! -s $tmp/subs.frag; then
22190 ac_more_lines=false
22191 else
22192 # The purpose of the label and of the branching condition is to
22193 # speed up the sed processing (if there are no `@' at all, there
22194 # is no need to browse any of the substitutions).
22195 # These are the two extra sed commands mentioned above.
22196 (echo ':t
22197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22198 if test -z "$ac_sed_cmds"; then
22199 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22200 else
22201 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22202 fi
22203 ac_sed_frag=`expr $ac_sed_frag + 1`
22204 ac_beg=$ac_end
22205 ac_end=`expr $ac_end + $ac_max_sed_lines`
22206 fi
22207 done
22208 if test -z "$ac_sed_cmds"; then
22209 ac_sed_cmds=cat
22210 fi
22211fi # test -n "$CONFIG_FILES"
22212
22213_ACEOF
22214cat >>$CONFIG_STATUS <<\_ACEOF
22215for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22217 case $ac_file in
22218 - | *:- | *:-:* ) # input from stdin
22219 cat >$tmp/stdin
22220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22224 * ) ac_file_in=$ac_file.in ;;
22225 esac
22226
22227 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22228 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230 X"$ac_file" : 'X\(//\)[^/]' \| \
22231 X"$ac_file" : 'X\(//\)$' \| \
22232 X"$ac_file" : 'X\(/\)' \| \
22233 . : '\(.\)' 2>/dev/null ||
22234echo X"$ac_file" |
22235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22237 /^X\(\/\/\)$/{ s//\1/; q; }
22238 /^X\(\/\).*/{ s//\1/; q; }
22239 s/.*/./; q'`
22240 { if $as_mkdir_p; then
22241 mkdir -p "$ac_dir"
22242 else
22243 as_dir="$ac_dir"
22244 as_dirs=
22245 while test ! -d "$as_dir"; do
22246 as_dirs="$as_dir $as_dirs"
22247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22249 X"$as_dir" : 'X\(//\)[^/]' \| \
22250 X"$as_dir" : 'X\(//\)$' \| \
22251 X"$as_dir" : 'X\(/\)' \| \
22252 . : '\(.\)' 2>/dev/null ||
22253echo X"$as_dir" |
22254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22256 /^X\(\/\/\)$/{ s//\1/; q; }
22257 /^X\(\/\).*/{ s//\1/; q; }
22258 s/.*/./; q'`
22259 done
22260 test ! -n "$as_dirs" || mkdir $as_dirs
22261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22262echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22263 { (exit 1); exit 1; }; }; }
22264
22265 ac_builddir=.
22266
22267if test "$ac_dir" != .; then
22268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22269 # A "../" for each directory in $ac_dir_suffix.
22270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22271else
22272 ac_dir_suffix= ac_top_builddir=
22273fi
22274
22275case $srcdir in
22276 .) # No --srcdir option. We are building in place.
22277 ac_srcdir=.
22278 if test -z "$ac_top_builddir"; then
22279 ac_top_srcdir=.
22280 else
22281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22282 fi ;;
22283 [\\/]* | ?:[\\/]* ) # Absolute path.
22284 ac_srcdir=$srcdir$ac_dir_suffix;
22285 ac_top_srcdir=$srcdir ;;
22286 *) # Relative path.
22287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22288 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22289esac
22290
22291# Do not use `cd foo && pwd` to compute absolute paths, because
22292# the directories may not exist.
22293case `pwd` in
22294.) ac_abs_builddir="$ac_dir";;
22295*)
22296 case "$ac_dir" in
22297 .) ac_abs_builddir=`pwd`;;
22298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22299 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22300 esac;;
22301esac
22302case $ac_abs_builddir in
22303.) ac_abs_top_builddir=${ac_top_builddir}.;;
22304*)
22305 case ${ac_top_builddir}. in
22306 .) ac_abs_top_builddir=$ac_abs_builddir;;
22307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22309 esac;;
22310esac
22311case $ac_abs_builddir in
22312.) ac_abs_srcdir=$ac_srcdir;;
22313*)
22314 case $ac_srcdir in
22315 .) ac_abs_srcdir=$ac_abs_builddir;;
22316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22318 esac;;
22319esac
22320case $ac_abs_builddir in
22321.) ac_abs_top_srcdir=$ac_top_srcdir;;
22322*)
22323 case $ac_top_srcdir in
22324 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22327 esac;;
22328esac
22329
22330
22331 case $INSTALL in
22332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22333 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22334 esac
22335
22336 if test x"$ac_file" != x-; then
22337 { echo "$as_me:$LINENO: creating $ac_file" >&5
22338echo "$as_me: creating $ac_file" >&6;}
22339 rm -f "$ac_file"
22340 fi
22341 # Let's still pretend it is `configure' which instantiates (i.e., don't
22342 # use $as_me), people would be surprised to read:
22343 # /* config.h. Generated by config.status. */
22344 if test x"$ac_file" = x-; then
22345 configure_input=
22346 else
22347 configure_input="$ac_file. "
22348 fi
22349 configure_input=$configure_input"Generated from `echo $ac_file_in |
22350 sed 's,.*/,,'` by configure."
22351
22352 # First look for the input files in the build tree, otherwise in the
22353 # src tree.
22354 ac_file_inputs=`IFS=:
22355 for f in $ac_file_in; do
22356 case $f in
22357 -) echo $tmp/stdin ;;
22358 [\\/$]*)
22359 # Absolute (can't be DOS-style, as IFS=:)
22360 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22361echo "$as_me: error: cannot find input file: $f" >&2;}
22362 { (exit 1); exit 1; }; }
22363 echo "$f";;
22364 *) # Relative
22365 if test -f "$f"; then
22366 # Build tree
22367 echo "$f"
22368 elif test -f "$srcdir/$f"; then
22369 # Source tree
22370 echo "$srcdir/$f"
22371 else
22372 # /dev/null tree
22373 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22374echo "$as_me: error: cannot find input file: $f" >&2;}
22375 { (exit 1); exit 1; }; }
22376 fi;;
22377 esac
22378 done` || { (exit 1); exit 1; }
22379_ACEOF
22380cat >>$CONFIG_STATUS <<_ACEOF
22381 sed "$ac_vpsub
22382$extrasub
22383_ACEOF
22384cat >>$CONFIG_STATUS <<\_ACEOF
22385:t
22386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22387s,@configure_input@,$configure_input,;t t
22388s,@srcdir@,$ac_srcdir,;t t
22389s,@abs_srcdir@,$ac_abs_srcdir,;t t
22390s,@top_srcdir@,$ac_top_srcdir,;t t
22391s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22392s,@builddir@,$ac_builddir,;t t
22393s,@abs_builddir@,$ac_abs_builddir,;t t
22394s,@top_builddir@,$ac_top_builddir,;t t
22395s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22396s,@INSTALL@,$ac_INSTALL,;t t
22397" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22398 rm -f $tmp/stdin
22399 if test x"$ac_file" != x-; then
22400 mv $tmp/out $ac_file
22401 else
22402 cat $tmp/out
22403 rm -f $tmp/out
22404 fi
22405
22406done
22407_ACEOF
22408cat >>$CONFIG_STATUS <<\_ACEOF
22409
22410#
22411# CONFIG_HEADER section.
22412#
22413
22414# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22415# NAME is the cpp macro being defined and VALUE is the value it is being given.
22416#
22417# ac_d sets the value in "#define NAME VALUE" lines.
22418ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22419ac_dB='[ ].*$,\1#\2'
22420ac_dC=' '
22421ac_dD=',;t'
22422# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22423ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22424ac_uB='$,\1#\2define\3'
22425ac_uC=' '
22426ac_uD=',;t'
22427
22428for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22430 case $ac_file in
22431 - | *:- | *:-:* ) # input from stdin
22432 cat >$tmp/stdin
22433 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22435 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22437 * ) ac_file_in=$ac_file.in ;;
22438 esac
22439
22440 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22441echo "$as_me: creating $ac_file" >&6;}
22442
22443 # First look for the input files in the build tree, otherwise in the
22444 # src tree.
22445 ac_file_inputs=`IFS=:
22446 for f in $ac_file_in; do
22447 case $f in
22448 -) echo $tmp/stdin ;;
22449 [\\/$]*)
22450 # Absolute (can't be DOS-style, as IFS=:)
22451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22452echo "$as_me: error: cannot find input file: $f" >&2;}
22453 { (exit 1); exit 1; }; }
22454 # Do quote $f, to prevent DOS paths from being IFS'd.
22455 echo "$f";;
22456 *) # Relative
22457 if test -f "$f"; then
22458 # Build tree
22459 echo "$f"
22460 elif test -f "$srcdir/$f"; then
22461 # Source tree
22462 echo "$srcdir/$f"
22463 else
22464 # /dev/null tree
22465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22466echo "$as_me: error: cannot find input file: $f" >&2;}
22467 { (exit 1); exit 1; }; }
22468 fi;;
22469 esac
22470 done` || { (exit 1); exit 1; }
22471 # Remove the trailing spaces.
22472 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22473
22474_ACEOF
22475
22476# Transform confdefs.h into two sed scripts, `conftest.defines' and
22477# `conftest.undefs', that substitutes the proper values into
22478# config.h.in to produce config.h. The first handles `#define'
22479# templates, and the second `#undef' templates.
22480# And first: Protect against being on the right side of a sed subst in
22481# config.status. Protect against being in an unquoted here document
22482# in config.status.
22483rm -f conftest.defines conftest.undefs
22484# Using a here document instead of a string reduces the quoting nightmare.
22485# Putting comments in sed scripts is not portable.
22486#
22487# `end' is used to avoid that the second main sed command (meant for
22488# 0-ary CPP macros) applies to n-ary macro definitions.
22489# See the Autoconf documentation for `clear'.
22490cat >confdef2sed.sed <<\_ACEOF
22491s/[\\&,]/\\&/g
22492s,[\\$`],\\&,g
22493t clear
22494: clear
22495s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22496t end
22497s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22498: end
22499_ACEOF
22500# If some macros were called several times there might be several times
22501# the same #defines, which is useless. Nevertheless, we may not want to
22502# sort them, since we want the *last* AC-DEFINE to be honored.
22503uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22504sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22505rm -f confdef2sed.sed
22506
22507# This sed command replaces #undef with comments. This is necessary, for
22508# example, in the case of _POSIX_SOURCE, which is predefined and required
22509# on some systems where configure will not decide to define it.
22510cat >>conftest.undefs <<\_ACEOF
22511s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22512_ACEOF
22513
22514# Break up conftest.defines because some shells have a limit on the size
22515# of here documents, and old seds have small limits too (100 cmds).
22516echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22517echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22518echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22519echo ' :' >>$CONFIG_STATUS
22520rm -f conftest.tail
22521while grep . conftest.defines >/dev/null
22522do
22523 # Write a limited-size here document to $tmp/defines.sed.
22524 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22525 # Speed up: don't consider the non `#define' lines.
22526 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22527 # Work around the forget-to-reset-the-flag bug.
22528 echo 't clr' >>$CONFIG_STATUS
22529 echo ': clr' >>$CONFIG_STATUS
22530 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22531 echo 'CEOF
22532 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22533 rm -f $tmp/in
22534 mv $tmp/out $tmp/in
22535' >>$CONFIG_STATUS
22536 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22537 rm -f conftest.defines
22538 mv conftest.tail conftest.defines
22539done
22540rm -f conftest.defines
22541echo ' fi # grep' >>$CONFIG_STATUS
22542echo >>$CONFIG_STATUS
22543
22544# Break up conftest.undefs because some shells have a limit on the size
22545# of here documents, and old seds have small limits too (100 cmds).
22546echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22547rm -f conftest.tail
22548while grep . conftest.undefs >/dev/null
22549do
22550 # Write a limited-size here document to $tmp/undefs.sed.
22551 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22552 # Speed up: don't consider the non `#undef'
22553 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22554 # Work around the forget-to-reset-the-flag bug.
22555 echo 't clr' >>$CONFIG_STATUS
22556 echo ': clr' >>$CONFIG_STATUS
22557 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22558 echo 'CEOF
22559 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22560 rm -f $tmp/in
22561 mv $tmp/out $tmp/in
22562' >>$CONFIG_STATUS
22563 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22564 rm -f conftest.undefs
22565 mv conftest.tail conftest.undefs
22566done
22567rm -f conftest.undefs
22568
22569cat >>$CONFIG_STATUS <<\_ACEOF
22570 # Let's still pretend it is `configure' which instantiates (i.e., don't
22571 # use $as_me), people would be surprised to read:
22572 # /* config.h. Generated by config.status. */
22573 if test x"$ac_file" = x-; then
22574 echo "/* Generated by configure. */" >$tmp/config.h
22575 else
22576 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22577 fi
22578 cat $tmp/in >>$tmp/config.h
22579 rm -f $tmp/in
22580 if test x"$ac_file" != x-; then
22581 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22582 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22583echo "$as_me: $ac_file is unchanged" >&6;}
22584 else
22585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587 X"$ac_file" : 'X\(//\)[^/]' \| \
22588 X"$ac_file" : 'X\(//\)$' \| \
22589 X"$ac_file" : 'X\(/\)' \| \
22590 . : '\(.\)' 2>/dev/null ||
22591echo X"$ac_file" |
22592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22594 /^X\(\/\/\)$/{ s//\1/; q; }
22595 /^X\(\/\).*/{ s//\1/; q; }
22596 s/.*/./; q'`
22597 { if $as_mkdir_p; then
22598 mkdir -p "$ac_dir"
22599 else
22600 as_dir="$ac_dir"
22601 as_dirs=
22602 while test ! -d "$as_dir"; do
22603 as_dirs="$as_dir $as_dirs"
22604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$as_dir" : 'X\(//\)[^/]' \| \
22607 X"$as_dir" : 'X\(//\)$' \| \
22608 X"$as_dir" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22610echo X"$as_dir" |
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22615 s/.*/./; q'`
22616 done
22617 test ! -n "$as_dirs" || mkdir $as_dirs
22618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22619echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22620 { (exit 1); exit 1; }; }; }
22621
22622 rm -f $ac_file
22623 mv $tmp/config.h $ac_file
22624 fi
22625 else
22626 cat $tmp/config.h
22627 rm -f $tmp/config.h
22628 fi
22629# Compute $ac_file's index in $config_headers.
22630_am_stamp_count=1
22631for _am_header in $config_headers :; do
22632 case $_am_header in
22633 $ac_file | $ac_file:* )
22634 break ;;
22635 * )
22636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22637 esac
22638done
22639echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22640$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22641 X$ac_file : 'X\(//\)[^/]' \| \
22642 X$ac_file : 'X\(//\)$' \| \
22643 X$ac_file : 'X\(/\)' \| \
22644 . : '\(.\)' 2>/dev/null ||
22645echo X$ac_file |
22646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22648 /^X\(\/\/\)$/{ s//\1/; q; }
22649 /^X\(\/\).*/{ s//\1/; q; }
22650 s/.*/./; q'`/stamp-h$_am_stamp_count
22651done
22652_ACEOF
22653cat >>$CONFIG_STATUS <<\_ACEOF
22654
22655#
22656# CONFIG_LINKS section.
22657#
22658
22659for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22660 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22661 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22662
22663 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22664echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22665
22666 if test ! -r $srcdir/$ac_source; then
22667 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22668echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22669 { (exit 1); exit 1; }; }
22670 fi
22671 rm -f $ac_dest
22672
22673 # Make relative symlinks.
22674 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22675$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22676 X"$ac_dest" : 'X\(//\)[^/]' \| \
22677 X"$ac_dest" : 'X\(//\)$' \| \
22678 X"$ac_dest" : 'X\(/\)' \| \
22679 . : '\(.\)' 2>/dev/null ||
22680echo X"$ac_dest" |
22681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22683 /^X\(\/\/\)$/{ s//\1/; q; }
22684 /^X\(\/\).*/{ s//\1/; q; }
22685 s/.*/./; q'`
22686 { if $as_mkdir_p; then
22687 mkdir -p "$ac_dest_dir"
22688 else
22689 as_dir="$ac_dest_dir"
22690 as_dirs=
22691 while test ! -d "$as_dir"; do
22692 as_dirs="$as_dir $as_dirs"
22693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22695 X"$as_dir" : 'X\(//\)[^/]' \| \
22696 X"$as_dir" : 'X\(//\)$' \| \
22697 X"$as_dir" : 'X\(/\)' \| \
22698 . : '\(.\)' 2>/dev/null ||
22699echo X"$as_dir" |
22700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22702 /^X\(\/\/\)$/{ s//\1/; q; }
22703 /^X\(\/\).*/{ s//\1/; q; }
22704 s/.*/./; q'`
22705 done
22706 test ! -n "$as_dirs" || mkdir $as_dirs
22707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22708echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22709 { (exit 1); exit 1; }; }; }
22710
22711 ac_builddir=.
22712
22713if test "$ac_dest_dir" != .; then
22714 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22715 # A "../" for each directory in $ac_dir_suffix.
22716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22717else
22718 ac_dir_suffix= ac_top_builddir=
22719fi
22720
22721case $srcdir in
22722 .) # No --srcdir option. We are building in place.
22723 ac_srcdir=.
22724 if test -z "$ac_top_builddir"; then
22725 ac_top_srcdir=.
22726 else
22727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22728 fi ;;
22729 [\\/]* | ?:[\\/]* ) # Absolute path.
22730 ac_srcdir=$srcdir$ac_dir_suffix;
22731 ac_top_srcdir=$srcdir ;;
22732 *) # Relative path.
22733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22735esac
22736
22737# Do not use `cd foo && pwd` to compute absolute paths, because
22738# the directories may not exist.
22739case `pwd` in
22740.) ac_abs_builddir="$ac_dest_dir";;
22741*)
22742 case "$ac_dest_dir" in
22743 .) ac_abs_builddir=`pwd`;;
22744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22745 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22746 esac;;
22747esac
22748case $ac_abs_builddir in
22749.) ac_abs_top_builddir=${ac_top_builddir}.;;
22750*)
22751 case ${ac_top_builddir}. in
22752 .) ac_abs_top_builddir=$ac_abs_builddir;;
22753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22755 esac;;
22756esac
22757case $ac_abs_builddir in
22758.) ac_abs_srcdir=$ac_srcdir;;
22759*)
22760 case $ac_srcdir in
22761 .) ac_abs_srcdir=$ac_abs_builddir;;
22762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22764 esac;;
22765esac
22766case $ac_abs_builddir in
22767.) ac_abs_top_srcdir=$ac_top_srcdir;;
22768*)
22769 case $ac_top_srcdir in
22770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22773 esac;;
22774esac
22775
22776
22777 case $srcdir in
22778 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22779 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22780 esac
22781
22782 # Try a symlink, then a hard link, then a copy.
22783 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22784 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22785 cp -p $srcdir/$ac_source $ac_dest ||
22786 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22787echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22788 { (exit 1); exit 1; }; }
22789done
22790_ACEOF
22791cat >>$CONFIG_STATUS <<\_ACEOF
22792
22793#
22794# CONFIG_COMMANDS section.
22795#
22796for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22797 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22798 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22799 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22800$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22801 X"$ac_dest" : 'X\(//\)[^/]' \| \
22802 X"$ac_dest" : 'X\(//\)$' \| \
22803 X"$ac_dest" : 'X\(/\)' \| \
22804 . : '\(.\)' 2>/dev/null ||
22805echo X"$ac_dest" |
22806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22808 /^X\(\/\/\)$/{ s//\1/; q; }
22809 /^X\(\/\).*/{ s//\1/; q; }
22810 s/.*/./; q'`
22811 { if $as_mkdir_p; then
22812 mkdir -p "$ac_dir"
22813 else
22814 as_dir="$ac_dir"
22815 as_dirs=
22816 while test ! -d "$as_dir"; do
22817 as_dirs="$as_dir $as_dirs"
22818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22819$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22820 X"$as_dir" : 'X\(//\)[^/]' \| \
22821 X"$as_dir" : 'X\(//\)$' \| \
22822 X"$as_dir" : 'X\(/\)' \| \
22823 . : '\(.\)' 2>/dev/null ||
22824echo X"$as_dir" |
22825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22827 /^X\(\/\/\)$/{ s//\1/; q; }
22828 /^X\(\/\).*/{ s//\1/; q; }
22829 s/.*/./; q'`
22830 done
22831 test ! -n "$as_dirs" || mkdir $as_dirs
22832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22833echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22834 { (exit 1); exit 1; }; }; }
22835
22836 ac_builddir=.
22837
22838if test "$ac_dir" != .; then
22839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22840 # A "../" for each directory in $ac_dir_suffix.
22841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22842else
22843 ac_dir_suffix= ac_top_builddir=
22844fi
22845
22846case $srcdir in
22847 .) # No --srcdir option. We are building in place.
22848 ac_srcdir=.
22849 if test -z "$ac_top_builddir"; then
22850 ac_top_srcdir=.
22851 else
22852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22853 fi ;;
22854 [\\/]* | ?:[\\/]* ) # Absolute path.
22855 ac_srcdir=$srcdir$ac_dir_suffix;
22856 ac_top_srcdir=$srcdir ;;
22857 *) # Relative path.
22858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22860esac
22861
22862# Do not use `cd foo && pwd` to compute absolute paths, because
22863# the directories may not exist.
22864case `pwd` in
22865.) ac_abs_builddir="$ac_dir";;
22866*)
22867 case "$ac_dir" in
22868 .) ac_abs_builddir=`pwd`;;
22869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22870 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22871 esac;;
22872esac
22873case $ac_abs_builddir in
22874.) ac_abs_top_builddir=${ac_top_builddir}.;;
22875*)
22876 case ${ac_top_builddir}. in
22877 .) ac_abs_top_builddir=$ac_abs_builddir;;
22878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22880 esac;;
22881esac
22882case $ac_abs_builddir in
22883.) ac_abs_srcdir=$ac_srcdir;;
22884*)
22885 case $ac_srcdir in
22886 .) ac_abs_srcdir=$ac_abs_builddir;;
22887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22889 esac;;
22890esac
22891case $ac_abs_builddir in
22892.) ac_abs_top_srcdir=$ac_top_srcdir;;
22893*)
22894 case $ac_top_srcdir in
22895 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22898 esac;;
22899esac
22900
22901
22902 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22903echo "$as_me: executing $ac_dest commands" >&6;}
22904 case $ac_dest in
22905 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22906 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22907 # Strip MF so we end up with the name of the file.
22908 mf=`echo "$mf" | sed -e 's/:.*$//'`
22909 # Check whether this is an Automake generated Makefile or not.
22910 # We used to match only the files named `Makefile.in', but
22911 # some people rename them; so instead we look at the file content.
22912 # Grep'ing the first line is not enough: some people post-process
22913 # each Makefile.in and add a new line on top of each file to say so.
22914 # So let's grep whole file.
22915 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22916 dirpart=`(dirname "$mf") 2>/dev/null ||
22917$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22918 X"$mf" : 'X\(//\)[^/]' \| \
22919 X"$mf" : 'X\(//\)$' \| \
22920 X"$mf" : 'X\(/\)' \| \
22921 . : '\(.\)' 2>/dev/null ||
22922echo X"$mf" |
22923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22925 /^X\(\/\/\)$/{ s//\1/; q; }
22926 /^X\(\/\).*/{ s//\1/; q; }
22927 s/.*/./; q'`
22928 else
22929 continue
22930 fi
22931 # Extract the definition of DEPDIR, am__include, and am__quote
22932 # from the Makefile without running `make'.
22933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22934 test -z "$DEPDIR" && continue
22935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22936 test -z "am__include" && continue
22937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22938 # When using ansi2knr, U may be empty or an underscore; expand it
22939 U=`sed -n 's/^U = //p' < "$mf"`
22940 # Find all dependency output files, they are included files with
22941 # $(DEPDIR) in their names. We invoke sed twice because it is the
22942 # simplest approach to changing $(DEPDIR) to its actual value in the
22943 # expansion.
22944 for file in `sed -n "
22945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22947 # Make sure the directory exists.
22948 test -f "$dirpart/$file" && continue
22949 fdir=`(dirname "$file") 2>/dev/null ||
22950$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22951 X"$file" : 'X\(//\)[^/]' \| \
22952 X"$file" : 'X\(//\)$' \| \
22953 X"$file" : 'X\(/\)' \| \
22954 . : '\(.\)' 2>/dev/null ||
22955echo X"$file" |
22956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22958 /^X\(\/\/\)$/{ s//\1/; q; }
22959 /^X\(\/\).*/{ s//\1/; q; }
22960 s/.*/./; q'`
22961 { if $as_mkdir_p; then
22962 mkdir -p $dirpart/$fdir
22963 else
22964 as_dir=$dirpart/$fdir
22965 as_dirs=
22966 while test ! -d "$as_dir"; do
22967 as_dirs="$as_dir $as_dirs"
22968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22969$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22970 X"$as_dir" : 'X\(//\)[^/]' \| \
22971 X"$as_dir" : 'X\(//\)$' \| \
22972 X"$as_dir" : 'X\(/\)' \| \
22973 . : '\(.\)' 2>/dev/null ||
22974echo X"$as_dir" |
22975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22977 /^X\(\/\/\)$/{ s//\1/; q; }
22978 /^X\(\/\).*/{ s//\1/; q; }
22979 s/.*/./; q'`
22980 done
22981 test ! -n "$as_dirs" || mkdir $as_dirs
22982 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22983echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22984 { (exit 1); exit 1; }; }; }
22985
22986 # echo "creating $dirpart/$file"
22987 echo '# dummy' > "$dirpart/$file"
22988 done
22989done
22990 ;;
22991 default )
22992
22993sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22994mv -f Makefile.tmp Makefile
22995
22996
22997case x$CONFIG_HEADERS in
22998xconfig.h:config.in)
22999echo > stamp-h ;;
23000esac
23001 ;;
23002 esac
23003done
23004_ACEOF
23005
23006cat >>$CONFIG_STATUS <<\_ACEOF
23007
23008{ (exit 0); exit 0; }
23009_ACEOF
23010chmod +x $CONFIG_STATUS
23011ac_clean_files=$ac_clean_files_save
23012
23013
23014# configure is writing to config.log, and then calls config.status.
23015# config.status does its own redirection, appending to config.log.
23016# Unfortunately, on DOS this fails, as config.log is still kept open
23017# by configure, so config.status won't be able to write to it; its
23018# output is simply discarded. So we exec the FD to /dev/null,
23019# effectively closing config.log, so it can be properly (re)opened and
23020# appended to by config.status. When coming back to configure, we
23021# need to make the FD available again.
23022if test "$no_create" != yes; then
23023 ac_cs_success=:
23024 ac_config_status_args=
23025 test "$silent" = yes &&
23026 ac_config_status_args="$ac_config_status_args --quiet"
23027 exec 5>/dev/null
23028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23029 exec 5>>config.log
23030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23031 # would make configure fail if this is the last instruction.
23032 $ac_cs_success || { (exit 1); exit 1; }
23033fi
23034
23035#
23036# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23037#
23038if test "$no_recursion" != yes; then
23039
23040 # Remove --cache-file and --srcdir arguments so they do not pile up.
23041 ac_sub_configure_args=
23042 ac_prev=
23043 eval "set x $ac_configure_args"
23044 shift
23045 for ac_arg
23046 do
23047 if test -n "$ac_prev"; then
23048 ac_prev=
23049 continue
23050 fi
23051 case $ac_arg in
23052 -cache-file | --cache-file | --cache-fil | --cache-fi \
23053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23054 ac_prev=cache_file ;;
23055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23057 | --c=*)
23058 ;;
23059 --config-cache | -C)
23060 ;;
23061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23062 ac_prev=srcdir ;;
23063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23064 ;;
23065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23066 ac_prev=prefix ;;
23067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23068 ;;
23069 *)
23070 case $ac_arg in
23071 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23072 esac
23073 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23074 esac
23075 done
23076
23077 # Always prepend --prefix to ensure using the same prefix
23078 # in subdir configurations.
23079 ac_arg="--prefix=$prefix"
23080 case $ac_arg in
23081 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23082 esac
23083 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23084
23085 ac_popdir=`pwd`
23086 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23087
23088 # Do not complain, so a configure script can configure whichever
23089 # parts of a large source tree are present.
23090 test -d "$srcdir/$ac_dir" || continue
23091
23092 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23093echo "$as_me: configuring in $ac_dir" >&6;}
23094 { if $as_mkdir_p; then
23095 mkdir -p "$ac_dir"
23096 else
23097 as_dir="$ac_dir"
23098 as_dirs=
23099 while test ! -d "$as_dir"; do
23100 as_dirs="$as_dir $as_dirs"
23101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103 X"$as_dir" : 'X\(//\)[^/]' \| \
23104 X"$as_dir" : 'X\(//\)$' \| \
23105 X"$as_dir" : 'X\(/\)' \| \
23106 . : '\(.\)' 2>/dev/null ||
23107echo X"$as_dir" |
23108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23110 /^X\(\/\/\)$/{ s//\1/; q; }
23111 /^X\(\/\).*/{ s//\1/; q; }
23112 s/.*/./; q'`
23113 done
23114 test ! -n "$as_dirs" || mkdir $as_dirs
23115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23116echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23117 { (exit 1); exit 1; }; }; }
23118
23119 ac_builddir=.
23120
23121if test "$ac_dir" != .; then
23122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23123 # A "../" for each directory in $ac_dir_suffix.
23124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23125else
23126 ac_dir_suffix= ac_top_builddir=
23127fi
23128
23129case $srcdir in
23130 .) # No --srcdir option. We are building in place.
23131 ac_srcdir=.
23132 if test -z "$ac_top_builddir"; then
23133 ac_top_srcdir=.
23134 else
23135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23136 fi ;;
23137 [\\/]* | ?:[\\/]* ) # Absolute path.
23138 ac_srcdir=$srcdir$ac_dir_suffix;
23139 ac_top_srcdir=$srcdir ;;
23140 *) # Relative path.
23141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23143esac
23144
23145# Do not use `cd foo && pwd` to compute absolute paths, because
23146# the directories may not exist.
23147case `pwd` in
23148.) ac_abs_builddir="$ac_dir";;
23149*)
23150 case "$ac_dir" in
23151 .) ac_abs_builddir=`pwd`;;
23152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23154 esac;;
23155esac
23156case $ac_abs_builddir in
23157.) ac_abs_top_builddir=${ac_top_builddir}.;;
23158*)
23159 case ${ac_top_builddir}. in
23160 .) ac_abs_top_builddir=$ac_abs_builddir;;
23161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23163 esac;;
23164esac
23165case $ac_abs_builddir in
23166.) ac_abs_srcdir=$ac_srcdir;;
23167*)
23168 case $ac_srcdir in
23169 .) ac_abs_srcdir=$ac_abs_builddir;;
23170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23172 esac;;
23173esac
23174case $ac_abs_builddir in
23175.) ac_abs_top_srcdir=$ac_top_srcdir;;
23176*)
23177 case $ac_top_srcdir in
23178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23181 esac;;
23182esac
23183
23184
23185 cd "$ac_dir"
23186
23187 # Check for guested configure; otherwise get Cygnus style configure.
23188 if test -f "$ac_srcdir/configure.gnu"; then
23189 ac_sub_configure=$ac_srcdir/configure.gnu
23190 elif test -f "$ac_srcdir/configure"; then
23191 ac_sub_configure=$ac_srcdir/configure
23192 elif test -f "$ac_srcdir/configure.in"; then
23193 # This should be Cygnus configure.
23194 ac_sub_configure=$ac_aux_dir/configure
23195 else
23196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23197echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23198 ac_sub_configure=
23199 fi
23200
23201 # The recursion is here.
23202 if test -n "$ac_sub_configure"; then
23203 # Make the cache file name correct relative to the subdirectory.
23204 case $cache_file in
23205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23206 *) # Relative path.
23207 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23208 esac
23209
23210 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23211echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23212 # The eval makes quoting arguments work.
23213 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23214 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23216echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23217 { (exit 1); exit 1; }; }
23218 fi
23219
23220 cd "$ac_popdir"
23221 done
23222fi
23223
23224
23225exit 0
This page took 0.104207 seconds and 4 git commands to generate.