gdb
[platform/upstream/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE DEBUGDIR GDB_DATADIR 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 SYSTEM_GDBINIT 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 GDB_NM_FILE datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362   # If the previous option needs an argument, assign it.
363   if test -n "$ac_prev"; then
364     eval "$ac_prev=\$ac_option"
365     ac_prev=
366     continue
367   fi
368
369   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371   # Accept the important Cygnus configure options, so we can diagnose typos.
372
373   case $ac_option in
374
375   -bindir | --bindir | --bindi | --bind | --bin | --bi)
376     ac_prev=bindir ;;
377   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378     bindir=$ac_optarg ;;
379
380   -build | --build | --buil | --bui | --bu)
381     ac_prev=build_alias ;;
382   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383     build_alias=$ac_optarg ;;
384
385   -cache-file | --cache-file | --cache-fil | --cache-fi \
386   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387     ac_prev=cache_file ;;
388   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390     cache_file=$ac_optarg ;;
391
392   --config-cache | -C)
393     cache_file=config.cache ;;
394
395   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396     ac_prev=datadir ;;
397   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398   | --da=*)
399     datadir=$ac_optarg ;;
400
401   -disable-* | --disable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     eval "enable_$ac_feature=no" ;;
409
410   -enable-* | --enable-*)
411     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412     # Reject names that are not valid shell variable names.
413     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415    { (exit 1); exit 1; }; }
416     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417     case $ac_option in
418       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419       *) ac_optarg=yes ;;
420     esac
421     eval "enable_$ac_feature='$ac_optarg'" ;;
422
423   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425   | --exec | --exe | --ex)
426     ac_prev=exec_prefix ;;
427   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429   | --exec=* | --exe=* | --ex=*)
430     exec_prefix=$ac_optarg ;;
431
432   -gas | --gas | --ga | --g)
433     # Obsolete; use --with-gas.
434     with_gas=yes ;;
435
436   -help | --help | --hel | --he | -h)
437     ac_init_help=long ;;
438   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439     ac_init_help=recursive ;;
440   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441     ac_init_help=short ;;
442
443   -host | --host | --hos | --ho)
444     ac_prev=host_alias ;;
445   -host=* | --host=* | --hos=* | --ho=*)
446     host_alias=$ac_optarg ;;
447
448   -includedir | --includedir | --includedi | --included | --include \
449   | --includ | --inclu | --incl | --inc)
450     ac_prev=includedir ;;
451   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452   | --includ=* | --inclu=* | --incl=* | --inc=*)
453     includedir=$ac_optarg ;;
454
455   -infodir | --infodir | --infodi | --infod | --info | --inf)
456     ac_prev=infodir ;;
457   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458     infodir=$ac_optarg ;;
459
460   -libdir | --libdir | --libdi | --libd)
461     ac_prev=libdir ;;
462   -libdir=* | --libdir=* | --libdi=* | --libd=*)
463     libdir=$ac_optarg ;;
464
465   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466   | --libexe | --libex | --libe)
467     ac_prev=libexecdir ;;
468   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469   | --libexe=* | --libex=* | --libe=*)
470     libexecdir=$ac_optarg ;;
471
472   -localstatedir | --localstatedir | --localstatedi | --localstated \
473   | --localstate | --localstat | --localsta | --localst \
474   | --locals | --local | --loca | --loc | --lo)
475     ac_prev=localstatedir ;;
476   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479     localstatedir=$ac_optarg ;;
480
481   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482     ac_prev=mandir ;;
483   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484     mandir=$ac_optarg ;;
485
486   -nfp | --nfp | --nf)
487     # Obsolete; use --without-fp.
488     with_fp=no ;;
489
490   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491   | --no-cr | --no-c | -n)
492     no_create=yes ;;
493
494   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496     no_recursion=yes ;;
497
498   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500   | --oldin | --oldi | --old | --ol | --o)
501     ac_prev=oldincludedir ;;
502   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505     oldincludedir=$ac_optarg ;;
506
507   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508     ac_prev=prefix ;;
509   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510     prefix=$ac_optarg ;;
511
512   -program-prefix | --program-prefix | --program-prefi | --program-pref \
513   | --program-pre | --program-pr | --program-p)
514     ac_prev=program_prefix ;;
515   -program-prefix=* | --program-prefix=* | --program-prefi=* \
516   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517     program_prefix=$ac_optarg ;;
518
519   -program-suffix | --program-suffix | --program-suffi | --program-suff \
520   | --program-suf | --program-su | --program-s)
521     ac_prev=program_suffix ;;
522   -program-suffix=* | --program-suffix=* | --program-suffi=* \
523   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524     program_suffix=$ac_optarg ;;
525
526   -program-transform-name | --program-transform-name \
527   | --program-transform-nam | --program-transform-na \
528   | --program-transform-n | --program-transform- \
529   | --program-transform | --program-transfor \
530   | --program-transfo | --program-transf \
531   | --program-trans | --program-tran \
532   | --progr-tra | --program-tr | --program-t)
533     ac_prev=program_transform_name ;;
534   -program-transform-name=* | --program-transform-name=* \
535   | --program-transform-nam=* | --program-transform-na=* \
536   | --program-transform-n=* | --program-transform-=* \
537   | --program-transform=* | --program-transfor=* \
538   | --program-transfo=* | --program-transf=* \
539   | --program-trans=* | --program-tran=* \
540   | --progr-tra=* | --program-tr=* | --program-t=*)
541     program_transform_name=$ac_optarg ;;
542
543   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544   | -silent | --silent | --silen | --sile | --sil)
545     silent=yes ;;
546
547   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548     ac_prev=sbindir ;;
549   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550   | --sbi=* | --sb=*)
551     sbindir=$ac_optarg ;;
552
553   -sharedstatedir | --sharedstatedir | --sharedstatedi \
554   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555   | --sharedst | --shareds | --shared | --share | --shar \
556   | --sha | --sh)
557     ac_prev=sharedstatedir ;;
558   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561   | --sha=* | --sh=*)
562     sharedstatedir=$ac_optarg ;;
563
564   -site | --site | --sit)
565     ac_prev=site ;;
566   -site=* | --site=* | --sit=*)
567     site=$ac_optarg ;;
568
569   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570     ac_prev=srcdir ;;
571   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572     srcdir=$ac_optarg ;;
573
574   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575   | --syscon | --sysco | --sysc | --sys | --sy)
576     ac_prev=sysconfdir ;;
577   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579     sysconfdir=$ac_optarg ;;
580
581   -target | --target | --targe | --targ | --tar | --ta | --t)
582     ac_prev=target_alias ;;
583   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584     target_alias=$ac_optarg ;;
585
586   -v | -verbose | --verbose | --verbos | --verbo | --verb)
587     verbose=yes ;;
588
589   -version | --version | --versio | --versi | --vers | -V)
590     ac_init_version=: ;;
591
592   -with-* | --with-*)
593     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594     # Reject names that are not valid shell variable names.
595     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596       { echo "$as_me: error: invalid package name: $ac_package" >&2
597    { (exit 1); exit 1; }; }
598     ac_package=`echo $ac_package| sed 's/-/_/g'`
599     case $ac_option in
600       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601       *) ac_optarg=yes ;;
602     esac
603     eval "with_$ac_package='$ac_optarg'" ;;
604
605   -without-* | --without-*)
606     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607     # Reject names that are not valid shell variable names.
608     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609       { echo "$as_me: error: invalid package name: $ac_package" >&2
610    { (exit 1); exit 1; }; }
611     ac_package=`echo $ac_package | sed 's/-/_/g'`
612     eval "with_$ac_package=no" ;;
613
614   --x)
615     # Obsolete; use --with-x.
616     with_x=yes ;;
617
618   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619   | --x-incl | --x-inc | --x-in | --x-i)
620     ac_prev=x_includes ;;
621   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623     x_includes=$ac_optarg ;;
624
625   -x-libraries | --x-libraries | --x-librarie | --x-librari \
626   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627     ac_prev=x_libraries ;;
628   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630     x_libraries=$ac_optarg ;;
631
632   -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634    { (exit 1); exit 1; }; }
635     ;;
636
637   *=*)
638     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639     # Reject names that are not valid shell variable names.
640     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642    { (exit 1); exit 1; }; }
643     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644     eval "$ac_envvar='$ac_optarg'"
645     export $ac_envvar ;;
646
647   *)
648     # FIXME: should be removed in autoconf 3.0.
649     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653     ;;
654
655   esac
656 done
657
658 if test -n "$ac_prev"; then
659   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660   { echo "$as_me: error: missing argument to $ac_option" >&2
661    { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667   eval ac_val=$`echo $ac_var`
668   case $ac_val in
669     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671    { (exit 1); exit 1; }; };;
672   esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677               localstatedir libdir includedir oldincludedir infodir mandir
678 do
679   eval ac_val=$`echo $ac_var`
680   case $ac_val in
681     [\\/$]* | ?:[\\/]* ) ;;
682     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683    { (exit 1); exit 1; }; };;
684   esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696   if test "x$build_alias" = x; then
697     cross_compiling=maybe
698     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699     If a cross compiler is detected then cross compile mode will be used." >&2
700   elif test "x$build_alias" != "x$host_alias"; then
701     cross_compiling=yes
702   fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713   ac_srcdir_defaulted=yes
714   # Try the directory containing this script, then its parent.
715   ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717          X"$0" : 'X\(//\)[^/]' \| \
718          X"$0" : 'X\(//\)$' \| \
719          X"$0" : 'X\(/\)' \| \
720          .     : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724           /^X\(\/\/\)$/{ s//\1/; q; }
725           /^X\(\/\).*/{ s//\1/; q; }
726           s/.*/./; q'`
727   srcdir=$ac_confdir
728   if test ! -r $srcdir/$ac_unique_file; then
729     srcdir=..
730   fi
731 else
732   ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735   if test "$ac_srcdir_defaulted" = yes; then
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737    { (exit 1); exit 1; }; }
738   else
739     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740    { (exit 1); exit 1; }; }
741   fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745    { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 Program names:
841   --program-prefix=PREFIX            prepend PREFIX to installed program names
842   --program-suffix=SUFFIX            append SUFFIX to installed program names
843   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
844
845 X features:
846   --x-includes=DIR    X include files are in DIR
847   --x-libraries=DIR   X library files are in DIR
848
849 System types:
850   --build=BUILD     configure for building on BUILD [guessed]
851   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852   --target=TARGET   configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858   cat <<\_ACEOF
859
860 Optional Features:
861   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863   --enable-maintainer-mode  enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865   --disable-dependency-tracking  speeds up one-time build
866   --enable-dependency-tracking   do not reject slow dependency extractors
867   --enable-targets=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
884 Optional 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-gdb-datadir=PATH look for global separate data files in this path
891                           [DATADIR/gdb]
892   --with-relocated-sources=PATH
893                           automatically relocate this path for source files
894   --with-libunwind        use libunwind frame unwinding support
895   --with-curses           use the curses library instead of the termcap
896                           library
897   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
898   --with-bugurl=URL       Direct users to URL to report a bug
899   --with-libiconv-prefix=DIR
900                           search for libiconv in DIR/include and DIR/lib
901   --with-system-readline  use installed readline library
902   --with-expat            include expat support (auto/yes/no)
903   --with-gnu-ld           assume the C compiler uses GNU ld default=no
904   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
905   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
906   --with-python           include python support (auto/yes/no/<path>)
907   --without-included-regex
908                           don't use included regex; this is the default on
909                           systems with version 2 of the GNU C library (use
910                           with caution on other system)
911   --with-sysroot[=DIR]
912                           search for usr/lib et al within DIR
913   --with-system-gdbinit=PATH
914                           automatically load a system-wide gdbinit file
915   --with-tcl              directory containing tcl configuration (tclConfig.sh)
916   --with-tk               directory containing tk configuration (tkConfig.sh)
917   --with-x                use the X Window System
918   --with-datarootdir      use datarootdir as the data root directory.
919   --with-docdir           install documentation in this directory.
920   --with-pdfdir           install pdf in this directory.
921   --with-htmldir          install html in this directory.
922
923 Some influential environment variables:
924   CC          C compiler command
925   CFLAGS      C compiler flags
926   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
927               nonstandard directory <lib dir>
928   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
929               headers in a nonstandard directory <include dir>
930   CPP         C preprocessor
931
932 Use these variables to override the choices made by `configure' or to help
933 it to find libraries and programs with nonstandard names/locations.
934
935 _ACEOF
936 fi
937
938 if test "$ac_init_help" = "recursive"; then
939   # If there are subdirs, report their specific --help.
940   ac_popdir=`pwd`
941   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
942     test -d $ac_dir || continue
943     ac_builddir=.
944
945 if test "$ac_dir" != .; then
946   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
947   # A "../" for each directory in $ac_dir_suffix.
948   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
949 else
950   ac_dir_suffix= ac_top_builddir=
951 fi
952
953 case $srcdir in
954   .)  # No --srcdir option.  We are building in place.
955     ac_srcdir=.
956     if test -z "$ac_top_builddir"; then
957        ac_top_srcdir=.
958     else
959        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
960     fi ;;
961   [\\/]* | ?:[\\/]* )  # Absolute path.
962     ac_srcdir=$srcdir$ac_dir_suffix;
963     ac_top_srcdir=$srcdir ;;
964   *) # Relative path.
965     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
966     ac_top_srcdir=$ac_top_builddir$srcdir ;;
967 esac
968
969 # Do not use `cd foo && pwd` to compute absolute paths, because
970 # the directories may not exist.
971 case `pwd` in
972 .) ac_abs_builddir="$ac_dir";;
973 *)
974   case "$ac_dir" in
975   .) ac_abs_builddir=`pwd`;;
976   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
977   *) ac_abs_builddir=`pwd`/"$ac_dir";;
978   esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *)
983   case ${ac_top_builddir}. in
984   .) ac_abs_top_builddir=$ac_abs_builddir;;
985   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
986   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_srcdir=$ac_srcdir;;
991 *)
992   case $ac_srcdir in
993   .) ac_abs_srcdir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
995   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *)
1001   case $ac_top_srcdir in
1002   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1004   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1005   esac;;
1006 esac
1007
1008     cd $ac_dir
1009     # Check for guested configure; otherwise get Cygnus style configure.
1010     if test -f $ac_srcdir/configure.gnu; then
1011       echo
1012       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1013     elif test -f $ac_srcdir/configure; then
1014       echo
1015       $SHELL $ac_srcdir/configure  --help=recursive
1016     elif test -f $ac_srcdir/configure.ac ||
1017            test -f $ac_srcdir/configure.in; then
1018       echo
1019       $ac_configure --help
1020     else
1021       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1022     fi
1023     cd $ac_popdir
1024   done
1025 fi
1026
1027 test -n "$ac_init_help" && exit 0
1028 if $ac_init_version; then
1029   cat <<\_ACEOF
1030
1031 Copyright (C) 2003 Free Software Foundation, Inc.
1032 This configure script is free software; the Free Software Foundation
1033 gives unlimited permission to copy, distribute and modify it.
1034 _ACEOF
1035   exit 0
1036 fi
1037 exec 5>config.log
1038 cat >&5 <<_ACEOF
1039 This file contains any messages produced by compilers while
1040 running configure, to aid debugging if configure makes a mistake.
1041
1042 It was created by $as_me, which was
1043 generated by GNU Autoconf 2.59.  Invocation command line was
1044
1045   $ $0 $@
1046
1047 _ACEOF
1048 {
1049 cat <<_ASUNAME
1050 ## --------- ##
1051 ## Platform. ##
1052 ## --------- ##
1053
1054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1059
1060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1061 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1062
1063 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1064 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1066 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1067 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1068 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1069 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1070
1071 _ASUNAME
1072
1073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1074 for as_dir in $PATH
1075 do
1076   IFS=$as_save_IFS
1077   test -z "$as_dir" && as_dir=.
1078   echo "PATH: $as_dir"
1079 done
1080
1081 } >&5
1082
1083 cat >&5 <<_ACEOF
1084
1085
1086 ## ----------- ##
1087 ## Core tests. ##
1088 ## ----------- ##
1089
1090 _ACEOF
1091
1092
1093 # Keep a trace of the command line.
1094 # Strip out --no-create and --no-recursion so they do not pile up.
1095 # Strip out --silent because we don't want to record it for future runs.
1096 # Also quote any args containing shell meta-characters.
1097 # Make two passes to allow for proper duplicate-argument suppression.
1098 ac_configure_args=
1099 ac_configure_args0=
1100 ac_configure_args1=
1101 ac_sep=
1102 ac_must_keep_next=false
1103 for ac_pass in 1 2
1104 do
1105   for ac_arg
1106   do
1107     case $ac_arg in
1108     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1109     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110     | -silent | --silent | --silen | --sile | --sil)
1111       continue ;;
1112     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1113       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1114     esac
1115     case $ac_pass in
1116     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1117     2)
1118       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1119       if test $ac_must_keep_next = true; then
1120         ac_must_keep_next=false # Got value, back to normal.
1121       else
1122         case $ac_arg in
1123           *=* | --config-cache | -C | -disable-* | --disable-* \
1124           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1125           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1126           | -with-* | --with-* | -without-* | --without-* | --x)
1127             case "$ac_configure_args0 " in
1128               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1129             esac
1130             ;;
1131           -* ) ac_must_keep_next=true ;;
1132         esac
1133       fi
1134       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1135       # Get rid of the leading space.
1136       ac_sep=" "
1137       ;;
1138     esac
1139   done
1140 done
1141 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1142 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1143
1144 # When interrupted or exit'd, cleanup temporary files, and complete
1145 # config.log.  We remove comments because anyway the quotes in there
1146 # would cause problems or look ugly.
1147 # WARNING: Be sure not to use single quotes in there, as some shells,
1148 # such as our DU 5.0 friend, will then `close' the trap.
1149 trap 'exit_status=$?
1150   # Save into config.log some information that might help in debugging.
1151   {
1152     echo
1153
1154     cat <<\_ASBOX
1155 ## ---------------- ##
1156 ## Cache variables. ##
1157 ## ---------------- ##
1158 _ASBOX
1159     echo
1160     # The following way of writing the cache mishandles newlines in values,
1161 {
1162   (set) 2>&1 |
1163     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1164     *ac_space=\ *)
1165       sed -n \
1166         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1167           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1168       ;;
1169     *)
1170       sed -n \
1171         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1172       ;;
1173     esac;
1174 }
1175     echo
1176
1177     cat <<\_ASBOX
1178 ## ----------------- ##
1179 ## Output variables. ##
1180 ## ----------------- ##
1181 _ASBOX
1182     echo
1183     for ac_var in $ac_subst_vars
1184     do
1185       eval ac_val=$`echo $ac_var`
1186       echo "$ac_var='"'"'$ac_val'"'"'"
1187     done | sort
1188     echo
1189
1190     if test -n "$ac_subst_files"; then
1191       cat <<\_ASBOX
1192 ## ------------- ##
1193 ## Output files. ##
1194 ## ------------- ##
1195 _ASBOX
1196       echo
1197       for ac_var in $ac_subst_files
1198       do
1199         eval ac_val=$`echo $ac_var`
1200         echo "$ac_var='"'"'$ac_val'"'"'"
1201       done | sort
1202       echo
1203     fi
1204
1205     if test -s confdefs.h; then
1206       cat <<\_ASBOX
1207 ## ----------- ##
1208 ## confdefs.h. ##
1209 ## ----------- ##
1210 _ASBOX
1211       echo
1212       sed "/^$/d" confdefs.h | sort
1213       echo
1214     fi
1215     test "$ac_signal" != 0 &&
1216       echo "$as_me: caught signal $ac_signal"
1217     echo "$as_me: exit $exit_status"
1218   } >&5
1219   rm -f core *.core &&
1220   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1221     exit $exit_status
1222      ' 0
1223 for ac_signal in 1 2 13 15; do
1224   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1225 done
1226 ac_signal=0
1227
1228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1229 rm -rf conftest* confdefs.h
1230 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1231 echo >confdefs.h
1232
1233 # Predefined preprocessor variables.
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_NAME "$PACKAGE_NAME"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1242 _ACEOF
1243
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_STRING "$PACKAGE_STRING"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1257 _ACEOF
1258
1259
1260 # Let the site file select an alternate cache file if it wants to.
1261 # Prefer explicitly selected file to automatically selected ones.
1262 if test -z "$CONFIG_SITE"; then
1263   if test "x$prefix" != xNONE; then
1264     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1265   else
1266     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1267   fi
1268 fi
1269 for ac_site_file in $CONFIG_SITE; do
1270   if test -r "$ac_site_file"; then
1271     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1272 echo "$as_me: loading site script $ac_site_file" >&6;}
1273     sed 's/^/| /' "$ac_site_file" >&5
1274     . "$ac_site_file"
1275   fi
1276 done
1277
1278 if test -r "$cache_file"; then
1279   # Some versions of bash will fail to source /dev/null (special
1280   # files actually), so we avoid doing that.
1281   if test -f "$cache_file"; then
1282     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1283 echo "$as_me: loading cache $cache_file" >&6;}
1284     case $cache_file in
1285       [\\/]* | ?:[\\/]* ) . $cache_file;;
1286       *)                      . ./$cache_file;;
1287     esac
1288   fi
1289 else
1290   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1291 echo "$as_me: creating cache $cache_file" >&6;}
1292   >$cache_file
1293 fi
1294
1295 # Check that the precious variables saved in the cache have kept the same
1296 # value.
1297 ac_cache_corrupted=false
1298 for ac_var in `(set) 2>&1 |
1299                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1300   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1301   eval ac_new_set=\$ac_env_${ac_var}_set
1302   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1303   eval ac_new_val="\$ac_env_${ac_var}_value"
1304   case $ac_old_set,$ac_new_set in
1305     set,)
1306       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1308       ac_cache_corrupted=: ;;
1309     ,set)
1310       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1311 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1312       ac_cache_corrupted=: ;;
1313     ,);;
1314     *)
1315       if test "x$ac_old_val" != "x$ac_new_val"; then
1316         # differences in whitespace do not lead to failure.
1317         ac_old_val_w=`echo x $ac_old_val`
1318         ac_new_val_w=`echo x $ac_new_val`
1319         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1320           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1321 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1322           ac_cache_corrupted=:
1323         else
1324           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1325 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1326           eval $ac_var=\$ac_old_val
1327         fi
1328         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1329 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1330         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1331 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1349 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1350   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362
1363
1364 gl_header_list="$gl_header_list stdint.h"
1365 gl_header_list="$gl_header_list wchar.h"
1366 gl_header_list="$gl_header_list string.h"
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387           ac_config_headers="$ac_config_headers config.h:config.in"
1388
1389 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1390 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1391     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1392 if test "${enable_maintainer_mode+set}" = set; then
1393   enableval="$enable_maintainer_mode"
1394   USE_MAINTAINER_MODE=$enableval
1395 else
1396   USE_MAINTAINER_MODE=no
1397 fi;
1398   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1399 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1400
1401
1402 if test $USE_MAINTAINER_MODE = yes; then
1403   MAINTAINER_MODE_TRUE=
1404   MAINTAINER_MODE_FALSE='#'
1405 else
1406   MAINTAINER_MODE_TRUE='#'
1407   MAINTAINER_MODE_FALSE=
1408 fi
1409
1410   MAINT=$MAINTAINER_MODE_TRUE
1411
1412
1413
1414 ac_ext=c
1415 ac_cpp='$CPP $CPPFLAGS'
1416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419 if test -n "$ac_tool_prefix"; then
1420   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425   echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427   if test -n "$CC"; then
1428   ac_cv_prog_CC="$CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   for ac_exec_ext in '' $ac_executable_extensions; do
1436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439     break 2
1440   fi
1441 done
1442 done
1443
1444 fi
1445 fi
1446 CC=$ac_cv_prog_CC
1447 if test -n "$CC"; then
1448   echo "$as_me:$LINENO: result: $CC" >&5
1449 echo "${ECHO_T}$CC" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455 fi
1456 if test -z "$ac_cv_prog_CC"; then
1457   ac_ct_CC=$CC
1458   # Extract the first word of "gcc", so it can be a program name with args.
1459 set dummy gcc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   if test -n "$ac_ct_CC"; then
1466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467 else
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471   IFS=$as_save_IFS
1472   test -z "$as_dir" && as_dir=.
1473   for ac_exec_ext in '' $ac_executable_extensions; do
1474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475     ac_cv_prog_ac_ct_CC="gcc"
1476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477     break 2
1478   fi
1479 done
1480 done
1481
1482 fi
1483 fi
1484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485 if test -n "$ac_ct_CC"; then
1486   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487 echo "${ECHO_T}$ac_ct_CC" >&6
1488 else
1489   echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492
1493   CC=$ac_ct_CC
1494 else
1495   CC="$ac_cv_prog_CC"
1496 fi
1497
1498 if test -z "$CC"; then
1499   if test -n "$ac_tool_prefix"; then
1500   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1501 set dummy ${ac_tool_prefix}cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_CC+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   if test -n "$CC"; then
1508   ac_cv_prog_CC="$CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   for ac_exec_ext in '' $ac_executable_extensions; do
1516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517     ac_cv_prog_CC="${ac_tool_prefix}cc"
1518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519     break 2
1520   fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528   echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531   echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535 fi
1536 if test -z "$ac_cv_prog_CC"; then
1537   ac_ct_CC=$CC
1538   # Extract the first word of "cc", so it can be a program name with args.
1539 set dummy cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$ac_ct_CC"; then
1546   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_ac_ct_CC="cc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1565 if test -n "$ac_ct_CC"; then
1566   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1567 echo "${ECHO_T}$ac_ct_CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573   CC=$ac_ct_CC
1574 else
1575   CC="$ac_cv_prog_CC"
1576 fi
1577
1578 fi
1579 if test -z "$CC"; then
1580   # Extract the first word of "cc", so it can be a program name with args.
1581 set dummy cc; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_CC+set}" = set; then
1585   echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587   if test -n "$CC"; then
1588   ac_cv_prog_CC="$CC" # Let the user override the test.
1589 else
1590   ac_prog_rejected=no
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 for as_dir in $PATH
1593 do
1594   IFS=$as_save_IFS
1595   test -z "$as_dir" && as_dir=.
1596   for ac_exec_ext in '' $ac_executable_extensions; do
1597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1599        ac_prog_rejected=yes
1600        continue
1601      fi
1602     ac_cv_prog_CC="cc"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609 if test $ac_prog_rejected = yes; then
1610   # We found a bogon in the path, so make sure we never use it.
1611   set dummy $ac_cv_prog_CC
1612   shift
1613   if test $# != 0; then
1614     # We chose a different compiler from the bogus one.
1615     # However, it has the same basename, so the bogon will be chosen
1616     # first if we set CC to just the basename; use the full file name.
1617     shift
1618     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1619   fi
1620 fi
1621 fi
1622 fi
1623 CC=$ac_cv_prog_CC
1624 if test -n "$CC"; then
1625   echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   if test -n "$ac_tool_prefix"; then
1635   for ac_prog in cl
1636   do
1637     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$CC"; then
1645   ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   for ac_exec_ext in '' $ac_executable_extensions; do
1653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656     break 2
1657   fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665   echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668   echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672     test -n "$CC" && break
1673   done
1674 fi
1675 if test -z "$CC"; then
1676   ac_ct_CC=$CC
1677   for ac_prog in cl
1678 do
1679   # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   if test -n "$ac_ct_CC"; then
1687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     ac_cv_prog_ac_ct_CC="$ac_prog"
1697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698     break 2
1699   fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706 if test -n "$ac_ct_CC"; then
1707   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708 echo "${ECHO_T}$ac_ct_CC" >&6
1709 else
1710   echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714   test -n "$ac_ct_CC" && break
1715 done
1716
1717   CC=$ac_ct_CC
1718 fi
1719
1720 fi
1721
1722
1723 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1724 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1725 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1726 See \`config.log' for more details." >&5
1727 echo "$as_me: error: no acceptable C compiler found in \$PATH
1728 See \`config.log' for more details." >&2;}
1729    { (exit 1); exit 1; }; }; }
1730
1731 # Provide some information about the compiler.
1732 echo "$as_me:$LINENO:" \
1733      "checking for C compiler version" >&5
1734 ac_compiler=`set X $ac_compile; echo $2`
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736   (eval $ac_compiler --version </dev/null >&5) 2>&5
1737   ac_status=$?
1738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739   (exit $ac_status); }
1740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741   (eval $ac_compiler -v </dev/null >&5) 2>&5
1742   ac_status=$?
1743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744   (exit $ac_status); }
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746   (eval $ac_compiler -V </dev/null >&5) 2>&5
1747   ac_status=$?
1748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749   (exit $ac_status); }
1750
1751 cat >conftest.$ac_ext <<_ACEOF
1752 /* confdefs.h.  */
1753 _ACEOF
1754 cat confdefs.h >>conftest.$ac_ext
1755 cat >>conftest.$ac_ext <<_ACEOF
1756 /* end confdefs.h.  */
1757
1758 int
1759 main ()
1760 {
1761
1762   ;
1763   return 0;
1764 }
1765 _ACEOF
1766 ac_clean_files_save=$ac_clean_files
1767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1768 # Try to create an executable without -o first, disregard a.out.
1769 # It will help us diagnose broken compilers, and finding out an intuition
1770 # of exeext.
1771 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775   (eval $ac_link_default) 2>&5
1776   ac_status=$?
1777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778   (exit $ac_status); }; then
1779   # Find the output, starting from the most likely.  This scheme is
1780 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1781 # resort.
1782
1783 # Be careful to initialize this variable, since it used to be cached.
1784 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1785 ac_cv_exeext=
1786 # b.out is created by i960 compilers.
1787 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1788 do
1789   test -f "$ac_file" || continue
1790   case $ac_file in
1791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792         ;;
1793     conftest.$ac_ext )
1794         # This is the source file.
1795         ;;
1796     [ab].out )
1797         # We found the default executable, but exeext='' is most
1798         # certainly right.
1799         break;;
1800     *.* )
1801         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802         # FIXME: I believe we export ac_cv_exeext for Libtool,
1803         # but it would be cool to find out if it's true.  Does anybody
1804         # maintain Libtool? --akim.
1805         export ac_cv_exeext
1806         break;;
1807     * )
1808         break;;
1809   esac
1810 done
1811 else
1812   echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 See \`config.log' for more details." >&2;}
1821    { (exit 77); exit 77; }; }; }
1822 fi
1823
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1827
1828 # Check the compiler produces executables we can run.  If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835   if { ac_try='./$ac_file'
1836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837   (eval $ac_try) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }; }; then
1841     cross_compiling=no
1842   else
1843     if test "$cross_compiling" = maybe; then
1844         cross_compiling=yes
1845     else
1846         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1847 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'.
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: cannot run C compiled programs.
1852 If you meant to cross compile, use \`--host'.
1853 See \`config.log' for more details." >&2;}
1854    { (exit 1); exit 1; }; }; }
1855     fi
1856   fi
1857 fi
1858 echo "$as_me:$LINENO: result: yes" >&5
1859 echo "${ECHO_T}yes" >&6
1860
1861 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1862 ac_clean_files=$ac_clean_files_save
1863 # Check the compiler produces executables we can run.  If not, either
1864 # the compiler is broken, or we cross compile.
1865 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1866 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1867 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1868 echo "${ECHO_T}$cross_compiling" >&6
1869
1870 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1871 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1873   (eval $ac_link) 2>&5
1874   ac_status=$?
1875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876   (exit $ac_status); }; then
1877   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1878 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1879 # work properly (i.e., refer to `conftest.exe'), while it won't with
1880 # `rm'.
1881 for ac_file in conftest.exe conftest conftest.*; do
1882   test -f "$ac_file" || continue
1883   case $ac_file in
1884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1885     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886           export ac_cv_exeext
1887           break;;
1888     * ) break;;
1889   esac
1890 done
1891 else
1892   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1893 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&2;}
1898    { (exit 1); exit 1; }; }; }
1899 fi
1900
1901 rm -f conftest$ac_cv_exeext
1902 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1903 echo "${ECHO_T}$ac_cv_exeext" >&6
1904
1905 rm -f conftest.$ac_ext
1906 EXEEXT=$ac_cv_exeext
1907 ac_exeext=$EXEEXT
1908 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1910 if test "${ac_cv_objext+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   cat >conftest.$ac_ext <<_ACEOF
1914 /* confdefs.h.  */
1915 _ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h.  */
1919
1920 int
1921 main ()
1922 {
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.o conftest.obj
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930   (eval $ac_compile) 2>&5
1931   ac_status=$?
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); }; then
1934   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1935   case $ac_file in
1936     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1937     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1938        break;;
1939   esac
1940 done
1941 else
1942   echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1946 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1947 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1950 See \`config.log' for more details." >&2;}
1951    { (exit 1); exit 1; }; }; }
1952 fi
1953
1954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1955 fi
1956 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1957 echo "${ECHO_T}$ac_cv_objext" >&6
1958 OBJEXT=$ac_cv_objext
1959 ac_objext=$OBJEXT
1960 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1961 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1962 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975 #ifndef __GNUC__
1976        choke me
1977 #endif
1978
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985   (eval $ac_compile) 2>conftest.er1
1986   ac_status=$?
1987   grep -v '^ *+' conftest.er1 >conftest.err
1988   rm -f conftest.er1
1989   cat conftest.err >&5
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); } &&
1992          { ac_try='test -z "$ac_c_werror_flag"
1993                          || test ! -s conftest.err'
1994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995   (eval $ac_try) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); }; } &&
1999          { ac_try='test -s conftest.$ac_objext'
2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001   (eval $ac_try) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; }; then
2005   ac_compiler_gnu=yes
2006 else
2007   echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_compiler_gnu=no
2011 fi
2012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2014
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2018 GCC=`test $ac_compiler_gnu = yes && echo yes`
2019 ac_test_CFLAGS=${CFLAGS+set}
2020 ac_save_CFLAGS=$CFLAGS
2021 CFLAGS="-g"
2022 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2023 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2024 if test "${ac_cv_prog_cc_g+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h.  */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h.  */
2033
2034 int
2035 main ()
2036 {
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044   (eval $ac_compile) 2>conftest.er1
2045   ac_status=$?
2046   grep -v '^ *+' conftest.er1 >conftest.err
2047   rm -f conftest.er1
2048   cat conftest.err >&5
2049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050   (exit $ac_status); } &&
2051          { ac_try='test -z "$ac_c_werror_flag"
2052                          || test ! -s conftest.err'
2053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054   (eval $ac_try) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; } &&
2058          { ac_try='test -s conftest.$ac_objext'
2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; }; then
2064   ac_cv_prog_cc_g=yes
2065 else
2066   echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 ac_cv_prog_cc_g=no
2070 fi
2071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2074 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2075 if test "$ac_test_CFLAGS" = set; then
2076   CFLAGS=$ac_save_CFLAGS
2077 elif test $ac_cv_prog_cc_g = yes; then
2078   if test "$GCC" = yes; then
2079     CFLAGS="-g -O2"
2080   else
2081     CFLAGS="-g"
2082   fi
2083 else
2084   if test "$GCC" = yes; then
2085     CFLAGS="-O2"
2086   else
2087     CFLAGS=
2088   fi
2089 fi
2090 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2091 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2092 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   ac_cv_prog_cc_stdc=no
2096 ac_save_CC=$CC
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103 #include <stdarg.h>
2104 #include <stdio.h>
2105 #include <sys/types.h>
2106 #include <sys/stat.h>
2107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2108 struct buf { int x; };
2109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110 static char *e (p, i)
2111      char **p;
2112      int i;
2113 {
2114   return p[i];
2115 }
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2117 {
2118   char *s;
2119   va_list v;
2120   va_start (v,p);
2121   s = g (p, va_arg (v,int));
2122   va_end (v);
2123   return s;
2124 }
2125
2126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2127    function prototypes and stuff, but not '\xHH' hex character constants.
2128    These don't provoke an error unfortunately, instead are silently treated
2129    as 'x'.  The following induces an error, until -std1 is added to get
2130    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2131    array size at least.  It's necessary to write '\x00'==0 to get something
2132    that's true only with -std1.  */
2133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2134
2135 int test (int i, double x);
2136 struct s1 {int (*f) (int a);};
2137 struct s2 {int (*f) (double a);};
2138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2139 int argc;
2140 char **argv;
2141 int
2142 main ()
2143 {
2144 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 # Don't try gcc -ansi; that turns off useful extensions and
2150 # breaks some systems' header files.
2151 # AIX                   -qlanglvl=ansi
2152 # Ultrix and OSF/1      -std1
2153 # HP-UX 10.20 and later -Ae
2154 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2155 # SVR4                  -Xc -D__EXTENSIONS__
2156 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2157 do
2158   CC="$ac_save_CC $ac_arg"
2159   rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   ac_cv_prog_cc_stdc=$ac_arg
2182 break
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 fi
2188 rm -f conftest.err conftest.$ac_objext
2189 done
2190 rm -f conftest.$ac_ext conftest.$ac_objext
2191 CC=$ac_save_CC
2192
2193 fi
2194
2195 case "x$ac_cv_prog_cc_stdc" in
2196   x|xno)
2197     echo "$as_me:$LINENO: result: none needed" >&5
2198 echo "${ECHO_T}none needed" >&6 ;;
2199   *)
2200     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2202     CC="$CC $ac_cv_prog_cc_stdc" ;;
2203 esac
2204
2205 # Some people use a C++ compiler to compile C.  Since we use `exit',
2206 # in C++ we need to declare it.  In case someone uses the same compiler
2207 # for both compiling C and C++ we need to have the C++ compiler decide
2208 # the declaration of exit, since it's the most demanding environment.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #ifndef __cplusplus
2211   choke me
2212 #endif
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216   (eval $ac_compile) 2>conftest.er1
2217   ac_status=$?
2218   grep -v '^ *+' conftest.er1 >conftest.err
2219   rm -f conftest.er1
2220   cat conftest.err >&5
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); } &&
2223          { ac_try='test -z "$ac_c_werror_flag"
2224                          || test ! -s conftest.err'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    '' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 $ac_declaration
2251 #include <stdlib.h>
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"
2270                          || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   :
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"
2315                          || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   break
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 rm -f conftest*
2336 if test -n "$ac_declaration"; then
2337   echo '#ifdef __cplusplus' >>confdefs.h
2338   echo $ac_declaration      >>confdefs.h
2339   echo '#endif'             >>confdefs.h
2340 fi
2341
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 fi
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
2355 cat >>confdefs.h <<\_ACEOF
2356 #define _GNU_SOURCE 1
2357 _ACEOF
2358
2359
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2368 # On Suns, sometimes $CPP names a directory.
2369 if test -n "$CPP" && test -d "$CPP"; then
2370   CPP=
2371 fi
2372 if test -z "$CPP"; then
2373   if test "${ac_cv_prog_CPP+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376       # Double quotes because CPP needs to be expanded
2377     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2378     do
2379       ac_preproc_ok=false
2380 for ac_c_preproc_warn_flag in '' yes
2381 do
2382   # Use a header file that comes with gcc, so configuring glibc
2383   # with a fresh cross-compiler works.
2384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385   # <limits.h> exists even on freestanding compilers.
2386   # On the NeXT, cc -E runs the code through the compiler's parser,
2387   # not just through cpp. "Syntax error" is here to catch this case.
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394 #ifdef __STDC__
2395 # include <limits.h>
2396 #else
2397 # include <assert.h>
2398 #endif
2399                      Syntax error
2400 _ACEOF
2401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } >/dev/null; then
2409   if test -s conftest.err; then
2410     ac_cpp_err=$ac_c_preproc_warn_flag
2411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2412   else
2413     ac_cpp_err=
2414   fi
2415 else
2416   ac_cpp_err=yes
2417 fi
2418 if test -z "$ac_cpp_err"; then
2419   :
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424   # Broken: fails on valid input.
2425 continue
2426 fi
2427 rm -f conftest.err conftest.$ac_ext
2428
2429   # OK, works on sane cases.  Now check whether non-existent headers
2430   # can be detected and how.
2431   cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437 #include <ac_nonexistent.h>
2438 _ACEOF
2439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441   ac_status=$?
2442   grep -v '^ *+' conftest.er1 >conftest.err
2443   rm -f conftest.er1
2444   cat conftest.err >&5
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } >/dev/null; then
2447   if test -s conftest.err; then
2448     ac_cpp_err=$ac_c_preproc_warn_flag
2449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2450   else
2451     ac_cpp_err=
2452   fi
2453 else
2454   ac_cpp_err=yes
2455 fi
2456 if test -z "$ac_cpp_err"; then
2457   # Broken: success on invalid input.
2458 continue
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463   # Passes both tests.
2464 ac_preproc_ok=:
2465 break
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468
2469 done
2470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2471 rm -f conftest.err conftest.$ac_ext
2472 if $ac_preproc_ok; then
2473   break
2474 fi
2475
2476     done
2477     ac_cv_prog_CPP=$CPP
2478
2479 fi
2480   CPP=$ac_cv_prog_CPP
2481 else
2482   ac_cv_prog_CPP=$CPP
2483 fi
2484 echo "$as_me:$LINENO: result: $CPP" >&5
2485 echo "${ECHO_T}$CPP" >&6
2486 ac_preproc_ok=false
2487 for ac_c_preproc_warn_flag in '' yes
2488 do
2489   # Use a header file that comes with gcc, so configuring glibc
2490   # with a fresh cross-compiler works.
2491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2492   # <limits.h> exists even on freestanding compilers.
2493   # On the NeXT, cc -E runs the code through the compiler's parser,
2494   # not just through cpp. "Syntax error" is here to catch this case.
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501 #ifdef __STDC__
2502 # include <limits.h>
2503 #else
2504 # include <assert.h>
2505 #endif
2506                      Syntax error
2507 _ACEOF
2508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } >/dev/null; then
2516   if test -s conftest.err; then
2517     ac_cpp_err=$ac_c_preproc_warn_flag
2518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2519   else
2520     ac_cpp_err=
2521   fi
2522 else
2523   ac_cpp_err=yes
2524 fi
2525 if test -z "$ac_cpp_err"; then
2526   :
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531   # Broken: fails on valid input.
2532 continue
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535
2536   # OK, works on sane cases.  Now check whether non-existent headers
2537   # can be detected and how.
2538   cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544 #include <ac_nonexistent.h>
2545 _ACEOF
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } >/dev/null; then
2554   if test -s conftest.err; then
2555     ac_cpp_err=$ac_c_preproc_warn_flag
2556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2557   else
2558     ac_cpp_err=
2559   fi
2560 else
2561   ac_cpp_err=yes
2562 fi
2563 if test -z "$ac_cpp_err"; then
2564   # Broken: success on invalid input.
2565 continue
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570   # Passes both tests.
2571 ac_preproc_ok=:
2572 break
2573 fi
2574 rm -f conftest.err conftest.$ac_ext
2575
2576 done
2577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2578 rm -f conftest.err conftest.$ac_ext
2579 if $ac_preproc_ok; then
2580   :
2581 else
2582   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2583 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2587 See \`config.log' for more details." >&2;}
2588    { (exit 1); exit 1; }; }; }
2589 fi
2590
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598 echo "$as_me:$LINENO: checking for egrep" >&5
2599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2600 if test "${ac_cv_prog_egrep+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2604     then ac_cv_prog_egrep='grep -E'
2605     else ac_cv_prog_egrep='egrep'
2606     fi
2607 fi
2608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2610  EGREP=$ac_cv_prog_egrep
2611
2612
2613
2614 echo "$as_me:$LINENO: checking for AIX" >&5
2615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622 #ifdef _AIX
2623   yes
2624 #endif
2625
2626 _ACEOF
2627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628   $EGREP "yes" >/dev/null 2>&1; then
2629   echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2631 cat >>confdefs.h <<\_ACEOF
2632 #define _ALL_SOURCE 1
2633 _ACEOF
2634
2635 else
2636   echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639 rm -f conftest*
2640
2641
2642 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2643 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2644 if test "${ac_cv_search_strerror+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_func_search_save_LIBS=$LIBS
2648 ac_cv_search_strerror=no
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655
2656 /* Override any gcc2 internal prototype to avoid an error.  */
2657 #ifdef __cplusplus
2658 extern "C"
2659 #endif
2660 /* We use char because int might match the return type of a gcc2
2661    builtin and then its argument prototype would still apply.  */
2662 char strerror ();
2663 int
2664 main ()
2665 {
2666 strerror ();
2667   ;
2668   return 0;
2669 }
2670 _ACEOF
2671 rm -f conftest.$ac_objext conftest$ac_exeext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2673   (eval $ac_link) 2>conftest.er1
2674   ac_status=$?
2675   grep -v '^ *+' conftest.er1 >conftest.err
2676   rm -f conftest.er1
2677   cat conftest.err >&5
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -z "$ac_c_werror_flag"
2681                          || test ! -s conftest.err'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; } &&
2687          { ac_try='test -s conftest$ac_exeext'
2688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; }; then
2693   ac_cv_search_strerror="none required"
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 fi
2699 rm -f conftest.err conftest.$ac_objext \
2700       conftest$ac_exeext conftest.$ac_ext
2701 if test "$ac_cv_search_strerror" = no; then
2702   for ac_lib in cposix; do
2703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2704     cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710
2711 /* Override any gcc2 internal prototype to avoid an error.  */
2712 #ifdef __cplusplus
2713 extern "C"
2714 #endif
2715 /* We use char because int might match the return type of a gcc2
2716    builtin and then its argument prototype would still apply.  */
2717 char strerror ();
2718 int
2719 main ()
2720 {
2721 strerror ();
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext conftest$ac_exeext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2728   (eval $ac_link) 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag"
2736                          || test ! -s conftest.err'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; } &&
2742          { ac_try='test -s conftest$ac_exeext'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; }; then
2748   ac_cv_search_strerror="-l$ac_lib"
2749 break
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 fi
2755 rm -f conftest.err conftest.$ac_objext \
2756       conftest$ac_exeext conftest.$ac_ext
2757   done
2758 fi
2759 LIBS=$ac_func_search_save_LIBS
2760 fi
2761 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2762 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2763 if test "$ac_cv_search_strerror" != no; then
2764   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2765
2766 fi
2767
2768 if test -n "$ac_tool_prefix"; then
2769   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_RANLIB+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   if test -n "$RANLIB"; then
2777   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784   for ac_exec_ext in '' $ac_executable_extensions; do
2785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791 done
2792
2793 fi
2794 fi
2795 RANLIB=$ac_cv_prog_RANLIB
2796 if test -n "$RANLIB"; then
2797   echo "$as_me:$LINENO: result: $RANLIB" >&5
2798 echo "${ECHO_T}$RANLIB" >&6
2799 else
2800   echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2802 fi
2803
2804 fi
2805 if test -z "$ac_cv_prog_RANLIB"; then
2806   ac_ct_RANLIB=$RANLIB
2807   # Extract the first word of "ranlib", so it can be a program name with args.
2808 set dummy ranlib; ac_word=$2
2809 echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814   if test -n "$ac_ct_RANLIB"; then
2815   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822   for ac_exec_ext in '' $ac_executable_extensions; do
2823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824     ac_cv_prog_ac_ct_RANLIB="ranlib"
2825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829 done
2830
2831   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2832 fi
2833 fi
2834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2835 if test -n "$ac_ct_RANLIB"; then
2836   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2837 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2838 else
2839   echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843   RANLIB=$ac_ct_RANLIB
2844 else
2845   RANLIB="$ac_cv_prog_RANLIB"
2846 fi
2847
2848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2850 if test "${ac_cv_header_stdc+set}" = set; then
2851   echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853   cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h.  */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h.  */
2859 #include <stdlib.h>
2860 #include <stdarg.h>
2861 #include <string.h>
2862 #include <float.h>
2863
2864 int
2865 main ()
2866 {
2867
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   ac_cv_header_stdc=yes
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 ac_cv_header_stdc=no
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902
2903 if test $ac_cv_header_stdc = yes; then
2904   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2905   cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h.  */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h.  */
2911 #include <string.h>
2912
2913 _ACEOF
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915   $EGREP "memchr" >/dev/null 2>&1; then
2916   :
2917 else
2918   ac_cv_header_stdc=no
2919 fi
2920 rm -f conftest*
2921
2922 fi
2923
2924 if test $ac_cv_header_stdc = yes; then
2925   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #include <stdlib.h>
2933
2934 _ACEOF
2935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2936   $EGREP "free" >/dev/null 2>&1; then
2937   :
2938 else
2939   ac_cv_header_stdc=no
2940 fi
2941 rm -f conftest*
2942
2943 fi
2944
2945 if test $ac_cv_header_stdc = yes; then
2946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2947   if test "$cross_compiling" = yes; then
2948   :
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956 #include <ctype.h>
2957 #if ((' ' & 0x0FF) == 0x020)
2958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2960 #else
2961 # define ISLOWER(c) \
2962                    (('a' <= (c) && (c) <= 'i') \
2963                      || ('j' <= (c) && (c) <= 'r') \
2964                      || ('s' <= (c) && (c) <= 'z'))
2965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2966 #endif
2967
2968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2969 int
2970 main ()
2971 {
2972   int i;
2973   for (i = 0; i < 256; i++)
2974     if (XOR (islower (i), ISLOWER (i))
2975         || toupper (i) != TOUPPER (i))
2976       exit(2);
2977   exit (0);
2978 }
2979 _ACEOF
2980 rm -f conftest$ac_exeext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982   (eval $ac_link) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   :
2992 else
2993   echo "$as_me: program exited with status $ac_status" >&5
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ( exit $ac_status )
2998 ac_cv_header_stdc=no
2999 fi
3000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3001 fi
3002 fi
3003 fi
3004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3006 if test $ac_cv_header_stdc = yes; then
3007
3008 cat >>confdefs.h <<\_ACEOF
3009 #define STDC_HEADERS 1
3010 _ACEOF
3011
3012 fi
3013
3014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3025                   inttypes.h stdint.h unistd.h
3026 do
3027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3028 echo "$as_me:$LINENO: checking for $ac_header" >&5
3029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039 $ac_includes_default
3040
3041 #include <$ac_header>
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045   (eval $ac_compile) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag"
3053                          || test ! -s conftest.err'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   eval "$as_ac_Header=yes"
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 eval "$as_ac_Header=no"
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3077   cat >>confdefs.h <<_ACEOF
3078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3079 _ACEOF
3080
3081 fi
3082
3083 done
3084
3085
3086
3087   if test "${ac_cv_header_minix_config_h+set}" = set; then
3088   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3089 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3090 if test "${ac_cv_header_minix_config_h+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3094 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3095 else
3096   # Is the header compilable?
3097 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3098 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105 $ac_includes_default
3106 #include <minix/config.h>
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110   (eval $ac_compile) 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_c_werror_flag"
3118                          || test ! -s conftest.err'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   ac_header_compiler=yes
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ac_header_compiler=no
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3139 echo "${ECHO_T}$ac_header_compiler" >&6
3140
3141 # Is the header present?
3142 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3143 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #include <minix/config.h>
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } >/dev/null; then
3160   if test -s conftest.err; then
3161     ac_cpp_err=$ac_c_preproc_warn_flag
3162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163   else
3164     ac_cpp_err=
3165   fi
3166 else
3167   ac_cpp_err=yes
3168 fi
3169 if test -z "$ac_cpp_err"; then
3170   ac_header_preproc=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175   ac_header_preproc=no
3176 fi
3177 rm -f conftest.err conftest.$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3179 echo "${ECHO_T}$ac_header_preproc" >&6
3180
3181 # So?  What about this header?
3182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3183   yes:no: )
3184     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3185 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3186     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3187 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3188     ac_header_preproc=yes
3189     ;;
3190   no:yes:* )
3191     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3192 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3193     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3194 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3195     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3196 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3197     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3198 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3199     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3200 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3201     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3202 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3203     (
3204       cat <<\_ASBOX
3205 ## ------------------------------------------ ##
3206 ## Report this to the AC_PACKAGE_NAME lists.  ##
3207 ## ------------------------------------------ ##
3208 _ASBOX
3209     ) |
3210       sed "s/^/$as_me: WARNING:     /" >&2
3211     ;;
3212 esac
3213 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3214 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3215 if test "${ac_cv_header_minix_config_h+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   ac_cv_header_minix_config_h=$ac_header_preproc
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3221 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3222
3223 fi
3224 if test $ac_cv_header_minix_config_h = yes; then
3225   MINIX=yes
3226 else
3227   MINIX=
3228 fi
3229
3230
3231   if test "$MINIX" = yes; then
3232
3233 cat >>confdefs.h <<\_ACEOF
3234 #define _POSIX_SOURCE 1
3235 _ACEOF
3236
3237
3238 cat >>confdefs.h <<\_ACEOF
3239 #define _POSIX_1_SOURCE 2
3240 _ACEOF
3241
3242
3243 cat >>confdefs.h <<\_ACEOF
3244 #define _MINIX 1
3245 _ACEOF
3246
3247   fi
3248
3249
3250
3251   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3252 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3253 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262
3263 #         define __EXTENSIONS__ 1
3264           $ac_includes_default
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275   (eval $ac_compile) 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } &&
3282          { ac_try='test -z "$ac_c_werror_flag"
3283                          || test ! -s conftest.err'
3284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285   (eval $ac_try) 2>&5
3286   ac_status=$?
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); }; } &&
3289          { ac_try='test -s conftest.$ac_objext'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295   ac_cv_safe_to_define___extensions__=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_cv_safe_to_define___extensions__=no
3301 fi
3302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3305 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3306   test $ac_cv_safe_to_define___extensions__ = yes &&
3307     cat >>confdefs.h <<\_ACEOF
3308 #define __EXTENSIONS__ 1
3309 _ACEOF
3310
3311   cat >>confdefs.h <<\_ACEOF
3312 #define _ALL_SOURCE 1
3313 _ACEOF
3314
3315   cat >>confdefs.h <<\_ACEOF
3316 #define _GNU_SOURCE 1
3317 _ACEOF
3318
3319   cat >>confdefs.h <<\_ACEOF
3320 #define _POSIX_PTHREAD_SEMANTICS 1
3321 _ACEOF
3322
3323   cat >>confdefs.h <<\_ACEOF
3324 #define _TANDEM_SOURCE 1
3325 _ACEOF
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3337 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3338 if test "${am_cv_prog_cc_stdc+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   am_cv_prog_cc_stdc=no
3342 ac_save_CC="$CC"
3343 # Don't try gcc -ansi; that turns off useful extensions and
3344 # breaks some systems' header files.
3345 # AIX                   -qlanglvl=ansi
3346 # Ultrix and OSF/1      -std1
3347 # HP-UX 10.20 and later -Ae
3348 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3349 # SVR4                  -Xc -D__EXTENSIONS__
3350 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 do
3352   CC="$ac_save_CC $ac_arg"
3353   cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3367      char **p;
3368      int i;
3369 {
3370   return p[i];
3371 }
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3373 {
3374   char *s;
3375   va_list v;
3376   va_start (v,p);
3377   s = g (p, va_arg (v,int));
3378   va_end (v);
3379   return s;
3380 }
3381 int test (int i, double x);
3382 struct s1 {int (*f) (int a);};
3383 struct s2 {int (*f) (double a);};
3384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3385 int argc;
3386 char **argv;
3387
3388 int
3389 main ()
3390 {
3391
3392 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400   (eval $ac_compile) 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } &&
3407          { ac_try='test -z "$ac_c_werror_flag"
3408                          || test ! -s conftest.err'
3409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410   (eval $ac_try) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; } &&
3414          { ac_try='test -s conftest.$ac_objext'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   am_cv_prog_cc_stdc="$ac_arg"; break
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 fi
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 done
3428 CC="$ac_save_CC"
3429
3430 fi
3431
3432 if test -z "$am_cv_prog_cc_stdc"; then
3433   echo "$as_me:$LINENO: result: none needed" >&5
3434 echo "${ECHO_T}none needed" >&6
3435 else
3436   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3437 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3438 fi
3439 case "x$am_cv_prog_cc_stdc" in
3440   x|xno) ;;
3441   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3442 esac
3443
3444
3445 ac_aux_dir=
3446 for ac_dir in .. $srcdir/..; do
3447   if test -f $ac_dir/install-sh; then
3448     ac_aux_dir=$ac_dir
3449     ac_install_sh="$ac_aux_dir/install-sh -c"
3450     break
3451   elif test -f $ac_dir/install.sh; then
3452     ac_aux_dir=$ac_dir
3453     ac_install_sh="$ac_aux_dir/install.sh -c"
3454     break
3455   elif test -f $ac_dir/shtool; then
3456     ac_aux_dir=$ac_dir
3457     ac_install_sh="$ac_aux_dir/shtool install -c"
3458     break
3459   fi
3460 done
3461 if test -z "$ac_aux_dir"; then
3462   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3463 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3464    { (exit 1); exit 1; }; }
3465 fi
3466 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3467 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3468 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3469
3470 # Make sure we can run config.sub.
3471 $ac_config_sub sun4 >/dev/null 2>&1 ||
3472   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3473 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3474    { (exit 1); exit 1; }; }
3475
3476 echo "$as_me:$LINENO: checking build system type" >&5
3477 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3478 if test "${ac_cv_build+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   ac_cv_build_alias=$build_alias
3482 test -z "$ac_cv_build_alias" &&
3483   ac_cv_build_alias=`$ac_config_guess`
3484 test -z "$ac_cv_build_alias" &&
3485   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3486 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3487    { (exit 1); exit 1; }; }
3488 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3489   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3490 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3491    { (exit 1); exit 1; }; }
3492
3493 fi
3494 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3495 echo "${ECHO_T}$ac_cv_build" >&6
3496 build=$ac_cv_build
3497 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3498 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3499 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3500
3501
3502 echo "$as_me:$LINENO: checking host system type" >&5
3503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3504 if test "${ac_cv_host+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   ac_cv_host_alias=$host_alias
3508 test -z "$ac_cv_host_alias" &&
3509   ac_cv_host_alias=$ac_cv_build_alias
3510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3511   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3513    { (exit 1); exit 1; }; }
3514
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3517 echo "${ECHO_T}$ac_cv_host" >&6
3518 host=$ac_cv_host
3519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3522
3523
3524 echo "$as_me:$LINENO: checking target system type" >&5
3525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3526 if test "${ac_cv_target+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   ac_cv_target_alias=$target_alias
3530 test "x$ac_cv_target_alias" = "x" &&
3531   ac_cv_target_alias=$ac_cv_host_alias
3532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3535    { (exit 1); exit 1; }; }
3536
3537 fi
3538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3539 echo "${ECHO_T}$ac_cv_target" >&6
3540 target=$ac_cv_target
3541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3544
3545
3546 # The aliases save the names the user supplied, while $host etc.
3547 # will get canonicalized.
3548 test -n "$target_alias" &&
3549   test "$program_prefix$program_suffix$program_transform_name" = \
3550     NONENONEs,x,x, &&
3551   program_prefix=${target_alias}-
3552
3553 # Dependency checking.
3554 rm -rf .tst 2>/dev/null
3555 mkdir .tst 2>/dev/null
3556 if test -d .tst; then
3557   am__leading_dot=.
3558 else
3559   am__leading_dot=_
3560 fi
3561 rmdir .tst 2>/dev/null
3562
3563 DEPDIR="${am__leading_dot}deps"
3564
3565           ac_config_commands="$ac_config_commands depdir"
3566
3567
3568 depcc="$CC"   am_compiler_list=
3569
3570 am_depcomp=$ac_aux_dir/depcomp
3571 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3573 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   if test -f "$am_depcomp"; then
3577   # We make a subdir and do the tests there.  Otherwise we can end up
3578   # making bogus files that we don't know about and never remove.  For
3579   # instance it was reported that on HP-UX the gcc test will end up
3580   # making a dummy file named `D' -- because `-MD' means `put the output
3581   # in D'.
3582   mkdir conftest.dir
3583   # Copy depcomp to subdir because otherwise we won't find it if we're
3584   # using a relative directory.
3585   cp "$am_depcomp" conftest.dir
3586   cd conftest.dir
3587   # We will build objects and dependencies in a subdirectory because
3588   # it helps to detect inapplicable dependency modes.  For instance
3589   # both Tru64's cc and ICC support -MD to output dependencies as a
3590   # side effect of compilation, but ICC will put the dependencies in
3591   # the current directory while Tru64 will put them in the object
3592   # directory.
3593   mkdir sub
3594
3595   am_cv_CC_dependencies_compiler_type=none
3596   if test "$am_compiler_list" = ""; then
3597      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598   fi
3599   for depmode in $am_compiler_list; do
3600     if test $depmode = none; then break; fi
3601
3602     echo "$as_me:$LINENO: trying $depmode" >&5
3603     # Setup a source with many dependencies, because some compilers
3604     # like to wrap large dependency lists on column 80 (with \), and
3605     # we should not choose a depcomp mode which is confused by this.
3606     #
3607     # We need to recreate these files for each test, as the compiler may
3608     # overwrite some of them when testing with obscure command lines.
3609     # This happens at least with the AIX C compiler.
3610     : > sub/conftest.c
3611     for i in 1 2 3 4 5 6; do
3612       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614       # Solaris 8's {/usr,}/bin/sh.
3615       touch sub/conftst$i.h
3616     done
3617     echo "include sub/conftest.Po" > confmf
3618
3619     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620     # mode.  It turns out that the SunPro C++ compiler does not properly
3621     # handle `-M -o', and we need to detect this.
3622     depcmd="depmode=$depmode \
3623        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3624        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3626     echo "| $depcmd" | sed -e 's/  */ /g' >&5
3627     if env $depcmd > conftest.err 2>&1 &&
3628        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3629        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3630        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3631       # icc doesn't choke on unknown options, it will just issue warnings
3632       # or remarks (even with -Werror).  So we grep stderr for any message
3633       # that says an option was ignored or not supported.
3634       # When given -MP, icc 7.0 and 7.1 complain thusly:
3635       #   icc: Command line warning: ignoring option '-M'; no argument required
3636       # The diagnosis changed in icc 8.0:
3637       #   icc: Command line remark: option '-MP' not supported
3638       if (grep 'ignoring option' conftest.err ||
3639           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640         am_cv_CC_dependencies_compiler_type=$depmode
3641         echo "$as_me:$LINENO: success" >&5
3642         break
3643       fi
3644     fi
3645     echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3646     sed -e 's/^/| /' < conftest.err >&5
3647   done
3648
3649   cd ..
3650   rm -rf conftest.dir
3651 else
3652   am_cv_CC_dependencies_compiler_type=none
3653 fi
3654
3655 fi
3656 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3658 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3659 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3660 echo "$as_me: error: no usable dependency style found" >&2;}
3661    { (exit 1); exit 1; }; }
3662 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663
3664 fi
3665
3666
3667 # Check for the 'make' the user wants to use.
3668 for ac_prog in make
3669 do
3670   # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_MAKE+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   if test -n "$MAKE"; then
3678   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_prog_MAKE="$ac_prog"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694 fi
3695 fi
3696 MAKE=$ac_cv_prog_MAKE
3697 if test -n "$MAKE"; then
3698   echo "$as_me:$LINENO: result: $MAKE" >&5
3699 echo "${ECHO_T}$MAKE" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705   test -n "$MAKE" && break
3706 done
3707
3708 MAKE_IS_GNU=
3709 case "`$MAKE --version 2>&1 | sed 1q`" in
3710   *GNU*)
3711     MAKE_IS_GNU=yes
3712     ;;
3713 esac
3714
3715
3716 if test "$MAKE_IS_GNU" = yes; then
3717   GMAKE_TRUE=
3718   GMAKE_FALSE='#'
3719 else
3720   GMAKE_TRUE='#'
3721   GMAKE_FALSE=
3722 fi
3723
3724 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3725 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3727 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.make <<\_ACEOF
3731 all:
3732         @echo 'ac_maketemp="$(MAKE)"'
3733 _ACEOF
3734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3735 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3736 if test -n "$ac_maketemp"; then
3737   eval ac_cv_prog_make_${ac_make}_set=yes
3738 else
3739   eval ac_cv_prog_make_${ac_make}_set=no
3740 fi
3741 rm -f conftest.make
3742 fi
3743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3744   echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746   SET_MAKE=
3747 else
3748   echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750   SET_MAKE="MAKE=${MAKE-make}"
3751 fi
3752
3753
3754
3755 CONFIG_OBS=
3756 CONFIG_DEPS=
3757 CONFIG_SRCS=
3758 ENABLE_CFLAGS=
3759
3760 CONFIG_ALL=
3761 CONFIG_CLEAN=
3762 CONFIG_INSTALL=
3763 CONFIG_UNINSTALL=
3764
3765 # If we haven't got the data from the intl directory,
3766 # assume NLS is disabled.
3767 USE_NLS=no
3768 LIBINTL=
3769 LIBINTL_DEP=
3770 INCINTL=
3771 XGETTEXT=
3772 GMSGFMT=
3773 POSUB=
3774
3775 if test -f  ../intl/config.intl; then
3776   .  ../intl/config.intl
3777 fi
3778 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3779 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3780 if test x"$USE_NLS" != xyes; then
3781   echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 else
3784   echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6
3786
3787 cat >>confdefs.h <<\_ACEOF
3788 #define ENABLE_NLS 1
3789 _ACEOF
3790
3791
3792   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3793 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3794   # Look for .po and .gmo files in the source directory.
3795   CATALOGS=
3796   XLINGUAS=
3797   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3798     # If there aren't any .gmo files the shell will give us the
3799     # literal string "../path/to/srcdir/po/*.gmo" which has to be
3800     # weeded out.
3801     case "$cat" in *\**)
3802       continue;;
3803     esac
3804     # The quadruple backslash is collapsed to a double backslash
3805     # by the backticks, then collapsed again by the double quotes,
3806     # leaving us with one backslash in the sed expression (right
3807     # before the dot that mustn't act as a wildcard).
3808     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3809     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3810     # The user is allowed to set LINGUAS to a list of languages to
3811     # install catalogs for.  If it's empty that means "all of them."
3812     if test "x$LINGUAS" = x; then
3813       CATALOGS="$CATALOGS $cat"
3814       XLINGUAS="$XLINGUAS $lang"
3815     else
3816       case "$LINGUAS" in *$lang*)
3817         CATALOGS="$CATALOGS $cat"
3818         XLINGUAS="$XLINGUAS $lang"
3819         ;;
3820       esac
3821     fi
3822   done
3823   LINGUAS="$XLINGUAS"
3824   echo "$as_me:$LINENO: result: $LINGUAS" >&5
3825 echo "${ECHO_T}$LINGUAS" >&6
3826
3827
3828     DATADIRNAME=share
3829
3830   INSTOBJEXT=.mo
3831
3832   GENCAT=gencat
3833
3834   CATOBJEXT=.gmo
3835
3836 fi
3837
3838 localedir='${datadir}/locale'
3839
3840
3841 if test x"$USE_NLS" = xyes; then
3842    CONFIG_ALL="$CONFIG_ALL all-po"
3843    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3844    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3845    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3846 fi
3847
3848
3849   GNULIB_MEMMEM=0;
3850   GNULIB_MEMPCPY=0;
3851   GNULIB_MEMRCHR=0;
3852   GNULIB_STPCPY=0;
3853   GNULIB_STPNCPY=0;
3854   GNULIB_STRCHRNUL=0;
3855   GNULIB_STRDUP=0;
3856   GNULIB_STRNDUP=0;
3857   GNULIB_STRNLEN=0;
3858   GNULIB_STRPBRK=0;
3859   GNULIB_STRSEP=0;
3860   GNULIB_STRSTR=0;
3861   GNULIB_STRCASESTR=0;
3862   GNULIB_STRTOK_R=0;
3863   GNULIB_MBSLEN=0;
3864   GNULIB_MBSNLEN=0;
3865   GNULIB_MBSCHR=0;
3866   GNULIB_MBSRCHR=0;
3867   GNULIB_MBSSTR=0;
3868   GNULIB_MBSCASECMP=0;
3869   GNULIB_MBSNCASECMP=0;
3870   GNULIB_MBSPCASECMP=0;
3871   GNULIB_MBSCASESTR=0;
3872   GNULIB_MBSCSPN=0;
3873   GNULIB_MBSPBRK=0;
3874   GNULIB_MBSSPN=0;
3875   GNULIB_MBSSEP=0;
3876   GNULIB_MBSTOK_R=0;
3877   GNULIB_STRERROR=0;
3878   GNULIB_STRSIGNAL=0;
3879     HAVE_DECL_MEMMEM=1;
3880   HAVE_MEMPCPY=1;
3881   HAVE_DECL_MEMRCHR=1;
3882   HAVE_STPCPY=1;
3883   HAVE_STPNCPY=1;
3884   HAVE_STRCHRNUL=1;
3885   HAVE_DECL_STRDUP=1;
3886   HAVE_STRNDUP=1;
3887   HAVE_DECL_STRNDUP=1;
3888   HAVE_DECL_STRNLEN=1;
3889   HAVE_STRPBRK=1;
3890   HAVE_STRSEP=1;
3891   HAVE_STRCASESTR=1;
3892   HAVE_DECL_STRTOK_R=1;
3893   HAVE_DECL_STRERROR=1;
3894   HAVE_DECL_STRSIGNAL=1;
3895   REPLACE_STRERROR=0;
3896   REPLACE_STRSIGNAL=0;
3897   REPLACE_MEMMEM=0;
3898   REPLACE_STRCASESTR=0;
3899   REPLACE_STRSTR=0;
3900
3901
3902       echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3903 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3904 if test "${ac_cv_have_decl_memmem+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913 $ac_includes_default
3914 int
3915 main ()
3916 {
3917 #ifndef memmem
3918   char *p = (char *) memmem;
3919 #endif
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927   (eval $ac_compile) 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } &&
3934          { ac_try='test -z "$ac_c_werror_flag"
3935                          || test ! -s conftest.err'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; } &&
3941          { ac_try='test -s conftest.$ac_objext'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   ac_cv_have_decl_memmem=yes
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_cv_have_decl_memmem=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3957 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3958 if test $ac_cv_have_decl_memmem = yes; then
3959
3960 cat >>confdefs.h <<_ACEOF
3961 #define HAVE_DECL_MEMMEM 1
3962 _ACEOF
3963
3964
3965 else
3966   cat >>confdefs.h <<_ACEOF
3967 #define HAVE_DECL_MEMMEM 0
3968 _ACEOF
3969
3970
3971 fi
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987 for ac_func in memmem
3988 do
3989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3990 echo "$as_me:$LINENO: checking for $ac_func" >&5
3991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_var+set}\" = set"; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4003 #define $ac_func innocuous_$ac_func
4004
4005 /* System header to define __stub macros and hopefully few prototypes,
4006     which can conflict with char $ac_func (); below.
4007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008     <limits.h> exists even on freestanding compilers.  */
4009
4010 #ifdef __STDC__
4011 # include <limits.h>
4012 #else
4013 # include <assert.h>
4014 #endif
4015
4016 #undef $ac_func
4017
4018 /* Override any gcc2 internal prototype to avoid an error.  */
4019 #ifdef __cplusplus
4020 extern "C"
4021 {
4022 #endif
4023 /* We use char because int might match the return type of a gcc2
4024    builtin and then its argument prototype would still apply.  */
4025 char $ac_func ();
4026 /* The GNU C library defines this for functions which it implements
4027     to always fail with ENOSYS.  Some functions are actually named
4028     something starting with __ and the normal name is an alias.  */
4029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4030 choke me
4031 #else
4032 char (*f) () = $ac_func;
4033 #endif
4034 #ifdef __cplusplus
4035 }
4036 #endif
4037
4038 int
4039 main ()
4040 {
4041 return f != $ac_func;
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext conftest$ac_exeext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048   (eval $ac_link) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } &&
4055          { ac_try='test -z "$ac_c_werror_flag"
4056                          || test ! -s conftest.err'
4057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058   (eval $ac_try) 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; } &&
4062          { ac_try='test -s conftest$ac_exeext'
4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; }; then
4068   eval "$as_ac_var=yes"
4069 else
4070   echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 eval "$as_ac_var=no"
4074 fi
4075 rm -f conftest.err conftest.$ac_objext \
4076       conftest$ac_exeext conftest.$ac_ext
4077 fi
4078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4080 if test `eval echo '${'$as_ac_var'}'` = yes; then
4081   cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 else
4086
4087     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4088
4089 fi
4090 done
4091
4092
4093
4094   :
4095
4096
4097
4098
4099
4100   if test $ac_cv_have_decl_memmem = no; then
4101     HAVE_DECL_MEMMEM=0
4102   fi
4103   :
4104
4105
4106   echo "$as_me:$LINENO: checking for long long int" >&5
4107 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4108 if test "${ac_cv_type_long_long_int+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   cat >conftest.$ac_ext <<_ACEOF
4112
4113   /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 /* For now, do not test the preprocessor; as of 2007 there are too many
4119          implementations with broken preprocessors.  Perhaps this can
4120          be revisited in 2012.  In the meantime, code should not expect
4121          #if to work with literals wider than 32 bits.  */
4122       /* Test literals.  */
4123       long long int ll = 9223372036854775807ll;
4124       long long int nll = -9223372036854775807LL;
4125       unsigned long long int ull = 18446744073709551615ULL;
4126       /* Test constant expressions.   */
4127       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4128                      ? 1 : -1)];
4129       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4130                      ? 1 : -1)];
4131       int i = 63;
4132 int
4133 main ()
4134 {
4135 /* Test availability of runtime routines for shift and division.  */
4136       long long int llmax = 9223372036854775807ll;
4137       unsigned long long int ullmax = 18446744073709551615ull;
4138       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4139               | (llmax / ll) | (llmax % ll)
4140               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4141               | (ullmax / ull) | (ullmax % ull));
4142   ;
4143   return 0;
4144 }
4145
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149   (eval $ac_link) 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -z "$ac_c_werror_flag"
4157                          || test ! -s conftest.err'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest$ac_exeext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169                         if test "$cross_compiling" = yes; then
4170   ac_cv_type_long_long_int=yes
4171 else
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #include <limits.h>
4179                #ifndef LLONG_MAX
4180                # define HALF \
4181                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4182                # define LLONG_MAX (HALF - 1 + HALF)
4183                #endif
4184 int
4185 main ()
4186 {
4187 long long int n = 1;
4188                int i;
4189                for (i = 0; ; i++)
4190                  {
4191                    long long int m = n << i;
4192                    if (m >> i != n)
4193                      return 1;
4194                    if (LLONG_MAX / 2 < m)
4195                      break;
4196                  }
4197                return 0;
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   ac_cv_type_long_long_int=yes
4214 else
4215   echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ( exit $ac_status )
4220 ac_cv_type_long_long_int=no
4221 fi
4222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_cv_type_long_long_int=no
4229 fi
4230 rm -f conftest.err conftest.$ac_objext \
4231       conftest$ac_exeext conftest.$ac_ext
4232 fi
4233 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4234 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4235   if test $ac_cv_type_long_long_int = yes; then
4236
4237 cat >>confdefs.h <<\_ACEOF
4238 #define HAVE_LONG_LONG_INT 1
4239 _ACEOF
4240
4241   fi
4242
4243
4244   echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4245 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4246 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250
4251   /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 /* For now, do not test the preprocessor; as of 2007 there are too many
4257          implementations with broken preprocessors.  Perhaps this can
4258          be revisited in 2012.  In the meantime, code should not expect
4259          #if to work with literals wider than 32 bits.  */
4260       /* Test literals.  */
4261       long long int ll = 9223372036854775807ll;
4262       long long int nll = -9223372036854775807LL;
4263       unsigned long long int ull = 18446744073709551615ULL;
4264       /* Test constant expressions.   */
4265       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4266                      ? 1 : -1)];
4267       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4268                      ? 1 : -1)];
4269       int i = 63;
4270 int
4271 main ()
4272 {
4273 /* Test availability of runtime routines for shift and division.  */
4274       long long int llmax = 9223372036854775807ll;
4275       unsigned long long int ullmax = 18446744073709551615ull;
4276       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4277               | (llmax / ll) | (llmax % ll)
4278               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4279               | (ullmax / ull) | (ullmax % ull));
4280   ;
4281   return 0;
4282 }
4283
4284 _ACEOF
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287   (eval $ac_link) 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag"
4295                          || test ! -s conftest.err'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; } &&
4301          { ac_try='test -s conftest$ac_exeext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_type_unsigned_long_long_int=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_type_unsigned_long_long_int=no
4313 fi
4314 rm -f conftest.err conftest.$ac_objext \
4315       conftest$ac_exeext conftest.$ac_ext
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4318 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4319   if test $ac_cv_type_unsigned_long_long_int = yes; then
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4323 _ACEOF
4324
4325   fi
4326
4327
4328
4329   echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4330 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4331 if test "${gl_cv_have_include_next+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   rm -rf conftestd1 conftestd2
4335      mkdir conftestd1 conftestd2
4336      cat <<EOF > conftestd1/conftest.h
4337 #define DEFINED_IN_CONFTESTD1
4338 #include_next <conftest.h>
4339 #ifdef DEFINED_IN_CONFTESTD2
4340 int foo;
4341 #else
4342 #error "include_next doesn't work"
4343 #endif
4344 EOF
4345      cat <<EOF > conftestd2/conftest.h
4346 #ifndef DEFINED_IN_CONFTESTD1
4347 #error "include_next test doesn't work"
4348 #endif
4349 #define DEFINED_IN_CONFTESTD2
4350 EOF
4351      save_CPPFLAGS="$CPPFLAGS"
4352      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4353      cat >conftest.$ac_ext <<_ACEOF
4354 #include <conftest.h>
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -z "$ac_c_werror_flag"
4366                          || test ! -s conftest.err'
4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; } &&
4372          { ac_try='test -s conftest.$ac_objext'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   gl_cv_have_include_next=yes
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 gl_cv_have_include_next=no
4384 fi
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386      CPPFLAGS="$save_CPPFLAGS"
4387      rm -rf conftestd1 conftestd2
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4391 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4392   if test $gl_cv_have_include_next = yes; then
4393
4394
4395 cat >>confdefs.h <<\_ACEOF
4396 #define HAVE_INCLUDE_NEXT 1
4397 _ACEOF
4398
4399
4400     INCLUDE_NEXT=include_next
4401   else
4402     INCLUDE_NEXT=include
4403   fi
4404
4405
4406
4407
4408
4409
4410
4411 for ac_header in $gl_header_list
4412 do
4413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415   echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 fi
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4422 else
4423   # Is the header compilable?
4424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 $ac_includes_default
4433 #include <$ac_header>
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437   (eval $ac_compile) 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } &&
4444          { ac_try='test -z "$ac_c_werror_flag"
4445                          || test ! -s conftest.err'
4446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447   (eval $ac_try) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; } &&
4451          { ac_try='test -s conftest.$ac_objext'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   ac_header_compiler=yes
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_header_compiler=no
4463 fi
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466 echo "${ECHO_T}$ac_header_compiler" >&6
4467
4468 # Is the header present?
4469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 #include <$ac_header>
4478 _ACEOF
4479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } >/dev/null; then
4487   if test -s conftest.err; then
4488     ac_cpp_err=$ac_c_preproc_warn_flag
4489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4490   else
4491     ac_cpp_err=
4492   fi
4493 else
4494   ac_cpp_err=yes
4495 fi
4496 if test -z "$ac_cpp_err"; then
4497   ac_header_preproc=yes
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502   ac_header_preproc=no
4503 fi
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4507
4508 # So?  What about this header?
4509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4510   yes:no: )
4511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4515     ac_header_preproc=yes
4516     ;;
4517   no:yes:* )
4518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4530     (
4531       cat <<\_ASBOX
4532 ## ------------------------------------------ ##
4533 ## Report this to the AC_PACKAGE_NAME lists.  ##
4534 ## ------------------------------------------ ##
4535 _ASBOX
4536     ) |
4537       sed "s/^/$as_me: WARNING:     /" >&2
4538     ;;
4539 esac
4540 echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   eval "$as_ac_Header=\$ac_header_preproc"
4546 fi
4547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549
4550 fi
4551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4552   cat >>confdefs.h <<_ACEOF
4553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554 _ACEOF
4555
4556 fi
4557
4558 done
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4572 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4573 if test "${ac_cv_c_restrict+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   ac_cv_c_restrict=no
4577    # The order here caters to the fact that C++ does not require restrict.
4578    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4579      cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 typedef int * int_ptr;
4586         int foo (int_ptr $ac_kw ip) {
4587         return ip[0];
4588        }
4589 int
4590 main ()
4591 {
4592 int s[1];
4593         int * $ac_kw t = s;
4594         t[0] = 0;
4595         return foo(t)
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602   (eval $ac_compile) 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -z "$ac_c_werror_flag"
4610                          || test ! -s conftest.err'
4611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612   (eval $ac_try) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_cv_c_restrict=$ac_kw
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 fi
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629      test "$ac_cv_c_restrict" != no && break
4630    done
4631
4632 fi
4633 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4634 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4635
4636
4637  case $ac_cv_c_restrict in
4638    restrict) ;;
4639    no) cat >>confdefs.h <<\_ACEOF
4640 #define restrict
4641 _ACEOF
4642  ;;
4643    *)  cat >>confdefs.h <<_ACEOF
4644 #define restrict $ac_cv_c_restrict
4645 _ACEOF
4646  ;;
4647  esac
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661   :
4662
4663
4664
4665
4666
4667
4668
4669      if test $gl_cv_have_include_next = yes; then
4670        gl_cv_next_string_h='<'string.h'>'
4671      else
4672        echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4673 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4674 if test "${gl_cv_next_string_h+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677
4678           if test $ac_cv_header_string_h = yes; then
4679             cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 #include <string.h>
4686
4687 _ACEOF
4688                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689                sed -n '\#/string.h#{
4690                  s#.*"\(.*/string.h\)".*#\1#
4691                  s#^/[^/]#//&#
4692                  p
4693                  q
4694                }'`'"'
4695           else
4696             gl_cv_next_string_h='<'string.h'>'
4697           fi
4698
4699 fi
4700 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4701 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4702      fi
4703      NEXT_STRING_H=$gl_cv_next_string_h
4704
4705
4706
4707
4708
4709   GNULIB_WCWIDTH=0;
4710     HAVE_DECL_WCWIDTH=1;
4711   REPLACE_WCWIDTH=0;
4712   WCHAR_H=
4713
4714
4715
4716
4717
4718 if false; then
4719   GL_COND_LIBTOOL_TRUE=
4720   GL_COND_LIBTOOL_FALSE='#'
4721 else
4722   GL_COND_LIBTOOL_TRUE='#'
4723   GL_COND_LIBTOOL_FALSE=
4724 fi
4725
4726   gl_cond_libtool=false
4727   gl_libdeps=
4728   gl_ltlibdeps=
4729
4730
4731
4732   gl_source_base='gnulib'
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 for ac_func in memchr
4743 do
4744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4745 echo "$as_me:$LINENO: checking for $ac_func" >&5
4746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4747 if eval "test \"\${$as_ac_var+set}\" = set"; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4758 #define $ac_func innocuous_$ac_func
4759
4760 /* System header to define __stub macros and hopefully few prototypes,
4761     which can conflict with char $ac_func (); below.
4762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763     <limits.h> exists even on freestanding compilers.  */
4764
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770
4771 #undef $ac_func
4772
4773 /* Override any gcc2 internal prototype to avoid an error.  */
4774 #ifdef __cplusplus
4775 extern "C"
4776 {
4777 #endif
4778 /* We use char because int might match the return type of a gcc2
4779    builtin and then its argument prototype would still apply.  */
4780 char $ac_func ();
4781 /* The GNU C library defines this for functions which it implements
4782     to always fail with ENOSYS.  Some functions are actually named
4783     something starting with __ and the normal name is an alias.  */
4784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4785 choke me
4786 #else
4787 char (*f) () = $ac_func;
4788 #endif
4789 #ifdef __cplusplus
4790 }
4791 #endif
4792
4793 int
4794 main ()
4795 {
4796 return f != $ac_func;
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803   (eval $ac_link) 2>conftest.er1
4804   ac_status=$?
4805   grep -v '^ *+' conftest.er1 >conftest.err
4806   rm -f conftest.er1
4807   cat conftest.err >&5
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } &&
4810          { ac_try='test -z "$ac_c_werror_flag"
4811                          || test ! -s conftest.err'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest$ac_exeext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   eval "$as_ac_var=yes"
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 eval "$as_ac_var=no"
4829 fi
4830 rm -f conftest.err conftest.$ac_objext \
4831       conftest$ac_exeext conftest.$ac_ext
4832 fi
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4835 if test `eval echo '${'$as_ac_var'}'` = yes; then
4836   cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4838 _ACEOF
4839
4840 else
4841
4842     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4843
4844 fi
4845 done
4846
4847
4848   if test $ac_cv_func_memchr = no; then
4849
4850
4851 for ac_header in bp-sym.h
4852 do
4853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855   echo "$as_me:$LINENO: checking for $ac_header" >&5
4856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 fi
4860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862 else
4863   # Is the header compilable?
4864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 $ac_includes_default
4873 #include <$ac_header>
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } &&
4884          { ac_try='test -z "$ac_c_werror_flag"
4885                          || test ! -s conftest.err'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; } &&
4891          { ac_try='test -s conftest.$ac_objext'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; }; then
4897   ac_header_compiler=yes
4898 else
4899   echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_header_compiler=no
4903 fi
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4906 echo "${ECHO_T}$ac_header_compiler" >&6
4907
4908 # Is the header present?
4909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h.  */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h.  */
4917 #include <$ac_header>
4918 _ACEOF
4919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } >/dev/null; then
4927   if test -s conftest.err; then
4928     ac_cpp_err=$ac_c_preproc_warn_flag
4929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4930   else
4931     ac_cpp_err=
4932   fi
4933 else
4934   ac_cpp_err=yes
4935 fi
4936 if test -z "$ac_cpp_err"; then
4937   ac_header_preproc=yes
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942   ac_header_preproc=no
4943 fi
4944 rm -f conftest.err conftest.$ac_ext
4945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4946 echo "${ECHO_T}$ac_header_preproc" >&6
4947
4948 # So?  What about this header?
4949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4950   yes:no: )
4951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4955     ac_header_preproc=yes
4956     ;;
4957   no:yes:* )
4958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4970     (
4971       cat <<\_ASBOX
4972 ## ------------------------------------------ ##
4973 ## Report this to the AC_PACKAGE_NAME lists.  ##
4974 ## ------------------------------------------ ##
4975 _ASBOX
4976     ) |
4977       sed "s/^/$as_me: WARNING:     /" >&2
4978     ;;
4979 esac
4980 echo "$as_me:$LINENO: checking for $ac_header" >&5
4981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   eval "$as_ac_Header=\$ac_header_preproc"
4986 fi
4987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4989
4990 fi
4991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4992   cat >>confdefs.h <<_ACEOF
4993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 _ACEOF
4995
4996 fi
4997
4998 done
4999
5000
5001   fi
5002
5003
5004   echo "$as_me:$LINENO: checking for working memcmp" >&5
5005 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5006 if test "${ac_cv_func_memcmp_working+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   if test "$cross_compiling" = yes; then
5010   ac_cv_func_memcmp_working=no
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 $ac_includes_default
5019 int
5020 main ()
5021 {
5022
5023   /* Some versions of memcmp are not 8-bit clean.  */
5024   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5025   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5026     exit (1);
5027
5028   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5029      or more and with at least one buffer not starting on a 4-byte boundary.
5030      William Lewis provided this test program.   */
5031   {
5032     char foo[21];
5033     char bar[21];
5034     int i;
5035     for (i = 0; i < 4; i++)
5036       {
5037         char *a = foo + i;
5038         char *b = bar + i;
5039         strcpy (a, "--------01111111");
5040         strcpy (b, "--------10000000");
5041         if (memcmp (a, b, 16) >= 0)
5042           exit (1);
5043       }
5044     exit (0);
5045   }
5046
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_cv_func_memcmp_working=yes
5063 else
5064   echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ( exit $ac_status )
5069 ac_cv_func_memcmp_working=no
5070 fi
5071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 fi
5074 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5075 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5076 test $ac_cv_func_memcmp_working = no &&
5077
5078
5079
5080
5081
5082
5083   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5084
5085
5086     if test $ac_cv_func_memcmp_working = no; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define memcmp rpl_memcmp
5090 _ACEOF
5091
5092     :
5093   fi
5094
5095
5096
5097   if test $ac_cv_have_decl_memmem = yes; then
5098     echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5099 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5100 if test "${gl_cv_func_memmem_works+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   if test "$cross_compiling" = yes; then
5104                  gl_cv_func_memmem_works="guessing no"
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112
5113 #include <string.h> /* for memmem */
5114 #include <stdlib.h> /* for malloc */
5115 #include <unistd.h> /* for alarm */
5116
5117 int
5118 main ()
5119 {
5120 size_t m = 1000000;
5121     char *haystack = (char *) malloc (2 * m + 1);
5122     char *needle = (char *) malloc (m + 1);
5123     void *result = 0;
5124     /* Failure to compile this test due to missing alarm is okay,
5125        since all such platforms (mingw) also lack memmem.  */
5126     alarm (5);
5127     /* Check for quadratic performance.  */
5128     if (haystack && needle)
5129       {
5130         memset (haystack, 'A', 2 * m);
5131         haystack[2 * m] = 'B';
5132         memset (needle, 'A', m);
5133         needle[m] = 'B';
5134         result = memmem (haystack, 2 * m + 1, needle, m + 1);
5135       }
5136     /* Check for empty needle behavior.  */
5137     return !result || !memmem ("a", 1, 0, 0);
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144   (eval $ac_link) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; }; then
5153   gl_cv_func_memmem_works=yes
5154 else
5155   echo "$as_me: program exited with status $ac_status" >&5
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 ( exit $ac_status )
5160 gl_cv_func_memmem_works=no
5161 fi
5162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 fi
5165 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5166 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5167     if test "$gl_cv_func_memmem_works" != yes; then
5168       REPLACE_MEMMEM=1
5169
5170
5171
5172
5173
5174
5175
5176   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5177
5178     fi
5179   fi
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 for ac_func in memmem
5194 do
5195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5196 echo "$as_me:$LINENO: checking for $ac_func" >&5
5197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_var+set}\" = set"; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5209 #define $ac_func innocuous_$ac_func
5210
5211 /* System header to define __stub macros and hopefully few prototypes,
5212     which can conflict with char $ac_func (); below.
5213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214     <limits.h> exists even on freestanding compilers.  */
5215
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5221
5222 #undef $ac_func
5223
5224 /* Override any gcc2 internal prototype to avoid an error.  */
5225 #ifdef __cplusplus
5226 extern "C"
5227 {
5228 #endif
5229 /* We use char because int might match the return type of a gcc2
5230    builtin and then its argument prototype would still apply.  */
5231 char $ac_func ();
5232 /* The GNU C library defines this for functions which it implements
5233     to always fail with ENOSYS.  Some functions are actually named
5234     something starting with __ and the normal name is an alias.  */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 choke me
5237 #else
5238 char (*f) () = $ac_func;
5239 #endif
5240 #ifdef __cplusplus
5241 }
5242 #endif
5243
5244 int
5245 main ()
5246 {
5247 return f != $ac_func;
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254   (eval $ac_link) 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -z "$ac_c_werror_flag"
5262                          || test ! -s conftest.err'
5263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264   (eval $ac_try) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; } &&
5268          { ac_try='test -s conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   eval "$as_ac_var=yes"
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 eval "$as_ac_var=no"
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282       conftest$ac_exeext conftest.$ac_ext
5283 fi
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5286 if test `eval echo '${'$as_ac_var'}'` = yes; then
5287   cat >>confdefs.h <<_ACEOF
5288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5289 _ACEOF
5290
5291 else
5292
5293     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5294
5295 fi
5296 done
5297
5298
5299
5300   :
5301
5302
5303
5304
5305
5306   if test $ac_cv_have_decl_memmem = no; then
5307     HAVE_DECL_MEMMEM=0
5308   fi
5309   :
5310
5311
5312
5313   GNULIB_MEMMEM=1
5314
5315
5316
5317
5318   if test $ac_cv_type_long_long_int = yes; then
5319     HAVE_LONG_LONG_INT=1
5320   else
5321     HAVE_LONG_LONG_INT=0
5322   fi
5323
5324
5325   if test $ac_cv_type_unsigned_long_long_int = yes; then
5326     HAVE_UNSIGNED_LONG_LONG_INT=1
5327   else
5328     HAVE_UNSIGNED_LONG_LONG_INT=0
5329   fi
5330
5331
5332       if test $ac_cv_header_inttypes_h = yes; then
5333     HAVE_INTTYPES_H=1
5334   else
5335     HAVE_INTTYPES_H=0
5336   fi
5337
5338
5339       if test $ac_cv_header_sys_types_h = yes; then
5340     HAVE_SYS_TYPES_H=1
5341   else
5342     HAVE_SYS_TYPES_H=0
5343   fi
5344
5345
5346
5347
5348
5349   :
5350
5351
5352
5353
5354
5355
5356
5357      if test $gl_cv_have_include_next = yes; then
5358        gl_cv_next_stdint_h='<'stdint.h'>'
5359      else
5360        echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5361 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5362 if test "${gl_cv_next_stdint_h+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365
5366           if test $ac_cv_header_stdint_h = yes; then
5367             cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <stdint.h>
5374
5375 _ACEOF
5376                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377                sed -n '\#/stdint.h#{
5378                  s#.*"\(.*/stdint.h\)".*#\1#
5379                  s#^/[^/]#//&#
5380                  p
5381                  q
5382                }'`'"'
5383           else
5384             gl_cv_next_stdint_h='<'stdint.h'>'
5385           fi
5386
5387 fi
5388 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5389 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5390      fi
5391      NEXT_STDINT_H=$gl_cv_next_stdint_h
5392
5393
5394
5395   if test $ac_cv_header_stdint_h = yes; then
5396     HAVE_STDINT_H=1
5397   else
5398     HAVE_STDINT_H=0
5399   fi
5400
5401
5402     if test $ac_cv_header_stdint_h = yes; then
5403     echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5404 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5405 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   gl_cv_header_working_stdint_h=no
5409        cat >conftest.$ac_ext <<_ACEOF
5410
5411          /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416
5417 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5418 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5419 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5420 #include <stdint.h>
5421 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5422 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5423 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5424 #endif
5425
5426
5427   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5428      included before <wchar.h>.  */
5429   #include <stddef.h>
5430   #include <signal.h>
5431   #if HAVE_WCHAR_H
5432   # include <stdio.h>
5433   # include <time.h>
5434   # include <wchar.h>
5435   #endif
5436
5437
5438 #ifdef INT8_MAX
5439 int8_t a1 = INT8_MAX;
5440 int8_t a1min = INT8_MIN;
5441 #endif
5442 #ifdef INT16_MAX
5443 int16_t a2 = INT16_MAX;
5444 int16_t a2min = INT16_MIN;
5445 #endif
5446 #ifdef INT32_MAX
5447 int32_t a3 = INT32_MAX;
5448 int32_t a3min = INT32_MIN;
5449 #endif
5450 #ifdef INT64_MAX
5451 int64_t a4 = INT64_MAX;
5452 int64_t a4min = INT64_MIN;
5453 #endif
5454 #ifdef UINT8_MAX
5455 uint8_t b1 = UINT8_MAX;
5456 #else
5457 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5458 #endif
5459 #ifdef UINT16_MAX
5460 uint16_t b2 = UINT16_MAX;
5461 #endif
5462 #ifdef UINT32_MAX
5463 uint32_t b3 = UINT32_MAX;
5464 #endif
5465 #ifdef UINT64_MAX
5466 uint64_t b4 = UINT64_MAX;
5467 #endif
5468 int_least8_t c1 = INT8_C (0x7f);
5469 int_least8_t c1max = INT_LEAST8_MAX;
5470 int_least8_t c1min = INT_LEAST8_MIN;
5471 int_least16_t c2 = INT16_C (0x7fff);
5472 int_least16_t c2max = INT_LEAST16_MAX;
5473 int_least16_t c2min = INT_LEAST16_MIN;
5474 int_least32_t c3 = INT32_C (0x7fffffff);
5475 int_least32_t c3max = INT_LEAST32_MAX;
5476 int_least32_t c3min = INT_LEAST32_MIN;
5477 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5478 int_least64_t c4max = INT_LEAST64_MAX;
5479 int_least64_t c4min = INT_LEAST64_MIN;
5480 uint_least8_t d1 = UINT8_C (0xff);
5481 uint_least8_t d1max = UINT_LEAST8_MAX;
5482 uint_least16_t d2 = UINT16_C (0xffff);
5483 uint_least16_t d2max = UINT_LEAST16_MAX;
5484 uint_least32_t d3 = UINT32_C (0xffffffff);
5485 uint_least32_t d3max = UINT_LEAST32_MAX;
5486 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5487 uint_least64_t d4max = UINT_LEAST64_MAX;
5488 int_fast8_t e1 = INT_FAST8_MAX;
5489 int_fast8_t e1min = INT_FAST8_MIN;
5490 int_fast16_t e2 = INT_FAST16_MAX;
5491 int_fast16_t e2min = INT_FAST16_MIN;
5492 int_fast32_t e3 = INT_FAST32_MAX;
5493 int_fast32_t e3min = INT_FAST32_MIN;
5494 int_fast64_t e4 = INT_FAST64_MAX;
5495 int_fast64_t e4min = INT_FAST64_MIN;
5496 uint_fast8_t f1 = UINT_FAST8_MAX;
5497 uint_fast16_t f2 = UINT_FAST16_MAX;
5498 uint_fast32_t f3 = UINT_FAST32_MAX;
5499 uint_fast64_t f4 = UINT_FAST64_MAX;
5500 #ifdef INTPTR_MAX
5501 intptr_t g = INTPTR_MAX;
5502 intptr_t gmin = INTPTR_MIN;
5503 #endif
5504 #ifdef UINTPTR_MAX
5505 uintptr_t h = UINTPTR_MAX;
5506 #endif
5507 intmax_t i = INTMAX_MAX;
5508 uintmax_t j = UINTMAX_MAX;
5509
5510 #include <limits.h> /* for CHAR_BIT */
5511 #define TYPE_MINIMUM(t) \
5512   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5513 #define TYPE_MAXIMUM(t) \
5514   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5515 struct s {
5516   int check_PTRDIFF:
5517       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5518       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5519       ? 1 : -1;
5520   /* Detect bug in FreeBSD 6.0 / ia64.  */
5521   int check_SIG_ATOMIC:
5522       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5523       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5524       ? 1 : -1;
5525   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5526   int check_WCHAR:
5527       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5528       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5529       ? 1 : -1;
5530   /* Detect bug in mingw.  */
5531   int check_WINT:
5532       WINT_MIN == TYPE_MINIMUM (wint_t)
5533       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5534       ? 1 : -1;
5535
5536   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5537   int check_UINT8_C:
5538         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5539   int check_UINT16_C:
5540         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5541
5542   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5543 #ifdef UINT8_MAX
5544   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5545 #endif
5546 #ifdef UINT16_MAX
5547   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5548 #endif
5549 #ifdef UINT32_MAX
5550   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5551 #endif
5552 #ifdef UINT64_MAX
5553   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5554 #endif
5555   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5556   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5557   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5558   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5559   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5560   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5561   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5562   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5563   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5564   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5565   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5566 };
5567
5568 int
5569 main ()
5570 {
5571
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578   (eval $ac_compile) 2>conftest.er1
5579   ac_status=$?
5580   grep -v '^ *+' conftest.er1 >conftest.err
5581   rm -f conftest.er1
5582   cat conftest.err >&5
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); } &&
5585          { ac_try='test -z "$ac_c_werror_flag"
5586                          || test ! -s conftest.err'
5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); }; } &&
5592          { ac_try='test -s conftest.$ac_objext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   gl_cv_header_working_stdint_h=yes
5599 else
5600   echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 fi
5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5607 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5608   fi
5609   if test "$gl_cv_header_working_stdint_h" = yes; then
5610     STDINT_H=
5611   else
5612
5613
5614 for ac_header in sys/inttypes.h sys/bitypes.h
5615 do
5616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5618   echo "$as_me:$LINENO: checking for $ac_header" >&5
5619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 fi
5623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5625 else
5626   # Is the header compilable?
5627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 $ac_includes_default
5636 #include <$ac_header>
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640   (eval $ac_compile) 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -z "$ac_c_werror_flag"
5648                          || test ! -s conftest.err'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; } &&
5654          { ac_try='test -s conftest.$ac_objext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660   ac_header_compiler=yes
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ac_header_compiler=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5669 echo "${ECHO_T}$ac_header_compiler" >&6
5670
5671 # Is the header present?
5672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680 #include <$ac_header>
5681 _ACEOF
5682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } >/dev/null; then
5690   if test -s conftest.err; then
5691     ac_cpp_err=$ac_c_preproc_warn_flag
5692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5693   else
5694     ac_cpp_err=
5695   fi
5696 else
5697   ac_cpp_err=yes
5698 fi
5699 if test -z "$ac_cpp_err"; then
5700   ac_header_preproc=yes
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705   ac_header_preproc=no
5706 fi
5707 rm -f conftest.err conftest.$ac_ext
5708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5709 echo "${ECHO_T}$ac_header_preproc" >&6
5710
5711 # So?  What about this header?
5712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5713   yes:no: )
5714     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5718     ac_header_preproc=yes
5719     ;;
5720   no:yes:* )
5721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5723     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5724 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5725     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5727     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5728 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5731     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5733     (
5734       cat <<\_ASBOX
5735 ## ------------------------------------------ ##
5736 ## Report this to the AC_PACKAGE_NAME lists.  ##
5737 ## ------------------------------------------ ##
5738 _ASBOX
5739     ) |
5740       sed "s/^/$as_me: WARNING:     /" >&2
5741     ;;
5742 esac
5743 echo "$as_me:$LINENO: checking for $ac_header" >&5
5744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   eval "$as_ac_Header=\$ac_header_preproc"
5749 fi
5750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5752
5753 fi
5754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5755   cat >>confdefs.h <<_ACEOF
5756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757 _ACEOF
5758
5759 fi
5760
5761 done
5762
5763     if test $ac_cv_header_sys_inttypes_h = yes; then
5764       HAVE_SYS_INTTYPES_H=1
5765     else
5766       HAVE_SYS_INTTYPES_H=0
5767     fi
5768
5769     if test $ac_cv_header_sys_bitypes_h = yes; then
5770       HAVE_SYS_BITYPES_H=1
5771     else
5772       HAVE_SYS_BITYPES_H=0
5773     fi
5774
5775
5776
5777   :
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5793     echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5794 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5795 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test "$cross_compiling" = yes; then
5799   # Depending upon the size, compute the lo and hi bounds.
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806
5807   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5808      included before <wchar.h>.  */
5809   #include <stddef.h>
5810   #include <signal.h>
5811   #if HAVE_WCHAR_H
5812   # include <stdio.h>
5813   # include <time.h>
5814   # include <wchar.h>
5815   #endif
5816
5817 #include <limits.h>
5818 int
5819 main ()
5820 {
5821 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5822 test_array [0] = 0
5823
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830   (eval $ac_compile) 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag"
5838                          || test ! -s conftest.err'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; } &&
5844          { ac_try='test -s conftest.$ac_objext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_lo=0 ac_mid=0
5851   while :; do
5852     cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858
5859   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5860      included before <wchar.h>.  */
5861   #include <stddef.h>
5862   #include <signal.h>
5863   #if HAVE_WCHAR_H
5864   # include <stdio.h>
5865   # include <time.h>
5866   # include <wchar.h>
5867   #endif
5868
5869 #include <limits.h>
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882   (eval $ac_compile) 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } &&
5889          { ac_try='test -z "$ac_c_werror_flag"
5890                          || test ! -s conftest.err'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; } &&
5896          { ac_try='test -s conftest.$ac_objext'
5897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898   (eval $ac_try) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; }; then
5902   ac_hi=$ac_mid; break
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo=`expr $ac_mid + 1`
5908                     if test $ac_lo -le $ac_mid; then
5909                       ac_lo= ac_hi=
5910                       break
5911                     fi
5912                     ac_mid=`expr 2 '*' $ac_mid + 1`
5913 fi
5914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915   done
5916 else
5917   echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926
5927   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5928      included before <wchar.h>.  */
5929   #include <stddef.h>
5930   #include <signal.h>
5931   #if HAVE_WCHAR_H
5932   # include <stdio.h>
5933   # include <time.h>
5934   # include <wchar.h>
5935   #endif
5936
5937 #include <limits.h>
5938 int
5939 main ()
5940 {
5941 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5942 test_array [0] = 0
5943
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950   (eval $ac_compile) 2>conftest.er1
5951   ac_status=$?
5952   grep -v '^ *+' conftest.er1 >conftest.err
5953   rm -f conftest.er1
5954   cat conftest.err >&5
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } &&
5957          { ac_try='test -z "$ac_c_werror_flag"
5958                          || test ! -s conftest.err'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; } &&
5964          { ac_try='test -s conftest.$ac_objext'
5965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966   (eval $ac_try) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; }; then
5970   ac_hi=-1 ac_mid=-1
5971   while :; do
5972     cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978
5979   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5980      included before <wchar.h>.  */
5981   #include <stddef.h>
5982   #include <signal.h>
5983   #if HAVE_WCHAR_H
5984   # include <stdio.h>
5985   # include <time.h>
5986   # include <wchar.h>
5987   #endif
5988
5989 #include <limits.h>
5990 int
5991 main ()
5992 {
5993 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5994 test_array [0] = 0
5995
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002   (eval $ac_compile) 2>conftest.er1
6003   ac_status=$?
6004   grep -v '^ *+' conftest.er1 >conftest.err
6005   rm -f conftest.er1
6006   cat conftest.err >&5
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); } &&
6009          { ac_try='test -z "$ac_c_werror_flag"
6010                          || test ! -s conftest.err'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; } &&
6016          { ac_try='test -s conftest.$ac_objext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_lo=$ac_mid; break
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_hi=`expr '(' $ac_mid ')' - 1`
6028                        if test $ac_mid -le $ac_hi; then
6029                          ac_lo= ac_hi=
6030                          break
6031                        fi
6032                        ac_mid=`expr 2 '*' $ac_mid`
6033 fi
6034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035   done
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_lo= ac_hi=
6041 fi
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6045 # Binary search between lo and hi bounds.
6046 while test "x$ac_lo" != "x$ac_hi"; do
6047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6048   cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054
6055   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6056      included before <wchar.h>.  */
6057   #include <stddef.h>
6058   #include <signal.h>
6059   #if HAVE_WCHAR_H
6060   # include <stdio.h>
6061   # include <time.h>
6062   # include <wchar.h>
6063   #endif
6064
6065 #include <limits.h>
6066 int
6067 main ()
6068 {
6069 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6070 test_array [0] = 0
6071
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"
6086                          || test ! -s conftest.err'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_hi=$ac_mid
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_lo=`expr '(' $ac_mid ')' + 1`
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 done
6107 case $ac_lo in
6108 ?*) result=$ac_lo;;
6109 '') result=unknown ;;
6110 esac
6111 else
6112   if test "$cross_compiling" = yes; then
6113   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6114 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6115 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6116 See \`config.log' for more details." >&5
6117 echo "$as_me: error: cannot run test program while cross compiling
6118 See \`config.log' for more details." >&2;}
6119    { (exit 1); exit 1; }; }; }
6120 else
6121   cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h.  */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h.  */
6127
6128   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6129      included before <wchar.h>.  */
6130   #include <stddef.h>
6131   #include <signal.h>
6132   #if HAVE_WCHAR_H
6133   # include <stdio.h>
6134   # include <time.h>
6135   # include <wchar.h>
6136   #endif
6137
6138 #include <limits.h>
6139 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6140 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6141 #include <stdio.h>
6142 #include <stdlib.h>
6143 int
6144 main ()
6145 {
6146
6147   FILE *f = fopen ("conftest.val", "w");
6148   if (! f)
6149     exit (1);
6150   if ((sizeof ($gltype) * CHAR_BIT) < 0)
6151     {
6152       long i = longval ();
6153       if (i != (sizeof ($gltype) * CHAR_BIT))
6154         exit (1);
6155       fprintf (f, "%ld\n", i);
6156     }
6157   else
6158     {
6159       unsigned long i = ulongval ();
6160       if (i != (sizeof ($gltype) * CHAR_BIT))
6161         exit (1);
6162       fprintf (f, "%lu\n", i);
6163     }
6164   exit (ferror (f) || fclose (f) != 0);
6165
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; }; then
6181   result=`cat conftest.val`
6182 else
6183   echo "$as_me: program exited with status $ac_status" >&5
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ( exit $ac_status )
6188 result=unknown
6189 fi
6190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6191 fi
6192 fi
6193 rm -f conftest.val
6194        eval gl_cv_bitsizeof_${gltype}=\$result
6195
6196 fi
6197 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6198 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6199     eval result=\$gl_cv_bitsizeof_${gltype}
6200     if test $result = unknown; then
6201                                                 result=0
6202     fi
6203     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6204     cat >>confdefs.h <<_ACEOF
6205 #define BITSIZEOF_${GLTYPE} $result
6206 _ACEOF
6207
6208     eval BITSIZEOF_${GLTYPE}=\$result
6209   done
6210
6211
6212
6213
6214
6215
6216
6217   for gltype in sig_atomic_t wchar_t wint_t ; do
6218     echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6219 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6220 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229
6230   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6231      included before <wchar.h>.  */
6232   #include <stddef.h>
6233   #include <signal.h>
6234   #if HAVE_WCHAR_H
6235   # include <stdio.h>
6236   # include <time.h>
6237   # include <wchar.h>
6238   #endif
6239
6240             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6241 int
6242 main ()
6243 {
6244
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251   (eval $ac_compile) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag"
6259                          || test ! -s conftest.err'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } &&
6265          { ac_try='test -s conftest.$ac_objext'
6266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267   (eval $ac_try) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; }; then
6271   result=yes
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 result=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279        eval gl_cv_type_${gltype}_signed=\$result
6280
6281 fi
6282 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6284     eval result=\$gl_cv_type_${gltype}_signed
6285     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6286     if test "$result" = yes; then
6287       cat >>confdefs.h <<_ACEOF
6288 #define HAVE_SIGNED_${GLTYPE} 1
6289 _ACEOF
6290
6291       eval HAVE_SIGNED_${GLTYPE}=1
6292     else
6293       eval HAVE_SIGNED_${GLTYPE}=0
6294     fi
6295   done
6296
6297
6298   gl_cv_type_ptrdiff_t_signed=yes
6299   gl_cv_type_size_t_signed=no
6300
6301
6302
6303
6304
6305
6306
6307   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6308     echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6309 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6310 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   eval gl_cv_type_${gltype}_suffix=no
6314        eval result=\$gl_cv_type_${gltype}_signed
6315        if test "$result" = yes; then
6316          glsufu=
6317        else
6318          glsufu=u
6319        fi
6320        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6321          case $glsuf in
6322            '')  gltype1='int';;
6323            l)   gltype1='long int';;
6324            ll)  gltype1='long long int';;
6325            i64) gltype1='__int64';;
6326            u)   gltype1='unsigned int';;
6327            ul)  gltype1='unsigned long int';;
6328            ull) gltype1='unsigned long long int';;
6329            ui64)gltype1='unsigned __int64';;
6330          esac
6331          cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337
6338   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6339      included before <wchar.h>.  */
6340   #include <stddef.h>
6341   #include <signal.h>
6342   #if HAVE_WCHAR_H
6343   # include <stdio.h>
6344   # include <time.h>
6345   # include <wchar.h>
6346   #endif
6347
6348               extern $gltype foo;
6349               extern $gltype1 foo;
6350 int
6351 main ()
6352 {
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360   (eval $ac_compile) 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } &&
6367          { ac_try='test -z "$ac_c_werror_flag"
6368                          || test ! -s conftest.err'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; } &&
6374          { ac_try='test -s conftest.$ac_objext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   eval gl_cv_type_${gltype}_suffix=\$glsuf
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387          eval result=\$gl_cv_type_${gltype}_suffix
6388          test "$result" != no && break
6389        done
6390 fi
6391 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6393     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6394     eval result=\$gl_cv_type_${gltype}_suffix
6395     test "$result" = no && result=
6396     eval ${GLTYPE}_SUFFIX=\$result
6397     cat >>confdefs.h <<_ACEOF
6398 #define ${GLTYPE}_SUFFIX $result
6399 _ACEOF
6400
6401   done
6402
6403
6404
6405     STDINT_H=stdint.h
6406   fi
6407
6408
6409
6410
6411
6412
6413
6414   echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6415 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6416 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   cat >conftest.$ac_ext <<_ACEOF
6420 #include <wchar.h>
6421 wchar_t w;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"
6433                          || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest.$ac_objext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   gl_cv_header_wchar_h_standalone=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 gl_cv_header_wchar_h_standalone=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6455 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6456   if test $gl_cv_header_wchar_h_standalone != yes; then
6457     WCHAR_H=wchar.h
6458   fi
6459
6460
6461   :
6462
6463
6464
6465
6466
6467   if test $ac_cv_header_wchar_h = yes; then
6468     HAVE_WCHAR_H=1
6469   else
6470     HAVE_WCHAR_H=0
6471   fi
6472
6473
6474
6475
6476   :
6477
6478
6479
6480
6481
6482
6483
6484      if test $gl_cv_have_include_next = yes; then
6485        gl_cv_next_wchar_h='<'wchar.h'>'
6486      else
6487        echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6488 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6489 if test "${gl_cv_next_wchar_h+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492
6493           if test $ac_cv_header_wchar_h = yes; then
6494             cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <wchar.h>
6501
6502 _ACEOF
6503                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504                sed -n '\#/wchar.h#{
6505                  s#.*"\(.*/wchar.h\)".*#\1#
6506                  s#^/[^/]#//&#
6507                  p
6508                  q
6509                }'`'"'
6510           else
6511             gl_cv_next_wchar_h='<'wchar.h'>'
6512           fi
6513
6514 fi
6515 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6516 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6517      fi
6518      NEXT_WCHAR_H=$gl_cv_next_wchar_h
6519
6520
6521
6522
6523
6524
6525
6526
6527   gltests_libdeps=
6528   gltests_ltlibdeps=
6529
6530
6531
6532   gl_source_base='tests'
6533
6534
6535
6536
6537   LIBGNU_LIBDEPS="$gl_libdeps"
6538
6539   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6540
6541
6542
6543 # For Makefile dependencies.
6544 GNULIB_STDINT_H=
6545 if test x"$STDINT_H" != x; then
6546   GNULIB_STDINT_H=gnulib/$STDINT_H
6547 fi
6548
6549
6550 PACKAGE=gdb
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define PACKAGE "$PACKAGE"
6554 _ACEOF
6555
6556
6557
6558 # GDB does not use automake, but gnulib does.  This line lets us
6559 # generate its Makefile.in.
6560 am__api_version="1.9"
6561 # Find a good install program.  We prefer a C program (faster),
6562 # so one script is as good as another.  But avoid the broken or
6563 # incompatible versions:
6564 # SysV /etc/install, /usr/sbin/install
6565 # SunOS /usr/etc/install
6566 # IRIX /sbin/install
6567 # AIX /bin/install
6568 # AmigaOS /C/install, which installs bootblocks on floppy discs
6569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6572 # OS/2's system install, which has a completely different semantic
6573 # ./install, which can be erroneously created by make from ./install.sh.
6574 # Reject install programs that cannot install multiple files.
6575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6577 if test -z "$INSTALL"; then
6578 if test "${ac_cv_path_install+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   # Account for people who put trailing slashes in PATH elements.
6587 case $as_dir/ in
6588   ./ | .// | /cC/* | \
6589   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6590   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6591   /usr/ucb/* ) ;;
6592   *)
6593     # OSF1 and SCO ODT 3.0 have their own names for install.
6594     # Don't use installbsd from OSF since it installs stuff as root
6595     # by default.
6596     for ac_prog in ginstall scoinst install; do
6597       for ac_exec_ext in '' $ac_executable_extensions; do
6598         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6599           if test $ac_prog = install &&
6600             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6601             # AIX install.  It has an incompatible calling convention.
6602             :
6603           elif test $ac_prog = install &&
6604             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6605             # program-specific install script used by HP pwplus--don't use.
6606             :
6607           else
6608             rm -rf conftest.one conftest.two conftest.dir
6609             echo one > conftest.one
6610             echo two > conftest.two
6611             mkdir conftest.dir
6612             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6613               test -s conftest.one && test -s conftest.two &&
6614               test -s conftest.dir/conftest.one &&
6615               test -s conftest.dir/conftest.two
6616             then
6617               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6618               break 3
6619             fi
6620           fi
6621         fi
6622       done
6623     done
6624     ;;
6625 esac
6626 done
6627
6628 rm -rf conftest.one conftest.two conftest.dir
6629
6630 fi
6631   if test "${ac_cv_path_install+set}" = set; then
6632     INSTALL=$ac_cv_path_install
6633   else
6634     # As a last resort, use the slow shell script.  Don't cache a
6635     # value for INSTALL within a source directory, because that will
6636     # break other packages using the cache if that directory is
6637     # removed, or if the value is a relative name.
6638     INSTALL=$ac_install_sh
6639   fi
6640 fi
6641 echo "$as_me:$LINENO: result: $INSTALL" >&5
6642 echo "${ECHO_T}$INSTALL" >&6
6643
6644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6645 # It thinks the first close brace ends the variable substitution.
6646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6647
6648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6649
6650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6651
6652 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6653 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6654 # Just in case
6655 sleep 1
6656 echo timestamp > conftest.file
6657 # Do `set' in a subshell so we don't clobber the current shell's
6658 # arguments.  Must try -L first in case configure is actually a
6659 # symlink; some systems play weird games with the mod time of symlinks
6660 # (eg FreeBSD returns the mod time of the symlink's containing
6661 # directory).
6662 if (
6663    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6664    if test "$*" = "X"; then
6665       # -L didn't work.
6666       set X `ls -t $srcdir/configure conftest.file`
6667    fi
6668    rm -f conftest.file
6669    if test "$*" != "X $srcdir/configure conftest.file" \
6670       && test "$*" != "X conftest.file $srcdir/configure"; then
6671
6672       # If neither matched, then we have a broken ls.  This can happen
6673       # if, for instance, CONFIG_SHELL is bash and it inherits a
6674       # broken ls alias from the environment.  This has actually
6675       # happened.  Such a system could not be considered "sane".
6676       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6677 alias in your environment" >&5
6678 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6679 alias in your environment" >&2;}
6680    { (exit 1); exit 1; }; }
6681    fi
6682
6683    test "$2" = conftest.file
6684    )
6685 then
6686    # Ok.
6687    :
6688 else
6689    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6690 Check your system clock" >&5
6691 echo "$as_me: error: newly created file is older than distributed files!
6692 Check your system clock" >&2;}
6693    { (exit 1); exit 1; }; }
6694 fi
6695 echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6697 test "$program_prefix" != NONE &&
6698   program_transform_name="s,^,$program_prefix,;$program_transform_name"
6699 # Use a double $ so make ignores it.
6700 test "$program_suffix" != NONE &&
6701   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6702 # Double any \ or $.  echo might interpret backslashes.
6703 # By default was `s,x,x', remove it if useless.
6704 cat <<\_ACEOF >conftest.sed
6705 s/[\\$]/&&/g;s/;s,x,x,$//
6706 _ACEOF
6707 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6708 rm conftest.sed
6709
6710 # expand $ac_aux_dir to an absolute path
6711 am_aux_dir=`cd $ac_aux_dir && pwd`
6712
6713 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6714 # Use eval to expand $SHELL
6715 if eval "$MISSING --run true"; then
6716   am_missing_run="$MISSING --run "
6717 else
6718   am_missing_run=
6719   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6720 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6721 fi
6722
6723 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6724   # We used to keeping the `.' as first argument, in order to
6725   # allow $(mkdir_p) to be used without argument.  As in
6726   #   $(mkdir_p) $(somedir)
6727   # where $(somedir) is conditionally defined.  However this is wrong
6728   # for two reasons:
6729   #  1. if the package is installed by a user who cannot write `.'
6730   #     make install will fail,
6731   #  2. the above comment should most certainly read
6732   #     $(mkdir_p) $(DESTDIR)$(somedir)
6733   #     so it does not work when $(somedir) is undefined and
6734   #     $(DESTDIR) is not.
6735   #  To support the latter case, we have to write
6736   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6737   #  so the `.' trick is pointless.
6738   mkdir_p='mkdir -p --'
6739 else
6740   # On NextStep and OpenStep, the `mkdir' command does not
6741   # recognize any option.  It will interpret all options as
6742   # directories to create, and then abort because `.' already
6743   # exists.
6744   for d in ./-p ./--version;
6745   do
6746     test -d $d && rmdir $d
6747   done
6748   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6749   if test -f "$ac_aux_dir/mkinstalldirs"; then
6750     mkdir_p='$(mkinstalldirs)'
6751   else
6752     mkdir_p='$(install_sh) -d'
6753   fi
6754 fi
6755
6756 for ac_prog in gawk mawk nawk awk
6757 do
6758   # Extract the first word of "$ac_prog", so it can be a program name with args.
6759 set dummy $ac_prog; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_AWK+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$AWK"; then
6766   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775     ac_cv_prog_AWK="$ac_prog"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781
6782 fi
6783 fi
6784 AWK=$ac_cv_prog_AWK
6785 if test -n "$AWK"; then
6786   echo "$as_me:$LINENO: result: $AWK" >&5
6787 echo "${ECHO_T}$AWK" >&6
6788 else
6789   echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6
6791 fi
6792
6793   test -n "$AWK" && break
6794 done
6795
6796           ac_config_commands="$ac_config_commands depfiles"
6797
6798
6799 am_make=${MAKE-make}
6800 cat > confinc << 'END'
6801 am__doit:
6802         @echo done
6803 .PHONY: am__doit
6804 END
6805 # If we don't find an include directive, just comment out the code.
6806 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6807 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6808 am__include="#"
6809 am__quote=
6810 _am_result=none
6811 # First try GNU make style include.
6812 echo "include confinc" > confmf
6813 # We grep out `Entering directory' and `Leaving directory'
6814 # messages which can occur if `w' ends up in MAKEFLAGS.
6815 # In particular we don't look at `^make:' because GNU make might
6816 # be invoked under some other name (usually "gmake"), in which
6817 # case it prints its new name instead of `make'.
6818 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6819    am__include=include
6820    am__quote=
6821    _am_result=GNU
6822 fi
6823 # Now try BSD make style include.
6824 if test "$am__include" = "#"; then
6825    echo '.include "confinc"' > confmf
6826    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6827       am__include=.include
6828       am__quote="\""
6829       _am_result=BSD
6830    fi
6831 fi
6832
6833
6834 echo "$as_me:$LINENO: result: $_am_result" >&5
6835 echo "${ECHO_T}$_am_result" >&6
6836 rm -f confinc confmf
6837
6838 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6839 if test "${enable_dependency_tracking+set}" = set; then
6840   enableval="$enable_dependency_tracking"
6841
6842 fi;
6843 if test "x$enable_dependency_tracking" != xno; then
6844   am_depcomp="$ac_aux_dir/depcomp"
6845   AMDEPBACKSLASH='\'
6846 fi
6847
6848
6849 if test "x$enable_dependency_tracking" != xno; then
6850   AMDEP_TRUE=
6851   AMDEP_FALSE='#'
6852 else
6853   AMDEP_TRUE='#'
6854   AMDEP_FALSE=
6855 fi
6856
6857
6858
6859 # test to see if srcdir already configured
6860 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6861    test -f $srcdir/config.status; then
6862   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6863 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6864    { (exit 1); exit 1; }; }
6865 fi
6866
6867 # test whether we have cygpath
6868 if test -z "$CYGPATH_W"; then
6869   if (cygpath --version) >/dev/null 2>/dev/null; then
6870     CYGPATH_W='cygpath -w'
6871   else
6872     CYGPATH_W=echo
6873   fi
6874 fi
6875
6876
6877 # Define the identity of the package.
6878  PACKAGE=gdb
6879  VERSION=UNUSED-VERSION
6880
6881
6882 # Some tools Automake needs.
6883
6884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6885
6886
6887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6888
6889
6890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6891
6892
6893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6894
6895
6896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6897
6898 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6899
6900 # Installed binaries are usually stripped using `strip' when the user
6901 # run `make install-strip'.  However `strip' might not be the right
6902 # tool to use in cross-compilation environments, therefore Automake
6903 # will honor the `STRIP' environment variable to overrule this program.
6904 if test "$cross_compiling" != no; then
6905   if test -n "$ac_tool_prefix"; then
6906   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}strip; ac_word=$2
6908 echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6910 if test "${ac_cv_prog_STRIP+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   if test -n "$STRIP"; then
6914   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929
6930 fi
6931 fi
6932 STRIP=$ac_cv_prog_STRIP
6933 if test -n "$STRIP"; then
6934   echo "$as_me:$LINENO: result: $STRIP" >&5
6935 echo "${ECHO_T}$STRIP" >&6
6936 else
6937   echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6939 fi
6940
6941 fi
6942 if test -z "$ac_cv_prog_STRIP"; then
6943   ac_ct_STRIP=$STRIP
6944   # Extract the first word of "strip", so it can be a program name with args.
6945 set dummy strip; ac_word=$2
6946 echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   if test -n "$ac_ct_STRIP"; then
6952   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961     ac_cv_prog_ac_ct_STRIP="strip"
6962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967
6968   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6969 fi
6970 fi
6971 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6972 if test -n "$ac_ct_STRIP"; then
6973   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6974 echo "${ECHO_T}$ac_ct_STRIP" >&6
6975 else
6976   echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978 fi
6979
6980   STRIP=$ac_ct_STRIP
6981 else
6982   STRIP="$ac_cv_prog_STRIP"
6983 fi
6984
6985 fi
6986 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6987
6988 # We need awk for the "check" target.  The system "awk" is bad on
6989 # some platforms.
6990 # Always define AMTAR for backward compatibility.
6991
6992 AMTAR=${AMTAR-"${am_missing_run}tar"}
6993
6994 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6995
6996
6997
6998
6999 depcc="$CC"   am_compiler_list=
7000
7001 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7007   # We make a subdir and do the tests there.  Otherwise we can end up
7008   # making bogus files that we don't know about and never remove.  For
7009   # instance it was reported that on HP-UX the gcc test will end up
7010   # making a dummy file named `D' -- because `-MD' means `put the output
7011   # in D'.
7012   mkdir conftest.dir
7013   # Copy depcomp to subdir because otherwise we won't find it if we're
7014   # using a relative directory.
7015   cp "$am_depcomp" conftest.dir
7016   cd conftest.dir
7017   # We will build objects and dependencies in a subdirectory because
7018   # it helps to detect inapplicable dependency modes.  For instance
7019   # both Tru64's cc and ICC support -MD to output dependencies as a
7020   # side effect of compilation, but ICC will put the dependencies in
7021   # the current directory while Tru64 will put them in the object
7022   # directory.
7023   mkdir sub
7024
7025   am_cv_CC_dependencies_compiler_type=none
7026   if test "$am_compiler_list" = ""; then
7027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7028   fi
7029   for depmode in $am_compiler_list; do
7030     # Setup a source with many dependencies, because some compilers
7031     # like to wrap large dependency lists on column 80 (with \), and
7032     # we should not choose a depcomp mode which is confused by this.
7033     #
7034     # We need to recreate these files for each test, as the compiler may
7035     # overwrite some of them when testing with obscure command lines.
7036     # This happens at least with the AIX C compiler.
7037     : > sub/conftest.c
7038     for i in 1 2 3 4 5 6; do
7039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7040       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7041       # Solaris 8's {/usr,}/bin/sh.
7042       touch sub/conftst$i.h
7043     done
7044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7045
7046     case $depmode in
7047     nosideeffect)
7048       # after this tag, mechanisms are not by side-effect, so they'll
7049       # only be used when explicitly requested
7050       if test "x$enable_dependency_tracking" = xyes; then
7051         continue
7052       else
7053         break
7054       fi
7055       ;;
7056     none) break ;;
7057     esac
7058     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7059     # mode.  It turns out that the SunPro C++ compiler does not properly
7060     # handle `-M -o', and we need to detect this.
7061     if depmode=$depmode \
7062        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7063        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7064        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7065          >/dev/null 2>conftest.err &&
7066        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7067        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7068        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7069       # icc doesn't choke on unknown options, it will just issue warnings
7070       # or remarks (even with -Werror).  So we grep stderr for any message
7071       # that says an option was ignored or not supported.
7072       # When given -MP, icc 7.0 and 7.1 complain thusly:
7073       #   icc: Command line warning: ignoring option '-M'; no argument required
7074       # The diagnosis changed in icc 8.0:
7075       #   icc: Command line remark: option '-MP' not supported
7076       if (grep 'ignoring option' conftest.err ||
7077           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7078         am_cv_CC_dependencies_compiler_type=$depmode
7079         break
7080       fi
7081     fi
7082   done
7083
7084   cd ..
7085   rm -rf conftest.dir
7086 else
7087   am_cv_CC_dependencies_compiler_type=none
7088 fi
7089
7090 fi
7091 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7094
7095
7096
7097 if
7098   test "x$enable_dependency_tracking" != xno \
7099   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7100   am__fastdepCC_TRUE=
7101   am__fastdepCC_FALSE='#'
7102 else
7103   am__fastdepCC_TRUE='#'
7104   am__fastdepCC_FALSE=
7105 fi
7106
7107
7108
7109
7110
7111
7112 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7113 if test "${with_separate_debug_dir+set}" = set; then
7114   withval="$with_separate_debug_dir"
7115
7116     DEBUGDIR=$withval
7117 else
7118   DEBUGDIR=${libdir}/debug
7119 fi;
7120
7121   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7122   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7123   ac_define_dir=`eval echo $DEBUGDIR`
7124   ac_define_dir=`eval echo $ac_define_dir`
7125
7126 cat >>confdefs.h <<_ACEOF
7127 #define DEBUGDIR "$ac_define_dir"
7128 _ACEOF
7129
7130
7131
7132   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7133      if test "x$prefix" = xNONE; then
7134         test_prefix=/usr/local
7135      else
7136         test_prefix=$prefix
7137      fi
7138   else
7139      test_prefix=$exec_prefix
7140   fi
7141   value=0
7142   case ${ac_define_dir} in
7143      "${test_prefix}"|"${test_prefix}/"*|\
7144         '${exec_prefix}'|'${exec_prefix}/'*)
7145      value=1
7146      ;;
7147   esac
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define DEBUGDIR_RELOCATABLE $value
7151 _ACEOF
7152
7153
7154
7155 # GDB's datadir relocation
7156
7157
7158
7159 # Check whether --with-gdb-datadir or --without-gdb-datadir was given.
7160 if test "${with_gdb_datadir+set}" = set; then
7161   withval="$with_gdb_datadir"
7162
7163     GDB_DATADIR=$withval
7164 else
7165   GDB_DATADIR=${datadir}/gdb
7166 fi;
7167
7168   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7169   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7170   ac_define_dir=`eval echo $GDB_DATADIR`
7171   ac_define_dir=`eval echo $ac_define_dir`
7172
7173 cat >>confdefs.h <<_ACEOF
7174 #define GDB_DATADIR "$ac_define_dir"
7175 _ACEOF
7176
7177
7178
7179   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7180      if test "x$prefix" = xNONE; then
7181         test_prefix=/usr/local
7182      else
7183         test_prefix=$prefix
7184      fi
7185   else
7186      test_prefix=$exec_prefix
7187   fi
7188   value=0
7189   case ${ac_define_dir} in
7190      "${test_prefix}"|"${test_prefix}/"*|\
7191         '${exec_prefix}'|'${exec_prefix}/'*)
7192      value=1
7193      ;;
7194   esac
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define GDB_DATADIR_RELOCATABLE $value
7198 _ACEOF
7199
7200
7201
7202
7203 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7204 if test "${with_relocated_sources+set}" = set; then
7205   withval="$with_relocated_sources"
7206   reloc_srcdir="${withval}"
7207
7208   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7209   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7210   ac_define_dir=`eval echo $reloc_srcdir`
7211   ac_define_dir=`eval echo $ac_define_dir`
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define RELOC_SRCDIR "$ac_define_dir"
7215 _ACEOF
7216
7217
7218
7219 fi;
7220
7221
7222
7223 subdirs="$subdirs doc testsuite"
7224
7225
7226 # Check whether to support alternative target configurations
7227 # Check whether --enable-targets or --disable-targets was given.
7228 if test "${enable_targets+set}" = set; then
7229   enableval="$enable_targets"
7230   case "${enableval}" in
7231   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7232 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7233    { (exit 1); exit 1; }; }
7234             ;;
7235   no)       enable_targets= ;;
7236   *)        enable_targets=$enableval ;;
7237 esac
7238 fi;
7239
7240 # Check whether to enable 64-bit support on 32-bit hosts
7241 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7242 if test "${enable_64_bit_bfd+set}" = set; then
7243   enableval="$enable_64_bit_bfd"
7244   case "${enableval}" in
7245   yes)  want64=true  ;;
7246   no)   want64=false ;;
7247   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7248 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7249    { (exit 1); exit 1; }; } ;;
7250 esac
7251 else
7252   want64=false
7253 fi;
7254 # Provide defaults for some variables set by the per-host and per-target
7255 # configuration.
7256 gdb_host_obs=posix-hdep.o
7257
7258 if test "${target}" = "${host}"; then
7259   gdb_native=yes
7260 else
7261   gdb_native=no
7262 fi
7263
7264 . $srcdir/configure.host
7265
7266 # Accumulate some settings from configure.tgt over all enabled targets
7267
7268 TARGET_OBS=
7269 all_targets=
7270
7271 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7272 do
7273   if test "$targ_alias" = "all"; then
7274     all_targets=true
7275   else
7276     # Canonicalize the secondary target names.
7277     result=`$ac_config_sub $targ_alias 2>/dev/null`
7278     if test -n "$result"; then
7279         targ=$result
7280     else
7281         targ=$targ_alias
7282     fi
7283
7284     . ${srcdir}/configure.tgt
7285
7286     # Target-specific object files
7287     for i in ${gdb_target_obs}; do
7288         case " $TARGET_OBS " in
7289         *" ${i} "*) ;;
7290         *)
7291           TARGET_OBS="$TARGET_OBS ${i}"
7292           ;;
7293         esac
7294     done
7295
7296     # Check whether this target needs 64-bit CORE_ADDR
7297     if test x${want64} = xfalse; then
7298       . ${srcdir}/../bfd/config.bfd
7299     fi
7300   fi
7301 done
7302
7303 if test x${all_targets} = xtrue; then
7304
7305   # We want all 64-bit targets if we either:
7306   #  - run on a 64-bit host  or
7307   #  - already require 64-bit support for some other target  or
7308   #  - the --enable-64-bit-bfd option was supplied
7309   # Otherwise we only support all 32-bit targets.
7310   #
7311   # NOTE: This test must be in sync with the corresponding
7312   #       tests in BFD!
7313
7314   if test x${want64} = xfalse; then
7315     echo "$as_me:$LINENO: checking for long" >&5
7316 echo $ECHO_N "checking for long... $ECHO_C" >&6
7317 if test "${ac_cv_type_long+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326 $ac_includes_default
7327 int
7328 main ()
7329 {
7330 if ((long *) 0)
7331   return 0;
7332 if (sizeof (long))
7333   return 0;
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } &&
7347          { ac_try='test -z "$ac_c_werror_flag"
7348                          || test ! -s conftest.err'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; } &&
7354          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7360   ac_cv_type_long=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_cv_type_long=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_long" >&6
7371
7372 echo "$as_me:$LINENO: checking size of long" >&5
7373 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7374 if test "${ac_cv_sizeof_long+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   if test "$ac_cv_type_long" = yes; then
7378   # The cast to unsigned long works around a bug in the HP C Compiler
7379   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7380   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7381   # This bug is HP SR number 8606223364.
7382   if test "$cross_compiling" = yes; then
7383   # Depending upon the size, compute the lo and hi bounds.
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h.  */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h.  */
7390 $ac_includes_default
7391 int
7392 main ()
7393 {
7394 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7395 test_array [0] = 0
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403   (eval $ac_compile) 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -z "$ac_c_werror_flag"
7411                          || test ! -s conftest.err'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; } &&
7417          { ac_try='test -s conftest.$ac_objext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   ac_lo=0 ac_mid=0
7424   while :; do
7425     cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431 $ac_includes_default
7432 int
7433 main ()
7434 {
7435 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7436 test_array [0] = 0
7437
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (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=$ac_mid; break
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_lo=`expr $ac_mid + 1`
7470                     if test $ac_lo -le $ac_mid; then
7471                       ac_lo= ac_hi=
7472                       break
7473                     fi
7474                     ac_mid=`expr 2 '*' $ac_mid + 1`
7475 fi
7476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7477   done
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h.  */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h.  */
7488 $ac_includes_default
7489 int
7490 main ()
7491 {
7492 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7493 test_array [0] = 0
7494
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501   (eval $ac_compile) 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } &&
7508          { ac_try='test -z "$ac_c_werror_flag"
7509                          || test ! -s conftest.err'
7510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511   (eval $ac_try) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; } &&
7515          { ac_try='test -s conftest.$ac_objext'
7516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517   (eval $ac_try) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); }; }; then
7521   ac_hi=-1 ac_mid=-1
7522   while :; do
7523     cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7529 $ac_includes_default
7530 int
7531 main ()
7532 {
7533 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7534 test_array [0] = 0
7535
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>conftest.er1
7543   ac_status=$?
7544   grep -v '^ *+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } &&
7549          { ac_try='test -z "$ac_c_werror_flag"
7550                          || test ! -s conftest.err'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; } &&
7556          { ac_try='test -s conftest.$ac_objext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   ac_lo=$ac_mid; break
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_hi=`expr '(' $ac_mid ')' - 1`
7568                        if test $ac_mid -le $ac_hi; then
7569                          ac_lo= ac_hi=
7570                          break
7571                        fi
7572                        ac_mid=`expr 2 '*' $ac_mid`
7573 fi
7574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575   done
7576 else
7577   echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_lo= ac_hi=
7581 fi
7582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 # Binary search between lo and hi bounds.
7586 while test "x$ac_lo" != "x$ac_hi"; do
7587   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 $ac_includes_default
7595 int
7596 main ()
7597 {
7598 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7599 test_array [0] = 0
7600
7601   ;
7602   return 0;
7603 }
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607   (eval $ac_compile) 2>conftest.er1
7608   ac_status=$?
7609   grep -v '^ *+' conftest.er1 >conftest.err
7610   rm -f conftest.er1
7611   cat conftest.err >&5
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); } &&
7614          { ac_try='test -z "$ac_c_werror_flag"
7615                          || test ! -s conftest.err'
7616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617   (eval $ac_try) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; } &&
7621          { ac_try='test -s conftest.$ac_objext'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; }; then
7627   ac_hi=$ac_mid
7628 else
7629   echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7631
7632 ac_lo=`expr '(' $ac_mid ')' + 1`
7633 fi
7634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7635 done
7636 case $ac_lo in
7637 ?*) ac_cv_sizeof_long=$ac_lo;;
7638 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7639 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7641 See \`config.log' for more details." >&5
7642 echo "$as_me: error: cannot compute sizeof (long), 77
7643 See \`config.log' for more details." >&2;}
7644    { (exit 1); exit 1; }; }; } ;;
7645 esac
7646 else
7647   if test "$cross_compiling" = yes; then
7648   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7649 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7651 See \`config.log' for more details." >&5
7652 echo "$as_me: error: cannot run test program while cross compiling
7653 See \`config.log' for more details." >&2;}
7654    { (exit 1); exit 1; }; }; }
7655 else
7656   cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662 $ac_includes_default
7663 long longval () { return (long) (sizeof (long)); }
7664 unsigned long ulongval () { return (long) (sizeof (long)); }
7665 #include <stdio.h>
7666 #include <stdlib.h>
7667 int
7668 main ()
7669 {
7670
7671   FILE *f = fopen ("conftest.val", "w");
7672   if (! f)
7673     exit (1);
7674   if (((long) (sizeof (long))) < 0)
7675     {
7676       long i = longval ();
7677       if (i != ((long) (sizeof (long))))
7678         exit (1);
7679       fprintf (f, "%ld\n", i);
7680     }
7681   else
7682     {
7683       unsigned long i = ulongval ();
7684       if (i != ((long) (sizeof (long))))
7685         exit (1);
7686       fprintf (f, "%lu\n", i);
7687     }
7688   exit (ferror (f) || fclose (f) != 0);
7689
7690   ;
7691   return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696   (eval $ac_link) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; }; then
7705   ac_cv_sizeof_long=`cat conftest.val`
7706 else
7707   echo "$as_me: program exited with status $ac_status" >&5
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ( exit $ac_status )
7712 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7713 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7715 See \`config.log' for more details." >&5
7716 echo "$as_me: error: cannot compute sizeof (long), 77
7717 See \`config.log' for more details." >&2;}
7718    { (exit 1); exit 1; }; }; }
7719 fi
7720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 fi
7723 rm -f conftest.val
7724 else
7725   ac_cv_sizeof_long=0
7726 fi
7727 fi
7728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7730 cat >>confdefs.h <<_ACEOF
7731 #define SIZEOF_LONG $ac_cv_sizeof_long
7732 _ACEOF
7733
7734
7735     if test "x${ac_cv_sizeof_long}" = "x8"; then
7736       want64=true
7737     fi
7738   fi
7739   if test x${want64} = xtrue; then
7740     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7741   else
7742     TARGET_OBS='$(ALL_TARGET_OBS)'
7743   fi
7744 fi
7745
7746
7747
7748 # For other settings, only the main target counts.
7749 gdb_sim=
7750 gdb_osabi=
7751 build_gdbserver=
7752 targ=$target; . ${srcdir}/configure.tgt
7753
7754 # Fetch the default architecture and default target vector from BFD.
7755 targ=$target; . $srcdir/../bfd/config.bfd
7756
7757 # We only want the first architecture, so strip off the others if
7758 # there is more than one.
7759 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7760
7761 if test "x$targ_archs" != x; then
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define DEFAULT_BFD_ARCH $targ_archs
7765 _ACEOF
7766
7767 fi
7768 if test "x$targ_defvec" != x; then
7769
7770 cat >>confdefs.h <<_ACEOF
7771 #define DEFAULT_BFD_VEC $targ_defvec
7772 _ACEOF
7773
7774 fi
7775
7776 # The CLI cannot be disabled yet, but may be in the future.
7777
7778 # Enable CLI.
7779 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7780 if test "${enable_gdbcli+set}" = set; then
7781   enableval="$enable_gdbcli"
7782   case $enableval in
7783     yes)
7784       ;;
7785     no)
7786       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7787 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7788    { (exit 1); exit 1; }; } ;;
7789     *)
7790       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7791 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7792    { (exit 1); exit 1; }; } ;;
7793   esac
7794 else
7795   enable_gdbcli=yes
7796 fi;
7797 if test x"$enable_gdbcli" = xyes; then
7798   if test -d $srcdir/cli; then
7799     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7800     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7801     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7802     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7803   fi
7804 fi
7805
7806 # Enable MI.
7807 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7808 if test "${enable_gdbmi+set}" = set; then
7809   enableval="$enable_gdbmi"
7810   case $enableval in
7811     yes | no)
7812       ;;
7813     *)
7814       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7815 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7816    { (exit 1); exit 1; }; } ;;
7817   esac
7818 else
7819   enable_gdbmi=yes
7820 fi;
7821 if test x"$enable_gdbmi" = xyes; then
7822   if test -d $srcdir/mi; then
7823     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7824     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7825     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7826     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7827   fi
7828 fi
7829
7830 # Enable TUI.
7831 # Check whether --enable-tui or --disable-tui was given.
7832 if test "${enable_tui+set}" = set; then
7833   enableval="$enable_tui"
7834   case $enableval in
7835     yes | no | auto)
7836       ;;
7837     *)
7838       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7839 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7840    { (exit 1); exit 1; }; } ;;
7841   esac
7842 else
7843   enable_tui=auto
7844 fi;
7845
7846 # Enable gdbtk.
7847 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7848 if test "${enable_gdbtk+set}" = set; then
7849   enableval="$enable_gdbtk"
7850   case $enableval in
7851     yes | no)
7852       ;;
7853     *)
7854       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7855 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7856    { (exit 1); exit 1; }; } ;;
7857   esac
7858 else
7859   if test -d $srcdir/gdbtk; then
7860     enable_gdbtk=yes
7861   else
7862     enable_gdbtk=no
7863   fi
7864 fi;
7865 # We unconditionally disable gdbtk tests on selected platforms.
7866 case $host_os in
7867   go32* | windows*)
7868     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7869 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7870     enable_gdbtk=no ;;
7871 esac
7872
7873 # Libunwind support.
7874
7875 # Check whether --with-libunwind or --without-libunwind was given.
7876 if test "${with_libunwind+set}" = set; then
7877   withval="$with_libunwind"
7878   case "${withval}" in
7879   yes)  enable_libunwind=yes ;;
7880   no)   enable_libunwind=no ;;
7881   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7882 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7883    { (exit 1); exit 1; }; } ;;
7884 esac
7885 else
7886
7887
7888
7889 for ac_header in libunwind.h libunwind-ia64.h
7890 do
7891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7893   echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 fi
7898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7900 else
7901   # Is the header compilable?
7902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910 $ac_includes_default
7911 #include <$ac_header>
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915   (eval $ac_compile) 2>conftest.er1
7916   ac_status=$?
7917   grep -v '^ *+' conftest.er1 >conftest.err
7918   rm -f conftest.er1
7919   cat conftest.err >&5
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); } &&
7922          { ac_try='test -z "$ac_c_werror_flag"
7923                          || test ! -s conftest.err'
7924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925   (eval $ac_try) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; } &&
7929          { ac_try='test -s conftest.$ac_objext'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   ac_header_compiler=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_header_compiler=no
7941 fi
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7944 echo "${ECHO_T}$ac_header_compiler" >&6
7945
7946 # Is the header present?
7947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 #include <$ac_header>
7956 _ACEOF
7957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7959   ac_status=$?
7960   grep -v '^ *+' conftest.er1 >conftest.err
7961   rm -f conftest.er1
7962   cat conftest.err >&5
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } >/dev/null; then
7965   if test -s conftest.err; then
7966     ac_cpp_err=$ac_c_preproc_warn_flag
7967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7968   else
7969     ac_cpp_err=
7970   fi
7971 else
7972   ac_cpp_err=yes
7973 fi
7974 if test -z "$ac_cpp_err"; then
7975   ac_header_preproc=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980   ac_header_preproc=no
7981 fi
7982 rm -f conftest.err conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7984 echo "${ECHO_T}$ac_header_preproc" >&6
7985
7986 # So?  What about this header?
7987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7988   yes:no: )
7989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7993     ac_header_preproc=yes
7994     ;;
7995   no:yes:* )
7996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8008     (
8009       cat <<\_ASBOX
8010 ## ------------------------------------------ ##
8011 ## Report this to the AC_PACKAGE_NAME lists.  ##
8012 ## ------------------------------------------ ##
8013 _ASBOX
8014     ) |
8015       sed "s/^/$as_me: WARNING:     /" >&2
8016     ;;
8017 esac
8018 echo "$as_me:$LINENO: checking for $ac_header" >&5
8019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   eval "$as_ac_Header=\$ac_header_preproc"
8024 fi
8025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8027
8028 fi
8029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8030   cat >>confdefs.h <<_ACEOF
8031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8032 _ACEOF
8033
8034 fi
8035
8036 done
8037
8038   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8039     enable_libunwind=yes;
8040   fi
8041
8042 fi;
8043
8044 if test x"$enable_libunwind" = xyes; then
8045
8046
8047 for ac_header in libunwind.h libunwind-ia64.h
8048 do
8049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8051   echo "$as_me:$LINENO: checking for $ac_header" >&5
8052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 fi
8056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8058 else
8059   # Is the header compilable?
8060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 $ac_includes_default
8069 #include <$ac_header>
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073   (eval $ac_compile) 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -z "$ac_c_werror_flag"
8081                          || test ! -s conftest.err'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; } &&
8087          { ac_try='test -s conftest.$ac_objext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   ac_header_compiler=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_header_compiler=no
8099 fi
8100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8102 echo "${ECHO_T}$ac_header_compiler" >&6
8103
8104 # Is the header present?
8105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113 #include <$ac_header>
8114 _ACEOF
8115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } >/dev/null; then
8123   if test -s conftest.err; then
8124     ac_cpp_err=$ac_c_preproc_warn_flag
8125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8126   else
8127     ac_cpp_err=
8128   fi
8129 else
8130   ac_cpp_err=yes
8131 fi
8132 if test -z "$ac_cpp_err"; then
8133   ac_header_preproc=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138   ac_header_preproc=no
8139 fi
8140 rm -f conftest.err conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8142 echo "${ECHO_T}$ac_header_preproc" >&6
8143
8144 # So?  What about this header?
8145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8146   yes:no: )
8147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8151     ac_header_preproc=yes
8152     ;;
8153   no:yes:* )
8154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8166     (
8167       cat <<\_ASBOX
8168 ## ------------------------------------------ ##
8169 ## Report this to the AC_PACKAGE_NAME lists.  ##
8170 ## ------------------------------------------ ##
8171 _ASBOX
8172     ) |
8173       sed "s/^/$as_me: WARNING:     /" >&2
8174     ;;
8175 esac
8176 echo "$as_me:$LINENO: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   eval "$as_ac_Header=\$ac_header_preproc"
8182 fi
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8185
8186 fi
8187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8188   cat >>confdefs.h <<_ACEOF
8189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LIBUNWIND 1
8199 _ACEOF
8200
8201   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8202   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8203   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8204 fi
8205
8206 opt_curses=no
8207
8208 # Check whether --with-curses or --without-curses was given.
8209 if test "${with_curses+set}" = set; then
8210   withval="$with_curses"
8211   opt_curses=$withval
8212 fi;
8213
8214 prefer_curses=no
8215 if test "$opt_curses" = "yes"; then
8216   prefer_curses=yes
8217 fi
8218
8219 # Profiling support.
8220 # Check whether --enable-profiling or --disable-profiling was given.
8221 if test "${enable_profiling+set}" = set; then
8222   enableval="$enable_profiling"
8223   case $enableval in
8224     yes | no)
8225       ;;
8226     *)
8227       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8228 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8229    { (exit 1); exit 1; }; } ;;
8230   esac
8231 else
8232   enable_profiling=no
8233 fi;
8234
8235
8236
8237 for ac_func in monstartup _mcleanup
8238 do
8239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8240 echo "$as_me:$LINENO: checking for $ac_func" >&5
8241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8242 if eval "test \"\${$as_ac_var+set}\" = set"; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8253 #define $ac_func innocuous_$ac_func
8254
8255 /* System header to define __stub macros and hopefully few prototypes,
8256     which can conflict with char $ac_func (); below.
8257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8258     <limits.h> exists even on freestanding compilers.  */
8259
8260 #ifdef __STDC__
8261 # include <limits.h>
8262 #else
8263 # include <assert.h>
8264 #endif
8265
8266 #undef $ac_func
8267
8268 /* Override any gcc2 internal prototype to avoid an error.  */
8269 #ifdef __cplusplus
8270 extern "C"
8271 {
8272 #endif
8273 /* We use char because int might match the return type of a gcc2
8274    builtin and then its argument prototype would still apply.  */
8275 char $ac_func ();
8276 /* The GNU C library defines this for functions which it implements
8277     to always fail with ENOSYS.  Some functions are actually named
8278     something starting with __ and the normal name is an alias.  */
8279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8280 choke me
8281 #else
8282 char (*f) () = $ac_func;
8283 #endif
8284 #ifdef __cplusplus
8285 }
8286 #endif
8287
8288 int
8289 main ()
8290 {
8291 return f != $ac_func;
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } &&
8305          { ac_try='test -z "$ac_c_werror_flag"
8306                          || test ! -s conftest.err'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest$ac_exeext'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   eval "$as_ac_var=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 eval "$as_ac_var=no"
8324 fi
8325 rm -f conftest.err conftest.$ac_objext \
8326       conftest$ac_exeext conftest.$ac_ext
8327 fi
8328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8330 if test `eval echo '${'$as_ac_var'}'` = yes; then
8331   cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 fi
8336 done
8337
8338 echo "$as_me:$LINENO: checking for _etext" >&5
8339 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8340 if test "${ac_cv_var__etext+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 #include <stdlib.h>
8350 extern char _etext;
8351
8352 int
8353 main ()
8354 {
8355 free (&_etext);
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -z "$ac_c_werror_flag"
8370                          || test ! -s conftest.err'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8382   ac_cv_var__etext=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_var__etext=no
8388 fi
8389 rm -f conftest.err conftest.$ac_objext \
8390       conftest$ac_exeext conftest.$ac_ext
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8393 echo "${ECHO_T}$ac_cv_var__etext" >&6
8394 if test $ac_cv_var__etext = yes; then
8395
8396 cat >>confdefs.h <<\_ACEOF
8397 #define HAVE__ETEXT 1
8398 _ACEOF
8399
8400 fi
8401 echo "$as_me:$LINENO: checking for etext" >&5
8402 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8403 if test "${ac_cv_var_etext+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 #include <stdlib.h>
8413 extern char etext;
8414
8415 int
8416 main ()
8417 {
8418 free (&etext);
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag"
8433                          || test ! -s conftest.err'
8434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435   (eval $ac_try) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; } &&
8439          { ac_try='test -s conftest$ac_exeext'
8440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441   (eval $ac_try) 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; }; then
8445   ac_cv_var_etext=yes
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_cv_var_etext=no
8451 fi
8452 rm -f conftest.err conftest.$ac_objext \
8453       conftest$ac_exeext conftest.$ac_ext
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8456 echo "${ECHO_T}$ac_cv_var_etext" >&6
8457 if test $ac_cv_var_etext = yes; then
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_ETEXT 1
8461 _ACEOF
8462
8463 fi
8464 if test "$enable_profiling" = yes ; then
8465   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8466     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8467 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8468    { (exit 1); exit 1; }; }
8469   fi
8470   PROFILE_CFLAGS=-pg
8471   OLD_CFLAGS="$CFLAGS"
8472   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8473
8474   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8475 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8476 if test "${ac_cv_cc_supports_pg+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485
8486 int
8487 main ()
8488 {
8489 int x;
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"
8504                          || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest.$ac_objext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_cc_supports_pg=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_cc_supports_pg=no
8522 fi
8523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8526 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8527
8528   if test $ac_cv_cc_supports_pg = no; then
8529     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8530 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8531    { (exit 1); exit 1; }; }
8532   fi
8533
8534   CFLAGS="$OLD_CFLAGS"
8535 fi
8536
8537
8538
8539 # Check whether --with-pkgversion or --without-pkgversion was given.
8540 if test "${with_pkgversion+set}" = set; then
8541   withval="$with_pkgversion"
8542   case "$withval" in
8543       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8544 echo "$as_me: error: package version not specified" >&2;}
8545    { (exit 1); exit 1; }; } ;;
8546       no)  PKGVERSION= ;;
8547       *)   PKGVERSION="($withval) " ;;
8548      esac
8549 else
8550   PKGVERSION="(GDB) "
8551
8552 fi;
8553
8554
8555
8556
8557 # Check whether --with-bugurl or --without-bugurl was given.
8558 if test "${with_bugurl+set}" = set; then
8559   withval="$with_bugurl"
8560   case "$withval" in
8561       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8562 echo "$as_me: error: bug URL not specified" >&2;}
8563    { (exit 1); exit 1; }; } ;;
8564       no)  BUGURL=
8565            ;;
8566       *)   BUGURL="$withval"
8567            ;;
8568      esac
8569 else
8570   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8571
8572 fi;
8573   case ${BUGURL} in
8574   "")
8575     REPORT_BUGS_TO=
8576     REPORT_BUGS_TEXI=
8577     ;;
8578   *)
8579     REPORT_BUGS_TO="<$BUGURL>"
8580     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8581     ;;
8582   esac;
8583
8584
8585
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define PKGVERSION "$PKGVERSION"
8589 _ACEOF
8590
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8594 _ACEOF
8595
8596
8597 # --------------------- #
8598 # Checks for programs.  #
8599 # --------------------- #
8600
8601 for ac_prog in gawk mawk nawk awk
8602 do
8603   # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 echo "$as_me:$LINENO: checking for $ac_word" >&5
8606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8607 if test "${ac_cv_prog_AWK+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   if test -n "$AWK"; then
8611   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616   IFS=$as_save_IFS
8617   test -z "$as_dir" && as_dir=.
8618   for ac_exec_ext in '' $ac_executable_extensions; do
8619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620     ac_cv_prog_AWK="$ac_prog"
8621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622     break 2
8623   fi
8624 done
8625 done
8626
8627 fi
8628 fi
8629 AWK=$ac_cv_prog_AWK
8630 if test -n "$AWK"; then
8631   echo "$as_me:$LINENO: result: $AWK" >&5
8632 echo "${ECHO_T}$AWK" >&6
8633 else
8634   echo "$as_me:$LINENO: result: no" >&5
8635 echo "${ECHO_T}no" >&6
8636 fi
8637
8638   test -n "$AWK" && break
8639 done
8640
8641 # Find a good install program.  We prefer a C program (faster),
8642 # so one script is as good as another.  But avoid the broken or
8643 # incompatible versions:
8644 # SysV /etc/install, /usr/sbin/install
8645 # SunOS /usr/etc/install
8646 # IRIX /sbin/install
8647 # AIX /bin/install
8648 # AmigaOS /C/install, which installs bootblocks on floppy discs
8649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8652 # OS/2's system install, which has a completely different semantic
8653 # ./install, which can be erroneously created by make from ./install.sh.
8654 # Reject install programs that cannot install multiple files.
8655 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8657 if test -z "$INSTALL"; then
8658 if test "${ac_cv_path_install+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666   # Account for people who put trailing slashes in PATH elements.
8667 case $as_dir/ in
8668   ./ | .// | /cC/* | \
8669   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8670   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8671   /usr/ucb/* ) ;;
8672   *)
8673     # OSF1 and SCO ODT 3.0 have their own names for install.
8674     # Don't use installbsd from OSF since it installs stuff as root
8675     # by default.
8676     for ac_prog in ginstall scoinst install; do
8677       for ac_exec_ext in '' $ac_executable_extensions; do
8678         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8679           if test $ac_prog = install &&
8680             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8681             # AIX install.  It has an incompatible calling convention.
8682             :
8683           elif test $ac_prog = install &&
8684             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8685             # program-specific install script used by HP pwplus--don't use.
8686             :
8687           else
8688             rm -rf conftest.one conftest.two conftest.dir
8689             echo one > conftest.one
8690             echo two > conftest.two
8691             mkdir conftest.dir
8692             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8693               test -s conftest.one && test -s conftest.two &&
8694               test -s conftest.dir/conftest.one &&
8695               test -s conftest.dir/conftest.two
8696             then
8697               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8698               break 3
8699             fi
8700           fi
8701         fi
8702       done
8703     done
8704     ;;
8705 esac
8706 done
8707
8708 rm -rf conftest.one conftest.two conftest.dir
8709
8710 fi
8711   if test "${ac_cv_path_install+set}" = set; then
8712     INSTALL=$ac_cv_path_install
8713   else
8714     # As a last resort, use the slow shell script.  Don't cache a
8715     # value for INSTALL within a source directory, because that will
8716     # break other packages using the cache if that directory is
8717     # removed, or if the value is a relative name.
8718     INSTALL=$ac_install_sh
8719   fi
8720 fi
8721 echo "$as_me:$LINENO: result: $INSTALL" >&5
8722 echo "${ECHO_T}$INSTALL" >&6
8723
8724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8725 # It thinks the first close brace ends the variable substitution.
8726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8727
8728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8729
8730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8731
8732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8734 LN_S=$as_ln_s
8735 if test "$LN_S" = "ln -s"; then
8736   echo "$as_me:$LINENO: result: yes" >&5
8737 echo "${ECHO_T}yes" >&6
8738 else
8739   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8740 echo "${ECHO_T}no, using $LN_S" >&6
8741 fi
8742
8743 if test -n "$ac_tool_prefix"; then
8744   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8746 echo "$as_me:$LINENO: checking for $ac_word" >&5
8747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8748 if test "${ac_cv_prog_RANLIB+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751   if test -n "$RANLIB"; then
8752   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757   IFS=$as_save_IFS
8758   test -z "$as_dir" && as_dir=.
8759   for ac_exec_ext in '' $ac_executable_extensions; do
8760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763     break 2
8764   fi
8765 done
8766 done
8767
8768 fi
8769 fi
8770 RANLIB=$ac_cv_prog_RANLIB
8771 if test -n "$RANLIB"; then
8772   echo "$as_me:$LINENO: result: $RANLIB" >&5
8773 echo "${ECHO_T}$RANLIB" >&6
8774 else
8775   echo "$as_me:$LINENO: result: no" >&5
8776 echo "${ECHO_T}no" >&6
8777 fi
8778
8779 fi
8780 if test -z "$ac_cv_prog_RANLIB"; then
8781   ac_ct_RANLIB=$RANLIB
8782   # Extract the first word of "ranlib", so it can be a program name with args.
8783 set dummy ranlib; ac_word=$2
8784 echo "$as_me:$LINENO: checking for $ac_word" >&5
8785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   if test -n "$ac_ct_RANLIB"; then
8790   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797   for ac_exec_ext in '' $ac_executable_extensions; do
8798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799     ac_cv_prog_ac_ct_RANLIB="ranlib"
8800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804 done
8805
8806   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8807 fi
8808 fi
8809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8810 if test -n "$ac_ct_RANLIB"; then
8811   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8813 else
8814   echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816 fi
8817
8818   RANLIB=$ac_ct_RANLIB
8819 else
8820   RANLIB="$ac_cv_prog_RANLIB"
8821 fi
8822
8823 for ac_prog in 'bison -y' byacc
8824 do
8825   # Extract the first word of "$ac_prog", so it can be a program name with args.
8826 set dummy $ac_prog; ac_word=$2
8827 echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8829 if test "${ac_cv_prog_YACC+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   if test -n "$YACC"; then
8833   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838   IFS=$as_save_IFS
8839   test -z "$as_dir" && as_dir=.
8840   for ac_exec_ext in '' $ac_executable_extensions; do
8841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842     ac_cv_prog_YACC="$ac_prog"
8843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844     break 2
8845   fi
8846 done
8847 done
8848
8849 fi
8850 fi
8851 YACC=$ac_cv_prog_YACC
8852 if test -n "$YACC"; then
8853   echo "$as_me:$LINENO: result: $YACC" >&5
8854 echo "${ECHO_T}$YACC" >&6
8855 else
8856   echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8858 fi
8859
8860   test -n "$YACC" && break
8861 done
8862 test -n "$YACC" || YACC="yacc"
8863
8864
8865 if test -n "$ac_tool_prefix"; then
8866   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}ar; ac_word=$2
8868 echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8870 if test "${ac_cv_prog_AR+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   if test -n "$AR"; then
8874   ac_cv_prog_AR="$AR" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881   for ac_exec_ext in '' $ac_executable_extensions; do
8882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883     ac_cv_prog_AR="${ac_tool_prefix}ar"
8884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888 done
8889
8890 fi
8891 fi
8892 AR=$ac_cv_prog_AR
8893 if test -n "$AR"; then
8894   echo "$as_me:$LINENO: result: $AR" >&5
8895 echo "${ECHO_T}$AR" >&6
8896 else
8897   echo "$as_me:$LINENO: result: no" >&5
8898 echo "${ECHO_T}no" >&6
8899 fi
8900
8901 fi
8902 if test -z "$ac_cv_prog_AR"; then
8903   ac_ct_AR=$AR
8904   # Extract the first word of "ar", so it can be a program name with args.
8905 set dummy ar; ac_word=$2
8906 echo "$as_me:$LINENO: checking for $ac_word" >&5
8907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8908 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   if test -n "$ac_ct_AR"; then
8912   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8913 else
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917   IFS=$as_save_IFS
8918   test -z "$as_dir" && as_dir=.
8919   for ac_exec_ext in '' $ac_executable_extensions; do
8920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921     ac_cv_prog_ac_ct_AR="ar"
8922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923     break 2
8924   fi
8925 done
8926 done
8927
8928 fi
8929 fi
8930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8931 if test -n "$ac_ct_AR"; then
8932   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8933 echo "${ECHO_T}$ac_ct_AR" >&6
8934 else
8935   echo "$as_me:$LINENO: result: no" >&5
8936 echo "${ECHO_T}no" >&6
8937 fi
8938
8939   AR=$ac_ct_AR
8940 else
8941   AR="$ac_cv_prog_AR"
8942 fi
8943
8944 if test -n "$ac_tool_prefix"; then
8945   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8946 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8947 echo "$as_me:$LINENO: checking for $ac_word" >&5
8948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8949 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   if test -n "$DLLTOOL"; then
8953   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958   IFS=$as_save_IFS
8959   test -z "$as_dir" && as_dir=.
8960   for ac_exec_ext in '' $ac_executable_extensions; do
8961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8964     break 2
8965   fi
8966 done
8967 done
8968
8969 fi
8970 fi
8971 DLLTOOL=$ac_cv_prog_DLLTOOL
8972 if test -n "$DLLTOOL"; then
8973   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8974 echo "${ECHO_T}$DLLTOOL" >&6
8975 else
8976   echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6
8978 fi
8979
8980 fi
8981 if test -z "$ac_cv_prog_DLLTOOL"; then
8982   ac_ct_DLLTOOL=$DLLTOOL
8983   # Extract the first word of "dlltool", so it can be a program name with args.
8984 set dummy dlltool; ac_word=$2
8985 echo "$as_me:$LINENO: checking for $ac_word" >&5
8986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   if test -n "$ac_ct_DLLTOOL"; then
8991   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996   IFS=$as_save_IFS
8997   test -z "$as_dir" && as_dir=.
8998   for ac_exec_ext in '' $ac_executable_extensions; do
8999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002     break 2
9003   fi
9004 done
9005 done
9006
9007 fi
9008 fi
9009 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9010 if test -n "$ac_ct_DLLTOOL"; then
9011   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9012 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9013 else
9014   echo "$as_me:$LINENO: result: no" >&5
9015 echo "${ECHO_T}no" >&6
9016 fi
9017
9018   DLLTOOL=$ac_ct_DLLTOOL
9019 else
9020   DLLTOOL="$ac_cv_prog_DLLTOOL"
9021 fi
9022
9023 if test -n "$ac_tool_prefix"; then
9024   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9025 set dummy ${ac_tool_prefix}windres; ac_word=$2
9026 echo "$as_me:$LINENO: checking for $ac_word" >&5
9027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9028 if test "${ac_cv_prog_WINDRES+set}" = set; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031   if test -n "$WINDRES"; then
9032   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9033 else
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037   IFS=$as_save_IFS
9038   test -z "$as_dir" && as_dir=.
9039   for ac_exec_ext in '' $ac_executable_extensions; do
9040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043     break 2
9044   fi
9045 done
9046 done
9047
9048 fi
9049 fi
9050 WINDRES=$ac_cv_prog_WINDRES
9051 if test -n "$WINDRES"; then
9052   echo "$as_me:$LINENO: result: $WINDRES" >&5
9053 echo "${ECHO_T}$WINDRES" >&6
9054 else
9055   echo "$as_me:$LINENO: result: no" >&5
9056 echo "${ECHO_T}no" >&6
9057 fi
9058
9059 fi
9060 if test -z "$ac_cv_prog_WINDRES"; then
9061   ac_ct_WINDRES=$WINDRES
9062   # Extract the first word of "windres", so it can be a program name with args.
9063 set dummy windres; ac_word=$2
9064 echo "$as_me:$LINENO: checking for $ac_word" >&5
9065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9066 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   if test -n "$ac_ct_WINDRES"; then
9070   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075   IFS=$as_save_IFS
9076   test -z "$as_dir" && as_dir=.
9077   for ac_exec_ext in '' $ac_executable_extensions; do
9078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079     ac_cv_prog_ac_ct_WINDRES="windres"
9080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081     break 2
9082   fi
9083 done
9084 done
9085
9086 fi
9087 fi
9088 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9089 if test -n "$ac_ct_WINDRES"; then
9090   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9091 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9092 else
9093   echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095 fi
9096
9097   WINDRES=$ac_ct_WINDRES
9098 else
9099   WINDRES="$ac_cv_prog_WINDRES"
9100 fi
9101
9102
9103 # Needed for GNU/Hurd.
9104 if test -n "$ac_tool_prefix"; then
9105   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9106 set dummy ${ac_tool_prefix}mig; ac_word=$2
9107 echo "$as_me:$LINENO: checking for $ac_word" >&5
9108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9109 if test "${ac_cv_prog_MIG+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   if test -n "$MIG"; then
9113   ac_cv_prog_MIG="$MIG" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9117 do
9118   IFS=$as_save_IFS
9119   test -z "$as_dir" && as_dir=.
9120   for ac_exec_ext in '' $ac_executable_extensions; do
9121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122     ac_cv_prog_MIG="${ac_tool_prefix}mig"
9123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9124     break 2
9125   fi
9126 done
9127 done
9128
9129 fi
9130 fi
9131 MIG=$ac_cv_prog_MIG
9132 if test -n "$MIG"; then
9133   echo "$as_me:$LINENO: result: $MIG" >&5
9134 echo "${ECHO_T}$MIG" >&6
9135 else
9136   echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138 fi
9139
9140 fi
9141 if test -z "$ac_cv_prog_MIG"; then
9142   ac_ct_MIG=$MIG
9143   # Extract the first word of "mig", so it can be a program name with args.
9144 set dummy mig; ac_word=$2
9145 echo "$as_me:$LINENO: checking for $ac_word" >&5
9146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9147 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   if test -n "$ac_ct_MIG"; then
9151   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156   IFS=$as_save_IFS
9157   test -z "$as_dir" && as_dir=.
9158   for ac_exec_ext in '' $ac_executable_extensions; do
9159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160     ac_cv_prog_ac_ct_MIG="mig"
9161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9162     break 2
9163   fi
9164 done
9165 done
9166
9167 fi
9168 fi
9169 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9170 if test -n "$ac_ct_MIG"; then
9171   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9172 echo "${ECHO_T}$ac_ct_MIG" >&6
9173 else
9174   echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178   MIG=$ac_ct_MIG
9179 else
9180   MIG="$ac_cv_prog_MIG"
9181 fi
9182
9183
9184 # ---------------------- #
9185 # Checks for libraries.  #
9186 # ---------------------- #
9187
9188 # We might need to link with -lm; most simulators need it.
9189
9190 echo "$as_me:$LINENO: checking for main in -lm" >&5
9191 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9192 if test "${ac_cv_lib_m_main+set}" = set; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   ac_check_lib_save_LIBS=$LIBS
9196 LIBS="-lm  $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203
9204
9205 int
9206 main ()
9207 {
9208 main ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215   (eval $ac_link) 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -z "$ac_c_werror_flag"
9223                          || test ! -s conftest.err'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; } &&
9229          { ac_try='test -s conftest$ac_exeext'
9230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231   (eval $ac_try) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; }; then
9235   ac_cv_lib_m_main=yes
9236 else
9237   echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9239
9240 ac_cv_lib_m_main=no
9241 fi
9242 rm -f conftest.err conftest.$ac_objext \
9243       conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9247 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9248 if test $ac_cv_lib_m_main = yes; then
9249   cat >>confdefs.h <<_ACEOF
9250 #define HAVE_LIBM 1
9251 _ACEOF
9252
9253   LIBS="-lm $LIBS"
9254
9255 fi
9256
9257
9258 # We need to link with -lw to get `wctype' on Solaris before Solaris
9259 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9260 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9261 # is known to have this problem).  Therefore we avoid libw if we can.
9262 echo "$as_me:$LINENO: checking for wctype" >&5
9263 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9264 if test "${ac_cv_func_wctype+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9275 #define wctype innocuous_wctype
9276
9277 /* System header to define __stub macros and hopefully few prototypes,
9278     which can conflict with char wctype (); below.
9279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280     <limits.h> exists even on freestanding compilers.  */
9281
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287
9288 #undef wctype
9289
9290 /* Override any gcc2 internal prototype to avoid an error.  */
9291 #ifdef __cplusplus
9292 extern "C"
9293 {
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296    builtin and then its argument prototype would still apply.  */
9297 char wctype ();
9298 /* The GNU C library defines this for functions which it implements
9299     to always fail with ENOSYS.  Some functions are actually named
9300     something starting with __ and the normal name is an alias.  */
9301 #if defined (__stub_wctype) || defined (__stub___wctype)
9302 choke me
9303 #else
9304 char (*f) () = wctype;
9305 #endif
9306 #ifdef __cplusplus
9307 }
9308 #endif
9309
9310 int
9311 main ()
9312 {
9313 return f != wctype;
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_func_wctype=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_cv_func_wctype=no
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348       conftest$ac_exeext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9351 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9352 if test $ac_cv_func_wctype = yes; then
9353   :
9354 else
9355
9356 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9357 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9358 if test "${ac_cv_lib_w_wctype+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361   ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-lw  $LIBS"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369
9370 /* Override any gcc2 internal prototype to avoid an error.  */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375    builtin and then its argument prototype would still apply.  */
9376 char wctype ();
9377 int
9378 main ()
9379 {
9380 wctype ();
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387   (eval $ac_link) 2>conftest.er1
9388   ac_status=$?
9389   grep -v '^ *+' conftest.er1 >conftest.err
9390   rm -f conftest.er1
9391   cat conftest.err >&5
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -z "$ac_c_werror_flag"
9395                          || test ! -s conftest.err'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; } &&
9401          { ac_try='test -s conftest$ac_exeext'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; }; then
9407   ac_cv_lib_w_wctype=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_w_wctype=no
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415       conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9419 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9420 if test $ac_cv_lib_w_wctype = yes; then
9421   cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBW 1
9423 _ACEOF
9424
9425   LIBS="-lw $LIBS"
9426
9427 fi
9428
9429 fi
9430
9431
9432 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9433 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9434 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9435 if test "${ac_cv_search_gethostbyname+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   ac_func_search_save_LIBS=$LIBS
9439 ac_cv_search_gethostbyname=no
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446
9447 /* Override any gcc2 internal prototype to avoid an error.  */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452    builtin and then its argument prototype would still apply.  */
9453 char gethostbyname ();
9454 int
9455 main ()
9456 {
9457 gethostbyname ();
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464   (eval $ac_link) 2>conftest.er1
9465   ac_status=$?
9466   grep -v '^ *+' conftest.er1 >conftest.err
9467   rm -f conftest.er1
9468   cat conftest.err >&5
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } &&
9471          { ac_try='test -z "$ac_c_werror_flag"
9472                          || test ! -s conftest.err'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; } &&
9478          { ac_try='test -s conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_search_gethostbyname="none required"
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489 fi
9490 rm -f conftest.err conftest.$ac_objext \
9491       conftest$ac_exeext conftest.$ac_ext
9492 if test "$ac_cv_search_gethostbyname" = no; then
9493   for ac_lib in nsl; do
9494     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9495     cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h.  */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h.  */
9501
9502 /* Override any gcc2 internal prototype to avoid an error.  */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 /* We use char because int might match the return type of a gcc2
9507    builtin and then its argument prototype would still apply.  */
9508 char gethostbyname ();
9509 int
9510 main ()
9511 {
9512 gethostbyname ();
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519   (eval $ac_link) 2>conftest.er1
9520   ac_status=$?
9521   grep -v '^ *+' conftest.er1 >conftest.err
9522   rm -f conftest.er1
9523   cat conftest.err >&5
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); } &&
9526          { ac_try='test -z "$ac_c_werror_flag"
9527                          || test ! -s conftest.err'
9528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529   (eval $ac_try) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; } &&
9533          { ac_try='test -s conftest$ac_exeext'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; }; then
9539   ac_cv_search_gethostbyname="-l$ac_lib"
9540 break
9541 else
9542   echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545 fi
9546 rm -f conftest.err conftest.$ac_objext \
9547       conftest$ac_exeext conftest.$ac_ext
9548   done
9549 fi
9550 LIBS=$ac_func_search_save_LIBS
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9553 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9554 if test "$ac_cv_search_gethostbyname" != no; then
9555   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9556
9557 fi
9558
9559
9560 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9561 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9562 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9563 if test "${ac_cv_search_socketpair+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   ac_func_search_save_LIBS=$LIBS
9567 ac_cv_search_socketpair=no
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any gcc2 internal prototype to avoid an error.  */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 /* We use char because int might match the return type of a gcc2
9580    builtin and then its argument prototype would still apply.  */
9581 char socketpair ();
9582 int
9583 main ()
9584 {
9585 socketpair ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592   (eval $ac_link) 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -z "$ac_c_werror_flag"
9600                          || test ! -s conftest.err'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; } &&
9606          { ac_try='test -s conftest$ac_exeext'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_search_socketpair="none required"
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 fi
9618 rm -f conftest.err conftest.$ac_objext \
9619       conftest$ac_exeext conftest.$ac_ext
9620 if test "$ac_cv_search_socketpair" = no; then
9621   for ac_lib in socket; do
9622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9623     cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629
9630 /* Override any gcc2 internal prototype to avoid an error.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 /* We use char because int might match the return type of a gcc2
9635    builtin and then its argument prototype would still apply.  */
9636 char socketpair ();
9637 int
9638 main ()
9639 {
9640 socketpair ();
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647   (eval $ac_link) 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -z "$ac_c_werror_flag"
9655                          || test ! -s conftest.err'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_cv_search_socketpair="-l$ac_lib"
9668 break
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 fi
9674 rm -f conftest.err conftest.$ac_objext \
9675       conftest$ac_exeext conftest.$ac_ext
9676   done
9677 fi
9678 LIBS=$ac_func_search_save_LIBS
9679 fi
9680 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9681 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9682 if test "$ac_cv_search_socketpair" != no; then
9683   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9684
9685 fi
9686
9687
9688 # Link in zlib if we can.  This allows us to read compressed debug sections.
9689 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9690 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9691 if test "${ac_cv_search_zlibVersion+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   ac_func_search_save_LIBS=$LIBS
9695 ac_cv_search_zlibVersion=no
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h.  */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h.  */
9702
9703 /* Override any gcc2 internal prototype to avoid an error.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 /* We use char because int might match the return type of a gcc2
9708    builtin and then its argument prototype would still apply.  */
9709 char zlibVersion ();
9710 int
9711 main ()
9712 {
9713 zlibVersion ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720   (eval $ac_link) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   ac_cv_search_zlibVersion="none required"
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 fi
9746 rm -f conftest.err conftest.$ac_objext \
9747       conftest$ac_exeext conftest.$ac_ext
9748 if test "$ac_cv_search_zlibVersion" = no; then
9749   for ac_lib in z; do
9750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9751     cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763    builtin and then its argument prototype would still apply.  */
9764 char zlibVersion ();
9765 int
9766 main ()
9767 {
9768 zlibVersion ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag"
9783                          || test ! -s conftest.err'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_search_zlibVersion="-l$ac_lib"
9796 break
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 fi
9802 rm -f conftest.err conftest.$ac_objext \
9803       conftest$ac_exeext conftest.$ac_ext
9804   done
9805 fi
9806 LIBS=$ac_func_search_save_LIBS
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9809 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9810 if test "$ac_cv_search_zlibVersion" != no; then
9811   test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9812
9813 for ac_header in zlib.h
9814 do
9815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817   echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 fi
9822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 else
9825   # Is the header compilable?
9826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834 $ac_includes_default
9835 #include <$ac_header>
9836 _ACEOF
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839   (eval $ac_compile) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest.$ac_objext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   ac_header_compiler=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_header_compiler=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9868 echo "${ECHO_T}$ac_header_compiler" >&6
9869
9870 # Is the header present?
9871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 #include <$ac_header>
9880 _ACEOF
9881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } >/dev/null; then
9889   if test -s conftest.err; then
9890     ac_cpp_err=$ac_c_preproc_warn_flag
9891     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9892   else
9893     ac_cpp_err=
9894   fi
9895 else
9896   ac_cpp_err=yes
9897 fi
9898 if test -z "$ac_cpp_err"; then
9899   ac_header_preproc=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904   ac_header_preproc=no
9905 fi
9906 rm -f conftest.err conftest.$ac_ext
9907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908 echo "${ECHO_T}$ac_header_preproc" >&6
9909
9910 # So?  What about this header?
9911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912   yes:no: )
9913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917     ac_header_preproc=yes
9918     ;;
9919   no:yes:* )
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9932     (
9933       cat <<\_ASBOX
9934 ## ------------------------------------------ ##
9935 ## Report this to the AC_PACKAGE_NAME lists.  ##
9936 ## ------------------------------------------ ##
9937 _ASBOX
9938     ) |
9939       sed "s/^/$as_me: WARNING:     /" >&2
9940     ;;
9941 esac
9942 echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   eval "$as_ac_Header=\$ac_header_preproc"
9948 fi
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9951
9952 fi
9953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9954   cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959
9960 done
9961
9962 fi
9963
9964
9965 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9966 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9967 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9968 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   ac_func_search_save_LIBS=$LIBS
9972 ac_cv_search_dlgetmodinfo=no
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979
9980 /* Override any gcc2 internal prototype to avoid an error.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 /* We use char because int might match the return type of a gcc2
9985    builtin and then its argument prototype would still apply.  */
9986 char dlgetmodinfo ();
9987 int
9988 main ()
9989 {
9990 dlgetmodinfo ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997   (eval $ac_link) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -z "$ac_c_werror_flag"
10005                          || test ! -s conftest.err'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_search_dlgetmodinfo="none required"
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025 if test "$ac_cv_search_dlgetmodinfo" = no; then
10026   for ac_lib in dl xpdl; do
10027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10028     cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034
10035 /* Override any gcc2 internal prototype to avoid an error.  */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 /* We use char because int might match the return type of a gcc2
10040    builtin and then its argument prototype would still apply.  */
10041 char dlgetmodinfo ();
10042 int
10043 main ()
10044 {
10045 dlgetmodinfo ();
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052   (eval $ac_link) 2>conftest.er1
10053   ac_status=$?
10054   grep -v '^ *+' conftest.er1 >conftest.err
10055   rm -f conftest.er1
10056   cat conftest.err >&5
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } &&
10059          { ac_try='test -z "$ac_c_werror_flag"
10060                          || test ! -s conftest.err'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_search_dlgetmodinfo="-l$ac_lib"
10073 break
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 fi
10079 rm -f conftest.err conftest.$ac_objext \
10080       conftest$ac_exeext conftest.$ac_ext
10081   done
10082 fi
10083 LIBS=$ac_func_search_save_LIBS
10084 fi
10085 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10086 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10087 if test "$ac_cv_search_dlgetmodinfo" != no; then
10088   test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10089
10090 fi
10091
10092
10093
10094
10095
10096 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10097 if test "${with_libiconv_prefix+set}" = set; then
10098   withval="$with_libiconv_prefix"
10099
10100     for dir in `echo "$withval" | tr : ' '`; do
10101       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10102       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10103     done
10104
10105 fi;
10106
10107   BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10108   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10109
10110   echo "$as_me:$LINENO: checking for iconv" >&5
10111 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10112 if test "${am_cv_func_iconv+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115
10116     am_cv_func_iconv="no, consider installing GNU libiconv"
10117     am_cv_lib_iconv=no
10118     am_cv_use_build_libiconv=no
10119     # First, try to find iconv in libc.
10120     cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126 #include <stdlib.h>
10127 #include <iconv.h>
10128 int
10129 main ()
10130 {
10131 iconv_t cd = iconv_open("","");
10132        iconv(cd,NULL,NULL,NULL,NULL);
10133        iconv_close(cd);
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140   (eval $ac_link) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"
10148                          || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest$ac_exeext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   am_cv_func_iconv=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 fi
10166 rm -f conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168
10169     # If iconv was not in libc, try -liconv.  In this case, arrange to
10170     # look in the libiconv prefix, if it was specified by the user.
10171     if test "$am_cv_func_iconv" != yes; then
10172       am_save_CPPFLAGS="$CPPFLAGS"
10173       am_save_LIBS="$LIBS"
10174       if test -n "$LIBICONV_INCLUDE"; then
10175         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10176         LIBS="$LIBS $LIBICONV_LIBDIR"
10177       fi
10178       LIBS="$LIBS -liconv"
10179       cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185 #include <stdlib.h>
10186 #include <iconv.h>
10187 int
10188 main ()
10189 {
10190 iconv_t cd = iconv_open("","");
10191          iconv(cd,NULL,NULL,NULL,NULL);
10192          iconv_close(cd);
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199   (eval $ac_link) 2>conftest.er1
10200   ac_status=$?
10201   grep -v '^ *+' conftest.er1 >conftest.err
10202   rm -f conftest.er1
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -z "$ac_c_werror_flag"
10207                          || test ! -s conftest.err'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   am_cv_lib_iconv=yes
10220         am_cv_func_iconv=yes
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 fi
10226 rm -f conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228       LIBS="$am_save_LIBS"
10229       CPPFLAGS="$am_save_CPPFLAGS"
10230     fi
10231
10232     # If that didn't work, try to find libiconv in the build tree.
10233     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10234       am_save_LIBS="$LIBS"
10235       am_save_CPPFLAGS="$CPPFLAGS"
10236       LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10237       CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10238       cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h.  */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h.  */
10244 #include <stdlib.h>
10245 #include <iconv.h>
10246 int
10247 main ()
10248 {
10249 iconv_t cd = iconv_open("","");
10250          iconv(cd,NULL,NULL,NULL,NULL);
10251          iconv_close(cd);
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } &&
10265          { ac_try='test -z "$ac_c_werror_flag"
10266                          || test ! -s conftest.err'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   am_cv_use_build_libiconv=yes
10279         am_cv_lib_iconv=yes
10280         am_cv_func_iconv=yes
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285 fi
10286 rm -f conftest.err conftest.$ac_objext \
10287       conftest$ac_exeext conftest.$ac_ext
10288       LIBS="$am_save_LIBS"
10289       CPPFLAGS="$am_save_CPPFLAGS"
10290     fi
10291
10292 fi
10293 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10294 echo "${ECHO_T}$am_cv_func_iconv" >&6
10295
10296   # Set the various flags based on the cache variables.  We can't rely
10297   # on the flags to remain set from the above code, due to caching.
10298   LIBICONV=
10299   if test "$am_cv_lib_iconv" = yes; then
10300     LIBICONV="-liconv"
10301   else
10302     LIBICONV_LIBDIR=
10303     LIBICONV_INCLUDE=
10304   fi
10305   if test "$am_cv_use_build_libiconv" = yes; then
10306     LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10307     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10308   fi
10309   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10310   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10311
10312   if test "$am_cv_func_iconv" = yes; then
10313
10314 cat >>confdefs.h <<\_ACEOF
10315 #define HAVE_ICONV 1
10316 _ACEOF
10317
10318     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10319 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10320     if test "${am_cv_proto_iconv+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323
10324       cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330
10331 #include <stdlib.h>
10332 #include <iconv.h>
10333 extern
10334 #ifdef __cplusplus
10335 "C"
10336 #endif
10337 #if defined(__STDC__) || defined(__cplusplus)
10338 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10339 #else
10340 size_t iconv();
10341 #endif
10342
10343 int
10344 main ()
10345 {
10346
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>conftest.er1
10354   ac_status=$?
10355   grep -v '^ *+' conftest.er1 >conftest.err
10356   rm -f conftest.er1
10357   cat conftest.err >&5
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } &&
10360          { ac_try='test -z "$ac_c_werror_flag"
10361                          || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   am_cv_proto_iconv_arg1=""
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 am_cv_proto_iconv_arg1="const"
10379 fi
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381       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);"
10382 fi
10383
10384     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10385     echo "$as_me:$LINENO: result: ${ac_t:-
10386          }$am_cv_proto_iconv" >&5
10387 echo "${ECHO_T}${ac_t:-
10388          }$am_cv_proto_iconv" >&6
10389
10390 cat >>confdefs.h <<_ACEOF
10391 #define ICONV_CONST $am_cv_proto_iconv_arg1
10392 _ACEOF
10393
10394   fi
10395
10396
10397 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10398 # There is a very specific comment in /usr/include/curses.h explaining that
10399 # termcap routines built into libcurses must not be used.
10400 #
10401 # The symptoms we observed so far is GDB unexpectedly changing
10402 # the terminal settings when tgetent is called - this is particularly
10403 # visible as the output is missing carriage returns, and so rapidly
10404 # becomes very hard to read.
10405 #
10406 # The readline configure script has already decided that libtermcap
10407 # was enough for its purposes, and so decided to build readline using
10408 # libtermcap.  Since the TUI mode requires curses, building GDB with
10409 # TUI enabled results in both libraries to be used at the same time,
10410 # which is not allowed.  This basically means that GDB with TUI is
10411 # broken on alpha-osf.
10412
10413 case $host_os in
10414   alpha*-*-osf* )
10415     if "$enable_tui" = "yes"; then
10416       { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10417 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10418    { (exit 1); exit 1; }; }
10419     fi
10420     if "$enable_tui" = "auto"; then
10421       enable_tui=no
10422     fi
10423     ;;
10424 esac
10425
10426 # For the TUI, we need enhanced curses functionality.
10427 if test x"$enable_tui" != xno; then
10428   prefer_curses=yes
10429 fi
10430
10431 curses_found=no
10432 if test x"$prefer_curses" = xyes; then
10433   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10434   # curses library because the latter might not provide all the
10435   # functionality we need.  However, this leads to problems on systems
10436   # where the linker searches /usr/local/lib, but the compiler doesn't
10437   # search /usr/local/include, if ncurses is installed in /usr/local.  A
10438   # default installation of ncurses on alpha*-dec-osf* will lead to such
10439   # a situation.
10440   echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10441 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10442 if test "${ac_cv_search_waddstr+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   ac_func_search_save_LIBS=$LIBS
10446 ac_cv_search_waddstr=no
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 /* Override any gcc2 internal prototype to avoid an error.  */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 /* We use char because int might match the return type of a gcc2
10459    builtin and then its argument prototype would still apply.  */
10460 char waddstr ();
10461 int
10462 main ()
10463 {
10464 waddstr ();
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471   (eval $ac_link) 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } &&
10478          { ac_try='test -z "$ac_c_werror_flag"
10479                          || test ! -s conftest.err'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; } &&
10485          { ac_try='test -s conftest$ac_exeext'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; }; then
10491   ac_cv_search_waddstr="none required"
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 fi
10497 rm -f conftest.err conftest.$ac_objext \
10498       conftest$ac_exeext conftest.$ac_ext
10499 if test "$ac_cv_search_waddstr" = no; then
10500   for ac_lib in ncurses cursesX curses; do
10501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10502     cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508
10509 /* Override any gcc2 internal prototype to avoid an error.  */
10510 #ifdef __cplusplus
10511 extern "C"
10512 #endif
10513 /* We use char because int might match the return type of a gcc2
10514    builtin and then its argument prototype would still apply.  */
10515 char waddstr ();
10516 int
10517 main ()
10518 {
10519 waddstr ();
10520   ;
10521   return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526   (eval $ac_link) 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } &&
10533          { ac_try='test -z "$ac_c_werror_flag"
10534                          || test ! -s conftest.err'
10535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536   (eval $ac_try) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; } &&
10540          { ac_try='test -s conftest$ac_exeext'
10541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542   (eval $ac_try) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; }; then
10546   ac_cv_search_waddstr="-l$ac_lib"
10547 break
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 fi
10553 rm -f conftest.err conftest.$ac_objext \
10554       conftest$ac_exeext conftest.$ac_ext
10555   done
10556 fi
10557 LIBS=$ac_func_search_save_LIBS
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10560 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10561 if test "$ac_cv_search_waddstr" != no; then
10562   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10563
10564 fi
10565
10566
10567   if test "$ac_cv_search_waddstr" != no; then
10568     curses_found=yes
10569   fi
10570 fi
10571
10572 # Check whether we should enable the TUI, but only do so if we really
10573 # can.
10574 if test x"$enable_tui" != xno; then
10575   if test -d $srcdir/tui; then
10576     if test "$curses_found" != no; then
10577       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10578       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10579       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10580       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10581       CONFIG_ALL="${CONFIG_ALL} all-tui"
10582       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10583       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10584       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10585     else
10586       if test x"$enable_tui" = xyes; then
10587         { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10588 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10589    { (exit 1); exit 1; }; }
10590       else
10591         { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10592 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10593       fi
10594     fi
10595   fi
10596 fi
10597
10598 # Since GDB uses Readline, we need termcap functionality.  In many
10599 # cases this will be provided by the curses library, but some systems
10600 # have a seperate termcap library, or no curses library at all.
10601
10602 case $host_os in
10603   cygwin*)
10604     if test -d $srcdir/libtermcap; then
10605       LIBS="../libtermcap/libtermcap.a $LIBS"
10606       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10607     fi ;;
10608   go32* | *djgpp*)
10609     ac_cv_search_tgetent="none required"
10610     ;;
10611   *mingw32*)
10612     ac_cv_search_tgetent="none required"
10613     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10614     ;;
10615 esac
10616
10617 # These are the libraries checked by Readline.
10618 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10619 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10620 if test "${ac_cv_search_tgetent+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   ac_func_search_save_LIBS=$LIBS
10624 ac_cv_search_tgetent=no
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h.  */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h.  */
10631
10632 /* Override any gcc2 internal prototype to avoid an error.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 /* We use char because int might match the return type of a gcc2
10637    builtin and then its argument prototype would still apply.  */
10638 char tgetent ();
10639 int
10640 main ()
10641 {
10642 tgetent ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -z "$ac_c_werror_flag"
10657                          || test ! -s conftest.err'
10658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659   (eval $ac_try) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_search_tgetent="none required"
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676       conftest$ac_exeext conftest.$ac_ext
10677 if test "$ac_cv_search_tgetent" = no; then
10678   for ac_lib in termcap tinfo curses ncurses; do
10679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10680     cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h.  */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h.  */
10686
10687 /* Override any gcc2 internal prototype to avoid an error.  */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 /* We use char because int might match the return type of a gcc2
10692    builtin and then its argument prototype would still apply.  */
10693 char tgetent ();
10694 int
10695 main ()
10696 {
10697 tgetent ();
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704   (eval $ac_link) 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } &&
10711          { ac_try='test -z "$ac_c_werror_flag"
10712                          || test ! -s conftest.err'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; } &&
10718          { ac_try='test -s conftest$ac_exeext'
10719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720   (eval $ac_try) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; }; then
10724   ac_cv_search_tgetent="-l$ac_lib"
10725 break
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 fi
10731 rm -f conftest.err conftest.$ac_objext \
10732       conftest$ac_exeext conftest.$ac_ext
10733   done
10734 fi
10735 LIBS=$ac_func_search_save_LIBS
10736 fi
10737 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10738 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10739 if test "$ac_cv_search_tgetent" != no; then
10740   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10741
10742 fi
10743
10744
10745 if test "$ac_cv_search_tgetent" = no; then
10746   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10747 echo "$as_me: error: no termcap library found" >&2;}
10748    { (exit 1); exit 1; }; }
10749 fi
10750
10751
10752 # Check whether --with-system-readline or --without-system-readline was given.
10753 if test "${with_system_readline+set}" = set; then
10754   withval="$with_system_readline"
10755
10756 fi;
10757
10758 if test "$with_system_readline" = yes; then
10759   READLINE=-lreadline
10760   READLINE_DEPS=
10761   READLINE_CFLAGS=
10762 else
10763   READLINE='$(READLINE_DIR)/libreadline.a'
10764   READLINE_DEPS='$(READLINE)'
10765   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10766 fi
10767
10768
10769
10770
10771
10772 # Check whether --with-expat or --without-expat was given.
10773 if test "${with_expat+set}" = set; then
10774   withval="$with_expat"
10775
10776 else
10777   with_expat=auto
10778 fi;
10779 echo "$as_me:$LINENO: checking whether to use expat" >&5
10780 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10781 echo "$as_me:$LINENO: result: $with_expat" >&5
10782 echo "${ECHO_T}$with_expat" >&6
10783
10784 if test "${with_expat}" = no; then
10785   { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10786 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10787   HAVE_LIBEXPAT=no
10788 else
10789
10790       if test "X$prefix" = "XNONE"; then
10791     acl_final_prefix="$ac_default_prefix"
10792   else
10793     acl_final_prefix="$prefix"
10794   fi
10795   if test "X$exec_prefix" = "XNONE"; then
10796     acl_final_exec_prefix='${prefix}'
10797   else
10798     acl_final_exec_prefix="$exec_prefix"
10799   fi
10800   acl_save_prefix="$prefix"
10801   prefix="$acl_final_prefix"
10802   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10803   prefix="$acl_save_prefix"
10804
10805
10806 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10807 if test "${with_gnu_ld+set}" = set; then
10808   withval="$with_gnu_ld"
10809   test "$withval" = no || with_gnu_ld=yes
10810 else
10811   with_gnu_ld=no
10812 fi;
10813 # Prepare PATH_SEPARATOR.
10814 # The user is always right.
10815 if test "${PATH_SEPARATOR+set}" != set; then
10816   echo "#! /bin/sh" >conf$$.sh
10817   echo  "exit 0"   >>conf$$.sh
10818   chmod +x conf$$.sh
10819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10820     PATH_SEPARATOR=';'
10821   else
10822     PATH_SEPARATOR=:
10823   fi
10824   rm -f conf$$.sh
10825 fi
10826 ac_prog=ld
10827 if test "$GCC" = yes; then
10828   # Check if gcc -print-prog-name=ld gives a path.
10829   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10830 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10831   case $host in
10832   *-*-mingw*)
10833     # gcc leaves a trailing carriage return which upsets mingw
10834     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10835   *)
10836     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10837   esac
10838   case $ac_prog in
10839     # Accept absolute paths.
10840     [\\/]* | [A-Za-z]:[\\/]*)
10841       re_direlt='/[^/][^/]*/\.\./'
10842       # Canonicalize the path of ld
10843       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10844       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10845         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10846       done
10847       test -z "$LD" && LD="$ac_prog"
10848       ;;
10849   "")
10850     # If it fails, then pretend we aren't using GCC.
10851     ac_prog=ld
10852     ;;
10853   *)
10854     # If it is relative, then search for the first ld in PATH.
10855     with_gnu_ld=unknown
10856     ;;
10857   esac
10858 elif test "$with_gnu_ld" = yes; then
10859   echo "$as_me:$LINENO: checking for GNU ld" >&5
10860 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10861 else
10862   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10863 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10864 fi
10865 if test "${acl_cv_path_LD+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   if test -z "$LD"; then
10869   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10870   for ac_dir in $PATH; do
10871     test -z "$ac_dir" && ac_dir=.
10872     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10873       acl_cv_path_LD="$ac_dir/$ac_prog"
10874       # Check to see if the program is GNU ld.  I'd rather use --version,
10875       # but apparently some GNU ld's only accept -v.
10876       # Break only if it was the GNU/non-GNU ld that we prefer.
10877       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10878         test "$with_gnu_ld" != no && break
10879       else
10880         test "$with_gnu_ld" != yes && break
10881       fi
10882     fi
10883   done
10884   IFS="$ac_save_ifs"
10885 else
10886   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10887 fi
10888 fi
10889
10890 LD="$acl_cv_path_LD"
10891 if test -n "$LD"; then
10892   echo "$as_me:$LINENO: result: $LD" >&5
10893 echo "${ECHO_T}$LD" >&6
10894 else
10895   echo "$as_me:$LINENO: result: no" >&5
10896 echo "${ECHO_T}no" >&6
10897 fi
10898 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10899 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10900    { (exit 1); exit 1; }; }
10901 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10902 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10903 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10907 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10908   acl_cv_prog_gnu_ld=yes
10909 else
10910   acl_cv_prog_gnu_ld=no
10911 fi
10912 fi
10913 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10914 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10915 with_gnu_ld=$acl_cv_prog_gnu_ld
10916
10917
10918
10919                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10920 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10921 if test "${acl_cv_rpath+set}" = set; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924
10925     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10926     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10927     . ./conftest.sh
10928     rm -f ./conftest.sh
10929     acl_cv_rpath=done
10930
10931 fi
10932 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10933 echo "${ECHO_T}$acl_cv_rpath" >&6
10934   wl="$acl_cv_wl"
10935   libext="$acl_cv_libext"
10936   shlibext="$acl_cv_shlibext"
10937   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10938   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10939   hardcode_direct="$acl_cv_hardcode_direct"
10940   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10941     # Check whether --enable-rpath or --disable-rpath was given.
10942 if test "${enable_rpath+set}" = set; then
10943   enableval="$enable_rpath"
10944   :
10945 else
10946   enable_rpath=yes
10947 fi;
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957     use_additional=yes
10958
10959   acl_save_prefix="$prefix"
10960   prefix="$acl_final_prefix"
10961   acl_save_exec_prefix="$exec_prefix"
10962   exec_prefix="$acl_final_exec_prefix"
10963
10964     eval additional_includedir=\"$includedir\"
10965     eval additional_libdir=\"$libdir\"
10966
10967   exec_prefix="$acl_save_exec_prefix"
10968   prefix="$acl_save_prefix"
10969
10970
10971 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10972 if test "${with_libexpat_prefix+set}" = set; then
10973   withval="$with_libexpat_prefix"
10974
10975     if test "X$withval" = "Xno"; then
10976       use_additional=no
10977     else
10978       if test "X$withval" = "X"; then
10979
10980   acl_save_prefix="$prefix"
10981   prefix="$acl_final_prefix"
10982   acl_save_exec_prefix="$exec_prefix"
10983   exec_prefix="$acl_final_exec_prefix"
10984
10985           eval additional_includedir=\"$includedir\"
10986           eval additional_libdir=\"$libdir\"
10987
10988   exec_prefix="$acl_save_exec_prefix"
10989   prefix="$acl_save_prefix"
10990
10991       else
10992         additional_includedir="$withval/include"
10993         additional_libdir="$withval/lib"
10994       fi
10995     fi
10996
10997 fi;
10998       LIBEXPAT=
10999   LTLIBEXPAT=
11000   INCEXPAT=
11001   rpathdirs=
11002   ltrpathdirs=
11003   names_already_handled=
11004   names_next_round='expat '
11005   while test -n "$names_next_round"; do
11006     names_this_round="$names_next_round"
11007     names_next_round=
11008     for name in $names_this_round; do
11009       already_handled=
11010       for n in $names_already_handled; do
11011         if test "$n" = "$name"; then
11012           already_handled=yes
11013           break
11014         fi
11015       done
11016       if test -z "$already_handled"; then
11017         names_already_handled="$names_already_handled $name"
11018                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11019         eval value=\"\$HAVE_LIB$uppername\"
11020         if test -n "$value"; then
11021           if test "$value" = yes; then
11022             eval value=\"\$LIB$uppername\"
11023             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
11024             eval value=\"\$LTLIB$uppername\"
11025             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11026           else
11027                                     :
11028           fi
11029         else
11030                               found_dir=
11031           found_la=
11032           found_so=
11033           found_a=
11034           if test $use_additional = yes; then
11035             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11036               found_dir="$additional_libdir"
11037               found_so="$additional_libdir/lib$name.$shlibext"
11038               if test -f "$additional_libdir/lib$name.la"; then
11039                 found_la="$additional_libdir/lib$name.la"
11040               fi
11041             else
11042               if test -f "$additional_libdir/lib$name.$libext"; then
11043                 found_dir="$additional_libdir"
11044                 found_a="$additional_libdir/lib$name.$libext"
11045                 if test -f "$additional_libdir/lib$name.la"; then
11046                   found_la="$additional_libdir/lib$name.la"
11047                 fi
11048               fi
11049             fi
11050           fi
11051           if test "X$found_dir" = "X"; then
11052             for x in $LDFLAGS $LTLIBEXPAT; do
11053
11054   acl_save_prefix="$prefix"
11055   prefix="$acl_final_prefix"
11056   acl_save_exec_prefix="$exec_prefix"
11057   exec_prefix="$acl_final_exec_prefix"
11058   eval x=\"$x\"
11059   exec_prefix="$acl_save_exec_prefix"
11060   prefix="$acl_save_prefix"
11061
11062               case "$x" in
11063                 -L*)
11064                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11065                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11066                     found_dir="$dir"
11067                     found_so="$dir/lib$name.$shlibext"
11068                     if test -f "$dir/lib$name.la"; then
11069                       found_la="$dir/lib$name.la"
11070                     fi
11071                   else
11072                     if test -f "$dir/lib$name.$libext"; then
11073                       found_dir="$dir"
11074                       found_a="$dir/lib$name.$libext"
11075                       if test -f "$dir/lib$name.la"; then
11076                         found_la="$dir/lib$name.la"
11077                       fi
11078                     fi
11079                   fi
11080                   ;;
11081               esac
11082               if test "X$found_dir" != "X"; then
11083                 break
11084               fi
11085             done
11086           fi
11087           if test "X$found_dir" != "X"; then
11088                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11089             if test "X$found_so" != "X"; then
11090                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11091                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11092               else
11093                                                                                 haveit=
11094                 for x in $ltrpathdirs; do
11095                   if test "X$x" = "X$found_dir"; then
11096                     haveit=yes
11097                     break
11098                   fi
11099                 done
11100                 if test -z "$haveit"; then
11101                   ltrpathdirs="$ltrpathdirs $found_dir"
11102                 fi
11103                                 if test "$hardcode_direct" = yes; then
11104                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11105                 else
11106                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11107                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11108                                                             haveit=
11109                     for x in $rpathdirs; do
11110                       if test "X$x" = "X$found_dir"; then
11111                         haveit=yes
11112                         break
11113                       fi
11114                     done
11115                     if test -z "$haveit"; then
11116                       rpathdirs="$rpathdirs $found_dir"
11117                     fi
11118                   else
11119                                                                                 haveit=
11120                     for x in $LDFLAGS $LIBEXPAT; do
11121
11122   acl_save_prefix="$prefix"
11123   prefix="$acl_final_prefix"
11124   acl_save_exec_prefix="$exec_prefix"
11125   exec_prefix="$acl_final_exec_prefix"
11126   eval x=\"$x\"
11127   exec_prefix="$acl_save_exec_prefix"
11128   prefix="$acl_save_prefix"
11129
11130                       if test "X$x" = "X-L$found_dir"; then
11131                         haveit=yes
11132                         break
11133                       fi
11134                     done
11135                     if test -z "$haveit"; then
11136                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11137                     fi
11138                     if test "$hardcode_minus_L" != no; then
11139                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11140                     else
11141                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11142                     fi
11143                   fi
11144                 fi
11145               fi
11146             else
11147               if test "X$found_a" != "X"; then
11148                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11149               else
11150                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11151               fi
11152             fi
11153                         additional_includedir=
11154             case "$found_dir" in
11155               */lib | */lib/)
11156                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11157                 additional_includedir="$basedir/include"
11158                 ;;
11159             esac
11160             if test "X$additional_includedir" != "X"; then
11161                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11162                 haveit=
11163                 if test "X$additional_includedir" = "X/usr/local/include"; then
11164                   if test -n "$GCC"; then
11165                     case $host_os in
11166                       linux*) haveit=yes;;
11167                     esac
11168                   fi
11169                 fi
11170                 if test -z "$haveit"; then
11171                   for x in $CPPFLAGS $INCEXPAT; do
11172
11173   acl_save_prefix="$prefix"
11174   prefix="$acl_final_prefix"
11175   acl_save_exec_prefix="$exec_prefix"
11176   exec_prefix="$acl_final_exec_prefix"
11177   eval x=\"$x\"
11178   exec_prefix="$acl_save_exec_prefix"
11179   prefix="$acl_save_prefix"
11180
11181                     if test "X$x" = "X-I$additional_includedir"; then
11182                       haveit=yes
11183                       break
11184                     fi
11185                   done
11186                   if test -z "$haveit"; then
11187                     if test -d "$additional_includedir"; then
11188                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11189                     fi
11190                   fi
11191                 fi
11192               fi
11193             fi
11194                         if test -n "$found_la"; then
11195                                                         save_libdir="$libdir"
11196               case "$found_la" in
11197                 */* | *\\*) . "$found_la" ;;
11198                 *) . "./$found_la" ;;
11199               esac
11200               libdir="$save_libdir"
11201                             for dep in $dependency_libs; do
11202                 case "$dep" in
11203                   -L*)
11204                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11205                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11206                       haveit=
11207                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11208                         if test -n "$GCC"; then
11209                           case $host_os in
11210                             linux*) haveit=yes;;
11211                           esac
11212                         fi
11213                       fi
11214                       if test -z "$haveit"; then
11215                         haveit=
11216                         for x in $LDFLAGS $LIBEXPAT; do
11217
11218   acl_save_prefix="$prefix"
11219   prefix="$acl_final_prefix"
11220   acl_save_exec_prefix="$exec_prefix"
11221   exec_prefix="$acl_final_exec_prefix"
11222   eval x=\"$x\"
11223   exec_prefix="$acl_save_exec_prefix"
11224   prefix="$acl_save_prefix"
11225
11226                           if test "X$x" = "X-L$additional_libdir"; then
11227                             haveit=yes
11228                             break
11229                           fi
11230                         done
11231                         if test -z "$haveit"; then
11232                           if test -d "$additional_libdir"; then
11233                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11234                           fi
11235                         fi
11236                         haveit=
11237                         for x in $LDFLAGS $LTLIBEXPAT; do
11238
11239   acl_save_prefix="$prefix"
11240   prefix="$acl_final_prefix"
11241   acl_save_exec_prefix="$exec_prefix"
11242   exec_prefix="$acl_final_exec_prefix"
11243   eval x=\"$x\"
11244   exec_prefix="$acl_save_exec_prefix"
11245   prefix="$acl_save_prefix"
11246
11247                           if test "X$x" = "X-L$additional_libdir"; then
11248                             haveit=yes
11249                             break
11250                           fi
11251                         done
11252                         if test -z "$haveit"; then
11253                           if test -d "$additional_libdir"; then
11254                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11255                           fi
11256                         fi
11257                       fi
11258                     fi
11259                     ;;
11260                   -R*)
11261                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11262                     if test "$enable_rpath" != no; then
11263                                                                   haveit=
11264                       for x in $rpathdirs; do
11265                         if test "X$x" = "X$dir"; then
11266                           haveit=yes
11267                           break
11268                         fi
11269                       done
11270                       if test -z "$haveit"; then
11271                         rpathdirs="$rpathdirs $dir"
11272                       fi
11273                                                                   haveit=
11274                       for x in $ltrpathdirs; do
11275                         if test "X$x" = "X$dir"; then
11276                           haveit=yes
11277                           break
11278                         fi
11279                       done
11280                       if test -z "$haveit"; then
11281                         ltrpathdirs="$ltrpathdirs $dir"
11282                       fi
11283                     fi
11284                     ;;
11285                   -l*)
11286                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11287                     ;;
11288                   *.la)
11289                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11290                     ;;
11291                   *)
11292                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11293                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11294                     ;;
11295                 esac
11296               done
11297             fi
11298           else
11299                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11300             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11301           fi
11302         fi
11303       fi
11304     done
11305   done
11306   if test "X$rpathdirs" != "X"; then
11307     if test -n "$hardcode_libdir_separator"; then
11308                         alldirs=
11309       for found_dir in $rpathdirs; do
11310         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11311       done
11312             acl_save_libdir="$libdir"
11313       libdir="$alldirs"
11314       eval flag=\"$hardcode_libdir_flag_spec\"
11315       libdir="$acl_save_libdir"
11316       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11317     else
11318             for found_dir in $rpathdirs; do
11319         acl_save_libdir="$libdir"
11320         libdir="$found_dir"
11321         eval flag=\"$hardcode_libdir_flag_spec\"
11322         libdir="$acl_save_libdir"
11323         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11324       done
11325     fi
11326   fi
11327   if test "X$ltrpathdirs" != "X"; then
11328             for found_dir in $ltrpathdirs; do
11329       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11330     done
11331   fi
11332
11333
11334         ac_save_CPPFLAGS="$CPPFLAGS"
11335
11336   for element in $INCEXPAT; do
11337     haveit=
11338     for x in $CPPFLAGS; do
11339
11340   acl_save_prefix="$prefix"
11341   prefix="$acl_final_prefix"
11342   acl_save_exec_prefix="$exec_prefix"
11343   exec_prefix="$acl_final_exec_prefix"
11344   eval x=\"$x\"
11345   exec_prefix="$acl_save_exec_prefix"
11346   prefix="$acl_save_prefix"
11347
11348       if test "X$x" = "X$element"; then
11349         haveit=yes
11350         break
11351       fi
11352     done
11353     if test -z "$haveit"; then
11354       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11355     fi
11356   done
11357
11358
11359   echo "$as_me:$LINENO: checking for libexpat" >&5
11360 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11361 if test "${ac_cv_libexpat+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364
11365     ac_save_LIBS="$LIBS"
11366     LIBS="$LIBS $LIBEXPAT"
11367     cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 #include "expat.h"
11374 int
11375 main ()
11376 {
11377 XML_Parser p = XML_ParserCreate (0);
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11384   (eval $ac_link) 2>conftest.er1
11385   ac_status=$?
11386   grep -v '^ *+' conftest.er1 >conftest.err
11387   rm -f conftest.er1
11388   cat conftest.err >&5
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } &&
11391          { ac_try='test -z "$ac_c_werror_flag"
11392                          || test ! -s conftest.err'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; } &&
11398          { ac_try='test -s conftest$ac_exeext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_cv_libexpat=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_cv_libexpat=no
11410 fi
11411 rm -f conftest.err conftest.$ac_objext \
11412       conftest$ac_exeext conftest.$ac_ext
11413     LIBS="$ac_save_LIBS"
11414
11415 fi
11416 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11417 echo "${ECHO_T}$ac_cv_libexpat" >&6
11418   if test "$ac_cv_libexpat" = yes; then
11419     HAVE_LIBEXPAT=yes
11420
11421 cat >>confdefs.h <<\_ACEOF
11422 #define HAVE_LIBEXPAT 1
11423 _ACEOF
11424
11425     echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11426 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11427     echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11428 echo "${ECHO_T}$LIBEXPAT" >&6
11429   else
11430     HAVE_LIBEXPAT=no
11431             CPPFLAGS="$ac_save_CPPFLAGS"
11432     LIBEXPAT=
11433     LTLIBEXPAT=
11434   fi
11435
11436
11437
11438
11439
11440
11441   if test "$HAVE_LIBEXPAT" != yes; then
11442     if test "$with_expat" = yes; then
11443       { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11444 echo "$as_me: error: expat is missing or unusable" >&2;}
11445    { (exit 1); exit 1; }; }
11446     else
11447       { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11448 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11449     fi
11450   else
11451     save_LIBS=$LIBS
11452     LIBS="$LIBS $LIBEXPAT"
11453
11454 for ac_func in XML_StopParser
11455 do
11456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11457 echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11459 if eval "test \"\${$as_ac_var+set}\" = set"; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11470 #define $ac_func innocuous_$ac_func
11471
11472 /* System header to define __stub macros and hopefully few prototypes,
11473     which can conflict with char $ac_func (); below.
11474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11475     <limits.h> exists even on freestanding compilers.  */
11476
11477 #ifdef __STDC__
11478 # include <limits.h>
11479 #else
11480 # include <assert.h>
11481 #endif
11482
11483 #undef $ac_func
11484
11485 /* Override any gcc2 internal prototype to avoid an error.  */
11486 #ifdef __cplusplus
11487 extern "C"
11488 {
11489 #endif
11490 /* We use char because int might match the return type of a gcc2
11491    builtin and then its argument prototype would still apply.  */
11492 char $ac_func ();
11493 /* The GNU C library defines this for functions which it implements
11494     to always fail with ENOSYS.  Some functions are actually named
11495     something starting with __ and the normal name is an alias.  */
11496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11497 choke me
11498 #else
11499 char (*f) () = $ac_func;
11500 #endif
11501 #ifdef __cplusplus
11502 }
11503 #endif
11504
11505 int
11506 main ()
11507 {
11508 return f != $ac_func;
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515   (eval $ac_link) 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } &&
11522          { ac_try='test -z "$ac_c_werror_flag"
11523                          || test ! -s conftest.err'
11524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525   (eval $ac_try) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; } &&
11529          { ac_try='test -s conftest$ac_exeext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   eval "$as_ac_var=yes"
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 eval "$as_ac_var=no"
11541 fi
11542 rm -f conftest.err conftest.$ac_objext \
11543       conftest$ac_exeext conftest.$ac_ext
11544 fi
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11547 if test `eval echo '${'$as_ac_var'}'` = yes; then
11548   cat >>confdefs.h <<_ACEOF
11549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11550 _ACEOF
11551
11552 fi
11553 done
11554
11555     LIBS=$save_LIBS
11556   fi
11557 fi
11558
11559
11560
11561
11562 # Check whether --with-python or --without-python was given.
11563 if test "${with_python+set}" = set; then
11564   withval="$with_python"
11565
11566 else
11567   with_python=auto
11568 fi;
11569 echo "$as_me:$LINENO: checking whether to use python" >&5
11570 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11571 echo "$as_me:$LINENO: result: $with_python" >&5
11572 echo "${ECHO_T}$with_python" >&6
11573
11574 if test "${with_python}" = no; then
11575   { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11576 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11577   have_libpython=no
11578 else
11579   case "${with_python}" in
11580   yes | auto)
11581     # Leave as empty, use defaults.
11582     python_includes=
11583     python_libs=
11584     ;;
11585   /*)
11586     python_includes="-I${with_python}/include"
11587     python_libs="-L${with_python}/lib"
11588     ;;
11589   *)
11590     { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11591 echo "$as_me: error: invalid value for --with-python" >&2;}
11592    { (exit 1); exit 1; }; }
11593     ;;
11594   esac
11595
11596   save_CPPFLAGS=$CPPFLAGS
11597   CPPFLAGS="$CPPFLAGS ${python_includes}"
11598   save_LIBS=$LIBS
11599   LIBS="$LIBS ${python_libs}"
11600   have_libpython=no
11601   if test "${have_libpython}" = no; then
11602
11603   version=python2.6
11604
11605
11606   HAVE_LIBPYTHON2_6=no
11607   echo "$as_me:$LINENO: checking for ${version}" >&5
11608 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11609   save_LIBS=$LIBS
11610   LIBS="$LIBS -l${version}"
11611   cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h.  */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h.  */
11617 #include "${version}/Python.h"
11618 int
11619 main ()
11620 {
11621 Py_Initialize ();
11622   ;
11623   return 0;
11624 }
11625 _ACEOF
11626 rm -f conftest.$ac_objext conftest$ac_exeext
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628   (eval $ac_link) 2>conftest.er1
11629   ac_status=$?
11630   grep -v '^ *+' conftest.er1 >conftest.err
11631   rm -f conftest.er1
11632   cat conftest.err >&5
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); } &&
11635          { ac_try='test -z "$ac_c_werror_flag"
11636                          || test ! -s conftest.err'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; } &&
11642          { ac_try='test -s conftest$ac_exeext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   HAVE_LIBPYTHON2_6=yes
11649                   have_libpython=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 LIBS=$save_LIBS
11655 fi
11656 rm -f conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11659 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11660
11661     if test "${HAVE_LIBPYTHON2_6}" = yes; then
11662
11663 cat >>confdefs.h <<\_ACEOF
11664 #define HAVE_LIBPYTHON2_6 1
11665 _ACEOF
11666
11667     fi
11668   fi
11669   if test ${have_libpython} = no; then
11670
11671   version=python2.5
11672
11673
11674   HAVE_LIBPYTHON2_5=no
11675   echo "$as_me:$LINENO: checking for ${version}" >&5
11676 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11677   save_LIBS=$LIBS
11678   LIBS="$LIBS -l${version}"
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #include "${version}/Python.h"
11686 int
11687 main ()
11688 {
11689 Py_Initialize ();
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696   (eval $ac_link) 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } &&
11703          { ac_try='test -z "$ac_c_werror_flag"
11704                          || test ! -s conftest.err'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   HAVE_LIBPYTHON2_5=yes
11717                   have_libpython=yes
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 LIBS=$save_LIBS
11723 fi
11724 rm -f conftest.err conftest.$ac_objext \
11725       conftest$ac_exeext conftest.$ac_ext
11726   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11727 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11728
11729     if test "${HAVE_LIBPYTHON2_5}" = yes; then
11730
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_LIBPYTHON2_5 1
11733 _ACEOF
11734
11735     fi
11736   fi
11737   if test ${have_libpython} = no; then
11738
11739   version=python2.4
11740
11741
11742   HAVE_LIBPYTHON2_4=no
11743   echo "$as_me:$LINENO: checking for ${version}" >&5
11744 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11745   save_LIBS=$LIBS
11746   LIBS="$LIBS -l${version}"
11747   cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 #include "${version}/Python.h"
11754 int
11755 main ()
11756 {
11757 Py_Initialize ();
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764   (eval $ac_link) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -z "$ac_c_werror_flag"
11772                          || test ! -s conftest.err'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest$ac_exeext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784   HAVE_LIBPYTHON2_4=yes
11785                   have_libpython=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 LIBS=$save_LIBS
11791 fi
11792 rm -f conftest.err conftest.$ac_objext \
11793       conftest$ac_exeext conftest.$ac_ext
11794   echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11795 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11796
11797     if test "${HAVE_LIBPYTHON2_4}" = yes; then
11798
11799 cat >>confdefs.h <<\_ACEOF
11800 #define HAVE_LIBPYTHON2_4 1
11801 _ACEOF
11802
11803     fi
11804   fi
11805   if test ${have_libpython} = no; then
11806     case "${with_python}" in
11807     yes)
11808       { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11809 echo "$as_me: error: python is missing or unusable" >&2;}
11810    { (exit 1); exit 1; }; }
11811       ;;
11812     auto)
11813       { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11814 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11815       ;;
11816     *)
11817       { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11818 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11819    { (exit 1); exit 1; }; }
11820       ;;
11821     esac
11822     CPPFLAGS=$save_CPPFLAGS
11823     LIBS=$save_LIBS
11824   fi
11825 fi
11826
11827 if test "${have_libpython}" = yes; then
11828
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_PYTHON 1
11831 _ACEOF
11832
11833   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11834   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11835   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11836   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11837
11838   # Flags needed to compile Python code (taken from python-config --cflags).
11839   # We cannot call python-config directly because it will output whatever was
11840   # used when compiling the Python interpreter itself, including flags which
11841   # would make the python-related objects be compiled differently from the
11842   # rest of GDB (e.g., -O2 and -fPIC).
11843   if test "${GCC}" = yes; then
11844     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11845   fi
11846
11847   if test "x${tentative_python_cflags}" != x; then
11848     echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11849 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11850     for flag in ${tentative_python_cflags}; do
11851       # Check that the compiler accepts it
11852       saved_CFLAGS="$CFLAGS"
11853       CFLAGS="$CFLAGS $flag"
11854       cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860
11861 int
11862 main ()
11863 {
11864
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 rm -f conftest.$ac_objext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11871   (eval $ac_compile) 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
11875   cat conftest.err >&5
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -z "$ac_c_werror_flag"
11879                          || test ! -s conftest.err'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; } &&
11885          { ac_try='test -s conftest.$ac_objext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 fi
11897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11898       CFLAGS="$saved_CFLAGS"
11899     done
11900     echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11901 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11902   fi
11903 else
11904   # Even if Python support is not compiled in, we need to have these files
11905   # included in order to recognize the GDB command "python".
11906   CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11907   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11908 fi
11909
11910
11911 # ------------------------- #
11912 # Checks for header files.  #
11913 # ------------------------- #
11914
11915
11916
11917
11918
11919
11920 ac_header_dirent=no
11921 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11922   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11923 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11924 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934 #include <sys/types.h>
11935 #include <$ac_hdr>
11936
11937 int
11938 main ()
11939 {
11940 if ((DIR *) 0)
11941 return 0;
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948   (eval $ac_compile) 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -z "$ac_c_werror_flag"
11956                          || test ! -s conftest.err'
11957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958   (eval $ac_try) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); }; } &&
11962          { ac_try='test -s conftest.$ac_objext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   eval "$as_ac_Header=yes"
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 eval "$as_ac_Header=no"
11974 fi
11975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11980   cat >>confdefs.h <<_ACEOF
11981 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11982 _ACEOF
11983
11984 ac_header_dirent=$ac_hdr; break
11985 fi
11986
11987 done
11988 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11989 if test $ac_header_dirent = dirent.h; then
11990   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11991 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11992 if test "${ac_cv_search_opendir+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   ac_func_search_save_LIBS=$LIBS
11996 ac_cv_search_opendir=no
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003
12004 /* Override any gcc2 internal prototype to avoid an error.  */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009    builtin and then its argument prototype would still apply.  */
12010 char opendir ();
12011 int
12012 main ()
12013 {
12014 opendir ();
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021   (eval $ac_link) 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag"
12029                          || test ! -s conftest.err'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_cv_search_opendir="none required"
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 fi
12047 rm -f conftest.err conftest.$ac_objext \
12048       conftest$ac_exeext conftest.$ac_ext
12049 if test "$ac_cv_search_opendir" = no; then
12050   for ac_lib in dir; do
12051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12052     cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058
12059 /* Override any gcc2 internal prototype to avoid an error.  */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064    builtin and then its argument prototype would still apply.  */
12065 char opendir ();
12066 int
12067 main ()
12068 {
12069 opendir ();
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076   (eval $ac_link) 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag"
12084                          || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   ac_cv_search_opendir="-l$ac_lib"
12097 break
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105   done
12106 fi
12107 LIBS=$ac_func_search_save_LIBS
12108 fi
12109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12111 if test "$ac_cv_search_opendir" != no; then
12112   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12113
12114 fi
12115
12116 else
12117   echo "$as_me:$LINENO: checking for library containing opendir" >&5
12118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12119 if test "${ac_cv_search_opendir+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   ac_func_search_save_LIBS=$LIBS
12123 ac_cv_search_opendir=no
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130
12131 /* Override any gcc2 internal prototype to avoid an error.  */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 /* We use char because int might match the return type of a gcc2
12136    builtin and then its argument prototype would still apply.  */
12137 char opendir ();
12138 int
12139 main ()
12140 {
12141 opendir ();
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148   (eval $ac_link) 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag"
12156                          || test ! -s conftest.err'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; } &&
12162          { ac_try='test -s conftest$ac_exeext'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; }; then
12168   ac_cv_search_opendir="none required"
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 fi
12174 rm -f conftest.err conftest.$ac_objext \
12175       conftest$ac_exeext conftest.$ac_ext
12176 if test "$ac_cv_search_opendir" = no; then
12177   for ac_lib in x; do
12178     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12179     cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185
12186 /* Override any gcc2 internal prototype to avoid an error.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 /* We use char because int might match the return type of a gcc2
12191    builtin and then its argument prototype would still apply.  */
12192 char opendir ();
12193 int
12194 main ()
12195 {
12196 opendir ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203   (eval $ac_link) 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag"
12211                          || test ! -s conftest.err'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_search_opendir="-l$ac_lib"
12224 break
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 fi
12230 rm -f conftest.err conftest.$ac_objext \
12231       conftest$ac_exeext conftest.$ac_ext
12232   done
12233 fi
12234 LIBS=$ac_func_search_save_LIBS
12235 fi
12236 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12237 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12238 if test "$ac_cv_search_opendir" != no; then
12239   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12240
12241 fi
12242
12243 fi
12244
12245 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12246 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12247 if test "${ac_cv_header_stat_broken+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256 #include <sys/types.h>
12257 #include <sys/stat.h>
12258
12259 #if defined(S_ISBLK) && defined(S_IFDIR)
12260 # if S_ISBLK (S_IFDIR)
12261 You lose.
12262 # endif
12263 #endif
12264
12265 #if defined(S_ISBLK) && defined(S_IFCHR)
12266 # if S_ISBLK (S_IFCHR)
12267 You lose.
12268 # endif
12269 #endif
12270
12271 #if defined(S_ISLNK) && defined(S_IFREG)
12272 # if S_ISLNK (S_IFREG)
12273 You lose.
12274 # endif
12275 #endif
12276
12277 #if defined(S_ISSOCK) && defined(S_IFREG)
12278 # if S_ISSOCK (S_IFREG)
12279 You lose.
12280 # endif
12281 #endif
12282
12283 _ACEOF
12284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285   $EGREP "You lose" >/dev/null 2>&1; then
12286   ac_cv_header_stat_broken=yes
12287 else
12288   ac_cv_header_stat_broken=no
12289 fi
12290 rm -f conftest*
12291
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12294 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12295 if test $ac_cv_header_stat_broken = yes; then
12296
12297 cat >>confdefs.h <<\_ACEOF
12298 #define STAT_MACROS_BROKEN 1
12299 _ACEOF
12300
12301 fi
12302
12303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12305 if test "${ac_cv_header_stdc+set}" = set; then
12306   echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308   cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314 #include <stdlib.h>
12315 #include <stdarg.h>
12316 #include <string.h>
12317 #include <float.h>
12318
12319 int
12320 main ()
12321 {
12322
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329   (eval $ac_compile) 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -z "$ac_c_werror_flag"
12337                          || test ! -s conftest.err'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; } &&
12343          { ac_try='test -s conftest.$ac_objext'
12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345   (eval $ac_try) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_header_stdc=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_cv_header_stdc=no
12355 fi
12356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12357
12358 if test $ac_cv_header_stdc = yes; then
12359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12360   cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h.  */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h.  */
12366 #include <string.h>
12367
12368 _ACEOF
12369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12370   $EGREP "memchr" >/dev/null 2>&1; then
12371   :
12372 else
12373   ac_cv_header_stdc=no
12374 fi
12375 rm -f conftest*
12376
12377 fi
12378
12379 if test $ac_cv_header_stdc = yes; then
12380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12381   cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387 #include <stdlib.h>
12388
12389 _ACEOF
12390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12391   $EGREP "free" >/dev/null 2>&1; then
12392   :
12393 else
12394   ac_cv_header_stdc=no
12395 fi
12396 rm -f conftest*
12397
12398 fi
12399
12400 if test $ac_cv_header_stdc = yes; then
12401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12402   if test "$cross_compiling" = yes; then
12403   :
12404 else
12405   cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 #include <ctype.h>
12412 #if ((' ' & 0x0FF) == 0x020)
12413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12415 #else
12416 # define ISLOWER(c) \
12417                    (('a' <= (c) && (c) <= 'i') \
12418                      || ('j' <= (c) && (c) <= 'r') \
12419                      || ('s' <= (c) && (c) <= 'z'))
12420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12421 #endif
12422
12423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12424 int
12425 main ()
12426 {
12427   int i;
12428   for (i = 0; i < 256; i++)
12429     if (XOR (islower (i), ISLOWER (i))
12430         || toupper (i) != TOUPPER (i))
12431       exit(2);
12432   exit (0);
12433 }
12434 _ACEOF
12435 rm -f conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437   (eval $ac_link) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442   (eval $ac_try) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; }; then
12446   :
12447 else
12448   echo "$as_me: program exited with status $ac_status" >&5
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ( exit $ac_status )
12453 ac_cv_header_stdc=no
12454 fi
12455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12456 fi
12457 fi
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12461 if test $ac_cv_header_stdc = yes; then
12462
12463 cat >>confdefs.h <<\_ACEOF
12464 #define STDC_HEADERS 1
12465 _ACEOF
12466
12467 fi
12468
12469 # elf_hp.h is for HP/UX 64-bit shared library support.
12470 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12471 # unconditionally, so what's the point in checking these?
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12510                   thread_db.h gnu/libc-version.h signal.h stddef.h \
12511                   stdlib.h string.h memory.h strings.h sys/fault.h \
12512                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12513                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12514                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12515                   sys/types.h sys/wait.h wait.h termios.h termio.h \
12516                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12517 do
12518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12520   echo "$as_me:$LINENO: checking for $ac_header" >&5
12521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 fi
12525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12527 else
12528   # Is the header compilable?
12529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 $ac_includes_default
12538 #include <$ac_header>
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag"
12550                          || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_header_compiler=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_compiler=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12571 echo "${ECHO_T}$ac_header_compiler" >&6
12572
12573 # Is the header present?
12574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <$ac_header>
12583 _ACEOF
12584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } >/dev/null; then
12592   if test -s conftest.err; then
12593     ac_cpp_err=$ac_c_preproc_warn_flag
12594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12595   else
12596     ac_cpp_err=
12597   fi
12598 else
12599   ac_cpp_err=yes
12600 fi
12601 if test -z "$ac_cpp_err"; then
12602   ac_header_preproc=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607   ac_header_preproc=no
12608 fi
12609 rm -f conftest.err conftest.$ac_ext
12610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12611 echo "${ECHO_T}$ac_header_preproc" >&6
12612
12613 # So?  What about this header?
12614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12615   yes:no: )
12616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12620     ac_header_preproc=yes
12621     ;;
12622   no:yes:* )
12623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12635     (
12636       cat <<\_ASBOX
12637 ## ------------------------------------------ ##
12638 ## Report this to the AC_PACKAGE_NAME lists.  ##
12639 ## ------------------------------------------ ##
12640 _ASBOX
12641     ) |
12642       sed "s/^/$as_me: WARNING:     /" >&2
12643     ;;
12644 esac
12645 echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648   echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650   eval "$as_ac_Header=\$ac_header_preproc"
12651 fi
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12654
12655 fi
12656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12657   cat >>confdefs.h <<_ACEOF
12658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12659 _ACEOF
12660
12661 fi
12662
12663 done
12664
12665
12666 for ac_header in link.h
12667 do
12668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12669 echo "$as_me:$LINENO: checking for $ac_header" >&5
12670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680 #if HAVE_SYS_TYPES_H
12681 # include <sys/types.h>
12682 #endif
12683 #if HAVE_NLIST_H
12684 # include <nlist.h>
12685 #endif
12686
12687
12688 #include <$ac_header>
12689 _ACEOF
12690 rm -f conftest.$ac_objext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692   (eval $ac_compile) 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag"
12700                          || test ! -s conftest.err'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; } &&
12706          { ac_try='test -s conftest.$ac_objext'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; }; then
12712   eval "$as_ac_Header=yes"
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 eval "$as_ac_Header=no"
12718 fi
12719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12720 fi
12721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724   cat >>confdefs.h <<_ACEOF
12725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726 _ACEOF
12727
12728 fi
12729
12730 done
12731
12732
12733 for ac_header in sys/proc.h
12734 do
12735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12736 echo "$as_me:$LINENO: checking for $ac_header" >&5
12737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12739   echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741   cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 #if HAVE_SYS_PARAM_H
12748 # include <sys/param.h>
12749 #endif
12750
12751
12752 #include <$ac_header>
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756   (eval $ac_compile) 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_c_werror_flag"
12764                          || test ! -s conftest.err'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest.$ac_objext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   eval "$as_ac_Header=yes"
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 eval "$as_ac_Header=no"
12782 fi
12783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784 fi
12785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12788   cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12790 _ACEOF
12791
12792 fi
12793
12794 done
12795
12796
12797 for ac_header in sys/user.h
12798 do
12799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_header" >&5
12801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 #if HAVE_SYS_PARAM_H
12812 # include <sys/param.h>
12813 #endif
12814
12815
12816 #include <$ac_header>
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820   (eval $ac_compile) 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -z "$ac_c_werror_flag"
12828                          || test ! -s conftest.err'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; } &&
12834          { ac_try='test -s conftest.$ac_objext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   eval "$as_ac_Header=yes"
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 eval "$as_ac_Header=no"
12846 fi
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 fi
12849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12852   cat >>confdefs.h <<_ACEOF
12853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854 _ACEOF
12855
12856 fi
12857
12858 done
12859
12860
12861 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12862 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12863 # think that we don't have <curses.h> if we're using GCC.
12864 case $host_os in
12865   solaris2.[789])
12866     if test "$GCC" = yes; then
12867
12868 cat >>confdefs.h <<\_ACEOF
12869 #define _MSE_INT_H 1
12870 _ACEOF
12871
12872     fi ;;
12873 esac
12874
12875
12876
12877
12878
12879 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12880 do
12881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883   echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 fi
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12890 else
12891   # Is the header compilable?
12892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 $ac_includes_default
12901 #include <$ac_header>
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag"
12913                          || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_header_compiler=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_header_compiler=no
12931 fi
12932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12934 echo "${ECHO_T}$ac_header_compiler" >&6
12935
12936 # Is the header present?
12937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 #include <$ac_header>
12946 _ACEOF
12947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12949   ac_status=$?
12950   grep -v '^ *+' conftest.er1 >conftest.err
12951   rm -f conftest.er1
12952   cat conftest.err >&5
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } >/dev/null; then
12955   if test -s conftest.err; then
12956     ac_cpp_err=$ac_c_preproc_warn_flag
12957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12958   else
12959     ac_cpp_err=
12960   fi
12961 else
12962   ac_cpp_err=yes
12963 fi
12964 if test -z "$ac_cpp_err"; then
12965   ac_header_preproc=yes
12966 else
12967   echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12969
12970   ac_header_preproc=no
12971 fi
12972 rm -f conftest.err conftest.$ac_ext
12973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12974 echo "${ECHO_T}$ac_header_preproc" >&6
12975
12976 # So?  What about this header?
12977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12978   yes:no: )
12979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12983     ac_header_preproc=yes
12984     ;;
12985   no:yes:* )
12986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12998     (
12999       cat <<\_ASBOX
13000 ## ------------------------------------------ ##
13001 ## Report this to the AC_PACKAGE_NAME lists.  ##
13002 ## ------------------------------------------ ##
13003 _ASBOX
13004     ) |
13005       sed "s/^/$as_me: WARNING:     /" >&2
13006     ;;
13007 esac
13008 echo "$as_me:$LINENO: checking for $ac_header" >&5
13009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13011   echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013   eval "$as_ac_Header=\$ac_header_preproc"
13014 fi
13015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13017
13018 fi
13019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13020   cat >>confdefs.h <<_ACEOF
13021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13022 _ACEOF
13023
13024 fi
13025
13026 done
13027
13028
13029 for ac_header in term.h
13030 do
13031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13032 echo "$as_me:$LINENO: checking for $ac_header" >&5
13033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 #if HAVE_CURSES_H
13044 # include <curses.h>
13045 #endif
13046
13047
13048 #include <$ac_header>
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052   (eval $ac_compile) 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } &&
13059          { ac_try='test -z "$ac_c_werror_flag"
13060                          || test ! -s conftest.err'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; } &&
13066          { ac_try='test -s conftest.$ac_objext'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; }; then
13072   eval "$as_ac_Header=yes"
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 eval "$as_ac_Header=no"
13078 fi
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 fi
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13084   cat >>confdefs.h <<_ACEOF
13085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 _ACEOF
13087
13088 fi
13089
13090 done
13091
13092
13093 # ------------------------- #
13094 # Checks for declarations.  #
13095 # ------------------------- #
13096
13097 echo "$as_me:$LINENO: checking whether free is declared" >&5
13098 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13099 if test "${ac_cv_have_decl_free+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108 $ac_includes_default
13109 int
13110 main ()
13111 {
13112 #ifndef free
13113   char *p = (char *) free;
13114 #endif
13115
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13122   (eval $ac_compile) 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag"
13130                          || test ! -s conftest.err'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; } &&
13136          { ac_try='test -s conftest.$ac_objext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_cv_have_decl_free=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_cv_have_decl_free=no
13148 fi
13149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13152 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13153 if test $ac_cv_have_decl_free = yes; then
13154
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_DECL_FREE 1
13157 _ACEOF
13158
13159
13160 else
13161   cat >>confdefs.h <<_ACEOF
13162 #define HAVE_DECL_FREE 0
13163 _ACEOF
13164
13165
13166 fi
13167 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13168 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13169 if test "${ac_cv_have_decl_malloc+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178 $ac_includes_default
13179 int
13180 main ()
13181 {
13182 #ifndef malloc
13183   char *p = (char *) malloc;
13184 #endif
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -z "$ac_c_werror_flag"
13200                          || test ! -s conftest.err'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; } &&
13206          { ac_try='test -s conftest.$ac_objext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_cv_have_decl_malloc=yes
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217 ac_cv_have_decl_malloc=no
13218 fi
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13222 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13223 if test $ac_cv_have_decl_malloc = yes; then
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_DECL_MALLOC 1
13227 _ACEOF
13228
13229
13230 else
13231   cat >>confdefs.h <<_ACEOF
13232 #define HAVE_DECL_MALLOC 0
13233 _ACEOF
13234
13235
13236 fi
13237 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13238 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13239 if test "${ac_cv_have_decl_realloc+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242   cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 $ac_includes_default
13249 int
13250 main ()
13251 {
13252 #ifndef realloc
13253   char *p = (char *) realloc;
13254 #endif
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -z "$ac_c_werror_flag"
13270                          || test ! -s conftest.err'
13271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272   (eval $ac_try) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; } &&
13276          { ac_try='test -s conftest.$ac_objext'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; }; then
13282   ac_cv_have_decl_realloc=yes
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_cv_have_decl_realloc=no
13288 fi
13289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13292 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13293 if test $ac_cv_have_decl_realloc = yes; then
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_DECL_REALLOC 1
13297 _ACEOF
13298
13299
13300 else
13301   cat >>confdefs.h <<_ACEOF
13302 #define HAVE_DECL_REALLOC 0
13303 _ACEOF
13304
13305
13306 fi
13307 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13308 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13309 if test "${ac_cv_have_decl_strerror+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 $ac_includes_default
13319 int
13320 main ()
13321 {
13322 #ifndef strerror
13323   char *p = (char *) strerror;
13324 #endif
13325
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332   (eval $ac_compile) 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -z "$ac_c_werror_flag"
13340                          || test ! -s conftest.err'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; } &&
13346          { ac_try='test -s conftest.$ac_objext'
13347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348   (eval $ac_try) 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_have_decl_strerror=yes
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_cv_have_decl_strerror=no
13358 fi
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13362 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13363 if test $ac_cv_have_decl_strerror = yes; then
13364
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_DECL_STRERROR 1
13367 _ACEOF
13368
13369
13370 else
13371   cat >>confdefs.h <<_ACEOF
13372 #define HAVE_DECL_STRERROR 0
13373 _ACEOF
13374
13375
13376 fi
13377 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13378 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13379 if test "${ac_cv_have_decl_strstr+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 $ac_includes_default
13389 int
13390 main ()
13391 {
13392 #ifndef strstr
13393   char *p = (char *) strstr;
13394 #endif
13395
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13402   (eval $ac_compile) 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_c_werror_flag"
13410                          || test ! -s conftest.err'
13411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412   (eval $ac_try) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; } &&
13416          { ac_try='test -s conftest.$ac_objext'
13417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418   (eval $ac_try) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; }; then
13422   ac_cv_have_decl_strstr=yes
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427 ac_cv_have_decl_strstr=no
13428 fi
13429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13432 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13433 if test $ac_cv_have_decl_strstr = yes; then
13434
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_DECL_STRSTR 1
13437 _ACEOF
13438
13439
13440 else
13441   cat >>confdefs.h <<_ACEOF
13442 #define HAVE_DECL_STRSTR 0
13443 _ACEOF
13444
13445
13446 fi
13447 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13448 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13449 if test "${ac_cv_have_decl_getopt+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458 $ac_includes_default
13459 int
13460 main ()
13461 {
13462 #ifndef getopt
13463   char *p = (char *) getopt;
13464 #endif
13465
13466   ;
13467   return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472   (eval $ac_compile) 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } &&
13479          { ac_try='test -z "$ac_c_werror_flag"
13480                          || test ! -s conftest.err'
13481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482   (eval $ac_try) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; } &&
13486          { ac_try='test -s conftest.$ac_objext'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_have_decl_getopt=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_cv_have_decl_getopt=no
13498 fi
13499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13502 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13503 if test $ac_cv_have_decl_getopt = yes; then
13504
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_DECL_GETOPT 1
13507 _ACEOF
13508
13509
13510 else
13511   cat >>confdefs.h <<_ACEOF
13512 #define HAVE_DECL_GETOPT 0
13513 _ACEOF
13514
13515
13516 fi
13517 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13518 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13519 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   cat >conftest.$ac_ext <<_ACEOF
13523 /* confdefs.h.  */
13524 _ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h.  */
13528 $ac_includes_default
13529 int
13530 main ()
13531 {
13532 #ifndef snprintf
13533   char *p = (char *) snprintf;
13534 #endif
13535
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542   (eval $ac_compile) 2>conftest.er1
13543   ac_status=$?
13544   grep -v '^ *+' conftest.er1 >conftest.err
13545   rm -f conftest.er1
13546   cat conftest.err >&5
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } &&
13549          { ac_try='test -z "$ac_c_werror_flag"
13550                          || test ! -s conftest.err'
13551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552   (eval $ac_try) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; } &&
13556          { ac_try='test -s conftest.$ac_objext'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; }; then
13562   ac_cv_have_decl_snprintf=yes
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_cv_have_decl_snprintf=no
13568 fi
13569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570 fi
13571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13572 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13573 if test $ac_cv_have_decl_snprintf = yes; then
13574
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_DECL_SNPRINTF 1
13577 _ACEOF
13578
13579
13580 else
13581   cat >>confdefs.h <<_ACEOF
13582 #define HAVE_DECL_SNPRINTF 0
13583 _ACEOF
13584
13585
13586 fi
13587 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13588 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13589 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13590   echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592   cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598 $ac_includes_default
13599 int
13600 main ()
13601 {
13602 #ifndef vsnprintf
13603   char *p = (char *) vsnprintf;
13604 #endif
13605
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612   (eval $ac_compile) 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag"
13620                          || test ! -s conftest.err'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest.$ac_objext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   ac_cv_have_decl_vsnprintf=yes
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_cv_have_decl_vsnprintf=no
13638 fi
13639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13642 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13643 if test $ac_cv_have_decl_vsnprintf = yes; then
13644
13645 cat >>confdefs.h <<_ACEOF
13646 #define HAVE_DECL_VSNPRINTF 1
13647 _ACEOF
13648
13649
13650 else
13651   cat >>confdefs.h <<_ACEOF
13652 #define HAVE_DECL_VSNPRINTF 0
13653 _ACEOF
13654
13655
13656 fi
13657
13658
13659
13660   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13661 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13662 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671 #include <locale.h>
13672 int
13673 main ()
13674 {
13675 return LC_MESSAGES
13676   ;
13677   return 0;
13678 }
13679 _ACEOF
13680 rm -f conftest.$ac_objext conftest$ac_exeext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13682   (eval $ac_link) 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } &&
13689          { ac_try='test -z "$ac_c_werror_flag"
13690                          || test ! -s conftest.err'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; } &&
13696          { ac_try='test -s conftest$ac_exeext'
13697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698   (eval $ac_try) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }; }; then
13702   am_cv_val_LC_MESSAGES=yes
13703 else
13704   echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 am_cv_val_LC_MESSAGES=no
13708 fi
13709 rm -f conftest.err conftest.$ac_objext \
13710       conftest$ac_exeext conftest.$ac_ext
13711 fi
13712 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13713 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13714   if test $am_cv_val_LC_MESSAGES = yes; then
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_LC_MESSAGES 1
13718 _ACEOF
13719
13720   fi
13721
13722
13723 # ----------------------- #
13724 # Checks for structures.  #
13725 # ----------------------- #
13726
13727 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13728 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13729 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13730   echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732   cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738 $ac_includes_default
13739 int
13740 main ()
13741 {
13742 static struct stat ac_aggr;
13743 if (ac_aggr.st_blocks)
13744 return 0;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -z "$ac_c_werror_flag"
13759                          || test ! -s conftest.err'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   ac_cv_member_struct_stat_st_blocks=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 int
13784 main ()
13785 {
13786 static struct stat ac_aggr;
13787 if (sizeof ac_aggr.st_blocks)
13788 return 0;
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795   (eval $ac_compile) 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -z "$ac_c_werror_flag"
13803                          || test ! -s conftest.err'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest.$ac_objext'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815   ac_cv_member_struct_stat_st_blocks=yes
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_cv_member_struct_stat_st_blocks=no
13821 fi
13822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13823 fi
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13827 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13828 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13829
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13832 _ACEOF
13833
13834
13835 fi
13836 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13837 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13838 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h.  */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h.  */
13847 $ac_includes_default
13848 int
13849 main ()
13850 {
13851 static struct stat ac_aggr;
13852 if (ac_aggr.st_blksize)
13853 return 0;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_c_werror_flag"
13868                          || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest.$ac_objext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_cv_member_struct_stat_st_blksize=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h.  */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h.  */
13891 $ac_includes_default
13892 int
13893 main ()
13894 {
13895 static struct stat ac_aggr;
13896 if (sizeof ac_aggr.st_blksize)
13897 return 0;
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904   (eval $ac_compile) 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } &&
13911          { ac_try='test -z "$ac_c_werror_flag"
13912                          || test ! -s conftest.err'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest.$ac_objext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_cv_member_struct_stat_st_blksize=yes
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_cv_member_struct_stat_st_blksize=no
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932 fi
13933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934 fi
13935 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13936 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13937 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13938
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13941 _ACEOF
13942
13943
13944 fi
13945
13946
13947 # ------------------ #
13948 # Checks for types.  #
13949 # ------------------ #
13950
13951 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13953 if test "${ac_cv_type_signal+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956   cat >conftest.$ac_ext <<_ACEOF
13957 /* confdefs.h.  */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h.  */
13962 #include <sys/types.h>
13963 #include <signal.h>
13964 #ifdef signal
13965 # undef signal
13966 #endif
13967 #ifdef __cplusplus
13968 extern "C" void (*signal (int, void (*)(int)))(int);
13969 #else
13970 void (*signal ()) ();
13971 #endif
13972
13973 int
13974 main ()
13975 {
13976 int i;
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983   (eval $ac_compile) 2>conftest.er1
13984   ac_status=$?
13985   grep -v '^ *+' conftest.er1 >conftest.err
13986   rm -f conftest.er1
13987   cat conftest.err >&5
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -z "$ac_c_werror_flag"
13991                          || test ! -s conftest.err'
13992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993   (eval $ac_try) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; } &&
13997          { ac_try='test -s conftest.$ac_objext'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; }; then
14003   ac_cv_type_signal=void
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 ac_cv_type_signal=int
14009 fi
14010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14011 fi
14012 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14013 echo "${ECHO_T}$ac_cv_type_signal" >&6
14014
14015 cat >>confdefs.h <<_ACEOF
14016 #define RETSIGTYPE $ac_cv_type_signal
14017 _ACEOF
14018
14019
14020 echo "$as_me:$LINENO: checking for socklen_t" >&5
14021 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14022 if test "${ac_cv_type_socklen_t+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031 #include <sys/types.h>
14032 #include <sys/socket.h>
14033
14034
14035 int
14036 main ()
14037 {
14038 if ((socklen_t *) 0)
14039   return 0;
14040 if (sizeof (socklen_t))
14041   return 0;
14042   ;
14043   return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048   (eval $ac_compile) 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } &&
14055          { ac_try='test -z "$ac_c_werror_flag"
14056                          || test ! -s conftest.err'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; } &&
14062          { ac_try='test -s conftest.$ac_objext'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068   ac_cv_type_socklen_t=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_cv_type_socklen_t=no
14074 fi
14075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14076 fi
14077 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14078 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14079 if test $ac_cv_type_socklen_t = yes; then
14080
14081 cat >>confdefs.h <<_ACEOF
14082 #define HAVE_SOCKLEN_T 1
14083 _ACEOF
14084
14085
14086 fi
14087
14088
14089 # ------------------------------------- #
14090 # Checks for compiler characteristics.  #
14091 # ------------------------------------- #
14092
14093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14095 if test "${ac_cv_c_const+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104
14105 int
14106 main ()
14107 {
14108 /* FIXME: Include the comments suggested by Paul. */
14109 #ifndef __cplusplus
14110   /* Ultrix mips cc rejects this.  */
14111   typedef int charset[2];
14112   const charset x;
14113   /* SunOS 4.1.1 cc rejects this.  */
14114   char const *const *ccp;
14115   char **p;
14116   /* NEC SVR4.0.2 mips cc rejects this.  */
14117   struct point {int x, y;};
14118   static struct point const zero = {0,0};
14119   /* AIX XL C 1.02.0.0 rejects this.
14120      It does not let you subtract one const X* pointer from another in
14121      an arm of an if-expression whose if-part is not a constant
14122      expression */
14123   const char *g = "string";
14124   ccp = &g + (g ? g-g : 0);
14125   /* HPUX 7.0 cc rejects these. */
14126   ++ccp;
14127   p = (char**) ccp;
14128   ccp = (char const *const *) p;
14129   { /* SCO 3.2v4 cc rejects this.  */
14130     char *t;
14131     char const *s = 0 ? (char *) 0 : (char const *) 0;
14132
14133     *t++ = 0;
14134   }
14135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14136     int x[] = {25, 17};
14137     const int *foo = &x[0];
14138     ++foo;
14139   }
14140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14141     typedef const int *iptr;
14142     iptr p = 0;
14143     ++p;
14144   }
14145   { /* AIX XL C 1.02.0.0 rejects this saying
14146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14147     struct s { int j; const int *ap[3]; };
14148     struct s *b; b->j = 5;
14149   }
14150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14151     const int foo = 10;
14152   }
14153 #endif
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -z "$ac_c_werror_flag"
14169                          || test ! -s conftest.err'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; } &&
14175          { ac_try='test -s conftest.$ac_objext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_cv_c_const=yes
14182 else
14183   echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186 ac_cv_c_const=no
14187 fi
14188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14189 fi
14190 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14191 echo "${ECHO_T}$ac_cv_c_const" >&6
14192 if test $ac_cv_c_const = no; then
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define const
14196 _ACEOF
14197
14198 fi
14199
14200 echo "$as_me:$LINENO: checking for inline" >&5
14201 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14202 if test "${ac_cv_c_inline+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   ac_cv_c_inline=no
14206 for ac_kw in inline __inline__ __inline; do
14207   cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h.  */
14213 #ifndef __cplusplus
14214 typedef int foo_t;
14215 static $ac_kw foo_t static_foo () {return 0; }
14216 $ac_kw foo_t foo () {return 0; }
14217 #endif
14218
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222   (eval $ac_compile) 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_c_werror_flag"
14230                          || test ! -s conftest.err'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest.$ac_objext'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }; then
14242   ac_cv_c_inline=$ac_kw; break
14243 else
14244   echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 fi
14248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14249 done
14250
14251 fi
14252 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14253 echo "${ECHO_T}$ac_cv_c_inline" >&6
14254
14255
14256 case $ac_cv_c_inline in
14257   inline | yes) ;;
14258   *)
14259     case $ac_cv_c_inline in
14260       no) ac_val=;;
14261       *) ac_val=$ac_cv_c_inline;;
14262     esac
14263     cat >>confdefs.h <<_ACEOF
14264 #ifndef __cplusplus
14265 #define inline $ac_val
14266 #endif
14267 _ACEOF
14268     ;;
14269 esac
14270
14271 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14272 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14273 if test "${ac_cv_c_bigendian+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   # See if sys/param.h defines the BYTE_ORDER macro.
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 #include <sys/types.h>
14284 #include <sys/param.h>
14285
14286 int
14287 main ()
14288 {
14289 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14290  bogus endian macros
14291 #endif
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299   (eval $ac_compile) 2>conftest.er1
14300   ac_status=$?
14301   grep -v '^ *+' conftest.er1 >conftest.err
14302   rm -f conftest.er1
14303   cat conftest.err >&5
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); } &&
14306          { ac_try='test -z "$ac_c_werror_flag"
14307                          || test ! -s conftest.err'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; } &&
14313          { ac_try='test -s conftest.$ac_objext'
14314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315   (eval $ac_try) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; }; then
14319   # It does; now see whether it defined to BIG_ENDIAN or not.
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 #include <sys/types.h>
14327 #include <sys/param.h>
14328
14329 int
14330 main ()
14331 {
14332 #if BYTE_ORDER != BIG_ENDIAN
14333  not big endian
14334 #endif
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342   (eval $ac_compile) 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -z "$ac_c_werror_flag"
14350                          || test ! -s conftest.err'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_cv_c_bigendian=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ac_cv_c_bigendian=no
14368 fi
14369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14370 else
14371   echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 # It does not; compile a test program.
14375 if test "$cross_compiling" = yes; then
14376   # try to guess the endianness by grepping values into an object file
14377   ac_cv_c_bigendian=unknown
14378   cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14385 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14386 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14387 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14388 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14389 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14390 int
14391 main ()
14392 {
14393  _ascii (); _ebcdic ();
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400   (eval $ac_compile) 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } &&
14407          { ac_try='test -z "$ac_c_werror_flag"
14408                          || test ! -s conftest.err'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; } &&
14414          { ac_try='test -s conftest.$ac_objext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14421   ac_cv_c_bigendian=yes
14422 fi
14423 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14424   if test "$ac_cv_c_bigendian" = unknown; then
14425     ac_cv_c_bigendian=no
14426   else
14427     # finding both strings is unlikely to happen, but who knows?
14428     ac_cv_c_bigendian=unknown
14429   fi
14430 fi
14431 else
14432   echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 fi
14436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14437 else
14438   cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 int
14445 main ()
14446 {
14447   /* Are we little or big endian?  From Harbison&Steele.  */
14448   union
14449   {
14450     long l;
14451     char c[sizeof (long)];
14452   } u;
14453   u.l = 1;
14454   exit (u.c[sizeof (long) - 1] == 1);
14455 }
14456 _ACEOF
14457 rm -f conftest$ac_exeext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14459   (eval $ac_link) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_c_bigendian=no
14469 else
14470   echo "$as_me: program exited with status $ac_status" >&5
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ( exit $ac_status )
14475 ac_cv_c_bigendian=yes
14476 fi
14477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 fi
14480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14483 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14484 case $ac_cv_c_bigendian in
14485   yes)
14486
14487 cat >>confdefs.h <<\_ACEOF
14488 #define WORDS_BIGENDIAN 1
14489 _ACEOF
14490  ;;
14491   no)
14492      ;;
14493   *)
14494     { { echo "$as_me:$LINENO: error: unknown endianness
14495 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14496 echo "$as_me: error: unknown endianness
14497 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14498    { (exit 1); exit 1; }; } ;;
14499 esac
14500
14501
14502 # ------------------------------ #
14503 # Checks for library functions.  #
14504 # ------------------------------ #
14505
14506 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14507 # for constant arguments.  Useless!
14508 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14509 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14510 if test "${ac_cv_working_alloca_h+set}" = set; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513   cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519 #include <alloca.h>
14520 int
14521 main ()
14522 {
14523 char *p = (char *) alloca (2 * sizeof (int));
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530   (eval $ac_link) 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } &&
14537          { ac_try='test -z "$ac_c_werror_flag"
14538                          || test ! -s conftest.err'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; } &&
14544          { ac_try='test -s conftest$ac_exeext'
14545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546   (eval $ac_try) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; }; then
14550   ac_cv_working_alloca_h=yes
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 ac_cv_working_alloca_h=no
14556 fi
14557 rm -f conftest.err conftest.$ac_objext \
14558       conftest$ac_exeext conftest.$ac_ext
14559 fi
14560 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14561 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14562 if test $ac_cv_working_alloca_h = yes; then
14563
14564 cat >>confdefs.h <<\_ACEOF
14565 #define HAVE_ALLOCA_H 1
14566 _ACEOF
14567
14568 fi
14569
14570 echo "$as_me:$LINENO: checking for alloca" >&5
14571 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14572 if test "${ac_cv_func_alloca_works+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581 #ifdef __GNUC__
14582 # define alloca __builtin_alloca
14583 #else
14584 # ifdef _MSC_VER
14585 #  include <malloc.h>
14586 #  define alloca _alloca
14587 # else
14588 #  if HAVE_ALLOCA_H
14589 #   include <alloca.h>
14590 #  else
14591 #   ifdef _AIX
14592  #pragma alloca
14593 #   else
14594 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14595 char *alloca ();
14596 #    endif
14597 #   endif
14598 #  endif
14599 # endif
14600 #endif
14601
14602 int
14603 main ()
14604 {
14605 char *p = (char *) alloca (1);
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612   (eval $ac_link) 2>conftest.er1
14613   ac_status=$?
14614   grep -v '^ *+' conftest.er1 >conftest.err
14615   rm -f conftest.er1
14616   cat conftest.err >&5
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } &&
14619          { ac_try='test -z "$ac_c_werror_flag"
14620                          || test ! -s conftest.err'
14621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622   (eval $ac_try) 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; } &&
14626          { ac_try='test -s conftest$ac_exeext'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; }; then
14632   ac_cv_func_alloca_works=yes
14633 else
14634   echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14636
14637 ac_cv_func_alloca_works=no
14638 fi
14639 rm -f conftest.err conftest.$ac_objext \
14640       conftest$ac_exeext conftest.$ac_ext
14641 fi
14642 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14643 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14644
14645 if test $ac_cv_func_alloca_works = yes; then
14646
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_ALLOCA 1
14649 _ACEOF
14650
14651 else
14652   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14653 # that cause trouble.  Some versions do not even contain alloca or
14654 # contain a buggy version.  If you still want to use their alloca,
14655 # use ar to extract alloca.o from them instead of compiling alloca.c.
14656
14657 ALLOCA=alloca.$ac_objext
14658
14659 cat >>confdefs.h <<\_ACEOF
14660 #define C_ALLOCA 1
14661 _ACEOF
14662
14663
14664 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14665 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14666 if test "${ac_cv_os_cray+set}" = set; then
14667   echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669   cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675 #if defined(CRAY) && ! defined(CRAY2)
14676 webecray
14677 #else
14678 wenotbecray
14679 #endif
14680
14681 _ACEOF
14682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14683   $EGREP "webecray" >/dev/null 2>&1; then
14684   ac_cv_os_cray=yes
14685 else
14686   ac_cv_os_cray=no
14687 fi
14688 rm -f conftest*
14689
14690 fi
14691 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14692 echo "${ECHO_T}$ac_cv_os_cray" >&6
14693 if test $ac_cv_os_cray = yes; then
14694   for ac_func in _getb67 GETB67 getb67; do
14695     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 echo "$as_me:$LINENO: checking for $ac_func" >&5
14697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14698 if eval "test \"\${$as_ac_var+set}\" = set"; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h.  */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h.  */
14707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14709 #define $ac_func innocuous_$ac_func
14710
14711 /* System header to define __stub macros and hopefully few prototypes,
14712     which can conflict with char $ac_func (); below.
14713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714     <limits.h> exists even on freestanding compilers.  */
14715
14716 #ifdef __STDC__
14717 # include <limits.h>
14718 #else
14719 # include <assert.h>
14720 #endif
14721
14722 #undef $ac_func
14723
14724 /* Override any gcc2 internal prototype to avoid an error.  */
14725 #ifdef __cplusplus
14726 extern "C"
14727 {
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730    builtin and then its argument prototype would still apply.  */
14731 char $ac_func ();
14732 /* The GNU C library defines this for functions which it implements
14733     to always fail with ENOSYS.  Some functions are actually named
14734     something starting with __ and the normal name is an alias.  */
14735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14736 choke me
14737 #else
14738 char (*f) () = $ac_func;
14739 #endif
14740 #ifdef __cplusplus
14741 }
14742 #endif
14743
14744 int
14745 main ()
14746 {
14747 return f != $ac_func;
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754   (eval $ac_link) 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -z "$ac_c_werror_flag"
14762                          || test ! -s conftest.err'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; } &&
14768          { ac_try='test -s conftest$ac_exeext'
14769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770   (eval $ac_try) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }; }; then
14774   eval "$as_ac_var=yes"
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 eval "$as_ac_var=no"
14780 fi
14781 rm -f conftest.err conftest.$ac_objext \
14782       conftest$ac_exeext conftest.$ac_ext
14783 fi
14784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14786 if test `eval echo '${'$as_ac_var'}'` = yes; then
14787
14788 cat >>confdefs.h <<_ACEOF
14789 #define CRAY_STACKSEG_END $ac_func
14790 _ACEOF
14791
14792     break
14793 fi
14794
14795   done
14796 fi
14797
14798 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14799 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14800 if test "${ac_cv_c_stack_direction+set}" = set; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   if test "$cross_compiling" = yes; then
14804   ac_cv_c_stack_direction=0
14805 else
14806   cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h.  */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h.  */
14812 int
14813 find_stack_direction ()
14814 {
14815   static char *addr = 0;
14816   auto char dummy;
14817   if (addr == 0)
14818     {
14819       addr = &dummy;
14820       return find_stack_direction ();
14821     }
14822   else
14823     return (&dummy > addr) ? 1 : -1;
14824 }
14825
14826 int
14827 main ()
14828 {
14829   exit (find_stack_direction () < 0);
14830 }
14831 _ACEOF
14832 rm -f conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834   (eval $ac_link) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_cv_c_stack_direction=1
14844 else
14845   echo "$as_me: program exited with status $ac_status" >&5
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ( exit $ac_status )
14850 ac_cv_c_stack_direction=-1
14851 fi
14852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14853 fi
14854 fi
14855 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14856 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14857
14858 cat >>confdefs.h <<_ACEOF
14859 #define STACK_DIRECTION $ac_cv_c_stack_direction
14860 _ACEOF
14861
14862
14863 fi
14864
14865
14866
14867 for ac_header in stdlib.h unistd.h
14868 do
14869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14871   echo "$as_me:$LINENO: checking for $ac_header" >&5
14872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 fi
14876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14878 else
14879   # Is the header compilable?
14880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 $ac_includes_default
14889 #include <$ac_header>
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893   (eval $ac_compile) 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } &&
14900          { ac_try='test -z "$ac_c_werror_flag"
14901                          || test ! -s conftest.err'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; } &&
14907          { ac_try='test -s conftest.$ac_objext'
14908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909   (eval $ac_try) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; }; then
14913   ac_header_compiler=yes
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_header_compiler=no
14919 fi
14920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922 echo "${ECHO_T}$ac_header_compiler" >&6
14923
14924 # Is the header present?
14925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14927 cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h.  */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h.  */
14933 #include <$ac_header>
14934 _ACEOF
14935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } >/dev/null; then
14943   if test -s conftest.err; then
14944     ac_cpp_err=$ac_c_preproc_warn_flag
14945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14946   else
14947     ac_cpp_err=
14948   fi
14949 else
14950   ac_cpp_err=yes
14951 fi
14952 if test -z "$ac_cpp_err"; then
14953   ac_header_preproc=yes
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958   ac_header_preproc=no
14959 fi
14960 rm -f conftest.err conftest.$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962 echo "${ECHO_T}$ac_header_preproc" >&6
14963
14964 # So?  What about this header?
14965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966   yes:no: )
14967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14971     ac_header_preproc=yes
14972     ;;
14973   no:yes:* )
14974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14986     (
14987       cat <<\_ASBOX
14988 ## ------------------------------------------ ##
14989 ## Report this to the AC_PACKAGE_NAME lists.  ##
14990 ## ------------------------------------------ ##
14991 _ASBOX
14992     ) |
14993       sed "s/^/$as_me: WARNING:     /" >&2
14994     ;;
14995 esac
14996 echo "$as_me:$LINENO: checking for $ac_header" >&5
14997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   eval "$as_ac_Header=\$ac_header_preproc"
15002 fi
15003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15005
15006 fi
15007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15008   cat >>confdefs.h <<_ACEOF
15009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010 _ACEOF
15011
15012 fi
15013
15014 done
15015
15016
15017 for ac_func in getpagesize
15018 do
15019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15020 echo "$as_me:$LINENO: checking for $ac_func" >&5
15021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15022 if eval "test \"\${$as_ac_var+set}\" = set"; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025   cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15033 #define $ac_func innocuous_$ac_func
15034
15035 /* System header to define __stub macros and hopefully few prototypes,
15036     which can conflict with char $ac_func (); below.
15037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15038     <limits.h> exists even on freestanding compilers.  */
15039
15040 #ifdef __STDC__
15041 # include <limits.h>
15042 #else
15043 # include <assert.h>
15044 #endif
15045
15046 #undef $ac_func
15047
15048 /* Override any gcc2 internal prototype to avoid an error.  */
15049 #ifdef __cplusplus
15050 extern "C"
15051 {
15052 #endif
15053 /* We use char because int might match the return type of a gcc2
15054    builtin and then its argument prototype would still apply.  */
15055 char $ac_func ();
15056 /* The GNU C library defines this for functions which it implements
15057     to always fail with ENOSYS.  Some functions are actually named
15058     something starting with __ and the normal name is an alias.  */
15059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15060 choke me
15061 #else
15062 char (*f) () = $ac_func;
15063 #endif
15064 #ifdef __cplusplus
15065 }
15066 #endif
15067
15068 int
15069 main ()
15070 {
15071 return f != $ac_func;
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078   (eval $ac_link) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   eval "$as_ac_var=yes"
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 eval "$as_ac_var=no"
15104 fi
15105 rm -f conftest.err conftest.$ac_objext \
15106       conftest$ac_exeext conftest.$ac_ext
15107 fi
15108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15110 if test `eval echo '${'$as_ac_var'}'` = yes; then
15111   cat >>confdefs.h <<_ACEOF
15112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15113 _ACEOF
15114
15115 fi
15116 done
15117
15118 echo "$as_me:$LINENO: checking for working mmap" >&5
15119 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15120 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15121   echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123   if test "$cross_compiling" = yes; then
15124   ac_cv_func_mmap_fixed_mapped=no
15125 else
15126   cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 $ac_includes_default
15133 /* malloc might have been renamed as rpl_malloc. */
15134 #undef malloc
15135
15136 /* Thanks to Mike Haertel and Jim Avera for this test.
15137    Here is a matrix of mmap possibilities:
15138         mmap private not fixed
15139         mmap private fixed at somewhere currently unmapped
15140         mmap private fixed at somewhere already mapped
15141         mmap shared not fixed
15142         mmap shared fixed at somewhere currently unmapped
15143         mmap shared fixed at somewhere already mapped
15144    For private mappings, we should verify that changes cannot be read()
15145    back from the file, nor mmap's back from the file at a different
15146    address.  (There have been systems where private was not correctly
15147    implemented like the infamous i386 svr4.0, and systems where the
15148    VM page cache was not coherent with the file system buffer cache
15149    like early versions of FreeBSD and possibly contemporary NetBSD.)
15150    For shared mappings, we should conversely verify that changes get
15151    propagated back to all the places they're supposed to be.
15152
15153    Grep wants private fixed already mapped.
15154    The main things grep needs to know about mmap are:
15155    * does it exist and is it safe to write into the mmap'd area
15156    * how to use it (BSD variants)  */
15157
15158 #include <fcntl.h>
15159 #include <sys/mman.h>
15160
15161 #if !STDC_HEADERS && !HAVE_STDLIB_H
15162 char *malloc ();
15163 #endif
15164
15165 /* This mess was copied from the GNU getpagesize.h.  */
15166 #if !HAVE_GETPAGESIZE
15167 /* Assume that all systems that can run configure have sys/param.h.  */
15168 # if !HAVE_SYS_PARAM_H
15169 #  define HAVE_SYS_PARAM_H 1
15170 # endif
15171
15172 # ifdef _SC_PAGESIZE
15173 #  define getpagesize() sysconf(_SC_PAGESIZE)
15174 # else /* no _SC_PAGESIZE */
15175 #  if HAVE_SYS_PARAM_H
15176 #   include <sys/param.h>
15177 #   ifdef EXEC_PAGESIZE
15178 #    define getpagesize() EXEC_PAGESIZE
15179 #   else /* no EXEC_PAGESIZE */
15180 #    ifdef NBPG
15181 #     define getpagesize() NBPG * CLSIZE
15182 #     ifndef CLSIZE
15183 #      define CLSIZE 1
15184 #     endif /* no CLSIZE */
15185 #    else /* no NBPG */
15186 #     ifdef NBPC
15187 #      define getpagesize() NBPC
15188 #     else /* no NBPC */
15189 #      ifdef PAGESIZE
15190 #       define getpagesize() PAGESIZE
15191 #      endif /* PAGESIZE */
15192 #     endif /* no NBPC */
15193 #    endif /* no NBPG */
15194 #   endif /* no EXEC_PAGESIZE */
15195 #  else /* no HAVE_SYS_PARAM_H */
15196 #   define getpagesize() 8192   /* punt totally */
15197 #  endif /* no HAVE_SYS_PARAM_H */
15198 # endif /* no _SC_PAGESIZE */
15199
15200 #endif /* no HAVE_GETPAGESIZE */
15201
15202 int
15203 main ()
15204 {
15205   char *data, *data2, *data3;
15206   int i, pagesize;
15207   int fd;
15208
15209   pagesize = getpagesize ();
15210
15211   /* First, make a file with some known garbage in it. */
15212   data = (char *) malloc (pagesize);
15213   if (!data)
15214     exit (1);
15215   for (i = 0; i < pagesize; ++i)
15216     *(data + i) = rand ();
15217   umask (0);
15218   fd = creat ("conftest.mmap", 0600);
15219   if (fd < 0)
15220     exit (1);
15221   if (write (fd, data, pagesize) != pagesize)
15222     exit (1);
15223   close (fd);
15224
15225   /* Next, try to mmap the file at a fixed address which already has
15226      something else allocated at it.  If we can, also make sure that
15227      we see the same garbage.  */
15228   fd = open ("conftest.mmap", O_RDWR);
15229   if (fd < 0)
15230     exit (1);
15231   data2 = (char *) malloc (2 * pagesize);
15232   if (!data2)
15233     exit (1);
15234   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15235   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15236                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15237     exit (1);
15238   for (i = 0; i < pagesize; ++i)
15239     if (*(data + i) != *(data2 + i))
15240       exit (1);
15241
15242   /* Finally, make sure that changes to the mapped area do not
15243      percolate back to the file as seen by read().  (This is a bug on
15244      some variants of i386 svr4.0.)  */
15245   for (i = 0; i < pagesize; ++i)
15246     *(data2 + i) = *(data2 + i) + 1;
15247   data3 = (char *) malloc (pagesize);
15248   if (!data3)
15249     exit (1);
15250   if (read (fd, data3, pagesize) != pagesize)
15251     exit (1);
15252   for (i = 0; i < pagesize; ++i)
15253     if (*(data + i) != *(data3 + i))
15254       exit (1);
15255   close (fd);
15256   exit (0);
15257 }
15258 _ACEOF
15259 rm -f conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261   (eval $ac_link) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   ac_cv_func_mmap_fixed_mapped=yes
15271 else
15272   echo "$as_me: program exited with status $ac_status" >&5
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 ( exit $ac_status )
15277 ac_cv_func_mmap_fixed_mapped=no
15278 fi
15279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15280 fi
15281 fi
15282 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15283 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15284 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15285
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_MMAP 1
15288 _ACEOF
15289
15290 fi
15291 rm -f conftest.mmap
15292
15293 echo "$as_me:$LINENO: checking for pid_t" >&5
15294 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15295 if test "${ac_cv_type_pid_t+set}" = set; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304 $ac_includes_default
15305 int
15306 main ()
15307 {
15308 if ((pid_t *) 0)
15309   return 0;
15310 if (sizeof (pid_t))
15311   return 0;
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318   (eval $ac_compile) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag"
15326                          || test ! -s conftest.err'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_cv_type_pid_t=yes
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 ac_cv_type_pid_t=no
15344 fi
15345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15346 fi
15347 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15348 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15349 if test $ac_cv_type_pid_t = yes; then
15350   :
15351 else
15352
15353 cat >>confdefs.h <<_ACEOF
15354 #define pid_t int
15355 _ACEOF
15356
15357 fi
15358
15359
15360
15361 for ac_header in unistd.h vfork.h
15362 do
15363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15365   echo "$as_me:$LINENO: checking for $ac_header" >&5
15366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 fi
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15372 else
15373   # Is the header compilable?
15374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 $ac_includes_default
15383 #include <$ac_header>
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15387   (eval $ac_compile) 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_c_werror_flag"
15395                          || test ! -s conftest.err'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; } &&
15401          { ac_try='test -s conftest.$ac_objext'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_header_compiler=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413 fi
15414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6
15417
15418 # Is the header present?
15419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 #include <$ac_header>
15428 _ACEOF
15429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } >/dev/null; then
15437   if test -s conftest.err; then
15438     ac_cpp_err=$ac_c_preproc_warn_flag
15439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15440   else
15441     ac_cpp_err=
15442   fi
15443 else
15444   ac_cpp_err=yes
15445 fi
15446 if test -z "$ac_cpp_err"; then
15447   ac_header_preproc=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452   ac_header_preproc=no
15453 fi
15454 rm -f conftest.err conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15456 echo "${ECHO_T}$ac_header_preproc" >&6
15457
15458 # So?  What about this header?
15459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15460   yes:no: )
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15465     ac_header_preproc=yes
15466     ;;
15467   no:yes:* )
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15480     (
15481       cat <<\_ASBOX
15482 ## ------------------------------------------ ##
15483 ## Report this to the AC_PACKAGE_NAME lists.  ##
15484 ## ------------------------------------------ ##
15485 _ASBOX
15486     ) |
15487       sed "s/^/$as_me: WARNING:     /" >&2
15488     ;;
15489 esac
15490 echo "$as_me:$LINENO: checking for $ac_header" >&5
15491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   eval "$as_ac_Header=\$ac_header_preproc"
15496 fi
15497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15499
15500 fi
15501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15502   cat >>confdefs.h <<_ACEOF
15503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15504 _ACEOF
15505
15506 fi
15507
15508 done
15509
15510
15511
15512 for ac_func in fork vfork
15513 do
15514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15515 echo "$as_me:$LINENO: checking for $ac_func" >&5
15516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15517 if eval "test \"\${$as_ac_var+set}\" = set"; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520   cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15528 #define $ac_func innocuous_$ac_func
15529
15530 /* System header to define __stub macros and hopefully few prototypes,
15531     which can conflict with char $ac_func (); below.
15532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15533     <limits.h> exists even on freestanding compilers.  */
15534
15535 #ifdef __STDC__
15536 # include <limits.h>
15537 #else
15538 # include <assert.h>
15539 #endif
15540
15541 #undef $ac_func
15542
15543 /* Override any gcc2 internal prototype to avoid an error.  */
15544 #ifdef __cplusplus
15545 extern "C"
15546 {
15547 #endif
15548 /* We use char because int might match the return type of a gcc2
15549    builtin and then its argument prototype would still apply.  */
15550 char $ac_func ();
15551 /* The GNU C library defines this for functions which it implements
15552     to always fail with ENOSYS.  Some functions are actually named
15553     something starting with __ and the normal name is an alias.  */
15554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15555 choke me
15556 #else
15557 char (*f) () = $ac_func;
15558 #endif
15559 #ifdef __cplusplus
15560 }
15561 #endif
15562
15563 int
15564 main ()
15565 {
15566 return f != $ac_func;
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573   (eval $ac_link) 2>conftest.er1
15574   ac_status=$?
15575   grep -v '^ *+' conftest.er1 >conftest.err
15576   rm -f conftest.er1
15577   cat conftest.err >&5
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -z "$ac_c_werror_flag"
15581                          || test ! -s conftest.err'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; } &&
15587          { ac_try='test -s conftest$ac_exeext'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593   eval "$as_ac_var=yes"
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 eval "$as_ac_var=no"
15599 fi
15600 rm -f conftest.err conftest.$ac_objext \
15601       conftest$ac_exeext conftest.$ac_ext
15602 fi
15603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15605 if test `eval echo '${'$as_ac_var'}'` = yes; then
15606   cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15608 _ACEOF
15609
15610 fi
15611 done
15612
15613 if test "x$ac_cv_func_fork" = xyes; then
15614   echo "$as_me:$LINENO: checking for working fork" >&5
15615 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15616 if test "${ac_cv_func_fork_works+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   if test "$cross_compiling" = yes; then
15620   ac_cv_func_fork_works=cross
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 /* By Ruediger Kuhlmann. */
15624       #include <sys/types.h>
15625       #if HAVE_UNISTD_H
15626       # include <unistd.h>
15627       #endif
15628       /* Some systems only have a dummy stub for fork() */
15629       int main ()
15630       {
15631         if (fork() < 0)
15632           exit (1);
15633         exit (0);
15634       }
15635 _ACEOF
15636 rm -f conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638   (eval $ac_link) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   ac_cv_func_fork_works=yes
15648 else
15649   echo "$as_me: program exited with status $ac_status" >&5
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ( exit $ac_status )
15654 ac_cv_func_fork_works=no
15655 fi
15656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 fi
15659 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15660 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15661
15662 else
15663   ac_cv_func_fork_works=$ac_cv_func_fork
15664 fi
15665 if test "x$ac_cv_func_fork_works" = xcross; then
15666   case $host in
15667     *-*-amigaos* | *-*-msdosdjgpp*)
15668       # Override, as these systems have only a dummy fork() stub
15669       ac_cv_func_fork_works=no
15670       ;;
15671     *)
15672       ac_cv_func_fork_works=yes
15673       ;;
15674   esac
15675   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15676 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15677 fi
15678 ac_cv_func_vfork_works=$ac_cv_func_vfork
15679 if test "x$ac_cv_func_vfork" = xyes; then
15680   echo "$as_me:$LINENO: checking for working vfork" >&5
15681 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15682 if test "${ac_cv_func_vfork_works+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   if test "$cross_compiling" = yes; then
15686   ac_cv_func_vfork_works=cross
15687 else
15688   cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h.  */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h.  */
15694 /* Thanks to Paul Eggert for this test.  */
15695 #include <stdio.h>
15696 #include <stdlib.h>
15697 #include <sys/types.h>
15698 #include <sys/stat.h>
15699 #include <sys/wait.h>
15700 #if HAVE_UNISTD_H
15701 # include <unistd.h>
15702 #endif
15703 #if HAVE_VFORK_H
15704 # include <vfork.h>
15705 #endif
15706 /* On some sparc systems, changes by the child to local and incoming
15707    argument registers are propagated back to the parent.  The compiler
15708    is told about this with #include <vfork.h>, but some compilers
15709    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15710    static variable whose address is put into a register that is
15711    clobbered by the vfork.  */
15712 static void
15713 #ifdef __cplusplus
15714 sparc_address_test (int arg)
15715 # else
15716 sparc_address_test (arg) int arg;
15717 #endif
15718 {
15719   static pid_t child;
15720   if (!child) {
15721     child = vfork ();
15722     if (child < 0) {
15723       perror ("vfork");
15724       _exit(2);
15725     }
15726     if (!child) {
15727       arg = getpid();
15728       write(-1, "", 0);
15729       _exit (arg);
15730     }
15731   }
15732 }
15733
15734 int
15735 main ()
15736 {
15737   pid_t parent = getpid ();
15738   pid_t child;
15739
15740   sparc_address_test (0);
15741
15742   child = vfork ();
15743
15744   if (child == 0) {
15745     /* Here is another test for sparc vfork register problems.  This
15746        test uses lots of local variables, at least as many local
15747        variables as main has allocated so far including compiler
15748        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15749        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15750        reuse the register of parent for one of the local variables,
15751        since it will think that parent can't possibly be used any more
15752        in this routine.  Assigning to the local variable will thus
15753        munge parent in the parent process.  */
15754     pid_t
15755       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15756       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15757     /* Convince the compiler that p..p7 are live; otherwise, it might
15758        use the same hardware register for all 8 local variables.  */
15759     if (p != p1 || p != p2 || p != p3 || p != p4
15760         || p != p5 || p != p6 || p != p7)
15761       _exit(1);
15762
15763     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15764        from child file descriptors.  If the child closes a descriptor
15765        before it execs or exits, this munges the parent's descriptor
15766        as well.  Test for this by closing stdout in the child.  */
15767     _exit(close(fileno(stdout)) != 0);
15768   } else {
15769     int status;
15770     struct stat st;
15771
15772     while (wait(&status) != child)
15773       ;
15774     exit(
15775          /* Was there some problem with vforking?  */
15776          child < 0
15777
15778          /* Did the child fail?  (This shouldn't happen.)  */
15779          || status
15780
15781          /* Did the vfork/compiler bug occur?  */
15782          || parent != getpid()
15783
15784          /* Did the file descriptor bug occur?  */
15785          || fstat(fileno(stdout), &st) != 0
15786          );
15787   }
15788 }
15789 _ACEOF
15790 rm -f conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792   (eval $ac_link) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   ac_cv_func_vfork_works=yes
15802 else
15803   echo "$as_me: program exited with status $ac_status" >&5
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ( exit $ac_status )
15808 ac_cv_func_vfork_works=no
15809 fi
15810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15811 fi
15812 fi
15813 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15814 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15815
15816 fi;
15817 if test "x$ac_cv_func_fork_works" = xcross; then
15818   ac_cv_func_vfork_works=$ac_cv_func_vfork
15819   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15820 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15821 fi
15822
15823 if test "x$ac_cv_func_vfork_works" = xyes; then
15824
15825 cat >>confdefs.h <<\_ACEOF
15826 #define HAVE_WORKING_VFORK 1
15827 _ACEOF
15828
15829 else
15830
15831 cat >>confdefs.h <<\_ACEOF
15832 #define vfork fork
15833 _ACEOF
15834
15835 fi
15836 if test "x$ac_cv_func_fork_works" = xyes; then
15837
15838 cat >>confdefs.h <<\_ACEOF
15839 #define HAVE_WORKING_FORK 1
15840 _ACEOF
15841
15842 fi
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866 for ac_func in canonicalize_file_name realpath getrusage getuid \
15867                 getgid poll pread64 sbrk setpgid setpgrp setsid \
15868                 sigaction sigprocmask sigsetmask socketpair syscall \
15869                 ttrace wborder setlocale iconvlist libiconvlist btowc
15870 do
15871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15872 echo "$as_me:$LINENO: checking for $ac_func" >&5
15873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_var+set}\" = set"; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877   cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15885 #define $ac_func innocuous_$ac_func
15886
15887 /* System header to define __stub macros and hopefully few prototypes,
15888     which can conflict with char $ac_func (); below.
15889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15890     <limits.h> exists even on freestanding compilers.  */
15891
15892 #ifdef __STDC__
15893 # include <limits.h>
15894 #else
15895 # include <assert.h>
15896 #endif
15897
15898 #undef $ac_func
15899
15900 /* Override any gcc2 internal prototype to avoid an error.  */
15901 #ifdef __cplusplus
15902 extern "C"
15903 {
15904 #endif
15905 /* We use char because int might match the return type of a gcc2
15906    builtin and then its argument prototype would still apply.  */
15907 char $ac_func ();
15908 /* The GNU C library defines this for functions which it implements
15909     to always fail with ENOSYS.  Some functions are actually named
15910     something starting with __ and the normal name is an alias.  */
15911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15912 choke me
15913 #else
15914 char (*f) () = $ac_func;
15915 #endif
15916 #ifdef __cplusplus
15917 }
15918 #endif
15919
15920 int
15921 main ()
15922 {
15923 return f != $ac_func;
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930   (eval $ac_link) 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } &&
15937          { ac_try='test -z "$ac_c_werror_flag"
15938                          || test ! -s conftest.err'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; } &&
15944          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15950   eval "$as_ac_var=yes"
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955 eval "$as_ac_var=no"
15956 fi
15957 rm -f conftest.err conftest.$ac_objext \
15958       conftest$ac_exeext conftest.$ac_ext
15959 fi
15960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15962 if test `eval echo '${'$as_ac_var'}'` = yes; then
15963   cat >>confdefs.h <<_ACEOF
15964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15965 _ACEOF
15966
15967 fi
15968 done
15969
15970
15971   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15972 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15973 if test "${am_cv_langinfo_codeset+set}" = set; then
15974   echo $ECHO_N "(cached) $ECHO_C" >&6
15975 else
15976   cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982 #include <langinfo.h>
15983 int
15984 main ()
15985 {
15986 char* cs = nl_langinfo(CODESET);
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15993   (eval $ac_link) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag"
16001                          || test ! -s conftest.err'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest$ac_exeext'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   am_cv_langinfo_codeset=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 am_cv_langinfo_codeset=no
16019 fi
16020 rm -f conftest.err conftest.$ac_objext \
16021       conftest$ac_exeext conftest.$ac_ext
16022
16023 fi
16024 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16025 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16026   if test $am_cv_langinfo_codeset = yes; then
16027
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_LANGINFO_CODESET 1
16030 _ACEOF
16031
16032   fi
16033
16034
16035 # Check the return and argument types of ptrace.  No canned test for
16036 # this, so roll our own.
16037 gdb_ptrace_headers='
16038 #if HAVE_SYS_TYPES_H
16039 # include <sys/types.h>
16040 #endif
16041 #if HAVE_SYS_PTRACE_H
16042 # include <sys/ptrace.h>
16043 #endif
16044 #if HAVE_UNISTD_H
16045 # include <unistd.h>
16046 #endif
16047 '
16048 # There is no point in checking if we don't have a prototype.
16049 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16050 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16051 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16052   echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054   cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 $gdb_ptrace_headers
16061
16062 int
16063 main ()
16064 {
16065 #ifndef ptrace
16066   char *p = (char *) ptrace;
16067 #endif
16068
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075   (eval $ac_compile) 2>conftest.er1
16076   ac_status=$?
16077   grep -v '^ *+' conftest.er1 >conftest.err
16078   rm -f conftest.er1
16079   cat conftest.err >&5
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); } &&
16082          { ac_try='test -z "$ac_c_werror_flag"
16083                          || test ! -s conftest.err'
16084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085   (eval $ac_try) 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; } &&
16089          { ac_try='test -s conftest.$ac_objext'
16090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091   (eval $ac_try) 2>&5
16092   ac_status=$?
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); }; }; then
16095   ac_cv_have_decl_ptrace=yes
16096 else
16097   echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100 ac_cv_have_decl_ptrace=no
16101 fi
16102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16103 fi
16104 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16105 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16106 if test $ac_cv_have_decl_ptrace = yes; then
16107
16108 cat >>confdefs.h <<_ACEOF
16109 #define HAVE_DECL_PTRACE 1
16110 _ACEOF
16111
16112
16113 else
16114   cat >>confdefs.h <<_ACEOF
16115 #define HAVE_DECL_PTRACE 0
16116 _ACEOF
16117
16118
16119   : ${gdb_cv_func_ptrace_ret='int'}
16120   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16121
16122 fi
16123
16124
16125 # Check return type.  Varargs (used on GNU/Linux) conflict with the
16126 # empty argument list, so check for that explicitly.
16127 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16128 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16129 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138 $gdb_ptrace_headers
16139 int
16140 main ()
16141 {
16142 extern long ptrace (enum __ptrace_request, ...);
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149   (eval $ac_compile) 2>conftest.er1
16150   ac_status=$?
16151   grep -v '^ *+' conftest.er1 >conftest.err
16152   rm -f conftest.er1
16153   cat conftest.err >&5
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } &&
16156          { ac_try='test -z "$ac_c_werror_flag"
16157                          || test ! -s conftest.err'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; } &&
16163          { ac_try='test -s conftest.$ac_objext'
16164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165   (eval $ac_try) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; }; then
16169   gdb_cv_func_ptrace_ret='long'
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 $gdb_ptrace_headers
16181 int
16182 main ()
16183 {
16184 extern int ptrace ();
16185   ;
16186   return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191   (eval $ac_compile) 2>conftest.er1
16192   ac_status=$?
16193   grep -v '^ *+' conftest.er1 >conftest.err
16194   rm -f conftest.er1
16195   cat conftest.err >&5
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } &&
16198          { ac_try='test -z "$ac_c_werror_flag"
16199                          || test ! -s conftest.err'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; } &&
16205          { ac_try='test -s conftest.$ac_objext'
16206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207   (eval $ac_try) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; }; then
16211   gdb_cv_func_ptrace_ret='int'
16212 else
16213   echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 gdb_cv_func_ptrace_ret='long'
16217 fi
16218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16219 fi
16220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16223 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16224
16225 cat >>confdefs.h <<_ACEOF
16226 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16227 _ACEOF
16228
16229 # Check argument types.
16230 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16231 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16232 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235
16236   cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242 $gdb_ptrace_headers
16243 int
16244 main ()
16245 {
16246 extern long ptrace (enum __ptrace_request, ...);
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16253   (eval $ac_compile) 2>conftest.er1
16254   ac_status=$?
16255   grep -v '^ *+' conftest.er1 >conftest.err
16256   rm -f conftest.er1
16257   cat conftest.err >&5
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); } &&
16260          { ac_try='test -z "$ac_c_werror_flag"
16261                          || test ! -s conftest.err'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; } &&
16267          { ac_try='test -s conftest.$ac_objext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273   gdb_cv_func_ptrace_args='int,int,long,long'
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278
16279 for gdb_arg1 in 'int' 'long'; do
16280  for gdb_arg2 in 'pid_t' 'int' 'long'; do
16281   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16282    for gdb_arg4 in 'int' 'long'; do
16283      cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h.  */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h.  */
16289 $gdb_ptrace_headers
16290 int
16291 main ()
16292 {
16293
16294 extern $gdb_cv_func_ptrace_ret
16295   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16296
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303   (eval $ac_compile) 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_c_werror_flag"
16311                          || test ! -s conftest.err'
16312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313   (eval $ac_try) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest.$ac_objext'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; }; then
16323   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16324     break 4;
16325 else
16326   echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16328
16329 fi
16330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16331     for gdb_arg5 in 'int *' 'int' 'long'; do
16332      cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338 $gdb_ptrace_headers
16339 int
16340 main ()
16341 {
16342
16343 extern $gdb_cv_func_ptrace_ret
16344   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16345
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16352   (eval $ac_compile) 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_c_werror_flag"
16360                          || test ! -s conftest.err'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; } &&
16366          { ac_try='test -s conftest.$ac_objext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372
16373 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16374     break 5;
16375 else
16376   echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 fi
16380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16381     done
16382    done
16383   done
16384  done
16385 done
16386 # Provide a safe default value.
16387 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16388
16389 fi
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16393 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16394 ac_save_IFS=$IFS; IFS=','
16395 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16396 IFS=$ac_save_IFS
16397 shift
16398
16399 cat >>confdefs.h <<_ACEOF
16400 #define PTRACE_TYPE_ARG3 $3
16401 _ACEOF
16402
16403 if test -n "$5"; then
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define PTRACE_TYPE_ARG5 $5
16407 _ACEOF
16408
16409 fi
16410
16411 if test "$cross_compiling" = no; then
16412   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16413 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16414 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16415   echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417   if test "$cross_compiling" = yes; then
16418   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16419 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16420    { (exit 1); exit 1; }; }
16421 else
16422   cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 #if HAVE_UNISTD_H
16429 # include <unistd.h>
16430 #endif
16431
16432 int
16433 main ()
16434 {
16435 /* If this system has a BSD-style setpgrp which takes arguments,
16436   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16437   exit successfully. */
16438   exit (setpgrp (1,1) == -1 ? 0 : 1);
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest$ac_exeext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16445   (eval $ac_link) 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450   (eval $ac_try) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   ac_cv_func_setpgrp_void=no
16455 else
16456   echo "$as_me: program exited with status $ac_status" >&5
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 ( exit $ac_status )
16461 ac_cv_func_setpgrp_void=yes
16462 fi
16463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16464 fi
16465 fi
16466 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16467 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16468 if test $ac_cv_func_setpgrp_void = yes; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define SETPGRP_VOID 1
16472 _ACEOF
16473
16474 fi
16475
16476 else
16477   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16478 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16479 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489 #include <unistd.h>
16490
16491 int
16492 main ()
16493 {
16494
16495   if (setpgrp(1,1) == -1)
16496     exit (0);
16497   else
16498     exit (1);
16499
16500   ;
16501   return 0;
16502 }
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506   (eval $ac_compile) 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } &&
16513          { ac_try='test -z "$ac_c_werror_flag"
16514                          || test ! -s conftest.err'
16515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516   (eval $ac_try) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; } &&
16520          { ac_try='test -s conftest.$ac_objext'
16521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522   (eval $ac_try) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; }; then
16526   ac_cv_func_setpgrp_void=no
16527 else
16528   echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_cv_func_setpgrp_void=yes
16532 fi
16533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16534 fi
16535 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16536 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16537 if test $ac_cv_func_setpgrp_void = yes; then
16538   cat >>confdefs.h <<\_ACEOF
16539 #define SETPGRP_VOID 1
16540 _ACEOF
16541
16542 fi
16543 fi
16544
16545 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16546 # since sigsetjmp might only be defined as a macro.
16547 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16548 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16549 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558
16559 #include <setjmp.h>
16560
16561 int
16562 main ()
16563 {
16564 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571   (eval $ac_compile) 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } &&
16578          { ac_try='test -z "$ac_c_werror_flag"
16579                          || test ! -s conftest.err'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest.$ac_objext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   gdb_cv_func_sigsetjmp=yes
16592 else
16593   echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 gdb_cv_func_sigsetjmp=no
16597 fi
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16599 fi
16600 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16601 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16602 if test $gdb_cv_func_sigsetjmp = yes; then
16603
16604 cat >>confdefs.h <<\_ACEOF
16605 #define HAVE_SIGSETJMP 1
16606 _ACEOF
16607
16608 fi
16609
16610 # Assume we'll default to using the included libiberty regex.
16611 gdb_use_included_regex=yes
16612
16613 # However, if the system regex is GNU regex, then default to *not*
16614 # using the included regex.
16615 echo "$as_me:$LINENO: checking for GNU regex" >&5
16616 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16617 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h.  */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h.  */
16626 #include <gnu-versions.h>
16627 int
16628 main ()
16629 {
16630 #define REGEX_INTERFACE_VERSION 1
16631 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16632 # error "Version mismatch"
16633 #endif
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16640   (eval $ac_compile) 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag"
16648                          || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest.$ac_objext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   gdb_cv_have_gnu_regex=yes
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 gdb_cv_have_gnu_regex=no
16666 fi
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16670 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16671 if test $gdb_cv_have_gnu_regex = yes; then
16672   gdb_use_included_regex=no
16673 fi
16674
16675
16676 # Check whether --with-included-regex or --without-included-regex was given.
16677 if test "${with_included_regex+set}" = set; then
16678   withval="$with_included_regex"
16679   gdb_with_regex=$withval
16680 else
16681   gdb_with_regex=$gdb_use_included_regex
16682 fi;
16683 if test "$gdb_with_regex" = yes; then
16684
16685 cat >>confdefs.h <<\_ACEOF
16686 #define USE_INCLUDED_REGEX 1
16687 _ACEOF
16688
16689 fi
16690
16691 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16692 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16693 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16694 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 #include <sys/param.h>
16704 #include <sys/proc.h>
16705
16706
16707 int
16708 main ()
16709 {
16710 static struct thread ac_aggr;
16711 if (ac_aggr.td_pcb)
16712 return 0;
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719   (eval $ac_compile) 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -z "$ac_c_werror_flag"
16727                          || test ! -s conftest.err'
16728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729   (eval $ac_try) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; } &&
16733          { ac_try='test -s conftest.$ac_objext'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   ac_cv_member_struct_thread_td_pcb=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <sys/param.h>
16751 #include <sys/proc.h>
16752
16753
16754 int
16755 main ()
16756 {
16757 static struct thread ac_aggr;
16758 if (sizeof ac_aggr.td_pcb)
16759 return 0;
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16766   (eval $ac_compile) 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } &&
16773          { ac_try='test -z "$ac_c_werror_flag"
16774                          || test ! -s conftest.err'
16775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776   (eval $ac_try) 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); }; } &&
16780          { ac_try='test -s conftest.$ac_objext'
16781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782   (eval $ac_try) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   ac_cv_member_struct_thread_td_pcb=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_cv_member_struct_thread_td_pcb=no
16792 fi
16793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16794 fi
16795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796 fi
16797 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16798 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16799 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16800
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_STRUCT_THREAD_TD_PCB 1
16803 _ACEOF
16804
16805
16806 fi
16807
16808
16809 # See if <sys/lwp.h> defines `struct lwp`.
16810 echo "$as_me:$LINENO: checking for struct lwp" >&5
16811 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16812 if test "${gdb_cv_struct_lwp+set}" = set; then
16813   echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815   cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h.  */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h.  */
16821 #include <sys/param.h>
16822 #include <sys/lwp.h>
16823 int
16824 main ()
16825 {
16826 struct lwp l;
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833   (eval $ac_compile) 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag"
16841                          || test ! -s conftest.err'
16842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843   (eval $ac_try) 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; } &&
16847          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16853   gdb_cv_struct_lwp=yes
16854 else
16855   echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858 gdb_cv_struct_lwp=no
16859 fi
16860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 fi
16862 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16863 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16864 if test $gdb_cv_struct_lwp = yes; then
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_STRUCT_LWP 1
16868 _ACEOF
16869
16870 fi
16871
16872 # See if <machine/reg.h> degines `struct reg'.
16873 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16874 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16875 if test "${gdb_cv_struct_reg+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884 #include <sys/types.h>
16885 #include <machine/reg.h>
16886 int
16887 main ()
16888 {
16889 struct reg r;
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16896   (eval $ac_compile) 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -z "$ac_c_werror_flag"
16904                          || test ! -s conftest.err'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; } &&
16910          { ac_try='test -s conftest.$ac_objext'
16911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912   (eval $ac_try) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   gdb_cv_struct_reg=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 gdb_cv_struct_reg=no
16922 fi
16923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16926 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16927 if test $gdb_cv_struct_reg = yes; then
16928
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_STRUCT_REG 1
16931 _ACEOF
16932
16933 fi
16934
16935 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16936 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16937 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16938 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16939 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 #include <machine/reg.h>
16949
16950 int
16951 main ()
16952 {
16953 static struct reg ac_aggr;
16954 if (ac_aggr.r_fs)
16955 return 0;
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962   (eval $ac_compile) 2>conftest.er1
16963   ac_status=$?
16964   grep -v '^ *+' conftest.er1 >conftest.err
16965   rm -f conftest.er1
16966   cat conftest.err >&5
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); } &&
16969          { ac_try='test -z "$ac_c_werror_flag"
16970                          || test ! -s conftest.err'
16971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972   (eval $ac_try) 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; } &&
16976          { ac_try='test -s conftest.$ac_objext'
16977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978   (eval $ac_try) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); }; }; then
16982   ac_cv_member_struct_reg_r_fs=yes
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <machine/reg.h>
16994
16995 int
16996 main ()
16997 {
16998 static struct reg ac_aggr;
16999 if (sizeof ac_aggr.r_fs)
17000 return 0;
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17007   (eval $ac_compile) 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -z "$ac_c_werror_flag"
17015                          || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest.$ac_objext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   ac_cv_member_struct_reg_r_fs=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 ac_cv_member_struct_reg_r_fs=no
17033 fi
17034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17035 fi
17036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17039 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17040 if test $ac_cv_member_struct_reg_r_fs = yes; then
17041
17042 cat >>confdefs.h <<_ACEOF
17043 #define HAVE_STRUCT_REG_R_FS 1
17044 _ACEOF
17045
17046
17047 fi
17048 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17049 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17050 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059 #include <machine/reg.h>
17060
17061 int
17062 main ()
17063 {
17064 static struct reg ac_aggr;
17065 if (ac_aggr.r_gs)
17066 return 0;
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17073   (eval $ac_compile) 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -z "$ac_c_werror_flag"
17081                          || test ! -s conftest.err'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest.$ac_objext'
17088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   ac_cv_member_struct_reg_r_gs=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104 #include <machine/reg.h>
17105
17106 int
17107 main ()
17108 {
17109 static struct reg ac_aggr;
17110 if (sizeof ac_aggr.r_gs)
17111 return 0;
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118   (eval $ac_compile) 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } &&
17125          { ac_try='test -z "$ac_c_werror_flag"
17126                          || test ! -s conftest.err'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; } &&
17132          { ac_try='test -s conftest.$ac_objext'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; }; then
17138   ac_cv_member_struct_reg_r_gs=yes
17139 else
17140   echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 ac_cv_member_struct_reg_r_gs=no
17144 fi
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17146 fi
17147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17148 fi
17149 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17150 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17151 if test $ac_cv_member_struct_reg_r_gs = yes; then
17152
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_STRUCT_REG_R_GS 1
17155 _ACEOF
17156
17157
17158 fi
17159
17160
17161 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17162 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17163 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17164 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173 #include <sys/ptrace.h>
17174 int
17175 main ()
17176 {
17177 PTRACE_GETREGS;
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184   (eval $ac_compile) 2>conftest.er1
17185   ac_status=$?
17186   grep -v '^ *+' conftest.er1 >conftest.err
17187   rm -f conftest.er1
17188   cat conftest.err >&5
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } &&
17191          { ac_try='test -z "$ac_c_werror_flag"
17192                          || test ! -s conftest.err'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; } &&
17198          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17204   gdb_cv_have_ptrace_getregs=yes
17205 else
17206   echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 gdb_cv_have_ptrace_getregs=no
17210 fi
17211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17212 fi
17213
17214 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17215 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17216 if test $gdb_cv_have_ptrace_getregs = yes; then
17217
17218 cat >>confdefs.h <<\_ACEOF
17219 #define HAVE_PTRACE_GETREGS 1
17220 _ACEOF
17221
17222 fi
17223
17224 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17225 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17226 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17227 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236 #include <sys/ptrace.h>
17237 int
17238 main ()
17239 {
17240 PTRACE_GETFPXREGS;
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247   (eval $ac_compile) 2>conftest.er1
17248   ac_status=$?
17249   grep -v '^ *+' conftest.er1 >conftest.err
17250   rm -f conftest.er1
17251   cat conftest.err >&5
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } &&
17254          { ac_try='test -z "$ac_c_werror_flag"
17255                          || test ! -s conftest.err'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; } &&
17261          { ac_try='test -s conftest.$ac_objext'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267   gdb_cv_have_ptrace_getfpxregs=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 gdb_cv_have_ptrace_getfpxregs=no
17273 fi
17274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275 fi
17276
17277 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17278 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17279 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17280
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE_PTRACE_GETFPXREGS 1
17283 _ACEOF
17284
17285 fi
17286
17287 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17288 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17289 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17290 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17291   echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293   cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299 #include <sys/types.h>
17300 #include <sys/ptrace.h>
17301 int
17302 main ()
17303 {
17304 PT_GETDBREGS;
17305   ;
17306   return 0;
17307 }
17308 _ACEOF
17309 rm -f conftest.$ac_objext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17311   (eval $ac_compile) 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } &&
17318          { ac_try='test -z "$ac_c_werror_flag"
17319                          || test ! -s conftest.err'
17320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321   (eval $ac_try) 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest.$ac_objext'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; }; then
17331   gdb_cv_have_pt_getdbregs=yes
17332 else
17333   echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336 gdb_cv_have_pt_getdbregs=no
17337 fi
17338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17339 fi
17340
17341 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17342 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17343 if test $gdb_cv_have_pt_getdbregs = yes; then
17344
17345 cat >>confdefs.h <<\_ACEOF
17346 #define HAVE_PT_GETDBREGS 1
17347 _ACEOF
17348
17349 fi
17350
17351 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17352 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17353 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17354 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h.  */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h.  */
17363 #include <sys/types.h>
17364 #include <sys/ptrace.h>
17365 int
17366 main ()
17367 {
17368 PT_GETXMMREGS;
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 rm -f conftest.$ac_objext
17374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17375   (eval $ac_compile) 2>conftest.er1
17376   ac_status=$?
17377   grep -v '^ *+' conftest.er1 >conftest.err
17378   rm -f conftest.er1
17379   cat conftest.err >&5
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); } &&
17382          { ac_try='test -z "$ac_c_werror_flag"
17383                          || test ! -s conftest.err'
17384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385   (eval $ac_try) 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); }; } &&
17389          { ac_try='test -s conftest.$ac_objext'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; }; then
17395   gdb_cv_have_pt_getxmmregs=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 gdb_cv_have_pt_getxmmregs=no
17401 fi
17402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17403 fi
17404
17405 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17406 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17407 if test $gdb_cv_have_pt_getxmmregs = yes; then
17408
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_PT_GETXMMREGS 1
17411 _ACEOF
17412
17413 fi
17414
17415 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17416
17417 if test "${target}" = "${host}"; then
17418   case "${host}" in
17419   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17420
17421 cat >>confdefs.h <<\_ACEOF
17422 #define NEW_PROC_API 1
17423 _ACEOF
17424
17425       ;;
17426   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17427
17428 cat >>confdefs.h <<\_ACEOF
17429 #define NEW_PROC_API 1
17430 _ACEOF
17431
17432       ;;
17433   mips-sgi-irix5*)
17434       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17435
17436 cat >>confdefs.h <<\_ACEOF
17437 #define _KMEMUSER 1
17438 _ACEOF
17439
17440       ;;
17441   esac
17442 fi
17443
17444 if test "$ac_cv_header_sys_procfs_h" = yes; then
17445   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17446 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17447  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450   cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h.  */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h.  */
17456
17457 #define _SYSCALL32
17458 #include <sys/procfs.h>
17459 int
17460 main ()
17461 {
17462 pstatus_t avar
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469   (eval $ac_compile) 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } &&
17476          { ac_try='test -z "$ac_c_werror_flag"
17477                          || test ! -s conftest.err'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; } &&
17483          { ac_try='test -s conftest.$ac_objext'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   bfd_cv_have_sys_procfs_type_pstatus_t=yes
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 bfd_cv_have_sys_procfs_type_pstatus_t=no
17495
17496 fi
17497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17498 fi
17499
17500  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17501
17502 cat >>confdefs.h <<\_ACEOF
17503 #define HAVE_PSTATUS_T 1
17504 _ACEOF
17505
17506  fi
17507  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17508 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17509
17510   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17511 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17512  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h.  */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h.  */
17521
17522 #define _SYSCALL32
17523 #include <sys/procfs.h>
17524 int
17525 main ()
17526 {
17527 prrun_t avar
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534   (eval $ac_compile) 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag"
17542                          || test ! -s conftest.err'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; } &&
17548          { ac_try='test -s conftest.$ac_objext'
17549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550   (eval $ac_try) 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); }; }; then
17554   bfd_cv_have_sys_procfs_type_prrun_t=yes
17555 else
17556   echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 bfd_cv_have_sys_procfs_type_prrun_t=no
17560
17561 fi
17562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17563 fi
17564
17565  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17566
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_PRRUN_T 1
17569 _ACEOF
17570
17571  fi
17572  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17573 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17574
17575   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17576 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17577  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586
17587 #define _SYSCALL32
17588 #include <sys/procfs.h>
17589 int
17590 main ()
17591 {
17592 gregset_t avar
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599   (eval $ac_compile) 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_c_werror_flag"
17607                          || test ! -s conftest.err'
17608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609   (eval $ac_try) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest.$ac_objext'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   bfd_cv_have_sys_procfs_type_gregset_t=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 bfd_cv_have_sys_procfs_type_gregset_t=no
17625
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 fi
17629
17630  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17631
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_GREGSET_T 1
17634 _ACEOF
17635
17636  fi
17637  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17638 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17639
17640   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17641 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17642  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17643   echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645   cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651
17652 #define _SYSCALL32
17653 #include <sys/procfs.h>
17654 int
17655 main ()
17656 {
17657 fpregset_t avar
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17664   (eval $ac_compile) 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } &&
17671          { ac_try='test -z "$ac_c_werror_flag"
17672                          || test ! -s conftest.err'
17673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674   (eval $ac_try) 2>&5
17675   ac_status=$?
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); }; } &&
17678          { ac_try='test -s conftest.$ac_objext'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   bfd_cv_have_sys_procfs_type_fpregset_t=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 bfd_cv_have_sys_procfs_type_fpregset_t=no
17690
17691 fi
17692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17693 fi
17694
17695  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17696
17697 cat >>confdefs.h <<\_ACEOF
17698 #define HAVE_FPREGSET_T 1
17699 _ACEOF
17700
17701  fi
17702  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17703 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17704
17705   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17706 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17707  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716
17717 #define _SYSCALL32
17718 #include <sys/procfs.h>
17719 int
17720 main ()
17721 {
17722 prgregset_t avar
17723   ;
17724   return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729   (eval $ac_compile) 2>conftest.er1
17730   ac_status=$?
17731   grep -v '^ *+' conftest.er1 >conftest.err
17732   rm -f conftest.er1
17733   cat conftest.err >&5
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } &&
17736          { ac_try='test -z "$ac_c_werror_flag"
17737                          || test ! -s conftest.err'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; } &&
17743          { ac_try='test -s conftest.$ac_objext'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; }; then
17749   bfd_cv_have_sys_procfs_type_prgregset_t=yes
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 bfd_cv_have_sys_procfs_type_prgregset_t=no
17755
17756 fi
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17758 fi
17759
17760  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17761
17762 cat >>confdefs.h <<\_ACEOF
17763 #define HAVE_PRGREGSET_T 1
17764 _ACEOF
17765
17766  fi
17767  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17768 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17769
17770   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17771 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17772  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781
17782 #define _SYSCALL32
17783 #include <sys/procfs.h>
17784 int
17785 main ()
17786 {
17787 prfpregset_t avar
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17794   (eval $ac_compile) 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } &&
17801          { ac_try='test -z "$ac_c_werror_flag"
17802                          || test ! -s conftest.err'
17803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804   (eval $ac_try) 2>&5
17805   ac_status=$?
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); }; } &&
17808          { ac_try='test -s conftest.$ac_objext'
17809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810   (eval $ac_try) 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; }; then
17814   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17820
17821 fi
17822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17823 fi
17824
17825  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17826
17827 cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_PRFPREGSET_T 1
17829 _ACEOF
17830
17831  fi
17832  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17833 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17834
17835   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17836 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17837  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17838   echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840   cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846
17847 #define _SYSCALL32
17848 #include <sys/procfs.h>
17849 int
17850 main ()
17851 {
17852 prgregset32_t avar
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859   (eval $ac_compile) 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } &&
17866          { ac_try='test -z "$ac_c_werror_flag"
17867                          || test ! -s conftest.err'
17868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869   (eval $ac_try) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; } &&
17873          { ac_try='test -s conftest.$ac_objext'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; }; then
17879   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17885
17886 fi
17887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17888 fi
17889
17890  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17891
17892 cat >>confdefs.h <<\_ACEOF
17893 #define HAVE_PRGREGSET32_T 1
17894 _ACEOF
17895
17896  fi
17897  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17898 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17899
17900   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17901 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17902  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 #define _SYSCALL32
17913 #include <sys/procfs.h>
17914 int
17915 main ()
17916 {
17917 prfpregset32_t avar
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17924   (eval $ac_compile) 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } &&
17931          { ac_try='test -z "$ac_c_werror_flag"
17932                          || test ! -s conftest.err'
17933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934   (eval $ac_try) 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); }; } &&
17938          { ac_try='test -s conftest.$ac_objext'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17950
17951 fi
17952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953 fi
17954
17955  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17956
17957 cat >>confdefs.h <<\_ACEOF
17958 #define HAVE_PRFPREGSET32_T 1
17959 _ACEOF
17960
17961  fi
17962  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17963 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17964
17965   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17966 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17967  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976
17977 #define _SYSCALL32
17978 #include <sys/procfs.h>
17979 int
17980 main ()
17981 {
17982 lwpid_t avar
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989   (eval $ac_compile) 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -z "$ac_c_werror_flag"
17997                          || test ! -s conftest.err'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest.$ac_objext'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   bfd_cv_have_sys_procfs_type_lwpid_t=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 bfd_cv_have_sys_procfs_type_lwpid_t=no
18015
18016 fi
18017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 fi
18019
18020  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_LWPID_T 1
18024 _ACEOF
18025
18026  fi
18027  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18028 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18029
18030   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18031 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18032  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18033   echo $ECHO_N "(cached) $ECHO_C" >&6
18034 else
18035   cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041
18042 #define _SYSCALL32
18043 #include <sys/procfs.h>
18044 int
18045 main ()
18046 {
18047 psaddr_t avar
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054   (eval $ac_compile) 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } &&
18061          { ac_try='test -z "$ac_c_werror_flag"
18062                          || test ! -s conftest.err'
18063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064   (eval $ac_try) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); }; } &&
18068          { ac_try='test -s conftest.$ac_objext'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; }; then
18074   bfd_cv_have_sys_procfs_type_psaddr_t=yes
18075 else
18076   echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 bfd_cv_have_sys_procfs_type_psaddr_t=no
18080
18081 fi
18082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083 fi
18084
18085  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18086
18087 cat >>confdefs.h <<\_ACEOF
18088 #define HAVE_PSADDR_T 1
18089 _ACEOF
18090
18091  fi
18092  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18093 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18094
18095   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18096 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18097  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106
18107 #define _SYSCALL32
18108 #include <sys/procfs.h>
18109 int
18110 main ()
18111 {
18112 prsysent_t avar
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119   (eval $ac_compile) 2>conftest.er1
18120   ac_status=$?
18121   grep -v '^ *+' conftest.er1 >conftest.err
18122   rm -f conftest.er1
18123   cat conftest.err >&5
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } &&
18126          { ac_try='test -z "$ac_c_werror_flag"
18127                          || test ! -s conftest.err'
18128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129   (eval $ac_try) 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; } &&
18133          { ac_try='test -s conftest.$ac_objext'
18134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135   (eval $ac_try) 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; }; then
18139   bfd_cv_have_sys_procfs_type_prsysent_t=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144 bfd_cv_have_sys_procfs_type_prsysent_t=no
18145
18146 fi
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148 fi
18149
18150  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18151
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_PRSYSENT_T 1
18154 _ACEOF
18155
18156  fi
18157  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18158 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18159
18160   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18161 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18162  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165   cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171
18172 #define _SYSCALL32
18173 #include <sys/procfs.h>
18174 int
18175 main ()
18176 {
18177 pr_sigset_t avar
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184   (eval $ac_compile) 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } &&
18191          { ac_try='test -z "$ac_c_werror_flag"
18192                          || test ! -s conftest.err'
18193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194   (eval $ac_try) 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }; } &&
18198          { ac_try='test -s conftest.$ac_objext'
18199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200   (eval $ac_try) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; }; then
18204   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18205 else
18206   echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18208
18209 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18210
18211 fi
18212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18213 fi
18214
18215  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18216
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE_PR_SIGSET_T 1
18219 _ACEOF
18220
18221  fi
18222  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18223 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18224
18225   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18226 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18227  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236
18237 #define _SYSCALL32
18238 #include <sys/procfs.h>
18239 int
18240 main ()
18241 {
18242 pr_sigaction64_t avar
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249   (eval $ac_compile) 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } &&
18256          { ac_try='test -z "$ac_c_werror_flag"
18257                          || test ! -s conftest.err'
18258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259   (eval $ac_try) 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); }; } &&
18263          { ac_try='test -s conftest.$ac_objext'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; }; then
18269   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18270 else
18271   echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18275
18276 fi
18277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18278 fi
18279
18280  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18281
18282 cat >>confdefs.h <<\_ACEOF
18283 #define HAVE_PR_SIGACTION64_T 1
18284 _ACEOF
18285
18286  fi
18287  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18288 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18289
18290   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18291 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18292  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18293   echo $ECHO_N "(cached) $ECHO_C" >&6
18294 else
18295   cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301
18302 #define _SYSCALL32
18303 #include <sys/procfs.h>
18304 int
18305 main ()
18306 {
18307 pr_siginfo64_t avar
18308   ;
18309   return 0;
18310 }
18311 _ACEOF
18312 rm -f conftest.$ac_objext
18313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314   (eval $ac_compile) 2>conftest.er1
18315   ac_status=$?
18316   grep -v '^ *+' conftest.er1 >conftest.err
18317   rm -f conftest.er1
18318   cat conftest.err >&5
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } &&
18321          { ac_try='test -z "$ac_c_werror_flag"
18322                          || test ! -s conftest.err'
18323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324   (eval $ac_try) 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); }; } &&
18328          { ac_try='test -s conftest.$ac_objext'
18329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330   (eval $ac_try) 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; }; then
18334   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18335 else
18336   echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18340
18341 fi
18342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18343 fi
18344
18345  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18346
18347 cat >>confdefs.h <<\_ACEOF
18348 #define HAVE_PR_SIGINFO64_T 1
18349 _ACEOF
18350
18351  fi
18352  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18353 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18354
18355
18356
18357
18358
18359   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18360     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18361 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18362     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   if test "$cross_compiling" = yes; then
18366   gdb_cv_prfpregset_t_broken=yes
18367 else
18368   cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h.  */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h.  */
18374 #include <sys/procfs.h>
18375        int main ()
18376        {
18377          if (sizeof (prfpregset_t) == sizeof (void *))
18378            return 1;
18379          return 0;
18380        }
18381 _ACEOF
18382 rm -f conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384   (eval $ac_link) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389   (eval $ac_try) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; }; then
18393   gdb_cv_prfpregset_t_broken=no
18394 else
18395   echo "$as_me: program exited with status $ac_status" >&5
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ( exit $ac_status )
18400 gdb_cv_prfpregset_t_broken=yes
18401 fi
18402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18403 fi
18404 fi
18405
18406     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18407 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18408     if test $gdb_cv_prfpregset_t_broken = yes; then
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define PRFPREGSET_T_BROKEN 1
18412 _ACEOF
18413
18414     fi
18415   fi
18416
18417
18418   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18419 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18420   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429 #include <unistd.h>
18430 #include <sys/types.h>
18431 #include <sys/procfs.h>
18432
18433 int
18434 main ()
18435 {
18436
18437     int dummy;;
18438     dummy = ioctl(0, PIOCSET, &dummy);
18439
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446   (eval $ac_compile) 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_c_werror_flag"
18454                          || test ! -s conftest.err'
18455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456   (eval $ac_try) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest.$ac_objext'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   gdb_cv_have_procfs_piocset=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 gdb_cv_have_procfs_piocset=no
18472 fi
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 fi
18475
18476   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18477 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18478   if test $gdb_cv_have_procfs_piocset = yes; then
18479
18480 cat >>confdefs.h <<\_ACEOF
18481 #define HAVE_PROCFS_PIOCSET 1
18482 _ACEOF
18483
18484   fi
18485 fi
18486
18487 if test ${host} = ${target} ; then
18488
18489   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18490 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18491   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18492   echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494   cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500 #include <link.h>
18501 int
18502 main ()
18503 {
18504 struct link_map lm; (void) lm.l_addr;
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 rm -f conftest.$ac_objext
18510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18511   (eval $ac_compile) 2>conftest.er1
18512   ac_status=$?
18513   grep -v '^ *+' conftest.er1 >conftest.err
18514   rm -f conftest.er1
18515   cat conftest.err >&5
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); } &&
18518          { ac_try='test -z "$ac_c_werror_flag"
18519                          || test ! -s conftest.err'
18520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521   (eval $ac_try) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; } &&
18525          { ac_try='test -s conftest.$ac_objext'
18526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527   (eval $ac_try) 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; }; then
18531   gdb_cv_have_struct_link_map_with_l_members=yes
18532 else
18533   echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536 gdb_cv_have_struct_link_map_with_l_members=no
18537 fi
18538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18539 fi
18540
18541   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18542 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18543   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18544
18545 cat >>confdefs.h <<\_ACEOF
18546 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18547 _ACEOF
18548
18549   fi
18550
18551
18552   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18553 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18554   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 #include <sys/types.h>
18564 #include <link.h>
18565 int
18566 main ()
18567 {
18568 struct link_map lm; (void) lm.lm_addr;
18569   ;
18570   return 0;
18571 }
18572 _ACEOF
18573 rm -f conftest.$ac_objext
18574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18575   (eval $ac_compile) 2>conftest.er1
18576   ac_status=$?
18577   grep -v '^ *+' conftest.er1 >conftest.err
18578   rm -f conftest.er1
18579   cat conftest.err >&5
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); } &&
18582          { ac_try='test -z "$ac_c_werror_flag"
18583                          || test ! -s conftest.err'
18584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585   (eval $ac_try) 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest.$ac_objext'
18590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591   (eval $ac_try) 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; }; then
18595   gdb_cv_have_struct_link_map_with_lm_members=yes
18596 else
18597   echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18599
18600 gdb_cv_have_struct_link_map_with_lm_members=no
18601 fi
18602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18603 fi
18604
18605   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18606 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18607   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18608
18609 cat >>confdefs.h <<\_ACEOF
18610 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18611 _ACEOF
18612
18613   fi
18614
18615
18616   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18617 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18618   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621   cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 #include <sys/types.h>
18628 #ifdef HAVE_NLIST_H
18629 #include <nlist.h>
18630 #endif
18631 #include <link.h>
18632 int
18633 main ()
18634 {
18635 struct so_map lm; (void) lm.som_addr;
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18642   (eval $ac_compile) 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } &&
18649          { ac_try='test -z "$ac_c_werror_flag"
18650                          || test ! -s conftest.err'
18651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652   (eval $ac_try) 2>&5
18653   ac_status=$?
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); }; } &&
18656          { ac_try='test -s conftest.$ac_objext'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; }; then
18662   gdb_cv_have_struct_so_map_with_som_members=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 gdb_cv_have_struct_so_map_with_som_members=no
18668 fi
18669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18670 fi
18671
18672   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18673 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18674   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18675
18676 cat >>confdefs.h <<\_ACEOF
18677 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18678 _ACEOF
18679
18680   fi
18681
18682
18683   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18684 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18685   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18686   echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688   cat >conftest.$ac_ext <<_ACEOF
18689 /* confdefs.h.  */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h.  */
18694 #define _SYSCALL32
18695 #include <sys/link.h>
18696 int
18697 main ()
18698 {
18699 struct link_map32 l;
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706   (eval $ac_compile) 2>conftest.er1
18707   ac_status=$?
18708   grep -v '^ *+' conftest.er1 >conftest.err
18709   rm -f conftest.er1
18710   cat conftest.err >&5
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); } &&
18713          { ac_try='test -z "$ac_c_werror_flag"
18714                          || test ! -s conftest.err'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; } &&
18720          { ac_try='test -s conftest.$ac_objext'
18721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722   (eval $ac_try) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; }; then
18726   gdb_cv_have_struct_link_map32=yes
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 gdb_cv_have_struct_link_map32=no
18732 fi
18733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18734 fi
18735
18736   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18737 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18738   if test $gdb_cv_have_struct_link_map32 = yes; then
18739
18740 cat >>confdefs.h <<\_ACEOF
18741 #define HAVE_STRUCT_LINK_MAP32 1
18742 _ACEOF
18743
18744
18745 cat >>confdefs.h <<\_ACEOF
18746 #define _SYSCALL32 1
18747 _ACEOF
18748
18749   fi
18750 fi
18751
18752 # Check if the compiler supports the `long long' type.
18753
18754 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18755 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18756 if test "${gdb_cv_c_long_long+set}" = set; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759   cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765 extern long long foo;
18766 int
18767 main ()
18768 {
18769 switch (foo & 2) { case 0: return 1; }
18770   ;
18771   return 0;
18772 }
18773 _ACEOF
18774 rm -f conftest.$ac_objext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18776   (eval $ac_compile) 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } &&
18783          { ac_try='test -z "$ac_c_werror_flag"
18784                          || test ! -s conftest.err'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; } &&
18790          { ac_try='test -s conftest.$ac_objext'
18791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792   (eval $ac_try) 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; }; then
18796   gdb_cv_c_long_long=yes
18797 else
18798   echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801 gdb_cv_c_long_long=no
18802 fi
18803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18804 fi
18805 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18806 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18807 if test $gdb_cv_c_long_long = yes; then
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define CC_HAS_LONG_LONG 1
18811 _ACEOF
18812
18813 fi
18814
18815 # Check if the compiler and runtime support printing long longs.
18816
18817 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18818 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18819 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   if test "$cross_compiling" = yes; then
18823   gdb_cv_printf_has_long_long=no
18824 else
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 $ac_includes_default
18832 int
18833 main ()
18834 {
18835 char buf[32];
18836   long long l = 0;
18837   l = (l << 16) + 0x0123;
18838   l = (l << 16) + 0x4567;
18839   l = (l << 16) + 0x89ab;
18840   l = (l << 16) + 0xcdef;
18841   sprintf (buf, "0x%016llx", l);
18842   return (strcmp ("0x0123456789abcdef", buf));
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849   (eval $ac_link) 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; }; then
18858   gdb_cv_printf_has_long_long=yes
18859 else
18860   echo "$as_me: program exited with status $ac_status" >&5
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ( exit $ac_status )
18865 gdb_cv_printf_has_long_long=no
18866 fi
18867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18868 fi
18869 fi
18870 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18871 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18872 if test $gdb_cv_printf_has_long_long = yes; then
18873
18874 cat >>confdefs.h <<\_ACEOF
18875 #define PRINTF_HAS_LONG_LONG 1
18876 _ACEOF
18877
18878 fi
18879
18880 # Check if the compiler and runtime support printing decfloats.
18881
18882 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18883 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18884 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   if test "$cross_compiling" = yes; then
18888   gdb_cv_printf_has_decfloat=no
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896 $ac_includes_default
18897 int
18898 main ()
18899 {
18900 char buf[64];
18901   _Decimal32 d32 = 1.2345df;
18902   _Decimal64 d64 = 1.2345dd;
18903   _Decimal128 d128 = 1.2345dl;
18904   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18905   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18906   ;
18907   return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest$ac_exeext
18911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18912   (eval $ac_link) 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917   (eval $ac_try) 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   gdb_cv_printf_has_decfloat=yes
18922 else
18923   echo "$as_me: program exited with status $ac_status" >&5
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 ( exit $ac_status )
18928 gdb_cv_printf_has_decfloat=no
18929 fi
18930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18931 fi
18932 fi
18933 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18934 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18935 if test $gdb_cv_printf_has_decfloat = yes; then
18936
18937 cat >>confdefs.h <<\_ACEOF
18938 #define PRINTF_HAS_DECFLOAT 1
18939 _ACEOF
18940
18941 fi
18942
18943 # Check if the compiler supports the `long double' type.  We can't use
18944 # AC_C_LONG_DOUBLE because that one does additional checks on the
18945 # constants defined in <float.h> that fail on some systems,
18946 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18947
18948 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18949 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18950 if test "${gdb_cv_c_long_double+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953   cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h.  */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h.  */
18959 long double foo;
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963   (eval $ac_compile) 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_c_werror_flag"
18971                          || test ! -s conftest.err'
18972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973   (eval $ac_try) 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; } &&
18977          { ac_try='test -s conftest.$ac_objext'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; }; then
18983   gdb_cv_c_long_double=yes
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 gdb_cv_c_long_double=no
18989 fi
18990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991 fi
18992 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18993 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18994 if test $gdb_cv_c_long_double = yes; then
18995
18996 cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_LONG_DOUBLE 1
18998 _ACEOF
18999
19000 fi
19001
19002 # Check if the compiler and runtime support printing long doubles.
19003
19004 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19005 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19006 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   if test "$cross_compiling" = yes; then
19010   gdb_cv_printf_has_long_double=no
19011 else
19012   cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018 $ac_includes_default
19019 int
19020 main ()
19021 {
19022 char buf[16];
19023   long double f = 3.141592653;
19024   sprintf (buf, "%Lg", f);
19025   return (strncmp ("3.14159", buf, 7));
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032   (eval $ac_link) 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; }; then
19041   gdb_cv_printf_has_long_double=yes
19042 else
19043   echo "$as_me: program exited with status $ac_status" >&5
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 ( exit $ac_status )
19048 gdb_cv_printf_has_long_double=no
19049 fi
19050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19051 fi
19052 fi
19053 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19054 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19055 if test $gdb_cv_printf_has_long_double = yes; then
19056
19057 cat >>confdefs.h <<\_ACEOF
19058 #define PRINTF_HAS_LONG_DOUBLE 1
19059 _ACEOF
19060
19061 fi
19062
19063 # Check if the compiler and runtime support scanning long doubles.
19064
19065 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19066 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19067 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   if test "$cross_compiling" = yes; then
19071   gdb_cv_scanf_has_long_double=no
19072 else
19073   cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h.  */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h.  */
19079 #include <stdio.h>
19080 int
19081 main ()
19082 {
19083 char *buf = "3.141592653";
19084   long double f = 0;
19085   sscanf (buf, "%Lg", &f);
19086   return !(f > 3.14159 && f < 3.14160);
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest$ac_exeext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19093   (eval $ac_link) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098   (eval $ac_try) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   gdb_cv_scanf_has_long_double=yes
19103 else
19104   echo "$as_me: program exited with status $ac_status" >&5
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108 ( exit $ac_status )
19109 gdb_cv_scanf_has_long_double=no
19110 fi
19111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19112 fi
19113 fi
19114 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19115 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19116 if test $gdb_cv_scanf_has_long_double = yes; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define SCANF_HAS_LONG_DOUBLE 1
19120 _ACEOF
19121
19122 fi
19123
19124 case ${host_os} in
19125 aix*)
19126   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19127 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19128 if test "${gdb_cv_bigtoc+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131
19132     SAVE_LDFLAGS=$LDFLAGS
19133
19134     case $GCC in
19135     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19136     *) gdb_cv_bigtoc=-bbigtoc ;;
19137     esac
19138
19139     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19140     cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h.  */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h.  */
19146
19147 int
19148 main ()
19149 {
19150 int i;
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157   (eval $ac_link) 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -z "$ac_c_werror_flag"
19165                          || test ! -s conftest.err'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; } &&
19171          { ac_try='test -s conftest$ac_exeext'
19172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173   (eval $ac_try) 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; }; then
19177   :
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 gdb_cv_bigtoc=
19183 fi
19184 rm -f conftest.err conftest.$ac_objext \
19185       conftest$ac_exeext conftest.$ac_ext
19186     LDFLAGS="${SAVE_LDFLAGS}"
19187
19188 fi
19189 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19190 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19191   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19192   ;;
19193 esac
19194
19195
19196
19197 if test ${build} = ${host} -a ${host} = ${target} ; then
19198    case ${host_os} in
19199    hpux*)
19200       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19201 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19202       if test -f /usr/include/dce/cma_config.h ; then
19203          if test "$GCC" = "yes" ; then
19204             echo "$as_me:$LINENO: result: yes" >&5
19205 echo "${ECHO_T}yes" >&6
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE_HPUX_THREAD_SUPPORT 1
19209 _ACEOF
19210
19211             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19212             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19213          else
19214             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19215 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19216          fi
19217       else
19218          echo "$as_me:$LINENO: result: no" >&5
19219 echo "${ECHO_T}no" >&6
19220       fi
19221       ;;
19222    solaris*)
19223       # See if thread_db library is around for Solaris thread debugging.
19224       # Note that we must explicitly test for version 1 of the library
19225       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19226       # the same API.
19227       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19228 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19229       if test -f /usr/lib/libthread_db.so.1 ; then
19230          echo "$as_me:$LINENO: result: yes" >&5
19231 echo "${ECHO_T}yes" >&6
19232
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE_THREAD_DB_LIB 1
19235 _ACEOF
19236
19237          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19238          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19239
19240 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19241 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19242 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   ac_check_lib_save_LIBS=$LIBS
19246 LIBS="-ldl  $LIBS"
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253
19254 /* Override any gcc2 internal prototype to avoid an error.  */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 /* We use char because int might match the return type of a gcc2
19259    builtin and then its argument prototype would still apply.  */
19260 char dlopen ();
19261 int
19262 main ()
19263 {
19264 dlopen ();
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271   (eval $ac_link) 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag"
19279                          || test ! -s conftest.err'
19280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281   (eval $ac_try) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; } &&
19285          { ac_try='test -s conftest$ac_exeext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_cv_lib_dl_dlopen=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_cv_lib_dl_dlopen=no
19297 fi
19298 rm -f conftest.err conftest.$ac_objext \
19299       conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19303 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19304 if test $ac_cv_lib_dl_dlopen = yes; then
19305   cat >>confdefs.h <<_ACEOF
19306 #define HAVE_LIBDL 1
19307 _ACEOF
19308
19309   LIBS="-ldl $LIBS"
19310
19311 fi
19312
19313          if test "$GCC" = "yes" ; then
19314             # The GNU linker requires the -export-dynamic option to make
19315             # all symbols visible in the dynamic symbol table.
19316             hold_ldflags=$LDFLAGS
19317             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19318 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19319             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19320             cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326
19327 int
19328 main ()
19329 {
19330 int i;
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337   (eval $ac_link) 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } &&
19344          { ac_try='test -z "$ac_c_werror_flag"
19345                          || test ! -s conftest.err'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; } &&
19351          { ac_try='test -s conftest$ac_exeext'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; }; then
19357   found=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362 found=no
19363 fi
19364 rm -f conftest.err conftest.$ac_objext \
19365       conftest$ac_exeext conftest.$ac_ext
19366             LDFLAGS=$hold_ldflags
19367             echo "$as_me:$LINENO: result: $found" >&5
19368 echo "${ECHO_T}$found" >&6
19369             if test $found = yes; then
19370                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19371             fi
19372          fi
19373          # Sun randomly tweaked the prototypes in <proc_service.h>
19374          # at one point.
19375          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19376 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19377          if test "${gdb_cv_proc_service_is_old+set}" = set; then
19378   echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380
19381             cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387
19388                 #include <proc_service.h>
19389                 ps_err_e ps_pdwrite
19390                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
19391
19392 int
19393 main ()
19394 {
19395
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19402   (eval $ac_compile) 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_c_werror_flag"
19410                          || test ! -s conftest.err'
19411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412   (eval $ac_try) 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }; } &&
19416          { ac_try='test -s conftest.$ac_objext'
19417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418   (eval $ac_try) 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); }; }; then
19422   gdb_cv_proc_service_is_old=no
19423 else
19424   echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19426
19427 gdb_cv_proc_service_is_old=yes
19428 fi
19429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19430
19431 fi
19432
19433          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19434 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19435          if test $gdb_cv_proc_service_is_old = yes; then
19436
19437 cat >>confdefs.h <<\_ACEOF
19438 #define PROC_SERVICE_IS_OLD 1
19439 _ACEOF
19440
19441          fi
19442       else
19443          echo "$as_me:$LINENO: result: no" >&5
19444 echo "${ECHO_T}no" >&6
19445       fi
19446       ;;
19447    aix*)
19448       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19449 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19450       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453   cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459 #include <sys/pthdebug.h>
19460 int
19461 main ()
19462 {
19463 #ifndef PTHDB_VERSION_3
19464                                     #error
19465                                     #endif
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472   (eval $ac_compile) 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -z "$ac_c_werror_flag"
19480                          || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest.$ac_objext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   gdb_cv_have_aix_thread_debug=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 gdb_cv_have_aix_thread_debug=no
19498 fi
19499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19500 fi
19501
19502       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19503 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19504       if test $gdb_cv_have_aix_thread_debug = yes; then
19505          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19506          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19507          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19508       fi
19509       ;;
19510    esac
19511
19512 fi
19513
19514 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19515    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19516 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19517 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520   cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526 #include <thread_db.h>
19527 int
19528 main ()
19529 {
19530 int i = TD_NOTALLOC;
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537   (eval $ac_compile) 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag"
19545                          || test ! -s conftest.err'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547   (eval $ac_try) 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; } &&
19551          { ac_try='test -s conftest.$ac_objext'
19552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553   (eval $ac_try) 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   gdb_cv_thread_db_h_has_td_notalloc=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 gdb_cv_thread_db_h_has_td_notalloc=no
19563
19564 fi
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566
19567 fi
19568 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19569 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19570    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19571 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19572 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581 #include <thread_db.h>
19582 int
19583 main ()
19584 {
19585 int i = TD_VERSION;
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592   (eval $ac_compile) 2>conftest.er1
19593   ac_status=$?
19594   grep -v '^ *+' conftest.er1 >conftest.err
19595   rm -f conftest.er1
19596   cat conftest.err >&5
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -z "$ac_c_werror_flag"
19600                          || test ! -s conftest.err'
19601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602   (eval $ac_try) 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest.$ac_objext'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   gdb_cv_thread_db_h_has_td_version=yes
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 gdb_cv_thread_db_h_has_td_version=no
19618
19619 fi
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621
19622 fi
19623 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19624 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19625    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19626 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19627 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19628   echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630   cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636 #include <thread_db.h>
19637 int
19638 main ()
19639 {
19640 int i = TD_NOTLS;
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647   (eval $ac_compile) 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } &&
19654          { ac_try='test -z "$ac_c_werror_flag"
19655                          || test ! -s conftest.err'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; } &&
19661          { ac_try='test -s conftest.$ac_objext'
19662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663   (eval $ac_try) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   gdb_cv_thread_db_h_has_td_notls=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 gdb_cv_thread_db_h_has_td_notls=no
19673
19674 fi
19675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19676
19677 fi
19678 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19679 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19680 fi
19681 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19682
19683 cat >>confdefs.h <<\_ACEOF
19684 #define THREAD_DB_HAS_TD_NOTALLOC 1
19685 _ACEOF
19686
19687 fi
19688 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19689
19690 cat >>confdefs.h <<\_ACEOF
19691 #define THREAD_DB_HAS_TD_VERSION 1
19692 _ACEOF
19693
19694 fi
19695 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19696
19697 cat >>confdefs.h <<\_ACEOF
19698 #define THREAD_DB_HAS_TD_NOTLS 1
19699 _ACEOF
19700
19701 fi
19702
19703 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19704    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19705 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19706 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19707   echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709   cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 #include <sys/syscall.h>
19716 int
19717 main ()
19718 {
19719 int i = __NR_tkill;
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726   (eval $ac_compile) 2>conftest.er1
19727   ac_status=$?
19728   grep -v '^ *+' conftest.er1 >conftest.err
19729   rm -f conftest.er1
19730   cat conftest.err >&5
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } &&
19733          { ac_try='test -z "$ac_c_werror_flag"
19734                          || test ! -s conftest.err'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; } &&
19740          { ac_try='test -s conftest.$ac_objext'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   gdb_cv_sys_syscall_h_has_tkill=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 gdb_cv_sys_syscall_h_has_tkill=no
19752
19753 fi
19754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19755
19756 fi
19757 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19758 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19759 fi
19760 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_TKILL_SYSCALL 1
19764 _ACEOF
19765
19766 fi
19767
19768 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19769 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19770 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 #include <sys/personality.h>
19780
19781 int
19782 main ()
19783 {
19784 #ifndef ADDR_NO_RANDOMIZE
19785   char *p = (char *) ADDR_NO_RANDOMIZE;
19786 #endif
19787
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19794   (eval $ac_compile) 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } &&
19801          { ac_try='test -z "$ac_c_werror_flag"
19802                          || test ! -s conftest.err'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; } &&
19808          { ac_try='test -s conftest.$ac_objext'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; }; then
19814   ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19815 else
19816   echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19820 fi
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 fi
19823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19824 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19825 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19826
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19829 _ACEOF
19830
19831
19832 else
19833   cat >>confdefs.h <<_ACEOF
19834 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19835 _ACEOF
19836
19837
19838 fi
19839
19840
19841
19842 if test "$cross_compiling" = yes; then
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 #include <sys/personality.h>
19850 int
19851 main ()
19852 {
19853
19854 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
19855 #       define ADDR_NO_RANDOMIZE 0x0040000
19856 #      endif
19857        /* Test the flag could be set and stays set.  */
19858        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19859        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19860            return 1
19861   ;
19862   return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19867   (eval $ac_link) 2>conftest.er1
19868   ac_status=$?
19869   grep -v '^ *+' conftest.er1 >conftest.err
19870   rm -f conftest.er1
19871   cat conftest.err >&5
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } &&
19874          { ac_try='test -z "$ac_c_werror_flag"
19875                          || test ! -s conftest.err'
19876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877   (eval $ac_try) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); }; } &&
19881          { ac_try='test -s conftest$ac_exeext'
19882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883   (eval $ac_try) 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   have_personality=true
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 have_personality=false
19893 fi
19894 rm -f conftest.err conftest.$ac_objext \
19895       conftest$ac_exeext conftest.$ac_ext
19896 else
19897   cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 #include <sys/personality.h>
19904 int
19905 main ()
19906 {
19907
19908 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
19909 #       define ADDR_NO_RANDOMIZE 0x0040000
19910 #      endif
19911        /* Test the flag could be set and stays set.  */
19912        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19913        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19914            return 1
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921   (eval $ac_link) 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   have_personality=true
19931 else
19932   echo "$as_me: program exited with status $ac_status" >&5
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 ( exit $ac_status )
19937 have_personality=false
19938 fi
19939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19940 fi
19941 if $have_personality
19942 then
19943
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_PERSONALITY 1
19946 _ACEOF
19947
19948 fi
19949
19950
19951 target_sysroot_reloc=0
19952
19953 # Check whether --with-sysroot or --without-sysroot was given.
19954 if test "${with_sysroot+set}" = set; then
19955   withval="$with_sysroot"
19956
19957  case ${with_sysroot} in
19958  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19959  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19960  esac
19961
19962  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19963
19964  if test "x$prefix" = xNONE; then
19965   test_prefix=/usr/local
19966  else
19967   test_prefix=$prefix
19968  fi
19969  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19970   test_exec_prefix=$test_prefix
19971  else
19972   test_exec_prefix=$exec_prefix
19973  fi
19974  case ${TARGET_SYSTEM_ROOT} in
19975  "${test_prefix}"|"${test_prefix}/"*|\
19976  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19977  '${prefix}'|'${prefix}/'*|\
19978  '${exec_prefix}'|'${exec_prefix}/'*)
19979    target_sysroot_reloc=1
19980    ;;
19981  esac
19982
19983 else
19984
19985  TARGET_SYSTEM_ROOT=
19986  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19987
19988 fi;
19989 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
19990
19991
19992
19993
19994
19995 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19996 if test "${with_system_gdbinit+set}" = set; then
19997   withval="$with_system_gdbinit"
19998
19999     SYSTEM_GDBINIT=$withval
20000 else
20001   SYSTEM_GDBINIT=
20002 fi;
20003
20004   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20005   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20006   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
20007   ac_define_dir=`eval echo $ac_define_dir`
20008
20009 cat >>confdefs.h <<_ACEOF
20010 #define SYSTEM_GDBINIT "$ac_define_dir"
20011 _ACEOF
20012
20013
20014
20015   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20016      if test "x$prefix" = xNONE; then
20017         test_prefix=/usr/local
20018      else
20019         test_prefix=$prefix
20020      fi
20021   else
20022      test_prefix=$exec_prefix
20023   fi
20024   value=0
20025   case ${ac_define_dir} in
20026      "${test_prefix}"|"${test_prefix}/"*|\
20027         '${exec_prefix}'|'${exec_prefix}/'*)
20028      value=1
20029      ;;
20030   esac
20031
20032 cat >>confdefs.h <<_ACEOF
20033 #define SYSTEM_GDBINIT_RELOCATABLE $value
20034 _ACEOF
20035
20036
20037
20038 # Check whether --enable-werror or --disable-werror was given.
20039 if test "${enable_werror+set}" = set; then
20040   enableval="$enable_werror"
20041   case "${enableval}" in
20042      yes | y) ERROR_ON_WARNING="yes" ;;
20043      no | n)  ERROR_ON_WARNING="no" ;;
20044      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20045 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20046    { (exit 1); exit 1; }; } ;;
20047    esac
20048 fi;
20049
20050 # Enable -Werror by default when using gcc
20051 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20052     ERROR_ON_WARNING=yes
20053 fi
20054
20055 WERROR_CFLAGS=""
20056 if test "${ERROR_ON_WARNING}" = yes ; then
20057     WERROR_CFLAGS="-Werror"
20058 fi
20059
20060 # The entries after -Wno-pointer-sign are disabled warnings which may
20061 # be enabled in the future, which can not currently be used to build
20062 # GDB.
20063 # NOTE: If you change this list, remember to update
20064 # gdb/doc/gdbint.texinfo.
20065 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20066 -Wformat-nonliteral -Wno-pointer-sign \
20067 -Wno-unused -Wno-switch -Wno-char-subscripts"
20068
20069 # Enable -Wno-format by default when using gcc on mingw since many
20070 # GCC versions complain about %I64.
20071 case "${host}" in
20072   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
20073 esac
20074
20075 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20076 if test "${enable_build_warnings+set}" = set; then
20077   enableval="$enable_build_warnings"
20078   case "${enableval}" in
20079   yes)  ;;
20080   no)   build_warnings="-w";;
20081   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20082         build_warnings="${build_warnings} ${t}";;
20083   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20084         build_warnings="${t} ${build_warnings}";;
20085   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20086 esac
20087 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20088   echo "Setting compiler warning flags = $build_warnings" 6>&1
20089 fi
20090 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20091 if test "${enable_gdb_build_warnings+set}" = set; then
20092   enableval="$enable_gdb_build_warnings"
20093   case "${enableval}" in
20094   yes)  ;;
20095   no)   build_warnings="-w";;
20096   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20097         build_warnings="${build_warnings} ${t}";;
20098   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
20099         build_warnings="${t} ${build_warnings}";;
20100   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20101 esac
20102 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20103   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20104 fi
20105 fi; WARN_CFLAGS=""
20106 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20107 then
20108     echo "$as_me:$LINENO: checking compiler warning flags" >&5
20109 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20110     # Separate out the -Werror flag as some files just cannot be
20111     # compiled with it enabled.
20112     for w in ${build_warnings}; do
20113         case $w in
20114         -Werr*) WERROR_CFLAGS=-Werror ;;
20115         *) # Check that GCC accepts it
20116             saved_CFLAGS="$CFLAGS"
20117             CFLAGS="$CFLAGS $w"
20118             cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124
20125 int
20126 main ()
20127 {
20128
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135   (eval $ac_compile) 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag"
20143                          || test ! -s conftest.err'
20144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145   (eval $ac_try) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest.$ac_objext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   WARN_CFLAGS="${WARN_CFLAGS} $w"
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 fi
20161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20162             CFLAGS="$saved_CFLAGS"
20163         esac
20164     done
20165     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20166 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20167 fi
20168
20169
20170
20171 # In the Cygwin environment, we need some additional flags.
20172 echo "$as_me:$LINENO: checking for cygwin" >&5
20173 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20174 if test "${gdb_cv_os_cygwin+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183
20184 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20185 lose
20186 #endif
20187 _ACEOF
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189   $EGREP "lose" >/dev/null 2>&1; then
20190   gdb_cv_os_cygwin=yes
20191 else
20192   gdb_cv_os_cygwin=no
20193 fi
20194 rm -f conftest*
20195
20196 fi
20197 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20198 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20199
20200
20201 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20202 case ${host} in
20203   *go32* ) SER_HARDWIRE=ser-go32.o ;;
20204   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20205   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20206 esac
20207
20208
20209 # libreadline needs libuser32.a in a cygwin environment
20210 WIN32LIBS=
20211 if test x$gdb_cv_os_cygwin = xyes; then
20212     WIN32LIBS="-luser32"
20213     case "${target}" in
20214         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20215         ;;
20216     esac
20217 fi
20218
20219 # The ser-tcp.c module requires sockets.
20220 case ${host} in
20221   *mingw32*)
20222
20223 cat >>confdefs.h <<\_ACEOF
20224 #define USE_WIN32API 1
20225 _ACEOF
20226
20227     WIN32LIBS="$WIN32LIBS -lws2_32"
20228     ;;
20229 esac
20230
20231
20232 # Add ELF support to GDB, but only if BFD includes ELF support.
20233 OLD_CFLAGS=$CFLAGS
20234 OLD_LDFLAGS=$LDFLAGS
20235 OLD_LIBS=$LIBS
20236 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20237 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20238 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20239 LIBS="-lbfd -liberty $intl $LIBS"
20240 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20241 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20242 if test "${gdb_cv_var_elf+set}" = set; then
20243   echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 #include <stdlib.h>
20252 #include "bfd.h"
20253 #include "elf-bfd.h"
20254
20255 int
20256 main ()
20257 {
20258 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265   (eval $ac_link) 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag"
20273                          || test ! -s conftest.err'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; } &&
20279          { ac_try='test -s conftest$ac_exeext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   gdb_cv_var_elf=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 gdb_cv_var_elf=no
20291 fi
20292 rm -f conftest.err conftest.$ac_objext \
20293       conftest$ac_exeext conftest.$ac_ext
20294 fi
20295 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20296 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20297 if test $gdb_cv_var_elf = yes; then
20298   CONFIG_OBS="$CONFIG_OBS elfread.o"
20299
20300 cat >>confdefs.h <<\_ACEOF
20301 #define HAVE_ELF 1
20302 _ACEOF
20303
20304 fi
20305 CFLAGS=$OLD_CFLAGS
20306 LDFLAGS=$OLD_LDFLAGS
20307 LIBS=$OLD_LIBS
20308
20309 # Add any host-specific objects to GDB.
20310 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20311
20312 LIBGUI="../libgui/src/libgui.a"
20313 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20314
20315
20316
20317 WIN32LDAPP=
20318
20319
20320
20321 case "${host}" in
20322 *-*-cygwin* | *-*-mingw* )
20323     configdir="win"
20324     ;;
20325 *)
20326     configdir="unix"
20327     ;;
20328 esac
20329
20330 GDBTKLIBS=
20331 if test "${enable_gdbtk}" = "yes"; then
20332
20333     # Gdbtk must have an absolute path to srcdir in order to run
20334     # properly when not installed.
20335     here=`pwd`
20336     cd ${srcdir}
20337     GDBTK_SRC_DIR=`pwd`
20338     cd $here
20339
20340
20341     #
20342     # Ok, lets find the tcl configuration
20343     # First, look for one uninstalled.
20344     # the alternative search directory is invoked by --with-tcl
20345     #
20346
20347     if test x"${no_tcl}" = x ; then
20348         # we reset no_tcl in case something fails here
20349         no_tcl=true
20350
20351 # Check whether --with-tcl or --without-tcl was given.
20352 if test "${with_tcl+set}" = set; then
20353   withval="$with_tcl"
20354   with_tclconfig=${withval}
20355 fi;
20356         echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20357 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20358         if test "${ac_cv_c_tclconfig+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361
20362
20363             # First check to see if --with-tcl was specified.
20364             case "${host}" in
20365                 *-*-cygwin*) platDir="win" ;;
20366                 *) platDir="unix" ;;
20367             esac
20368             if test x"${with_tclconfig}" != x ; then
20369                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20370                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20371                 else
20372                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20373 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20374    { (exit 1); exit 1; }; }
20375                 fi
20376             fi
20377
20378             # then check for a private Tcl installation
20379             if test x"${ac_cv_c_tclconfig}" = x ; then
20380                 for i in \
20381                         ../tcl \
20382                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20383                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20384                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20385                         ../../tcl \
20386                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20387                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20388                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20389                         ../../../tcl \
20390                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20391                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20392                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20393                     if test -f "$i/$platDir/tclConfig.sh" ; then
20394                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20395                         break
20396                     fi
20397                 done
20398             fi
20399
20400             # on Darwin, check in Framework installation locations
20401             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20402                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20403                         `ls -d /Library/Frameworks 2>/dev/null` \
20404                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
20405                         `ls -d /System/Library/Frameworks 2>/dev/null` \
20406                         ; do
20407                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20408                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20409                         break
20410                     fi
20411                 done
20412             fi
20413
20414             # check in a few common install locations
20415             if test x"${ac_cv_c_tclconfig}" = x ; then
20416                 for i in `ls -d ${libdir} 2>/dev/null` \
20417                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
20418                         `ls -d ${prefix}/lib 2>/dev/null` \
20419                         `ls -d /usr/local/lib 2>/dev/null` \
20420                         `ls -d /usr/contrib/lib 2>/dev/null` \
20421                         `ls -d /usr/lib 2>/dev/null` \
20422                         ; do
20423                     if test -f "$i/tclConfig.sh" ; then
20424                         ac_cv_c_tclconfig=`(cd $i; pwd)`
20425                         break
20426                     fi
20427                 done
20428             fi
20429
20430             # check in a few other private locations
20431             if test x"${ac_cv_c_tclconfig}" = x ; then
20432                 for i in \
20433                         ${srcdir}/../tcl \
20434                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20435                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20436                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20437                     if test -f "$i/$platDir/tclConfig.sh" ; then
20438                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20439                     break
20440                 fi
20441                 done
20442             fi
20443
20444 fi
20445
20446
20447         if test x"${ac_cv_c_tclconfig}" = x ; then
20448             TCL_BIN_DIR="# no Tcl configs found"
20449             { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20450 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20451         else
20452             no_tcl=
20453             TCL_BIN_DIR=${ac_cv_c_tclconfig}
20454             echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20455 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20456         fi
20457     fi
20458
20459
20460     # If $no_tk is nonempty, then we can't do Tk, and there is no
20461     # point to doing Tcl.
20462
20463     #
20464     # Ok, lets find the tk configuration
20465     # First, look for one uninstalled.
20466     # the alternative search directory is invoked by --with-tk
20467     #
20468
20469     if test x"${no_tk}" = x ; then
20470         # we reset no_tk in case something fails here
20471         no_tk=true
20472
20473 # Check whether --with-tk or --without-tk was given.
20474 if test "${with_tk+set}" = set; then
20475   withval="$with_tk"
20476   with_tkconfig=${withval}
20477 fi;
20478         echo "$as_me:$LINENO: checking for Tk configuration" >&5
20479 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20480         if test "${ac_cv_c_tkconfig+set}" = set; then
20481   echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483
20484
20485             # First check to see if --with-tkconfig was specified.
20486             if test x"${with_tkconfig}" != x ; then
20487                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20488                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20489                 else
20490                     { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20491 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20492    { (exit 1); exit 1; }; }
20493                 fi
20494             fi
20495
20496             # then check for a private Tk library
20497             case "${host}" in
20498                 *-*-cygwin*) platDir="win" ;;
20499                 *) platDir="unix" ;;
20500             esac
20501             if test x"${ac_cv_c_tkconfig}" = x ; then
20502                 for i in \
20503                         ../tk \
20504                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20505                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20506                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20507                         ../../tk \
20508                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20509                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20510                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20511                         ../../../tk \
20512                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20513                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20514                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20515                     if test -f "$i/$platDir/tkConfig.sh" ; then
20516                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20517                         break
20518                     fi
20519                 done
20520             fi
20521
20522             # on Darwin, check in Framework installation locations
20523             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20524                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20525                         `ls -d /Library/Frameworks 2>/dev/null` \
20526                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
20527                         `ls -d /System/Library/Frameworks 2>/dev/null` \
20528                         ; do
20529                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
20530                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20531                         break
20532                     fi
20533                 done
20534             fi
20535
20536             # check in a few common install locations
20537             if test x"${ac_cv_c_tkconfig}" = x ; then
20538                 for i in `ls -d ${libdir} 2>/dev/null` \
20539                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
20540                         `ls -d ${prefix}/lib 2>/dev/null` \
20541                         `ls -d /usr/local/lib 2>/dev/null` \
20542                         `ls -d /usr/contrib/lib 2>/dev/null` \
20543                         `ls -d /usr/lib 2>/dev/null` \
20544                         ; do
20545                     if test -f "$i/tkConfig.sh" ; then
20546                         ac_cv_c_tkconfig=`(cd $i; pwd)`
20547                         break
20548                     fi
20549                 done
20550             fi
20551             # check in a few other private locations
20552             if test x"${ac_cv_c_tkconfig}" = x ; then
20553                 for i in \
20554                         ${srcdir}/../tk \
20555                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20556                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20557                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20558                     if test -f "$i/$platDir/tkConfig.sh" ; then
20559                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20560                         break
20561                     fi
20562                 done
20563             fi
20564
20565 fi
20566
20567
20568         if test x"${ac_cv_c_tkconfig}" = x ; then
20569             TK_BIN_DIR="# no Tk configs found"
20570             { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20571 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20572         else
20573             no_tk=
20574             TK_BIN_DIR=${ac_cv_c_tkconfig}
20575             echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20576 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20577         fi
20578     fi
20579
20580
20581     if test -z "${no_tcl}" -a -z "${no_tk}"; then
20582
20583     echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20584 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20585
20586     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20587         echo "$as_me:$LINENO: result: loading" >&5
20588 echo "${ECHO_T}loading" >&6
20589         . ${TCL_BIN_DIR}/tclConfig.sh
20590     else
20591         echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20592 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20593     fi
20594
20595     # eval is required to do the TCL_DBGX substitution
20596     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20597     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20598
20599     # If the TCL_BIN_DIR is the build directory (not the install directory),
20600     # then set the common variable name to the value of the build variables.
20601     # For example, the variable TCL_LIB_SPEC will be set to the value
20602     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20603     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20604     # installed and uninstalled version of Tcl.
20605     if test -f "${TCL_BIN_DIR}/Makefile" ; then
20606         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20607         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20608         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20609     elif test "`uname -s`" = "Darwin"; then
20610         # If Tcl was built as a framework, attempt to use the libraries
20611         # from the framework at the given location so that linking works
20612         # against Tcl.framework installed in an arbitary location.
20613         case ${TCL_DEFS} in
20614             *TCL_FRAMEWORK*)
20615                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20616                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20617                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20618                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20619                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20620                             break
20621                         fi
20622                     done
20623                 fi
20624                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20625                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20626                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20627                 fi
20628                 ;;
20629         esac
20630     fi
20631
20632     # eval is required to do the TCL_DBGX substitution
20633     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20634     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20635     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20636     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652         # Check for in-tree tcl
20653         here=`pwd`
20654         cd ${srcdir}/..
20655         topdir=`pwd`
20656         cd ${here}
20657
20658         intree="no"
20659         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20660           intree="yes"
20661         fi
20662
20663         # Find Tcl private headers
20664         if test x"${intree}" = xno; then
20665
20666   echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20667 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20668   private_dir=""
20669   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20670   if test -f ${dir}/tclInt.h ; then
20671     private_dir=${dir}
20672   fi
20673
20674   if test x"${private_dir}" = x; then
20675     { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20676 echo "$as_me: error: could not find private Tcl headers" >&2;}
20677    { (exit 1); exit 1; }; }
20678   else
20679     TCL_PRIVATE_INCLUDE="-I${private_dir}"
20680     echo "$as_me:$LINENO: result: ${private_dir}" >&5
20681 echo "${ECHO_T}${private_dir}" >&6
20682   fi
20683
20684           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20685           TCL_LIBRARY="${TCL_LIB_SPEC}"
20686           TCL_DEPS=""
20687         else
20688           # If building tcl in the same src tree, private headers
20689           # are not needed, but we need to be sure to use the right
20690           # headers library
20691           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20692           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20693           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20694         fi
20695
20696
20697
20698
20699
20700     echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20701 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20702
20703     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20704         echo "$as_me:$LINENO: result: loading" >&5
20705 echo "${ECHO_T}loading" >&6
20706         . ${TK_BIN_DIR}/tkConfig.sh
20707     else
20708         echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20709 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20710     fi
20711
20712     # eval is required to do the TK_DBGX substitution
20713     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20714     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20715
20716     # If the TK_BIN_DIR is the build directory (not the install directory),
20717     # then set the common variable name to the value of the build variables.
20718     # For example, the variable TK_LIB_SPEC will be set to the value
20719     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20720     # instead of TK_BUILD_LIB_SPEC since it will work with both an
20721     # installed and uninstalled version of Tcl.
20722     if test -f "${TK_BIN_DIR}/Makefile" ; then
20723         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20724         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20725         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20726     elif test "`uname -s`" = "Darwin"; then
20727         # If Tk was built as a framework, attempt to use the libraries
20728         # from the framework at the given location so that linking works
20729         # against Tk.framework installed in an arbitary location.
20730         case ${TK_DEFS} in
20731             *TK_FRAMEWORK*)
20732                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20733                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
20734                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20735                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20736                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20737                             break
20738                         fi
20739                     done
20740                 fi
20741                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20742                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20743                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20744                 fi
20745                 ;;
20746         esac
20747     fi
20748
20749     # eval is required to do the TK_DBGX substitution
20750     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20751     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20752     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20753     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768         # Check for in-tree Tk
20769         intree="no"
20770         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20771           intree="yes"
20772         fi
20773
20774         # Find Tk private headers
20775         if test x"${intree}" = xno; then
20776
20777   echo "$as_me:$LINENO: checking for Tk private headers" >&5
20778 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20779   private_dir=""
20780   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20781   if test -f ${dir}/tkInt.h; then
20782     private_dir=${dir}
20783   fi
20784
20785   if test x"${private_dir}" = x; then
20786     { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20787 echo "$as_me: error: could not find Tk private headers" >&2;}
20788    { (exit 1); exit 1; }; }
20789   else
20790     TK_PRIVATE_INCLUDE="-I${private_dir}"
20791     echo "$as_me:$LINENO: result: ${private_dir}" >&5
20792 echo "${ECHO_T}${private_dir}" >&6
20793   fi
20794
20795           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20796           TK_LIBRARY=${TK_LIB_SPEC}
20797           TK_DEPS=""
20798         else
20799           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20800           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20801           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20802         fi
20803
20804
20805
20806
20807
20808         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20809
20810         # Include some libraries that Tcl and Tk want.
20811         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20812         # Yes, the ordering seems wrong here.  But it isn't.
20813         # TK_LIBS is the list of libraries that need to be linked
20814         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
20815         # were in LIBS then any link tests after this point would
20816         # try to include things like `$(LIBGUI)', which wouldn't work.
20817         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20818
20819         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20820         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20821         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20822         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20823         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20824         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20825         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20826
20827         if test x$gdb_cv_os_cygwin = xyes; then
20828           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20829           WIN32LDAPP="-Wl,--subsystem,console"
20830           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20831         fi
20832
20833
20834
20835 subdirs="$subdirs gdbtk"
20836
20837     fi
20838 fi
20839
20840
20841
20842
20843
20844
20845
20846
20847 echo "$as_me:$LINENO: checking for X" >&5
20848 echo $ECHO_N "checking for X... $ECHO_C" >&6
20849
20850
20851 # Check whether --with-x or --without-x was given.
20852 if test "${with_x+set}" = set; then
20853   withval="$with_x"
20854
20855 fi;
20856 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20857 if test "x$with_x" = xno; then
20858   # The user explicitly disabled X.
20859   have_x=disabled
20860 else
20861   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20862     # Both variables are already set.
20863     have_x=yes
20864   else
20865     if test "${ac_cv_have_x+set}" = set; then
20866   echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20868   # One or both of the vars are not set, and there is no cached value.
20869 ac_x_includes=no ac_x_libraries=no
20870 rm -fr conftest.dir
20871 if mkdir conftest.dir; then
20872   cd conftest.dir
20873   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20874   cat >Imakefile <<'_ACEOF'
20875 acfindx:
20876         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20877 _ACEOF
20878   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20879     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20880     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20881     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20882     for ac_extension in a so sl; do
20883       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20884          test -f $ac_im_libdir/libX11.$ac_extension; then
20885         ac_im_usrlibdir=$ac_im_libdir; break
20886       fi
20887     done
20888     # Screen out bogus values from the imake configuration.  They are
20889     # bogus both because they are the default anyway, and because
20890     # using them would break gcc on systems where it needs fixed includes.
20891     case $ac_im_incroot in
20892         /usr/include) ;;
20893         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20894     esac
20895     case $ac_im_usrlibdir in
20896         /usr/lib | /lib) ;;
20897         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20898     esac
20899   fi
20900   cd ..
20901   rm -fr conftest.dir
20902 fi
20903
20904 # Standard set of common directories for X headers.
20905 # Check X11 before X11Rn because it is often a symlink to the current release.
20906 ac_x_header_dirs='
20907 /usr/X11/include
20908 /usr/X11R6/include
20909 /usr/X11R5/include
20910 /usr/X11R4/include
20911
20912 /usr/include/X11
20913 /usr/include/X11R6
20914 /usr/include/X11R5
20915 /usr/include/X11R4
20916
20917 /usr/local/X11/include
20918 /usr/local/X11R6/include
20919 /usr/local/X11R5/include
20920 /usr/local/X11R4/include
20921
20922 /usr/local/include/X11
20923 /usr/local/include/X11R6
20924 /usr/local/include/X11R5
20925 /usr/local/include/X11R4
20926
20927 /usr/X386/include
20928 /usr/x386/include
20929 /usr/XFree86/include/X11
20930
20931 /usr/include
20932 /usr/local/include
20933 /usr/unsupported/include
20934 /usr/athena/include
20935 /usr/local/x11r5/include
20936 /usr/lpp/Xamples/include
20937
20938 /usr/openwin/include
20939 /usr/openwin/share/include'
20940
20941 if test "$ac_x_includes" = no; then
20942   # Guess where to find include files, by looking for Intrinsic.h.
20943   # First, try using that file with no special directory specified.
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <X11/Intrinsic.h>
20951 _ACEOF
20952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20954   ac_status=$?
20955   grep -v '^ *+' conftest.er1 >conftest.err
20956   rm -f conftest.er1
20957   cat conftest.err >&5
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); } >/dev/null; then
20960   if test -s conftest.err; then
20961     ac_cpp_err=$ac_c_preproc_warn_flag
20962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20963   else
20964     ac_cpp_err=
20965   fi
20966 else
20967   ac_cpp_err=yes
20968 fi
20969 if test -z "$ac_cpp_err"; then
20970   # We can compile using X headers with no special include directory.
20971 ac_x_includes=
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976   for ac_dir in $ac_x_header_dirs; do
20977   if test -r "$ac_dir/X11/Intrinsic.h"; then
20978     ac_x_includes=$ac_dir
20979     break
20980   fi
20981 done
20982 fi
20983 rm -f conftest.err conftest.$ac_ext
20984 fi # $ac_x_includes = no
20985
20986 if test "$ac_x_libraries" = no; then
20987   # Check for the libraries.
20988   # See if we find them without any special options.
20989   # Don't add to $LIBS permanently.
20990   ac_save_LIBS=$LIBS
20991   LIBS="-lXt $LIBS"
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <X11/Intrinsic.h>
20999 int
21000 main ()
21001 {
21002 XtMalloc (0)
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009   (eval $ac_link) 2>conftest.er1
21010   ac_status=$?
21011   grep -v '^ *+' conftest.er1 >conftest.err
21012   rm -f conftest.er1
21013   cat conftest.err >&5
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -z "$ac_c_werror_flag"
21017                          || test ! -s conftest.err'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; } &&
21023          { ac_try='test -s conftest$ac_exeext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   LIBS=$ac_save_LIBS
21030 # We can link X programs with no special library path.
21031 ac_x_libraries=
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 LIBS=$ac_save_LIBS
21037 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21038 do
21039   # Don't even attempt the hair of trying to link an X program!
21040   for ac_extension in a so sl; do
21041     if test -r $ac_dir/libXt.$ac_extension; then
21042       ac_x_libraries=$ac_dir
21043       break 2
21044     fi
21045   done
21046 done
21047 fi
21048 rm -f conftest.err conftest.$ac_objext \
21049       conftest$ac_exeext conftest.$ac_ext
21050 fi # $ac_x_libraries = no
21051
21052 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21053   # Didn't find X anywhere.  Cache the known absence of X.
21054   ac_cv_have_x="have_x=no"
21055 else
21056   # Record where we found X for the cache.
21057   ac_cv_have_x="have_x=yes \
21058                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21059 fi
21060 fi
21061
21062   fi
21063   eval "$ac_cv_have_x"
21064 fi # $with_x != no
21065
21066 if test "$have_x" != yes; then
21067   echo "$as_me:$LINENO: result: $have_x" >&5
21068 echo "${ECHO_T}$have_x" >&6
21069   no_x=yes
21070 else
21071   # If each of the values was on the command line, it overrides each guess.
21072   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21073   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21074   # Update the cache value to reflect the command line values.
21075   ac_cv_have_x="have_x=yes \
21076                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21077   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21078 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21079 fi
21080
21081
21082 # Unlike the sim directory, whether a simulator is linked is controlled by
21083 # presence of a gdb_sim definition in the target configure.tgt entry.
21084 # This code just checks for a few cases where we'd like to ignore those
21085 # definitions, even when they're present in the '.mt' file.  These cases
21086 # are when --disable-sim is specified, or if the simulator directory is
21087 # not part of the source tree.
21088 #
21089 # Check whether --enable-sim or --disable-sim was given.
21090 if test "${enable_sim+set}" = set; then
21091   enableval="$enable_sim"
21092   echo "enable_sim = $enable_sim";
21093  echo "enableval = ${enableval}";
21094  case "${enableval}" in
21095   yes) ignore_sim=false ;;
21096   no)  ignore_sim=true ;;
21097   *)   ignore_sim=false ;;
21098  esac
21099 else
21100   ignore_sim=false
21101 fi;
21102
21103 if test ! -d "${srcdir}/../sim"; then
21104   ignore_sim=true
21105 fi
21106
21107 SIM=
21108 SIM_OBS=
21109 if test "${ignore_sim}" = "false"; then
21110   if test x"${gdb_sim}" != x ; then
21111     SIM="${gdb_sim}"
21112     SIM_OBS="remote-sim.o"
21113
21114 cat >>confdefs.h <<\_ACEOF
21115 #define WITH_SIM 1
21116 _ACEOF
21117
21118   fi
21119 fi
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134 # List of host floatformats.
21135
21136 cat >>confdefs.h <<_ACEOF
21137 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21138 _ACEOF
21139
21140
21141 cat >>confdefs.h <<_ACEOF
21142 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21143 _ACEOF
21144
21145
21146 cat >>confdefs.h <<_ACEOF
21147 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21148 _ACEOF
21149
21150
21151 # target_subdir is used by the testsuite to find the target libraries.
21152 target_subdir=
21153 if test "${host}" != "${target}"; then
21154     target_subdir="${target_alias}/"
21155 fi
21156
21157
21158 frags=
21159 if test "${gdb_native}" = "yes"; then
21160   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21161   if test ! -f ${host_makefile_frag}; then
21162     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21163 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21164    { (exit 1); exit 1; }; }
21165   fi
21166   frags="$frags $host_makefile_frag"
21167 else
21168   host_makefile_frag=/dev/null
21169 fi
21170
21171
21172
21173
21174 if test "${gdb_native}" = "yes"; then
21175 # We pick this up from the host configuration file (.mh) because we
21176 # do not have a native configuration Makefile fragment.
21177 nativefile=`sed -n '
21178 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
21179 ' ${host_makefile_frag}`
21180 fi
21181
21182
21183 if test x"${gdb_osabi}" != x ; then
21184
21185 cat >>confdefs.h <<_ACEOF
21186 #define GDB_OSABI_DEFAULT $gdb_osabi
21187 _ACEOF
21188
21189 fi
21190
21191 # Enable multi-ice-gdb-server.
21192 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21193 if test "${enable_multi_ice+set}" = set; then
21194   enableval="$enable_multi_ice"
21195   case $enableval in
21196     yes | no)
21197       ;;
21198     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21199 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21200    { (exit 1); exit 1; }; } ;;
21201   esac
21202 fi;
21203 if test "x$enable_multi_ice" = xyes; then
21204
21205
21206 subdirs="$subdirs multi-ice"
21207
21208 fi
21209
21210 # We only build gdbserver automatically in a native configuration.
21211 if test "$gdb_native" = "yes"; then
21212   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21213 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21214   if test "x$build_gdbserver" = xyes; then
21215     echo "$as_me:$LINENO: result: yes" >&5
21216 echo "${ECHO_T}yes" >&6
21217
21218
21219 subdirs="$subdirs gdbserver"
21220
21221   else
21222     echo "$as_me:$LINENO: result: no" >&5
21223 echo "${ECHO_T}no" >&6
21224   fi
21225 fi
21226
21227 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21228 # to an empty version.
21229
21230 files=
21231 links=
21232
21233 rm -f nm.h
21234 if test "${nativefile}" != ""; then
21235     case "${nativefile}" in
21236       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21237       * ) GDB_NM_FILE="${nativefile}"
21238     esac
21239     files="${files} ${GDB_NM_FILE}"
21240     links="${links} nm.h"
21241
21242 cat >>confdefs.h <<_ACEOF
21243 #define GDB_NM_FILE "${GDB_NM_FILE}"
21244 _ACEOF
21245
21246 fi
21247
21248
21249 ac_sources="$files"
21250 ac_dests="$links"
21251 while test -n "$ac_sources"; do
21252   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21253   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21254   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21255 done
21256           ac_config_links="$ac_config_links $ac_config_links_1"
21257
21258
21259
21260
21261
21262 cat >>confdefs.h <<\_ACEOF
21263 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21264 _ACEOF
21265
21266
21267 # Flags needed to enable html installing and building
21268
21269 # Check whether --with-datarootdir or --without-datarootdir was given.
21270 if test "${with_datarootdir+set}" = set; then
21271   withval="$with_datarootdir"
21272   datarootdir="\${prefix}/${withval}"
21273 else
21274   datarootdir="\${prefix}/share"
21275 fi;
21276
21277
21278 # Check whether --with-docdir or --without-docdir was given.
21279 if test "${with_docdir+set}" = set; then
21280   withval="$with_docdir"
21281   docdir="\${prefix}/${withval}"
21282 else
21283   docdir="\${datarootdir}/doc"
21284 fi;
21285
21286
21287 # Check whether --with-pdfdir or --without-pdfdir was given.
21288 if test "${with_pdfdir+set}" = set; then
21289   withval="$with_pdfdir"
21290   pdfdir="\${prefix}/${withval}"
21291 else
21292   pdfdir="\${docdir}"
21293 fi;
21294
21295
21296 # Check whether --with-htmldir or --without-htmldir was given.
21297 if test "${with_htmldir+set}" = set; then
21298   withval="$with_htmldir"
21299   htmldir="\${prefix}/${withval}"
21300 else
21301   htmldir="\${docdir}"
21302 fi;
21303
21304
21305
21306
21307
21308
21309                               ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21310           ac_config_commands="$ac_config_commands default"
21311 cat >confcache <<\_ACEOF
21312 # This file is a shell script that caches the results of configure
21313 # tests run on this system so they can be shared between configure
21314 # scripts and configure runs, see configure's option --config-cache.
21315 # It is not useful on other systems.  If it contains results you don't
21316 # want to keep, you may remove or edit it.
21317 #
21318 # config.status only pays attention to the cache file if you give it
21319 # the --recheck option to rerun configure.
21320 #
21321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21323 # following values.
21324
21325 _ACEOF
21326
21327 # The following way of writing the cache mishandles newlines in values,
21328 # but we know of no workaround that is simple, portable, and efficient.
21329 # So, don't put newlines in cache variables' values.
21330 # Ultrix sh set writes to stderr and can't be redirected directly,
21331 # and sets the high bit in the cache file unless we assign to the vars.
21332 {
21333   (set) 2>&1 |
21334     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21335     *ac_space=\ *)
21336       # `set' does not quote correctly, so add quotes (double-quote
21337       # substitution turns \\\\ into \\, and sed turns \\ into \).
21338       sed -n \
21339         "s/'/'\\\\''/g;
21340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21341       ;;
21342     *)
21343       # `set' quotes correctly as required by POSIX, so do not add quotes.
21344       sed -n \
21345         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21346       ;;
21347     esac;
21348 } |
21349   sed '
21350      t clear
21351      : clear
21352      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21353      t end
21354      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21355      : end' >>confcache
21356 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21357   if test -w $cache_file; then
21358     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21359     cat confcache >$cache_file
21360   else
21361     echo "not updating unwritable cache $cache_file"
21362   fi
21363 fi
21364 rm -f confcache
21365
21366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21367 # Let make expand exec_prefix.
21368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21369
21370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21372 # trailing colons and then remove the whole line if VPATH becomes empty
21373 # (actually we leave an empty line to preserve line numbers).
21374 if test "x$srcdir" = x.; then
21375   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21376 s/:*\$(srcdir):*/:/;
21377 s/:*\${srcdir}:*/:/;
21378 s/:*@srcdir@:*/:/;
21379 s/^\([^=]*=[     ]*\):*/\1/;
21380 s/:*$//;
21381 s/^[^=]*=[       ]*$//;
21382 }'
21383 fi
21384
21385 DEFS=-DHAVE_CONFIG_H
21386
21387 ac_libobjs=
21388 ac_ltlibobjs=
21389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21390   # 1. Remove the extension, and $U if already installed.
21391   ac_i=`echo "$ac_i" |
21392          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21393   # 2. Add them.
21394   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21395   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21396 done
21397 LIBOBJS=$ac_libobjs
21398
21399 LTLIBOBJS=$ac_ltlibobjs
21400
21401
21402 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21403   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21404 Usually this means the macro was only invoked conditionally." >&5
21405 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21406 Usually this means the macro was only invoked conditionally." >&2;}
21407    { (exit 1); exit 1; }; }
21408 fi
21409 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21410   { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&5
21412 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&2;}
21414    { (exit 1); exit 1; }; }
21415 fi
21416 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21417   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21418 Usually this means the macro was only invoked conditionally." >&5
21419 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21420 Usually this means the macro was only invoked conditionally." >&2;}
21421    { (exit 1); exit 1; }; }
21422 fi
21423
21424     gl_libobjs=
21425     gl_ltlibobjs=
21426     if test -n "$gl_LIBOBJS"; then
21427       # Remove the extension.
21428       sed_drop_objext='s/\.o$//;s/\.obj$//'
21429       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21430         gl_libobjs="$gl_libobjs $i.$ac_objext"
21431         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21432       done
21433     fi
21434     gl_LIBOBJS=$gl_libobjs
21435
21436     gl_LTLIBOBJS=$gl_ltlibobjs
21437
21438
21439
21440     gltests_libobjs=
21441     gltests_ltlibobjs=
21442     if test -n "$gltests_LIBOBJS"; then
21443       # Remove the extension.
21444       sed_drop_objext='s/\.o$//;s/\.obj$//'
21445       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21446         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21447         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21448       done
21449     fi
21450     gltests_LIBOBJS=$gltests_libobjs
21451
21452     gltests_LTLIBOBJS=$gltests_ltlibobjs
21453
21454
21455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21456   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21457 Usually this means the macro was only invoked conditionally." >&5
21458 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21459 Usually this means the macro was only invoked conditionally." >&2;}
21460    { (exit 1); exit 1; }; }
21461 fi
21462 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21463   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21464 Usually this means the macro was only invoked conditionally." >&5
21465 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21466 Usually this means the macro was only invoked conditionally." >&2;}
21467    { (exit 1); exit 1; }; }
21468 fi
21469
21470 : ${CONFIG_STATUS=./config.status}
21471 ac_clean_files_save=$ac_clean_files
21472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21475 cat >$CONFIG_STATUS <<_ACEOF
21476 #! $SHELL
21477 # Generated by $as_me.
21478 # Run this file to recreate the current configuration.
21479 # Compiler output produced by configure, useful for debugging
21480 # configure, is in config.log if it exists.
21481
21482 debug=false
21483 ac_cs_recheck=false
21484 ac_cs_silent=false
21485 SHELL=\${CONFIG_SHELL-$SHELL}
21486 _ACEOF
21487
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 ## --------------------- ##
21490 ## M4sh Initialization.  ##
21491 ## --------------------- ##
21492
21493 # Be Bourne compatible
21494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21495   emulate sh
21496   NULLCMD=:
21497   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21498   # is contrary to our usage.  Disable this feature.
21499   alias -g '${1+"$@"}'='"$@"'
21500 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21501   set -o posix
21502 fi
21503 DUALCASE=1; export DUALCASE # for MKS sh
21504
21505 # Support unset when possible.
21506 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21507   as_unset=unset
21508 else
21509   as_unset=false
21510 fi
21511
21512
21513 # Work around bugs in pre-3.0 UWIN ksh.
21514 $as_unset ENV MAIL MAILPATH
21515 PS1='$ '
21516 PS2='> '
21517 PS4='+ '
21518
21519 # NLS nuisances.
21520 for as_var in \
21521   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21522   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21523   LC_TELEPHONE LC_TIME
21524 do
21525   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21526     eval $as_var=C; export $as_var
21527   else
21528     $as_unset $as_var
21529   fi
21530 done
21531
21532 # Required to use basename.
21533 if expr a : '\(a\)' >/dev/null 2>&1; then
21534   as_expr=expr
21535 else
21536   as_expr=false
21537 fi
21538
21539 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21540   as_basename=basename
21541 else
21542   as_basename=false
21543 fi
21544
21545
21546 # Name of the executable.
21547 as_me=`$as_basename "$0" ||
21548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21549          X"$0" : 'X\(//\)$' \| \
21550          X"$0" : 'X\(/\)$' \| \
21551          .     : '\(.\)' 2>/dev/null ||
21552 echo X/"$0" |
21553     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21554           /^X\/\(\/\/\)$/{ s//\1/; q; }
21555           /^X\/\(\/\).*/{ s//\1/; q; }
21556           s/.*/./; q'`
21557
21558
21559 # PATH needs CR, and LINENO needs CR and PATH.
21560 # Avoid depending upon Character Ranges.
21561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21564 as_cr_digits='0123456789'
21565 as_cr_alnum=$as_cr_Letters$as_cr_digits
21566
21567 # The user is always right.
21568 if test "${PATH_SEPARATOR+set}" != set; then
21569   echo "#! /bin/sh" >conf$$.sh
21570   echo  "exit 0"   >>conf$$.sh
21571   chmod +x conf$$.sh
21572   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21573     PATH_SEPARATOR=';'
21574   else
21575     PATH_SEPARATOR=:
21576   fi
21577   rm -f conf$$.sh
21578 fi
21579
21580
21581   as_lineno_1=$LINENO
21582   as_lineno_2=$LINENO
21583   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21584   test "x$as_lineno_1" != "x$as_lineno_2" &&
21585   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21586   # Find who we are.  Look in the path if we contain no path at all
21587   # relative or not.
21588   case $0 in
21589     *[\\/]* ) as_myself=$0 ;;
21590     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591 for as_dir in $PATH
21592 do
21593   IFS=$as_save_IFS
21594   test -z "$as_dir" && as_dir=.
21595   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21596 done
21597
21598        ;;
21599   esac
21600   # We did not find ourselves, most probably we were run as `sh COMMAND'
21601   # in which case we are not to be found in the path.
21602   if test "x$as_myself" = x; then
21603     as_myself=$0
21604   fi
21605   if test ! -f "$as_myself"; then
21606     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21607 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21608    { (exit 1); exit 1; }; }
21609   fi
21610   case $CONFIG_SHELL in
21611   '')
21612     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21613 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21614 do
21615   IFS=$as_save_IFS
21616   test -z "$as_dir" && as_dir=.
21617   for as_base in sh bash ksh sh5; do
21618          case $as_dir in
21619          /*)
21620            if ("$as_dir/$as_base" -c '
21621   as_lineno_1=$LINENO
21622   as_lineno_2=$LINENO
21623   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21624   test "x$as_lineno_1" != "x$as_lineno_2" &&
21625   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21626              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21627              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21628              CONFIG_SHELL=$as_dir/$as_base
21629              export CONFIG_SHELL
21630              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21631            fi;;
21632          esac
21633        done
21634 done
21635 ;;
21636   esac
21637
21638   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21639   # uniformly replaced by the line number.  The first 'sed' inserts a
21640   # line-number line before each line; the second 'sed' does the real
21641   # work.  The second script uses 'N' to pair each line-number line
21642   # with the numbered line, and appends trailing '-' during
21643   # substitution so that $LINENO is not a special case at line end.
21644   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21645   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21646   sed '=' <$as_myself |
21647     sed '
21648       N
21649       s,$,-,
21650       : loop
21651       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21652       t loop
21653       s,-$,,
21654       s,^['$as_cr_digits']*\n,,
21655     ' >$as_me.lineno &&
21656   chmod +x $as_me.lineno ||
21657     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21658 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21659    { (exit 1); exit 1; }; }
21660
21661   # Don't try to exec as it changes $[0], causing all sort of problems
21662   # (the dirname of $[0] is not the place where we might find the
21663   # original and so on.  Autoconf is especially sensible to this).
21664   . ./$as_me.lineno
21665   # Exit status is that of the last command.
21666   exit
21667 }
21668
21669
21670 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21671   *c*,-n*) ECHO_N= ECHO_C='
21672 ' ECHO_T='      ' ;;
21673   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21674   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21675 esac
21676
21677 if expr a : '\(a\)' >/dev/null 2>&1; then
21678   as_expr=expr
21679 else
21680   as_expr=false
21681 fi
21682
21683 rm -f conf$$ conf$$.exe conf$$.file
21684 echo >conf$$.file
21685 if ln -s conf$$.file conf$$ 2>/dev/null; then
21686   # We could just check for DJGPP; but this test a) works b) is more generic
21687   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21688   if test -f conf$$.exe; then
21689     # Don't use ln at all; we don't have any links
21690     as_ln_s='cp -p'
21691   else
21692     as_ln_s='ln -s'
21693   fi
21694 elif ln conf$$.file conf$$ 2>/dev/null; then
21695   as_ln_s=ln
21696 else
21697   as_ln_s='cp -p'
21698 fi
21699 rm -f conf$$ conf$$.exe conf$$.file
21700
21701 if mkdir -p . 2>/dev/null; then
21702   as_mkdir_p=:
21703 else
21704   test -d ./-p && rmdir ./-p
21705   as_mkdir_p=false
21706 fi
21707
21708 as_executable_p="test -f"
21709
21710 # Sed expression to map a string onto a valid CPP name.
21711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21712
21713 # Sed expression to map a string onto a valid variable name.
21714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21715
21716
21717 # IFS
21718 # We need space, tab and new line, in precisely that order.
21719 as_nl='
21720 '
21721 IFS="   $as_nl"
21722
21723 # CDPATH.
21724 $as_unset CDPATH
21725
21726 exec 6>&1
21727
21728 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21729 # report actual input values of CONFIG_FILES etc. instead of their
21730 # values after options handling.  Logging --version etc. is OK.
21731 exec 5>>config.log
21732 {
21733   echo
21734   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21735 ## Running $as_me. ##
21736 _ASBOX
21737 } >&5
21738 cat >&5 <<_CSEOF
21739
21740 This file was extended by $as_me, which was
21741 generated by GNU Autoconf 2.59.  Invocation command line was
21742
21743   CONFIG_FILES    = $CONFIG_FILES
21744   CONFIG_HEADERS  = $CONFIG_HEADERS
21745   CONFIG_LINKS    = $CONFIG_LINKS
21746   CONFIG_COMMANDS = $CONFIG_COMMANDS
21747   $ $0 $@
21748
21749 _CSEOF
21750 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21751 echo >&5
21752 _ACEOF
21753
21754 # Files that config.status was made for.
21755 if test -n "$ac_config_files"; then
21756   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21757 fi
21758
21759 if test -n "$ac_config_headers"; then
21760   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21761 fi
21762
21763 if test -n "$ac_config_links"; then
21764   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21765 fi
21766
21767 if test -n "$ac_config_commands"; then
21768   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21769 fi
21770
21771 cat >>$CONFIG_STATUS <<\_ACEOF
21772
21773 ac_cs_usage="\
21774 \`$as_me' instantiates files from templates according to the
21775 current configuration.
21776
21777 Usage: $0 [OPTIONS] [FILE]...
21778
21779   -h, --help       print this help, then exit
21780   -V, --version    print version number, then exit
21781   -q, --quiet      do not print progress messages
21782   -d, --debug      don't remove temporary files
21783       --recheck    update $as_me by reconfiguring in the same conditions
21784   --file=FILE[:TEMPLATE]
21785                    instantiate the configuration file FILE
21786   --header=FILE[:TEMPLATE]
21787                    instantiate the configuration header FILE
21788
21789 Configuration files:
21790 $config_files
21791
21792 Configuration headers:
21793 $config_headers
21794
21795 Configuration links:
21796 $config_links
21797
21798 Configuration commands:
21799 $config_commands
21800
21801 Report bugs to <bug-autoconf@gnu.org>."
21802 _ACEOF
21803
21804 cat >>$CONFIG_STATUS <<_ACEOF
21805 ac_cs_version="\\
21806 config.status
21807 configured by $0, generated by GNU Autoconf 2.59,
21808   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21809
21810 Copyright (C) 2003 Free Software Foundation, Inc.
21811 This config.status script is free software; the Free Software Foundation
21812 gives unlimited permission to copy, distribute and modify it."
21813 srcdir=$srcdir
21814 INSTALL="$INSTALL"
21815 _ACEOF
21816
21817 cat >>$CONFIG_STATUS <<\_ACEOF
21818 # If no file are specified by the user, then we need to provide default
21819 # value.  By we need to know if files were specified by the user.
21820 ac_need_defaults=:
21821 while test $# != 0
21822 do
21823   case $1 in
21824   --*=*)
21825     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21826     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21827     ac_shift=:
21828     ;;
21829   -*)
21830     ac_option=$1
21831     ac_optarg=$2
21832     ac_shift=shift
21833     ;;
21834   *) # This is not an option, so the user has probably given explicit
21835      # arguments.
21836      ac_option=$1
21837      ac_need_defaults=false;;
21838   esac
21839
21840   case $ac_option in
21841   # Handling of the options.
21842 _ACEOF
21843 cat >>$CONFIG_STATUS <<\_ACEOF
21844   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21845     ac_cs_recheck=: ;;
21846   --version | --vers* | -V )
21847     echo "$ac_cs_version"; exit 0 ;;
21848   --he | --h)
21849     # Conflict between --help and --header
21850     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21851 Try \`$0 --help' for more information." >&5
21852 echo "$as_me: error: ambiguous option: $1
21853 Try \`$0 --help' for more information." >&2;}
21854    { (exit 1); exit 1; }; };;
21855   --help | --hel | -h )
21856     echo "$ac_cs_usage"; exit 0 ;;
21857   --debug | --d* | -d )
21858     debug=: ;;
21859   --file | --fil | --fi | --f )
21860     $ac_shift
21861     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21862     ac_need_defaults=false;;
21863   --header | --heade | --head | --hea )
21864     $ac_shift
21865     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21866     ac_need_defaults=false;;
21867   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21868   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21869     ac_cs_silent=: ;;
21870
21871   # This is an error.
21872   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21873 Try \`$0 --help' for more information." >&5
21874 echo "$as_me: error: unrecognized option: $1
21875 Try \`$0 --help' for more information." >&2;}
21876    { (exit 1); exit 1; }; } ;;
21877
21878   *) ac_config_targets="$ac_config_targets $1" ;;
21879
21880   esac
21881   shift
21882 done
21883
21884 ac_configure_extra_args=
21885
21886 if $ac_cs_silent; then
21887   exec 6>/dev/null
21888   ac_configure_extra_args="$ac_configure_extra_args --silent"
21889 fi
21890
21891 _ACEOF
21892 cat >>$CONFIG_STATUS <<_ACEOF
21893 if \$ac_cs_recheck; then
21894   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21895   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21896 fi
21897
21898 _ACEOF
21899
21900 cat >>$CONFIG_STATUS <<_ACEOF
21901 #
21902 # INIT-COMMANDS section.
21903 #
21904
21905 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21906 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21907
21908 _ACEOF
21909
21910
21911
21912 cat >>$CONFIG_STATUS <<\_ACEOF
21913 for ac_config_target in $ac_config_targets
21914 do
21915   case "$ac_config_target" in
21916   # Handling of arguments.
21917   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21918   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21919   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21920   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21921   "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21922   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21923   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21924   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21925   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21926 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21927    { (exit 1); exit 1; }; };;
21928   esac
21929 done
21930
21931 # If the user did not use the arguments to specify the items to instantiate,
21932 # then the envvar interface is used.  Set only those that are not.
21933 # We use the long form for the default assignment because of an extremely
21934 # bizarre bug on SunOS 4.1.3.
21935 if $ac_need_defaults; then
21936   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21937   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21938   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21939   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21940 fi
21941
21942 # Have a temporary directory for convenience.  Make it in the build tree
21943 # simply because there is no reason to put it here, and in addition,
21944 # creating and moving files from /tmp can sometimes cause problems.
21945 # Create a temporary directory, and hook for its removal unless debugging.
21946 $debug ||
21947 {
21948   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21949   trap '{ (exit 1); exit 1; }' 1 2 13 15
21950 }
21951
21952 # Create a (secure) tmp directory for tmp files.
21953
21954 {
21955   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21956   test -n "$tmp" && test -d "$tmp"
21957 }  ||
21958 {
21959   tmp=./confstat$$-$RANDOM
21960   (umask 077 && mkdir $tmp)
21961 } ||
21962 {
21963    echo "$me: cannot create a temporary directory in ." >&2
21964    { (exit 1); exit 1; }
21965 }
21966
21967 _ACEOF
21968
21969 cat >>$CONFIG_STATUS <<_ACEOF
21970
21971 #
21972 # CONFIG_FILES section.
21973 #
21974
21975 # No need to generate the scripts if there are no CONFIG_FILES.
21976 # This happens for instance when ./config.status config.h
21977 if test -n "\$CONFIG_FILES"; then
21978   # Protect against being on the right side of a sed subst in config.status.
21979   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21980    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21981 s,@SHELL@,$SHELL,;t t
21982 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21983 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21984 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21985 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21986 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21987 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21988 s,@exec_prefix@,$exec_prefix,;t t
21989 s,@prefix@,$prefix,;t t
21990 s,@program_transform_name@,$program_transform_name,;t t
21991 s,@bindir@,$bindir,;t t
21992 s,@sbindir@,$sbindir,;t t
21993 s,@libexecdir@,$libexecdir,;t t
21994 s,@datadir@,$datadir,;t t
21995 s,@sysconfdir@,$sysconfdir,;t t
21996 s,@sharedstatedir@,$sharedstatedir,;t t
21997 s,@localstatedir@,$localstatedir,;t t
21998 s,@libdir@,$libdir,;t t
21999 s,@includedir@,$includedir,;t t
22000 s,@oldincludedir@,$oldincludedir,;t t
22001 s,@infodir@,$infodir,;t t
22002 s,@mandir@,$mandir,;t t
22003 s,@build_alias@,$build_alias,;t t
22004 s,@host_alias@,$host_alias,;t t
22005 s,@target_alias@,$target_alias,;t t
22006 s,@DEFS@,$DEFS,;t t
22007 s,@ECHO_C@,$ECHO_C,;t t
22008 s,@ECHO_N@,$ECHO_N,;t t
22009 s,@ECHO_T@,$ECHO_T,;t t
22010 s,@LIBS@,$LIBS,;t t
22011 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22012 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22013 s,@MAINT@,$MAINT,;t t
22014 s,@CC@,$CC,;t t
22015 s,@CFLAGS@,$CFLAGS,;t t
22016 s,@LDFLAGS@,$LDFLAGS,;t t
22017 s,@CPPFLAGS@,$CPPFLAGS,;t t
22018 s,@ac_ct_CC@,$ac_ct_CC,;t t
22019 s,@EXEEXT@,$EXEEXT,;t t
22020 s,@OBJEXT@,$OBJEXT,;t t
22021 s,@CPP@,$CPP,;t t
22022 s,@EGREP@,$EGREP,;t t
22023 s,@RANLIB@,$RANLIB,;t t
22024 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22025 s,@build@,$build,;t t
22026 s,@build_cpu@,$build_cpu,;t t
22027 s,@build_vendor@,$build_vendor,;t t
22028 s,@build_os@,$build_os,;t t
22029 s,@host@,$host,;t t
22030 s,@host_cpu@,$host_cpu,;t t
22031 s,@host_vendor@,$host_vendor,;t t
22032 s,@host_os@,$host_os,;t t
22033 s,@target@,$target,;t t
22034 s,@target_cpu@,$target_cpu,;t t
22035 s,@target_vendor@,$target_vendor,;t t
22036 s,@target_os@,$target_os,;t t
22037 s,@am__leading_dot@,$am__leading_dot,;t t
22038 s,@DEPDIR@,$DEPDIR,;t t
22039 s,@CCDEPMODE@,$CCDEPMODE,;t t
22040 s,@MAKE@,$MAKE,;t t
22041 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
22042 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
22043 s,@SET_MAKE@,$SET_MAKE,;t t
22044 s,@USE_NLS@,$USE_NLS,;t t
22045 s,@LIBINTL@,$LIBINTL,;t t
22046 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22047 s,@INCINTL@,$INCINTL,;t t
22048 s,@XGETTEXT@,$XGETTEXT,;t t
22049 s,@GMSGFMT@,$GMSGFMT,;t t
22050 s,@POSUB@,$POSUB,;t t
22051 s,@CATALOGS@,$CATALOGS,;t t
22052 s,@DATADIRNAME@,$DATADIRNAME,;t t
22053 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22054 s,@GENCAT@,$GENCAT,;t t
22055 s,@CATOBJEXT@,$CATOBJEXT,;t t
22056 s,@localedir@,$localedir,;t t
22057 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
22058 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
22059 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
22060 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
22061 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
22062 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
22063 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
22064 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
22065 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
22066 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
22067 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
22068 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
22069 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
22070 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
22071 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
22072 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
22073 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
22074 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
22075 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
22076 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
22077 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
22078 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
22079 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
22080 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
22081 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
22082 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
22083 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
22084 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
22085 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
22086 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
22087 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
22088 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
22089 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
22090 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22091 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22092 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22093 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22094 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22095 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22096 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22097 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22098 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22099 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22100 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22101 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22102 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22103 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22104 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22105 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22106 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22107 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22108 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22109 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22110 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22111 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22112 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22113 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22114 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22115 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22116 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22117 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22118 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22119 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22120 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22121 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22122 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22123 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22124 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22125 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22126 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22127 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22128 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22129 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22130 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22131 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22132 s,@STDINT_H@,$STDINT_H,;t t
22133 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22134 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22135 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22136 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22137 s,@WCHAR_H@,$WCHAR_H,;t t
22138 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22139 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22140 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22141 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22142 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22143 s,@PACKAGE@,$PACKAGE,;t t
22144 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22145 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22146 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22147 s,@CYGPATH_W@,$CYGPATH_W,;t t
22148 s,@PYTHON2_4@,$PYTHON2_4,;t t
22149 s,@ACLOCAL@,$ACLOCAL,;t t
22150 s,@AUTOCONF@,$AUTOCONF,;t t
22151 s,@AUTOMAKE@,$AUTOMAKE,;t t
22152 s,@AUTOHEADER@,$AUTOHEADER,;t t
22153 s,@MAKEINFO@,$MAKEINFO,;t t
22154 s,@install_sh@,$install_sh,;t t
22155 s,@STRIP@,$STRIP,;t t
22156 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22157 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22158 s,@mkdir_p@,$mkdir_p,;t t
22159 s,@AWK@,$AWK,;t t
22160 s,@AMTAR@,$AMTAR,;t t
22161 s,@am__tar@,$am__tar,;t t
22162 s,@am__untar@,$am__untar,;t t
22163 s,@am__include@,$am__include,;t t
22164 s,@am__quote@,$am__quote,;t t
22165 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22166 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22167 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22170 s,@DEBUGDIR@,$DEBUGDIR,;t t
22171 s,@GDB_DATADIR@,$GDB_DATADIR,;t t
22172 s,@subdirs@,$subdirs,;t t
22173 s,@TARGET_OBS@,$TARGET_OBS,;t t
22174 s,@PKGVERSION@,$PKGVERSION,;t t
22175 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22176 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22177 s,@LN_S@,$LN_S,;t t
22178 s,@YACC@,$YACC,;t t
22179 s,@AR@,$AR,;t t
22180 s,@ac_ct_AR@,$ac_ct_AR,;t t
22181 s,@DLLTOOL@,$DLLTOOL,;t t
22182 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22183 s,@WINDRES@,$WINDRES,;t t
22184 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22185 s,@MIG@,$MIG,;t t
22186 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22187 s,@READLINE@,$READLINE,;t t
22188 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22189 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22190 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22191 s,@LIBEXPAT@,$LIBEXPAT,;t t
22192 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22193 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22194 s,@ALLOCA@,$ALLOCA,;t t
22195 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22196 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22197 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22198 s,@SYSTEM_GDBINIT@,$SYSTEM_GDBINIT,;t t
22199 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22200 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22201 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22202 s,@WIN32LIBS@,$WIN32LIBS,;t t
22203 s,@LIBGUI@,$LIBGUI,;t t
22204 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22205 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22206 s,@TCL_VERSION@,$TCL_VERSION,;t t
22207 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22208 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22209 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22210 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22211 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22212 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22213 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22214 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22215 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22216 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22217 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22218 s,@TCL_DEPS@,$TCL_DEPS,;t t
22219 s,@TK_VERSION@,$TK_VERSION,;t t
22220 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22221 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22222 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22223 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22224 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22225 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22226 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22227 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22228 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22229 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22230 s,@TK_DEPS@,$TK_DEPS,;t t
22231 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22232 s,@X_CFLAGS@,$X_CFLAGS,;t t
22233 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22234 s,@X_LIBS@,$X_LIBS,;t t
22235 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22236 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22237 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22238 s,@SIM@,$SIM,;t t
22239 s,@SIM_OBS@,$SIM_OBS,;t t
22240 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22241 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22242 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22243 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22244 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22245 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22246 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22247 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22248 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22249 s,@target_subdir@,$target_subdir,;t t
22250 s,@frags@,$frags,;t t
22251 s,@GDB_NM_FILE@,$GDB_NM_FILE,;t t
22252 s,@datarootdir@,$datarootdir,;t t
22253 s,@docdir@,$docdir,;t t
22254 s,@htmldir@,$htmldir,;t t
22255 s,@pdfdir@,$pdfdir,;t t
22256 s,@LIBOBJS@,$LIBOBJS,;t t
22257 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22258 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22259 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22260 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22261 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22262 /@host_makefile_frag@/r $host_makefile_frag
22263 s,@host_makefile_frag@,,;t t
22264 CEOF
22265
22266 _ACEOF
22267
22268   cat >>$CONFIG_STATUS <<\_ACEOF
22269   # Split the substitutions into bite-sized pieces for seds with
22270   # small command number limits, like on Digital OSF/1 and HP-UX.
22271   ac_max_sed_lines=48
22272   ac_sed_frag=1 # Number of current file.
22273   ac_beg=1 # First line for current file.
22274   ac_end=$ac_max_sed_lines # Line after last line for current file.
22275   ac_more_lines=:
22276   ac_sed_cmds=
22277   while $ac_more_lines; do
22278     if test $ac_beg -gt 1; then
22279       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22280     else
22281       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22282     fi
22283     if test ! -s $tmp/subs.frag; then
22284       ac_more_lines=false
22285     else
22286       # The purpose of the label and of the branching condition is to
22287       # speed up the sed processing (if there are no `@' at all, there
22288       # is no need to browse any of the substitutions).
22289       # These are the two extra sed commands mentioned above.
22290       (echo ':t
22291   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22292       if test -z "$ac_sed_cmds"; then
22293         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22294       else
22295         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22296       fi
22297       ac_sed_frag=`expr $ac_sed_frag + 1`
22298       ac_beg=$ac_end
22299       ac_end=`expr $ac_end + $ac_max_sed_lines`
22300     fi
22301   done
22302   if test -z "$ac_sed_cmds"; then
22303     ac_sed_cmds=cat
22304   fi
22305 fi # test -n "$CONFIG_FILES"
22306
22307 _ACEOF
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22310   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22311   case $ac_file in
22312   - | *:- | *:-:* ) # input from stdin
22313         cat >$tmp/stdin
22314         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22315         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22316   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22317         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22318   * )   ac_file_in=$ac_file.in ;;
22319   esac
22320
22321   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22322   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22324          X"$ac_file" : 'X\(//\)[^/]' \| \
22325          X"$ac_file" : 'X\(//\)$' \| \
22326          X"$ac_file" : 'X\(/\)' \| \
22327          .     : '\(.\)' 2>/dev/null ||
22328 echo X"$ac_file" |
22329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22331           /^X\(\/\/\)$/{ s//\1/; q; }
22332           /^X\(\/\).*/{ s//\1/; q; }
22333           s/.*/./; q'`
22334   { if $as_mkdir_p; then
22335     mkdir -p "$ac_dir"
22336   else
22337     as_dir="$ac_dir"
22338     as_dirs=
22339     while test ! -d "$as_dir"; do
22340       as_dirs="$as_dir $as_dirs"
22341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343          X"$as_dir" : 'X\(//\)[^/]' \| \
22344          X"$as_dir" : 'X\(//\)$' \| \
22345          X"$as_dir" : 'X\(/\)' \| \
22346          .     : '\(.\)' 2>/dev/null ||
22347 echo X"$as_dir" |
22348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22350           /^X\(\/\/\)$/{ s//\1/; q; }
22351           /^X\(\/\).*/{ s//\1/; q; }
22352           s/.*/./; q'`
22353     done
22354     test ! -n "$as_dirs" || mkdir $as_dirs
22355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22357    { (exit 1); exit 1; }; }; }
22358
22359   ac_builddir=.
22360
22361 if test "$ac_dir" != .; then
22362   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22363   # A "../" for each directory in $ac_dir_suffix.
22364   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22365 else
22366   ac_dir_suffix= ac_top_builddir=
22367 fi
22368
22369 case $srcdir in
22370   .)  # No --srcdir option.  We are building in place.
22371     ac_srcdir=.
22372     if test -z "$ac_top_builddir"; then
22373        ac_top_srcdir=.
22374     else
22375        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22376     fi ;;
22377   [\\/]* | ?:[\\/]* )  # Absolute path.
22378     ac_srcdir=$srcdir$ac_dir_suffix;
22379     ac_top_srcdir=$srcdir ;;
22380   *) # Relative path.
22381     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22382     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22383 esac
22384
22385 # Do not use `cd foo && pwd` to compute absolute paths, because
22386 # the directories may not exist.
22387 case `pwd` in
22388 .) ac_abs_builddir="$ac_dir";;
22389 *)
22390   case "$ac_dir" in
22391   .) ac_abs_builddir=`pwd`;;
22392   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22393   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22394   esac;;
22395 esac
22396 case $ac_abs_builddir in
22397 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22398 *)
22399   case ${ac_top_builddir}. in
22400   .) ac_abs_top_builddir=$ac_abs_builddir;;
22401   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22402   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22403   esac;;
22404 esac
22405 case $ac_abs_builddir in
22406 .) ac_abs_srcdir=$ac_srcdir;;
22407 *)
22408   case $ac_srcdir in
22409   .) ac_abs_srcdir=$ac_abs_builddir;;
22410   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22411   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22412   esac;;
22413 esac
22414 case $ac_abs_builddir in
22415 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22416 *)
22417   case $ac_top_srcdir in
22418   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22419   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22420   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22421   esac;;
22422 esac
22423
22424
22425   case $INSTALL in
22426   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22427   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22428   esac
22429
22430   if test x"$ac_file" != x-; then
22431     { echo "$as_me:$LINENO: creating $ac_file" >&5
22432 echo "$as_me: creating $ac_file" >&6;}
22433     rm -f "$ac_file"
22434   fi
22435   # Let's still pretend it is `configure' which instantiates (i.e., don't
22436   # use $as_me), people would be surprised to read:
22437   #    /* config.h.  Generated by config.status.  */
22438   if test x"$ac_file" = x-; then
22439     configure_input=
22440   else
22441     configure_input="$ac_file.  "
22442   fi
22443   configure_input=$configure_input"Generated from `echo $ac_file_in |
22444                                      sed 's,.*/,,'` by configure."
22445
22446   # First look for the input files in the build tree, otherwise in the
22447   # src tree.
22448   ac_file_inputs=`IFS=:
22449     for f in $ac_file_in; do
22450       case $f in
22451       -) echo $tmp/stdin ;;
22452       [\\/$]*)
22453          # Absolute (can't be DOS-style, as IFS=:)
22454          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22455 echo "$as_me: error: cannot find input file: $f" >&2;}
22456    { (exit 1); exit 1; }; }
22457          echo "$f";;
22458       *) # Relative
22459          if test -f "$f"; then
22460            # Build tree
22461            echo "$f"
22462          elif test -f "$srcdir/$f"; then
22463            # Source tree
22464            echo "$srcdir/$f"
22465          else
22466            # /dev/null tree
22467            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22468 echo "$as_me: error: cannot find input file: $f" >&2;}
22469    { (exit 1); exit 1; }; }
22470          fi;;
22471       esac
22472     done` || { (exit 1); exit 1; }
22473 _ACEOF
22474 cat >>$CONFIG_STATUS <<_ACEOF
22475   sed "$ac_vpsub
22476 $extrasub
22477 _ACEOF
22478 cat >>$CONFIG_STATUS <<\_ACEOF
22479 :t
22480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22481 s,@configure_input@,$configure_input,;t t
22482 s,@srcdir@,$ac_srcdir,;t t
22483 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22484 s,@top_srcdir@,$ac_top_srcdir,;t t
22485 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22486 s,@builddir@,$ac_builddir,;t t
22487 s,@abs_builddir@,$ac_abs_builddir,;t t
22488 s,@top_builddir@,$ac_top_builddir,;t t
22489 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22490 s,@INSTALL@,$ac_INSTALL,;t t
22491 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22492   rm -f $tmp/stdin
22493   if test x"$ac_file" != x-; then
22494     mv $tmp/out $ac_file
22495   else
22496     cat $tmp/out
22497     rm -f $tmp/out
22498   fi
22499
22500 done
22501 _ACEOF
22502 cat >>$CONFIG_STATUS <<\_ACEOF
22503
22504 #
22505 # CONFIG_HEADER section.
22506 #
22507
22508 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22509 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22510 #
22511 # ac_d sets the value in "#define NAME VALUE" lines.
22512 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22513 ac_dB='[         ].*$,\1#\2'
22514 ac_dC=' '
22515 ac_dD=',;t'
22516 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22517 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22518 ac_uB='$,\1#\2define\3'
22519 ac_uC=' '
22520 ac_uD=',;t'
22521
22522 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22523   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22524   case $ac_file in
22525   - | *:- | *:-:* ) # input from stdin
22526         cat >$tmp/stdin
22527         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22528         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22529   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22530         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22531   * )   ac_file_in=$ac_file.in ;;
22532   esac
22533
22534   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22535 echo "$as_me: creating $ac_file" >&6;}
22536
22537   # First look for the input files in the build tree, otherwise in the
22538   # src tree.
22539   ac_file_inputs=`IFS=:
22540     for f in $ac_file_in; do
22541       case $f in
22542       -) echo $tmp/stdin ;;
22543       [\\/$]*)
22544          # Absolute (can't be DOS-style, as IFS=:)
22545          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22546 echo "$as_me: error: cannot find input file: $f" >&2;}
22547    { (exit 1); exit 1; }; }
22548          # Do quote $f, to prevent DOS paths from being IFS'd.
22549          echo "$f";;
22550       *) # Relative
22551          if test -f "$f"; then
22552            # Build tree
22553            echo "$f"
22554          elif test -f "$srcdir/$f"; then
22555            # Source tree
22556            echo "$srcdir/$f"
22557          else
22558            # /dev/null tree
22559            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22560 echo "$as_me: error: cannot find input file: $f" >&2;}
22561    { (exit 1); exit 1; }; }
22562          fi;;
22563       esac
22564     done` || { (exit 1); exit 1; }
22565   # Remove the trailing spaces.
22566   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22567
22568 _ACEOF
22569
22570 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22571 # `conftest.undefs', that substitutes the proper values into
22572 # config.h.in to produce config.h.  The first handles `#define'
22573 # templates, and the second `#undef' templates.
22574 # And first: Protect against being on the right side of a sed subst in
22575 # config.status.  Protect against being in an unquoted here document
22576 # in config.status.
22577 rm -f conftest.defines conftest.undefs
22578 # Using a here document instead of a string reduces the quoting nightmare.
22579 # Putting comments in sed scripts is not portable.
22580 #
22581 # `end' is used to avoid that the second main sed command (meant for
22582 # 0-ary CPP macros) applies to n-ary macro definitions.
22583 # See the Autoconf documentation for `clear'.
22584 cat >confdef2sed.sed <<\_ACEOF
22585 s/[\\&,]/\\&/g
22586 s,[\\$`],\\&,g
22587 t clear
22588 : clear
22589 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22590 t end
22591 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22592 : end
22593 _ACEOF
22594 # If some macros were called several times there might be several times
22595 # the same #defines, which is useless.  Nevertheless, we may not want to
22596 # sort them, since we want the *last* AC-DEFINE to be honored.
22597 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22598 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22599 rm -f confdef2sed.sed
22600
22601 # This sed command replaces #undef with comments.  This is necessary, for
22602 # example, in the case of _POSIX_SOURCE, which is predefined and required
22603 # on some systems where configure will not decide to define it.
22604 cat >>conftest.undefs <<\_ACEOF
22605 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22606 _ACEOF
22607
22608 # Break up conftest.defines because some shells have a limit on the size
22609 # of here documents, and old seds have small limits too (100 cmds).
22610 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22611 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22612 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22613 echo '  :' >>$CONFIG_STATUS
22614 rm -f conftest.tail
22615 while grep . conftest.defines >/dev/null
22616 do
22617   # Write a limited-size here document to $tmp/defines.sed.
22618   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22619   # Speed up: don't consider the non `#define' lines.
22620   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22621   # Work around the forget-to-reset-the-flag bug.
22622   echo 't clr' >>$CONFIG_STATUS
22623   echo ': clr' >>$CONFIG_STATUS
22624   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22625   echo 'CEOF
22626   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22627   rm -f $tmp/in
22628   mv $tmp/out $tmp/in
22629 ' >>$CONFIG_STATUS
22630   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22631   rm -f conftest.defines
22632   mv conftest.tail conftest.defines
22633 done
22634 rm -f conftest.defines
22635 echo '  fi # grep' >>$CONFIG_STATUS
22636 echo >>$CONFIG_STATUS
22637
22638 # Break up conftest.undefs because some shells have a limit on the size
22639 # of here documents, and old seds have small limits too (100 cmds).
22640 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22641 rm -f conftest.tail
22642 while grep . conftest.undefs >/dev/null
22643 do
22644   # Write a limited-size here document to $tmp/undefs.sed.
22645   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22646   # Speed up: don't consider the non `#undef'
22647   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22648   # Work around the forget-to-reset-the-flag bug.
22649   echo 't clr' >>$CONFIG_STATUS
22650   echo ': clr' >>$CONFIG_STATUS
22651   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22652   echo 'CEOF
22653   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22654   rm -f $tmp/in
22655   mv $tmp/out $tmp/in
22656 ' >>$CONFIG_STATUS
22657   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22658   rm -f conftest.undefs
22659   mv conftest.tail conftest.undefs
22660 done
22661 rm -f conftest.undefs
22662
22663 cat >>$CONFIG_STATUS <<\_ACEOF
22664   # Let's still pretend it is `configure' which instantiates (i.e., don't
22665   # use $as_me), people would be surprised to read:
22666   #    /* config.h.  Generated by config.status.  */
22667   if test x"$ac_file" = x-; then
22668     echo "/* Generated by configure.  */" >$tmp/config.h
22669   else
22670     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22671   fi
22672   cat $tmp/in >>$tmp/config.h
22673   rm -f $tmp/in
22674   if test x"$ac_file" != x-; then
22675     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22676       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22677 echo "$as_me: $ac_file is unchanged" >&6;}
22678     else
22679       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22681          X"$ac_file" : 'X\(//\)[^/]' \| \
22682          X"$ac_file" : 'X\(//\)$' \| \
22683          X"$ac_file" : 'X\(/\)' \| \
22684          .     : '\(.\)' 2>/dev/null ||
22685 echo X"$ac_file" |
22686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22688           /^X\(\/\/\)$/{ s//\1/; q; }
22689           /^X\(\/\).*/{ s//\1/; q; }
22690           s/.*/./; q'`
22691       { if $as_mkdir_p; then
22692     mkdir -p "$ac_dir"
22693   else
22694     as_dir="$ac_dir"
22695     as_dirs=
22696     while test ! -d "$as_dir"; do
22697       as_dirs="$as_dir $as_dirs"
22698       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22700          X"$as_dir" : 'X\(//\)[^/]' \| \
22701          X"$as_dir" : 'X\(//\)$' \| \
22702          X"$as_dir" : 'X\(/\)' \| \
22703          .     : '\(.\)' 2>/dev/null ||
22704 echo X"$as_dir" |
22705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22706           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22707           /^X\(\/\/\)$/{ s//\1/; q; }
22708           /^X\(\/\).*/{ s//\1/; q; }
22709           s/.*/./; q'`
22710     done
22711     test ! -n "$as_dirs" || mkdir $as_dirs
22712   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22713 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22714    { (exit 1); exit 1; }; }; }
22715
22716       rm -f $ac_file
22717       mv $tmp/config.h $ac_file
22718     fi
22719   else
22720     cat $tmp/config.h
22721     rm -f $tmp/config.h
22722   fi
22723 # Compute $ac_file's index in $config_headers.
22724 _am_stamp_count=1
22725 for _am_header in $config_headers :; do
22726   case $_am_header in
22727     $ac_file | $ac_file:* )
22728       break ;;
22729     * )
22730       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22731   esac
22732 done
22733 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22734 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22735          X$ac_file : 'X\(//\)[^/]' \| \
22736          X$ac_file : 'X\(//\)$' \| \
22737          X$ac_file : 'X\(/\)' \| \
22738          .     : '\(.\)' 2>/dev/null ||
22739 echo X$ac_file |
22740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22741           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22742           /^X\(\/\/\)$/{ s//\1/; q; }
22743           /^X\(\/\).*/{ s//\1/; q; }
22744           s/.*/./; q'`/stamp-h$_am_stamp_count
22745 done
22746 _ACEOF
22747 cat >>$CONFIG_STATUS <<\_ACEOF
22748
22749 #
22750 # CONFIG_LINKS section.
22751 #
22752
22753 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22754   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22755   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22756
22757   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22758 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22759
22760   if test ! -r $srcdir/$ac_source; then
22761     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22762 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22763    { (exit 1); exit 1; }; }
22764   fi
22765   rm -f $ac_dest
22766
22767   # Make relative symlinks.
22768   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22769 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22770          X"$ac_dest" : 'X\(//\)[^/]' \| \
22771          X"$ac_dest" : 'X\(//\)$' \| \
22772          X"$ac_dest" : 'X\(/\)' \| \
22773          .     : '\(.\)' 2>/dev/null ||
22774 echo X"$ac_dest" |
22775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22776           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22777           /^X\(\/\/\)$/{ s//\1/; q; }
22778           /^X\(\/\).*/{ s//\1/; q; }
22779           s/.*/./; q'`
22780   { if $as_mkdir_p; then
22781     mkdir -p "$ac_dest_dir"
22782   else
22783     as_dir="$ac_dest_dir"
22784     as_dirs=
22785     while test ! -d "$as_dir"; do
22786       as_dirs="$as_dir $as_dirs"
22787       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22789          X"$as_dir" : 'X\(//\)[^/]' \| \
22790          X"$as_dir" : 'X\(//\)$' \| \
22791          X"$as_dir" : 'X\(/\)' \| \
22792          .     : '\(.\)' 2>/dev/null ||
22793 echo X"$as_dir" |
22794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22796           /^X\(\/\/\)$/{ s//\1/; q; }
22797           /^X\(\/\).*/{ s//\1/; q; }
22798           s/.*/./; q'`
22799     done
22800     test ! -n "$as_dirs" || mkdir $as_dirs
22801   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22802 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22803    { (exit 1); exit 1; }; }; }
22804
22805   ac_builddir=.
22806
22807 if test "$ac_dest_dir" != .; then
22808   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22809   # A "../" for each directory in $ac_dir_suffix.
22810   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22811 else
22812   ac_dir_suffix= ac_top_builddir=
22813 fi
22814
22815 case $srcdir in
22816   .)  # No --srcdir option.  We are building in place.
22817     ac_srcdir=.
22818     if test -z "$ac_top_builddir"; then
22819        ac_top_srcdir=.
22820     else
22821        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22822     fi ;;
22823   [\\/]* | ?:[\\/]* )  # Absolute path.
22824     ac_srcdir=$srcdir$ac_dir_suffix;
22825     ac_top_srcdir=$srcdir ;;
22826   *) # Relative path.
22827     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22828     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22829 esac
22830
22831 # Do not use `cd foo && pwd` to compute absolute paths, because
22832 # the directories may not exist.
22833 case `pwd` in
22834 .) ac_abs_builddir="$ac_dest_dir";;
22835 *)
22836   case "$ac_dest_dir" in
22837   .) ac_abs_builddir=`pwd`;;
22838   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22839   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22840   esac;;
22841 esac
22842 case $ac_abs_builddir in
22843 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22844 *)
22845   case ${ac_top_builddir}. in
22846   .) ac_abs_top_builddir=$ac_abs_builddir;;
22847   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22848   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22849   esac;;
22850 esac
22851 case $ac_abs_builddir in
22852 .) ac_abs_srcdir=$ac_srcdir;;
22853 *)
22854   case $ac_srcdir in
22855   .) ac_abs_srcdir=$ac_abs_builddir;;
22856   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22857   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22858   esac;;
22859 esac
22860 case $ac_abs_builddir in
22861 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22862 *)
22863   case $ac_top_srcdir in
22864   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22865   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22866   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22867   esac;;
22868 esac
22869
22870
22871   case $srcdir in
22872   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22873       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22874   esac
22875
22876   # Try a symlink, then a hard link, then a copy.
22877   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22878     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22879     cp -p $srcdir/$ac_source $ac_dest ||
22880     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22881 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22882    { (exit 1); exit 1; }; }
22883 done
22884 _ACEOF
22885 cat >>$CONFIG_STATUS <<\_ACEOF
22886
22887 #
22888 # CONFIG_COMMANDS section.
22889 #
22890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22891   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22892   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22893   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22894 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22895          X"$ac_dest" : 'X\(//\)[^/]' \| \
22896          X"$ac_dest" : 'X\(//\)$' \| \
22897          X"$ac_dest" : 'X\(/\)' \| \
22898          .     : '\(.\)' 2>/dev/null ||
22899 echo X"$ac_dest" |
22900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22902           /^X\(\/\/\)$/{ s//\1/; q; }
22903           /^X\(\/\).*/{ s//\1/; q; }
22904           s/.*/./; q'`
22905   { if $as_mkdir_p; then
22906     mkdir -p "$ac_dir"
22907   else
22908     as_dir="$ac_dir"
22909     as_dirs=
22910     while test ! -d "$as_dir"; do
22911       as_dirs="$as_dir $as_dirs"
22912       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22914          X"$as_dir" : 'X\(//\)[^/]' \| \
22915          X"$as_dir" : 'X\(//\)$' \| \
22916          X"$as_dir" : 'X\(/\)' \| \
22917          .     : '\(.\)' 2>/dev/null ||
22918 echo X"$as_dir" |
22919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22921           /^X\(\/\/\)$/{ s//\1/; q; }
22922           /^X\(\/\).*/{ s//\1/; q; }
22923           s/.*/./; q'`
22924     done
22925     test ! -n "$as_dirs" || mkdir $as_dirs
22926   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22928    { (exit 1); exit 1; }; }; }
22929
22930   ac_builddir=.
22931
22932 if test "$ac_dir" != .; then
22933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22934   # A "../" for each directory in $ac_dir_suffix.
22935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22936 else
22937   ac_dir_suffix= ac_top_builddir=
22938 fi
22939
22940 case $srcdir in
22941   .)  # No --srcdir option.  We are building in place.
22942     ac_srcdir=.
22943     if test -z "$ac_top_builddir"; then
22944        ac_top_srcdir=.
22945     else
22946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22947     fi ;;
22948   [\\/]* | ?:[\\/]* )  # Absolute path.
22949     ac_srcdir=$srcdir$ac_dir_suffix;
22950     ac_top_srcdir=$srcdir ;;
22951   *) # Relative path.
22952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22954 esac
22955
22956 # Do not use `cd foo && pwd` to compute absolute paths, because
22957 # the directories may not exist.
22958 case `pwd` in
22959 .) ac_abs_builddir="$ac_dir";;
22960 *)
22961   case "$ac_dir" in
22962   .) ac_abs_builddir=`pwd`;;
22963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22965   esac;;
22966 esac
22967 case $ac_abs_builddir in
22968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22969 *)
22970   case ${ac_top_builddir}. in
22971   .) ac_abs_top_builddir=$ac_abs_builddir;;
22972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22974   esac;;
22975 esac
22976 case $ac_abs_builddir in
22977 .) ac_abs_srcdir=$ac_srcdir;;
22978 *)
22979   case $ac_srcdir in
22980   .) ac_abs_srcdir=$ac_abs_builddir;;
22981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22983   esac;;
22984 esac
22985 case $ac_abs_builddir in
22986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22987 *)
22988   case $ac_top_srcdir in
22989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22992   esac;;
22993 esac
22994
22995
22996   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22997 echo "$as_me: executing $ac_dest commands" >&6;}
22998   case $ac_dest in
22999     depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
23000     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23001   # Strip MF so we end up with the name of the file.
23002   mf=`echo "$mf" | sed -e 's/:.*$//'`
23003   # Check whether this is an Automake generated Makefile or not.
23004   # We used to match only the files named `Makefile.in', but
23005   # some people rename them; so instead we look at the file content.
23006   # Grep'ing the first line is not enough: some people post-process
23007   # each Makefile.in and add a new line on top of each file to say so.
23008   # So let's grep whole file.
23009   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23010     dirpart=`(dirname "$mf") 2>/dev/null ||
23011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23012          X"$mf" : 'X\(//\)[^/]' \| \
23013          X"$mf" : 'X\(//\)$' \| \
23014          X"$mf" : 'X\(/\)' \| \
23015          .     : '\(.\)' 2>/dev/null ||
23016 echo X"$mf" |
23017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23019           /^X\(\/\/\)$/{ s//\1/; q; }
23020           /^X\(\/\).*/{ s//\1/; q; }
23021           s/.*/./; q'`
23022   else
23023     continue
23024   fi
23025   # Extract the definition of DEPDIR, am__include, and am__quote
23026   # from the Makefile without running `make'.
23027   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23028   test -z "$DEPDIR" && continue
23029   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23030   test -z "am__include" && continue
23031   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23032   # When using ansi2knr, U may be empty or an underscore; expand it
23033   U=`sed -n 's/^U = //p' < "$mf"`
23034   # Find all dependency output files, they are included files with
23035   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23036   # simplest approach to changing $(DEPDIR) to its actual value in the
23037   # expansion.
23038   for file in `sed -n "
23039     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23040        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23041     # Make sure the directory exists.
23042     test -f "$dirpart/$file" && continue
23043     fdir=`(dirname "$file") 2>/dev/null ||
23044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23045          X"$file" : 'X\(//\)[^/]' \| \
23046          X"$file" : 'X\(//\)$' \| \
23047          X"$file" : 'X\(/\)' \| \
23048          .     : '\(.\)' 2>/dev/null ||
23049 echo X"$file" |
23050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23052           /^X\(\/\/\)$/{ s//\1/; q; }
23053           /^X\(\/\).*/{ s//\1/; q; }
23054           s/.*/./; q'`
23055     { if $as_mkdir_p; then
23056     mkdir -p $dirpart/$fdir
23057   else
23058     as_dir=$dirpart/$fdir
23059     as_dirs=
23060     while test ! -d "$as_dir"; do
23061       as_dirs="$as_dir $as_dirs"
23062       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23064          X"$as_dir" : 'X\(//\)[^/]' \| \
23065          X"$as_dir" : 'X\(//\)$' \| \
23066          X"$as_dir" : 'X\(/\)' \| \
23067          .     : '\(.\)' 2>/dev/null ||
23068 echo X"$as_dir" |
23069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23070           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23071           /^X\(\/\/\)$/{ s//\1/; q; }
23072           /^X\(\/\).*/{ s//\1/; q; }
23073           s/.*/./; q'`
23074     done
23075     test ! -n "$as_dirs" || mkdir $as_dirs
23076   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23077 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23078    { (exit 1); exit 1; }; }; }
23079
23080     # echo "creating $dirpart/$file"
23081     echo '# dummy' > "$dirpart/$file"
23082   done
23083 done
23084  ;;
23085     default )
23086 case x$CONFIG_HEADERS in
23087 xconfig.h:config.in)
23088 echo > stamp-h ;;
23089 esac
23090  ;;
23091   esac
23092 done
23093 _ACEOF
23094
23095 cat >>$CONFIG_STATUS <<\_ACEOF
23096
23097 { (exit 0); exit 0; }
23098 _ACEOF
23099 chmod +x $CONFIG_STATUS
23100 ac_clean_files=$ac_clean_files_save
23101
23102
23103 # configure is writing to config.log, and then calls config.status.
23104 # config.status does its own redirection, appending to config.log.
23105 # Unfortunately, on DOS this fails, as config.log is still kept open
23106 # by configure, so config.status won't be able to write to it; its
23107 # output is simply discarded.  So we exec the FD to /dev/null,
23108 # effectively closing config.log, so it can be properly (re)opened and
23109 # appended to by config.status.  When coming back to configure, we
23110 # need to make the FD available again.
23111 if test "$no_create" != yes; then
23112   ac_cs_success=:
23113   ac_config_status_args=
23114   test "$silent" = yes &&
23115     ac_config_status_args="$ac_config_status_args --quiet"
23116   exec 5>/dev/null
23117   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23118   exec 5>>config.log
23119   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23120   # would make configure fail if this is the last instruction.
23121   $ac_cs_success || { (exit 1); exit 1; }
23122 fi
23123
23124 #
23125 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23126 #
23127 if test "$no_recursion" != yes; then
23128
23129   # Remove --cache-file and --srcdir arguments so they do not pile up.
23130   ac_sub_configure_args=
23131   ac_prev=
23132   eval "set x $ac_configure_args"
23133   shift
23134   for ac_arg
23135   do
23136     if test -n "$ac_prev"; then
23137       ac_prev=
23138       continue
23139     fi
23140     case $ac_arg in
23141     -cache-file | --cache-file | --cache-fil | --cache-fi \
23142     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23143       ac_prev=cache_file ;;
23144     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23145     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23146     | --c=*)
23147       ;;
23148     --config-cache | -C)
23149       ;;
23150     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23151       ac_prev=srcdir ;;
23152     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23153       ;;
23154     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23155       ac_prev=prefix ;;
23156     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23157       ;;
23158     *)
23159       case $ac_arg in
23160       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23161       esac
23162       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23163     esac
23164   done
23165
23166   # Always prepend --prefix to ensure using the same prefix
23167   # in subdir configurations.
23168   ac_arg="--prefix=$prefix"
23169   case $ac_arg in
23170   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23171   esac
23172   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23173
23174   ac_popdir=`pwd`
23175   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23176
23177     # Do not complain, so a configure script can configure whichever
23178     # parts of a large source tree are present.
23179     test -d "$srcdir/$ac_dir" || continue
23180
23181     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23182 echo "$as_me: configuring in $ac_dir" >&6;}
23183     { if $as_mkdir_p; then
23184     mkdir -p "$ac_dir"
23185   else
23186     as_dir="$ac_dir"
23187     as_dirs=
23188     while test ! -d "$as_dir"; do
23189       as_dirs="$as_dir $as_dirs"
23190       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23192          X"$as_dir" : 'X\(//\)[^/]' \| \
23193          X"$as_dir" : 'X\(//\)$' \| \
23194          X"$as_dir" : 'X\(/\)' \| \
23195          .     : '\(.\)' 2>/dev/null ||
23196 echo X"$as_dir" |
23197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23198           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23199           /^X\(\/\/\)$/{ s//\1/; q; }
23200           /^X\(\/\).*/{ s//\1/; q; }
23201           s/.*/./; q'`
23202     done
23203     test ! -n "$as_dirs" || mkdir $as_dirs
23204   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23205 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23206    { (exit 1); exit 1; }; }; }
23207
23208     ac_builddir=.
23209
23210 if test "$ac_dir" != .; then
23211   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23212   # A "../" for each directory in $ac_dir_suffix.
23213   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23214 else
23215   ac_dir_suffix= ac_top_builddir=
23216 fi
23217
23218 case $srcdir in
23219   .)  # No --srcdir option.  We are building in place.
23220     ac_srcdir=.
23221     if test -z "$ac_top_builddir"; then
23222        ac_top_srcdir=.
23223     else
23224        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23225     fi ;;
23226   [\\/]* | ?:[\\/]* )  # Absolute path.
23227     ac_srcdir=$srcdir$ac_dir_suffix;
23228     ac_top_srcdir=$srcdir ;;
23229   *) # Relative path.
23230     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23231     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23232 esac
23233
23234 # Do not use `cd foo && pwd` to compute absolute paths, because
23235 # the directories may not exist.
23236 case `pwd` in
23237 .) ac_abs_builddir="$ac_dir";;
23238 *)
23239   case "$ac_dir" in
23240   .) ac_abs_builddir=`pwd`;;
23241   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23242   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23243   esac;;
23244 esac
23245 case $ac_abs_builddir in
23246 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23247 *)
23248   case ${ac_top_builddir}. in
23249   .) ac_abs_top_builddir=$ac_abs_builddir;;
23250   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23251   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23252   esac;;
23253 esac
23254 case $ac_abs_builddir in
23255 .) ac_abs_srcdir=$ac_srcdir;;
23256 *)
23257   case $ac_srcdir in
23258   .) ac_abs_srcdir=$ac_abs_builddir;;
23259   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23260   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23261   esac;;
23262 esac
23263 case $ac_abs_builddir in
23264 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23265 *)
23266   case $ac_top_srcdir in
23267   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23268   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23269   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23270   esac;;
23271 esac
23272
23273
23274     cd "$ac_dir"
23275
23276     # Check for guested configure; otherwise get Cygnus style configure.
23277     if test -f "$ac_srcdir/configure.gnu"; then
23278       ac_sub_configure=$ac_srcdir/configure.gnu
23279     elif test -f "$ac_srcdir/configure"; then
23280       ac_sub_configure=$ac_srcdir/configure
23281     elif test -f "$ac_srcdir/configure.in"; then
23282       # This should be Cygnus configure.
23283       ac_sub_configure=$ac_aux_dir/configure
23284     else
23285       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23286 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23287       ac_sub_configure=
23288     fi
23289
23290     # The recursion is here.
23291     if test -n "$ac_sub_configure"; then
23292       # Make the cache file name correct relative to the subdirectory.
23293       case $cache_file in
23294       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23295       *) # Relative path.
23296         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23297       esac
23298
23299       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23300 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23301       # The eval makes quoting arguments work.
23302       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23303            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23304         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23305 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23306    { (exit 1); exit 1; }; }
23307     fi
23308
23309     cd "$ac_popdir"
23310   done
23311 fi
23312
23313
23314 exit 0