20bfdca253709e2d4f23afa4b2f40ea6833992df
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h 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-relocated-sources=PATH
891 automatically relocate this path for source files
892 --with-libunwind use libunwind frame unwinding support
893 --with-curses use the curses library instead of the termcap
894 library
895 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
896 --with-bugurl=URL Direct users to URL to report a bug
897 --with-libiconv-prefix=DIR
898 search for libiconv in DIR/include and DIR/lib
899 --with-system-readline use installed readline library
900 --with-expat include expat support (auto/yes/no)
901 --with-gnu-ld assume the C compiler uses GNU ld default=no
902 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
903 --without-libexpat-prefix don't search for libexpat in includedir and libdir
904 --with-python include python support (auto/yes/no/<path>)
905 --without-included-regex
906 don't use included regex; this is the default on
907 systems with version 2 of the GNU C library (use
908 with caution on other system)
909 --with-sysroot[=DIR]
910 search for usr/lib et al within DIR
911 --with-system-gdbinit=FILE
912 automatically load a system-wide gdbinit file
913 --with-tcl directory containing tcl configuration (tclConfig.sh)
914 --with-tk directory containing tk configuration (tkConfig.sh)
915 --with-x use the X Window System
916 --with-datarootdir use datarootdir as the data root directory.
917 --with-docdir install documentation in this directory.
918 --with-pdfdir install pdf in this directory.
919 --with-htmldir install html in this directory.
920
921 Some influential environment variables:
922 CC C compiler command
923 CFLAGS C compiler flags
924 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
925 nonstandard directory <lib dir>
926 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
927 headers in a nonstandard directory <include dir>
928 CPP C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937 # If there are subdirs, report their specific --help.
938 ac_popdir=`pwd`
939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940 test -d $ac_dir || continue
941 ac_builddir=.
942
943 if test "$ac_dir" != .; then
944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945 # A "../" for each directory in $ac_dir_suffix.
946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948 ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952 .) # No --srcdir option. We are building in place.
953 ac_srcdir=.
954 if test -z "$ac_top_builddir"; then
955 ac_top_srcdir=.
956 else
957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958 fi ;;
959 [\\/]* | ?:[\\/]* ) # Absolute path.
960 ac_srcdir=$srcdir$ac_dir_suffix;
961 ac_top_srcdir=$srcdir ;;
962 *) # Relative path.
963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966
967 # Do not use `cd foo && pwd` to compute absolute paths, because
968 # the directories may not exist.
969 case `pwd` in
970 .) ac_abs_builddir="$ac_dir";;
971 *)
972 case "$ac_dir" in
973 .) ac_abs_builddir=`pwd`;;
974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
980 *)
981 case ${ac_top_builddir}. in
982 .) ac_abs_top_builddir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
985 esac;;
986 esac
987 case $ac_abs_builddir in
988 .) ac_abs_srcdir=$ac_srcdir;;
989 *)
990 case $ac_srcdir in
991 .) ac_abs_srcdir=$ac_abs_builddir;;
992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
994 esac;;
995 esac
996 case $ac_abs_builddir in
997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
998 *)
999 case $ac_top_srcdir in
1000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1003 esac;;
1004 esac
1005
1006 cd $ac_dir
1007 # Check for guested configure; otherwise get Cygnus style configure.
1008 if test -f $ac_srcdir/configure.gnu; then
1009 echo
1010 $SHELL $ac_srcdir/configure.gnu --help=recursive
1011 elif test -f $ac_srcdir/configure; then
1012 echo
1013 $SHELL $ac_srcdir/configure --help=recursive
1014 elif test -f $ac_srcdir/configure.ac ||
1015 test -f $ac_srcdir/configure.in; then
1016 echo
1017 $ac_configure --help
1018 else
1019 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1020 fi
1021 cd $ac_popdir
1022 done
1023 fi
1024
1025 test -n "$ac_init_help" && exit 0
1026 if $ac_init_version; then
1027 cat <<\_ACEOF
1028
1029 Copyright (C) 2003 Free Software Foundation, Inc.
1030 This configure script is free software; the Free Software Foundation
1031 gives unlimited permission to copy, distribute and modify it.
1032 _ACEOF
1033 exit 0
1034 fi
1035 exec 5>config.log
1036 cat >&5 <<_ACEOF
1037 This file contains any messages produced by compilers while
1038 running configure, to aid debugging if configure makes a mistake.
1039
1040 It was created by $as_me, which was
1041 generated by GNU Autoconf 2.59. Invocation command line was
1042
1043 $ $0 $@
1044
1045 _ACEOF
1046 {
1047 cat <<_ASUNAME
1048 ## --------- ##
1049 ## Platform. ##
1050 ## --------- ##
1051
1052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1057
1058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1060
1061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1064 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1068
1069 _ASUNAME
1070
1071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1072 for as_dir in $PATH
1073 do
1074 IFS=$as_save_IFS
1075 test -z "$as_dir" && as_dir=.
1076 echo "PATH: $as_dir"
1077 done
1078
1079 } >&5
1080
1081 cat >&5 <<_ACEOF
1082
1083
1084 ## ----------- ##
1085 ## Core tests. ##
1086 ## ----------- ##
1087
1088 _ACEOF
1089
1090
1091 # Keep a trace of the command line.
1092 # Strip out --no-create and --no-recursion so they do not pile up.
1093 # Strip out --silent because we don't want to record it for future runs.
1094 # Also quote any args containing shell meta-characters.
1095 # Make two passes to allow for proper duplicate-argument suppression.
1096 ac_configure_args=
1097 ac_configure_args0=
1098 ac_configure_args1=
1099 ac_sep=
1100 ac_must_keep_next=false
1101 for ac_pass in 1 2
1102 do
1103 for ac_arg
1104 do
1105 case $ac_arg in
1106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 continue ;;
1110 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1111 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1112 esac
1113 case $ac_pass in
1114 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1115 2)
1116 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1117 if test $ac_must_keep_next = true; then
1118 ac_must_keep_next=false # Got value, back to normal.
1119 else
1120 case $ac_arg in
1121 *=* | --config-cache | -C | -disable-* | --disable-* \
1122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1124 | -with-* | --with-* | -without-* | --without-* | --x)
1125 case "$ac_configure_args0 " in
1126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1127 esac
1128 ;;
1129 -* ) ac_must_keep_next=true ;;
1130 esac
1131 fi
1132 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1133 # Get rid of the leading space.
1134 ac_sep=" "
1135 ;;
1136 esac
1137 done
1138 done
1139 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1140 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1141
1142 # When interrupted or exit'd, cleanup temporary files, and complete
1143 # config.log. We remove comments because anyway the quotes in there
1144 # would cause problems or look ugly.
1145 # WARNING: Be sure not to use single quotes in there, as some shells,
1146 # such as our DU 5.0 friend, will then `close' the trap.
1147 trap 'exit_status=$?
1148 # Save into config.log some information that might help in debugging.
1149 {
1150 echo
1151
1152 cat <<\_ASBOX
1153 ## ---------------- ##
1154 ## Cache variables. ##
1155 ## ---------------- ##
1156 _ASBOX
1157 echo
1158 # The following way of writing the cache mishandles newlines in values,
1159 {
1160 (set) 2>&1 |
1161 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1162 *ac_space=\ *)
1163 sed -n \
1164 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1166 ;;
1167 *)
1168 sed -n \
1169 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170 ;;
1171 esac;
1172 }
1173 echo
1174
1175 cat <<\_ASBOX
1176 ## ----------------- ##
1177 ## Output variables. ##
1178 ## ----------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_vars
1182 do
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1187
1188 if test -n "$ac_subst_files"; then
1189 cat <<\_ASBOX
1190 ## ------------- ##
1191 ## Output files. ##
1192 ## ------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_files
1196 do
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1201 fi
1202
1203 if test -s confdefs.h; then
1204 cat <<\_ASBOX
1205 ## ----------- ##
1206 ## confdefs.h. ##
1207 ## ----------- ##
1208 _ASBOX
1209 echo
1210 sed "/^$/d" confdefs.h | sort
1211 echo
1212 fi
1213 test "$ac_signal" != 0 &&
1214 echo "$as_me: caught signal $ac_signal"
1215 echo "$as_me: exit $exit_status"
1216 } >&5
1217 rm -f core *.core &&
1218 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1219 exit $exit_status
1220 ' 0
1221 for ac_signal in 1 2 13 15; do
1222 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1223 done
1224 ac_signal=0
1225
1226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1227 rm -rf conftest* confdefs.h
1228 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1229 echo >confdefs.h
1230
1231 # Predefined preprocessor variables.
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_NAME "$PACKAGE_NAME"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1240 _ACEOF
1241
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_STRING "$PACKAGE_STRING"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1255 _ACEOF
1256
1257
1258 # Let the site file select an alternate cache file if it wants to.
1259 # Prefer explicitly selected file to automatically selected ones.
1260 if test -z "$CONFIG_SITE"; then
1261 if test "x$prefix" != xNONE; then
1262 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1263 else
1264 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1265 fi
1266 fi
1267 for ac_site_file in $CONFIG_SITE; do
1268 if test -r "$ac_site_file"; then
1269 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1270 echo "$as_me: loading site script $ac_site_file" >&6;}
1271 sed 's/^/| /' "$ac_site_file" >&5
1272 . "$ac_site_file"
1273 fi
1274 done
1275
1276 if test -r "$cache_file"; then
1277 # Some versions of bash will fail to source /dev/null (special
1278 # files actually), so we avoid doing that.
1279 if test -f "$cache_file"; then
1280 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1281 echo "$as_me: loading cache $cache_file" >&6;}
1282 case $cache_file in
1283 [\\/]* | ?:[\\/]* ) . $cache_file;;
1284 *) . ./$cache_file;;
1285 esac
1286 fi
1287 else
1288 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1289 echo "$as_me: creating cache $cache_file" >&6;}
1290 >$cache_file
1291 fi
1292
1293 # Check that the precious variables saved in the cache have kept the same
1294 # value.
1295 ac_cache_corrupted=false
1296 for ac_var in `(set) 2>&1 |
1297 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1299 eval ac_new_set=\$ac_env_${ac_var}_set
1300 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1301 eval ac_new_val="\$ac_env_${ac_var}_value"
1302 case $ac_old_set,$ac_new_set in
1303 set,)
1304 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1305 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1306 ac_cache_corrupted=: ;;
1307 ,set)
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1311 ,);;
1312 *)
1313 if test "x$ac_old_val" != "x$ac_new_val"; then
1314 # differences in whitespace do not lead to failure.
1315 ac_old_val_w=`echo x $ac_old_val`
1316 ac_new_val_w=`echo x $ac_new_val`
1317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320 ac_cache_corrupted=:
1321 else
1322 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1323 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1324 eval $ac_var=\$ac_old_val
1325 fi
1326 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1327 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1328 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1329 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1330 fi;;
1331 esac
1332 # Pass precious variables to config.status.
1333 if test "$ac_new_set" = set; then
1334 case $ac_new_val in
1335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1337 *) ac_arg=$ac_var=$ac_new_val ;;
1338 esac
1339 case " $ac_configure_args " in
1340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1341 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1342 esac
1343 fi
1344 done
1345 if $ac_cache_corrupted; then
1346 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1347 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362 gl_header_list="$gl_header_list stdint.h"
1363 gl_header_list="$gl_header_list wchar.h"
1364 gl_header_list="$gl_header_list string.h"
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 ac_config_headers="$ac_config_headers config.h:config.in"
1386
1387 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1388 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1389 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1390 if test "${enable_maintainer_mode+set}" = set; then
1391 enableval="$enable_maintainer_mode"
1392 USE_MAINTAINER_MODE=$enableval
1393 else
1394 USE_MAINTAINER_MODE=no
1395 fi;
1396 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1397 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1398
1399
1400 if test $USE_MAINTAINER_MODE = yes; then
1401 MAINTAINER_MODE_TRUE=
1402 MAINTAINER_MODE_FALSE='#'
1403 else
1404 MAINTAINER_MODE_TRUE='#'
1405 MAINTAINER_MODE_FALSE=
1406 fi
1407
1408 MAINT=$MAINTAINER_MODE_TRUE
1409
1410
1411
1412 ac_ext=c
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1417 if test -n "$ac_tool_prefix"; then
1418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:$LINENO: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 else
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431 IFS=$as_save_IFS
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437 break 2
1438 fi
1439 done
1440 done
1441
1442 fi
1443 fi
1444 CC=$ac_cv_prog_CC
1445 if test -n "$CC"; then
1446 echo "$as_me:$LINENO: result: $CC" >&5
1447 echo "${ECHO_T}$CC" >&6
1448 else
1449 echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453 fi
1454 if test -z "$ac_cv_prog_CC"; then
1455 ac_ct_CC=$CC
1456 # Extract the first word of "gcc", so it can be a program name with args.
1457 set dummy gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 if test -n "$ac_ct_CC"; then
1464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_ac_ct_CC="gcc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1483 if test -n "$ac_ct_CC"; then
1484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1485 echo "${ECHO_T}$ac_ct_CC" >&6
1486 else
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 CC=$ac_ct_CC
1492 else
1493 CC="$ac_cv_prog_CC"
1494 fi
1495
1496 if test -z "$CC"; then
1497 if test -n "$ac_tool_prefix"; then
1498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1499 set dummy ${ac_tool_prefix}cc; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505 if test -n "$CC"; then
1506 ac_cv_prog_CC="$CC" # Let the user override the test.
1507 else
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1510 do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_CC="${ac_tool_prefix}cc"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 break 2
1518 fi
1519 done
1520 done
1521
1522 fi
1523 fi
1524 CC=$ac_cv_prog_CC
1525 if test -n "$CC"; then
1526 echo "$as_me:$LINENO: result: $CC" >&5
1527 echo "${ECHO_T}$CC" >&6
1528 else
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1531 fi
1532
1533 fi
1534 if test -z "$ac_cv_prog_CC"; then
1535 ac_ct_CC=$CC
1536 # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 if test -n "$ac_ct_CC"; then
1544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_ac_ct_CC="cc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 break 2
1556 fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1563 if test -n "$ac_ct_CC"; then
1564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1565 echo "${ECHO_T}$ac_ct_CC" >&6
1566 else
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 CC=$ac_ct_CC
1572 else
1573 CC="$ac_cv_prog_CC"
1574 fi
1575
1576 fi
1577 if test -z "$CC"; then
1578 # Extract the first word of "cc", so it can be a program name with args.
1579 set dummy cc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 ac_prog_rejected=no
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1597 ac_prog_rejected=yes
1598 continue
1599 fi
1600 ac_cv_prog_CC="cc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1603 fi
1604 done
1605 done
1606
1607 if test $ac_prog_rejected = yes; then
1608 # We found a bogon in the path, so make sure we never use it.
1609 set dummy $ac_cv_prog_CC
1610 shift
1611 if test $# != 0; then
1612 # We chose a different compiler from the bogus one.
1613 # However, it has the same basename, so the bogon will be chosen
1614 # first if we set CC to just the basename; use the full file name.
1615 shift
1616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1617 fi
1618 fi
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 fi
1631 if test -z "$CC"; then
1632 if test -n "$ac_tool_prefix"; then
1633 for ac_prog in cl
1634 do
1635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1655 fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 test -n "$CC" && break
1671 done
1672 fi
1673 if test -z "$CC"; then
1674 ac_ct_CC=$CC
1675 for ac_prog in cl
1676 do
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$ac_ct_CC"; then
1685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_ac_ct_CC="$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1697 fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1704 if test -n "$ac_ct_CC"; then
1705 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1706 echo "${ECHO_T}$ac_ct_CC" >&6
1707 else
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712 test -n "$ac_ct_CC" && break
1713 done
1714
1715 CC=$ac_ct_CC
1716 fi
1717
1718 fi
1719
1720
1721 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1722 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1723 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1724 See \`config.log' for more details." >&5
1725 echo "$as_me: error: no acceptable C compiler found in \$PATH
1726 See \`config.log' for more details." >&2;}
1727 { (exit 1); exit 1; }; }; }
1728
1729 # Provide some information about the compiler.
1730 echo "$as_me:$LINENO:" \
1731 "checking for C compiler version" >&5
1732 ac_compiler=`set X $ac_compile; echo $2`
1733 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1734 (eval $ac_compiler --version </dev/null >&5) 2>&5
1735 ac_status=$?
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }
1738 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1739 (eval $ac_compiler -v </dev/null >&5) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }
1743 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1744 (eval $ac_compiler -V </dev/null >&5) 2>&5
1745 ac_status=$?
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }
1748
1749 cat >conftest.$ac_ext <<_ACEOF
1750 /* confdefs.h. */
1751 _ACEOF
1752 cat confdefs.h >>conftest.$ac_ext
1753 cat >>conftest.$ac_ext <<_ACEOF
1754 /* end confdefs.h. */
1755
1756 int
1757 main ()
1758 {
1759
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 ac_clean_files_save=$ac_clean_files
1765 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766 # Try to create an executable without -o first, disregard a.out.
1767 # It will help us diagnose broken compilers, and finding out an intuition
1768 # of exeext.
1769 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1770 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1771 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773 (eval $ac_link_default) 2>&5
1774 ac_status=$?
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; then
1777 # Find the output, starting from the most likely. This scheme is
1778 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1779 # resort.
1780
1781 # Be careful to initialize this variable, since it used to be cached.
1782 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1783 ac_cv_exeext=
1784 # b.out is created by i960 compilers.
1785 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1786 do
1787 test -f "$ac_file" || continue
1788 case $ac_file in
1789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1790 ;;
1791 conftest.$ac_ext )
1792 # This is the source file.
1793 ;;
1794 [ab].out )
1795 # We found the default executable, but exeext='' is most
1796 # certainly right.
1797 break;;
1798 *.* )
1799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800 # FIXME: I believe we export ac_cv_exeext for Libtool,
1801 # but it would be cool to find out if it's true. Does anybody
1802 # maintain Libtool? --akim.
1803 export ac_cv_exeext
1804 break;;
1805 * )
1806 break;;
1807 esac
1808 done
1809 else
1810 echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1814 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1816 See \`config.log' for more details." >&5
1817 echo "$as_me: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&2;}
1819 { (exit 77); exit 77; }; }; }
1820 fi
1821
1822 ac_exeext=$ac_cv_exeext
1823 echo "$as_me:$LINENO: result: $ac_file" >&5
1824 echo "${ECHO_T}$ac_file" >&6
1825
1826 # Check the compiler produces executables we can run. If not, either
1827 # the compiler is broken, or we cross compile.
1828 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831 # If not cross compiling, check that we can run a simple program.
1832 if test "$cross_compiling" != yes; then
1833 if { ac_try='./$ac_file'
1834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 (eval $ac_try) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }; }; then
1839 cross_compiling=no
1840 else
1841 if test "$cross_compiling" = maybe; then
1842 cross_compiling=yes
1843 else
1844 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1845 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'.
1848 See \`config.log' for more details." >&5
1849 echo "$as_me: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'.
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }; }
1853 fi
1854 fi
1855 fi
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1858
1859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860 ac_clean_files=$ac_clean_files_save
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866 echo "${ECHO_T}$cross_compiling" >&6
1867
1868 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877 # work properly (i.e., refer to `conftest.exe'), while it won't with
1878 # `rm'.
1879 for ac_file in conftest.exe conftest conftest.*; do
1880 test -f "$ac_file" || continue
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884 export ac_cv_exeext
1885 break;;
1886 * ) break;;
1887 esac
1888 done
1889 else
1890 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1891 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }; }
1897 fi
1898
1899 rm -f conftest$ac_cv_exeext
1900 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1901 echo "${ECHO_T}$ac_cv_exeext" >&6
1902
1903 rm -f conftest.$ac_ext
1904 EXEEXT=$ac_cv_exeext
1905 ac_exeext=$EXEEXT
1906 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1907 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1908 if test "${ac_cv_objext+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 cat >conftest.$ac_ext <<_ACEOF
1912 /* confdefs.h. */
1913 _ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1917
1918 int
1919 main ()
1920 {
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 rm -f conftest.o conftest.obj
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1933 case $ac_file in
1934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1936 break;;
1937 esac
1938 done
1939 else
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1944 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }; }
1950 fi
1951
1952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1953 fi
1954 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1955 echo "${ECHO_T}$ac_cv_objext" >&6
1956 OBJEXT=$ac_cv_objext
1957 ac_objext=$OBJEXT
1958 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1959 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1960 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 cat >conftest.$ac_ext <<_ACEOF
1964 /* confdefs.h. */
1965 _ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1969
1970 int
1971 main ()
1972 {
1973 #ifndef __GNUC__
1974 choke me
1975 #endif
1976
1977 ;
1978 return 0;
1979 }
1980 _ACEOF
1981 rm -f conftest.$ac_objext
1982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1983 (eval $ac_compile) 2>conftest.er1
1984 ac_status=$?
1985 grep -v '^ *+' conftest.er1 >conftest.err
1986 rm -f conftest.er1
1987 cat conftest.err >&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); } &&
1990 { ac_try='test -z "$ac_c_werror_flag"
1991 || test ! -s conftest.err'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; } &&
1997 { ac_try='test -s conftest.$ac_objext'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 ac_compiler_gnu=yes
2004 else
2005 echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_compiler_gnu=no
2009 fi
2010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2012
2013 fi
2014 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2016 GCC=`test $ac_compiler_gnu = yes && echo yes`
2017 ac_test_CFLAGS=${CFLAGS+set}
2018 ac_save_CFLAGS=$CFLAGS
2019 CFLAGS="-g"
2020 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2021 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_g+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h. */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2031
2032 int
2033 main ()
2034 {
2035
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>conftest.er1
2043 ac_status=$?
2044 grep -v '^ *+' conftest.er1 >conftest.err
2045 rm -f conftest.er1
2046 cat conftest.err >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -z "$ac_c_werror_flag"
2050 || test ! -s conftest.err'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 (eval $ac_try) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2062 ac_cv_prog_cc_g=yes
2063 else
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 ac_cv_prog_cc_g=no
2068 fi
2069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2072 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2073 if test "$ac_test_CFLAGS" = set; then
2074 CFLAGS=$ac_save_CFLAGS
2075 elif test $ac_cv_prog_cc_g = yes; then
2076 if test "$GCC" = yes; then
2077 CFLAGS="-g -O2"
2078 else
2079 CFLAGS="-g"
2080 fi
2081 else
2082 if test "$GCC" = yes; then
2083 CFLAGS="-O2"
2084 else
2085 CFLAGS=
2086 fi
2087 fi
2088 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 ac_cv_prog_cc_stdc=no
2094 ac_save_CC=$CC
2095 cat >conftest.$ac_ext <<_ACEOF
2096 /* confdefs.h. */
2097 _ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2101 #include <stdarg.h>
2102 #include <stdio.h>
2103 #include <sys/types.h>
2104 #include <sys/stat.h>
2105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2106 struct buf { int x; };
2107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2108 static char *e (p, i)
2109 char **p;
2110 int i;
2111 {
2112 return p[i];
2113 }
2114 static char *f (char * (*g) (char **, int), char **p, ...)
2115 {
2116 char *s;
2117 va_list v;
2118 va_start (v,p);
2119 s = g (p, va_arg (v,int));
2120 va_end (v);
2121 return s;
2122 }
2123
2124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2125 function prototypes and stuff, but not '\xHH' hex character constants.
2126 These don't provoke an error unfortunately, instead are silently treated
2127 as 'x'. The following induces an error, until -std1 is added to get
2128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2129 array size at least. It's necessary to write '\x00'==0 to get something
2130 that's true only with -std1. */
2131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2132
2133 int test (int i, double x);
2134 struct s1 {int (*f) (int a);};
2135 struct s2 {int (*f) (double a);};
2136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2137 int argc;
2138 char **argv;
2139 int
2140 main ()
2141 {
2142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 # Don't try gcc -ansi; that turns off useful extensions and
2148 # breaks some systems' header files.
2149 # AIX -qlanglvl=ansi
2150 # Ultrix and OSF/1 -std1
2151 # HP-UX 10.20 and later -Ae
2152 # HP-UX older versions -Aa -D_HPUX_SOURCE
2153 # SVR4 -Xc -D__EXTENSIONS__
2154 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2155 do
2156 CC="$ac_save_CC $ac_arg"
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2160 ac_status=$?
2161 grep -v '^ *+' conftest.er1 >conftest.err
2162 rm -f conftest.er1
2163 cat conftest.err >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc=$ac_arg
2180 break
2181 else
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 fi
2186 rm -f conftest.err conftest.$ac_objext
2187 done
2188 rm -f conftest.$ac_ext conftest.$ac_objext
2189 CC=$ac_save_CC
2190
2191 fi
2192
2193 case "x$ac_cv_prog_cc_stdc" in
2194 x|xno)
2195 echo "$as_me:$LINENO: result: none needed" >&5
2196 echo "${ECHO_T}none needed" >&6 ;;
2197 *)
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2200 CC="$CC $ac_cv_prog_cc_stdc" ;;
2201 esac
2202
2203 # Some people use a C++ compiler to compile C. Since we use `exit',
2204 # in C++ we need to declare it. In case someone uses the same compiler
2205 # for both compiling C and C++ we need to have the C++ compiler decide
2206 # the declaration of exit, since it's the most demanding environment.
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #ifndef __cplusplus
2209 choke me
2210 #endif
2211 _ACEOF
2212 rm -f conftest.$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 for ac_declaration in \
2235 '' \
2236 'extern "C" void std::exit (int) throw (); using std::exit;' \
2237 'extern "C" void std::exit (int); using std::exit;' \
2238 'extern "C" void exit (int) throw ();' \
2239 'extern "C" void exit (int);' \
2240 'void exit (int);'
2241 do
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h. */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2248 $ac_declaration
2249 #include <stdlib.h>
2250 int
2251 main ()
2252 {
2253 exit (42);
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2261 ac_status=$?
2262 grep -v '^ *+' conftest.er1 >conftest.err
2263 rm -f conftest.er1
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 :
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 continue
2286 fi
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2294 $ac_declaration
2295 int
2296 main ()
2297 {
2298 exit (42);
2299 ;
2300 return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2306 ac_status=$?
2307 grep -v '^ *+' conftest.er1 >conftest.err
2308 rm -f conftest.er1
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 break
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 fi
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332 done
2333 rm -f conftest*
2334 if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2338 fi
2339
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define _GNU_SOURCE 1
2355 _ACEOF
2356
2357
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2365 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2366 # On Suns, sometimes $CPP names a directory.
2367 if test -n "$CPP" && test -d "$CPP"; then
2368 CPP=
2369 fi
2370 if test -z "$CPP"; then
2371 if test "${ac_cv_prog_CPP+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 # Double quotes because CPP needs to be expanded
2375 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2376 do
2377 ac_preproc_ok=false
2378 for ac_c_preproc_warn_flag in '' yes
2379 do
2380 # Use a header file that comes with gcc, so configuring glibc
2381 # with a fresh cross-compiler works.
2382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2383 # <limits.h> exists even on freestanding compilers.
2384 # On the NeXT, cc -E runs the code through the compiler's parser,
2385 # not just through cpp. "Syntax error" is here to catch this case.
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h. */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2392 #ifdef __STDC__
2393 # include <limits.h>
2394 #else
2395 # include <assert.h>
2396 #endif
2397 Syntax error
2398 _ACEOF
2399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } >/dev/null; then
2407 if test -s conftest.err; then
2408 ac_cpp_err=$ac_c_preproc_warn_flag
2409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2410 else
2411 ac_cpp_err=
2412 fi
2413 else
2414 ac_cpp_err=yes
2415 fi
2416 if test -z "$ac_cpp_err"; then
2417 :
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 # Broken: fails on valid input.
2423 continue
2424 fi
2425 rm -f conftest.err conftest.$ac_ext
2426
2427 # OK, works on sane cases. Now check whether non-existent headers
2428 # can be detected and how.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 #include <ac_nonexistent.h>
2436 _ACEOF
2437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } >/dev/null; then
2445 if test -s conftest.err; then
2446 ac_cpp_err=$ac_c_preproc_warn_flag
2447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2448 else
2449 ac_cpp_err=
2450 fi
2451 else
2452 ac_cpp_err=yes
2453 fi
2454 if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2456 continue
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 # Passes both tests.
2462 ac_preproc_ok=:
2463 break
2464 fi
2465 rm -f conftest.err conftest.$ac_ext
2466
2467 done
2468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2469 rm -f conftest.err conftest.$ac_ext
2470 if $ac_preproc_ok; then
2471 break
2472 fi
2473
2474 done
2475 ac_cv_prog_CPP=$CPP
2476
2477 fi
2478 CPP=$ac_cv_prog_CPP
2479 else
2480 ac_cv_prog_CPP=$CPP
2481 fi
2482 echo "$as_me:$LINENO: result: $CPP" >&5
2483 echo "${ECHO_T}$CPP" >&6
2484 ac_preproc_ok=false
2485 for ac_c_preproc_warn_flag in '' yes
2486 do
2487 # Use a header file that comes with gcc, so configuring glibc
2488 # with a fresh cross-compiler works.
2489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2490 # <limits.h> exists even on freestanding compilers.
2491 # On the NeXT, cc -E runs the code through the compiler's parser,
2492 # not just through cpp. "Syntax error" is here to catch this case.
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h. */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2499 #ifdef __STDC__
2500 # include <limits.h>
2501 #else
2502 # include <assert.h>
2503 #endif
2504 Syntax error
2505 _ACEOF
2506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } >/dev/null; then
2514 if test -s conftest.err; then
2515 ac_cpp_err=$ac_c_preproc_warn_flag
2516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2517 else
2518 ac_cpp_err=
2519 fi
2520 else
2521 ac_cpp_err=yes
2522 fi
2523 if test -z "$ac_cpp_err"; then
2524 :
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 # Broken: fails on valid input.
2530 continue
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533
2534 # OK, works on sane cases. Now check whether non-existent headers
2535 # can be detected and how.
2536 cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h. */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2542 #include <ac_nonexistent.h>
2543 _ACEOF
2544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } >/dev/null; then
2552 if test -s conftest.err; then
2553 ac_cpp_err=$ac_c_preproc_warn_flag
2554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2555 else
2556 ac_cpp_err=
2557 fi
2558 else
2559 ac_cpp_err=yes
2560 fi
2561 if test -z "$ac_cpp_err"; then
2562 # Broken: success on invalid input.
2563 continue
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 # Passes both tests.
2569 ac_preproc_ok=:
2570 break
2571 fi
2572 rm -f conftest.err conftest.$ac_ext
2573
2574 done
2575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2576 rm -f conftest.err conftest.$ac_ext
2577 if $ac_preproc_ok; then
2578 :
2579 else
2580 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2581 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2585 See \`config.log' for more details." >&2;}
2586 { (exit 1); exit 1; }; }; }
2587 fi
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596 echo "$as_me:$LINENO: checking for egrep" >&5
2597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2598 if test "${ac_cv_prog_egrep+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2602 then ac_cv_prog_egrep='grep -E'
2603 else ac_cv_prog_egrep='egrep'
2604 fi
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2607 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2608 EGREP=$ac_cv_prog_egrep
2609
2610
2611
2612 echo "$as_me:$LINENO: checking for AIX" >&5
2613 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620 #ifdef _AIX
2621 yes
2622 #endif
2623
2624 _ACEOF
2625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2626 $EGREP "yes" >/dev/null 2>&1; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2629 cat >>confdefs.h <<\_ACEOF
2630 #define _ALL_SOURCE 1
2631 _ACEOF
2632
2633 else
2634 echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2636 fi
2637 rm -f conftest*
2638
2639
2640 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2641 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2642 if test "${ac_cv_search_strerror+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 ac_func_search_save_LIBS=$LIBS
2646 ac_cv_search_strerror=no
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 #ifdef __cplusplus
2656 extern "C"
2657 #endif
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660 char strerror ();
2661 int
2662 main ()
2663 {
2664 strerror ();
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext conftest$ac_exeext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_search_strerror="none required"
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 fi
2697 rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 if test "$ac_cv_search_strerror" = no; then
2700 for ac_lib in cposix; do
2701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2715 char strerror ();
2716 int
2717 main ()
2718 {
2719 strerror ();
2720 ;
2721 return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext conftest$ac_exeext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2726 (eval $ac_link) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest$ac_exeext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_search_strerror="-l$ac_lib"
2747 break
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext \
2754 conftest$ac_exeext conftest.$ac_ext
2755 done
2756 fi
2757 LIBS=$ac_func_search_save_LIBS
2758 fi
2759 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2760 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2761 if test "$ac_cv_search_strerror" != no; then
2762 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2763
2764 fi
2765
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_RANLIB+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$RANLIB"; then
2775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790
2791 fi
2792 fi
2793 RANLIB=$ac_cv_prog_RANLIB
2794 if test -n "$RANLIB"; then
2795 echo "$as_me:$LINENO: result: $RANLIB" >&5
2796 echo "${ECHO_T}$RANLIB" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2800 fi
2801
2802 fi
2803 if test -z "$ac_cv_prog_RANLIB"; then
2804 ac_ct_RANLIB=$RANLIB
2805 # Extract the first word of "ranlib", so it can be a program name with args.
2806 set dummy ranlib; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 if test -n "$ac_ct_RANLIB"; then
2813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_ac_ct_RANLIB="ranlib"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828
2829 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2830 fi
2831 fi
2832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2833 if test -n "$ac_ct_RANLIB"; then
2834 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2835 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841 RANLIB=$ac_ct_RANLIB
2842 else
2843 RANLIB="$ac_cv_prog_RANLIB"
2844 fi
2845
2846 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2848 if test "${ac_cv_header_stdc+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 #include <stdlib.h>
2858 #include <stdarg.h>
2859 #include <string.h>
2860 #include <float.h>
2861
2862 int
2863 main ()
2864 {
2865
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_header_stdc=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ac_cv_header_stdc=no
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900
2901 if test $ac_cv_header_stdc = yes; then
2902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #include <string.h>
2910
2911 _ACEOF
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 $EGREP "memchr" >/dev/null 2>&1; then
2914 :
2915 else
2916 ac_cv_header_stdc=no
2917 fi
2918 rm -f conftest*
2919
2920 fi
2921
2922 if test $ac_cv_header_stdc = yes; then
2923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h. */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2930 #include <stdlib.h>
2931
2932 _ACEOF
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934 $EGREP "free" >/dev/null 2>&1; then
2935 :
2936 else
2937 ac_cv_header_stdc=no
2938 fi
2939 rm -f conftest*
2940
2941 fi
2942
2943 if test $ac_cv_header_stdc = yes; then
2944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2945 if test "$cross_compiling" = yes; then
2946 :
2947 else
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954 #include <ctype.h>
2955 #if ((' ' & 0x0FF) == 0x020)
2956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2958 #else
2959 # define ISLOWER(c) \
2960 (('a' <= (c) && (c) <= 'i') \
2961 || ('j' <= (c) && (c) <= 'r') \
2962 || ('s' <= (c) && (c) <= 'z'))
2963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2964 #endif
2965
2966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2967 int
2968 main ()
2969 {
2970 int i;
2971 for (i = 0; i < 256; i++)
2972 if (XOR (islower (i), ISLOWER (i))
2973 || toupper (i) != TOUPPER (i))
2974 exit(2);
2975 exit (0);
2976 }
2977 _ACEOF
2978 rm -f conftest$ac_exeext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980 (eval $ac_link) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 :
2990 else
2991 echo "$as_me: program exited with status $ac_status" >&5
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ( exit $ac_status )
2996 ac_cv_header_stdc=no
2997 fi
2998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2999 fi
3000 fi
3001 fi
3002 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3003 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3004 if test $ac_cv_header_stdc = yes; then
3005
3006 cat >>confdefs.h <<\_ACEOF
3007 #define STDC_HEADERS 1
3008 _ACEOF
3009
3010 fi
3011
3012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3023 inttypes.h stdint.h unistd.h
3024 do
3025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3026 echo "$as_me:$LINENO: checking for $ac_header" >&5
3027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 $ac_includes_default
3038
3039 #include <$ac_header>
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 eval "$as_ac_Header=yes"
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 eval "$as_ac_Header=no"
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 fi
3072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3075 cat >>confdefs.h <<_ACEOF
3076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3077 _ACEOF
3078
3079 fi
3080
3081 done
3082
3083
3084
3085 if test "${ac_cv_header_minix_config_h+set}" = set; then
3086 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3087 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3088 if test "${ac_cv_header_minix_config_h+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 fi
3091 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3092 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3093 else
3094 # Is the header compilable?
3095 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3096 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 $ac_includes_default
3104 #include <minix/config.h>
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108 (eval $ac_compile) 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag"
3116 || test ! -s conftest.err'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_header_compiler=yes
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 ac_header_compiler=no
3134 fi
3135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3137 echo "${ECHO_T}$ac_header_compiler" >&6
3138
3139 # Is the header present?
3140 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3141 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #include <minix/config.h>
3149 _ACEOF
3150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev/null; then
3158 if test -s conftest.err; then
3159 ac_cpp_err=$ac_c_preproc_warn_flag
3160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3161 else
3162 ac_cpp_err=
3163 fi
3164 else
3165 ac_cpp_err=yes
3166 fi
3167 if test -z "$ac_cpp_err"; then
3168 ac_header_preproc=yes
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_header_preproc=no
3174 fi
3175 rm -f conftest.err conftest.$ac_ext
3176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3177 echo "${ECHO_T}$ac_header_preproc" >&6
3178
3179 # So? What about this header?
3180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3181 yes:no: )
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3183 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3185 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3186 ac_header_preproc=yes
3187 ;;
3188 no:yes:* )
3189 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3190 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3191 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3192 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3193 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3194 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3195 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3196 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3197 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3198 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3200 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3201 (
3202 cat <<\_ASBOX
3203 ## ------------------------------------------ ##
3204 ## Report this to the AC_PACKAGE_NAME lists. ##
3205 ## ------------------------------------------ ##
3206 _ASBOX
3207 ) |
3208 sed "s/^/$as_me: WARNING: /" >&2
3209 ;;
3210 esac
3211 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3212 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3213 if test "${ac_cv_header_minix_config_h+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 ac_cv_header_minix_config_h=$ac_header_preproc
3217 fi
3218 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3219 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3220
3221 fi
3222 if test $ac_cv_header_minix_config_h = yes; then
3223 MINIX=yes
3224 else
3225 MINIX=
3226 fi
3227
3228
3229 if test "$MINIX" = yes; then
3230
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _POSIX_SOURCE 1
3233 _ACEOF
3234
3235
3236 cat >>confdefs.h <<\_ACEOF
3237 #define _POSIX_1_SOURCE 2
3238 _ACEOF
3239
3240
3241 cat >>confdefs.h <<\_ACEOF
3242 #define _MINIX 1
3243 _ACEOF
3244
3245 fi
3246
3247
3248
3249 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3250 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3251 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 # define __EXTENSIONS__ 1
3262 $ac_includes_default
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_safe_to_define___extensions__=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_safe_to_define___extensions__=no
3299 fi
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301 fi
3302 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3303 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3304 test $ac_cv_safe_to_define___extensions__ = yes &&
3305 cat >>confdefs.h <<\_ACEOF
3306 #define __EXTENSIONS__ 1
3307 _ACEOF
3308
3309 cat >>confdefs.h <<\_ACEOF
3310 #define _ALL_SOURCE 1
3311 _ACEOF
3312
3313 cat >>confdefs.h <<\_ACEOF
3314 #define _GNU_SOURCE 1
3315 _ACEOF
3316
3317 cat >>confdefs.h <<\_ACEOF
3318 #define _POSIX_PTHREAD_SEMANTICS 1
3319 _ACEOF
3320
3321 cat >>confdefs.h <<\_ACEOF
3322 #define _TANDEM_SOURCE 1
3323 _ACEOF
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3335 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3336 if test "${am_cv_prog_cc_stdc+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 am_cv_prog_cc_stdc=no
3340 ac_save_CC="$CC"
3341 # Don't try gcc -ansi; that turns off useful extensions and
3342 # breaks some systems' header files.
3343 # AIX -qlanglvl=ansi
3344 # Ultrix and OSF/1 -std1
3345 # HP-UX 10.20 and later -Ae
3346 # HP-UX older versions -Aa -D_HPUX_SOURCE
3347 # SVR4 -Xc -D__EXTENSIONS__
3348 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3349 do
3350 CC="$ac_save_CC $ac_arg"
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 #include <stdarg.h>
3358 #include <stdio.h>
3359 #include <sys/types.h>
3360 #include <sys/stat.h>
3361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3362 struct buf { int x; };
3363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3364 static char *e (p, i)
3365 char **p;
3366 int i;
3367 {
3368 return p[i];
3369 }
3370 static char *f (char * (*g) (char **, int), char **p, ...)
3371 {
3372 char *s;
3373 va_list v;
3374 va_start (v,p);
3375 s = g (p, va_arg (v,int));
3376 va_end (v);
3377 return s;
3378 }
3379 int test (int i, double x);
3380 struct s1 {int (*f) (int a);};
3381 struct s2 {int (*f) (double a);};
3382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3383 int argc;
3384 char **argv;
3385
3386 int
3387 main ()
3388 {
3389
3390 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 am_cv_prog_cc_stdc="$ac_arg"; break
3419 else
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 fi
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 done
3426 CC="$ac_save_CC"
3427
3428 fi
3429
3430 if test -z "$am_cv_prog_cc_stdc"; then
3431 echo "$as_me:$LINENO: result: none needed" >&5
3432 echo "${ECHO_T}none needed" >&6
3433 else
3434 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3435 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3436 fi
3437 case "x$am_cv_prog_cc_stdc" in
3438 x|xno) ;;
3439 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3440 esac
3441
3442
3443 ac_aux_dir=
3444 for ac_dir in .. $srcdir/..; do
3445 if test -f $ac_dir/install-sh; then
3446 ac_aux_dir=$ac_dir
3447 ac_install_sh="$ac_aux_dir/install-sh -c"
3448 break
3449 elif test -f $ac_dir/install.sh; then
3450 ac_aux_dir=$ac_dir
3451 ac_install_sh="$ac_aux_dir/install.sh -c"
3452 break
3453 elif test -f $ac_dir/shtool; then
3454 ac_aux_dir=$ac_dir
3455 ac_install_sh="$ac_aux_dir/shtool install -c"
3456 break
3457 fi
3458 done
3459 if test -z "$ac_aux_dir"; then
3460 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3461 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3462 { (exit 1); exit 1; }; }
3463 fi
3464 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3465 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3466 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3467
3468 # Make sure we can run config.sub.
3469 $ac_config_sub sun4 >/dev/null 2>&1 ||
3470 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3471 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3472 { (exit 1); exit 1; }; }
3473
3474 echo "$as_me:$LINENO: checking build system type" >&5
3475 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3476 if test "${ac_cv_build+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 ac_cv_build_alias=$build_alias
3480 test -z "$ac_cv_build_alias" &&
3481 ac_cv_build_alias=`$ac_config_guess`
3482 test -z "$ac_cv_build_alias" &&
3483 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3484 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3485 { (exit 1); exit 1; }; }
3486 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3487 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3488 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3489 { (exit 1); exit 1; }; }
3490
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3493 echo "${ECHO_T}$ac_cv_build" >&6
3494 build=$ac_cv_build
3495 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3498
3499
3500 echo "$as_me:$LINENO: checking host system type" >&5
3501 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3502 if test "${ac_cv_host+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505 ac_cv_host_alias=$host_alias
3506 test -z "$ac_cv_host_alias" &&
3507 ac_cv_host_alias=$ac_cv_build_alias
3508 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3509 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3510 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3511 { (exit 1); exit 1; }; }
3512
3513 fi
3514 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3515 echo "${ECHO_T}$ac_cv_host" >&6
3516 host=$ac_cv_host
3517 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3518 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3519 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3520
3521
3522 echo "$as_me:$LINENO: checking target system type" >&5
3523 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3524 if test "${ac_cv_target+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 ac_cv_target_alias=$target_alias
3528 test "x$ac_cv_target_alias" = "x" &&
3529 ac_cv_target_alias=$ac_cv_host_alias
3530 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3532 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3533 { (exit 1); exit 1; }; }
3534
3535 fi
3536 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3537 echo "${ECHO_T}$ac_cv_target" >&6
3538 target=$ac_cv_target
3539 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3540 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3541 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3542
3543
3544 # The aliases save the names the user supplied, while $host etc.
3545 # will get canonicalized.
3546 test -n "$target_alias" &&
3547 test "$program_prefix$program_suffix$program_transform_name" = \
3548 NONENONEs,x,x, &&
3549 program_prefix=${target_alias}-
3550
3551 # Dependency checking.
3552 rm -rf .tst 2>/dev/null
3553 mkdir .tst 2>/dev/null
3554 if test -d .tst; then
3555 am__leading_dot=.
3556 else
3557 am__leading_dot=_
3558 fi
3559 rmdir .tst 2>/dev/null
3560
3561 DEPDIR="${am__leading_dot}deps"
3562
3563 ac_config_commands="$ac_config_commands depdir"
3564
3565
3566 depcc="$CC" am_compiler_list=
3567
3568 am_depcomp=$ac_aux_dir/depcomp
3569 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3571 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -f "$am_depcomp"; then
3575 # We make a subdir and do the tests there. Otherwise we can end up
3576 # making bogus files that we don't know about and never remove. For
3577 # instance it was reported that on HP-UX the gcc test will end up
3578 # making a dummy file named `D' -- because `-MD' means `put the output
3579 # in D'.
3580 mkdir conftest.dir
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3584 cd conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3590 # directory.
3591 mkdir sub
3592
3593 am_cv_CC_dependencies_compiler_type=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596 fi
3597 for depmode in $am_compiler_list; do
3598 if test $depmode = none; then break; fi
3599
3600 echo "$as_me:$LINENO: trying $depmode" >&5
3601 # Setup a source with many dependencies, because some compilers
3602 # like to wrap large dependency lists on column 80 (with \), and
3603 # we should not choose a depcomp mode which is confused by this.
3604 #
3605 # We need to recreate these files for each test, as the compiler may
3606 # overwrite some of them when testing with obscure command lines.
3607 # This happens at least with the AIX C compiler.
3608 : > sub/conftest.c
3609 for i in 1 2 3 4 5 6; do
3610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3612 # Solaris 8's {/usr,}/bin/sh.
3613 touch sub/conftst$i.h
3614 done
3615 echo "include sub/conftest.Po" > confmf
3616
3617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618 # mode. It turns out that the SunPro C++ compiler does not properly
3619 # handle `-M -o', and we need to detect this.
3620 depcmd="depmode=$depmode \
3621 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3624 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3625 if env $depcmd > conftest.err 2>&1 &&
3626 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3627 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3628 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3629 # icc doesn't choke on unknown options, it will just issue warnings
3630 # or remarks (even with -Werror). So we grep stderr for any message
3631 # that says an option was ignored or not supported.
3632 # When given -MP, icc 7.0 and 7.1 complain thusly:
3633 # icc: Command line warning: ignoring option '-M'; no argument required
3634 # The diagnosis changed in icc 8.0:
3635 # icc: Command line remark: option '-MP' not supported
3636 if (grep 'ignoring option' conftest.err ||
3637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3638 am_cv_CC_dependencies_compiler_type=$depmode
3639 echo "$as_me:$LINENO: success" >&5
3640 break
3641 fi
3642 fi
3643 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3644 sed -e 's/^/| /' < conftest.err >&5
3645 done
3646
3647 cd ..
3648 rm -rf conftest.dir
3649 else
3650 am_cv_CC_dependencies_compiler_type=none
3651 fi
3652
3653 fi
3654 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3656 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3657 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3658 echo "$as_me: error: no usable dependency style found" >&2;}
3659 { (exit 1); exit 1; }; }
3660 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3661
3662 fi
3663
3664
3665 # Check for the 'make' the user wants to use.
3666 for ac_prog in make
3667 do
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy $ac_prog; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_prog_MAKE+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 if test -n "$MAKE"; then
3676 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_MAKE="$ac_prog"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691
3692 fi
3693 fi
3694 MAKE=$ac_cv_prog_MAKE
3695 if test -n "$MAKE"; then
3696 echo "$as_me:$LINENO: result: $MAKE" >&5
3697 echo "${ECHO_T}$MAKE" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702
3703 test -n "$MAKE" && break
3704 done
3705
3706 MAKE_IS_GNU=
3707 case "`$MAKE --version 2>&1 | sed 1q`" in
3708 *GNU*)
3709 MAKE_IS_GNU=yes
3710 ;;
3711 esac
3712
3713
3714 if test "$MAKE_IS_GNU" = yes; then
3715 GMAKE_TRUE=
3716 GMAKE_FALSE='#'
3717 else
3718 GMAKE_TRUE='#'
3719 GMAKE_FALSE=
3720 fi
3721
3722 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3723 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3724 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3725 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 cat >conftest.make <<\_ACEOF
3729 all:
3730 @echo 'ac_maketemp="$(MAKE)"'
3731 _ACEOF
3732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3733 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3734 if test -n "$ac_maketemp"; then
3735 eval ac_cv_prog_make_${ac_make}_set=yes
3736 else
3737 eval ac_cv_prog_make_${ac_make}_set=no
3738 fi
3739 rm -f conftest.make
3740 fi
3741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6
3744 SET_MAKE=
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 SET_MAKE="MAKE=${MAKE-make}"
3749 fi
3750
3751
3752
3753 CONFIG_OBS=
3754 CONFIG_DEPS=
3755 CONFIG_SRCS=
3756 ENABLE_CFLAGS=
3757
3758 CONFIG_ALL=
3759 CONFIG_CLEAN=
3760 CONFIG_INSTALL=
3761 CONFIG_UNINSTALL=
3762
3763 # If we haven't got the data from the intl directory,
3764 # assume NLS is disabled.
3765 USE_NLS=no
3766 LIBINTL=
3767 LIBINTL_DEP=
3768 INCINTL=
3769 XGETTEXT=
3770 GMSGFMT=
3771 POSUB=
3772
3773 if test -f ../intl/config.intl; then
3774 . ../intl/config.intl
3775 fi
3776 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3777 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3778 if test x"$USE_NLS" != xyes; then
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 else
3782 echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3784
3785 cat >>confdefs.h <<\_ACEOF
3786 #define ENABLE_NLS 1
3787 _ACEOF
3788
3789
3790 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3791 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3792 # Look for .po and .gmo files in the source directory.
3793 CATALOGS=
3794 XLINGUAS=
3795 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3796 # If there aren't any .gmo files the shell will give us the
3797 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3798 # weeded out.
3799 case "$cat" in *\**)
3800 continue;;
3801 esac
3802 # The quadruple backslash is collapsed to a double backslash
3803 # by the backticks, then collapsed again by the double quotes,
3804 # leaving us with one backslash in the sed expression (right
3805 # before the dot that mustn't act as a wildcard).
3806 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3807 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3808 # The user is allowed to set LINGUAS to a list of languages to
3809 # install catalogs for. If it's empty that means "all of them."
3810 if test "x$LINGUAS" = x; then
3811 CATALOGS="$CATALOGS $cat"
3812 XLINGUAS="$XLINGUAS $lang"
3813 else
3814 case "$LINGUAS" in *$lang*)
3815 CATALOGS="$CATALOGS $cat"
3816 XLINGUAS="$XLINGUAS $lang"
3817 ;;
3818 esac
3819 fi
3820 done
3821 LINGUAS="$XLINGUAS"
3822 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3823 echo "${ECHO_T}$LINGUAS" >&6
3824
3825
3826 DATADIRNAME=share
3827
3828 INSTOBJEXT=.mo
3829
3830 GENCAT=gencat
3831
3832 CATOBJEXT=.gmo
3833
3834 fi
3835
3836 localedir='${datadir}/locale'
3837
3838
3839 if test x"$USE_NLS" = xyes; then
3840 CONFIG_ALL="$CONFIG_ALL all-po"
3841 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3842 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3843 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3844 fi
3845
3846
3847 GNULIB_MEMMEM=0;
3848 GNULIB_MEMPCPY=0;
3849 GNULIB_MEMRCHR=0;
3850 GNULIB_STPCPY=0;
3851 GNULIB_STPNCPY=0;
3852 GNULIB_STRCHRNUL=0;
3853 GNULIB_STRDUP=0;
3854 GNULIB_STRNDUP=0;
3855 GNULIB_STRNLEN=0;
3856 GNULIB_STRPBRK=0;
3857 GNULIB_STRSEP=0;
3858 GNULIB_STRSTR=0;
3859 GNULIB_STRCASESTR=0;
3860 GNULIB_STRTOK_R=0;
3861 GNULIB_MBSLEN=0;
3862 GNULIB_MBSNLEN=0;
3863 GNULIB_MBSCHR=0;
3864 GNULIB_MBSRCHR=0;
3865 GNULIB_MBSSTR=0;
3866 GNULIB_MBSCASECMP=0;
3867 GNULIB_MBSNCASECMP=0;
3868 GNULIB_MBSPCASECMP=0;
3869 GNULIB_MBSCASESTR=0;
3870 GNULIB_MBSCSPN=0;
3871 GNULIB_MBSPBRK=0;
3872 GNULIB_MBSSPN=0;
3873 GNULIB_MBSSEP=0;
3874 GNULIB_MBSTOK_R=0;
3875 GNULIB_STRERROR=0;
3876 GNULIB_STRSIGNAL=0;
3877 HAVE_DECL_MEMMEM=1;
3878 HAVE_MEMPCPY=1;
3879 HAVE_DECL_MEMRCHR=1;
3880 HAVE_STPCPY=1;
3881 HAVE_STPNCPY=1;
3882 HAVE_STRCHRNUL=1;
3883 HAVE_DECL_STRDUP=1;
3884 HAVE_STRNDUP=1;
3885 HAVE_DECL_STRNDUP=1;
3886 HAVE_DECL_STRNLEN=1;
3887 HAVE_STRPBRK=1;
3888 HAVE_STRSEP=1;
3889 HAVE_STRCASESTR=1;
3890 HAVE_DECL_STRTOK_R=1;
3891 HAVE_DECL_STRERROR=1;
3892 HAVE_DECL_STRSIGNAL=1;
3893 REPLACE_STRERROR=0;
3894 REPLACE_STRSIGNAL=0;
3895 REPLACE_MEMMEM=0;
3896 REPLACE_STRCASESTR=0;
3897 REPLACE_STRSTR=0;
3898
3899
3900 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3901 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3902 if test "${ac_cv_have_decl_memmem+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 $ac_includes_default
3912 int
3913 main ()
3914 {
3915 #ifndef memmem
3916 char *p = (char *) memmem;
3917 #endif
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_have_decl_memmem=yes
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ac_cv_have_decl_memmem=no
3951 fi
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3955 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3956 if test $ac_cv_have_decl_memmem = yes; then
3957
3958 cat >>confdefs.h <<_ACEOF
3959 #define HAVE_DECL_MEMMEM 1
3960 _ACEOF
3961
3962
3963 else
3964 cat >>confdefs.h <<_ACEOF
3965 #define HAVE_DECL_MEMMEM 0
3966 _ACEOF
3967
3968
3969 fi
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985 for ac_func in memmem
3986 do
3987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3988 echo "$as_me:$LINENO: checking for $ac_func" >&5
3989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_var+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4001 #define $ac_func innocuous_$ac_func
4002
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func (); below.
4005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 <limits.h> exists even on freestanding compilers. */
4007
4008 #ifdef __STDC__
4009 # include <limits.h>
4010 #else
4011 # include <assert.h>
4012 #endif
4013
4014 #undef $ac_func
4015
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 #ifdef __cplusplus
4018 extern "C"
4019 {
4020 #endif
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4023 char $ac_func ();
4024 /* The GNU C library defines this for functions which it implements
4025 to always fail with ENOSYS. Some functions are actually named
4026 something starting with __ and the normal name is an alias. */
4027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4028 choke me
4029 #else
4030 char (*f) () = $ac_func;
4031 #endif
4032 #ifdef __cplusplus
4033 }
4034 #endif
4035
4036 int
4037 main ()
4038 {
4039 return f != $ac_func;
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext conftest$ac_exeext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest$ac_exeext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 eval "$as_ac_var=yes"
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 eval "$as_ac_var=no"
4072 fi
4073 rm -f conftest.err conftest.$ac_objext \
4074 conftest$ac_exeext conftest.$ac_ext
4075 fi
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4078 if test `eval echo '${'$as_ac_var'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 else
4084
4085 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4086
4087 fi
4088 done
4089
4090
4091
4092 :
4093
4094
4095
4096
4097
4098 if test $ac_cv_have_decl_memmem = no; then
4099 HAVE_DECL_MEMMEM=0
4100 fi
4101 :
4102
4103
4104 echo "$as_me:$LINENO: checking for long long int" >&5
4105 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4106 if test "${ac_cv_type_long_long_int+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 cat >conftest.$ac_ext <<_ACEOF
4110
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 /* For now, do not test the preprocessor; as of 2007 there are too many
4117 implementations with broken preprocessors. Perhaps this can
4118 be revisited in 2012. In the meantime, code should not expect
4119 #if to work with literals wider than 32 bits. */
4120 /* Test literals. */
4121 long long int ll = 9223372036854775807ll;
4122 long long int nll = -9223372036854775807LL;
4123 unsigned long long int ull = 18446744073709551615ULL;
4124 /* Test constant expressions. */
4125 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4126 ? 1 : -1)];
4127 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4128 ? 1 : -1)];
4129 int i = 63;
4130 int
4131 main ()
4132 {
4133 /* Test availability of runtime routines for shift and division. */
4134 long long int llmax = 9223372036854775807ll;
4135 unsigned long long int ullmax = 18446744073709551615ull;
4136 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4137 | (llmax / ll) | (llmax % ll)
4138 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4139 | (ullmax / ull) | (ullmax % ull));
4140 ;
4141 return 0;
4142 }
4143
4144 _ACEOF
4145 rm -f conftest.$ac_objext conftest$ac_exeext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147 (eval $ac_link) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest$ac_exeext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 if test "$cross_compiling" = yes; then
4168 ac_cv_type_long_long_int=yes
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 #include <limits.h>
4177 #ifndef LLONG_MAX
4178 # define HALF \
4179 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4180 # define LLONG_MAX (HALF - 1 + HALF)
4181 #endif
4182 int
4183 main ()
4184 {
4185 long long int n = 1;
4186 int i;
4187 for (i = 0; ; i++)
4188 {
4189 long long int m = n << i;
4190 if (m >> i != n)
4191 return 1;
4192 if (LLONG_MAX / 2 < m)
4193 break;
4194 }
4195 return 0;
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_type_long_long_int=yes
4212 else
4213 echo "$as_me: program exited with status $ac_status" >&5
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ( exit $ac_status )
4218 ac_cv_type_long_long_int=no
4219 fi
4220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4221 fi
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 ac_cv_type_long_long_int=no
4227 fi
4228 rm -f conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4230 fi
4231 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4232 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4233 if test $ac_cv_type_long_long_int = yes; then
4234
4235 cat >>confdefs.h <<\_ACEOF
4236 #define HAVE_LONG_LONG_INT 1
4237 _ACEOF
4238
4239 fi
4240
4241
4242 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4243 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4244 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 /* For now, do not test the preprocessor; as of 2007 there are too many
4255 implementations with broken preprocessors. Perhaps this can
4256 be revisited in 2012. In the meantime, code should not expect
4257 #if to work with literals wider than 32 bits. */
4258 /* Test literals. */
4259 long long int ll = 9223372036854775807ll;
4260 long long int nll = -9223372036854775807LL;
4261 unsigned long long int ull = 18446744073709551615ULL;
4262 /* Test constant expressions. */
4263 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4264 ? 1 : -1)];
4265 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4266 ? 1 : -1)];
4267 int i = 63;
4268 int
4269 main ()
4270 {
4271 /* Test availability of runtime routines for shift and division. */
4272 long long int llmax = 9223372036854775807ll;
4273 unsigned long long int ullmax = 18446744073709551615ull;
4274 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4275 | (llmax / ll) | (llmax % ll)
4276 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4277 | (ullmax / ull) | (ullmax % ull));
4278 ;
4279 return 0;
4280 }
4281
4282 _ACEOF
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest$ac_exeext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_type_unsigned_long_long_int=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_type_unsigned_long_long_int=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4314 fi
4315 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4316 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4317 if test $ac_cv_type_unsigned_long_long_int = yes; then
4318
4319 cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4321 _ACEOF
4322
4323 fi
4324
4325
4326
4327 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4328 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4329 if test "${gl_cv_have_include_next+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 rm -rf conftestd1 conftestd2
4333 mkdir conftestd1 conftestd2
4334 cat <<EOF > conftestd1/conftest.h
4335 #define DEFINED_IN_CONFTESTD1
4336 #include_next <conftest.h>
4337 #ifdef DEFINED_IN_CONFTESTD2
4338 int foo;
4339 #else
4340 #error "include_next doesn't work"
4341 #endif
4342 EOF
4343 cat <<EOF > conftestd2/conftest.h
4344 #ifndef DEFINED_IN_CONFTESTD1
4345 #error "include_next test doesn't work"
4346 #endif
4347 #define DEFINED_IN_CONFTESTD2
4348 EOF
4349 save_CPPFLAGS="$CPPFLAGS"
4350 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #include <conftest.h>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 gl_cv_have_include_next=yes
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 gl_cv_have_include_next=no
4382 fi
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384 CPPFLAGS="$save_CPPFLAGS"
4385 rm -rf conftestd1 conftestd2
4386
4387 fi
4388 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4389 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4390 if test $gl_cv_have_include_next = yes; then
4391
4392
4393 cat >>confdefs.h <<\_ACEOF
4394 #define HAVE_INCLUDE_NEXT 1
4395 _ACEOF
4396
4397
4398 INCLUDE_NEXT=include_next
4399 else
4400 INCLUDE_NEXT=include
4401 fi
4402
4403
4404
4405
4406
4407
4408
4409 for ac_header in $gl_header_list
4410 do
4411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4413 echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 fi
4418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 else
4421 # Is the header compilable?
4422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4431 #include <$ac_header>
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag"
4443 || test ! -s conftest.err'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; } &&
4449 { ac_try='test -s conftest.$ac_objext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_header_compiler=yes
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 ac_header_compiler=no
4461 fi
4462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4464 echo "${ECHO_T}$ac_header_compiler" >&6
4465
4466 # Is the header present?
4467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <$ac_header>
4476 _ACEOF
4477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev/null; then
4485 if test -s conftest.err; then
4486 ac_cpp_err=$ac_c_preproc_warn_flag
4487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4488 else
4489 ac_cpp_err=
4490 fi
4491 else
4492 ac_cpp_err=yes
4493 fi
4494 if test -z "$ac_cpp_err"; then
4495 ac_header_preproc=yes
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 ac_header_preproc=no
4501 fi
4502 rm -f conftest.err conftest.$ac_ext
4503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4504 echo "${ECHO_T}$ac_header_preproc" >&6
4505
4506 # So? What about this header?
4507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4508 yes:no: )
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4513 ac_header_preproc=yes
4514 ;;
4515 no:yes:* )
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4528 (
4529 cat <<\_ASBOX
4530 ## ------------------------------------------ ##
4531 ## Report this to the AC_PACKAGE_NAME lists. ##
4532 ## ------------------------------------------ ##
4533 _ASBOX
4534 ) |
4535 sed "s/^/$as_me: WARNING: /" >&2
4536 ;;
4537 esac
4538 echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 eval "$as_ac_Header=\$ac_header_preproc"
4544 fi
4545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4547
4548 fi
4549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550 cat >>confdefs.h <<_ACEOF
4551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552 _ACEOF
4553
4554 fi
4555
4556 done
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4570 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4571 if test "${ac_cv_c_restrict+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 ac_cv_c_restrict=no
4575 # The order here caters to the fact that C++ does not require restrict.
4576 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 typedef int * int_ptr;
4584 int foo (int_ptr $ac_kw ip) {
4585 return ip[0];
4586 }
4587 int
4588 main ()
4589 {
4590 int s[1];
4591 int * $ac_kw t = s;
4592 t[0] = 0;
4593 return foo(t)
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_restrict=$ac_kw
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 fi
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 test "$ac_cv_c_restrict" != no && break
4628 done
4629
4630 fi
4631 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4632 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4633
4634
4635 case $ac_cv_c_restrict in
4636 restrict) ;;
4637 no) cat >>confdefs.h <<\_ACEOF
4638 #define restrict
4639 _ACEOF
4640 ;;
4641 *) cat >>confdefs.h <<_ACEOF
4642 #define restrict $ac_cv_c_restrict
4643 _ACEOF
4644 ;;
4645 esac
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659 :
4660
4661
4662
4663
4664
4665
4666
4667 if test $gl_cv_have_include_next = yes; then
4668 gl_cv_next_string_h='<'string.h'>'
4669 else
4670 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4671 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4672 if test "${gl_cv_next_string_h+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675
4676 if test $ac_cv_header_string_h = yes; then
4677 cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #include <string.h>
4684
4685 _ACEOF
4686 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 sed -n '\#/string.h#{
4688 s#.*"\(.*/string.h\)".*#\1#
4689 s#^/[^/]#//&#
4690 p
4691 q
4692 }'`'"'
4693 else
4694 gl_cv_next_string_h='<'string.h'>'
4695 fi
4696
4697 fi
4698 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4699 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4700 fi
4701 NEXT_STRING_H=$gl_cv_next_string_h
4702
4703
4704
4705
4706
4707 GNULIB_WCWIDTH=0;
4708 HAVE_DECL_WCWIDTH=1;
4709 REPLACE_WCWIDTH=0;
4710 WCHAR_H=
4711
4712
4713
4714
4715
4716 if false; then
4717 GL_COND_LIBTOOL_TRUE=
4718 GL_COND_LIBTOOL_FALSE='#'
4719 else
4720 GL_COND_LIBTOOL_TRUE='#'
4721 GL_COND_LIBTOOL_FALSE=
4722 fi
4723
4724 gl_cond_libtool=false
4725 gl_libdeps=
4726 gl_ltlibdeps=
4727
4728
4729
4730 gl_source_base='gnulib'
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 for ac_func in memchr
4741 do
4742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4743 echo "$as_me:$LINENO: checking for $ac_func" >&5
4744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4745 if eval "test \"\${$as_ac_var+set}\" = set"; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4756 #define $ac_func innocuous_$ac_func
4757
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func (); below.
4760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 <limits.h> exists even on freestanding compilers. */
4762
4763 #ifdef __STDC__
4764 # include <limits.h>
4765 #else
4766 # include <assert.h>
4767 #endif
4768
4769 #undef $ac_func
4770
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 #ifdef __cplusplus
4773 extern "C"
4774 {
4775 #endif
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4778 char $ac_func ();
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783 choke me
4784 #else
4785 char (*f) () = $ac_func;
4786 #endif
4787 #ifdef __cplusplus
4788 }
4789 #endif
4790
4791 int
4792 main ()
4793 {
4794 return f != $ac_func;
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 eval "$as_ac_var=yes"
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 eval "$as_ac_var=no"
4827 fi
4828 rm -f conftest.err conftest.$ac_objext \
4829 conftest$ac_exeext conftest.$ac_ext
4830 fi
4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4833 if test `eval echo '${'$as_ac_var'}'` = yes; then
4834 cat >>confdefs.h <<_ACEOF
4835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4836 _ACEOF
4837
4838 else
4839
4840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4841
4842 fi
4843 done
4844
4845
4846 if test $ac_cv_func_memchr = no; then
4847
4848
4849 for ac_header in bp-sym.h
4850 do
4851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo "$as_me:$LINENO: checking for $ac_header" >&5
4854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 fi
4858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4860 else
4861 # Is the header compilable?
4862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 $ac_includes_default
4871 #include <$ac_header>
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_header_compiler=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 ac_header_compiler=no
4901 fi
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4904 echo "${ECHO_T}$ac_header_compiler" >&6
4905
4906 # Is the header present?
4907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <$ac_header>
4916 _ACEOF
4917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null; then
4925 if test -s conftest.err; then
4926 ac_cpp_err=$ac_c_preproc_warn_flag
4927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928 else
4929 ac_cpp_err=
4930 fi
4931 else
4932 ac_cpp_err=yes
4933 fi
4934 if test -z "$ac_cpp_err"; then
4935 ac_header_preproc=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_header_preproc=no
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4944 echo "${ECHO_T}$ac_header_preproc" >&6
4945
4946 # So? What about this header?
4947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4948 yes:no: )
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4953 ac_header_preproc=yes
4954 ;;
4955 no:yes:* )
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4968 (
4969 cat <<\_ASBOX
4970 ## ------------------------------------------ ##
4971 ## Report this to the AC_PACKAGE_NAME lists. ##
4972 ## ------------------------------------------ ##
4973 _ASBOX
4974 ) |
4975 sed "s/^/$as_me: WARNING: /" >&2
4976 ;;
4977 esac
4978 echo "$as_me:$LINENO: checking for $ac_header" >&5
4979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 eval "$as_ac_Header=\$ac_header_preproc"
4984 fi
4985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4987
4988 fi
4989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4990 cat >>confdefs.h <<_ACEOF
4991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4992 _ACEOF
4993
4994 fi
4995
4996 done
4997
4998
4999 fi
5000
5001
5002 echo "$as_me:$LINENO: checking for working memcmp" >&5
5003 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5004 if test "${ac_cv_func_memcmp_working+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 if test "$cross_compiling" = yes; then
5008 ac_cv_func_memcmp_working=no
5009 else
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5017 int
5018 main ()
5019 {
5020
5021 /* Some versions of memcmp are not 8-bit clean. */
5022 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5023 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5024 exit (1);
5025
5026 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5027 or more and with at least one buffer not starting on a 4-byte boundary.
5028 William Lewis provided this test program. */
5029 {
5030 char foo[21];
5031 char bar[21];
5032 int i;
5033 for (i = 0; i < 4; i++)
5034 {
5035 char *a = foo + i;
5036 char *b = bar + i;
5037 strcpy (a, "--------01111111");
5038 strcpy (b, "--------10000000");
5039 if (memcmp (a, b, 16) >= 0)
5040 exit (1);
5041 }
5042 exit (0);
5043 }
5044
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_func_memcmp_working=yes
5061 else
5062 echo "$as_me: program exited with status $ac_status" >&5
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 ( exit $ac_status )
5067 ac_cv_func_memcmp_working=no
5068 fi
5069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5070 fi
5071 fi
5072 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5073 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5074 test $ac_cv_func_memcmp_working = no &&
5075
5076
5077
5078
5079
5080
5081 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5082
5083
5084 if test $ac_cv_func_memcmp_working = no; then
5085
5086 cat >>confdefs.h <<\_ACEOF
5087 #define memcmp rpl_memcmp
5088 _ACEOF
5089
5090 :
5091 fi
5092
5093
5094
5095 if test $ac_cv_have_decl_memmem = yes; then
5096 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5097 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5098 if test "${gl_cv_func_memmem_works+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 if test "$cross_compiling" = yes; then
5102 gl_cv_func_memmem_works="guessing no"
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110
5111 #include <string.h> /* for memmem */
5112 #include <stdlib.h> /* for malloc */
5113 #include <unistd.h> /* for alarm */
5114
5115 int
5116 main ()
5117 {
5118 size_t m = 1000000;
5119 char *haystack = (char *) malloc (2 * m + 1);
5120 char *needle = (char *) malloc (m + 1);
5121 void *result = 0;
5122 /* Failure to compile this test due to missing alarm is okay,
5123 since all such platforms (mingw) also lack memmem. */
5124 alarm (5);
5125 /* Check for quadratic performance. */
5126 if (haystack && needle)
5127 {
5128 memset (haystack, 'A', 2 * m);
5129 haystack[2 * m] = 'B';
5130 memset (needle, 'A', m);
5131 needle[m] = 'B';
5132 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5133 }
5134 /* Check for empty needle behavior. */
5135 return !result || !memmem ("a", 1, 0, 0);
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 gl_cv_func_memmem_works=yes
5152 else
5153 echo "$as_me: program exited with status $ac_status" >&5
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ( exit $ac_status )
5158 gl_cv_func_memmem_works=no
5159 fi
5160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 fi
5163 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5164 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5165 if test "$gl_cv_func_memmem_works" != yes; then
5166 REPLACE_MEMMEM=1
5167
5168
5169
5170
5171
5172
5173
5174 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5175
5176 fi
5177 fi
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 for ac_func in memmem
5192 do
5193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5194 echo "$as_me:$LINENO: checking for $ac_func" >&5
5195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5196 if eval "test \"\${$as_ac_var+set}\" = set"; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5207 #define $ac_func innocuous_$ac_func
5208
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func (); below.
5211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212 <limits.h> exists even on freestanding compilers. */
5213
5214 #ifdef __STDC__
5215 # include <limits.h>
5216 #else
5217 # include <assert.h>
5218 #endif
5219
5220 #undef $ac_func
5221
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 #ifdef __cplusplus
5224 extern "C"
5225 {
5226 #endif
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5229 char $ac_func ();
5230 /* The GNU C library defines this for functions which it implements
5231 to always fail with ENOSYS. Some functions are actually named
5232 something starting with __ and the normal name is an alias. */
5233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5234 choke me
5235 #else
5236 char (*f) () = $ac_func;
5237 #endif
5238 #ifdef __cplusplus
5239 }
5240 #endif
5241
5242 int
5243 main ()
5244 {
5245 return f != $ac_func;
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -z "$ac_c_werror_flag"
5260 || test ! -s conftest.err'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try='test -s conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 eval "$as_ac_var=yes"
5273 else
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 eval "$as_ac_var=no"
5278 fi
5279 rm -f conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 fi
5282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5284 if test `eval echo '${'$as_ac_var'}'` = yes; then
5285 cat >>confdefs.h <<_ACEOF
5286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5287 _ACEOF
5288
5289 else
5290
5291 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5292
5293 fi
5294 done
5295
5296
5297
5298 :
5299
5300
5301
5302
5303
5304 if test $ac_cv_have_decl_memmem = no; then
5305 HAVE_DECL_MEMMEM=0
5306 fi
5307 :
5308
5309
5310
5311 GNULIB_MEMMEM=1
5312
5313
5314
5315
5316 if test $ac_cv_type_long_long_int = yes; then
5317 HAVE_LONG_LONG_INT=1
5318 else
5319 HAVE_LONG_LONG_INT=0
5320 fi
5321
5322
5323 if test $ac_cv_type_unsigned_long_long_int = yes; then
5324 HAVE_UNSIGNED_LONG_LONG_INT=1
5325 else
5326 HAVE_UNSIGNED_LONG_LONG_INT=0
5327 fi
5328
5329
5330 if test $ac_cv_header_inttypes_h = yes; then
5331 HAVE_INTTYPES_H=1
5332 else
5333 HAVE_INTTYPES_H=0
5334 fi
5335
5336
5337 if test $ac_cv_header_sys_types_h = yes; then
5338 HAVE_SYS_TYPES_H=1
5339 else
5340 HAVE_SYS_TYPES_H=0
5341 fi
5342
5343
5344
5345
5346
5347 :
5348
5349
5350
5351
5352
5353
5354
5355 if test $gl_cv_have_include_next = yes; then
5356 gl_cv_next_stdint_h='<'stdint.h'>'
5357 else
5358 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5359 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5360 if test "${gl_cv_next_stdint_h+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363
5364 if test $ac_cv_header_stdint_h = yes; then
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <stdint.h>
5372
5373 _ACEOF
5374 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 sed -n '\#/stdint.h#{
5376 s#.*"\(.*/stdint.h\)".*#\1#
5377 s#^/[^/]#//&#
5378 p
5379 q
5380 }'`'"'
5381 else
5382 gl_cv_next_stdint_h='<'stdint.h'>'
5383 fi
5384
5385 fi
5386 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5387 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5388 fi
5389 NEXT_STDINT_H=$gl_cv_next_stdint_h
5390
5391
5392
5393 if test $ac_cv_header_stdint_h = yes; then
5394 HAVE_STDINT_H=1
5395 else
5396 HAVE_STDINT_H=0
5397 fi
5398
5399
5400 if test $ac_cv_header_stdint_h = yes; then
5401 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5402 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5403 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 gl_cv_header_working_stdint_h=no
5407 cat >conftest.$ac_ext <<_ACEOF
5408
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414
5415 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5416 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5417 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5418 #include <stdint.h>
5419 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5420 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5421 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5422 #endif
5423
5424
5425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5426 included before <wchar.h>. */
5427 #include <stddef.h>
5428 #include <signal.h>
5429 #if HAVE_WCHAR_H
5430 # include <stdio.h>
5431 # include <time.h>
5432 # include <wchar.h>
5433 #endif
5434
5435
5436 #ifdef INT8_MAX
5437 int8_t a1 = INT8_MAX;
5438 int8_t a1min = INT8_MIN;
5439 #endif
5440 #ifdef INT16_MAX
5441 int16_t a2 = INT16_MAX;
5442 int16_t a2min = INT16_MIN;
5443 #endif
5444 #ifdef INT32_MAX
5445 int32_t a3 = INT32_MAX;
5446 int32_t a3min = INT32_MIN;
5447 #endif
5448 #ifdef INT64_MAX
5449 int64_t a4 = INT64_MAX;
5450 int64_t a4min = INT64_MIN;
5451 #endif
5452 #ifdef UINT8_MAX
5453 uint8_t b1 = UINT8_MAX;
5454 #else
5455 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5456 #endif
5457 #ifdef UINT16_MAX
5458 uint16_t b2 = UINT16_MAX;
5459 #endif
5460 #ifdef UINT32_MAX
5461 uint32_t b3 = UINT32_MAX;
5462 #endif
5463 #ifdef UINT64_MAX
5464 uint64_t b4 = UINT64_MAX;
5465 #endif
5466 int_least8_t c1 = INT8_C (0x7f);
5467 int_least8_t c1max = INT_LEAST8_MAX;
5468 int_least8_t c1min = INT_LEAST8_MIN;
5469 int_least16_t c2 = INT16_C (0x7fff);
5470 int_least16_t c2max = INT_LEAST16_MAX;
5471 int_least16_t c2min = INT_LEAST16_MIN;
5472 int_least32_t c3 = INT32_C (0x7fffffff);
5473 int_least32_t c3max = INT_LEAST32_MAX;
5474 int_least32_t c3min = INT_LEAST32_MIN;
5475 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5476 int_least64_t c4max = INT_LEAST64_MAX;
5477 int_least64_t c4min = INT_LEAST64_MIN;
5478 uint_least8_t d1 = UINT8_C (0xff);
5479 uint_least8_t d1max = UINT_LEAST8_MAX;
5480 uint_least16_t d2 = UINT16_C (0xffff);
5481 uint_least16_t d2max = UINT_LEAST16_MAX;
5482 uint_least32_t d3 = UINT32_C (0xffffffff);
5483 uint_least32_t d3max = UINT_LEAST32_MAX;
5484 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5485 uint_least64_t d4max = UINT_LEAST64_MAX;
5486 int_fast8_t e1 = INT_FAST8_MAX;
5487 int_fast8_t e1min = INT_FAST8_MIN;
5488 int_fast16_t e2 = INT_FAST16_MAX;
5489 int_fast16_t e2min = INT_FAST16_MIN;
5490 int_fast32_t e3 = INT_FAST32_MAX;
5491 int_fast32_t e3min = INT_FAST32_MIN;
5492 int_fast64_t e4 = INT_FAST64_MAX;
5493 int_fast64_t e4min = INT_FAST64_MIN;
5494 uint_fast8_t f1 = UINT_FAST8_MAX;
5495 uint_fast16_t f2 = UINT_FAST16_MAX;
5496 uint_fast32_t f3 = UINT_FAST32_MAX;
5497 uint_fast64_t f4 = UINT_FAST64_MAX;
5498 #ifdef INTPTR_MAX
5499 intptr_t g = INTPTR_MAX;
5500 intptr_t gmin = INTPTR_MIN;
5501 #endif
5502 #ifdef UINTPTR_MAX
5503 uintptr_t h = UINTPTR_MAX;
5504 #endif
5505 intmax_t i = INTMAX_MAX;
5506 uintmax_t j = UINTMAX_MAX;
5507
5508 #include <limits.h> /* for CHAR_BIT */
5509 #define TYPE_MINIMUM(t) \
5510 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5511 #define TYPE_MAXIMUM(t) \
5512 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5513 struct s {
5514 int check_PTRDIFF:
5515 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5516 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5517 ? 1 : -1;
5518 /* Detect bug in FreeBSD 6.0 / ia64. */
5519 int check_SIG_ATOMIC:
5520 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5521 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5522 ? 1 : -1;
5523 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5524 int check_WCHAR:
5525 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5526 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5527 ? 1 : -1;
5528 /* Detect bug in mingw. */
5529 int check_WINT:
5530 WINT_MIN == TYPE_MINIMUM (wint_t)
5531 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5532 ? 1 : -1;
5533
5534 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5535 int check_UINT8_C:
5536 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5537 int check_UINT16_C:
5538 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5539
5540 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5541 #ifdef UINT8_MAX
5542 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5543 #endif
5544 #ifdef UINT16_MAX
5545 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5546 #endif
5547 #ifdef UINT32_MAX
5548 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5549 #endif
5550 #ifdef UINT64_MAX
5551 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5552 #endif
5553 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5554 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5555 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5556 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5557 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5558 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5559 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5560 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5561 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5562 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5563 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5564 };
5565
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 gl_cv_header_working_stdint_h=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 fi
5602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5605 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5606 fi
5607 if test "$gl_cv_header_working_stdint_h" = yes; then
5608 STDINT_H=
5609 else
5610
5611
5612 for ac_header in sys/inttypes.h sys/bitypes.h
5613 do
5614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5616 echo "$as_me:$LINENO: checking for $ac_header" >&5
5617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 fi
5621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5623 else
5624 # Is the header compilable?
5625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 #include <$ac_header>
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_header_compiler=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 ac_header_compiler=no
5664 fi
5665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5667 echo "${ECHO_T}$ac_header_compiler" >&6
5668
5669 # Is the header present?
5670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <$ac_header>
5679 _ACEOF
5680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } >/dev/null; then
5688 if test -s conftest.err; then
5689 ac_cpp_err=$ac_c_preproc_warn_flag
5690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5691 else
5692 ac_cpp_err=
5693 fi
5694 else
5695 ac_cpp_err=yes
5696 fi
5697 if test -z "$ac_cpp_err"; then
5698 ac_header_preproc=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_header_preproc=no
5704 fi
5705 rm -f conftest.err conftest.$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5707 echo "${ECHO_T}$ac_header_preproc" >&6
5708
5709 # So? What about this header?
5710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5711 yes:no: )
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5716 ac_header_preproc=yes
5717 ;;
5718 no:yes:* )
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5731 (
5732 cat <<\_ASBOX
5733 ## ------------------------------------------ ##
5734 ## Report this to the AC_PACKAGE_NAME lists. ##
5735 ## ------------------------------------------ ##
5736 _ASBOX
5737 ) |
5738 sed "s/^/$as_me: WARNING: /" >&2
5739 ;;
5740 esac
5741 echo "$as_me:$LINENO: checking for $ac_header" >&5
5742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 eval "$as_ac_Header=\$ac_header_preproc"
5747 fi
5748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5750
5751 fi
5752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5753 cat >>confdefs.h <<_ACEOF
5754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755 _ACEOF
5756
5757 fi
5758
5759 done
5760
5761 if test $ac_cv_header_sys_inttypes_h = yes; then
5762 HAVE_SYS_INTTYPES_H=1
5763 else
5764 HAVE_SYS_INTTYPES_H=0
5765 fi
5766
5767 if test $ac_cv_header_sys_bitypes_h = yes; then
5768 HAVE_SYS_BITYPES_H=1
5769 else
5770 HAVE_SYS_BITYPES_H=0
5771 fi
5772
5773
5774
5775 :
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5791 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5792 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5793 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 if test "$cross_compiling" = yes; then
5797 # Depending upon the size, compute the lo and hi bounds.
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804
5805 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5806 included before <wchar.h>. */
5807 #include <stddef.h>
5808 #include <signal.h>
5809 #if HAVE_WCHAR_H
5810 # include <stdio.h>
5811 # include <time.h>
5812 # include <wchar.h>
5813 #endif
5814
5815 #include <limits.h>
5816 int
5817 main ()
5818 {
5819 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5820 test_array [0] = 0
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_lo=0 ac_mid=0
5849 while :; do
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856
5857 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5858 included before <wchar.h>. */
5859 #include <stddef.h>
5860 #include <signal.h>
5861 #if HAVE_WCHAR_H
5862 # include <stdio.h>
5863 # include <time.h>
5864 # include <wchar.h>
5865 #endif
5866
5867 #include <limits.h>
5868 int
5869 main ()
5870 {
5871 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5872 test_array [0] = 0
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -z "$ac_c_werror_flag"
5888 || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_hi=$ac_mid; break
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 ac_lo=`expr $ac_mid + 1`
5906 if test $ac_lo -le $ac_mid; then
5907 ac_lo= ac_hi=
5908 break
5909 fi
5910 ac_mid=`expr 2 '*' $ac_mid + 1`
5911 fi
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 done
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924
5925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5926 included before <wchar.h>. */
5927 #include <stddef.h>
5928 #include <signal.h>
5929 #if HAVE_WCHAR_H
5930 # include <stdio.h>
5931 # include <time.h>
5932 # include <wchar.h>
5933 #endif
5934
5935 #include <limits.h>
5936 int
5937 main ()
5938 {
5939 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5940 test_array [0] = 0
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_hi=-1 ac_mid=-1
5969 while :; do
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976
5977 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5978 included before <wchar.h>. */
5979 #include <stddef.h>
5980 #include <signal.h>
5981 #if HAVE_WCHAR_H
5982 # include <stdio.h>
5983 # include <time.h>
5984 # include <wchar.h>
5985 #endif
5986
5987 #include <limits.h>
5988 int
5989 main ()
5990 {
5991 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5992 test_array [0] = 0
5993
5994 ;
5995 return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_lo=$ac_mid; break
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_hi=`expr '(' $ac_mid ')' - 1`
6026 if test $ac_mid -le $ac_hi; then
6027 ac_lo= ac_hi=
6028 break
6029 fi
6030 ac_mid=`expr 2 '*' $ac_mid`
6031 fi
6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6033 done
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_lo= ac_hi=
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052
6053 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6054 included before <wchar.h>. */
6055 #include <stddef.h>
6056 #include <signal.h>
6057 #if HAVE_WCHAR_H
6058 # include <stdio.h>
6059 # include <time.h>
6060 # include <wchar.h>
6061 #endif
6062
6063 #include <limits.h>
6064 int
6065 main ()
6066 {
6067 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6068 test_array [0] = 0
6069
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_hi=$ac_mid
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_lo=`expr '(' $ac_mid ')' + 1`
6102 fi
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104 done
6105 case $ac_lo in
6106 ?*) result=$ac_lo;;
6107 '') result=unknown ;;
6108 esac
6109 else
6110 if test "$cross_compiling" = yes; then
6111 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6112 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6114 See \`config.log' for more details." >&5
6115 echo "$as_me: error: cannot run test program while cross compiling
6116 See \`config.log' for more details." >&2;}
6117 { (exit 1); exit 1; }; }; }
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125
6126 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6127 included before <wchar.h>. */
6128 #include <stddef.h>
6129 #include <signal.h>
6130 #if HAVE_WCHAR_H
6131 # include <stdio.h>
6132 # include <time.h>
6133 # include <wchar.h>
6134 #endif
6135
6136 #include <limits.h>
6137 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6138 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6139 #include <stdio.h>
6140 #include <stdlib.h>
6141 int
6142 main ()
6143 {
6144
6145 FILE *f = fopen ("conftest.val", "w");
6146 if (! f)
6147 exit (1);
6148 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6149 {
6150 long i = longval ();
6151 if (i != (sizeof ($gltype) * CHAR_BIT))
6152 exit (1);
6153 fprintf (f, "%ld\n", i);
6154 }
6155 else
6156 {
6157 unsigned long i = ulongval ();
6158 if (i != (sizeof ($gltype) * CHAR_BIT))
6159 exit (1);
6160 fprintf (f, "%lu\n", i);
6161 }
6162 exit (ferror (f) || fclose (f) != 0);
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 result=`cat conftest.val`
6180 else
6181 echo "$as_me: program exited with status $ac_status" >&5
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 ( exit $ac_status )
6186 result=unknown
6187 fi
6188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6189 fi
6190 fi
6191 rm -f conftest.val
6192 eval gl_cv_bitsizeof_${gltype}=\$result
6193
6194 fi
6195 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6196 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6197 eval result=\$gl_cv_bitsizeof_${gltype}
6198 if test $result = unknown; then
6199 result=0
6200 fi
6201 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6202 cat >>confdefs.h <<_ACEOF
6203 #define BITSIZEOF_${GLTYPE} $result
6204 _ACEOF
6205
6206 eval BITSIZEOF_${GLTYPE}=\$result
6207 done
6208
6209
6210
6211
6212
6213
6214
6215 for gltype in sig_atomic_t wchar_t wint_t ; do
6216 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6217 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6218 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227
6228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6229 included before <wchar.h>. */
6230 #include <stddef.h>
6231 #include <signal.h>
6232 #if HAVE_WCHAR_H
6233 # include <stdio.h>
6234 # include <time.h>
6235 # include <wchar.h>
6236 #endif
6237
6238 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249 (eval $ac_compile) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag"
6257 || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 result=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 result=no
6275 fi
6276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277 eval gl_cv_type_${gltype}_signed=\$result
6278
6279 fi
6280 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6282 eval result=\$gl_cv_type_${gltype}_signed
6283 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6284 if test "$result" = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_SIGNED_${GLTYPE} 1
6287 _ACEOF
6288
6289 eval HAVE_SIGNED_${GLTYPE}=1
6290 else
6291 eval HAVE_SIGNED_${GLTYPE}=0
6292 fi
6293 done
6294
6295
6296 gl_cv_type_ptrdiff_t_signed=yes
6297 gl_cv_type_size_t_signed=no
6298
6299
6300
6301
6302
6303
6304
6305 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6306 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6307 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6308 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 eval gl_cv_type_${gltype}_suffix=no
6312 eval result=\$gl_cv_type_${gltype}_signed
6313 if test "$result" = yes; then
6314 glsufu=
6315 else
6316 glsufu=u
6317 fi
6318 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6319 case $glsuf in
6320 '') gltype1='int';;
6321 l) gltype1='long int';;
6322 ll) gltype1='long long int';;
6323 i64) gltype1='__int64';;
6324 u) gltype1='unsigned int';;
6325 ul) gltype1='unsigned long int';;
6326 ull) gltype1='unsigned long long int';;
6327 ui64)gltype1='unsigned __int64';;
6328 esac
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335
6336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6337 included before <wchar.h>. */
6338 #include <stddef.h>
6339 #include <signal.h>
6340 #if HAVE_WCHAR_H
6341 # include <stdio.h>
6342 # include <time.h>
6343 # include <wchar.h>
6344 #endif
6345
6346 extern $gltype foo;
6347 extern $gltype1 foo;
6348 int
6349 main ()
6350 {
6351
6352 ;
6353 return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 eval gl_cv_type_${gltype}_suffix=\$glsuf
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 fi
6384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 eval result=\$gl_cv_type_${gltype}_suffix
6386 test "$result" != no && break
6387 done
6388 fi
6389 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6391 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6392 eval result=\$gl_cv_type_${gltype}_suffix
6393 test "$result" = no && result=
6394 eval ${GLTYPE}_SUFFIX=\$result
6395 cat >>confdefs.h <<_ACEOF
6396 #define ${GLTYPE}_SUFFIX $result
6397 _ACEOF
6398
6399 done
6400
6401
6402
6403 STDINT_H=stdint.h
6404 fi
6405
6406
6407
6408
6409
6410
6411
6412 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6413 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6414 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 cat >conftest.$ac_ext <<_ACEOF
6418 #include <wchar.h>
6419 wchar_t w;
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 gl_cv_header_wchar_h_standalone=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 gl_cv_header_wchar_h_standalone=no
6449 fi
6450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6453 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6454 if test $gl_cv_header_wchar_h_standalone != yes; then
6455 WCHAR_H=wchar.h
6456 fi
6457
6458
6459 :
6460
6461
6462
6463
6464
6465 if test $ac_cv_header_wchar_h = yes; then
6466 HAVE_WCHAR_H=1
6467 else
6468 HAVE_WCHAR_H=0
6469 fi
6470
6471
6472
6473
6474 :
6475
6476
6477
6478
6479
6480
6481
6482 if test $gl_cv_have_include_next = yes; then
6483 gl_cv_next_wchar_h='<'wchar.h'>'
6484 else
6485 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6486 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6487 if test "${gl_cv_next_wchar_h+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490
6491 if test $ac_cv_header_wchar_h = yes; then
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <wchar.h>
6499
6500 _ACEOF
6501 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 sed -n '\#/wchar.h#{
6503 s#.*"\(.*/wchar.h\)".*#\1#
6504 s#^/[^/]#//&#
6505 p
6506 q
6507 }'`'"'
6508 else
6509 gl_cv_next_wchar_h='<'wchar.h'>'
6510 fi
6511
6512 fi
6513 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6514 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6515 fi
6516 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6517
6518
6519
6520
6521
6522
6523
6524
6525 gltests_libdeps=
6526 gltests_ltlibdeps=
6527
6528
6529
6530 gl_source_base='tests'
6531
6532
6533
6534
6535 LIBGNU_LIBDEPS="$gl_libdeps"
6536
6537 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6538
6539
6540
6541 # For Makefile dependencies.
6542 GNULIB_STDINT_H=
6543 if test x"$STDINT_H" != x; then
6544 GNULIB_STDINT_H=gnulib/$STDINT_H
6545 fi
6546
6547
6548 PACKAGE=gdb
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define PACKAGE "$PACKAGE"
6552 _ACEOF
6553
6554
6555
6556 # GDB does not use automake, but gnulib does. This line lets us
6557 # generate its Makefile.in.
6558 am__api_version="1.9"
6559 # Find a good install program. We prefer a C program (faster),
6560 # so one script is as good as another. But avoid the broken or
6561 # incompatible versions:
6562 # SysV /etc/install, /usr/sbin/install
6563 # SunOS /usr/etc/install
6564 # IRIX /sbin/install
6565 # AIX /bin/install
6566 # AmigaOS /C/install, which installs bootblocks on floppy discs
6567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6570 # OS/2's system install, which has a completely different semantic
6571 # ./install, which can be erroneously created by make from ./install.sh.
6572 # Reject install programs that cannot install multiple files.
6573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6575 if test -z "$INSTALL"; then
6576 if test "${ac_cv_path_install+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 # Account for people who put trailing slashes in PATH elements.
6585 case $as_dir/ in
6586 ./ | .// | /cC/* | \
6587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6589 /usr/ucb/* ) ;;
6590 *)
6591 # OSF1 and SCO ODT 3.0 have their own names for install.
6592 # Don't use installbsd from OSF since it installs stuff as root
6593 # by default.
6594 for ac_prog in ginstall scoinst install; do
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6597 if test $ac_prog = install &&
6598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6599 # AIX install. It has an incompatible calling convention.
6600 :
6601 elif test $ac_prog = install &&
6602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6603 # program-specific install script used by HP pwplus--don't use.
6604 :
6605 else
6606 rm -rf conftest.one conftest.two conftest.dir
6607 echo one > conftest.one
6608 echo two > conftest.two
6609 mkdir conftest.dir
6610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6611 test -s conftest.one && test -s conftest.two &&
6612 test -s conftest.dir/conftest.one &&
6613 test -s conftest.dir/conftest.two
6614 then
6615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6616 break 3
6617 fi
6618 fi
6619 fi
6620 done
6621 done
6622 ;;
6623 esac
6624 done
6625
6626 rm -rf conftest.one conftest.two conftest.dir
6627
6628 fi
6629 if test "${ac_cv_path_install+set}" = set; then
6630 INSTALL=$ac_cv_path_install
6631 else
6632 # As a last resort, use the slow shell script. Don't cache a
6633 # value for INSTALL within a source directory, because that will
6634 # break other packages using the cache if that directory is
6635 # removed, or if the value is a relative name.
6636 INSTALL=$ac_install_sh
6637 fi
6638 fi
6639 echo "$as_me:$LINENO: result: $INSTALL" >&5
6640 echo "${ECHO_T}$INSTALL" >&6
6641
6642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6643 # It thinks the first close brace ends the variable substitution.
6644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6645
6646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6647
6648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6649
6650 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6651 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6652 # Just in case
6653 sleep 1
6654 echo timestamp > conftest.file
6655 # Do `set' in a subshell so we don't clobber the current shell's
6656 # arguments. Must try -L first in case configure is actually a
6657 # symlink; some systems play weird games with the mod time of symlinks
6658 # (eg FreeBSD returns the mod time of the symlink's containing
6659 # directory).
6660 if (
6661 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6662 if test "$*" = "X"; then
6663 # -L didn't work.
6664 set X `ls -t $srcdir/configure conftest.file`
6665 fi
6666 rm -f conftest.file
6667 if test "$*" != "X $srcdir/configure conftest.file" \
6668 && test "$*" != "X conftest.file $srcdir/configure"; then
6669
6670 # If neither matched, then we have a broken ls. This can happen
6671 # if, for instance, CONFIG_SHELL is bash and it inherits a
6672 # broken ls alias from the environment. This has actually
6673 # happened. Such a system could not be considered "sane".
6674 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6675 alias in your environment" >&5
6676 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6677 alias in your environment" >&2;}
6678 { (exit 1); exit 1; }; }
6679 fi
6680
6681 test "$2" = conftest.file
6682 )
6683 then
6684 # Ok.
6685 :
6686 else
6687 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6688 Check your system clock" >&5
6689 echo "$as_me: error: newly created file is older than distributed files!
6690 Check your system clock" >&2;}
6691 { (exit 1); exit 1; }; }
6692 fi
6693 echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6
6695 test "$program_prefix" != NONE &&
6696 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6697 # Use a double $ so make ignores it.
6698 test "$program_suffix" != NONE &&
6699 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6700 # Double any \ or $. echo might interpret backslashes.
6701 # By default was `s,x,x', remove it if useless.
6702 cat <<\_ACEOF >conftest.sed
6703 s/[\\$]/&&/g;s/;s,x,x,$//
6704 _ACEOF
6705 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6706 rm conftest.sed
6707
6708 # expand $ac_aux_dir to an absolute path
6709 am_aux_dir=`cd $ac_aux_dir && pwd`
6710
6711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6712 # Use eval to expand $SHELL
6713 if eval "$MISSING --run true"; then
6714 am_missing_run="$MISSING --run "
6715 else
6716 am_missing_run=
6717 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6719 fi
6720
6721 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6722 # We used to keeping the `.' as first argument, in order to
6723 # allow $(mkdir_p) to be used without argument. As in
6724 # $(mkdir_p) $(somedir)
6725 # where $(somedir) is conditionally defined. However this is wrong
6726 # for two reasons:
6727 # 1. if the package is installed by a user who cannot write `.'
6728 # make install will fail,
6729 # 2. the above comment should most certainly read
6730 # $(mkdir_p) $(DESTDIR)$(somedir)
6731 # so it does not work when $(somedir) is undefined and
6732 # $(DESTDIR) is not.
6733 # To support the latter case, we have to write
6734 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6735 # so the `.' trick is pointless.
6736 mkdir_p='mkdir -p --'
6737 else
6738 # On NextStep and OpenStep, the `mkdir' command does not
6739 # recognize any option. It will interpret all options as
6740 # directories to create, and then abort because `.' already
6741 # exists.
6742 for d in ./-p ./--version;
6743 do
6744 test -d $d && rmdir $d
6745 done
6746 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6747 if test -f "$ac_aux_dir/mkinstalldirs"; then
6748 mkdir_p='$(mkinstalldirs)'
6749 else
6750 mkdir_p='$(install_sh) -d'
6751 fi
6752 fi
6753
6754 for ac_prog in gawk mawk nawk awk
6755 do
6756 # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy $ac_prog; ac_word=$2
6758 echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6760 if test "${ac_cv_prog_AWK+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 if test -n "$AWK"; then
6764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_AWK="$ac_prog"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779
6780 fi
6781 fi
6782 AWK=$ac_cv_prog_AWK
6783 if test -n "$AWK"; then
6784 echo "$as_me:$LINENO: result: $AWK" >&5
6785 echo "${ECHO_T}$AWK" >&6
6786 else
6787 echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6
6789 fi
6790
6791 test -n "$AWK" && break
6792 done
6793
6794 ac_config_commands="$ac_config_commands depfiles"
6795
6796
6797 am_make=${MAKE-make}
6798 cat > confinc << 'END'
6799 am__doit:
6800 @echo done
6801 .PHONY: am__doit
6802 END
6803 # If we don't find an include directive, just comment out the code.
6804 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6805 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6806 am__include="#"
6807 am__quote=
6808 _am_result=none
6809 # First try GNU make style include.
6810 echo "include confinc" > confmf
6811 # We grep out `Entering directory' and `Leaving directory'
6812 # messages which can occur if `w' ends up in MAKEFLAGS.
6813 # In particular we don't look at `^make:' because GNU make might
6814 # be invoked under some other name (usually "gmake"), in which
6815 # case it prints its new name instead of `make'.
6816 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6817 am__include=include
6818 am__quote=
6819 _am_result=GNU
6820 fi
6821 # Now try BSD make style include.
6822 if test "$am__include" = "#"; then
6823 echo '.include "confinc"' > confmf
6824 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6825 am__include=.include
6826 am__quote="\""
6827 _am_result=BSD
6828 fi
6829 fi
6830
6831
6832 echo "$as_me:$LINENO: result: $_am_result" >&5
6833 echo "${ECHO_T}$_am_result" >&6
6834 rm -f confinc confmf
6835
6836 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6837 if test "${enable_dependency_tracking+set}" = set; then
6838 enableval="$enable_dependency_tracking"
6839
6840 fi;
6841 if test "x$enable_dependency_tracking" != xno; then
6842 am_depcomp="$ac_aux_dir/depcomp"
6843 AMDEPBACKSLASH='\'
6844 fi
6845
6846
6847 if test "x$enable_dependency_tracking" != xno; then
6848 AMDEP_TRUE=
6849 AMDEP_FALSE='#'
6850 else
6851 AMDEP_TRUE='#'
6852 AMDEP_FALSE=
6853 fi
6854
6855
6856
6857 # test to see if srcdir already configured
6858 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6859 test -f $srcdir/config.status; then
6860 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6861 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6862 { (exit 1); exit 1; }; }
6863 fi
6864
6865 # test whether we have cygpath
6866 if test -z "$CYGPATH_W"; then
6867 if (cygpath --version) >/dev/null 2>/dev/null; then
6868 CYGPATH_W='cygpath -w'
6869 else
6870 CYGPATH_W=echo
6871 fi
6872 fi
6873
6874
6875 # Define the identity of the package.
6876 PACKAGE=gdb
6877 VERSION=UNUSED-VERSION
6878
6879
6880 # Some tools Automake needs.
6881
6882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6883
6884
6885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6886
6887
6888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6889
6890
6891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6892
6893
6894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6895
6896 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6897
6898 # Installed binaries are usually stripped using `strip' when the user
6899 # run `make install-strip'. However `strip' might not be the right
6900 # tool to use in cross-compilation environments, therefore Automake
6901 # will honor the `STRIP' environment variable to overrule this program.
6902 if test "$cross_compiling" != no; then
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}strip; ac_word=$2
6906 echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908 if test "${ac_cv_prog_STRIP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 if test -n "$STRIP"; then
6912 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927
6928 fi
6929 fi
6930 STRIP=$ac_cv_prog_STRIP
6931 if test -n "$STRIP"; then
6932 echo "$as_me:$LINENO: result: $STRIP" >&5
6933 echo "${ECHO_T}$STRIP" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6
6937 fi
6938
6939 fi
6940 if test -z "$ac_cv_prog_STRIP"; then
6941 ac_ct_STRIP=$STRIP
6942 # Extract the first word of "strip", so it can be a program name with args.
6943 set dummy strip; ac_word=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$ac_ct_STRIP"; then
6950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_STRIP="strip"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965
6966 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6967 fi
6968 fi
6969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6970 if test -n "$ac_ct_STRIP"; then
6971 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6972 echo "${ECHO_T}$ac_ct_STRIP" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6976 fi
6977
6978 STRIP=$ac_ct_STRIP
6979 else
6980 STRIP="$ac_cv_prog_STRIP"
6981 fi
6982
6983 fi
6984 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6985
6986 # We need awk for the "check" target. The system "awk" is bad on
6987 # some platforms.
6988 # Always define AMTAR for backward compatibility.
6989
6990 AMTAR=${AMTAR-"${am_missing_run}tar"}
6991
6992 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6993
6994
6995
6996
6997 depcc="$CC" am_compiler_list=
6998
6999 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7000 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7001 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7005 # We make a subdir and do the tests there. Otherwise we can end up
7006 # making bogus files that we don't know about and never remove. For
7007 # instance it was reported that on HP-UX the gcc test will end up
7008 # making a dummy file named `D' -- because `-MD' means `put the output
7009 # in D'.
7010 mkdir conftest.dir
7011 # Copy depcomp to subdir because otherwise we won't find it if we're
7012 # using a relative directory.
7013 cp "$am_depcomp" conftest.dir
7014 cd conftest.dir
7015 # We will build objects and dependencies in a subdirectory because
7016 # it helps to detect inapplicable dependency modes. For instance
7017 # both Tru64's cc and ICC support -MD to output dependencies as a
7018 # side effect of compilation, but ICC will put the dependencies in
7019 # the current directory while Tru64 will put them in the object
7020 # directory.
7021 mkdir sub
7022
7023 am_cv_CC_dependencies_compiler_type=none
7024 if test "$am_compiler_list" = ""; then
7025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7026 fi
7027 for depmode in $am_compiler_list; do
7028 # Setup a source with many dependencies, because some compilers
7029 # like to wrap large dependency lists on column 80 (with \), and
7030 # we should not choose a depcomp mode which is confused by this.
7031 #
7032 # We need to recreate these files for each test, as the compiler may
7033 # overwrite some of them when testing with obscure command lines.
7034 # This happens at least with the AIX C compiler.
7035 : > sub/conftest.c
7036 for i in 1 2 3 4 5 6; do
7037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7039 # Solaris 8's {/usr,}/bin/sh.
7040 touch sub/conftst$i.h
7041 done
7042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7043
7044 case $depmode in
7045 nosideeffect)
7046 # after this tag, mechanisms are not by side-effect, so they'll
7047 # only be used when explicitly requested
7048 if test "x$enable_dependency_tracking" = xyes; then
7049 continue
7050 else
7051 break
7052 fi
7053 ;;
7054 none) break ;;
7055 esac
7056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7057 # mode. It turns out that the SunPro C++ compiler does not properly
7058 # handle `-M -o', and we need to detect this.
7059 if depmode=$depmode \
7060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7063 >/dev/null 2>conftest.err &&
7064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7067 # icc doesn't choke on unknown options, it will just issue warnings
7068 # or remarks (even with -Werror). So we grep stderr for any message
7069 # that says an option was ignored or not supported.
7070 # When given -MP, icc 7.0 and 7.1 complain thusly:
7071 # icc: Command line warning: ignoring option '-M'; no argument required
7072 # The diagnosis changed in icc 8.0:
7073 # icc: Command line remark: option '-MP' not supported
7074 if (grep 'ignoring option' conftest.err ||
7075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7076 am_cv_CC_dependencies_compiler_type=$depmode
7077 break
7078 fi
7079 fi
7080 done
7081
7082 cd ..
7083 rm -rf conftest.dir
7084 else
7085 am_cv_CC_dependencies_compiler_type=none
7086 fi
7087
7088 fi
7089 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7090 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7091 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7092
7093
7094
7095 if
7096 test "x$enable_dependency_tracking" != xno \
7097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7098 am__fastdepCC_TRUE=
7099 am__fastdepCC_FALSE='#'
7100 else
7101 am__fastdepCC_TRUE='#'
7102 am__fastdepCC_FALSE=
7103 fi
7104
7105
7106
7107
7108 debugdir=${libdir}/debug
7109
7110
7111 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7112 if test "${with_separate_debug_dir+set}" = set; then
7113 withval="$with_separate_debug_dir"
7114 debugdir="${withval}"
7115 fi;
7116
7117
7118 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7120 ac_define_dir=`eval echo $debugdir`
7121 ac_define_dir=`eval echo $ac_define_dir`
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define DEBUGDIR "$ac_define_dir"
7125 _ACEOF
7126
7127
7128 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7129
7130 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7131 if test "x$prefix" = xNONE; then
7132 test_prefix=/usr/local
7133 else
7134 test_prefix=$prefix
7135 fi
7136 else
7137 test_prefix=$exec_prefix
7138 fi
7139 case ${debugdir} in
7140 "${test_prefix}"|"${test_prefix}/"*|\
7141 '${exec_prefix}'|'${exec_prefix}/'*)
7142
7143 cat >>confdefs.h <<\_ACEOF
7144 #define DEBUGDIR_RELOCATABLE 1
7145 _ACEOF
7146
7147 ;;
7148 esac
7149
7150
7151 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7152 if test "${with_relocated_sources+set}" = set; then
7153 withval="$with_relocated_sources"
7154 reloc_srcdir="${withval}"
7155
7156 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7158 ac_define_dir=`eval echo $reloc_srcdir`
7159 ac_define_dir=`eval echo $ac_define_dir`
7160
7161 cat >>confdefs.h <<_ACEOF
7162 #define RELOC_SRCDIR "$ac_define_dir"
7163 _ACEOF
7164
7165
7166
7167 fi;
7168
7169
7170
7171 subdirs="$subdirs doc testsuite"
7172
7173
7174 # Check whether to support alternative target configurations
7175 # Check whether --enable-targets or --disable-targets was given.
7176 if test "${enable_targets+set}" = set; then
7177 enableval="$enable_targets"
7178 case "${enableval}" in
7179 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7180 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7181 { (exit 1); exit 1; }; }
7182 ;;
7183 no) enable_targets= ;;
7184 *) enable_targets=$enableval ;;
7185 esac
7186 fi;
7187
7188 # Check whether to enable 64-bit support on 32-bit hosts
7189 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7190 if test "${enable_64_bit_bfd+set}" = set; then
7191 enableval="$enable_64_bit_bfd"
7192 case "${enableval}" in
7193 yes) want64=true ;;
7194 no) want64=false ;;
7195 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7196 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7197 { (exit 1); exit 1; }; } ;;
7198 esac
7199 else
7200 want64=false
7201 fi;
7202 # Provide defaults for some variables set by the per-host and per-target
7203 # configuration.
7204 gdb_host_obs=posix-hdep.o
7205
7206 if test "${target}" = "${host}"; then
7207 gdb_native=yes
7208 else
7209 gdb_native=no
7210 fi
7211
7212 . $srcdir/configure.host
7213
7214 # Accumulate some settings from configure.tgt over all enabled targets
7215
7216 TARGET_OBS=
7217 all_targets=
7218
7219 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7220 do
7221 if test "$targ_alias" = "all"; then
7222 all_targets=true
7223 else
7224 # Canonicalize the secondary target names.
7225 result=`$ac_config_sub $targ_alias 2>/dev/null`
7226 if test -n "$result"; then
7227 targ=$result
7228 else
7229 targ=$targ_alias
7230 fi
7231
7232 . ${srcdir}/configure.tgt
7233
7234 # Target-specific object files
7235 for i in ${gdb_target_obs}; do
7236 case " $TARGET_OBS " in
7237 *" ${i} "*) ;;
7238 *)
7239 TARGET_OBS="$TARGET_OBS ${i}"
7240 ;;
7241 esac
7242 done
7243
7244 # Check whether this target needs 64-bit CORE_ADDR
7245 if test x${want64} = xfalse; then
7246 . ${srcdir}/../bfd/config.bfd
7247 fi
7248 fi
7249 done
7250
7251 if test x${all_targets} = xtrue; then
7252
7253 # We want all 64-bit targets if we either:
7254 # - run on a 64-bit host or
7255 # - already require 64-bit support for some other target or
7256 # - the --enable-64-bit-bfd option was supplied
7257 # Otherwise we only support all 32-bit targets.
7258 #
7259 # NOTE: This test must be in sync with the corresponding
7260 # tests in BFD!
7261
7262 if test x${want64} = xfalse; then
7263 echo "$as_me:$LINENO: checking for long" >&5
7264 echo $ECHO_N "checking for long... $ECHO_C" >&6
7265 if test "${ac_cv_type_long+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 $ac_includes_default
7275 int
7276 main ()
7277 {
7278 if ((long *) 0)
7279 return 0;
7280 if (sizeof (long))
7281 return 0;
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_type_long=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_type_long=no
7314 fi
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316 fi
7317 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7318 echo "${ECHO_T}$ac_cv_type_long" >&6
7319
7320 echo "$as_me:$LINENO: checking size of long" >&5
7321 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7322 if test "${ac_cv_sizeof_long+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 if test "$ac_cv_type_long" = yes; then
7326 # The cast to unsigned long works around a bug in the HP C Compiler
7327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7329 # This bug is HP SR number 8606223364.
7330 if test "$cross_compiling" = yes; then
7331 # Depending upon the size, compute the lo and hi bounds.
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7339 int
7340 main ()
7341 {
7342 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7343 test_array [0] = 0
7344
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_lo=0 ac_mid=0
7372 while :; do
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7380 int
7381 main ()
7382 {
7383 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7384 test_array [0] = 0
7385
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_hi=$ac_mid; break
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 ac_lo=`expr $ac_mid + 1`
7418 if test $ac_lo -le $ac_mid; then
7419 ac_lo= ac_hi=
7420 break
7421 fi
7422 ac_mid=`expr 2 '*' $ac_mid + 1`
7423 fi
7424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425 done
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7437 int
7438 main ()
7439 {
7440 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7441 test_array [0] = 0
7442
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_hi=-1 ac_mid=-1
7470 while :; do
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7478 int
7479 main ()
7480 {
7481 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7482 test_array [0] = 0
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_lo=$ac_mid; break
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515 ac_hi=`expr '(' $ac_mid ')' - 1`
7516 if test $ac_mid -le $ac_hi; then
7517 ac_lo= ac_hi=
7518 break
7519 fi
7520 ac_mid=`expr 2 '*' $ac_mid`
7521 fi
7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7523 done
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_lo= ac_hi=
7529 fi
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533 # Binary search between lo and hi bounds.
7534 while test "x$ac_lo" != "x$ac_hi"; do
7535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7543 int
7544 main ()
7545 {
7546 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7547 test_array [0] = 0
7548
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest.$ac_objext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_hi=$ac_mid
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_lo=`expr '(' $ac_mid ')' + 1`
7581 fi
7582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7583 done
7584 case $ac_lo in
7585 ?*) ac_cv_sizeof_long=$ac_lo;;
7586 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7587 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7589 See \`config.log' for more details." >&5
7590 echo "$as_me: error: cannot compute sizeof (long), 77
7591 See \`config.log' for more details." >&2;}
7592 { (exit 1); exit 1; }; }; } ;;
7593 esac
7594 else
7595 if test "$cross_compiling" = yes; then
7596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7597 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7599 See \`config.log' for more details." >&5
7600 echo "$as_me: error: cannot run test program while cross compiling
7601 See \`config.log' for more details." >&2;}
7602 { (exit 1); exit 1; }; }; }
7603 else
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7611 long longval () { return (long) (sizeof (long)); }
7612 unsigned long ulongval () { return (long) (sizeof (long)); }
7613 #include <stdio.h>
7614 #include <stdlib.h>
7615 int
7616 main ()
7617 {
7618
7619 FILE *f = fopen ("conftest.val", "w");
7620 if (! f)
7621 exit (1);
7622 if (((long) (sizeof (long))) < 0)
7623 {
7624 long i = longval ();
7625 if (i != ((long) (sizeof (long))))
7626 exit (1);
7627 fprintf (f, "%ld\n", i);
7628 }
7629 else
7630 {
7631 unsigned long i = ulongval ();
7632 if (i != ((long) (sizeof (long))))
7633 exit (1);
7634 fprintf (f, "%lu\n", i);
7635 }
7636 exit (ferror (f) || fclose (f) != 0);
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_sizeof_long=`cat conftest.val`
7654 else
7655 echo "$as_me: program exited with status $ac_status" >&5
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 ( exit $ac_status )
7660 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7661 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7663 See \`config.log' for more details." >&5
7664 echo "$as_me: error: cannot compute sizeof (long), 77
7665 See \`config.log' for more details." >&2;}
7666 { (exit 1); exit 1; }; }; }
7667 fi
7668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 fi
7671 rm -f conftest.val
7672 else
7673 ac_cv_sizeof_long=0
7674 fi
7675 fi
7676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7677 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7678 cat >>confdefs.h <<_ACEOF
7679 #define SIZEOF_LONG $ac_cv_sizeof_long
7680 _ACEOF
7681
7682
7683 if test "x${ac_cv_sizeof_long}" = "x8"; then
7684 want64=true
7685 fi
7686 fi
7687 if test x${want64} = xtrue; then
7688 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7689 else
7690 TARGET_OBS='$(ALL_TARGET_OBS)'
7691 fi
7692 fi
7693
7694
7695
7696 # For other settings, only the main target counts.
7697 gdb_sim=
7698 gdb_osabi=
7699 build_gdbserver=
7700 targ=$target; . ${srcdir}/configure.tgt
7701
7702 # Fetch the default architecture and default target vector from BFD.
7703 targ=$target; . $srcdir/../bfd/config.bfd
7704
7705 # We only want the first architecture, so strip off the others if
7706 # there is more than one.
7707 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7708
7709 if test "x$targ_archs" != x; then
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define DEFAULT_BFD_ARCH $targ_archs
7713 _ACEOF
7714
7715 fi
7716 if test "x$targ_defvec" != x; then
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define DEFAULT_BFD_VEC $targ_defvec
7720 _ACEOF
7721
7722 fi
7723
7724 # The CLI cannot be disabled yet, but may be in the future.
7725
7726 # Enable CLI.
7727 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7728 if test "${enable_gdbcli+set}" = set; then
7729 enableval="$enable_gdbcli"
7730 case $enableval in
7731 yes)
7732 ;;
7733 no)
7734 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7735 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7737 *)
7738 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7739 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7740 { (exit 1); exit 1; }; } ;;
7741 esac
7742 else
7743 enable_gdbcli=yes
7744 fi;
7745 if test x"$enable_gdbcli" = xyes; then
7746 if test -d $srcdir/cli; then
7747 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7748 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7749 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7750 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7751 fi
7752 fi
7753
7754 # Enable MI.
7755 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7756 if test "${enable_gdbmi+set}" = set; then
7757 enableval="$enable_gdbmi"
7758 case $enableval in
7759 yes | no)
7760 ;;
7761 *)
7762 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7763 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7764 { (exit 1); exit 1; }; } ;;
7765 esac
7766 else
7767 enable_gdbmi=yes
7768 fi;
7769 if test x"$enable_gdbmi" = xyes; then
7770 if test -d $srcdir/mi; then
7771 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7772 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7773 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7774 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7775 fi
7776 fi
7777
7778 # Enable TUI.
7779 # Check whether --enable-tui or --disable-tui was given.
7780 if test "${enable_tui+set}" = set; then
7781 enableval="$enable_tui"
7782 case $enableval in
7783 yes | no | auto)
7784 ;;
7785 *)
7786 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7787 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7788 { (exit 1); exit 1; }; } ;;
7789 esac
7790 else
7791 enable_tui=auto
7792 fi;
7793
7794 # Enable gdbtk.
7795 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7796 if test "${enable_gdbtk+set}" = set; then
7797 enableval="$enable_gdbtk"
7798 case $enableval in
7799 yes | no)
7800 ;;
7801 *)
7802 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7803 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7804 { (exit 1); exit 1; }; } ;;
7805 esac
7806 else
7807 if test -d $srcdir/gdbtk; then
7808 enable_gdbtk=yes
7809 else
7810 enable_gdbtk=no
7811 fi
7812 fi;
7813 # We unconditionally disable gdbtk tests on selected platforms.
7814 case $host_os in
7815 go32* | windows*)
7816 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7817 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7818 enable_gdbtk=no ;;
7819 esac
7820
7821 # Libunwind support.
7822
7823 # Check whether --with-libunwind or --without-libunwind was given.
7824 if test "${with_libunwind+set}" = set; then
7825 withval="$with_libunwind"
7826 case "${withval}" in
7827 yes) enable_libunwind=yes ;;
7828 no) enable_libunwind=no ;;
7829 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7830 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7831 { (exit 1); exit 1; }; } ;;
7832 esac
7833 else
7834
7835
7836
7837 for ac_header in libunwind.h libunwind-ia64.h
7838 do
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7841 echo "$as_me:$LINENO: checking for $ac_header" >&5
7842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 fi
7846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7848 else
7849 # Is the header compilable?
7850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 #include <$ac_header>
7860 _ACEOF
7861 rm -f conftest.$ac_objext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7863 (eval $ac_compile) 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_header_compiler=yes
7884 else
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_header_compiler=no
7889 fi
7890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7892 echo "${ECHO_T}$ac_header_compiler" >&6
7893
7894 # Is the header present?
7895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <$ac_header>
7904 _ACEOF
7905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } >/dev/null; then
7913 if test -s conftest.err; then
7914 ac_cpp_err=$ac_c_preproc_warn_flag
7915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7916 else
7917 ac_cpp_err=
7918 fi
7919 else
7920 ac_cpp_err=yes
7921 fi
7922 if test -z "$ac_cpp_err"; then
7923 ac_header_preproc=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_header_preproc=no
7929 fi
7930 rm -f conftest.err conftest.$ac_ext
7931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7932 echo "${ECHO_T}$ac_header_preproc" >&6
7933
7934 # So? What about this header?
7935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7936 yes:no: )
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7941 ac_header_preproc=yes
7942 ;;
7943 no:yes:* )
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7956 (
7957 cat <<\_ASBOX
7958 ## ------------------------------------------ ##
7959 ## Report this to the AC_PACKAGE_NAME lists. ##
7960 ## ------------------------------------------ ##
7961 _ASBOX
7962 ) |
7963 sed "s/^/$as_me: WARNING: /" >&2
7964 ;;
7965 esac
7966 echo "$as_me:$LINENO: checking for $ac_header" >&5
7967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971 eval "$as_ac_Header=\$ac_header_preproc"
7972 fi
7973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7975
7976 fi
7977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7978 cat >>confdefs.h <<_ACEOF
7979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980 _ACEOF
7981
7982 fi
7983
7984 done
7985
7986 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7987 enable_libunwind=yes;
7988 fi
7989
7990 fi;
7991
7992 if test x"$enable_libunwind" = xyes; then
7993
7994
7995 for ac_header in libunwind.h libunwind-ia64.h
7996 do
7997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999 echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 fi
8004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8006 else
8007 # Is the header compilable?
8008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #include <$ac_header>
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_header_compiler=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 ac_header_compiler=no
8047 fi
8048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8050 echo "${ECHO_T}$ac_header_compiler" >&6
8051
8052 # Is the header present?
8053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8055 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 #include <$ac_header>
8062 _ACEOF
8063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } >/dev/null; then
8071 if test -s conftest.err; then
8072 ac_cpp_err=$ac_c_preproc_warn_flag
8073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8074 else
8075 ac_cpp_err=
8076 fi
8077 else
8078 ac_cpp_err=yes
8079 fi
8080 if test -z "$ac_cpp_err"; then
8081 ac_header_preproc=yes
8082 else
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_header_preproc=no
8087 fi
8088 rm -f conftest.err conftest.$ac_ext
8089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8090 echo "${ECHO_T}$ac_header_preproc" >&6
8091
8092 # So? What about this header?
8093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 yes:no: )
8095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8099 ac_header_preproc=yes
8100 ;;
8101 no:yes:* )
8102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8114 (
8115 cat <<\_ASBOX
8116 ## ------------------------------------------ ##
8117 ## Report this to the AC_PACKAGE_NAME lists. ##
8118 ## ------------------------------------------ ##
8119 _ASBOX
8120 ) |
8121 sed "s/^/$as_me: WARNING: /" >&2
8122 ;;
8123 esac
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 eval "$as_ac_Header=\$ac_header_preproc"
8130 fi
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133
8134 fi
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138 _ACEOF
8139
8140 fi
8141
8142 done
8143
8144
8145 cat >>confdefs.h <<\_ACEOF
8146 #define HAVE_LIBUNWIND 1
8147 _ACEOF
8148
8149 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8150 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8151 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8152 fi
8153
8154 opt_curses=no
8155
8156 # Check whether --with-curses or --without-curses was given.
8157 if test "${with_curses+set}" = set; then
8158 withval="$with_curses"
8159 opt_curses=$withval
8160 fi;
8161
8162 prefer_curses=no
8163 if test "$opt_curses" = "yes"; then
8164 prefer_curses=yes
8165 fi
8166
8167 # Profiling support.
8168 # Check whether --enable-profiling or --disable-profiling was given.
8169 if test "${enable_profiling+set}" = set; then
8170 enableval="$enable_profiling"
8171 case $enableval in
8172 yes | no)
8173 ;;
8174 *)
8175 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8176 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8177 { (exit 1); exit 1; }; } ;;
8178 esac
8179 else
8180 enable_profiling=no
8181 fi;
8182
8183
8184
8185 for ac_func in monstartup _mcleanup
8186 do
8187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 echo "$as_me:$LINENO: checking for $ac_func" >&5
8189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_var+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8201 #define $ac_func innocuous_$ac_func
8202
8203 /* System header to define __stub macros and hopefully few prototypes,
8204 which can conflict with char $ac_func (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8207
8208 #ifdef __STDC__
8209 # include <limits.h>
8210 #else
8211 # include <assert.h>
8212 #endif
8213
8214 #undef $ac_func
8215
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 #ifdef __cplusplus
8218 extern "C"
8219 {
8220 #endif
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8223 char $ac_func ();
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 choke me
8229 #else
8230 char (*f) () = $ac_func;
8231 #endif
8232 #ifdef __cplusplus
8233 }
8234 #endif
8235
8236 int
8237 main ()
8238 {
8239 return f != $ac_func;
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 eval "$as_ac_var=yes"
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 eval "$as_ac_var=no"
8272 fi
8273 rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 fi
8276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8278 if test `eval echo '${'$as_ac_var'}'` = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8281 _ACEOF
8282
8283 fi
8284 done
8285
8286 echo "$as_me:$LINENO: checking for _etext" >&5
8287 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8288 if test "${ac_cv_var__etext+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 #include <stdlib.h>
8298 extern char _etext;
8299
8300 int
8301 main ()
8302 {
8303 free (&_etext);
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_var__etext=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_cv_var__etext=no
8336 fi
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8341 echo "${ECHO_T}$ac_cv_var__etext" >&6
8342 if test $ac_cv_var__etext = yes; then
8343
8344 cat >>confdefs.h <<\_ACEOF
8345 #define HAVE__ETEXT 1
8346 _ACEOF
8347
8348 fi
8349 echo "$as_me:$LINENO: checking for etext" >&5
8350 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8351 if test "${ac_cv_var_etext+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <stdlib.h>
8361 extern char etext;
8362
8363 int
8364 main ()
8365 {
8366 free (&etext);
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_var_etext=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 ac_cv_var_etext=no
8399 fi
8400 rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8404 echo "${ECHO_T}$ac_cv_var_etext" >&6
8405 if test $ac_cv_var_etext = yes; then
8406
8407 cat >>confdefs.h <<\_ACEOF
8408 #define HAVE_ETEXT 1
8409 _ACEOF
8410
8411 fi
8412 if test "$enable_profiling" = yes ; then
8413 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8414 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8415 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8416 { (exit 1); exit 1; }; }
8417 fi
8418 PROFILE_CFLAGS=-pg
8419 OLD_CFLAGS="$CFLAGS"
8420 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8421
8422 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8423 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8424 if test "${ac_cv_cc_supports_pg+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433
8434 int
8435 main ()
8436 {
8437 int x;
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_cc_supports_pg=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_cc_supports_pg=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8474 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8475
8476 if test $ac_cv_cc_supports_pg = no; then
8477 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8478 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8479 { (exit 1); exit 1; }; }
8480 fi
8481
8482 CFLAGS="$OLD_CFLAGS"
8483 fi
8484
8485
8486
8487 # Check whether --with-pkgversion or --without-pkgversion was given.
8488 if test "${with_pkgversion+set}" = set; then
8489 withval="$with_pkgversion"
8490 case "$withval" in
8491 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8492 echo "$as_me: error: package version not specified" >&2;}
8493 { (exit 1); exit 1; }; } ;;
8494 no) PKGVERSION= ;;
8495 *) PKGVERSION="($withval) " ;;
8496 esac
8497 else
8498 PKGVERSION="(GDB) "
8499
8500 fi;
8501
8502
8503
8504
8505 # Check whether --with-bugurl or --without-bugurl was given.
8506 if test "${with_bugurl+set}" = set; then
8507 withval="$with_bugurl"
8508 case "$withval" in
8509 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8510 echo "$as_me: error: bug URL not specified" >&2;}
8511 { (exit 1); exit 1; }; } ;;
8512 no) BUGURL=
8513 ;;
8514 *) BUGURL="$withval"
8515 ;;
8516 esac
8517 else
8518 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8519
8520 fi;
8521 case ${BUGURL} in
8522 "")
8523 REPORT_BUGS_TO=
8524 REPORT_BUGS_TEXI=
8525 ;;
8526 *)
8527 REPORT_BUGS_TO="<$BUGURL>"
8528 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8529 ;;
8530 esac;
8531
8532
8533
8534
8535 cat >>confdefs.h <<_ACEOF
8536 #define PKGVERSION "$PKGVERSION"
8537 _ACEOF
8538
8539
8540 cat >>confdefs.h <<_ACEOF
8541 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8542 _ACEOF
8543
8544
8545 # --------------------- #
8546 # Checks for programs. #
8547 # --------------------- #
8548
8549 for ac_prog in gawk mawk nawk awk
8550 do
8551 # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy $ac_prog; ac_word=$2
8553 echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8555 if test "${ac_cv_prog_AWK+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 if test -n "$AWK"; then
8559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_AWK="$ac_prog"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572 done
8573 done
8574
8575 fi
8576 fi
8577 AWK=$ac_cv_prog_AWK
8578 if test -n "$AWK"; then
8579 echo "$as_me:$LINENO: result: $AWK" >&5
8580 echo "${ECHO_T}$AWK" >&6
8581 else
8582 echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8584 fi
8585
8586 test -n "$AWK" && break
8587 done
8588
8589 # Find a good install program. We prefer a C program (faster),
8590 # so one script is as good as another. But avoid the broken or
8591 # incompatible versions:
8592 # SysV /etc/install, /usr/sbin/install
8593 # SunOS /usr/etc/install
8594 # IRIX /sbin/install
8595 # AIX /bin/install
8596 # AmigaOS /C/install, which installs bootblocks on floppy discs
8597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8600 # OS/2's system install, which has a completely different semantic
8601 # ./install, which can be erroneously created by make from ./install.sh.
8602 # Reject install programs that cannot install multiple files.
8603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8605 if test -z "$INSTALL"; then
8606 if test "${ac_cv_path_install+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 # Account for people who put trailing slashes in PATH elements.
8615 case $as_dir/ in
8616 ./ | .// | /cC/* | \
8617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8618 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8619 /usr/ucb/* ) ;;
8620 *)
8621 # OSF1 and SCO ODT 3.0 have their own names for install.
8622 # Don't use installbsd from OSF since it installs stuff as root
8623 # by default.
8624 for ac_prog in ginstall scoinst install; do
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8627 if test $ac_prog = install &&
8628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8629 # AIX install. It has an incompatible calling convention.
8630 :
8631 elif test $ac_prog = install &&
8632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8633 # program-specific install script used by HP pwplus--don't use.
8634 :
8635 else
8636 rm -rf conftest.one conftest.two conftest.dir
8637 echo one > conftest.one
8638 echo two > conftest.two
8639 mkdir conftest.dir
8640 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8641 test -s conftest.one && test -s conftest.two &&
8642 test -s conftest.dir/conftest.one &&
8643 test -s conftest.dir/conftest.two
8644 then
8645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8646 break 3
8647 fi
8648 fi
8649 fi
8650 done
8651 done
8652 ;;
8653 esac
8654 done
8655
8656 rm -rf conftest.one conftest.two conftest.dir
8657
8658 fi
8659 if test "${ac_cv_path_install+set}" = set; then
8660 INSTALL=$ac_cv_path_install
8661 else
8662 # As a last resort, use the slow shell script. Don't cache a
8663 # value for INSTALL within a source directory, because that will
8664 # break other packages using the cache if that directory is
8665 # removed, or if the value is a relative name.
8666 INSTALL=$ac_install_sh
8667 fi
8668 fi
8669 echo "$as_me:$LINENO: result: $INSTALL" >&5
8670 echo "${ECHO_T}$INSTALL" >&6
8671
8672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8673 # It thinks the first close brace ends the variable substitution.
8674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8675
8676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8677
8678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8679
8680 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8681 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8682 LN_S=$as_ln_s
8683 if test "$LN_S" = "ln -s"; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685 echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8688 echo "${ECHO_T}no, using $LN_S" >&6
8689 fi
8690
8691 if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8694 echo "$as_me:$LINENO: checking for $ac_word" >&5
8695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696 if test "${ac_cv_prog_RANLIB+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 if test -n "$RANLIB"; then
8700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715
8716 fi
8717 fi
8718 RANLIB=$ac_cv_prog_RANLIB
8719 if test -n "$RANLIB"; then
8720 echo "$as_me:$LINENO: result: $RANLIB" >&5
8721 echo "${ECHO_T}$RANLIB" >&6
8722 else
8723 echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6
8725 fi
8726
8727 fi
8728 if test -z "$ac_cv_prog_RANLIB"; then
8729 ac_ct_RANLIB=$RANLIB
8730 # Extract the first word of "ranlib", so it can be a program name with args.
8731 set dummy ranlib; ac_word=$2
8732 echo "$as_me:$LINENO: checking for $ac_word" >&5
8733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 if test -n "$ac_ct_RANLIB"; then
8738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_ac_ct_RANLIB="ranlib"
8748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751 done
8752 done
8753
8754 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8755 fi
8756 fi
8757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8758 if test -n "$ac_ct_RANLIB"; then
8759 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8760 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8761 else
8762 echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6
8764 fi
8765
8766 RANLIB=$ac_ct_RANLIB
8767 else
8768 RANLIB="$ac_cv_prog_RANLIB"
8769 fi
8770
8771 for ac_prog in 'bison -y' byacc
8772 do
8773 # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 echo "$as_me:$LINENO: checking for $ac_word" >&5
8776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8777 if test "${ac_cv_prog_YACC+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 if test -n "$YACC"; then
8781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_YACC="$ac_prog"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796
8797 fi
8798 fi
8799 YACC=$ac_cv_prog_YACC
8800 if test -n "$YACC"; then
8801 echo "$as_me:$LINENO: result: $YACC" >&5
8802 echo "${ECHO_T}$YACC" >&6
8803 else
8804 echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6
8806 fi
8807
8808 test -n "$YACC" && break
8809 done
8810 test -n "$YACC" || YACC="yacc"
8811
8812
8813 if test -n "$ac_tool_prefix"; then
8814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8815 set dummy ${ac_tool_prefix}ar; ac_word=$2
8816 echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818 if test "${ac_cv_prog_AR+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 if test -n "$AR"; then
8822 ac_cv_prog_AR="$AR" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_AR="${ac_tool_prefix}ar"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837
8838 fi
8839 fi
8840 AR=$ac_cv_prog_AR
8841 if test -n "$AR"; then
8842 echo "$as_me:$LINENO: result: $AR" >&5
8843 echo "${ECHO_T}$AR" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8847 fi
8848
8849 fi
8850 if test -z "$ac_cv_prog_AR"; then
8851 ac_ct_AR=$AR
8852 # Extract the first word of "ar", so it can be a program name with args.
8853 set dummy ar; ac_word=$2
8854 echo "$as_me:$LINENO: checking for $ac_word" >&5
8855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8856 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 if test -n "$ac_ct_AR"; then
8860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8861 else
8862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 for as_dir in $PATH
8864 do
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8869 ac_cv_prog_ac_ct_AR="ar"
8870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 break 2
8872 fi
8873 done
8874 done
8875
8876 fi
8877 fi
8878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8879 if test -n "$ac_ct_AR"; then
8880 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8881 echo "${ECHO_T}$ac_ct_AR" >&6
8882 else
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8885 fi
8886
8887 AR=$ac_ct_AR
8888 else
8889 AR="$ac_cv_prog_AR"
8890 fi
8891
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8895 echo "$as_me:$LINENO: checking for $ac_word" >&5
8896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900 if test -n "$DLLTOOL"; then
8901 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914 done
8915 done
8916
8917 fi
8918 fi
8919 DLLTOOL=$ac_cv_prog_DLLTOOL
8920 if test -n "$DLLTOOL"; then
8921 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8922 echo "${ECHO_T}$DLLTOOL" >&6
8923 else
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 fi
8927
8928 fi
8929 if test -z "$ac_cv_prog_DLLTOOL"; then
8930 ac_ct_DLLTOOL=$DLLTOOL
8931 # Extract the first word of "dlltool", so it can be a program name with args.
8932 set dummy dlltool; ac_word=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 if test -n "$ac_ct_DLLTOOL"; then
8939 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8943 do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8951 fi
8952 done
8953 done
8954
8955 fi
8956 fi
8957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8958 if test -n "$ac_ct_DLLTOOL"; then
8959 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8960 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8961 else
8962 echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8964 fi
8965
8966 DLLTOOL=$ac_ct_DLLTOOL
8967 else
8968 DLLTOOL="$ac_cv_prog_DLLTOOL"
8969 fi
8970
8971 if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8973 set dummy ${ac_tool_prefix}windres; ac_word=$2
8974 echo "$as_me:$LINENO: checking for $ac_word" >&5
8975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976 if test "${ac_cv_prog_WINDRES+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 if test -n "$WINDRES"; then
8980 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8981 else
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8984 do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993 done
8994 done
8995
8996 fi
8997 fi
8998 WINDRES=$ac_cv_prog_WINDRES
8999 if test -n "$WINDRES"; then
9000 echo "$as_me:$LINENO: result: $WINDRES" >&5
9001 echo "${ECHO_T}$WINDRES" >&6
9002 else
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9005 fi
9006
9007 fi
9008 if test -z "$ac_cv_prog_WINDRES"; then
9009 ac_ct_WINDRES=$WINDRES
9010 # Extract the first word of "windres", so it can be a program name with args.
9011 set dummy windres; ac_word=$2
9012 echo "$as_me:$LINENO: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 if test -n "$ac_ct_WINDRES"; then
9018 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_ac_ct_WINDRES="windres"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031 done
9032 done
9033
9034 fi
9035 fi
9036 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9037 if test -n "$ac_ct_WINDRES"; then
9038 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9039 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9040 else
9041 echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9043 fi
9044
9045 WINDRES=$ac_ct_WINDRES
9046 else
9047 WINDRES="$ac_cv_prog_WINDRES"
9048 fi
9049
9050
9051 # Needed for GNU/Hurd.
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9054 set dummy ${ac_tool_prefix}mig; ac_word=$2
9055 echo "$as_me:$LINENO: checking for $ac_word" >&5
9056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9057 if test "${ac_cv_prog_MIG+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 if test -n "$MIG"; then
9061 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9062 else
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9065 do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9073 fi
9074 done
9075 done
9076
9077 fi
9078 fi
9079 MIG=$ac_cv_prog_MIG
9080 if test -n "$MIG"; then
9081 echo "$as_me:$LINENO: result: $MIG" >&5
9082 echo "${ECHO_T}$MIG" >&6
9083 else
9084 echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6
9086 fi
9087
9088 fi
9089 if test -z "$ac_cv_prog_MIG"; then
9090 ac_ct_MIG=$MIG
9091 # Extract the first word of "mig", so it can be a program name with args.
9092 set dummy mig; ac_word=$2
9093 echo "$as_me:$LINENO: checking for $ac_word" >&5
9094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9095 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 if test -n "$ac_ct_MIG"; then
9099 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9100 else
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9103 do
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_ac_ct_MIG="mig"
9109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9111 fi
9112 done
9113 done
9114
9115 fi
9116 fi
9117 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9118 if test -n "$ac_ct_MIG"; then
9119 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9120 echo "${ECHO_T}$ac_ct_MIG" >&6
9121 else
9122 echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9124 fi
9125
9126 MIG=$ac_ct_MIG
9127 else
9128 MIG="$ac_cv_prog_MIG"
9129 fi
9130
9131
9132 # ---------------------- #
9133 # Checks for libraries. #
9134 # ---------------------- #
9135
9136 # We might need to link with -lm; most simulators need it.
9137
9138 echo "$as_me:$LINENO: checking for main in -lm" >&5
9139 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9140 if test "${ac_cv_lib_m_main+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143 ac_check_lib_save_LIBS=$LIBS
9144 LIBS="-lm $LIBS"
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151
9152
9153 int
9154 main ()
9155 {
9156 main ();
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest$ac_exeext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_cv_lib_m_main=yes
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 ac_cv_lib_m_main=no
9189 fi
9190 rm -f conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9195 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9196 if test $ac_cv_lib_m_main = yes; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_LIBM 1
9199 _ACEOF
9200
9201 LIBS="-lm $LIBS"
9202
9203 fi
9204
9205
9206 # We need to link with -lw to get `wctype' on Solaris before Solaris
9207 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9208 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9209 # is known to have this problem). Therefore we avoid libw if we can.
9210 echo "$as_me:$LINENO: checking for wctype" >&5
9211 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9212 if test "${ac_cv_func_wctype+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223 #define wctype innocuous_wctype
9224
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char wctype (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9229
9230 #ifdef __STDC__
9231 # include <limits.h>
9232 #else
9233 # include <assert.h>
9234 #endif
9235
9236 #undef wctype
9237
9238 /* Override any gcc2 internal prototype to avoid an error. */
9239 #ifdef __cplusplus
9240 extern "C"
9241 {
9242 #endif
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245 char wctype ();
9246 /* The GNU C library defines this for functions which it implements
9247 to always fail with ENOSYS. Some functions are actually named
9248 something starting with __ and the normal name is an alias. */
9249 #if defined (__stub_wctype) || defined (__stub___wctype)
9250 choke me
9251 #else
9252 char (*f) () = wctype;
9253 #endif
9254 #ifdef __cplusplus
9255 }
9256 #endif
9257
9258 int
9259 main ()
9260 {
9261 return f != wctype;
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_cv_func_wctype=yes
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_cv_func_wctype=no
9294 fi
9295 rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 fi
9298 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9299 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9300 if test $ac_cv_func_wctype = yes; then
9301 :
9302 else
9303
9304 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9305 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9306 if test "${ac_cv_lib_w_wctype+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-lw $LIBS"
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317
9318 /* Override any gcc2 internal prototype to avoid an error. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324 char wctype ();
9325 int
9326 main ()
9327 {
9328 wctype ();
9329 ;
9330 return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335 (eval $ac_link) 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag"
9343 || test ! -s conftest.err'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_lib_w_wctype=yes
9356 else
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ac_cv_lib_w_wctype=no
9361 fi
9362 rm -f conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_lib_save_LIBS
9365 fi
9366 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9367 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9368 if test $ac_cv_lib_w_wctype = yes; then
9369 cat >>confdefs.h <<_ACEOF
9370 #define HAVE_LIBW 1
9371 _ACEOF
9372
9373 LIBS="-lw $LIBS"
9374
9375 fi
9376
9377 fi
9378
9379
9380 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9381 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9382 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9383 if test "${ac_cv_search_gethostbyname+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 ac_func_search_save_LIBS=$LIBS
9387 ac_cv_search_gethostbyname=no
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394
9395 /* Override any gcc2 internal prototype to avoid an error. */
9396 #ifdef __cplusplus
9397 extern "C"
9398 #endif
9399 /* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401 char gethostbyname ();
9402 int
9403 main ()
9404 {
9405 gethostbyname ();
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_search_gethostbyname="none required"
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 fi
9438 rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 if test "$ac_cv_search_gethostbyname" = no; then
9441 for ac_lib in nsl; do
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char gethostbyname ();
9457 int
9458 main ()
9459 {
9460 gethostbyname ();
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_search_gethostbyname="-l$ac_lib"
9488 break
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 fi
9494 rm -f conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 done
9497 fi
9498 LIBS=$ac_func_search_save_LIBS
9499 fi
9500 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9501 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9502 if test "$ac_cv_search_gethostbyname" != no; then
9503 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9504
9505 fi
9506
9507
9508 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9509 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9510 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9511 if test "${ac_cv_search_socketpair+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 ac_func_search_save_LIBS=$LIBS
9515 ac_cv_search_socketpair=no
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522
9523 /* Override any gcc2 internal prototype to avoid an error. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9529 char socketpair ();
9530 int
9531 main ()
9532 {
9533 socketpair ();
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_search_socketpair="none required"
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 fi
9566 rm -f conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 if test "$ac_cv_search_socketpair" = no; then
9569 for ac_lib in socket; do
9570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584 char socketpair ();
9585 int
9586 main ()
9587 {
9588 socketpair ();
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_search_socketpair="-l$ac_lib"
9616 break
9617 else
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621 fi
9622 rm -f conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 done
9625 fi
9626 LIBS=$ac_func_search_save_LIBS
9627 fi
9628 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9629 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9630 if test "$ac_cv_search_socketpair" != no; then
9631 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9632
9633 fi
9634
9635
9636 # Link in zlib if we can. This allows us to read compressed debug sections.
9637 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9638 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9639 if test "${ac_cv_search_zlibVersion+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 ac_func_search_save_LIBS=$LIBS
9643 ac_cv_search_zlibVersion=no
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650
9651 /* Override any gcc2 internal prototype to avoid an error. */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 /* We use char because int might match the return type of a gcc2
9656 builtin and then its argument prototype would still apply. */
9657 char zlibVersion ();
9658 int
9659 main ()
9660 {
9661 zlibVersion ();
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_search_zlibVersion="none required"
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 fi
9694 rm -f conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 if test "$ac_cv_search_zlibVersion" = no; then
9697 for ac_lib in z; do
9698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705
9706 /* Override any gcc2 internal prototype to avoid an error. */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char zlibVersion ();
9713 int
9714 main ()
9715 {
9716 zlibVersion ();
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_search_zlibVersion="-l$ac_lib"
9744 break
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 fi
9750 rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 done
9753 fi
9754 LIBS=$ac_func_search_save_LIBS
9755 fi
9756 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9757 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9758 if test "$ac_cv_search_zlibVersion" != no; then
9759 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9760
9761 for ac_header in zlib.h
9762 do
9763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9765 echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 fi
9770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9772 else
9773 # Is the header compilable?
9774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9783 #include <$ac_header>
9784 _ACEOF
9785 rm -f conftest.$ac_objext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9787 (eval $ac_compile) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest.$ac_objext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_header_compiler=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_header_compiler=no
9813 fi
9814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 echo "${ECHO_T}$ac_header_compiler" >&6
9817
9818 # Is the header present?
9819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <$ac_header>
9828 _ACEOF
9829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } >/dev/null; then
9837 if test -s conftest.err; then
9838 ac_cpp_err=$ac_c_preproc_warn_flag
9839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9840 else
9841 ac_cpp_err=
9842 fi
9843 else
9844 ac_cpp_err=yes
9845 fi
9846 if test -z "$ac_cpp_err"; then
9847 ac_header_preproc=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_preproc=no
9853 fi
9854 rm -f conftest.err conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 echo "${ECHO_T}$ac_header_preproc" >&6
9857
9858 # So? What about this header?
9859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9860 yes:no: )
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9865 ac_header_preproc=yes
9866 ;;
9867 no:yes:* )
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9880 (
9881 cat <<\_ASBOX
9882 ## ------------------------------------------ ##
9883 ## Report this to the AC_PACKAGE_NAME lists. ##
9884 ## ------------------------------------------ ##
9885 _ASBOX
9886 ) |
9887 sed "s/^/$as_me: WARNING: /" >&2
9888 ;;
9889 esac
9890 echo "$as_me:$LINENO: checking for $ac_header" >&5
9891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 eval "$as_ac_Header=\$ac_header_preproc"
9896 fi
9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899
9900 fi
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 _ACEOF
9905
9906 fi
9907
9908 done
9909
9910 fi
9911
9912
9913 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9914 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9915 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9916 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 ac_func_search_save_LIBS=$LIBS
9920 ac_cv_search_dlgetmodinfo=no
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927
9928 /* Override any gcc2 internal prototype to avoid an error. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934 char dlgetmodinfo ();
9935 int
9936 main ()
9937 {
9938 dlgetmodinfo ();
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_search_dlgetmodinfo="none required"
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 fi
9971 rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 if test "$ac_cv_search_dlgetmodinfo" = no; then
9974 for ac_lib in dl xpdl; do
9975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982
9983 /* Override any gcc2 internal prototype to avoid an error. */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9989 char dlgetmodinfo ();
9990 int
9991 main ()
9992 {
9993 dlgetmodinfo ();
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10021 break
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 fi
10027 rm -f conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 done
10030 fi
10031 LIBS=$ac_func_search_save_LIBS
10032 fi
10033 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10034 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10035 if test "$ac_cv_search_dlgetmodinfo" != no; then
10036 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10037
10038 fi
10039
10040
10041
10042
10043
10044 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10045 if test "${with_libiconv_prefix+set}" = set; then
10046 withval="$with_libiconv_prefix"
10047
10048 for dir in `echo "$withval" | tr : ' '`; do
10049 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10050 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10051 done
10052
10053 fi;
10054
10055 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10056 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10057
10058 echo "$as_me:$LINENO: checking for iconv" >&5
10059 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10060 if test "${am_cv_func_iconv+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063
10064 am_cv_func_iconv="no, consider installing GNU libiconv"
10065 am_cv_lib_iconv=no
10066 am_cv_use_build_libiconv=no
10067 # First, try to find iconv in libc.
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10075 #include <iconv.h>
10076 int
10077 main ()
10078 {
10079 iconv_t cd = iconv_open("","");
10080 iconv(cd,NULL,NULL,NULL,NULL);
10081 iconv_close(cd);
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 am_cv_func_iconv=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 fi
10114 rm -f conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116
10117 # If iconv was not in libc, try -liconv. In this case, arrange to
10118 # look in the libiconv prefix, if it was specified by the user.
10119 if test "$am_cv_func_iconv" != yes; then
10120 am_save_CPPFLAGS="$CPPFLAGS"
10121 am_save_LIBS="$LIBS"
10122 if test -n "$LIBICONV_INCLUDE"; then
10123 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10124 LIBS="$LIBS $LIBICONV_LIBDIR"
10125 fi
10126 LIBS="$LIBS -liconv"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <stdlib.h>
10134 #include <iconv.h>
10135 int
10136 main ()
10137 {
10138 iconv_t cd = iconv_open("","");
10139 iconv(cd,NULL,NULL,NULL,NULL);
10140 iconv_close(cd);
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 am_cv_lib_iconv=yes
10168 am_cv_func_iconv=yes
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 fi
10174 rm -f conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS="$am_save_LIBS"
10177 CPPFLAGS="$am_save_CPPFLAGS"
10178 fi
10179
10180 # If that didn't work, try to find libiconv in the build tree.
10181 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10182 am_save_LIBS="$LIBS"
10183 am_save_CPPFLAGS="$CPPFLAGS"
10184 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10185 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <stdlib.h>
10193 #include <iconv.h>
10194 int
10195 main ()
10196 {
10197 iconv_t cd = iconv_open("","");
10198 iconv(cd,NULL,NULL,NULL,NULL);
10199 iconv_close(cd);
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 am_cv_use_build_libiconv=yes
10227 am_cv_lib_iconv=yes
10228 am_cv_func_iconv=yes
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 fi
10234 rm -f conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LIBS="$am_save_LIBS"
10237 CPPFLAGS="$am_save_CPPFLAGS"
10238 fi
10239
10240 fi
10241 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10242 echo "${ECHO_T}$am_cv_func_iconv" >&6
10243
10244 # Set the various flags based on the cache variables. We can't rely
10245 # on the flags to remain set from the above code, due to caching.
10246 LIBICONV=
10247 if test "$am_cv_lib_iconv" = yes; then
10248 LIBICONV="-liconv"
10249 else
10250 LIBICONV_LIBDIR=
10251 LIBICONV_INCLUDE=
10252 fi
10253 if test "$am_cv_use_build_libiconv" = yes; then
10254 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10255 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10256 fi
10257 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10258 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10259
10260 if test "$am_cv_func_iconv" = yes; then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_ICONV 1
10264 _ACEOF
10265
10266 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10267 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10268 if test "${am_cv_proto_iconv+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278
10279 #include <stdlib.h>
10280 #include <iconv.h>
10281 extern
10282 #ifdef __cplusplus
10283 "C"
10284 #endif
10285 #if defined(__STDC__) || defined(__cplusplus)
10286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10287 #else
10288 size_t iconv();
10289 #endif
10290
10291 int
10292 main ()
10293 {
10294
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 am_cv_proto_iconv_arg1=""
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326 am_cv_proto_iconv_arg1="const"
10327 fi
10328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10329 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);"
10330 fi
10331
10332 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10333 echo "$as_me:$LINENO: result: ${ac_t:-
10334 }$am_cv_proto_iconv" >&5
10335 echo "${ECHO_T}${ac_t:-
10336 }$am_cv_proto_iconv" >&6
10337
10338 cat >>confdefs.h <<_ACEOF
10339 #define ICONV_CONST $am_cv_proto_iconv_arg1
10340 _ACEOF
10341
10342 fi
10343
10344
10345 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10346 # There is a very specific comment in /usr/include/curses.h explaining that
10347 # termcap routines built into libcurses must not be used.
10348 #
10349 # The symptoms we observed so far is GDB unexpectedly changing
10350 # the terminal settings when tgetent is called - this is particularly
10351 # visible as the output is missing carriage returns, and so rapidly
10352 # becomes very hard to read.
10353 #
10354 # The readline configure script has already decided that libtermcap
10355 # was enough for its purposes, and so decided to build readline using
10356 # libtermcap. Since the TUI mode requires curses, building GDB with
10357 # TUI enabled results in both libraries to be used at the same time,
10358 # which is not allowed. This basically means that GDB with TUI is
10359 # broken on alpha-osf.
10360
10361 case $host_os in
10362 alpha*-*-osf* )
10363 if "$enable_tui" = "yes"; then
10364 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10365 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10366 { (exit 1); exit 1; }; }
10367 fi
10368 if "$enable_tui" = "auto"; then
10369 enable_tui=no
10370 fi
10371 ;;
10372 esac
10373
10374 # For the TUI, we need enhanced curses functionality.
10375 if test x"$enable_tui" != xno; then
10376 prefer_curses=yes
10377 fi
10378
10379 curses_found=no
10380 if test x"$prefer_curses" = xyes; then
10381 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10382 # curses library because the latter might not provide all the
10383 # functionality we need. However, this leads to problems on systems
10384 # where the linker searches /usr/local/lib, but the compiler doesn't
10385 # search /usr/local/include, if ncurses is installed in /usr/local. A
10386 # default installation of ncurses on alpha*-dec-osf* will lead to such
10387 # a situation.
10388 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10389 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10390 if test "${ac_cv_search_waddstr+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 ac_func_search_save_LIBS=$LIBS
10394 ac_cv_search_waddstr=no
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h. */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10408 char waddstr ();
10409 int
10410 main ()
10411 {
10412 waddstr ();
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_search_waddstr="none required"
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 fi
10445 rm -f conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 if test "$ac_cv_search_waddstr" = no; then
10448 for ac_lib in ncurses cursesX curses; do
10449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10463 char waddstr ();
10464 int
10465 main ()
10466 {
10467 waddstr ();
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_search_waddstr="-l$ac_lib"
10495 break
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 fi
10501 rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503 done
10504 fi
10505 LIBS=$ac_func_search_save_LIBS
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10508 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10509 if test "$ac_cv_search_waddstr" != no; then
10510 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10511
10512 fi
10513
10514
10515 if test "$ac_cv_search_waddstr" != no; then
10516 curses_found=yes
10517 fi
10518 fi
10519
10520 # Check whether we should enable the TUI, but only do so if we really
10521 # can.
10522 if test x"$enable_tui" != xno; then
10523 if test -d $srcdir/tui; then
10524 if test "$curses_found" != no; then
10525 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10526 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10527 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10528 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10529 CONFIG_ALL="${CONFIG_ALL} all-tui"
10530 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10531 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10532 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10533 else
10534 if test x"$enable_tui" = xyes; then
10535 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10536 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10537 { (exit 1); exit 1; }; }
10538 else
10539 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10540 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10541 fi
10542 fi
10543 fi
10544 fi
10545
10546 # Since GDB uses Readline, we need termcap functionality. In many
10547 # cases this will be provided by the curses library, but some systems
10548 # have a seperate termcap library, or no curses library at all.
10549
10550 case $host_os in
10551 cygwin*)
10552 if test -d $srcdir/libtermcap; then
10553 LIBS="../libtermcap/libtermcap.a $LIBS"
10554 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10555 fi ;;
10556 go32* | *djgpp*)
10557 ac_cv_search_tgetent="none required"
10558 ;;
10559 *mingw32*)
10560 ac_cv_search_tgetent="none required"
10561 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10562 ;;
10563 esac
10564
10565 # These are the libraries checked by Readline.
10566 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10567 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10568 if test "${ac_cv_search_tgetent+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 ac_func_search_save_LIBS=$LIBS
10572 ac_cv_search_tgetent=no
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586 char tgetent ();
10587 int
10588 main ()
10589 {
10590 tgetent ();
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_c_werror_flag"
10605 || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_search_tgetent="none required"
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 fi
10623 rm -f conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test "$ac_cv_search_tgetent" = no; then
10626 for ac_lib in termcap tinfo curses ncurses; do
10627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634
10635 /* Override any gcc2 internal prototype to avoid an error. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char tgetent ();
10642 int
10643 main ()
10644 {
10645 tgetent ();
10646 ;
10647 return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_search_tgetent="-l$ac_lib"
10673 break
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 fi
10679 rm -f conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 done
10682 fi
10683 LIBS=$ac_func_search_save_LIBS
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10686 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10687 if test "$ac_cv_search_tgetent" != no; then
10688 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10689
10690 fi
10691
10692
10693 if test "$ac_cv_search_tgetent" = no; then
10694 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10695 echo "$as_me: error: no termcap library found" >&2;}
10696 { (exit 1); exit 1; }; }
10697 fi
10698
10699
10700 # Check whether --with-system-readline or --without-system-readline was given.
10701 if test "${with_system_readline+set}" = set; then
10702 withval="$with_system_readline"
10703
10704 fi;
10705
10706 if test "$with_system_readline" = yes; then
10707 READLINE=-lreadline
10708 READLINE_DEPS=
10709 READLINE_CFLAGS=
10710 else
10711 READLINE='$(READLINE_DIR)/libreadline.a'
10712 READLINE_DEPS='$(READLINE)'
10713 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10714 fi
10715
10716
10717
10718
10719
10720 # Check whether --with-expat or --without-expat was given.
10721 if test "${with_expat+set}" = set; then
10722 withval="$with_expat"
10723
10724 else
10725 with_expat=auto
10726 fi;
10727 echo "$as_me:$LINENO: checking whether to use expat" >&5
10728 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10729 echo "$as_me:$LINENO: result: $with_expat" >&5
10730 echo "${ECHO_T}$with_expat" >&6
10731
10732 if test "${with_expat}" = no; then
10733 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10734 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10735 HAVE_LIBEXPAT=no
10736 else
10737
10738 if test "X$prefix" = "XNONE"; then
10739 acl_final_prefix="$ac_default_prefix"
10740 else
10741 acl_final_prefix="$prefix"
10742 fi
10743 if test "X$exec_prefix" = "XNONE"; then
10744 acl_final_exec_prefix='${prefix}'
10745 else
10746 acl_final_exec_prefix="$exec_prefix"
10747 fi
10748 acl_save_prefix="$prefix"
10749 prefix="$acl_final_prefix"
10750 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10751 prefix="$acl_save_prefix"
10752
10753
10754 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10755 if test "${with_gnu_ld+set}" = set; then
10756 withval="$with_gnu_ld"
10757 test "$withval" = no || with_gnu_ld=yes
10758 else
10759 with_gnu_ld=no
10760 fi;
10761 # Prepare PATH_SEPARATOR.
10762 # The user is always right.
10763 if test "${PATH_SEPARATOR+set}" != set; then
10764 echo "#! /bin/sh" >conf$$.sh
10765 echo "exit 0" >>conf$$.sh
10766 chmod +x conf$$.sh
10767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10768 PATH_SEPARATOR=';'
10769 else
10770 PATH_SEPARATOR=:
10771 fi
10772 rm -f conf$$.sh
10773 fi
10774 ac_prog=ld
10775 if test "$GCC" = yes; then
10776 # Check if gcc -print-prog-name=ld gives a path.
10777 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10778 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10779 case $host in
10780 *-*-mingw*)
10781 # gcc leaves a trailing carriage return which upsets mingw
10782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10783 *)
10784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10785 esac
10786 case $ac_prog in
10787 # Accept absolute paths.
10788 [\\/]* | [A-Za-z]:[\\/]*)
10789 re_direlt='/[^/][^/]*/\.\./'
10790 # Canonicalize the path of ld
10791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10794 done
10795 test -z "$LD" && LD="$ac_prog"
10796 ;;
10797 "")
10798 # If it fails, then pretend we aren't using GCC.
10799 ac_prog=ld
10800 ;;
10801 *)
10802 # If it is relative, then search for the first ld in PATH.
10803 with_gnu_ld=unknown
10804 ;;
10805 esac
10806 elif test "$with_gnu_ld" = yes; then
10807 echo "$as_me:$LINENO: checking for GNU ld" >&5
10808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10809 else
10810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10812 fi
10813 if test "${acl_cv_path_LD+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 if test -z "$LD"; then
10817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10818 for ac_dir in $PATH; do
10819 test -z "$ac_dir" && ac_dir=.
10820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10821 acl_cv_path_LD="$ac_dir/$ac_prog"
10822 # Check to see if the program is GNU ld. I'd rather use --version,
10823 # but apparently some GNU ld's only accept -v.
10824 # Break only if it was the GNU/non-GNU ld that we prefer.
10825 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10826 test "$with_gnu_ld" != no && break
10827 else
10828 test "$with_gnu_ld" != yes && break
10829 fi
10830 fi
10831 done
10832 IFS="$ac_save_ifs"
10833 else
10834 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10835 fi
10836 fi
10837
10838 LD="$acl_cv_path_LD"
10839 if test -n "$LD"; then
10840 echo "$as_me:$LINENO: result: $LD" >&5
10841 echo "${ECHO_T}$LD" >&6
10842 else
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10845 fi
10846 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10847 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10848 { (exit 1); exit 1; }; }
10849 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10850 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10851 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10855 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10856 acl_cv_prog_gnu_ld=yes
10857 else
10858 acl_cv_prog_gnu_ld=no
10859 fi
10860 fi
10861 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10862 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10863 with_gnu_ld=$acl_cv_prog_gnu_ld
10864
10865
10866
10867 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10868 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10869 if test "${acl_cv_rpath+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872
10873 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10874 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10875 . ./conftest.sh
10876 rm -f ./conftest.sh
10877 acl_cv_rpath=done
10878
10879 fi
10880 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10881 echo "${ECHO_T}$acl_cv_rpath" >&6
10882 wl="$acl_cv_wl"
10883 libext="$acl_cv_libext"
10884 shlibext="$acl_cv_shlibext"
10885 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10886 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10887 hardcode_direct="$acl_cv_hardcode_direct"
10888 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10889 # Check whether --enable-rpath or --disable-rpath was given.
10890 if test "${enable_rpath+set}" = set; then
10891 enableval="$enable_rpath"
10892 :
10893 else
10894 enable_rpath=yes
10895 fi;
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905 use_additional=yes
10906
10907 acl_save_prefix="$prefix"
10908 prefix="$acl_final_prefix"
10909 acl_save_exec_prefix="$exec_prefix"
10910 exec_prefix="$acl_final_exec_prefix"
10911
10912 eval additional_includedir=\"$includedir\"
10913 eval additional_libdir=\"$libdir\"
10914
10915 exec_prefix="$acl_save_exec_prefix"
10916 prefix="$acl_save_prefix"
10917
10918
10919 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10920 if test "${with_libexpat_prefix+set}" = set; then
10921 withval="$with_libexpat_prefix"
10922
10923 if test "X$withval" = "Xno"; then
10924 use_additional=no
10925 else
10926 if test "X$withval" = "X"; then
10927
10928 acl_save_prefix="$prefix"
10929 prefix="$acl_final_prefix"
10930 acl_save_exec_prefix="$exec_prefix"
10931 exec_prefix="$acl_final_exec_prefix"
10932
10933 eval additional_includedir=\"$includedir\"
10934 eval additional_libdir=\"$libdir\"
10935
10936 exec_prefix="$acl_save_exec_prefix"
10937 prefix="$acl_save_prefix"
10938
10939 else
10940 additional_includedir="$withval/include"
10941 additional_libdir="$withval/lib"
10942 fi
10943 fi
10944
10945 fi;
10946 LIBEXPAT=
10947 LTLIBEXPAT=
10948 INCEXPAT=
10949 rpathdirs=
10950 ltrpathdirs=
10951 names_already_handled=
10952 names_next_round='expat '
10953 while test -n "$names_next_round"; do
10954 names_this_round="$names_next_round"
10955 names_next_round=
10956 for name in $names_this_round; do
10957 already_handled=
10958 for n in $names_already_handled; do
10959 if test "$n" = "$name"; then
10960 already_handled=yes
10961 break
10962 fi
10963 done
10964 if test -z "$already_handled"; then
10965 names_already_handled="$names_already_handled $name"
10966 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10967 eval value=\"\$HAVE_LIB$uppername\"
10968 if test -n "$value"; then
10969 if test "$value" = yes; then
10970 eval value=\"\$LIB$uppername\"
10971 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10972 eval value=\"\$LTLIB$uppername\"
10973 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10974 else
10975 :
10976 fi
10977 else
10978 found_dir=
10979 found_la=
10980 found_so=
10981 found_a=
10982 if test $use_additional = yes; then
10983 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10984 found_dir="$additional_libdir"
10985 found_so="$additional_libdir/lib$name.$shlibext"
10986 if test -f "$additional_libdir/lib$name.la"; then
10987 found_la="$additional_libdir/lib$name.la"
10988 fi
10989 else
10990 if test -f "$additional_libdir/lib$name.$libext"; then
10991 found_dir="$additional_libdir"
10992 found_a="$additional_libdir/lib$name.$libext"
10993 if test -f "$additional_libdir/lib$name.la"; then
10994 found_la="$additional_libdir/lib$name.la"
10995 fi
10996 fi
10997 fi
10998 fi
10999 if test "X$found_dir" = "X"; then
11000 for x in $LDFLAGS $LTLIBEXPAT; do
11001
11002 acl_save_prefix="$prefix"
11003 prefix="$acl_final_prefix"
11004 acl_save_exec_prefix="$exec_prefix"
11005 exec_prefix="$acl_final_exec_prefix"
11006 eval x=\"$x\"
11007 exec_prefix="$acl_save_exec_prefix"
11008 prefix="$acl_save_prefix"
11009
11010 case "$x" in
11011 -L*)
11012 dir=`echo "X$x" | sed -e 's/^X-L//'`
11013 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11014 found_dir="$dir"
11015 found_so="$dir/lib$name.$shlibext"
11016 if test -f "$dir/lib$name.la"; then
11017 found_la="$dir/lib$name.la"
11018 fi
11019 else
11020 if test -f "$dir/lib$name.$libext"; then
11021 found_dir="$dir"
11022 found_a="$dir/lib$name.$libext"
11023 if test -f "$dir/lib$name.la"; then
11024 found_la="$dir/lib$name.la"
11025 fi
11026 fi
11027 fi
11028 ;;
11029 esac
11030 if test "X$found_dir" != "X"; then
11031 break
11032 fi
11033 done
11034 fi
11035 if test "X$found_dir" != "X"; then
11036 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11037 if test "X$found_so" != "X"; then
11038 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11039 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11040 else
11041 haveit=
11042 for x in $ltrpathdirs; do
11043 if test "X$x" = "X$found_dir"; then
11044 haveit=yes
11045 break
11046 fi
11047 done
11048 if test -z "$haveit"; then
11049 ltrpathdirs="$ltrpathdirs $found_dir"
11050 fi
11051 if test "$hardcode_direct" = yes; then
11052 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11053 else
11054 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11055 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11056 haveit=
11057 for x in $rpathdirs; do
11058 if test "X$x" = "X$found_dir"; then
11059 haveit=yes
11060 break
11061 fi
11062 done
11063 if test -z "$haveit"; then
11064 rpathdirs="$rpathdirs $found_dir"
11065 fi
11066 else
11067 haveit=
11068 for x in $LDFLAGS $LIBEXPAT; do
11069
11070 acl_save_prefix="$prefix"
11071 prefix="$acl_final_prefix"
11072 acl_save_exec_prefix="$exec_prefix"
11073 exec_prefix="$acl_final_exec_prefix"
11074 eval x=\"$x\"
11075 exec_prefix="$acl_save_exec_prefix"
11076 prefix="$acl_save_prefix"
11077
11078 if test "X$x" = "X-L$found_dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11085 fi
11086 if test "$hardcode_minus_L" != no; then
11087 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11088 else
11089 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11090 fi
11091 fi
11092 fi
11093 fi
11094 else
11095 if test "X$found_a" != "X"; then
11096 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11097 else
11098 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11099 fi
11100 fi
11101 additional_includedir=
11102 case "$found_dir" in
11103 */lib | */lib/)
11104 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11105 additional_includedir="$basedir/include"
11106 ;;
11107 esac
11108 if test "X$additional_includedir" != "X"; then
11109 if test "X$additional_includedir" != "X/usr/include"; then
11110 haveit=
11111 if test "X$additional_includedir" = "X/usr/local/include"; then
11112 if test -n "$GCC"; then
11113 case $host_os in
11114 linux*) haveit=yes;;
11115 esac
11116 fi
11117 fi
11118 if test -z "$haveit"; then
11119 for x in $CPPFLAGS $INCEXPAT; do
11120
11121 acl_save_prefix="$prefix"
11122 prefix="$acl_final_prefix"
11123 acl_save_exec_prefix="$exec_prefix"
11124 exec_prefix="$acl_final_exec_prefix"
11125 eval x=\"$x\"
11126 exec_prefix="$acl_save_exec_prefix"
11127 prefix="$acl_save_prefix"
11128
11129 if test "X$x" = "X-I$additional_includedir"; then
11130 haveit=yes
11131 break
11132 fi
11133 done
11134 if test -z "$haveit"; then
11135 if test -d "$additional_includedir"; then
11136 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11137 fi
11138 fi
11139 fi
11140 fi
11141 fi
11142 if test -n "$found_la"; then
11143 save_libdir="$libdir"
11144 case "$found_la" in
11145 */* | *\\*) . "$found_la" ;;
11146 *) . "./$found_la" ;;
11147 esac
11148 libdir="$save_libdir"
11149 for dep in $dependency_libs; do
11150 case "$dep" in
11151 -L*)
11152 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11153 if test "X$additional_libdir" != "X/usr/lib"; then
11154 haveit=
11155 if test "X$additional_libdir" = "X/usr/local/lib"; then
11156 if test -n "$GCC"; then
11157 case $host_os in
11158 linux*) haveit=yes;;
11159 esac
11160 fi
11161 fi
11162 if test -z "$haveit"; then
11163 haveit=
11164 for x in $LDFLAGS $LIBEXPAT; do
11165
11166 acl_save_prefix="$prefix"
11167 prefix="$acl_final_prefix"
11168 acl_save_exec_prefix="$exec_prefix"
11169 exec_prefix="$acl_final_exec_prefix"
11170 eval x=\"$x\"
11171 exec_prefix="$acl_save_exec_prefix"
11172 prefix="$acl_save_prefix"
11173
11174 if test "X$x" = "X-L$additional_libdir"; then
11175 haveit=yes
11176 break
11177 fi
11178 done
11179 if test -z "$haveit"; then
11180 if test -d "$additional_libdir"; then
11181 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11182 fi
11183 fi
11184 haveit=
11185 for x in $LDFLAGS $LTLIBEXPAT; do
11186
11187 acl_save_prefix="$prefix"
11188 prefix="$acl_final_prefix"
11189 acl_save_exec_prefix="$exec_prefix"
11190 exec_prefix="$acl_final_exec_prefix"
11191 eval x=\"$x\"
11192 exec_prefix="$acl_save_exec_prefix"
11193 prefix="$acl_save_prefix"
11194
11195 if test "X$x" = "X-L$additional_libdir"; then
11196 haveit=yes
11197 break
11198 fi
11199 done
11200 if test -z "$haveit"; then
11201 if test -d "$additional_libdir"; then
11202 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11203 fi
11204 fi
11205 fi
11206 fi
11207 ;;
11208 -R*)
11209 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11210 if test "$enable_rpath" != no; then
11211 haveit=
11212 for x in $rpathdirs; do
11213 if test "X$x" = "X$dir"; then
11214 haveit=yes
11215 break
11216 fi
11217 done
11218 if test -z "$haveit"; then
11219 rpathdirs="$rpathdirs $dir"
11220 fi
11221 haveit=
11222 for x in $ltrpathdirs; do
11223 if test "X$x" = "X$dir"; then
11224 haveit=yes
11225 break
11226 fi
11227 done
11228 if test -z "$haveit"; then
11229 ltrpathdirs="$ltrpathdirs $dir"
11230 fi
11231 fi
11232 ;;
11233 -l*)
11234 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11235 ;;
11236 *.la)
11237 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11238 ;;
11239 *)
11240 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11241 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11242 ;;
11243 esac
11244 done
11245 fi
11246 else
11247 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11248 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11249 fi
11250 fi
11251 fi
11252 done
11253 done
11254 if test "X$rpathdirs" != "X"; then
11255 if test -n "$hardcode_libdir_separator"; then
11256 alldirs=
11257 for found_dir in $rpathdirs; do
11258 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11259 done
11260 acl_save_libdir="$libdir"
11261 libdir="$alldirs"
11262 eval flag=\"$hardcode_libdir_flag_spec\"
11263 libdir="$acl_save_libdir"
11264 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11265 else
11266 for found_dir in $rpathdirs; do
11267 acl_save_libdir="$libdir"
11268 libdir="$found_dir"
11269 eval flag=\"$hardcode_libdir_flag_spec\"
11270 libdir="$acl_save_libdir"
11271 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11272 done
11273 fi
11274 fi
11275 if test "X$ltrpathdirs" != "X"; then
11276 for found_dir in $ltrpathdirs; do
11277 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11278 done
11279 fi
11280
11281
11282 ac_save_CPPFLAGS="$CPPFLAGS"
11283
11284 for element in $INCEXPAT; do
11285 haveit=
11286 for x in $CPPFLAGS; do
11287
11288 acl_save_prefix="$prefix"
11289 prefix="$acl_final_prefix"
11290 acl_save_exec_prefix="$exec_prefix"
11291 exec_prefix="$acl_final_exec_prefix"
11292 eval x=\"$x\"
11293 exec_prefix="$acl_save_exec_prefix"
11294 prefix="$acl_save_prefix"
11295
11296 if test "X$x" = "X$element"; then
11297 haveit=yes
11298 break
11299 fi
11300 done
11301 if test -z "$haveit"; then
11302 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11303 fi
11304 done
11305
11306
11307 echo "$as_me:$LINENO: checking for libexpat" >&5
11308 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11309 if test "${ac_cv_libexpat+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312
11313 ac_save_LIBS="$LIBS"
11314 LIBS="$LIBS $LIBEXPAT"
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include "expat.h"
11322 int
11323 main ()
11324 {
11325 XML_Parser p = XML_ParserCreate (0);
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest$ac_exeext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_libexpat=yes
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_cv_libexpat=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS="$ac_save_LIBS"
11362
11363 fi
11364 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11365 echo "${ECHO_T}$ac_cv_libexpat" >&6
11366 if test "$ac_cv_libexpat" = yes; then
11367 HAVE_LIBEXPAT=yes
11368
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_LIBEXPAT 1
11371 _ACEOF
11372
11373 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11374 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11375 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11376 echo "${ECHO_T}$LIBEXPAT" >&6
11377 else
11378 HAVE_LIBEXPAT=no
11379 CPPFLAGS="$ac_save_CPPFLAGS"
11380 LIBEXPAT=
11381 LTLIBEXPAT=
11382 fi
11383
11384
11385
11386
11387
11388
11389 if test "$HAVE_LIBEXPAT" != yes; then
11390 if test "$with_expat" = yes; then
11391 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11392 echo "$as_me: error: expat is missing or unusable" >&2;}
11393 { (exit 1); exit 1; }; }
11394 else
11395 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11396 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11397 fi
11398 else
11399 save_LIBS=$LIBS
11400 LIBS="$LIBS $LIBEXPAT"
11401
11402 for ac_func in XML_StopParser
11403 do
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11418 #define $ac_func innocuous_$ac_func
11419
11420 /* System header to define __stub macros and hopefully few prototypes,
11421 which can conflict with char $ac_func (); below.
11422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11423 <limits.h> exists even on freestanding compilers. */
11424
11425 #ifdef __STDC__
11426 # include <limits.h>
11427 #else
11428 # include <assert.h>
11429 #endif
11430
11431 #undef $ac_func
11432
11433 /* Override any gcc2 internal prototype to avoid an error. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 {
11437 #endif
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char $ac_func ();
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11445 choke me
11446 #else
11447 char (*f) () = $ac_func;
11448 #endif
11449 #ifdef __cplusplus
11450 }
11451 #endif
11452
11453 int
11454 main ()
11455 {
11456 return f != $ac_func;
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 eval "$as_ac_var=yes"
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 eval "$as_ac_var=no"
11489 fi
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 fi
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11495 if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11498 _ACEOF
11499
11500 fi
11501 done
11502
11503 LIBS=$save_LIBS
11504 fi
11505 fi
11506
11507
11508
11509
11510 # Check whether --with-python or --without-python was given.
11511 if test "${with_python+set}" = set; then
11512 withval="$with_python"
11513
11514 else
11515 with_python=auto
11516 fi;
11517 echo "$as_me:$LINENO: checking whether to use python" >&5
11518 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11519 echo "$as_me:$LINENO: result: $with_python" >&5
11520 echo "${ECHO_T}$with_python" >&6
11521
11522 if test "${with_python}" = no; then
11523 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11524 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11525 have_libpython=no
11526 else
11527 case "${with_python}" in
11528 yes | auto)
11529 # Leave as empty, use defaults.
11530 python_includes=
11531 python_libs=
11532 ;;
11533 /*)
11534 python_includes="-I${with_python}/include"
11535 python_libs="-L${with_python}/lib"
11536 ;;
11537 *)
11538 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11539 echo "$as_me: error: invalid value for --with-python" >&2;}
11540 { (exit 1); exit 1; }; }
11541 ;;
11542 esac
11543
11544 save_CPPFLAGS=$CPPFLAGS
11545 CPPFLAGS="$CPPFLAGS ${python_includes}"
11546 save_LIBS=$LIBS
11547 LIBS="$LIBS ${python_libs}"
11548 have_libpython=no
11549 if test "${have_libpython}" = no; then
11550
11551 version=python2.6
11552
11553
11554 HAVE_LIBPYTHON2_6=no
11555 echo "$as_me:$LINENO: checking for ${version}" >&5
11556 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11557 save_LIBS=$LIBS
11558 LIBS="$LIBS -l${version}"
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include "${version}/Python.h"
11566 int
11567 main ()
11568 {
11569 Py_Initialize ();
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag"
11584 || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 HAVE_LIBPYTHON2_6=yes
11597 have_libpython=yes
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 LIBS=$save_LIBS
11603 fi
11604 rm -f conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11607 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11608
11609 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11610
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_LIBPYTHON2_6 1
11613 _ACEOF
11614
11615 fi
11616 fi
11617 if test ${have_libpython} = no; then
11618
11619 version=python2.5
11620
11621
11622 HAVE_LIBPYTHON2_5=no
11623 echo "$as_me:$LINENO: checking for ${version}" >&5
11624 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11625 save_LIBS=$LIBS
11626 LIBS="$LIBS -l${version}"
11627 cat >conftest.$ac_ext <<_ACEOF
11628 /* confdefs.h. */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 #include "${version}/Python.h"
11634 int
11635 main ()
11636 {
11637 Py_Initialize ();
11638 ;
11639 return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 HAVE_LIBPYTHON2_5=yes
11665 have_libpython=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 LIBS=$save_LIBS
11671 fi
11672 rm -f conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11675 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11676
11677 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11678
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_LIBPYTHON2_5 1
11681 _ACEOF
11682
11683 fi
11684 fi
11685 if test ${have_libpython} = no; then
11686
11687 version=python2.4
11688
11689
11690 HAVE_LIBPYTHON2_4=no
11691 echo "$as_me:$LINENO: checking for ${version}" >&5
11692 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11693 save_LIBS=$LIBS
11694 LIBS="$LIBS -l${version}"
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include "${version}/Python.h"
11702 int
11703 main ()
11704 {
11705 Py_Initialize ();
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag"
11720 || test ! -s conftest.err'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest$ac_exeext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 HAVE_LIBPYTHON2_4=yes
11733 have_libpython=yes
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 LIBS=$save_LIBS
11739 fi
11740 rm -f conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11743 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11744
11745 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11746
11747 cat >>confdefs.h <<\_ACEOF
11748 #define HAVE_LIBPYTHON2_4 1
11749 _ACEOF
11750
11751 fi
11752 fi
11753 if test ${have_libpython} = no; then
11754 case "${with_python}" in
11755 yes)
11756 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11757 echo "$as_me: error: python is missing or unusable" >&2;}
11758 { (exit 1); exit 1; }; }
11759 ;;
11760 auto)
11761 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11762 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11763 ;;
11764 *)
11765 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11766 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11767 { (exit 1); exit 1; }; }
11768 ;;
11769 esac
11770 CPPFLAGS=$save_CPPFLAGS
11771 LIBS=$save_LIBS
11772 fi
11773 fi
11774
11775 if test "${have_libpython}" = yes; then
11776
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_PYTHON 1
11779 _ACEOF
11780
11781 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11782 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11783 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11784 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11785
11786 # Flags needed to compile Python code (taken from python-config --cflags).
11787 # We cannot call python-config directly because it will output whatever was
11788 # used when compiling the Python interpreter itself, including flags which
11789 # would make the python-related objects be compiled differently from the
11790 # rest of GDB (e.g., -O2 and -fPIC).
11791 if test "${GCC}" = yes; then
11792 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11793 fi
11794
11795 if test "x${tentative_python_cflags}" != x; then
11796 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11797 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11798 for flag in ${tentative_python_cflags}; do
11799 # Check that the compiler accepts it
11800 saved_CFLAGS="$CFLAGS"
11801 CFLAGS="$CFLAGS $flag"
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808
11809 int
11810 main ()
11811 {
11812
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 fi
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 CFLAGS="$saved_CFLAGS"
11847 done
11848 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11849 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11850 fi
11851 else
11852 # Even if Python support is not compiled in, we need to have these files
11853 # included in order to recognize the GDB command "python".
11854 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11855 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11856 fi
11857
11858
11859 # ------------------------- #
11860 # Checks for header files. #
11861 # ------------------------- #
11862
11863
11864
11865
11866
11867
11868 ac_header_dirent=no
11869 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11870 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11871 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11872 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <sys/types.h>
11883 #include <$ac_hdr>
11884
11885 int
11886 main ()
11887 {
11888 if ((DIR *) 0)
11889 return 0;
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_Header=yes"
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 eval "$as_ac_Header=no"
11922 fi
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 fi
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11930 _ACEOF
11931
11932 ac_header_dirent=$ac_hdr; break
11933 fi
11934
11935 done
11936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11937 if test $ac_header_dirent = dirent.h; then
11938 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11940 if test "${ac_cv_search_opendir+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943 ac_func_search_save_LIBS=$LIBS
11944 ac_cv_search_opendir=no
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951
11952 /* Override any gcc2 internal prototype to avoid an error. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 /* We use char because int might match the return type of a gcc2
11957 builtin and then its argument prototype would still apply. */
11958 char opendir ();
11959 int
11960 main ()
11961 {
11962 opendir ();
11963 ;
11964 return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -z "$ac_c_werror_flag"
11977 || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_search_opendir="none required"
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 fi
11995 rm -f conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997 if test "$ac_cv_search_opendir" = no; then
11998 for ac_lib in dir; do
11999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006
12007 /* Override any gcc2 internal prototype to avoid an error. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char opendir ();
12014 int
12015 main ()
12016 {
12017 opendir ();
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024 (eval $ac_link) 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_search_opendir="-l$ac_lib"
12045 break
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 fi
12051 rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 done
12054 fi
12055 LIBS=$ac_func_search_save_LIBS
12056 fi
12057 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12058 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12059 if test "$ac_cv_search_opendir" != no; then
12060 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12061
12062 fi
12063
12064 else
12065 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12067 if test "${ac_cv_search_opendir+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 else
12070 ac_func_search_save_LIBS=$LIBS
12071 ac_cv_search_opendir=no
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078
12079 /* Override any gcc2 internal prototype to avoid an error. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char opendir ();
12086 int
12087 main ()
12088 {
12089 opendir ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest$ac_exeext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_search_opendir="none required"
12117 else
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 fi
12122 rm -f conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 if test "$ac_cv_search_opendir" = no; then
12125 for ac_lib in x; do
12126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133
12134 /* Override any gcc2 internal prototype to avoid an error. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 /* We use char because int might match the return type of a gcc2
12139 builtin and then its argument prototype would still apply. */
12140 char opendir ();
12141 int
12142 main ()
12143 {
12144 opendir ();
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -z "$ac_c_werror_flag"
12159 || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_cv_search_opendir="-l$ac_lib"
12172 break
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 fi
12178 rm -f conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 done
12181 fi
12182 LIBS=$ac_func_search_save_LIBS
12183 fi
12184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12186 if test "$ac_cv_search_opendir" != no; then
12187 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12188
12189 fi
12190
12191 fi
12192
12193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12195 if test "${ac_cv_header_stat_broken+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <sys/types.h>
12205 #include <sys/stat.h>
12206
12207 #if defined(S_ISBLK) && defined(S_IFDIR)
12208 # if S_ISBLK (S_IFDIR)
12209 You lose.
12210 # endif
12211 #endif
12212
12213 #if defined(S_ISBLK) && defined(S_IFCHR)
12214 # if S_ISBLK (S_IFCHR)
12215 You lose.
12216 # endif
12217 #endif
12218
12219 #if defined(S_ISLNK) && defined(S_IFREG)
12220 # if S_ISLNK (S_IFREG)
12221 You lose.
12222 # endif
12223 #endif
12224
12225 #if defined(S_ISSOCK) && defined(S_IFREG)
12226 # if S_ISSOCK (S_IFREG)
12227 You lose.
12228 # endif
12229 #endif
12230
12231 _ACEOF
12232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12233 $EGREP "You lose" >/dev/null 2>&1; then
12234 ac_cv_header_stat_broken=yes
12235 else
12236 ac_cv_header_stat_broken=no
12237 fi
12238 rm -f conftest*
12239
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12243 if test $ac_cv_header_stat_broken = yes; then
12244
12245 cat >>confdefs.h <<\_ACEOF
12246 #define STAT_MACROS_BROKEN 1
12247 _ACEOF
12248
12249 fi
12250
12251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12253 if test "${ac_cv_header_stdc+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h. */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 #include <stdlib.h>
12263 #include <stdarg.h>
12264 #include <string.h>
12265 #include <float.h>
12266
12267 int
12268 main ()
12269 {
12270
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_header_stdc=yes
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_header_stdc=no
12303 fi
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305
12306 if test $ac_cv_header_stdc = yes; then
12307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
12315
12316 _ACEOF
12317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12318 $EGREP "memchr" >/dev/null 2>&1; then
12319 :
12320 else
12321 ac_cv_header_stdc=no
12322 fi
12323 rm -f conftest*
12324
12325 fi
12326
12327 if test $ac_cv_header_stdc = yes; then
12328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <stdlib.h>
12336
12337 _ACEOF
12338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12339 $EGREP "free" >/dev/null 2>&1; then
12340 :
12341 else
12342 ac_cv_header_stdc=no
12343 fi
12344 rm -f conftest*
12345
12346 fi
12347
12348 if test $ac_cv_header_stdc = yes; then
12349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12350 if test "$cross_compiling" = yes; then
12351 :
12352 else
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h. */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 #include <ctype.h>
12360 #if ((' ' & 0x0FF) == 0x020)
12361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12363 #else
12364 # define ISLOWER(c) \
12365 (('a' <= (c) && (c) <= 'i') \
12366 || ('j' <= (c) && (c) <= 'r') \
12367 || ('s' <= (c) && (c) <= 'z'))
12368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12369 #endif
12370
12371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12372 int
12373 main ()
12374 {
12375 int i;
12376 for (i = 0; i < 256; i++)
12377 if (XOR (islower (i), ISLOWER (i))
12378 || toupper (i) != TOUPPER (i))
12379 exit(2);
12380 exit (0);
12381 }
12382 _ACEOF
12383 rm -f conftest$ac_exeext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12385 (eval $ac_link) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 :
12395 else
12396 echo "$as_me: program exited with status $ac_status" >&5
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ( exit $ac_status )
12401 ac_cv_header_stdc=no
12402 fi
12403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12404 fi
12405 fi
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12408 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12409 if test $ac_cv_header_stdc = yes; then
12410
12411 cat >>confdefs.h <<\_ACEOF
12412 #define STDC_HEADERS 1
12413 _ACEOF
12414
12415 fi
12416
12417 # elf_hp.h is for HP/UX 64-bit shared library support.
12418 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12419 # unconditionally, so what's the point in checking these?
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12458 thread_db.h gnu/libc-version.h signal.h stddef.h \
12459 stdlib.h string.h memory.h strings.h sys/fault.h \
12460 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12461 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12462 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12463 sys/types.h sys/wait.h wait.h termios.h termio.h \
12464 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12465 do
12466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12468 echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 fi
12473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12475 else
12476 # Is the header compilable?
12477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 #include <$ac_header>
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_header_compiler=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 ac_header_compiler=no
12516 fi
12517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6
12520
12521 # Is the header present?
12522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <$ac_header>
12531 _ACEOF
12532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } >/dev/null; then
12540 if test -s conftest.err; then
12541 ac_cpp_err=$ac_c_preproc_warn_flag
12542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12543 else
12544 ac_cpp_err=
12545 fi
12546 else
12547 ac_cpp_err=yes
12548 fi
12549 if test -z "$ac_cpp_err"; then
12550 ac_header_preproc=yes
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_header_preproc=no
12556 fi
12557 rm -f conftest.err conftest.$ac_ext
12558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12559 echo "${ECHO_T}$ac_header_preproc" >&6
12560
12561 # So? What about this header?
12562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12563 yes:no: )
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12568 ac_header_preproc=yes
12569 ;;
12570 no:yes:* )
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12583 (
12584 cat <<\_ASBOX
12585 ## ------------------------------------------ ##
12586 ## Report this to the AC_PACKAGE_NAME lists. ##
12587 ## ------------------------------------------ ##
12588 _ASBOX
12589 ) |
12590 sed "s/^/$as_me: WARNING: /" >&2
12591 ;;
12592 esac
12593 echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598 eval "$as_ac_Header=\$ac_header_preproc"
12599 fi
12600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12602
12603 fi
12604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12605 cat >>confdefs.h <<_ACEOF
12606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12607 _ACEOF
12608
12609 fi
12610
12611 done
12612
12613
12614 for ac_header in link.h
12615 do
12616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617 echo "$as_me:$LINENO: checking for $ac_header" >&5
12618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #if HAVE_SYS_TYPES_H
12629 # include <sys/types.h>
12630 #endif
12631 #if HAVE_NLIST_H
12632 # include <nlist.h>
12633 #endif
12634
12635
12636 #include <$ac_header>
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 eval "$as_ac_Header=yes"
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 eval "$as_ac_Header=no"
12666 fi
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 fi
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674 _ACEOF
12675
12676 fi
12677
12678 done
12679
12680
12681 for ac_header in sys/proc.h
12682 do
12683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12684 echo "$as_me:$LINENO: checking for $ac_header" >&5
12685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #if HAVE_SYS_PARAM_H
12696 # include <sys/param.h>
12697 #endif
12698
12699
12700 #include <$ac_header>
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag"
12712 || test ! -s conftest.err'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "$as_ac_Header=yes"
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 eval "$as_ac_Header=no"
12730 fi
12731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12738 _ACEOF
12739
12740 fi
12741
12742 done
12743
12744
12745 for ac_header in sys/user.h
12746 do
12747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #if HAVE_SYS_PARAM_H
12760 # include <sys/param.h>
12761 #endif
12762
12763
12764 #include <$ac_header>
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest.$ac_objext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_Header=yes"
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793 eval "$as_ac_Header=no"
12794 fi
12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12796 fi
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12800 cat >>confdefs.h <<_ACEOF
12801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12802 _ACEOF
12803
12804 fi
12805
12806 done
12807
12808
12809 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12810 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12811 # think that we don't have <curses.h> if we're using GCC.
12812 case $host_os in
12813 solaris2.[789])
12814 if test "$GCC" = yes; then
12815
12816 cat >>confdefs.h <<\_ACEOF
12817 #define _MSE_INT_H 1
12818 _ACEOF
12819
12820 fi ;;
12821 esac
12822
12823
12824
12825
12826
12827 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12828 do
12829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12831 echo "$as_me:$LINENO: checking for $ac_header" >&5
12832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 fi
12836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12838 else
12839 # Is the header compilable?
12840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12849 #include <$ac_header>
12850 _ACEOF
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_header_compiler=yes
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_header_compiler=no
12879 fi
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12882 echo "${ECHO_T}$ac_header_compiler" >&6
12883
12884 # Is the header present?
12885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h. */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 #include <$ac_header>
12894 _ACEOF
12895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } >/dev/null; then
12903 if test -s conftest.err; then
12904 ac_cpp_err=$ac_c_preproc_warn_flag
12905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12906 else
12907 ac_cpp_err=
12908 fi
12909 else
12910 ac_cpp_err=yes
12911 fi
12912 if test -z "$ac_cpp_err"; then
12913 ac_header_preproc=yes
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_header_preproc=no
12919 fi
12920 rm -f conftest.err conftest.$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12922 echo "${ECHO_T}$ac_header_preproc" >&6
12923
12924 # So? What about this header?
12925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12926 yes:no: )
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12931 ac_header_preproc=yes
12932 ;;
12933 no:yes:* )
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12946 (
12947 cat <<\_ASBOX
12948 ## ------------------------------------------ ##
12949 ## Report this to the AC_PACKAGE_NAME lists. ##
12950 ## ------------------------------------------ ##
12951 _ASBOX
12952 ) |
12953 sed "s/^/$as_me: WARNING: /" >&2
12954 ;;
12955 esac
12956 echo "$as_me:$LINENO: checking for $ac_header" >&5
12957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 eval "$as_ac_Header=\$ac_header_preproc"
12962 fi
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965
12966 fi
12967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12968 cat >>confdefs.h <<_ACEOF
12969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12970 _ACEOF
12971
12972 fi
12973
12974 done
12975
12976
12977 for ac_header in term.h
12978 do
12979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 echo "$as_me:$LINENO: checking for $ac_header" >&5
12981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h. */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 #if HAVE_CURSES_H
12992 # include <curses.h>
12993 #endif
12994
12995
12996 #include <$ac_header>
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_c_werror_flag"
13008 || test ! -s conftest.err'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 eval "$as_ac_Header=yes"
13021 else
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025 eval "$as_ac_Header=no"
13026 fi
13027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13028 fi
13029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13032 cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13034 _ACEOF
13035
13036 fi
13037
13038 done
13039
13040
13041 # ------------------------- #
13042 # Checks for declarations. #
13043 # ------------------------- #
13044
13045 echo "$as_me:$LINENO: checking whether free is declared" >&5
13046 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13047 if test "${ac_cv_have_decl_free+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 $ac_includes_default
13057 int
13058 main ()
13059 {
13060 #ifndef free
13061 char *p = (char *) free;
13062 #endif
13063
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest.$ac_objext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_have_decl_free=yes
13091 else
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 ac_cv_have_decl_free=no
13096 fi
13097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13100 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13101 if test $ac_cv_have_decl_free = yes; then
13102
13103 cat >>confdefs.h <<_ACEOF
13104 #define HAVE_DECL_FREE 1
13105 _ACEOF
13106
13107
13108 else
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_DECL_FREE 0
13111 _ACEOF
13112
13113
13114 fi
13115 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13116 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13117 if test "${ac_cv_have_decl_malloc+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h. */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 $ac_includes_default
13127 int
13128 main ()
13129 {
13130 #ifndef malloc
13131 char *p = (char *) malloc;
13132 #endif
13133
13134 ;
13135 return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_have_decl_malloc=yes
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_cv_have_decl_malloc=no
13166 fi
13167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13168 fi
13169 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13170 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13171 if test $ac_cv_have_decl_malloc = yes; then
13172
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_MALLOC 1
13175 _ACEOF
13176
13177
13178 else
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_DECL_MALLOC 0
13181 _ACEOF
13182
13183
13184 fi
13185 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13186 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13187 if test "${ac_cv_have_decl_realloc+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13197 int
13198 main ()
13199 {
13200 #ifndef realloc
13201 char *p = (char *) realloc;
13202 #endif
13203
13204 ;
13205 return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_have_decl_realloc=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 ac_cv_have_decl_realloc=no
13236 fi
13237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13238 fi
13239 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13240 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13241 if test $ac_cv_have_decl_realloc = yes; then
13242
13243 cat >>confdefs.h <<_ACEOF
13244 #define HAVE_DECL_REALLOC 1
13245 _ACEOF
13246
13247
13248 else
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_DECL_REALLOC 0
13251 _ACEOF
13252
13253
13254 fi
13255 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13256 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13257 if test "${ac_cv_have_decl_strerror+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h. */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 int
13268 main ()
13269 {
13270 #ifndef strerror
13271 char *p = (char *) strerror;
13272 #endif
13273
13274 ;
13275 return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_have_decl_strerror=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ac_cv_have_decl_strerror=no
13306 fi
13307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13308 fi
13309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13310 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13311 if test $ac_cv_have_decl_strerror = yes; then
13312
13313 cat >>confdefs.h <<_ACEOF
13314 #define HAVE_DECL_STRERROR 1
13315 _ACEOF
13316
13317
13318 else
13319 cat >>confdefs.h <<_ACEOF
13320 #define HAVE_DECL_STRERROR 0
13321 _ACEOF
13322
13323
13324 fi
13325 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13326 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13327 if test "${ac_cv_have_decl_strstr+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13337 int
13338 main ()
13339 {
13340 #ifndef strstr
13341 char *p = (char *) strstr;
13342 #endif
13343
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag"
13358 || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_have_decl_strstr=yes
13371 else
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 ac_cv_have_decl_strstr=no
13376 fi
13377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13380 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13381 if test $ac_cv_have_decl_strstr = yes; then
13382
13383 cat >>confdefs.h <<_ACEOF
13384 #define HAVE_DECL_STRSTR 1
13385 _ACEOF
13386
13387
13388 else
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_DECL_STRSTR 0
13391 _ACEOF
13392
13393
13394 fi
13395 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13396 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13397 if test "${ac_cv_have_decl_getopt+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400 cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h. */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13407 int
13408 main ()
13409 {
13410 #ifndef getopt
13411 char *p = (char *) getopt;
13412 #endif
13413
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_have_decl_getopt=yes
13441 else
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_cv_have_decl_getopt=no
13446 fi
13447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13450 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13451 if test $ac_cv_have_decl_getopt = yes; then
13452
13453 cat >>confdefs.h <<_ACEOF
13454 #define HAVE_DECL_GETOPT 1
13455 _ACEOF
13456
13457
13458 else
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_DECL_GETOPT 0
13461 _ACEOF
13462
13463
13464 fi
13465 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13466 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13467 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13477 int
13478 main ()
13479 {
13480 #ifndef snprintf
13481 char *p = (char *) snprintf;
13482 #endif
13483
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag"
13498 || test ! -s conftest.err'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_have_decl_snprintf=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_have_decl_snprintf=no
13516 fi
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13520 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13521 if test $ac_cv_have_decl_snprintf = yes; then
13522
13523 cat >>confdefs.h <<_ACEOF
13524 #define HAVE_DECL_SNPRINTF 1
13525 _ACEOF
13526
13527
13528 else
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_DECL_SNPRINTF 0
13531 _ACEOF
13532
13533
13534 fi
13535 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13536 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13537 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 int
13548 main ()
13549 {
13550 #ifndef vsnprintf
13551 char *p = (char *) vsnprintf;
13552 #endif
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag"
13568 || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_have_decl_vsnprintf=yes
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 ac_cv_have_decl_vsnprintf=no
13586 fi
13587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13588 fi
13589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13590 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13591 if test $ac_cv_have_decl_vsnprintf = yes; then
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_DECL_VSNPRINTF 1
13595 _ACEOF
13596
13597
13598 else
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_DECL_VSNPRINTF 0
13601 _ACEOF
13602
13603
13604 fi
13605
13606
13607
13608 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13609 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13610 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <locale.h>
13620 int
13621 main ()
13622 {
13623 return LC_MESSAGES
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 rm -f conftest.$ac_objext conftest$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 am_cv_val_LC_MESSAGES=yes
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 am_cv_val_LC_MESSAGES=no
13656 fi
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 fi
13660 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13661 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13662 if test $am_cv_val_LC_MESSAGES = yes; then
13663
13664 cat >>confdefs.h <<\_ACEOF
13665 #define HAVE_LC_MESSAGES 1
13666 _ACEOF
13667
13668 fi
13669
13670
13671 # ----------------------- #
13672 # Checks for structures. #
13673 # ----------------------- #
13674
13675 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13676 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13677 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13687 int
13688 main ()
13689 {
13690 static struct stat ac_aggr;
13691 if (ac_aggr.st_blocks)
13692 return 0;
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag"
13707 || test ! -s conftest.err'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_member_struct_stat_st_blocks=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13731 int
13732 main ()
13733 {
13734 static struct stat ac_aggr;
13735 if (sizeof ac_aggr.st_blocks)
13736 return 0;
13737 ;
13738 return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag"
13751 || test ! -s conftest.err'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_member_struct_stat_st_blocks=yes
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768 ac_cv_member_struct_stat_st_blocks=no
13769 fi
13770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13773 fi
13774 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13775 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13776 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13777
13778 cat >>confdefs.h <<_ACEOF
13779 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13780 _ACEOF
13781
13782
13783 fi
13784 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13785 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13786 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789 cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h. */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 $ac_includes_default
13796 int
13797 main ()
13798 {
13799 static struct stat ac_aggr;
13800 if (ac_aggr.st_blksize)
13801 return 0;
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_member_struct_stat_st_blksize=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13840 int
13841 main ()
13842 {
13843 static struct stat ac_aggr;
13844 if (sizeof ac_aggr.st_blksize)
13845 return 0;
13846 ;
13847 return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13853 ac_status=$?
13854 grep -v '^ *+' conftest.er1 >conftest.err
13855 rm -f conftest.er1
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -z "$ac_c_werror_flag"
13860 || test ! -s conftest.err'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_member_struct_stat_st_blksize=yes
13873 else
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877 ac_cv_member_struct_stat_st_blksize=no
13878 fi
13879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13884 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13885 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13886
13887 cat >>confdefs.h <<_ACEOF
13888 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13889 _ACEOF
13890
13891
13892 fi
13893
13894
13895 # ------------------ #
13896 # Checks for types. #
13897 # ------------------ #
13898
13899 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13900 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13901 if test "${ac_cv_type_signal+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <sys/types.h>
13911 #include <signal.h>
13912 #ifdef signal
13913 # undef signal
13914 #endif
13915 #ifdef __cplusplus
13916 extern "C" void (*signal (int, void (*)(int)))(int);
13917 #else
13918 void (*signal ()) ();
13919 #endif
13920
13921 int
13922 main ()
13923 {
13924 int i;
13925 ;
13926 return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_type_signal=void
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 ac_cv_type_signal=int
13957 fi
13958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13961 echo "${ECHO_T}$ac_cv_type_signal" >&6
13962
13963 cat >>confdefs.h <<_ACEOF
13964 #define RETSIGTYPE $ac_cv_type_signal
13965 _ACEOF
13966
13967
13968 echo "$as_me:$LINENO: checking for socklen_t" >&5
13969 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13970 if test "${ac_cv_type_socklen_t+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #include <sys/socket.h>
13981
13982
13983 int
13984 main ()
13985 {
13986 if ((socklen_t *) 0)
13987 return 0;
13988 if (sizeof (socklen_t))
13989 return 0;
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_type_socklen_t=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_cv_type_socklen_t=no
14022 fi
14023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 fi
14025 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14026 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14027 if test $ac_cv_type_socklen_t = yes; then
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_SOCKLEN_T 1
14031 _ACEOF
14032
14033
14034 fi
14035
14036
14037 # ------------------------------------- #
14038 # Checks for compiler characteristics. #
14039 # ------------------------------------- #
14040
14041 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14042 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14043 if test "${ac_cv_c_const+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052
14053 int
14054 main ()
14055 {
14056 /* FIXME: Include the comments suggested by Paul. */
14057 #ifndef __cplusplus
14058 /* Ultrix mips cc rejects this. */
14059 typedef int charset[2];
14060 const charset x;
14061 /* SunOS 4.1.1 cc rejects this. */
14062 char const *const *ccp;
14063 char **p;
14064 /* NEC SVR4.0.2 mips cc rejects this. */
14065 struct point {int x, y;};
14066 static struct point const zero = {0,0};
14067 /* AIX XL C 1.02.0.0 rejects this.
14068 It does not let you subtract one const X* pointer from another in
14069 an arm of an if-expression whose if-part is not a constant
14070 expression */
14071 const char *g = "string";
14072 ccp = &g + (g ? g-g : 0);
14073 /* HPUX 7.0 cc rejects these. */
14074 ++ccp;
14075 p = (char**) ccp;
14076 ccp = (char const *const *) p;
14077 { /* SCO 3.2v4 cc rejects this. */
14078 char *t;
14079 char const *s = 0 ? (char *) 0 : (char const *) 0;
14080
14081 *t++ = 0;
14082 }
14083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14084 int x[] = {25, 17};
14085 const int *foo = &x[0];
14086 ++foo;
14087 }
14088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14089 typedef const int *iptr;
14090 iptr p = 0;
14091 ++p;
14092 }
14093 { /* AIX XL C 1.02.0.0 rejects this saying
14094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14095 struct s { int j; const int *ap[3]; };
14096 struct s *b; b->j = 5;
14097 }
14098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14099 const int foo = 10;
14100 }
14101 #endif
14102
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_c_const=yes
14130 else
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 ac_cv_c_const=no
14135 fi
14136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14137 fi
14138 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14139 echo "${ECHO_T}$ac_cv_c_const" >&6
14140 if test $ac_cv_c_const = no; then
14141
14142 cat >>confdefs.h <<\_ACEOF
14143 #define const
14144 _ACEOF
14145
14146 fi
14147
14148 echo "$as_me:$LINENO: checking for inline" >&5
14149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14150 if test "${ac_cv_c_inline+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153 ac_cv_c_inline=no
14154 for ac_kw in inline __inline__ __inline; do
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #ifndef __cplusplus
14162 typedef int foo_t;
14163 static $ac_kw foo_t static_foo () {return 0; }
14164 $ac_kw foo_t foo () {return 0; }
14165 #endif
14166
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_c_inline=$ac_kw; break
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 fi
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 done
14198
14199 fi
14200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14201 echo "${ECHO_T}$ac_cv_c_inline" >&6
14202
14203
14204 case $ac_cv_c_inline in
14205 inline | yes) ;;
14206 *)
14207 case $ac_cv_c_inline in
14208 no) ac_val=;;
14209 *) ac_val=$ac_cv_c_inline;;
14210 esac
14211 cat >>confdefs.h <<_ACEOF
14212 #ifndef __cplusplus
14213 #define inline $ac_val
14214 #endif
14215 _ACEOF
14216 ;;
14217 esac
14218
14219 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14220 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14221 if test "${ac_cv_c_bigendian+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224 # See if sys/param.h defines the BYTE_ORDER macro.
14225 cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h. */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #include <sys/param.h>
14233
14234 int
14235 main ()
14236 {
14237 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14238 bogus endian macros
14239 #endif
14240
14241 ;
14242 return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247 (eval $ac_compile) 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -z "$ac_c_werror_flag"
14255 || test ! -s conftest.err'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 # It does; now see whether it defined to BIG_ENDIAN or not.
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <sys/param.h>
14276
14277 int
14278 main ()
14279 {
14280 #if BYTE_ORDER != BIG_ENDIAN
14281 not big endian
14282 #endif
14283
14284 ;
14285 return 0;
14286 }
14287 _ACEOF
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_c_bigendian=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 ac_cv_c_bigendian=no
14316 fi
14317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 # It does not; compile a test program.
14323 if test "$cross_compiling" = yes; then
14324 # try to guess the endianness by grepping values into an object file
14325 ac_cv_c_bigendian=unknown
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14333 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14334 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14335 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14336 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14337 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14338 int
14339 main ()
14340 {
14341 _ascii (); _ebcdic ();
14342 ;
14343 return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
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); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14369 ac_cv_c_bigendian=yes
14370 fi
14371 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14372 if test "$ac_cv_c_bigendian" = unknown; then
14373 ac_cv_c_bigendian=no
14374 else
14375 # finding both strings is unlikely to happen, but who knows?
14376 ac_cv_c_bigendian=unknown
14377 fi
14378 fi
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 fi
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385 else
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 int
14393 main ()
14394 {
14395 /* Are we little or big endian? From Harbison&Steele. */
14396 union
14397 {
14398 long l;
14399 char c[sizeof (long)];
14400 } u;
14401 u.l = 1;
14402 exit (u.c[sizeof (long) - 1] == 1);
14403 }
14404 _ACEOF
14405 rm -f conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_c_bigendian=no
14417 else
14418 echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ( exit $ac_status )
14423 ac_cv_c_bigendian=yes
14424 fi
14425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14431 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14432 case $ac_cv_c_bigendian in
14433 yes)
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define WORDS_BIGENDIAN 1
14437 _ACEOF
14438 ;;
14439 no)
14440 ;;
14441 *)
14442 { { echo "$as_me:$LINENO: error: unknown endianness
14443 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14444 echo "$as_me: error: unknown endianness
14445 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14446 { (exit 1); exit 1; }; } ;;
14447 esac
14448
14449
14450 # ------------------------------ #
14451 # Checks for library functions. #
14452 # ------------------------------ #
14453
14454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14455 # for constant arguments. Useless!
14456 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14457 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14458 if test "${ac_cv_working_alloca_h+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <alloca.h>
14468 int
14469 main ()
14470 {
14471 char *p = (char *) alloca (2 * sizeof (int));
14472 ;
14473 return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_working_alloca_h=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_cv_working_alloca_h=no
14504 fi
14505 rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 fi
14508 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14510 if test $ac_cv_working_alloca_h = yes; then
14511
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_ALLOCA_H 1
14514 _ACEOF
14515
14516 fi
14517
14518 echo "$as_me:$LINENO: checking for alloca" >&5
14519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14520 if test "${ac_cv_func_alloca_works+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 #ifdef __GNUC__
14530 # define alloca __builtin_alloca
14531 #else
14532 # ifdef _MSC_VER
14533 # include <malloc.h>
14534 # define alloca _alloca
14535 # else
14536 # if HAVE_ALLOCA_H
14537 # include <alloca.h>
14538 # else
14539 # ifdef _AIX
14540 #pragma alloca
14541 # else
14542 # ifndef alloca /* predefined by HP cc +Olibcalls */
14543 char *alloca ();
14544 # endif
14545 # endif
14546 # endif
14547 # endif
14548 #endif
14549
14550 int
14551 main ()
14552 {
14553 char *p = (char *) alloca (1);
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_func_alloca_works=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_cv_func_alloca_works=no
14586 fi
14587 rm -f conftest.err conftest.$ac_objext \
14588 conftest$ac_exeext conftest.$ac_ext
14589 fi
14590 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14591 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14592
14593 if test $ac_cv_func_alloca_works = yes; then
14594
14595 cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_ALLOCA 1
14597 _ACEOF
14598
14599 else
14600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14601 # that cause trouble. Some versions do not even contain alloca or
14602 # contain a buggy version. If you still want to use their alloca,
14603 # use ar to extract alloca.o from them instead of compiling alloca.c.
14604
14605 ALLOCA=alloca.$ac_objext
14606
14607 cat >>confdefs.h <<\_ACEOF
14608 #define C_ALLOCA 1
14609 _ACEOF
14610
14611
14612 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14613 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14614 if test "${ac_cv_os_cray+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #if defined(CRAY) && ! defined(CRAY2)
14624 webecray
14625 #else
14626 wenotbecray
14627 #endif
14628
14629 _ACEOF
14630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631 $EGREP "webecray" >/dev/null 2>&1; then
14632 ac_cv_os_cray=yes
14633 else
14634 ac_cv_os_cray=no
14635 fi
14636 rm -f conftest*
14637
14638 fi
14639 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14640 echo "${ECHO_T}$ac_cv_os_cray" >&6
14641 if test $ac_cv_os_cray = yes; then
14642 for ac_func in _getb67 GETB67 getb67; do
14643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14644 echo "$as_me:$LINENO: checking for $ac_func" >&5
14645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14646 if eval "test \"\${$as_ac_var+set}\" = set"; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define $ac_func innocuous_$ac_func
14658
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14663
14664 #ifdef __STDC__
14665 # include <limits.h>
14666 #else
14667 # include <assert.h>
14668 #endif
14669
14670 #undef $ac_func
14671
14672 /* Override any gcc2 internal prototype to avoid an error. */
14673 #ifdef __cplusplus
14674 extern "C"
14675 {
14676 #endif
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14679 char $ac_func ();
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14684 choke me
14685 #else
14686 char (*f) () = $ac_func;
14687 #endif
14688 #ifdef __cplusplus
14689 }
14690 #endif
14691
14692 int
14693 main ()
14694 {
14695 return f != $ac_func;
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 eval "$as_ac_var=yes"
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727 eval "$as_ac_var=no"
14728 fi
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 fi
14732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14734 if test `eval echo '${'$as_ac_var'}'` = yes; then
14735
14736 cat >>confdefs.h <<_ACEOF
14737 #define CRAY_STACKSEG_END $ac_func
14738 _ACEOF
14739
14740 break
14741 fi
14742
14743 done
14744 fi
14745
14746 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14748 if test "${ac_cv_c_stack_direction+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 if test "$cross_compiling" = yes; then
14752 ac_cv_c_stack_direction=0
14753 else
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 int
14761 find_stack_direction ()
14762 {
14763 static char *addr = 0;
14764 auto char dummy;
14765 if (addr == 0)
14766 {
14767 addr = &dummy;
14768 return find_stack_direction ();
14769 }
14770 else
14771 return (&dummy > addr) ? 1 : -1;
14772 }
14773
14774 int
14775 main ()
14776 {
14777 exit (find_stack_direction () < 0);
14778 }
14779 _ACEOF
14780 rm -f conftest$ac_exeext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782 (eval $ac_link) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_c_stack_direction=1
14792 else
14793 echo "$as_me: program exited with status $ac_status" >&5
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ( exit $ac_status )
14798 ac_cv_c_stack_direction=-1
14799 fi
14800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14801 fi
14802 fi
14803 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14804 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14805
14806 cat >>confdefs.h <<_ACEOF
14807 #define STACK_DIRECTION $ac_cv_c_stack_direction
14808 _ACEOF
14809
14810
14811 fi
14812
14813
14814
14815 for ac_header in stdlib.h unistd.h
14816 do
14817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14819 echo "$as_me:$LINENO: checking for $ac_header" >&5
14820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 fi
14824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14826 else
14827 # Is the header compilable?
14828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h. */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 $ac_includes_default
14837 #include <$ac_header>
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_header_compiler=yes
14862 else
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 ac_header_compiler=no
14867 fi
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6
14871
14872 # Is the header present?
14873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <$ac_header>
14882 _ACEOF
14883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14885 ac_status=$?
14886 grep -v '^ *+' conftest.er1 >conftest.err
14887 rm -f conftest.er1
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev/null; then
14891 if test -s conftest.err; then
14892 ac_cpp_err=$ac_c_preproc_warn_flag
14893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14894 else
14895 ac_cpp_err=
14896 fi
14897 else
14898 ac_cpp_err=yes
14899 fi
14900 if test -z "$ac_cpp_err"; then
14901 ac_header_preproc=yes
14902 else
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14905
14906 ac_header_preproc=no
14907 fi
14908 rm -f conftest.err conftest.$ac_ext
14909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6
14911
14912 # So? What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914 yes:no: )
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc=yes
14920 ;;
14921 no:yes:* )
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14934 (
14935 cat <<\_ASBOX
14936 ## ------------------------------------------ ##
14937 ## Report this to the AC_PACKAGE_NAME lists. ##
14938 ## ------------------------------------------ ##
14939 _ASBOX
14940 ) |
14941 sed "s/^/$as_me: WARNING: /" >&2
14942 ;;
14943 esac
14944 echo "$as_me:$LINENO: checking for $ac_header" >&5
14945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 eval "$as_ac_Header=\$ac_header_preproc"
14950 fi
14951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14953
14954 fi
14955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958 _ACEOF
14959
14960 fi
14961
14962 done
14963
14964
14965 for ac_func in getpagesize
14966 do
14967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14968 echo "$as_me:$LINENO: checking for $ac_func" >&5
14969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14970 if eval "test \"\${$as_ac_var+set}\" = set"; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 else
14973 cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h. */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14981 #define $ac_func innocuous_$ac_func
14982
14983 /* System header to define __stub macros and hopefully few prototypes,
14984 which can conflict with char $ac_func (); below.
14985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14986 <limits.h> exists even on freestanding compilers. */
14987
14988 #ifdef __STDC__
14989 # include <limits.h>
14990 #else
14991 # include <assert.h>
14992 #endif
14993
14994 #undef $ac_func
14995
14996 /* Override any gcc2 internal prototype to avoid an error. */
14997 #ifdef __cplusplus
14998 extern "C"
14999 {
15000 #endif
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char $ac_func ();
15004 /* The GNU C library defines this for functions which it implements
15005 to always fail with ENOSYS. Some functions are actually named
15006 something starting with __ and the normal name is an alias. */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 choke me
15009 #else
15010 char (*f) () = $ac_func;
15011 #endif
15012 #ifdef __cplusplus
15013 }
15014 #endif
15015
15016 int
15017 main ()
15018 {
15019 return f != $ac_func;
15020 ;
15021 return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_c_werror_flag"
15034 || test ! -s conftest.err'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest$ac_exeext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 eval "$as_ac_var=yes"
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 eval "$as_ac_var=no"
15052 fi
15053 rm -f conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 fi
15056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15058 if test `eval echo '${'$as_ac_var'}'` = yes; then
15059 cat >>confdefs.h <<_ACEOF
15060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15061 _ACEOF
15062
15063 fi
15064 done
15065
15066 echo "$as_me:$LINENO: checking for working mmap" >&5
15067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 if test "$cross_compiling" = yes; then
15072 ac_cv_func_mmap_fixed_mapped=no
15073 else
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 /* malloc might have been renamed as rpl_malloc. */
15082 #undef malloc
15083
15084 /* Thanks to Mike Haertel and Jim Avera for this test.
15085 Here is a matrix of mmap possibilities:
15086 mmap private not fixed
15087 mmap private fixed at somewhere currently unmapped
15088 mmap private fixed at somewhere already mapped
15089 mmap shared not fixed
15090 mmap shared fixed at somewhere currently unmapped
15091 mmap shared fixed at somewhere already mapped
15092 For private mappings, we should verify that changes cannot be read()
15093 back from the file, nor mmap's back from the file at a different
15094 address. (There have been systems where private was not correctly
15095 implemented like the infamous i386 svr4.0, and systems where the
15096 VM page cache was not coherent with the file system buffer cache
15097 like early versions of FreeBSD and possibly contemporary NetBSD.)
15098 For shared mappings, we should conversely verify that changes get
15099 propagated back to all the places they're supposed to be.
15100
15101 Grep wants private fixed already mapped.
15102 The main things grep needs to know about mmap are:
15103 * does it exist and is it safe to write into the mmap'd area
15104 * how to use it (BSD variants) */
15105
15106 #include <fcntl.h>
15107 #include <sys/mman.h>
15108
15109 #if !STDC_HEADERS && !HAVE_STDLIB_H
15110 char *malloc ();
15111 #endif
15112
15113 /* This mess was copied from the GNU getpagesize.h. */
15114 #if !HAVE_GETPAGESIZE
15115 /* Assume that all systems that can run configure have sys/param.h. */
15116 # if !HAVE_SYS_PARAM_H
15117 # define HAVE_SYS_PARAM_H 1
15118 # endif
15119
15120 # ifdef _SC_PAGESIZE
15121 # define getpagesize() sysconf(_SC_PAGESIZE)
15122 # else /* no _SC_PAGESIZE */
15123 # if HAVE_SYS_PARAM_H
15124 # include <sys/param.h>
15125 # ifdef EXEC_PAGESIZE
15126 # define getpagesize() EXEC_PAGESIZE
15127 # else /* no EXEC_PAGESIZE */
15128 # ifdef NBPG
15129 # define getpagesize() NBPG * CLSIZE
15130 # ifndef CLSIZE
15131 # define CLSIZE 1
15132 # endif /* no CLSIZE */
15133 # else /* no NBPG */
15134 # ifdef NBPC
15135 # define getpagesize() NBPC
15136 # else /* no NBPC */
15137 # ifdef PAGESIZE
15138 # define getpagesize() PAGESIZE
15139 # endif /* PAGESIZE */
15140 # endif /* no NBPC */
15141 # endif /* no NBPG */
15142 # endif /* no EXEC_PAGESIZE */
15143 # else /* no HAVE_SYS_PARAM_H */
15144 # define getpagesize() 8192 /* punt totally */
15145 # endif /* no HAVE_SYS_PARAM_H */
15146 # endif /* no _SC_PAGESIZE */
15147
15148 #endif /* no HAVE_GETPAGESIZE */
15149
15150 int
15151 main ()
15152 {
15153 char *data, *data2, *data3;
15154 int i, pagesize;
15155 int fd;
15156
15157 pagesize = getpagesize ();
15158
15159 /* First, make a file with some known garbage in it. */
15160 data = (char *) malloc (pagesize);
15161 if (!data)
15162 exit (1);
15163 for (i = 0; i < pagesize; ++i)
15164 *(data + i) = rand ();
15165 umask (0);
15166 fd = creat ("conftest.mmap", 0600);
15167 if (fd < 0)
15168 exit (1);
15169 if (write (fd, data, pagesize) != pagesize)
15170 exit (1);
15171 close (fd);
15172
15173 /* Next, try to mmap the file at a fixed address which already has
15174 something else allocated at it. If we can, also make sure that
15175 we see the same garbage. */
15176 fd = open ("conftest.mmap", O_RDWR);
15177 if (fd < 0)
15178 exit (1);
15179 data2 = (char *) malloc (2 * pagesize);
15180 if (!data2)
15181 exit (1);
15182 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15185 exit (1);
15186 for (i = 0; i < pagesize; ++i)
15187 if (*(data + i) != *(data2 + i))
15188 exit (1);
15189
15190 /* Finally, make sure that changes to the mapped area do not
15191 percolate back to the file as seen by read(). (This is a bug on
15192 some variants of i386 svr4.0.) */
15193 for (i = 0; i < pagesize; ++i)
15194 *(data2 + i) = *(data2 + i) + 1;
15195 data3 = (char *) malloc (pagesize);
15196 if (!data3)
15197 exit (1);
15198 if (read (fd, data3, pagesize) != pagesize)
15199 exit (1);
15200 for (i = 0; i < pagesize; ++i)
15201 if (*(data + i) != *(data3 + i))
15202 exit (1);
15203 close (fd);
15204 exit (0);
15205 }
15206 _ACEOF
15207 rm -f conftest$ac_exeext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15209 (eval $ac_link) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_func_mmap_fixed_mapped=yes
15219 else
15220 echo "$as_me: program exited with status $ac_status" >&5
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ( exit $ac_status )
15225 ac_cv_func_mmap_fixed_mapped=no
15226 fi
15227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 fi
15230 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15231 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15232 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15233
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_MMAP 1
15236 _ACEOF
15237
15238 fi
15239 rm -f conftest.mmap
15240
15241 echo "$as_me:$LINENO: checking for pid_t" >&5
15242 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15243 if test "${ac_cv_type_pid_t+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 $ac_includes_default
15253 int
15254 main ()
15255 {
15256 if ((pid_t *) 0)
15257 return 0;
15258 if (sizeof (pid_t))
15259 return 0;
15260 ;
15261 return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266 (eval $ac_compile) 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag"
15274 || test ! -s conftest.err'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest.$ac_objext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_cv_type_pid_t=yes
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_cv_type_pid_t=no
15292 fi
15293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15296 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15297 if test $ac_cv_type_pid_t = yes; then
15298 :
15299 else
15300
15301 cat >>confdefs.h <<_ACEOF
15302 #define pid_t int
15303 _ACEOF
15304
15305 fi
15306
15307
15308
15309 for ac_header in unistd.h vfork.h
15310 do
15311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15313 echo "$as_me:$LINENO: checking for $ac_header" >&5
15314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 fi
15318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15320 else
15321 # Is the header compilable?
15322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h. */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15331 #include <$ac_header>
15332 _ACEOF
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -z "$ac_c_werror_flag"
15343 || test ! -s conftest.err'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_header_compiler=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_header_compiler=no
15361 fi
15362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15364 echo "${ECHO_T}$ac_header_compiler" >&6
15365
15366 # Is the header present?
15367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <$ac_header>
15376 _ACEOF
15377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null; then
15385 if test -s conftest.err; then
15386 ac_cpp_err=$ac_c_preproc_warn_flag
15387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15388 else
15389 ac_cpp_err=
15390 fi
15391 else
15392 ac_cpp_err=yes
15393 fi
15394 if test -z "$ac_cpp_err"; then
15395 ac_header_preproc=yes
15396 else
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 ac_header_preproc=no
15401 fi
15402 rm -f conftest.err conftest.$ac_ext
15403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15404 echo "${ECHO_T}$ac_header_preproc" >&6
15405
15406 # So? What about this header?
15407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15408 yes:no: )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15413 ac_header_preproc=yes
15414 ;;
15415 no:yes:* )
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15428 (
15429 cat <<\_ASBOX
15430 ## ------------------------------------------ ##
15431 ## Report this to the AC_PACKAGE_NAME lists. ##
15432 ## ------------------------------------------ ##
15433 _ASBOX
15434 ) |
15435 sed "s/^/$as_me: WARNING: /" >&2
15436 ;;
15437 esac
15438 echo "$as_me:$LINENO: checking for $ac_header" >&5
15439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 eval "$as_ac_Header=\$ac_header_preproc"
15444 fi
15445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15447
15448 fi
15449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15450 cat >>confdefs.h <<_ACEOF
15451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15452 _ACEOF
15453
15454 fi
15455
15456 done
15457
15458
15459
15460 for ac_func in fork vfork
15461 do
15462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15463 echo "$as_me:$LINENO: checking for $ac_func" >&5
15464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_var+set}\" = set"; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15476 #define $ac_func innocuous_$ac_func
15477
15478 /* System header to define __stub macros and hopefully few prototypes,
15479 which can conflict with char $ac_func (); below.
15480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15481 <limits.h> exists even on freestanding compilers. */
15482
15483 #ifdef __STDC__
15484 # include <limits.h>
15485 #else
15486 # include <assert.h>
15487 #endif
15488
15489 #undef $ac_func
15490
15491 /* Override any gcc2 internal prototype to avoid an error. */
15492 #ifdef __cplusplus
15493 extern "C"
15494 {
15495 #endif
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15498 char $ac_func ();
15499 /* The GNU C library defines this for functions which it implements
15500 to always fail with ENOSYS. Some functions are actually named
15501 something starting with __ and the normal name is an alias. */
15502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15503 choke me
15504 #else
15505 char (*f) () = $ac_func;
15506 #endif
15507 #ifdef __cplusplus
15508 }
15509 #endif
15510
15511 int
15512 main ()
15513 {
15514 return f != $ac_func;
15515 ;
15516 return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 eval "$as_ac_var=yes"
15542 else
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546 eval "$as_ac_var=no"
15547 fi
15548 rm -f conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15550 fi
15551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15553 if test `eval echo '${'$as_ac_var'}'` = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15556 _ACEOF
15557
15558 fi
15559 done
15560
15561 if test "x$ac_cv_func_fork" = xyes; then
15562 echo "$as_me:$LINENO: checking for working fork" >&5
15563 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15564 if test "${ac_cv_func_fork_works+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 if test "$cross_compiling" = yes; then
15568 ac_cv_func_fork_works=cross
15569 else
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* By Ruediger Kuhlmann. */
15572 #include <sys/types.h>
15573 #if HAVE_UNISTD_H
15574 # include <unistd.h>
15575 #endif
15576 /* Some systems only have a dummy stub for fork() */
15577 int main ()
15578 {
15579 if (fork() < 0)
15580 exit (1);
15581 exit (0);
15582 }
15583 _ACEOF
15584 rm -f conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_func_fork_works=yes
15596 else
15597 echo "$as_me: program exited with status $ac_status" >&5
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ( exit $ac_status )
15602 ac_cv_func_fork_works=no
15603 fi
15604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15605 fi
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15608 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15609
15610 else
15611 ac_cv_func_fork_works=$ac_cv_func_fork
15612 fi
15613 if test "x$ac_cv_func_fork_works" = xcross; then
15614 case $host in
15615 *-*-amigaos* | *-*-msdosdjgpp*)
15616 # Override, as these systems have only a dummy fork() stub
15617 ac_cv_func_fork_works=no
15618 ;;
15619 *)
15620 ac_cv_func_fork_works=yes
15621 ;;
15622 esac
15623 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15624 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15625 fi
15626 ac_cv_func_vfork_works=$ac_cv_func_vfork
15627 if test "x$ac_cv_func_vfork" = xyes; then
15628 echo "$as_me:$LINENO: checking for working vfork" >&5
15629 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15630 if test "${ac_cv_func_vfork_works+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_func_vfork_works=cross
15635 else
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Thanks to Paul Eggert for this test. */
15643 #include <stdio.h>
15644 #include <stdlib.h>
15645 #include <sys/types.h>
15646 #include <sys/stat.h>
15647 #include <sys/wait.h>
15648 #if HAVE_UNISTD_H
15649 # include <unistd.h>
15650 #endif
15651 #if HAVE_VFORK_H
15652 # include <vfork.h>
15653 #endif
15654 /* On some sparc systems, changes by the child to local and incoming
15655 argument registers are propagated back to the parent. The compiler
15656 is told about this with #include <vfork.h>, but some compilers
15657 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15658 static variable whose address is put into a register that is
15659 clobbered by the vfork. */
15660 static void
15661 #ifdef __cplusplus
15662 sparc_address_test (int arg)
15663 # else
15664 sparc_address_test (arg) int arg;
15665 #endif
15666 {
15667 static pid_t child;
15668 if (!child) {
15669 child = vfork ();
15670 if (child < 0) {
15671 perror ("vfork");
15672 _exit(2);
15673 }
15674 if (!child) {
15675 arg = getpid();
15676 write(-1, "", 0);
15677 _exit (arg);
15678 }
15679 }
15680 }
15681
15682 int
15683 main ()
15684 {
15685 pid_t parent = getpid ();
15686 pid_t child;
15687
15688 sparc_address_test (0);
15689
15690 child = vfork ();
15691
15692 if (child == 0) {
15693 /* Here is another test for sparc vfork register problems. This
15694 test uses lots of local variables, at least as many local
15695 variables as main has allocated so far including compiler
15696 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15697 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15698 reuse the register of parent for one of the local variables,
15699 since it will think that parent can't possibly be used any more
15700 in this routine. Assigning to the local variable will thus
15701 munge parent in the parent process. */
15702 pid_t
15703 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15704 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15705 /* Convince the compiler that p..p7 are live; otherwise, it might
15706 use the same hardware register for all 8 local variables. */
15707 if (p != p1 || p != p2 || p != p3 || p != p4
15708 || p != p5 || p != p6 || p != p7)
15709 _exit(1);
15710
15711 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15712 from child file descriptors. If the child closes a descriptor
15713 before it execs or exits, this munges the parent's descriptor
15714 as well. Test for this by closing stdout in the child. */
15715 _exit(close(fileno(stdout)) != 0);
15716 } else {
15717 int status;
15718 struct stat st;
15719
15720 while (wait(&status) != child)
15721 ;
15722 exit(
15723 /* Was there some problem with vforking? */
15724 child < 0
15725
15726 /* Did the child fail? (This shouldn't happen.) */
15727 || status
15728
15729 /* Did the vfork/compiler bug occur? */
15730 || parent != getpid()
15731
15732 /* Did the file descriptor bug occur? */
15733 || fstat(fileno(stdout), &st) != 0
15734 );
15735 }
15736 }
15737 _ACEOF
15738 rm -f conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_func_vfork_works=yes
15750 else
15751 echo "$as_me: program exited with status $ac_status" >&5
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ( exit $ac_status )
15756 ac_cv_func_vfork_works=no
15757 fi
15758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 fi
15761 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15762 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15763
15764 fi;
15765 if test "x$ac_cv_func_fork_works" = xcross; then
15766 ac_cv_func_vfork_works=$ac_cv_func_vfork
15767 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15768 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15769 fi
15770
15771 if test "x$ac_cv_func_vfork_works" = xyes; then
15772
15773 cat >>confdefs.h <<\_ACEOF
15774 #define HAVE_WORKING_VFORK 1
15775 _ACEOF
15776
15777 else
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define vfork fork
15781 _ACEOF
15782
15783 fi
15784 if test "x$ac_cv_func_fork_works" = xyes; then
15785
15786 cat >>confdefs.h <<\_ACEOF
15787 #define HAVE_WORKING_FORK 1
15788 _ACEOF
15789
15790 fi
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814 for ac_func in canonicalize_file_name realpath getrusage getuid \
15815 getgid poll pread64 sbrk setpgid setpgrp setsid \
15816 sigaction sigprocmask sigsetmask socketpair syscall \
15817 ttrace wborder setlocale iconvlist libiconvlist btowc
15818 do
15819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15820 echo "$as_me:$LINENO: checking for $ac_func" >&5
15821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_var+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define $ac_func innocuous_$ac_func
15834
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char $ac_func (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15839
15840 #ifdef __STDC__
15841 # include <limits.h>
15842 #else
15843 # include <assert.h>
15844 #endif
15845
15846 #undef $ac_func
15847
15848 /* Override any gcc2 internal prototype to avoid an error. */
15849 #ifdef __cplusplus
15850 extern "C"
15851 {
15852 #endif
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855 char $ac_func ();
15856 /* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15860 choke me
15861 #else
15862 char (*f) () = $ac_func;
15863 #endif
15864 #ifdef __cplusplus
15865 }
15866 #endif
15867
15868 int
15869 main ()
15870 {
15871 return f != $ac_func;
15872 ;
15873 return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 eval "$as_ac_var=yes"
15899 else
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903 eval "$as_ac_var=no"
15904 fi
15905 rm -f conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 fi
15908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15910 if test `eval echo '${'$as_ac_var'}'` = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15913 _ACEOF
15914
15915 fi
15916 done
15917
15918
15919 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15920 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15921 if test "${am_cv_langinfo_codeset+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924 cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h. */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 #include <langinfo.h>
15931 int
15932 main ()
15933 {
15934 char* cs = nl_langinfo(CODESET);
15935 ;
15936 return 0;
15937 }
15938 _ACEOF
15939 rm -f conftest.$ac_objext conftest$ac_exeext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15941 (eval $ac_link) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag"
15949 || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 am_cv_langinfo_codeset=yes
15962 else
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 am_cv_langinfo_codeset=no
15967 fi
15968 rm -f conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15970
15971 fi
15972 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15973 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15974 if test $am_cv_langinfo_codeset = yes; then
15975
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_LANGINFO_CODESET 1
15978 _ACEOF
15979
15980 fi
15981
15982
15983 # Check the return and argument types of ptrace. No canned test for
15984 # this, so roll our own.
15985 gdb_ptrace_headers='
15986 #if HAVE_SYS_TYPES_H
15987 # include <sys/types.h>
15988 #endif
15989 #if HAVE_SYS_PTRACE_H
15990 # include <sys/ptrace.h>
15991 #endif
15992 #if HAVE_UNISTD_H
15993 # include <unistd.h>
15994 #endif
15995 '
15996 # There is no point in checking if we don't have a prototype.
15997 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15998 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15999 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $gdb_ptrace_headers
16009
16010 int
16011 main ()
16012 {
16013 #ifndef ptrace
16014 char *p = (char *) ptrace;
16015 #endif
16016
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 rm -f conftest.$ac_objext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16023 (eval $ac_compile) 2>conftest.er1
16024 ac_status=$?
16025 grep -v '^ *+' conftest.er1 >conftest.err
16026 rm -f conftest.er1
16027 cat conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try='test -z "$ac_c_werror_flag"
16031 || test ! -s conftest.err'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest.$ac_objext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_have_decl_ptrace=yes
16044 else
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048 ac_cv_have_decl_ptrace=no
16049 fi
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16051 fi
16052 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16053 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16054 if test $ac_cv_have_decl_ptrace = yes; then
16055
16056 cat >>confdefs.h <<_ACEOF
16057 #define HAVE_DECL_PTRACE 1
16058 _ACEOF
16059
16060
16061 else
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_DECL_PTRACE 0
16064 _ACEOF
16065
16066
16067 : ${gdb_cv_func_ptrace_ret='int'}
16068 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16069
16070 fi
16071
16072
16073 # Check return type. Varargs (used on GNU/Linux) conflict with the
16074 # empty argument list, so check for that explicitly.
16075 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16076 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16077 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 else
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h. */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 $gdb_ptrace_headers
16087 int
16088 main ()
16089 {
16090 extern long ptrace (enum __ptrace_request, ...);
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 rm -f conftest.$ac_objext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16097 (eval $ac_compile) 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try='test -z "$ac_c_werror_flag"
16105 || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest.$ac_objext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 gdb_cv_func_ptrace_ret='long'
16118 else
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h. */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $gdb_ptrace_headers
16129 int
16130 main ()
16131 {
16132 extern int ptrace ();
16133 ;
16134 return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag"
16147 || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 gdb_cv_func_ptrace_ret='int'
16160 else
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164 gdb_cv_func_ptrace_ret='long'
16165 fi
16166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167 fi
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16171 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16172
16173 cat >>confdefs.h <<_ACEOF
16174 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16175 _ACEOF
16176
16177 # Check argument types.
16178 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16179 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16180 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $gdb_ptrace_headers
16191 int
16192 main ()
16193 {
16194 extern long ptrace (enum __ptrace_request, ...);
16195 ;
16196 return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>conftest.er1
16202 ac_status=$?
16203 grep -v '^ *+' conftest.er1 >conftest.err
16204 rm -f conftest.er1
16205 cat conftest.err >&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -z "$ac_c_werror_flag"
16209 || test ! -s conftest.err'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 gdb_cv_func_ptrace_args='int,int,long,long'
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226
16227 for gdb_arg1 in 'int' 'long'; do
16228 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16229 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16230 for gdb_arg4 in 'int' 'long'; do
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 $gdb_ptrace_headers
16238 int
16239 main ()
16240 {
16241
16242 extern $gdb_cv_func_ptrace_ret
16243 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16244
16245 ;
16246 return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -z "$ac_c_werror_flag"
16259 || test ! -s conftest.err'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16272 break 4;
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 fi
16278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279 for gdb_arg5 in 'int *' 'int' 'long'; do
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 $gdb_ptrace_headers
16287 int
16288 main ()
16289 {
16290
16291 extern $gdb_cv_func_ptrace_ret
16292 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16293
16294 ;
16295 return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16300 (eval $ac_compile) 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag"
16308 || test ! -s conftest.err'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320
16321 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16322 break 5;
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327 fi
16328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329 done
16330 done
16331 done
16332 done
16333 done
16334 # Provide a safe default value.
16335 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16336
16337 fi
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16341 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16342 ac_save_IFS=$IFS; IFS=','
16343 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16344 IFS=$ac_save_IFS
16345 shift
16346
16347 cat >>confdefs.h <<_ACEOF
16348 #define PTRACE_TYPE_ARG3 $3
16349 _ACEOF
16350
16351 if test -n "$5"; then
16352
16353 cat >>confdefs.h <<_ACEOF
16354 #define PTRACE_TYPE_ARG5 $5
16355 _ACEOF
16356
16357 fi
16358
16359 if test "$cross_compiling" = no; then
16360 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16361 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16362 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365 if test "$cross_compiling" = yes; then
16366 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16367 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16368 { (exit 1); exit 1; }; }
16369 else
16370 cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h. */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 #if HAVE_UNISTD_H
16377 # include <unistd.h>
16378 #endif
16379
16380 int
16381 main ()
16382 {
16383 /* If this system has a BSD-style setpgrp which takes arguments,
16384 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16385 exit successfully. */
16386 exit (setpgrp (1,1) == -1 ? 0 : 1);
16387 ;
16388 return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest$ac_exeext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16393 (eval $ac_link) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_func_setpgrp_void=no
16403 else
16404 echo "$as_me: program exited with status $ac_status" >&5
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 ( exit $ac_status )
16409 ac_cv_func_setpgrp_void=yes
16410 fi
16411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 fi
16414 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16415 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16416 if test $ac_cv_func_setpgrp_void = yes; then
16417
16418 cat >>confdefs.h <<\_ACEOF
16419 #define SETPGRP_VOID 1
16420 _ACEOF
16421
16422 fi
16423
16424 else
16425 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16426 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16427 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h. */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436
16437 #include <unistd.h>
16438
16439 int
16440 main ()
16441 {
16442
16443 if (setpgrp(1,1) == -1)
16444 exit (0);
16445 else
16446 exit (1);
16447
16448 ;
16449 return 0;
16450 }
16451 _ACEOF
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag"
16462 || test ! -s conftest.err'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_func_setpgrp_void=no
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_cv_func_setpgrp_void=yes
16480 fi
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16484 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16485 if test $ac_cv_func_setpgrp_void = yes; then
16486 cat >>confdefs.h <<\_ACEOF
16487 #define SETPGRP_VOID 1
16488 _ACEOF
16489
16490 fi
16491 fi
16492
16493 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16494 # since sigsetjmp might only be defined as a macro.
16495 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16496 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16497 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500 cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h. */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506
16507 #include <setjmp.h>
16508
16509 int
16510 main ()
16511 {
16512 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 gdb_cv_func_sigsetjmp=yes
16540 else
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 gdb_cv_func_sigsetjmp=no
16545 fi
16546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16549 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16550 if test $gdb_cv_func_sigsetjmp = yes; then
16551
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_SIGSETJMP 1
16554 _ACEOF
16555
16556 fi
16557
16558 # Assume we'll default to using the included libiberty regex.
16559 gdb_use_included_regex=yes
16560
16561 # However, if the system regex is GNU regex, then default to *not*
16562 # using the included regex.
16563 echo "$as_me:$LINENO: checking for GNU regex" >&5
16564 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16565 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h. */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 #include <gnu-versions.h>
16575 int
16576 main ()
16577 {
16578 #define REGEX_INTERFACE_VERSION 1
16579 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16580 # error "Version mismatch"
16581 #endif
16582 ;
16583 return 0;
16584 }
16585 _ACEOF
16586 rm -f conftest.$ac_objext
16587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16588 (eval $ac_compile) 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -z "$ac_c_werror_flag"
16596 || test ! -s conftest.err'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 gdb_cv_have_gnu_regex=yes
16609 else
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613 gdb_cv_have_gnu_regex=no
16614 fi
16615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16616 fi
16617 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16618 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16619 if test $gdb_cv_have_gnu_regex = yes; then
16620 gdb_use_included_regex=no
16621 fi
16622
16623
16624 # Check whether --with-included-regex or --without-included-regex was given.
16625 if test "${with_included_regex+set}" = set; then
16626 withval="$with_included_regex"
16627 gdb_with_regex=$withval
16628 else
16629 gdb_with_regex=$gdb_use_included_regex
16630 fi;
16631 if test "$gdb_with_regex" = yes; then
16632
16633 cat >>confdefs.h <<\_ACEOF
16634 #define USE_INCLUDED_REGEX 1
16635 _ACEOF
16636
16637 fi
16638
16639 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16640 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16641 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16642 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 #include <sys/param.h>
16652 #include <sys/proc.h>
16653
16654
16655 int
16656 main ()
16657 {
16658 static struct thread ac_aggr;
16659 if (ac_aggr.td_pcb)
16660 return 0;
16661 ;
16662 return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_cv_member_struct_thread_td_pcb=yes
16688 else
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16691
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <sys/param.h>
16699 #include <sys/proc.h>
16700
16701
16702 int
16703 main ()
16704 {
16705 static struct thread ac_aggr;
16706 if (sizeof ac_aggr.td_pcb)
16707 return 0;
16708 ;
16709 return 0;
16710 }
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag"
16722 || test ! -s conftest.err'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_member_struct_thread_td_pcb=yes
16735 else
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 ac_cv_member_struct_thread_td_pcb=no
16740 fi
16741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16742 fi
16743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744 fi
16745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16746 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16747 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16748
16749 cat >>confdefs.h <<_ACEOF
16750 #define HAVE_STRUCT_THREAD_TD_PCB 1
16751 _ACEOF
16752
16753
16754 fi
16755
16756
16757 # See if <sys/lwp.h> defines `struct lwp`.
16758 echo "$as_me:$LINENO: checking for struct lwp" >&5
16759 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16760 if test "${gdb_cv_struct_lwp+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <sys/param.h>
16770 #include <sys/lwp.h>
16771 int
16772 main ()
16773 {
16774 struct lwp l;
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag"
16789 || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 gdb_cv_struct_lwp=yes
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 gdb_cv_struct_lwp=no
16807 fi
16808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 fi
16810 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16811 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16812 if test $gdb_cv_struct_lwp = yes; then
16813
16814 cat >>confdefs.h <<\_ACEOF
16815 #define HAVE_STRUCT_LWP 1
16816 _ACEOF
16817
16818 fi
16819
16820 # See if <machine/reg.h> degines `struct reg'.
16821 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16822 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16823 if test "${gdb_cv_struct_reg+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 cat >conftest.$ac_ext <<_ACEOF
16827 /* confdefs.h. */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16832 #include <sys/types.h>
16833 #include <machine/reg.h>
16834 int
16835 main ()
16836 {
16837 struct reg r;
16838 ;
16839 return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16844 (eval $ac_compile) 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 gdb_cv_struct_reg=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 gdb_cv_struct_reg=no
16870 fi
16871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16872 fi
16873 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16874 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16875 if test $gdb_cv_struct_reg = yes; then
16876
16877 cat >>confdefs.h <<\_ACEOF
16878 #define HAVE_STRUCT_REG 1
16879 _ACEOF
16880
16881 fi
16882
16883 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16884 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16885 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16886 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16887 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 cat >conftest.$ac_ext <<_ACEOF
16891 /* confdefs.h. */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 #include <machine/reg.h>
16897
16898 int
16899 main ()
16900 {
16901 static struct reg ac_aggr;
16902 if (ac_aggr.r_fs)
16903 return 0;
16904 ;
16905 return 0;
16906 }
16907 _ACEOF
16908 rm -f conftest.$ac_objext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16910 (eval $ac_compile) 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -z "$ac_c_werror_flag"
16918 || test ! -s conftest.err'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_member_struct_reg_r_fs=yes
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 #include <machine/reg.h>
16942
16943 int
16944 main ()
16945 {
16946 static struct reg ac_aggr;
16947 if (sizeof ac_aggr.r_fs)
16948 return 0;
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 rm -f conftest.$ac_objext
16954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16955 (eval $ac_compile) 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag"
16963 || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_member_struct_reg_r_fs=yes
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ac_cv_member_struct_reg_r_fs=no
16981 fi
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16983 fi
16984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16985 fi
16986 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16987 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16988 if test $ac_cv_member_struct_reg_r_fs = yes; then
16989
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_STRUCT_REG_R_FS 1
16992 _ACEOF
16993
16994
16995 fi
16996 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16997 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16998 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 #include <machine/reg.h>
17008
17009 int
17010 main ()
17011 {
17012 static struct reg ac_aggr;
17013 if (ac_aggr.r_gs)
17014 return 0;
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_member_struct_reg_r_gs=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h. */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 #include <machine/reg.h>
17053
17054 int
17055 main ()
17056 {
17057 static struct reg ac_aggr;
17058 if (sizeof ac_aggr.r_gs)
17059 return 0;
17060 ;
17061 return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066 (eval $ac_compile) 2>conftest.er1
17067 ac_status=$?
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag"
17074 || test ! -s conftest.err'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 ac_cv_member_struct_reg_r_gs=yes
17087 else
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091 ac_cv_member_struct_reg_r_gs=no
17092 fi
17093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17094 fi
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096 fi
17097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17098 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17099 if test $ac_cv_member_struct_reg_r_gs = yes; then
17100
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_STRUCT_REG_R_GS 1
17103 _ACEOF
17104
17105
17106 fi
17107
17108
17109 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17110 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17111 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17112 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <sys/ptrace.h>
17122 int
17123 main ()
17124 {
17125 PTRACE_GETREGS;
17126 ;
17127 return 0;
17128 }
17129 _ACEOF
17130 rm -f conftest.$ac_objext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17132 (eval $ac_compile) 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 gdb_cv_have_ptrace_getregs=yes
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 gdb_cv_have_ptrace_getregs=no
17158 fi
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17160 fi
17161
17162 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17163 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17164 if test $gdb_cv_have_ptrace_getregs = yes; then
17165
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE_PTRACE_GETREGS 1
17168 _ACEOF
17169
17170 fi
17171
17172 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17173 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17174 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17175 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 #include <sys/ptrace.h>
17185 int
17186 main ()
17187 {
17188 PTRACE_GETFPXREGS;
17189 ;
17190 return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17196 ac_status=$?
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 gdb_cv_have_ptrace_getfpxregs=yes
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 gdb_cv_have_ptrace_getfpxregs=no
17221 fi
17222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17223 fi
17224
17225 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17226 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17227 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17228
17229 cat >>confdefs.h <<\_ACEOF
17230 #define HAVE_PTRACE_GETFPXREGS 1
17231 _ACEOF
17232
17233 fi
17234
17235 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17236 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17237 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17238 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <sys/types.h>
17248 #include <sys/ptrace.h>
17249 int
17250 main ()
17251 {
17252 PT_GETDBREGS;
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 gdb_cv_have_pt_getdbregs=yes
17280 else
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 gdb_cv_have_pt_getdbregs=no
17285 fi
17286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288
17289 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17290 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17291 if test $gdb_cv_have_pt_getdbregs = yes; then
17292
17293 cat >>confdefs.h <<\_ACEOF
17294 #define HAVE_PT_GETDBREGS 1
17295 _ACEOF
17296
17297 fi
17298
17299 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17300 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17301 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17302 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 #include <sys/types.h>
17312 #include <sys/ptrace.h>
17313 int
17314 main ()
17315 {
17316 PT_GETXMMREGS;
17317 ;
17318 return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 gdb_cv_have_pt_getxmmregs=yes
17344 else
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 gdb_cv_have_pt_getxmmregs=no
17349 fi
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17351 fi
17352
17353 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17354 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17355 if test $gdb_cv_have_pt_getxmmregs = yes; then
17356
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_PT_GETXMMREGS 1
17359 _ACEOF
17360
17361 fi
17362
17363 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17364
17365 if test "${target}" = "${host}"; then
17366 case "${host}" in
17367 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17368
17369 cat >>confdefs.h <<\_ACEOF
17370 #define NEW_PROC_API 1
17371 _ACEOF
17372
17373 ;;
17374 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17375
17376 cat >>confdefs.h <<\_ACEOF
17377 #define NEW_PROC_API 1
17378 _ACEOF
17379
17380 ;;
17381 mips-sgi-irix5*)
17382 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17383
17384 cat >>confdefs.h <<\_ACEOF
17385 #define _KMEMUSER 1
17386 _ACEOF
17387
17388 ;;
17389 esac
17390 fi
17391
17392 if test "$ac_cv_header_sys_procfs_h" = yes; then
17393 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17394 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17395 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404
17405 #define _SYSCALL32
17406 #include <sys/procfs.h>
17407 int
17408 main ()
17409 {
17410 pstatus_t avar
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 bfd_cv_have_sys_procfs_type_pstatus_t=no
17443
17444 fi
17445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447
17448 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_PSTATUS_T 1
17452 _ACEOF
17453
17454 fi
17455 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17456 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17457
17458 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17459 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17460 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469
17470 #define _SYSCALL32
17471 #include <sys/procfs.h>
17472 int
17473 main ()
17474 {
17475 prrun_t avar
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 bfd_cv_have_sys_procfs_type_prrun_t=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 bfd_cv_have_sys_procfs_type_prrun_t=no
17508
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511 fi
17512
17513 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17514
17515 cat >>confdefs.h <<\_ACEOF
17516 #define HAVE_PRRUN_T 1
17517 _ACEOF
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17521 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17522
17523 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17524 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17525 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534
17535 #define _SYSCALL32
17536 #include <sys/procfs.h>
17537 int
17538 main ()
17539 {
17540 gregset_t avar
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 bfd_cv_have_sys_procfs_type_gregset_t=yes
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 bfd_cv_have_sys_procfs_type_gregset_t=no
17573
17574 fi
17575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17576 fi
17577
17578 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17579
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_GREGSET_T 1
17582 _ACEOF
17583
17584 fi
17585 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17586 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17587
17588 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17589 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17590 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599
17600 #define _SYSCALL32
17601 #include <sys/procfs.h>
17602 int
17603 main ()
17604 {
17605 fpregset_t avar
17606 ;
17607 return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612 (eval $ac_compile) 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag"
17620 || test ! -s conftest.err'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17633 else
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 bfd_cv_have_sys_procfs_type_fpregset_t=no
17638
17639 fi
17640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17641 fi
17642
17643 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17644
17645 cat >>confdefs.h <<\_ACEOF
17646 #define HAVE_FPREGSET_T 1
17647 _ACEOF
17648
17649 fi
17650 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17651 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17652
17653 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17654 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17655 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664
17665 #define _SYSCALL32
17666 #include <sys/procfs.h>
17667 int
17668 main ()
17669 {
17670 prgregset_t avar
17671 ;
17672 return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 bfd_cv_have_sys_procfs_type_prgregset_t=no
17703
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707
17708 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17709
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_PRGREGSET_T 1
17712 _ACEOF
17713
17714 fi
17715 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17716 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17717
17718 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17719 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17720 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729
17730 #define _SYSCALL32
17731 #include <sys/procfs.h>
17732 int
17733 main ()
17734 {
17735 prfpregset_t avar
17736 ;
17737 return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17768
17769 fi
17770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17771 fi
17772
17773 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_PRFPREGSET_T 1
17777 _ACEOF
17778
17779 fi
17780 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17781 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17782
17783 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17784 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17785 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h. */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794
17795 #define _SYSCALL32
17796 #include <sys/procfs.h>
17797 int
17798 main ()
17799 {
17800 prgregset32_t avar
17801 ;
17802 return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17833
17834 fi
17835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836 fi
17837
17838 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17839
17840 cat >>confdefs.h <<\_ACEOF
17841 #define HAVE_PRGREGSET32_T 1
17842 _ACEOF
17843
17844 fi
17845 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17846 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17847
17848 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17849 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17850 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859
17860 #define _SYSCALL32
17861 #include <sys/procfs.h>
17862 int
17863 main ()
17864 {
17865 prfpregset32_t avar
17866 ;
17867 return 0;
17868 }
17869 _ACEOF
17870 rm -f conftest.$ac_objext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17898
17899 fi
17900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17901 fi
17902
17903 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17904
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_PRFPREGSET32_T 1
17907 _ACEOF
17908
17909 fi
17910 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17911 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17912
17913 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17914 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17915 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924
17925 #define _SYSCALL32
17926 #include <sys/procfs.h>
17927 int
17928 main ()
17929 {
17930 lwpid_t avar
17931 ;
17932 return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 bfd_cv_have_sys_procfs_type_lwpid_t=no
17963
17964 fi
17965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17966 fi
17967
17968 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17969
17970 cat >>confdefs.h <<\_ACEOF
17971 #define HAVE_LWPID_T 1
17972 _ACEOF
17973
17974 fi
17975 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17976 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17977
17978 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17979 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17980 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989
17990 #define _SYSCALL32
17991 #include <sys/procfs.h>
17992 int
17993 main ()
17994 {
17995 psaddr_t avar
17996 ;
17997 return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 bfd_cv_have_sys_procfs_type_psaddr_t=no
18028
18029 fi
18030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 fi
18032
18033 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18034
18035 cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_PSADDR_T 1
18037 _ACEOF
18038
18039 fi
18040 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18041 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18042
18043 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18044 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18045 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054
18055 #define _SYSCALL32
18056 #include <sys/procfs.h>
18057 int
18058 main ()
18059 {
18060 prsysent_t avar
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18067 (eval $ac_compile) 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag"
18075 || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest.$ac_objext'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18088 else
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18091
18092 bfd_cv_have_sys_procfs_type_prsysent_t=no
18093
18094 fi
18095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18096 fi
18097
18098 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18099
18100 cat >>confdefs.h <<\_ACEOF
18101 #define HAVE_PRSYSENT_T 1
18102 _ACEOF
18103
18104 fi
18105 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18106 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18107
18108 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18109 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18110 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119
18120 #define _SYSCALL32
18121 #include <sys/procfs.h>
18122 int
18123 main ()
18124 {
18125 pr_sigset_t avar
18126 ;
18127 return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132 (eval $ac_compile) 2>conftest.er1
18133 ac_status=$?
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18153 else
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18156
18157 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18158
18159 fi
18160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18161 fi
18162
18163 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18164
18165 cat >>confdefs.h <<\_ACEOF
18166 #define HAVE_PR_SIGSET_T 1
18167 _ACEOF
18168
18169 fi
18170 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18171 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18172
18173 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18174 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18175 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h. */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184
18185 #define _SYSCALL32
18186 #include <sys/procfs.h>
18187 int
18188 main ()
18189 {
18190 pr_sigaction64_t avar
18191 ;
18192 return 0;
18193 }
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18218 else
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18223
18224 fi
18225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18226 fi
18227
18228 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18229
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_PR_SIGACTION64_T 1
18232 _ACEOF
18233
18234 fi
18235 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18236 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18237
18238 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18239 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18240 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h. */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249
18250 #define _SYSCALL32
18251 #include <sys/procfs.h>
18252 int
18253 main ()
18254 {
18255 pr_siginfo64_t avar
18256 ;
18257 return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18262 (eval $ac_compile) 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18283 else
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18288
18289 fi
18290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18291 fi
18292
18293 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_PR_SIGINFO64_T 1
18297 _ACEOF
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18301 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18302
18303
18304
18305
18306
18307 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18308 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18309 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18310 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313 if test "$cross_compiling" = yes; then
18314 gdb_cv_prfpregset_t_broken=yes
18315 else
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <sys/procfs.h>
18323 int main ()
18324 {
18325 if (sizeof (prfpregset_t) == sizeof (void *))
18326 return 1;
18327 return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332 (eval $ac_link) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 gdb_cv_prfpregset_t_broken=no
18342 else
18343 echo "$as_me: program exited with status $ac_status" >&5
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 ( exit $ac_status )
18348 gdb_cv_prfpregset_t_broken=yes
18349 fi
18350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18351 fi
18352 fi
18353
18354 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18355 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18356 if test $gdb_cv_prfpregset_t_broken = yes; then
18357
18358 cat >>confdefs.h <<\_ACEOF
18359 #define PRFPREGSET_T_BROKEN 1
18360 _ACEOF
18361
18362 fi
18363 fi
18364
18365
18366 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18367 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18368 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 else
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <unistd.h>
18378 #include <sys/types.h>
18379 #include <sys/procfs.h>
18380
18381 int
18382 main ()
18383 {
18384
18385 int dummy;;
18386 dummy = ioctl(0, PIOCSET, &dummy);
18387
18388 ;
18389 return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18394 (eval $ac_compile) 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest.$ac_objext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 gdb_cv_have_procfs_piocset=yes
18415 else
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18418
18419 gdb_cv_have_procfs_piocset=no
18420 fi
18421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18422 fi
18423
18424 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18425 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18426 if test $gdb_cv_have_procfs_piocset = yes; then
18427
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE_PROCFS_PIOCSET 1
18430 _ACEOF
18431
18432 fi
18433 fi
18434
18435 if test ${host} = ${target} ; then
18436
18437 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18438 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18439 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h. */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18448 #include <link.h>
18449 int
18450 main ()
18451 {
18452 struct link_map lm; (void) lm.l_addr;
18453 ;
18454 return 0;
18455 }
18456 _ACEOF
18457 rm -f conftest.$ac_objext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18459 (eval $ac_compile) 2>conftest.er1
18460 ac_status=$?
18461 grep -v '^ *+' conftest.er1 >conftest.err
18462 rm -f conftest.er1
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -z "$ac_c_werror_flag"
18467 || test ! -s conftest.err'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest.$ac_objext'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 gdb_cv_have_struct_link_map_with_l_members=yes
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 gdb_cv_have_struct_link_map_with_l_members=no
18485 fi
18486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18487 fi
18488
18489 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18490 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18491 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18492
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18495 _ACEOF
18496
18497 fi
18498
18499
18500 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18501 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18502 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 #include <sys/types.h>
18512 #include <link.h>
18513 int
18514 main ()
18515 {
18516 struct link_map lm; (void) lm.lm_addr;
18517 ;
18518 return 0;
18519 }
18520 _ACEOF
18521 rm -f conftest.$ac_objext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523 (eval $ac_compile) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 gdb_cv_have_struct_link_map_with_lm_members=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 gdb_cv_have_struct_link_map_with_lm_members=no
18549 fi
18550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18551 fi
18552
18553 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18554 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18555 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18559 _ACEOF
18560
18561 fi
18562
18563
18564 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18565 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18566 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <sys/types.h>
18576 #ifdef HAVE_NLIST_H
18577 #include <nlist.h>
18578 #endif
18579 #include <link.h>
18580 int
18581 main ()
18582 {
18583 struct so_map lm; (void) lm.som_addr;
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 gdb_cv_have_struct_so_map_with_som_members=yes
18611 else
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615 gdb_cv_have_struct_so_map_with_som_members=no
18616 fi
18617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18618 fi
18619
18620 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18621 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18622 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18623
18624 cat >>confdefs.h <<\_ACEOF
18625 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18626 _ACEOF
18627
18628 fi
18629
18630
18631 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18632 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18633 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #define _SYSCALL32
18643 #include <sys/link.h>
18644 int
18645 main ()
18646 {
18647 struct link_map32 l;
18648 ;
18649 return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 gdb_cv_have_struct_link_map32=yes
18675 else
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 gdb_cv_have_struct_link_map32=no
18680 fi
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18682 fi
18683
18684 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18685 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18686 if test $gdb_cv_have_struct_link_map32 = yes; then
18687
18688 cat >>confdefs.h <<\_ACEOF
18689 #define HAVE_STRUCT_LINK_MAP32 1
18690 _ACEOF
18691
18692
18693 cat >>confdefs.h <<\_ACEOF
18694 #define _SYSCALL32 1
18695 _ACEOF
18696
18697 fi
18698 fi
18699
18700 # Check if the compiler supports the `long long' type.
18701
18702 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18703 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18704 if test "${gdb_cv_c_long_long+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 extern long long foo;
18714 int
18715 main ()
18716 {
18717 switch (foo & 2) { case 0: return 1; }
18718 ;
18719 return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18724 (eval $ac_compile) 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_c_werror_flag"
18732 || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 gdb_cv_c_long_long=yes
18745 else
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 gdb_cv_c_long_long=no
18750 fi
18751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752 fi
18753 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18754 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18755 if test $gdb_cv_c_long_long = yes; then
18756
18757 cat >>confdefs.h <<\_ACEOF
18758 #define CC_HAS_LONG_LONG 1
18759 _ACEOF
18760
18761 fi
18762
18763 # Check if the compiler and runtime support printing long longs.
18764
18765 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18766 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18767 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770 if test "$cross_compiling" = yes; then
18771 gdb_cv_printf_has_long_long=no
18772 else
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 $ac_includes_default
18780 int
18781 main ()
18782 {
18783 char buf[32];
18784 long long l = 0;
18785 l = (l << 16) + 0x0123;
18786 l = (l << 16) + 0x4567;
18787 l = (l << 16) + 0x89ab;
18788 l = (l << 16) + 0xcdef;
18789 sprintf (buf, "0x%016llx", l);
18790 return (strcmp ("0x0123456789abcdef", buf));
18791 ;
18792 return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest$ac_exeext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18797 (eval $ac_link) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 gdb_cv_printf_has_long_long=yes
18807 else
18808 echo "$as_me: program exited with status $ac_status" >&5
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ( exit $ac_status )
18813 gdb_cv_printf_has_long_long=no
18814 fi
18815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18816 fi
18817 fi
18818 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18819 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18820 if test $gdb_cv_printf_has_long_long = yes; then
18821
18822 cat >>confdefs.h <<\_ACEOF
18823 #define PRINTF_HAS_LONG_LONG 1
18824 _ACEOF
18825
18826 fi
18827
18828 # Check if the compiler and runtime support printing decfloats.
18829
18830 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18831 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18832 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 if test "$cross_compiling" = yes; then
18836 gdb_cv_printf_has_decfloat=no
18837 else
18838 cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h. */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18845 int
18846 main ()
18847 {
18848 char buf[64];
18849 _Decimal32 d32 = 1.2345df;
18850 _Decimal64 d64 = 1.2345dd;
18851 _Decimal128 d128 = 1.2345dl;
18852 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18853 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18854 ;
18855 return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest$ac_exeext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18860 (eval $ac_link) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 gdb_cv_printf_has_decfloat=yes
18870 else
18871 echo "$as_me: program exited with status $ac_status" >&5
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 ( exit $ac_status )
18876 gdb_cv_printf_has_decfloat=no
18877 fi
18878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18879 fi
18880 fi
18881 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18882 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18883 if test $gdb_cv_printf_has_decfloat = yes; then
18884
18885 cat >>confdefs.h <<\_ACEOF
18886 #define PRINTF_HAS_DECFLOAT 1
18887 _ACEOF
18888
18889 fi
18890
18891 # Check if the compiler supports the `long double' type. We can't use
18892 # AC_C_LONG_DOUBLE because that one does additional checks on the
18893 # constants defined in <float.h> that fail on some systems,
18894 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18895
18896 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18897 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18898 if test "${gdb_cv_c_long_double+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 long double foo;
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 gdb_cv_c_long_double=yes
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 gdb_cv_c_long_double=no
18937 fi
18938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18939 fi
18940 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18941 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18942 if test $gdb_cv_c_long_double = yes; then
18943
18944 cat >>confdefs.h <<\_ACEOF
18945 #define HAVE_LONG_DOUBLE 1
18946 _ACEOF
18947
18948 fi
18949
18950 # Check if the compiler and runtime support printing long doubles.
18951
18952 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18953 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18954 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 if test "$cross_compiling" = yes; then
18958 gdb_cv_printf_has_long_double=no
18959 else
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h. */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 $ac_includes_default
18967 int
18968 main ()
18969 {
18970 char buf[16];
18971 long double f = 3.141592653;
18972 sprintf (buf, "%Lg", f);
18973 return (strncmp ("3.14159", buf, 7));
18974 ;
18975 return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest$ac_exeext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18980 (eval $ac_link) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 gdb_cv_printf_has_long_double=yes
18990 else
18991 echo "$as_me: program exited with status $ac_status" >&5
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ( exit $ac_status )
18996 gdb_cv_printf_has_long_double=no
18997 fi
18998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18999 fi
19000 fi
19001 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19002 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19003 if test $gdb_cv_printf_has_long_double = yes; then
19004
19005 cat >>confdefs.h <<\_ACEOF
19006 #define PRINTF_HAS_LONG_DOUBLE 1
19007 _ACEOF
19008
19009 fi
19010
19011 # Check if the compiler and runtime support scanning long doubles.
19012
19013 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19014 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19015 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018 if test "$cross_compiling" = yes; then
19019 gdb_cv_scanf_has_long_double=no
19020 else
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 #include <stdio.h>
19028 int
19029 main ()
19030 {
19031 char *buf = "3.141592653";
19032 long double f = 0;
19033 sscanf (buf, "%Lg", &f);
19034 return !(f > 3.14159 && f < 3.14160);
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest$ac_exeext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19041 (eval $ac_link) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 gdb_cv_scanf_has_long_double=yes
19051 else
19052 echo "$as_me: program exited with status $ac_status" >&5
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ( exit $ac_status )
19057 gdb_cv_scanf_has_long_double=no
19058 fi
19059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19060 fi
19061 fi
19062 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19063 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19064 if test $gdb_cv_scanf_has_long_double = yes; then
19065
19066 cat >>confdefs.h <<\_ACEOF
19067 #define SCANF_HAS_LONG_DOUBLE 1
19068 _ACEOF
19069
19070 fi
19071
19072 case ${host_os} in
19073 aix*)
19074 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19075 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19076 if test "${gdb_cv_bigtoc+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079
19080 SAVE_LDFLAGS=$LDFLAGS
19081
19082 case $GCC in
19083 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19084 *) gdb_cv_bigtoc=-bbigtoc ;;
19085 esac
19086
19087 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094
19095 int
19096 main ()
19097 {
19098 int i;
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 :
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 gdb_cv_bigtoc=
19131 fi
19132 rm -f conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LDFLAGS="${SAVE_LDFLAGS}"
19135
19136 fi
19137 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19138 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19139 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19140 ;;
19141 esac
19142
19143
19144
19145 if test ${build} = ${host} -a ${host} = ${target} ; then
19146 case ${host_os} in
19147 hpux*)
19148 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19149 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19150 if test -f /usr/include/dce/cma_config.h ; then
19151 if test "$GCC" = "yes" ; then
19152 echo "$as_me:$LINENO: result: yes" >&5
19153 echo "${ECHO_T}yes" >&6
19154
19155 cat >>confdefs.h <<\_ACEOF
19156 #define HAVE_HPUX_THREAD_SUPPORT 1
19157 _ACEOF
19158
19159 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19160 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19161 else
19162 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19163 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19164 fi
19165 else
19166 echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6
19168 fi
19169 ;;
19170 solaris*)
19171 # See if thread_db library is around for Solaris thread debugging.
19172 # Note that we must explicitly test for version 1 of the library
19173 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19174 # the same API.
19175 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19176 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19177 if test -f /usr/lib/libthread_db.so.1 ; then
19178 echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6
19180
19181 cat >>confdefs.h <<\_ACEOF
19182 #define HAVE_THREAD_DB_LIB 1
19183 _ACEOF
19184
19185 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19186 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19187
19188 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19189 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19190 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 ac_check_lib_save_LIBS=$LIBS
19194 LIBS="-ldl $LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201
19202 /* Override any gcc2 internal prototype to avoid an error. */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19208 char dlopen ();
19209 int
19210 main ()
19211 {
19212 dlopen ();
19213 ;
19214 return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_dl_dlopen=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_lib_dl_dlopen=no
19245 fi
19246 rm -f conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19252 if test $ac_cv_lib_dl_dlopen = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define HAVE_LIBDL 1
19255 _ACEOF
19256
19257 LIBS="-ldl $LIBS"
19258
19259 fi
19260
19261 if test "$GCC" = "yes" ; then
19262 # The GNU linker requires the -export-dynamic option to make
19263 # all symbols visible in the dynamic symbol table.
19264 hold_ldflags=$LDFLAGS
19265 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19266 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19267 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274
19275 int
19276 main ()
19277 {
19278 int i;
19279 ;
19280 return 0;
19281 }
19282 _ACEOF
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285 (eval $ac_link) 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag"
19293 || test ! -s conftest.err'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest$ac_exeext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 found=yes
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 found=no
19311 fi
19312 rm -f conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LDFLAGS=$hold_ldflags
19315 echo "$as_me:$LINENO: result: $found" >&5
19316 echo "${ECHO_T}$found" >&6
19317 if test $found = yes; then
19318 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19319 fi
19320 fi
19321 # Sun randomly tweaked the prototypes in <proc_service.h>
19322 # at one point.
19323 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19324 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19325 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335
19336 #include <proc_service.h>
19337 ps_err_e ps_pdwrite
19338 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19339
19340 int
19341 main ()
19342 {
19343
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 gdb_cv_proc_service_is_old=no
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 gdb_cv_proc_service_is_old=yes
19376 fi
19377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378
19379 fi
19380
19381 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19382 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19383 if test $gdb_cv_proc_service_is_old = yes; then
19384
19385 cat >>confdefs.h <<\_ACEOF
19386 #define PROC_SERVICE_IS_OLD 1
19387 _ACEOF
19388
19389 fi
19390 else
19391 echo "$as_me:$LINENO: result: no" >&5
19392 echo "${ECHO_T}no" >&6
19393 fi
19394 ;;
19395 aix*)
19396 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19397 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19398 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <sys/pthdebug.h>
19408 int
19409 main ()
19410 {
19411 #ifndef PTHDB_VERSION_3
19412 #error
19413 #endif
19414 ;
19415 return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 gdb_cv_have_aix_thread_debug=yes
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 gdb_cv_have_aix_thread_debug=no
19446 fi
19447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19448 fi
19449
19450 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19451 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19452 if test $gdb_cv_have_aix_thread_debug = yes; then
19453 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19454 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19455 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19456 fi
19457 ;;
19458 esac
19459
19460 fi
19461
19462 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19463 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19464 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19465 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468 cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h. */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 #include <thread_db.h>
19475 int
19476 main ()
19477 {
19478 int i = TD_NOTALLOC;
19479 ;
19480 return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest.$ac_objext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19485 (eval $ac_compile) 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_c_werror_flag"
19493 || test ! -s conftest.err'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } &&
19499 { ac_try='test -s conftest.$ac_objext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 gdb_cv_thread_db_h_has_td_notalloc=yes
19506 else
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 gdb_cv_thread_db_h_has_td_notalloc=no
19511
19512 fi
19513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19514
19515 fi
19516 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19517 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19518 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19519 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19520 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <thread_db.h>
19530 int
19531 main ()
19532 {
19533 int i = TD_VERSION;
19534 ;
19535 return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 gdb_cv_thread_db_h_has_td_version=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 gdb_cv_thread_db_h_has_td_version=no
19566
19567 fi
19568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569
19570 fi
19571 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19572 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19573 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19574 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19575 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 #include <thread_db.h>
19585 int
19586 main ()
19587 {
19588 int i = TD_NOTLS;
19589 ;
19590 return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -z "$ac_c_werror_flag"
19603 || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615 gdb_cv_thread_db_h_has_td_notls=yes
19616 else
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 gdb_cv_thread_db_h_has_td_notls=no
19621
19622 fi
19623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19624
19625 fi
19626 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19627 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19628 fi
19629 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19630
19631 cat >>confdefs.h <<\_ACEOF
19632 #define THREAD_DB_HAS_TD_NOTALLOC 1
19633 _ACEOF
19634
19635 fi
19636 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19637
19638 cat >>confdefs.h <<\_ACEOF
19639 #define THREAD_DB_HAS_TD_VERSION 1
19640 _ACEOF
19641
19642 fi
19643 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19644
19645 cat >>confdefs.h <<\_ACEOF
19646 #define THREAD_DB_HAS_TD_NOTLS 1
19647 _ACEOF
19648
19649 fi
19650
19651 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19652 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19653 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19654 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <sys/syscall.h>
19664 int
19665 main ()
19666 {
19667 int i = __NR_tkill;
19668 ;
19669 return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19674 (eval $ac_compile) 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } &&
19681 { ac_try='test -z "$ac_c_werror_flag"
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 gdb_cv_sys_syscall_h_has_tkill=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 gdb_cv_sys_syscall_h_has_tkill=no
19700
19701 fi
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703
19704 fi
19705 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19706 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19707 fi
19708 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19709
19710 cat >>confdefs.h <<\_ACEOF
19711 #define HAVE_TKILL_SYSCALL 1
19712 _ACEOF
19713
19714 fi
19715
19716 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19717 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19718 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <sys/personality.h>
19728
19729 int
19730 main ()
19731 {
19732 #ifndef ADDR_NO_RANDOMIZE
19733 char *p = (char *) ADDR_NO_RANDOMIZE;
19734 #endif
19735
19736 ;
19737 return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest.$ac_objext
19741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742 (eval $ac_compile) 2>conftest.er1
19743 ac_status=$?
19744 grep -v '^ *+' conftest.er1 >conftest.err
19745 rm -f conftest.er1
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -z "$ac_c_werror_flag"
19750 || test ! -s conftest.err'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; } &&
19756 { ac_try='test -s conftest.$ac_objext'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19763 else
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19768 fi
19769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19770 fi
19771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19772 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19773 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19774
19775 cat >>confdefs.h <<_ACEOF
19776 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19777 _ACEOF
19778
19779
19780 else
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19783 _ACEOF
19784
19785
19786 fi
19787
19788
19789
19790 if test "$cross_compiling" = yes; then
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <sys/personality.h>
19798 int
19799 main ()
19800 {
19801
19802 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19803 # define ADDR_NO_RANDOMIZE 0x0040000
19804 # endif
19805 /* Test the flag could be set and stays set. */
19806 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19807 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19808 return 1
19809 ;
19810 return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag"
19823 || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest$ac_exeext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 have_personality=true
19836 else
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 have_personality=false
19841 fi
19842 rm -f conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
19844 else
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include <sys/personality.h>
19852 int
19853 main ()
19854 {
19855
19856 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19857 # define ADDR_NO_RANDOMIZE 0x0040000
19858 # endif
19859 /* Test the flag could be set and stays set. */
19860 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19861 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19862 return 1
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 have_personality=true
19879 else
19880 echo "$as_me: program exited with status $ac_status" >&5
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ( exit $ac_status )
19885 have_personality=false
19886 fi
19887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19888 fi
19889 if $have_personality
19890 then
19891
19892 cat >>confdefs.h <<\_ACEOF
19893 #define HAVE_PERSONALITY 1
19894 _ACEOF
19895
19896 fi
19897
19898
19899
19900 # Check whether --with-sysroot or --without-sysroot was given.
19901 if test "${with_sysroot+set}" = set; then
19902 withval="$with_sysroot"
19903
19904 case ${with_sysroot} in
19905 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19906 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19907 esac
19908
19909 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19910
19911 if test "x$prefix" = xNONE; then
19912 test_prefix=/usr/local
19913 else
19914 test_prefix=$prefix
19915 fi
19916 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19917 test_exec_prefix=$test_prefix
19918 else
19919 test_exec_prefix=$exec_prefix
19920 fi
19921 case ${TARGET_SYSTEM_ROOT} in
19922 "${test_prefix}"|"${test_prefix}/"*|\
19923 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19924 '${prefix}'|'${prefix}/'*|\
19925 '${exec_prefix}'|'${exec_prefix}/'*)
19926 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19927 TARGET_SYSTEM_ROOT_DEFINE="$t"
19928 ;;
19929 esac
19930
19931 else
19932
19933 TARGET_SYSTEM_ROOT=
19934 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19935
19936 fi;
19937
19938
19939
19940 system_gdbinit=
19941
19942 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19943 if test "${with_system_gdbinit+set}" = set; then
19944 withval="$with_system_gdbinit"
19945 system_gdbinit=${withval}
19946 fi;
19947
19948
19949 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19951 ac_define_dir=`eval echo $system_gdbinit`
19952 ac_define_dir=`eval echo $ac_define_dir`
19953
19954 cat >>confdefs.h <<_ACEOF
19955 #define SYSTEM_GDBINIT "$ac_define_dir"
19956 _ACEOF
19957
19958
19959
19960 if test "x$prefix" = xNONE; then
19961 test_prefix=$ac_default_prefix
19962 else
19963 test_prefix=$prefix
19964 fi
19965 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19966 test_exec_prefix=$test_prefix
19967 else
19968 test_exec_prefix=$exec_prefix
19969 fi
19970 case ${system_gdbinit} in
19971 "${test_prefix}"|"${test_prefix}/"*|\
19972 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19973 '${prefix}'|'${prefix}/'*|\
19974 '${exec_prefix}'|'${exec_prefix}/'*)
19975
19976 cat >>confdefs.h <<\_ACEOF
19977 #define SYSTEM_GDBINIT_RELOCATABLE 1
19978 _ACEOF
19979
19980 ;;
19981 esac
19982
19983 # Check whether --enable-werror or --disable-werror was given.
19984 if test "${enable_werror+set}" = set; then
19985 enableval="$enable_werror"
19986 case "${enableval}" in
19987 yes | y) ERROR_ON_WARNING="yes" ;;
19988 no | n) ERROR_ON_WARNING="no" ;;
19989 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19990 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19991 { (exit 1); exit 1; }; } ;;
19992 esac
19993 fi;
19994
19995 # Enable -Werror by default when using gcc
19996 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19997 ERROR_ON_WARNING=yes
19998 fi
19999
20000 WERROR_CFLAGS=""
20001 if test "${ERROR_ON_WARNING}" = yes ; then
20002 WERROR_CFLAGS="-Werror"
20003 fi
20004
20005 # The entries after -Wno-pointer-sign are disabled warnings which may
20006 # be enabled in the future, which can not currently be used to build
20007 # GDB.
20008 # NOTE: If you change this list, remember to update
20009 # gdb/doc/gdbint.texinfo.
20010 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20011 -Wformat-nonliteral -Wno-pointer-sign \
20012 -Wno-unused -Wno-switch -Wno-char-subscripts"
20013
20014 # Enable -Wno-format by default when using gcc on mingw since many
20015 # GCC versions complain about %I64.
20016 case "${host}" in
20017 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
20018 esac
20019
20020 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20021 if test "${enable_build_warnings+set}" = set; then
20022 enableval="$enable_build_warnings"
20023 case "${enableval}" in
20024 yes) ;;
20025 no) build_warnings="-w";;
20026 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20027 build_warnings="${build_warnings} ${t}";;
20028 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20029 build_warnings="${t} ${build_warnings}";;
20030 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20031 esac
20032 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20033 echo "Setting compiler warning flags = $build_warnings" 6>&1
20034 fi
20035 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20036 if test "${enable_gdb_build_warnings+set}" = set; then
20037 enableval="$enable_gdb_build_warnings"
20038 case "${enableval}" in
20039 yes) ;;
20040 no) build_warnings="-w";;
20041 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20042 build_warnings="${build_warnings} ${t}";;
20043 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20044 build_warnings="${t} ${build_warnings}";;
20045 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20046 esac
20047 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20048 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20049 fi
20050 fi; WARN_CFLAGS=""
20051 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20052 then
20053 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20054 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20055 # Separate out the -Werror flag as some files just cannot be
20056 # compiled with it enabled.
20057 for w in ${build_warnings}; do
20058 case $w in
20059 -Werr*) WERROR_CFLAGS=-Werror ;;
20060 *) # Check that GCC accepts it
20061 saved_CFLAGS="$CFLAGS"
20062 CFLAGS="$CFLAGS $w"
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h. */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069
20070 int
20071 main ()
20072 {
20073
20074 ;
20075 return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080 (eval $ac_compile) 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 WARN_CFLAGS="${WARN_CFLAGS} $w"
20101 else
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 fi
20106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20107 CFLAGS="$saved_CFLAGS"
20108 esac
20109 done
20110 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20111 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20112 fi
20113
20114
20115
20116 # In the Cygwin environment, we need some additional flags.
20117 echo "$as_me:$LINENO: checking for cygwin" >&5
20118 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20119 if test "${gdb_cv_os_cygwin+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128
20129 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20130 lose
20131 #endif
20132 _ACEOF
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134 $EGREP "lose" >/dev/null 2>&1; then
20135 gdb_cv_os_cygwin=yes
20136 else
20137 gdb_cv_os_cygwin=no
20138 fi
20139 rm -f conftest*
20140
20141 fi
20142 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20143 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20144
20145
20146 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20147 case ${host} in
20148 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20149 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20150 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20151 esac
20152
20153
20154 # libreadline needs libuser32.a in a cygwin environment
20155 WIN32LIBS=
20156 if test x$gdb_cv_os_cygwin = xyes; then
20157 WIN32LIBS="-luser32"
20158 case "${target}" in
20159 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20160 ;;
20161 esac
20162 fi
20163
20164 # The ser-tcp.c module requires sockets.
20165 case ${host} in
20166 *mingw32*)
20167
20168 cat >>confdefs.h <<\_ACEOF
20169 #define USE_WIN32API 1
20170 _ACEOF
20171
20172 WIN32LIBS="$WIN32LIBS -lws2_32"
20173 ;;
20174 esac
20175
20176
20177 # Add ELF support to GDB, but only if BFD includes ELF support.
20178 OLD_CFLAGS=$CFLAGS
20179 OLD_LDFLAGS=$LDFLAGS
20180 OLD_LIBS=$LIBS
20181 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20182 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20183 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20184 LIBS="-lbfd -liberty $intl $LIBS"
20185 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20186 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20187 if test "${gdb_cv_var_elf+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h. */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 #include <stdlib.h>
20197 #include "bfd.h"
20198 #include "elf-bfd.h"
20199
20200 int
20201 main ()
20202 {
20203 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20204 ;
20205 return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210 (eval $ac_link) 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -z "$ac_c_werror_flag"
20218 || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 gdb_cv_var_elf=yes
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 gdb_cv_var_elf=no
20236 fi
20237 rm -f conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext conftest.$ac_ext
20239 fi
20240 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20241 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20242 if test $gdb_cv_var_elf = yes; then
20243 CONFIG_OBS="$CONFIG_OBS elfread.o"
20244
20245 cat >>confdefs.h <<\_ACEOF
20246 #define HAVE_ELF 1
20247 _ACEOF
20248
20249 fi
20250 CFLAGS=$OLD_CFLAGS
20251 LDFLAGS=$OLD_LDFLAGS
20252 LIBS=$OLD_LIBS
20253
20254 # Add any host-specific objects to GDB.
20255 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20256
20257 LIBGUI="../libgui/src/libgui.a"
20258 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20259
20260
20261
20262 WIN32LDAPP=
20263
20264
20265
20266 case "${host}" in
20267 *-*-cygwin* | *-*-mingw* )
20268 configdir="win"
20269 ;;
20270 *)
20271 configdir="unix"
20272 ;;
20273 esac
20274
20275 GDBTKLIBS=
20276 if test "${enable_gdbtk}" = "yes"; then
20277
20278 # Gdbtk must have an absolute path to srcdir in order to run
20279 # properly when not installed.
20280 here=`pwd`
20281 cd ${srcdir}
20282 GDBTK_SRC_DIR=`pwd`
20283 cd $here
20284
20285
20286 #
20287 # Ok, lets find the tcl configuration
20288 # First, look for one uninstalled.
20289 # the alternative search directory is invoked by --with-tcl
20290 #
20291
20292 if test x"${no_tcl}" = x ; then
20293 # we reset no_tcl in case something fails here
20294 no_tcl=true
20295
20296 # Check whether --with-tcl or --without-tcl was given.
20297 if test "${with_tcl+set}" = set; then
20298 withval="$with_tcl"
20299 with_tclconfig=${withval}
20300 fi;
20301 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20302 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20303 if test "${ac_cv_c_tclconfig+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306
20307
20308 # First check to see if --with-tcl was specified.
20309 case "${host}" in
20310 *-*-cygwin*) platDir="win" ;;
20311 *) platDir="unix" ;;
20312 esac
20313 if test x"${with_tclconfig}" != x ; then
20314 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20315 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20316 else
20317 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20318 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20319 { (exit 1); exit 1; }; }
20320 fi
20321 fi
20322
20323 # then check for a private Tcl installation
20324 if test x"${ac_cv_c_tclconfig}" = x ; then
20325 for i in \
20326 ../tcl \
20327 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20328 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20329 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20330 ../../tcl \
20331 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20332 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20333 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20334 ../../../tcl \
20335 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20336 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20337 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20338 if test -f "$i/$platDir/tclConfig.sh" ; then
20339 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20340 break
20341 fi
20342 done
20343 fi
20344
20345 # on Darwin, check in Framework installation locations
20346 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20347 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20348 `ls -d /Library/Frameworks 2>/dev/null` \
20349 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20350 `ls -d /System/Library/Frameworks 2>/dev/null` \
20351 ; do
20352 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20353 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20354 break
20355 fi
20356 done
20357 fi
20358
20359 # check in a few common install locations
20360 if test x"${ac_cv_c_tclconfig}" = x ; then
20361 for i in `ls -d ${libdir} 2>/dev/null` \
20362 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20363 `ls -d ${prefix}/lib 2>/dev/null` \
20364 `ls -d /usr/local/lib 2>/dev/null` \
20365 `ls -d /usr/contrib/lib 2>/dev/null` \
20366 `ls -d /usr/lib 2>/dev/null` \
20367 ; do
20368 if test -f "$i/tclConfig.sh" ; then
20369 ac_cv_c_tclconfig=`(cd $i; pwd)`
20370 break
20371 fi
20372 done
20373 fi
20374
20375 # check in a few other private locations
20376 if test x"${ac_cv_c_tclconfig}" = x ; then
20377 for i in \
20378 ${srcdir}/../tcl \
20379 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20380 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20381 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20382 if test -f "$i/$platDir/tclConfig.sh" ; then
20383 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20384 break
20385 fi
20386 done
20387 fi
20388
20389 fi
20390
20391
20392 if test x"${ac_cv_c_tclconfig}" = x ; then
20393 TCL_BIN_DIR="# no Tcl configs found"
20394 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20395 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20396 else
20397 no_tcl=
20398 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20399 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20400 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20401 fi
20402 fi
20403
20404
20405 # If $no_tk is nonempty, then we can't do Tk, and there is no
20406 # point to doing Tcl.
20407
20408 #
20409 # Ok, lets find the tk configuration
20410 # First, look for one uninstalled.
20411 # the alternative search directory is invoked by --with-tk
20412 #
20413
20414 if test x"${no_tk}" = x ; then
20415 # we reset no_tk in case something fails here
20416 no_tk=true
20417
20418 # Check whether --with-tk or --without-tk was given.
20419 if test "${with_tk+set}" = set; then
20420 withval="$with_tk"
20421 with_tkconfig=${withval}
20422 fi;
20423 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20424 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20425 if test "${ac_cv_c_tkconfig+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428
20429
20430 # First check to see if --with-tkconfig was specified.
20431 if test x"${with_tkconfig}" != x ; then
20432 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20433 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20434 else
20435 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20436 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20437 { (exit 1); exit 1; }; }
20438 fi
20439 fi
20440
20441 # then check for a private Tk library
20442 case "${host}" in
20443 *-*-cygwin*) platDir="win" ;;
20444 *) platDir="unix" ;;
20445 esac
20446 if test x"${ac_cv_c_tkconfig}" = x ; then
20447 for i in \
20448 ../tk \
20449 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20450 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20451 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20452 ../../tk \
20453 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20454 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20455 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20456 ../../../tk \
20457 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20458 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20459 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20460 if test -f "$i/$platDir/tkConfig.sh" ; then
20461 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20462 break
20463 fi
20464 done
20465 fi
20466
20467 # on Darwin, check in Framework installation locations
20468 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20469 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20470 `ls -d /Library/Frameworks 2>/dev/null` \
20471 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20472 `ls -d /System/Library/Frameworks 2>/dev/null` \
20473 ; do
20474 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20475 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20476 break
20477 fi
20478 done
20479 fi
20480
20481 # check in a few common install locations
20482 if test x"${ac_cv_c_tkconfig}" = x ; then
20483 for i in `ls -d ${libdir} 2>/dev/null` \
20484 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20485 `ls -d ${prefix}/lib 2>/dev/null` \
20486 `ls -d /usr/local/lib 2>/dev/null` \
20487 `ls -d /usr/contrib/lib 2>/dev/null` \
20488 `ls -d /usr/lib 2>/dev/null` \
20489 ; do
20490 if test -f "$i/tkConfig.sh" ; then
20491 ac_cv_c_tkconfig=`(cd $i; pwd)`
20492 break
20493 fi
20494 done
20495 fi
20496 # check in a few other private locations
20497 if test x"${ac_cv_c_tkconfig}" = x ; then
20498 for i in \
20499 ${srcdir}/../tk \
20500 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20501 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20502 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20503 if test -f "$i/$platDir/tkConfig.sh" ; then
20504 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20505 break
20506 fi
20507 done
20508 fi
20509
20510 fi
20511
20512
20513 if test x"${ac_cv_c_tkconfig}" = x ; then
20514 TK_BIN_DIR="# no Tk configs found"
20515 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20516 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20517 else
20518 no_tk=
20519 TK_BIN_DIR=${ac_cv_c_tkconfig}
20520 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20521 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20522 fi
20523 fi
20524
20525
20526 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20527
20528 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20529 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20530
20531 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20532 echo "$as_me:$LINENO: result: loading" >&5
20533 echo "${ECHO_T}loading" >&6
20534 . ${TCL_BIN_DIR}/tclConfig.sh
20535 else
20536 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20537 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20538 fi
20539
20540 # eval is required to do the TCL_DBGX substitution
20541 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20542 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20543
20544 # If the TCL_BIN_DIR is the build directory (not the install directory),
20545 # then set the common variable name to the value of the build variables.
20546 # For example, the variable TCL_LIB_SPEC will be set to the value
20547 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20548 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20549 # installed and uninstalled version of Tcl.
20550 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20551 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20552 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20553 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20554 elif test "`uname -s`" = "Darwin"; then
20555 # If Tcl was built as a framework, attempt to use the libraries
20556 # from the framework at the given location so that linking works
20557 # against Tcl.framework installed in an arbitary location.
20558 case ${TCL_DEFS} in
20559 *TCL_FRAMEWORK*)
20560 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20561 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20562 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20563 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20564 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20565 break
20566 fi
20567 done
20568 fi
20569 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20570 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20571 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20572 fi
20573 ;;
20574 esac
20575 fi
20576
20577 # eval is required to do the TCL_DBGX substitution
20578 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20579 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20580 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20581 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597 # Check for in-tree tcl
20598 here=`pwd`
20599 cd ${srcdir}/..
20600 topdir=`pwd`
20601 cd ${here}
20602
20603 intree="no"
20604 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20605 intree="yes"
20606 fi
20607
20608 # Find Tcl private headers
20609 if test x"${intree}" = xno; then
20610
20611 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20612 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20613 private_dir=""
20614 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20615 if test -f ${dir}/tclInt.h ; then
20616 private_dir=${dir}
20617 fi
20618
20619 if test x"${private_dir}" = x; then
20620 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20621 echo "$as_me: error: could not find private Tcl headers" >&2;}
20622 { (exit 1); exit 1; }; }
20623 else
20624 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20625 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20626 echo "${ECHO_T}${private_dir}" >&6
20627 fi
20628
20629 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20630 TCL_LIBRARY="${TCL_LIB_SPEC}"
20631 TCL_DEPS=""
20632 else
20633 # If building tcl in the same src tree, private headers
20634 # are not needed, but we need to be sure to use the right
20635 # headers library
20636 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20637 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20638 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20639 fi
20640
20641
20642
20643
20644
20645 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20646 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20647
20648 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20649 echo "$as_me:$LINENO: result: loading" >&5
20650 echo "${ECHO_T}loading" >&6
20651 . ${TK_BIN_DIR}/tkConfig.sh
20652 else
20653 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20654 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20655 fi
20656
20657 # eval is required to do the TK_DBGX substitution
20658 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20659 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20660
20661 # If the TK_BIN_DIR is the build directory (not the install directory),
20662 # then set the common variable name to the value of the build variables.
20663 # For example, the variable TK_LIB_SPEC will be set to the value
20664 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20665 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20666 # installed and uninstalled version of Tcl.
20667 if test -f "${TK_BIN_DIR}/Makefile" ; then
20668 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20669 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20670 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20671 elif test "`uname -s`" = "Darwin"; then
20672 # If Tk was built as a framework, attempt to use the libraries
20673 # from the framework at the given location so that linking works
20674 # against Tk.framework installed in an arbitary location.
20675 case ${TK_DEFS} in
20676 *TK_FRAMEWORK*)
20677 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20678 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20679 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20680 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20681 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20682 break
20683 fi
20684 done
20685 fi
20686 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20687 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20688 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20689 fi
20690 ;;
20691 esac
20692 fi
20693
20694 # eval is required to do the TK_DBGX substitution
20695 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20696 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20697 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20698 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713 # Check for in-tree Tk
20714 intree="no"
20715 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20716 intree="yes"
20717 fi
20718
20719 # Find Tk private headers
20720 if test x"${intree}" = xno; then
20721
20722 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20723 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20724 private_dir=""
20725 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20726 if test -f ${dir}/tkInt.h; then
20727 private_dir=${dir}
20728 fi
20729
20730 if test x"${private_dir}" = x; then
20731 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20732 echo "$as_me: error: could not find Tk private headers" >&2;}
20733 { (exit 1); exit 1; }; }
20734 else
20735 TK_PRIVATE_INCLUDE="-I${private_dir}"
20736 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20737 echo "${ECHO_T}${private_dir}" >&6
20738 fi
20739
20740 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20741 TK_LIBRARY=${TK_LIB_SPEC}
20742 TK_DEPS=""
20743 else
20744 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20745 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20746 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20747 fi
20748
20749
20750
20751
20752
20753 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20754
20755 # Include some libraries that Tcl and Tk want.
20756 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20757 # Yes, the ordering seems wrong here. But it isn't.
20758 # TK_LIBS is the list of libraries that need to be linked
20759 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20760 # were in LIBS then any link tests after this point would
20761 # try to include things like `$(LIBGUI)', which wouldn't work.
20762 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20763
20764 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20765 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20766 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20767 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20768 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20769 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20770 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20771
20772 if test x$gdb_cv_os_cygwin = xyes; then
20773 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20774 WIN32LDAPP="-Wl,--subsystem,console"
20775 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20776 fi
20777
20778
20779
20780 subdirs="$subdirs gdbtk"
20781
20782 fi
20783 fi
20784
20785
20786
20787
20788
20789
20790
20791
20792 echo "$as_me:$LINENO: checking for X" >&5
20793 echo $ECHO_N "checking for X... $ECHO_C" >&6
20794
20795
20796 # Check whether --with-x or --without-x was given.
20797 if test "${with_x+set}" = set; then
20798 withval="$with_x"
20799
20800 fi;
20801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20802 if test "x$with_x" = xno; then
20803 # The user explicitly disabled X.
20804 have_x=disabled
20805 else
20806 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20807 # Both variables are already set.
20808 have_x=yes
20809 else
20810 if test "${ac_cv_have_x+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813 # One or both of the vars are not set, and there is no cached value.
20814 ac_x_includes=no ac_x_libraries=no
20815 rm -fr conftest.dir
20816 if mkdir conftest.dir; then
20817 cd conftest.dir
20818 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20819 cat >Imakefile <<'_ACEOF'
20820 acfindx:
20821 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20822 _ACEOF
20823 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20825 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20826 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20827 for ac_extension in a so sl; do
20828 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20829 test -f $ac_im_libdir/libX11.$ac_extension; then
20830 ac_im_usrlibdir=$ac_im_libdir; break
20831 fi
20832 done
20833 # Screen out bogus values from the imake configuration. They are
20834 # bogus both because they are the default anyway, and because
20835 # using them would break gcc on systems where it needs fixed includes.
20836 case $ac_im_incroot in
20837 /usr/include) ;;
20838 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20839 esac
20840 case $ac_im_usrlibdir in
20841 /usr/lib | /lib) ;;
20842 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20843 esac
20844 fi
20845 cd ..
20846 rm -fr conftest.dir
20847 fi
20848
20849 # Standard set of common directories for X headers.
20850 # Check X11 before X11Rn because it is often a symlink to the current release.
20851 ac_x_header_dirs='
20852 /usr/X11/include
20853 /usr/X11R6/include
20854 /usr/X11R5/include
20855 /usr/X11R4/include
20856
20857 /usr/include/X11
20858 /usr/include/X11R6
20859 /usr/include/X11R5
20860 /usr/include/X11R4
20861
20862 /usr/local/X11/include
20863 /usr/local/X11R6/include
20864 /usr/local/X11R5/include
20865 /usr/local/X11R4/include
20866
20867 /usr/local/include/X11
20868 /usr/local/include/X11R6
20869 /usr/local/include/X11R5
20870 /usr/local/include/X11R4
20871
20872 /usr/X386/include
20873 /usr/x386/include
20874 /usr/XFree86/include/X11
20875
20876 /usr/include
20877 /usr/local/include
20878 /usr/unsupported/include
20879 /usr/athena/include
20880 /usr/local/x11r5/include
20881 /usr/lpp/Xamples/include
20882
20883 /usr/openwin/include
20884 /usr/openwin/share/include'
20885
20886 if test "$ac_x_includes" = no; then
20887 # Guess where to find include files, by looking for Intrinsic.h.
20888 # First, try using that file with no special directory specified.
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <X11/Intrinsic.h>
20896 _ACEOF
20897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } >/dev/null; then
20905 if test -s conftest.err; then
20906 ac_cpp_err=$ac_c_preproc_warn_flag
20907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20908 else
20909 ac_cpp_err=
20910 fi
20911 else
20912 ac_cpp_err=yes
20913 fi
20914 if test -z "$ac_cpp_err"; then
20915 # We can compile using X headers with no special include directory.
20916 ac_x_includes=
20917 else
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 for ac_dir in $ac_x_header_dirs; do
20922 if test -r "$ac_dir/X11/Intrinsic.h"; then
20923 ac_x_includes=$ac_dir
20924 break
20925 fi
20926 done
20927 fi
20928 rm -f conftest.err conftest.$ac_ext
20929 fi # $ac_x_includes = no
20930
20931 if test "$ac_x_libraries" = no; then
20932 # Check for the libraries.
20933 # See if we find them without any special options.
20934 # Don't add to $LIBS permanently.
20935 ac_save_LIBS=$LIBS
20936 LIBS="-lXt $LIBS"
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 #include <X11/Intrinsic.h>
20944 int
20945 main ()
20946 {
20947 XtMalloc (0)
20948 ;
20949 return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext conftest$ac_exeext
20953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20954 (eval $ac_link) 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -z "$ac_c_werror_flag"
20962 || test ! -s conftest.err'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest$ac_exeext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 LIBS=$ac_save_LIBS
20975 # We can link X programs with no special library path.
20976 ac_x_libraries=
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 LIBS=$ac_save_LIBS
20982 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20983 do
20984 # Don't even attempt the hair of trying to link an X program!
20985 for ac_extension in a so sl; do
20986 if test -r $ac_dir/libXt.$ac_extension; then
20987 ac_x_libraries=$ac_dir
20988 break 2
20989 fi
20990 done
20991 done
20992 fi
20993 rm -f conftest.err conftest.$ac_objext \
20994 conftest$ac_exeext conftest.$ac_ext
20995 fi # $ac_x_libraries = no
20996
20997 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20998 # Didn't find X anywhere. Cache the known absence of X.
20999 ac_cv_have_x="have_x=no"
21000 else
21001 # Record where we found X for the cache.
21002 ac_cv_have_x="have_x=yes \
21003 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21004 fi
21005 fi
21006
21007 fi
21008 eval "$ac_cv_have_x"
21009 fi # $with_x != no
21010
21011 if test "$have_x" != yes; then
21012 echo "$as_me:$LINENO: result: $have_x" >&5
21013 echo "${ECHO_T}$have_x" >&6
21014 no_x=yes
21015 else
21016 # If each of the values was on the command line, it overrides each guess.
21017 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21018 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21019 # Update the cache value to reflect the command line values.
21020 ac_cv_have_x="have_x=yes \
21021 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21022 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21023 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21024 fi
21025
21026
21027 # Unlike the sim directory, whether a simulator is linked is controlled by
21028 # presence of a gdb_sim definition in the target configure.tgt entry.
21029 # This code just checks for a few cases where we'd like to ignore those
21030 # definitions, even when they're present in the '.mt' file. These cases
21031 # are when --disable-sim is specified, or if the simulator directory is
21032 # not part of the source tree.
21033 #
21034 # Check whether --enable-sim or --disable-sim was given.
21035 if test "${enable_sim+set}" = set; then
21036 enableval="$enable_sim"
21037 echo "enable_sim = $enable_sim";
21038 echo "enableval = ${enableval}";
21039 case "${enableval}" in
21040 yes) ignore_sim=false ;;
21041 no) ignore_sim=true ;;
21042 *) ignore_sim=false ;;
21043 esac
21044 else
21045 ignore_sim=false
21046 fi;
21047
21048 if test ! -d "${srcdir}/../sim"; then
21049 ignore_sim=true
21050 fi
21051
21052 SIM=
21053 SIM_OBS=
21054 if test "${ignore_sim}" = "false"; then
21055 if test x"${gdb_sim}" != x ; then
21056 SIM="${gdb_sim}"
21057 SIM_OBS="remote-sim.o"
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define WITH_SIM 1
21061 _ACEOF
21062
21063 fi
21064 fi
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079 # List of host floatformats.
21080
21081 cat >>confdefs.h <<_ACEOF
21082 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21083 _ACEOF
21084
21085
21086 cat >>confdefs.h <<_ACEOF
21087 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21088 _ACEOF
21089
21090
21091 cat >>confdefs.h <<_ACEOF
21092 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21093 _ACEOF
21094
21095
21096 # target_subdir is used by the testsuite to find the target libraries.
21097 target_subdir=
21098 if test "${host}" != "${target}"; then
21099 target_subdir="${target_alias}/"
21100 fi
21101
21102
21103 frags=
21104 if test "${gdb_native}" = "yes"; then
21105 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21106 if test ! -f ${host_makefile_frag}; then
21107 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21108 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21109 { (exit 1); exit 1; }; }
21110 fi
21111 frags="$frags $host_makefile_frag"
21112 else
21113 host_makefile_frag=/dev/null
21114 fi
21115
21116
21117
21118
21119 if test "${gdb_native}" = "yes"; then
21120 # We pick this up from the host configuration file (.mh) because we
21121 # do not have a native configuration Makefile fragment.
21122 nativefile=`sed -n '
21123 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21124 ' ${host_makefile_frag}`
21125 fi
21126
21127
21128 if test x"${gdb_osabi}" != x ; then
21129
21130 cat >>confdefs.h <<_ACEOF
21131 #define GDB_OSABI_DEFAULT $gdb_osabi
21132 _ACEOF
21133
21134 fi
21135
21136 # Enable multi-ice-gdb-server.
21137 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21138 if test "${enable_multi_ice+set}" = set; then
21139 enableval="$enable_multi_ice"
21140 case $enableval in
21141 yes | no)
21142 ;;
21143 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21144 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21145 { (exit 1); exit 1; }; } ;;
21146 esac
21147 fi;
21148 if test "x$enable_multi_ice" = xyes; then
21149
21150
21151 subdirs="$subdirs multi-ice"
21152
21153 fi
21154
21155 # We only build gdbserver automatically in a native configuration.
21156 if test "$gdb_native" = "yes"; then
21157 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21158 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21159 if test "x$build_gdbserver" = xyes; then
21160 echo "$as_me:$LINENO: result: yes" >&5
21161 echo "${ECHO_T}yes" >&6
21162
21163
21164 subdirs="$subdirs gdbserver"
21165
21166 else
21167 echo "$as_me:$LINENO: result: no" >&5
21168 echo "${ECHO_T}no" >&6
21169 fi
21170 fi
21171
21172 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21173 # to an empty version.
21174
21175 files=
21176 links=
21177
21178 rm -f nm.h
21179 nm_h=""
21180 if test "${nativefile}" != ""; then
21181 nm_h=nm.h
21182 case "${nativefile}" in
21183 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21184 * ) GDB_NM_FILE="${nativefile}"
21185 esac
21186 files="${files} ${GDB_NM_FILE}"
21187 links="${links} nm.h"
21188
21189 cat >>confdefs.h <<_ACEOF
21190 #define GDB_NM_FILE "${GDB_NM_FILE}"
21191 _ACEOF
21192
21193 fi
21194
21195
21196 ac_sources="$files"
21197 ac_dests="$links"
21198 while test -n "$ac_sources"; do
21199 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21200 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21201 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21202 done
21203 ac_config_links="$ac_config_links $ac_config_links_1"
21204
21205
21206
21207
21208
21209 cat >>confdefs.h <<\_ACEOF
21210 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21211 _ACEOF
21212
21213
21214 # Flags needed to enable html installing and building
21215
21216 # Check whether --with-datarootdir or --without-datarootdir was given.
21217 if test "${with_datarootdir+set}" = set; then
21218 withval="$with_datarootdir"
21219 datarootdir="\${prefix}/${withval}"
21220 else
21221 datarootdir="\${prefix}/share"
21222 fi;
21223
21224
21225 # Check whether --with-docdir or --without-docdir was given.
21226 if test "${with_docdir+set}" = set; then
21227 withval="$with_docdir"
21228 docdir="\${prefix}/${withval}"
21229 else
21230 docdir="\${datarootdir}/doc"
21231 fi;
21232
21233
21234 # Check whether --with-pdfdir or --without-pdfdir was given.
21235 if test "${with_pdfdir+set}" = set; then
21236 withval="$with_pdfdir"
21237 pdfdir="\${prefix}/${withval}"
21238 else
21239 pdfdir="\${docdir}"
21240 fi;
21241
21242
21243 # Check whether --with-htmldir or --without-htmldir was given.
21244 if test "${with_htmldir+set}" = set; then
21245 withval="$with_htmldir"
21246 htmldir="\${prefix}/${withval}"
21247 else
21248 htmldir="\${docdir}"
21249 fi;
21250
21251
21252
21253
21254
21255
21256 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21257 ac_config_commands="$ac_config_commands default"
21258 cat >confcache <<\_ACEOF
21259 # This file is a shell script that caches the results of configure
21260 # tests run on this system so they can be shared between configure
21261 # scripts and configure runs, see configure's option --config-cache.
21262 # It is not useful on other systems. If it contains results you don't
21263 # want to keep, you may remove or edit it.
21264 #
21265 # config.status only pays attention to the cache file if you give it
21266 # the --recheck option to rerun configure.
21267 #
21268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21270 # following values.
21271
21272 _ACEOF
21273
21274 # The following way of writing the cache mishandles newlines in values,
21275 # but we know of no workaround that is simple, portable, and efficient.
21276 # So, don't put newlines in cache variables' values.
21277 # Ultrix sh set writes to stderr and can't be redirected directly,
21278 # and sets the high bit in the cache file unless we assign to the vars.
21279 {
21280 (set) 2>&1 |
21281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21282 *ac_space=\ *)
21283 # `set' does not quote correctly, so add quotes (double-quote
21284 # substitution turns \\\\ into \\, and sed turns \\ into \).
21285 sed -n \
21286 "s/'/'\\\\''/g;
21287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21288 ;;
21289 *)
21290 # `set' quotes correctly as required by POSIX, so do not add quotes.
21291 sed -n \
21292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21293 ;;
21294 esac;
21295 } |
21296 sed '
21297 t clear
21298 : clear
21299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21300 t end
21301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21302 : end' >>confcache
21303 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21304 if test -w $cache_file; then
21305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21306 cat confcache >$cache_file
21307 else
21308 echo "not updating unwritable cache $cache_file"
21309 fi
21310 fi
21311 rm -f confcache
21312
21313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21314 # Let make expand exec_prefix.
21315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21316
21317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21319 # trailing colons and then remove the whole line if VPATH becomes empty
21320 # (actually we leave an empty line to preserve line numbers).
21321 if test "x$srcdir" = x.; then
21322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21323 s/:*\$(srcdir):*/:/;
21324 s/:*\${srcdir}:*/:/;
21325 s/:*@srcdir@:*/:/;
21326 s/^\([^=]*=[ ]*\):*/\1/;
21327 s/:*$//;
21328 s/^[^=]*=[ ]*$//;
21329 }'
21330 fi
21331
21332 DEFS=-DHAVE_CONFIG_H
21333
21334 ac_libobjs=
21335 ac_ltlibobjs=
21336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21337 # 1. Remove the extension, and $U if already installed.
21338 ac_i=`echo "$ac_i" |
21339 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21340 # 2. Add them.
21341 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21342 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21343 done
21344 LIBOBJS=$ac_libobjs
21345
21346 LTLIBOBJS=$ac_ltlibobjs
21347
21348
21349 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21350 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21351 Usually this means the macro was only invoked conditionally." >&5
21352 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21353 Usually this means the macro was only invoked conditionally." >&2;}
21354 { (exit 1); exit 1; }; }
21355 fi
21356 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21357 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21358 Usually this means the macro was only invoked conditionally." >&5
21359 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21360 Usually this means the macro was only invoked conditionally." >&2;}
21361 { (exit 1); exit 1; }; }
21362 fi
21363 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21364 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21365 Usually this means the macro was only invoked conditionally." >&5
21366 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21367 Usually this means the macro was only invoked conditionally." >&2;}
21368 { (exit 1); exit 1; }; }
21369 fi
21370
21371 gl_libobjs=
21372 gl_ltlibobjs=
21373 if test -n "$gl_LIBOBJS"; then
21374 # Remove the extension.
21375 sed_drop_objext='s/\.o$//;s/\.obj$//'
21376 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21377 gl_libobjs="$gl_libobjs $i.$ac_objext"
21378 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21379 done
21380 fi
21381 gl_LIBOBJS=$gl_libobjs
21382
21383 gl_LTLIBOBJS=$gl_ltlibobjs
21384
21385
21386
21387 gltests_libobjs=
21388 gltests_ltlibobjs=
21389 if test -n "$gltests_LIBOBJS"; then
21390 # Remove the extension.
21391 sed_drop_objext='s/\.o$//;s/\.obj$//'
21392 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21393 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21394 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21395 done
21396 fi
21397 gltests_LIBOBJS=$gltests_libobjs
21398
21399 gltests_LTLIBOBJS=$gltests_ltlibobjs
21400
21401
21402 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21403 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21404 Usually this means the macro was only invoked conditionally." >&5
21405 echo "$as_me: error: conditional \"AMDEP\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21410 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&5
21412 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&2;}
21414 { (exit 1); exit 1; }; }
21415 fi
21416
21417 : ${CONFIG_STATUS=./config.status}
21418 ac_clean_files_save=$ac_clean_files
21419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21420 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21422 cat >$CONFIG_STATUS <<_ACEOF
21423 #! $SHELL
21424 # Generated by $as_me.
21425 # Run this file to recreate the current configuration.
21426 # Compiler output produced by configure, useful for debugging
21427 # configure, is in config.log if it exists.
21428
21429 debug=false
21430 ac_cs_recheck=false
21431 ac_cs_silent=false
21432 SHELL=\${CONFIG_SHELL-$SHELL}
21433 _ACEOF
21434
21435 cat >>$CONFIG_STATUS <<\_ACEOF
21436 ## --------------------- ##
21437 ## M4sh Initialization. ##
21438 ## --------------------- ##
21439
21440 # Be Bourne compatible
21441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21442 emulate sh
21443 NULLCMD=:
21444 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21445 # is contrary to our usage. Disable this feature.
21446 alias -g '${1+"$@"}'='"$@"'
21447 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21448 set -o posix
21449 fi
21450 DUALCASE=1; export DUALCASE # for MKS sh
21451
21452 # Support unset when possible.
21453 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21454 as_unset=unset
21455 else
21456 as_unset=false
21457 fi
21458
21459
21460 # Work around bugs in pre-3.0 UWIN ksh.
21461 $as_unset ENV MAIL MAILPATH
21462 PS1='$ '
21463 PS2='> '
21464 PS4='+ '
21465
21466 # NLS nuisances.
21467 for as_var in \
21468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21470 LC_TELEPHONE LC_TIME
21471 do
21472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21473 eval $as_var=C; export $as_var
21474 else
21475 $as_unset $as_var
21476 fi
21477 done
21478
21479 # Required to use basename.
21480 if expr a : '\(a\)' >/dev/null 2>&1; then
21481 as_expr=expr
21482 else
21483 as_expr=false
21484 fi
21485
21486 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21487 as_basename=basename
21488 else
21489 as_basename=false
21490 fi
21491
21492
21493 # Name of the executable.
21494 as_me=`$as_basename "$0" ||
21495 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21496 X"$0" : 'X\(//\)$' \| \
21497 X"$0" : 'X\(/\)$' \| \
21498 . : '\(.\)' 2>/dev/null ||
21499 echo X/"$0" |
21500 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21501 /^X\/\(\/\/\)$/{ s//\1/; q; }
21502 /^X\/\(\/\).*/{ s//\1/; q; }
21503 s/.*/./; q'`
21504
21505
21506 # PATH needs CR, and LINENO needs CR and PATH.
21507 # Avoid depending upon Character Ranges.
21508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21511 as_cr_digits='0123456789'
21512 as_cr_alnum=$as_cr_Letters$as_cr_digits
21513
21514 # The user is always right.
21515 if test "${PATH_SEPARATOR+set}" != set; then
21516 echo "#! /bin/sh" >conf$$.sh
21517 echo "exit 0" >>conf$$.sh
21518 chmod +x conf$$.sh
21519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21520 PATH_SEPARATOR=';'
21521 else
21522 PATH_SEPARATOR=:
21523 fi
21524 rm -f conf$$.sh
21525 fi
21526
21527
21528 as_lineno_1=$LINENO
21529 as_lineno_2=$LINENO
21530 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21531 test "x$as_lineno_1" != "x$as_lineno_2" &&
21532 test "x$as_lineno_3" = "x$as_lineno_2" || {
21533 # Find who we are. Look in the path if we contain no path at all
21534 # relative or not.
21535 case $0 in
21536 *[\\/]* ) as_myself=$0 ;;
21537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21539 do
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21543 done
21544
21545 ;;
21546 esac
21547 # We did not find ourselves, most probably we were run as `sh COMMAND'
21548 # in which case we are not to be found in the path.
21549 if test "x$as_myself" = x; then
21550 as_myself=$0
21551 fi
21552 if test ! -f "$as_myself"; then
21553 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21554 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21555 { (exit 1); exit 1; }; }
21556 fi
21557 case $CONFIG_SHELL in
21558 '')
21559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21560 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21561 do
21562 IFS=$as_save_IFS
21563 test -z "$as_dir" && as_dir=.
21564 for as_base in sh bash ksh sh5; do
21565 case $as_dir in
21566 /*)
21567 if ("$as_dir/$as_base" -c '
21568 as_lineno_1=$LINENO
21569 as_lineno_2=$LINENO
21570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21571 test "x$as_lineno_1" != "x$as_lineno_2" &&
21572 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21573 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21574 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21575 CONFIG_SHELL=$as_dir/$as_base
21576 export CONFIG_SHELL
21577 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21578 fi;;
21579 esac
21580 done
21581 done
21582 ;;
21583 esac
21584
21585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21586 # uniformly replaced by the line number. The first 'sed' inserts a
21587 # line-number line before each line; the second 'sed' does the real
21588 # work. The second script uses 'N' to pair each line-number line
21589 # with the numbered line, and appends trailing '-' during
21590 # substitution so that $LINENO is not a special case at line end.
21591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21592 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21593 sed '=' <$as_myself |
21594 sed '
21595 N
21596 s,$,-,
21597 : loop
21598 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21599 t loop
21600 s,-$,,
21601 s,^['$as_cr_digits']*\n,,
21602 ' >$as_me.lineno &&
21603 chmod +x $as_me.lineno ||
21604 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21605 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21606 { (exit 1); exit 1; }; }
21607
21608 # Don't try to exec as it changes $[0], causing all sort of problems
21609 # (the dirname of $[0] is not the place where we might find the
21610 # original and so on. Autoconf is especially sensible to this).
21611 . ./$as_me.lineno
21612 # Exit status is that of the last command.
21613 exit
21614 }
21615
21616
21617 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21618 *c*,-n*) ECHO_N= ECHO_C='
21619 ' ECHO_T=' ' ;;
21620 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21621 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21622 esac
21623
21624 if expr a : '\(a\)' >/dev/null 2>&1; then
21625 as_expr=expr
21626 else
21627 as_expr=false
21628 fi
21629
21630 rm -f conf$$ conf$$.exe conf$$.file
21631 echo >conf$$.file
21632 if ln -s conf$$.file conf$$ 2>/dev/null; then
21633 # We could just check for DJGPP; but this test a) works b) is more generic
21634 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21635 if test -f conf$$.exe; then
21636 # Don't use ln at all; we don't have any links
21637 as_ln_s='cp -p'
21638 else
21639 as_ln_s='ln -s'
21640 fi
21641 elif ln conf$$.file conf$$ 2>/dev/null; then
21642 as_ln_s=ln
21643 else
21644 as_ln_s='cp -p'
21645 fi
21646 rm -f conf$$ conf$$.exe conf$$.file
21647
21648 if mkdir -p . 2>/dev/null; then
21649 as_mkdir_p=:
21650 else
21651 test -d ./-p && rmdir ./-p
21652 as_mkdir_p=false
21653 fi
21654
21655 as_executable_p="test -f"
21656
21657 # Sed expression to map a string onto a valid CPP name.
21658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21659
21660 # Sed expression to map a string onto a valid variable name.
21661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21662
21663
21664 # IFS
21665 # We need space, tab and new line, in precisely that order.
21666 as_nl='
21667 '
21668 IFS=" $as_nl"
21669
21670 # CDPATH.
21671 $as_unset CDPATH
21672
21673 exec 6>&1
21674
21675 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21676 # report actual input values of CONFIG_FILES etc. instead of their
21677 # values after options handling. Logging --version etc. is OK.
21678 exec 5>>config.log
21679 {
21680 echo
21681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21682 ## Running $as_me. ##
21683 _ASBOX
21684 } >&5
21685 cat >&5 <<_CSEOF
21686
21687 This file was extended by $as_me, which was
21688 generated by GNU Autoconf 2.59. Invocation command line was
21689
21690 CONFIG_FILES = $CONFIG_FILES
21691 CONFIG_HEADERS = $CONFIG_HEADERS
21692 CONFIG_LINKS = $CONFIG_LINKS
21693 CONFIG_COMMANDS = $CONFIG_COMMANDS
21694 $ $0 $@
21695
21696 _CSEOF
21697 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21698 echo >&5
21699 _ACEOF
21700
21701 # Files that config.status was made for.
21702 if test -n "$ac_config_files"; then
21703 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21704 fi
21705
21706 if test -n "$ac_config_headers"; then
21707 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21708 fi
21709
21710 if test -n "$ac_config_links"; then
21711 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21712 fi
21713
21714 if test -n "$ac_config_commands"; then
21715 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21716 fi
21717
21718 cat >>$CONFIG_STATUS <<\_ACEOF
21719
21720 ac_cs_usage="\
21721 \`$as_me' instantiates files from templates according to the
21722 current configuration.
21723
21724 Usage: $0 [OPTIONS] [FILE]...
21725
21726 -h, --help print this help, then exit
21727 -V, --version print version number, then exit
21728 -q, --quiet do not print progress messages
21729 -d, --debug don't remove temporary files
21730 --recheck update $as_me by reconfiguring in the same conditions
21731 --file=FILE[:TEMPLATE]
21732 instantiate the configuration file FILE
21733 --header=FILE[:TEMPLATE]
21734 instantiate the configuration header FILE
21735
21736 Configuration files:
21737 $config_files
21738
21739 Configuration headers:
21740 $config_headers
21741
21742 Configuration links:
21743 $config_links
21744
21745 Configuration commands:
21746 $config_commands
21747
21748 Report bugs to <bug-autoconf@gnu.org>."
21749 _ACEOF
21750
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 ac_cs_version="\\
21753 config.status
21754 configured by $0, generated by GNU Autoconf 2.59,
21755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21756
21757 Copyright (C) 2003 Free Software Foundation, Inc.
21758 This config.status script is free software; the Free Software Foundation
21759 gives unlimited permission to copy, distribute and modify it."
21760 srcdir=$srcdir
21761 INSTALL="$INSTALL"
21762 _ACEOF
21763
21764 cat >>$CONFIG_STATUS <<\_ACEOF
21765 # If no file are specified by the user, then we need to provide default
21766 # value. By we need to know if files were specified by the user.
21767 ac_need_defaults=:
21768 while test $# != 0
21769 do
21770 case $1 in
21771 --*=*)
21772 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21773 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21774 ac_shift=:
21775 ;;
21776 -*)
21777 ac_option=$1
21778 ac_optarg=$2
21779 ac_shift=shift
21780 ;;
21781 *) # This is not an option, so the user has probably given explicit
21782 # arguments.
21783 ac_option=$1
21784 ac_need_defaults=false;;
21785 esac
21786
21787 case $ac_option in
21788 # Handling of the options.
21789 _ACEOF
21790 cat >>$CONFIG_STATUS <<\_ACEOF
21791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21792 ac_cs_recheck=: ;;
21793 --version | --vers* | -V )
21794 echo "$ac_cs_version"; exit 0 ;;
21795 --he | --h)
21796 # Conflict between --help and --header
21797 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21798 Try \`$0 --help' for more information." >&5
21799 echo "$as_me: error: ambiguous option: $1
21800 Try \`$0 --help' for more information." >&2;}
21801 { (exit 1); exit 1; }; };;
21802 --help | --hel | -h )
21803 echo "$ac_cs_usage"; exit 0 ;;
21804 --debug | --d* | -d )
21805 debug=: ;;
21806 --file | --fil | --fi | --f )
21807 $ac_shift
21808 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21809 ac_need_defaults=false;;
21810 --header | --heade | --head | --hea )
21811 $ac_shift
21812 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21813 ac_need_defaults=false;;
21814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21816 ac_cs_silent=: ;;
21817
21818 # This is an error.
21819 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21820 Try \`$0 --help' for more information." >&5
21821 echo "$as_me: error: unrecognized option: $1
21822 Try \`$0 --help' for more information." >&2;}
21823 { (exit 1); exit 1; }; } ;;
21824
21825 *) ac_config_targets="$ac_config_targets $1" ;;
21826
21827 esac
21828 shift
21829 done
21830
21831 ac_configure_extra_args=
21832
21833 if $ac_cs_silent; then
21834 exec 6>/dev/null
21835 ac_configure_extra_args="$ac_configure_extra_args --silent"
21836 fi
21837
21838 _ACEOF
21839 cat >>$CONFIG_STATUS <<_ACEOF
21840 if \$ac_cs_recheck; then
21841 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21842 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21843 fi
21844
21845 _ACEOF
21846
21847 cat >>$CONFIG_STATUS <<_ACEOF
21848 #
21849 # INIT-COMMANDS section.
21850 #
21851
21852 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21853 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21854
21855 gdb_host_cpu=$gdb_host_cpu
21856 nativefile=$nativefile
21857
21858
21859 _ACEOF
21860
21861
21862
21863 cat >>$CONFIG_STATUS <<\_ACEOF
21864 for ac_config_target in $ac_config_targets
21865 do
21866 case "$ac_config_target" in
21867 # Handling of arguments.
21868 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21869 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21870 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21871 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21872 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21873 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21874 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21875 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21876 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21878 { (exit 1); exit 1; }; };;
21879 esac
21880 done
21881
21882 # If the user did not use the arguments to specify the items to instantiate,
21883 # then the envvar interface is used. Set only those that are not.
21884 # We use the long form for the default assignment because of an extremely
21885 # bizarre bug on SunOS 4.1.3.
21886 if $ac_need_defaults; then
21887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21889 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21891 fi
21892
21893 # Have a temporary directory for convenience. Make it in the build tree
21894 # simply because there is no reason to put it here, and in addition,
21895 # creating and moving files from /tmp can sometimes cause problems.
21896 # Create a temporary directory, and hook for its removal unless debugging.
21897 $debug ||
21898 {
21899 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21900 trap '{ (exit 1); exit 1; }' 1 2 13 15
21901 }
21902
21903 # Create a (secure) tmp directory for tmp files.
21904
21905 {
21906 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21907 test -n "$tmp" && test -d "$tmp"
21908 } ||
21909 {
21910 tmp=./confstat$$-$RANDOM
21911 (umask 077 && mkdir $tmp)
21912 } ||
21913 {
21914 echo "$me: cannot create a temporary directory in ." >&2
21915 { (exit 1); exit 1; }
21916 }
21917
21918 _ACEOF
21919
21920 cat >>$CONFIG_STATUS <<_ACEOF
21921
21922 #
21923 # CONFIG_FILES section.
21924 #
21925
21926 # No need to generate the scripts if there are no CONFIG_FILES.
21927 # This happens for instance when ./config.status config.h
21928 if test -n "\$CONFIG_FILES"; then
21929 # Protect against being on the right side of a sed subst in config.status.
21930 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21931 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21932 s,@SHELL@,$SHELL,;t t
21933 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21934 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21935 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21936 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21937 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21938 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21939 s,@exec_prefix@,$exec_prefix,;t t
21940 s,@prefix@,$prefix,;t t
21941 s,@program_transform_name@,$program_transform_name,;t t
21942 s,@bindir@,$bindir,;t t
21943 s,@sbindir@,$sbindir,;t t
21944 s,@libexecdir@,$libexecdir,;t t
21945 s,@datadir@,$datadir,;t t
21946 s,@sysconfdir@,$sysconfdir,;t t
21947 s,@sharedstatedir@,$sharedstatedir,;t t
21948 s,@localstatedir@,$localstatedir,;t t
21949 s,@libdir@,$libdir,;t t
21950 s,@includedir@,$includedir,;t t
21951 s,@oldincludedir@,$oldincludedir,;t t
21952 s,@infodir@,$infodir,;t t
21953 s,@mandir@,$mandir,;t t
21954 s,@build_alias@,$build_alias,;t t
21955 s,@host_alias@,$host_alias,;t t
21956 s,@target_alias@,$target_alias,;t t
21957 s,@DEFS@,$DEFS,;t t
21958 s,@ECHO_C@,$ECHO_C,;t t
21959 s,@ECHO_N@,$ECHO_N,;t t
21960 s,@ECHO_T@,$ECHO_T,;t t
21961 s,@LIBS@,$LIBS,;t t
21962 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21963 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21964 s,@MAINT@,$MAINT,;t t
21965 s,@CC@,$CC,;t t
21966 s,@CFLAGS@,$CFLAGS,;t t
21967 s,@LDFLAGS@,$LDFLAGS,;t t
21968 s,@CPPFLAGS@,$CPPFLAGS,;t t
21969 s,@ac_ct_CC@,$ac_ct_CC,;t t
21970 s,@EXEEXT@,$EXEEXT,;t t
21971 s,@OBJEXT@,$OBJEXT,;t t
21972 s,@CPP@,$CPP,;t t
21973 s,@EGREP@,$EGREP,;t t
21974 s,@RANLIB@,$RANLIB,;t t
21975 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21976 s,@build@,$build,;t t
21977 s,@build_cpu@,$build_cpu,;t t
21978 s,@build_vendor@,$build_vendor,;t t
21979 s,@build_os@,$build_os,;t t
21980 s,@host@,$host,;t t
21981 s,@host_cpu@,$host_cpu,;t t
21982 s,@host_vendor@,$host_vendor,;t t
21983 s,@host_os@,$host_os,;t t
21984 s,@target@,$target,;t t
21985 s,@target_cpu@,$target_cpu,;t t
21986 s,@target_vendor@,$target_vendor,;t t
21987 s,@target_os@,$target_os,;t t
21988 s,@am__leading_dot@,$am__leading_dot,;t t
21989 s,@DEPDIR@,$DEPDIR,;t t
21990 s,@CCDEPMODE@,$CCDEPMODE,;t t
21991 s,@MAKE@,$MAKE,;t t
21992 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21993 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21994 s,@SET_MAKE@,$SET_MAKE,;t t
21995 s,@USE_NLS@,$USE_NLS,;t t
21996 s,@LIBINTL@,$LIBINTL,;t t
21997 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21998 s,@INCINTL@,$INCINTL,;t t
21999 s,@XGETTEXT@,$XGETTEXT,;t t
22000 s,@GMSGFMT@,$GMSGFMT,;t t
22001 s,@POSUB@,$POSUB,;t t
22002 s,@CATALOGS@,$CATALOGS,;t t
22003 s,@DATADIRNAME@,$DATADIRNAME,;t t
22004 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22005 s,@GENCAT@,$GENCAT,;t t
22006 s,@CATOBJEXT@,$CATOBJEXT,;t t
22007 s,@localedir@,$localedir,;t t
22008 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
22009 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
22010 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
22011 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
22012 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
22013 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
22014 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
22015 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
22016 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
22017 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
22018 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
22019 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
22020 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
22021 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
22022 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
22023 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
22024 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
22025 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
22026 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
22027 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
22028 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
22029 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
22030 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
22031 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
22032 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
22033 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
22034 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
22035 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
22036 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
22037 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
22038 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
22039 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
22040 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
22041 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22042 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22043 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22044 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22045 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22046 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22047 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22048 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22049 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22050 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22051 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22052 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22053 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22054 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22055 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22056 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22057 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22058 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22059 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22060 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22061 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22062 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22063 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22064 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22065 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22066 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22067 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22068 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22069 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22070 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22071 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22072 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22073 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22074 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22075 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22076 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22077 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22078 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22079 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22080 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22081 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22082 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22083 s,@STDINT_H@,$STDINT_H,;t t
22084 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22085 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22086 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22087 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22088 s,@WCHAR_H@,$WCHAR_H,;t t
22089 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22090 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22091 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22092 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22093 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22094 s,@PACKAGE@,$PACKAGE,;t t
22095 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22096 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22097 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22098 s,@CYGPATH_W@,$CYGPATH_W,;t t
22099 s,@PYTHON2_4@,$PYTHON2_4,;t t
22100 s,@ACLOCAL@,$ACLOCAL,;t t
22101 s,@AUTOCONF@,$AUTOCONF,;t t
22102 s,@AUTOMAKE@,$AUTOMAKE,;t t
22103 s,@AUTOHEADER@,$AUTOHEADER,;t t
22104 s,@MAKEINFO@,$MAKEINFO,;t t
22105 s,@install_sh@,$install_sh,;t t
22106 s,@STRIP@,$STRIP,;t t
22107 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22108 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22109 s,@mkdir_p@,$mkdir_p,;t t
22110 s,@AWK@,$AWK,;t t
22111 s,@AMTAR@,$AMTAR,;t t
22112 s,@am__tar@,$am__tar,;t t
22113 s,@am__untar@,$am__untar,;t t
22114 s,@am__include@,$am__include,;t t
22115 s,@am__quote@,$am__quote,;t t
22116 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22117 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22118 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22119 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22120 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22121 s,@subdirs@,$subdirs,;t t
22122 s,@TARGET_OBS@,$TARGET_OBS,;t t
22123 s,@PKGVERSION@,$PKGVERSION,;t t
22124 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22125 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22126 s,@LN_S@,$LN_S,;t t
22127 s,@YACC@,$YACC,;t t
22128 s,@AR@,$AR,;t t
22129 s,@ac_ct_AR@,$ac_ct_AR,;t t
22130 s,@DLLTOOL@,$DLLTOOL,;t t
22131 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22132 s,@WINDRES@,$WINDRES,;t t
22133 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22134 s,@MIG@,$MIG,;t t
22135 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22136 s,@READLINE@,$READLINE,;t t
22137 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22138 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22139 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22140 s,@LIBEXPAT@,$LIBEXPAT,;t t
22141 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22142 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22143 s,@ALLOCA@,$ALLOCA,;t t
22144 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22145 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22146 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22147 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22148 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22149 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22150 s,@WIN32LIBS@,$WIN32LIBS,;t t
22151 s,@LIBGUI@,$LIBGUI,;t t
22152 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22153 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22154 s,@TCL_VERSION@,$TCL_VERSION,;t t
22155 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22156 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22157 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22158 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22159 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22160 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22161 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22162 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22163 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22164 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22165 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22166 s,@TCL_DEPS@,$TCL_DEPS,;t t
22167 s,@TK_VERSION@,$TK_VERSION,;t t
22168 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22169 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22170 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22171 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22172 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22173 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22174 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22175 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22176 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22177 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22178 s,@TK_DEPS@,$TK_DEPS,;t t
22179 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22180 s,@X_CFLAGS@,$X_CFLAGS,;t t
22181 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22182 s,@X_LIBS@,$X_LIBS,;t t
22183 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22184 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22185 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22186 s,@SIM@,$SIM,;t t
22187 s,@SIM_OBS@,$SIM_OBS,;t t
22188 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22189 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22190 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22191 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22192 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22193 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22194 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22195 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22196 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22197 s,@target_subdir@,$target_subdir,;t t
22198 s,@frags@,$frags,;t t
22199 s,@nm_h@,$nm_h,;t t
22200 s,@datarootdir@,$datarootdir,;t t
22201 s,@docdir@,$docdir,;t t
22202 s,@htmldir@,$htmldir,;t t
22203 s,@pdfdir@,$pdfdir,;t t
22204 s,@LIBOBJS@,$LIBOBJS,;t t
22205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22206 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22207 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22208 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22209 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22210 /@host_makefile_frag@/r $host_makefile_frag
22211 s,@host_makefile_frag@,,;t t
22212 CEOF
22213
22214 _ACEOF
22215
22216 cat >>$CONFIG_STATUS <<\_ACEOF
22217 # Split the substitutions into bite-sized pieces for seds with
22218 # small command number limits, like on Digital OSF/1 and HP-UX.
22219 ac_max_sed_lines=48
22220 ac_sed_frag=1 # Number of current file.
22221 ac_beg=1 # First line for current file.
22222 ac_end=$ac_max_sed_lines # Line after last line for current file.
22223 ac_more_lines=:
22224 ac_sed_cmds=
22225 while $ac_more_lines; do
22226 if test $ac_beg -gt 1; then
22227 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22228 else
22229 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22230 fi
22231 if test ! -s $tmp/subs.frag; then
22232 ac_more_lines=false
22233 else
22234 # The purpose of the label and of the branching condition is to
22235 # speed up the sed processing (if there are no `@' at all, there
22236 # is no need to browse any of the substitutions).
22237 # These are the two extra sed commands mentioned above.
22238 (echo ':t
22239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22240 if test -z "$ac_sed_cmds"; then
22241 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22242 else
22243 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22244 fi
22245 ac_sed_frag=`expr $ac_sed_frag + 1`
22246 ac_beg=$ac_end
22247 ac_end=`expr $ac_end + $ac_max_sed_lines`
22248 fi
22249 done
22250 if test -z "$ac_sed_cmds"; then
22251 ac_sed_cmds=cat
22252 fi
22253 fi # test -n "$CONFIG_FILES"
22254
22255 _ACEOF
22256 cat >>$CONFIG_STATUS <<\_ACEOF
22257 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22259 case $ac_file in
22260 - | *:- | *:-:* ) # input from stdin
22261 cat >$tmp/stdin
22262 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22264 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22266 * ) ac_file_in=$ac_file.in ;;
22267 esac
22268
22269 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22270 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272 X"$ac_file" : 'X\(//\)[^/]' \| \
22273 X"$ac_file" : 'X\(//\)$' \| \
22274 X"$ac_file" : 'X\(/\)' \| \
22275 . : '\(.\)' 2>/dev/null ||
22276 echo X"$ac_file" |
22277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22279 /^X\(\/\/\)$/{ s//\1/; q; }
22280 /^X\(\/\).*/{ s//\1/; q; }
22281 s/.*/./; q'`
22282 { if $as_mkdir_p; then
22283 mkdir -p "$ac_dir"
22284 else
22285 as_dir="$ac_dir"
22286 as_dirs=
22287 while test ! -d "$as_dir"; do
22288 as_dirs="$as_dir $as_dirs"
22289 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22291 X"$as_dir" : 'X\(//\)[^/]' \| \
22292 X"$as_dir" : 'X\(//\)$' \| \
22293 X"$as_dir" : 'X\(/\)' \| \
22294 . : '\(.\)' 2>/dev/null ||
22295 echo X"$as_dir" |
22296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22298 /^X\(\/\/\)$/{ s//\1/; q; }
22299 /^X\(\/\).*/{ s//\1/; q; }
22300 s/.*/./; q'`
22301 done
22302 test ! -n "$as_dirs" || mkdir $as_dirs
22303 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22305 { (exit 1); exit 1; }; }; }
22306
22307 ac_builddir=.
22308
22309 if test "$ac_dir" != .; then
22310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22311 # A "../" for each directory in $ac_dir_suffix.
22312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22313 else
22314 ac_dir_suffix= ac_top_builddir=
22315 fi
22316
22317 case $srcdir in
22318 .) # No --srcdir option. We are building in place.
22319 ac_srcdir=.
22320 if test -z "$ac_top_builddir"; then
22321 ac_top_srcdir=.
22322 else
22323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22324 fi ;;
22325 [\\/]* | ?:[\\/]* ) # Absolute path.
22326 ac_srcdir=$srcdir$ac_dir_suffix;
22327 ac_top_srcdir=$srcdir ;;
22328 *) # Relative path.
22329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22331 esac
22332
22333 # Do not use `cd foo && pwd` to compute absolute paths, because
22334 # the directories may not exist.
22335 case `pwd` in
22336 .) ac_abs_builddir="$ac_dir";;
22337 *)
22338 case "$ac_dir" in
22339 .) ac_abs_builddir=`pwd`;;
22340 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22341 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22342 esac;;
22343 esac
22344 case $ac_abs_builddir in
22345 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22346 *)
22347 case ${ac_top_builddir}. in
22348 .) ac_abs_top_builddir=$ac_abs_builddir;;
22349 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22350 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22351 esac;;
22352 esac
22353 case $ac_abs_builddir in
22354 .) ac_abs_srcdir=$ac_srcdir;;
22355 *)
22356 case $ac_srcdir in
22357 .) ac_abs_srcdir=$ac_abs_builddir;;
22358 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22359 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22360 esac;;
22361 esac
22362 case $ac_abs_builddir in
22363 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22364 *)
22365 case $ac_top_srcdir in
22366 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22367 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22368 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22369 esac;;
22370 esac
22371
22372
22373 case $INSTALL in
22374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22375 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22376 esac
22377
22378 if test x"$ac_file" != x-; then
22379 { echo "$as_me:$LINENO: creating $ac_file" >&5
22380 echo "$as_me: creating $ac_file" >&6;}
22381 rm -f "$ac_file"
22382 fi
22383 # Let's still pretend it is `configure' which instantiates (i.e., don't
22384 # use $as_me), people would be surprised to read:
22385 # /* config.h. Generated by config.status. */
22386 if test x"$ac_file" = x-; then
22387 configure_input=
22388 else
22389 configure_input="$ac_file. "
22390 fi
22391 configure_input=$configure_input"Generated from `echo $ac_file_in |
22392 sed 's,.*/,,'` by configure."
22393
22394 # First look for the input files in the build tree, otherwise in the
22395 # src tree.
22396 ac_file_inputs=`IFS=:
22397 for f in $ac_file_in; do
22398 case $f in
22399 -) echo $tmp/stdin ;;
22400 [\\/$]*)
22401 # Absolute (can't be DOS-style, as IFS=:)
22402 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22403 echo "$as_me: error: cannot find input file: $f" >&2;}
22404 { (exit 1); exit 1; }; }
22405 echo "$f";;
22406 *) # Relative
22407 if test -f "$f"; then
22408 # Build tree
22409 echo "$f"
22410 elif test -f "$srcdir/$f"; then
22411 # Source tree
22412 echo "$srcdir/$f"
22413 else
22414 # /dev/null tree
22415 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22416 echo "$as_me: error: cannot find input file: $f" >&2;}
22417 { (exit 1); exit 1; }; }
22418 fi;;
22419 esac
22420 done` || { (exit 1); exit 1; }
22421 _ACEOF
22422 cat >>$CONFIG_STATUS <<_ACEOF
22423 sed "$ac_vpsub
22424 $extrasub
22425 _ACEOF
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427 :t
22428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22429 s,@configure_input@,$configure_input,;t t
22430 s,@srcdir@,$ac_srcdir,;t t
22431 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22432 s,@top_srcdir@,$ac_top_srcdir,;t t
22433 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22434 s,@builddir@,$ac_builddir,;t t
22435 s,@abs_builddir@,$ac_abs_builddir,;t t
22436 s,@top_builddir@,$ac_top_builddir,;t t
22437 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22438 s,@INSTALL@,$ac_INSTALL,;t t
22439 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22440 rm -f $tmp/stdin
22441 if test x"$ac_file" != x-; then
22442 mv $tmp/out $ac_file
22443 else
22444 cat $tmp/out
22445 rm -f $tmp/out
22446 fi
22447
22448 done
22449 _ACEOF
22450 cat >>$CONFIG_STATUS <<\_ACEOF
22451
22452 #
22453 # CONFIG_HEADER section.
22454 #
22455
22456 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22457 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22458 #
22459 # ac_d sets the value in "#define NAME VALUE" lines.
22460 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22461 ac_dB='[ ].*$,\1#\2'
22462 ac_dC=' '
22463 ac_dD=',;t'
22464 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22465 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22466 ac_uB='$,\1#\2define\3'
22467 ac_uC=' '
22468 ac_uD=',;t'
22469
22470 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22471 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22472 case $ac_file in
22473 - | *:- | *:-:* ) # input from stdin
22474 cat >$tmp/stdin
22475 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22477 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22478 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22479 * ) ac_file_in=$ac_file.in ;;
22480 esac
22481
22482 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22483 echo "$as_me: creating $ac_file" >&6;}
22484
22485 # First look for the input files in the build tree, otherwise in the
22486 # src tree.
22487 ac_file_inputs=`IFS=:
22488 for f in $ac_file_in; do
22489 case $f in
22490 -) echo $tmp/stdin ;;
22491 [\\/$]*)
22492 # Absolute (can't be DOS-style, as IFS=:)
22493 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22494 echo "$as_me: error: cannot find input file: $f" >&2;}
22495 { (exit 1); exit 1; }; }
22496 # Do quote $f, to prevent DOS paths from being IFS'd.
22497 echo "$f";;
22498 *) # Relative
22499 if test -f "$f"; then
22500 # Build tree
22501 echo "$f"
22502 elif test -f "$srcdir/$f"; then
22503 # Source tree
22504 echo "$srcdir/$f"
22505 else
22506 # /dev/null tree
22507 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22508 echo "$as_me: error: cannot find input file: $f" >&2;}
22509 { (exit 1); exit 1; }; }
22510 fi;;
22511 esac
22512 done` || { (exit 1); exit 1; }
22513 # Remove the trailing spaces.
22514 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22515
22516 _ACEOF
22517
22518 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22519 # `conftest.undefs', that substitutes the proper values into
22520 # config.h.in to produce config.h. The first handles `#define'
22521 # templates, and the second `#undef' templates.
22522 # And first: Protect against being on the right side of a sed subst in
22523 # config.status. Protect against being in an unquoted here document
22524 # in config.status.
22525 rm -f conftest.defines conftest.undefs
22526 # Using a here document instead of a string reduces the quoting nightmare.
22527 # Putting comments in sed scripts is not portable.
22528 #
22529 # `end' is used to avoid that the second main sed command (meant for
22530 # 0-ary CPP macros) applies to n-ary macro definitions.
22531 # See the Autoconf documentation for `clear'.
22532 cat >confdef2sed.sed <<\_ACEOF
22533 s/[\\&,]/\\&/g
22534 s,[\\$`],\\&,g
22535 t clear
22536 : clear
22537 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22538 t end
22539 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22540 : end
22541 _ACEOF
22542 # If some macros were called several times there might be several times
22543 # the same #defines, which is useless. Nevertheless, we may not want to
22544 # sort them, since we want the *last* AC-DEFINE to be honored.
22545 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22546 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22547 rm -f confdef2sed.sed
22548
22549 # This sed command replaces #undef with comments. This is necessary, for
22550 # example, in the case of _POSIX_SOURCE, which is predefined and required
22551 # on some systems where configure will not decide to define it.
22552 cat >>conftest.undefs <<\_ACEOF
22553 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22554 _ACEOF
22555
22556 # Break up conftest.defines because some shells have a limit on the size
22557 # of here documents, and old seds have small limits too (100 cmds).
22558 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22559 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22560 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22561 echo ' :' >>$CONFIG_STATUS
22562 rm -f conftest.tail
22563 while grep . conftest.defines >/dev/null
22564 do
22565 # Write a limited-size here document to $tmp/defines.sed.
22566 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22567 # Speed up: don't consider the non `#define' lines.
22568 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22569 # Work around the forget-to-reset-the-flag bug.
22570 echo 't clr' >>$CONFIG_STATUS
22571 echo ': clr' >>$CONFIG_STATUS
22572 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22573 echo 'CEOF
22574 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22575 rm -f $tmp/in
22576 mv $tmp/out $tmp/in
22577 ' >>$CONFIG_STATUS
22578 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22579 rm -f conftest.defines
22580 mv conftest.tail conftest.defines
22581 done
22582 rm -f conftest.defines
22583 echo ' fi # grep' >>$CONFIG_STATUS
22584 echo >>$CONFIG_STATUS
22585
22586 # Break up conftest.undefs because some shells have a limit on the size
22587 # of here documents, and old seds have small limits too (100 cmds).
22588 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22589 rm -f conftest.tail
22590 while grep . conftest.undefs >/dev/null
22591 do
22592 # Write a limited-size here document to $tmp/undefs.sed.
22593 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22594 # Speed up: don't consider the non `#undef'
22595 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22596 # Work around the forget-to-reset-the-flag bug.
22597 echo 't clr' >>$CONFIG_STATUS
22598 echo ': clr' >>$CONFIG_STATUS
22599 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22600 echo 'CEOF
22601 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22602 rm -f $tmp/in
22603 mv $tmp/out $tmp/in
22604 ' >>$CONFIG_STATUS
22605 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22606 rm -f conftest.undefs
22607 mv conftest.tail conftest.undefs
22608 done
22609 rm -f conftest.undefs
22610
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22612 # Let's still pretend it is `configure' which instantiates (i.e., don't
22613 # use $as_me), people would be surprised to read:
22614 # /* config.h. Generated by config.status. */
22615 if test x"$ac_file" = x-; then
22616 echo "/* Generated by configure. */" >$tmp/config.h
22617 else
22618 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22619 fi
22620 cat $tmp/in >>$tmp/config.h
22621 rm -f $tmp/in
22622 if test x"$ac_file" != x-; then
22623 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22625 echo "$as_me: $ac_file is unchanged" >&6;}
22626 else
22627 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22629 X"$ac_file" : 'X\(//\)[^/]' \| \
22630 X"$ac_file" : 'X\(//\)$' \| \
22631 X"$ac_file" : 'X\(/\)' \| \
22632 . : '\(.\)' 2>/dev/null ||
22633 echo X"$ac_file" |
22634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22636 /^X\(\/\/\)$/{ s//\1/; q; }
22637 /^X\(\/\).*/{ s//\1/; q; }
22638 s/.*/./; q'`
22639 { if $as_mkdir_p; then
22640 mkdir -p "$ac_dir"
22641 else
22642 as_dir="$ac_dir"
22643 as_dirs=
22644 while test ! -d "$as_dir"; do
22645 as_dirs="$as_dir $as_dirs"
22646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22648 X"$as_dir" : 'X\(//\)[^/]' \| \
22649 X"$as_dir" : 'X\(//\)$' \| \
22650 X"$as_dir" : 'X\(/\)' \| \
22651 . : '\(.\)' 2>/dev/null ||
22652 echo X"$as_dir" |
22653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22655 /^X\(\/\/\)$/{ s//\1/; q; }
22656 /^X\(\/\).*/{ s//\1/; q; }
22657 s/.*/./; q'`
22658 done
22659 test ! -n "$as_dirs" || mkdir $as_dirs
22660 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22662 { (exit 1); exit 1; }; }; }
22663
22664 rm -f $ac_file
22665 mv $tmp/config.h $ac_file
22666 fi
22667 else
22668 cat $tmp/config.h
22669 rm -f $tmp/config.h
22670 fi
22671 # Compute $ac_file's index in $config_headers.
22672 _am_stamp_count=1
22673 for _am_header in $config_headers :; do
22674 case $_am_header in
22675 $ac_file | $ac_file:* )
22676 break ;;
22677 * )
22678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22679 esac
22680 done
22681 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22682 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22683 X$ac_file : 'X\(//\)[^/]' \| \
22684 X$ac_file : 'X\(//\)$' \| \
22685 X$ac_file : 'X\(/\)' \| \
22686 . : '\(.\)' 2>/dev/null ||
22687 echo X$ac_file |
22688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22690 /^X\(\/\/\)$/{ s//\1/; q; }
22691 /^X\(\/\).*/{ s//\1/; q; }
22692 s/.*/./; q'`/stamp-h$_am_stamp_count
22693 done
22694 _ACEOF
22695 cat >>$CONFIG_STATUS <<\_ACEOF
22696
22697 #
22698 # CONFIG_LINKS section.
22699 #
22700
22701 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22702 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22703 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22704
22705 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22706 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22707
22708 if test ! -r $srcdir/$ac_source; then
22709 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22710 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22711 { (exit 1); exit 1; }; }
22712 fi
22713 rm -f $ac_dest
22714
22715 # Make relative symlinks.
22716 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22717 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22718 X"$ac_dest" : 'X\(//\)[^/]' \| \
22719 X"$ac_dest" : 'X\(//\)$' \| \
22720 X"$ac_dest" : 'X\(/\)' \| \
22721 . : '\(.\)' 2>/dev/null ||
22722 echo X"$ac_dest" |
22723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22725 /^X\(\/\/\)$/{ s//\1/; q; }
22726 /^X\(\/\).*/{ s//\1/; q; }
22727 s/.*/./; q'`
22728 { if $as_mkdir_p; then
22729 mkdir -p "$ac_dest_dir"
22730 else
22731 as_dir="$ac_dest_dir"
22732 as_dirs=
22733 while test ! -d "$as_dir"; do
22734 as_dirs="$as_dir $as_dirs"
22735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22737 X"$as_dir" : 'X\(//\)[^/]' \| \
22738 X"$as_dir" : 'X\(//\)$' \| \
22739 X"$as_dir" : 'X\(/\)' \| \
22740 . : '\(.\)' 2>/dev/null ||
22741 echo X"$as_dir" |
22742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22744 /^X\(\/\/\)$/{ s//\1/; q; }
22745 /^X\(\/\).*/{ s//\1/; q; }
22746 s/.*/./; q'`
22747 done
22748 test ! -n "$as_dirs" || mkdir $as_dirs
22749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22750 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22751 { (exit 1); exit 1; }; }; }
22752
22753 ac_builddir=.
22754
22755 if test "$ac_dest_dir" != .; then
22756 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22757 # A "../" for each directory in $ac_dir_suffix.
22758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22759 else
22760 ac_dir_suffix= ac_top_builddir=
22761 fi
22762
22763 case $srcdir in
22764 .) # No --srcdir option. We are building in place.
22765 ac_srcdir=.
22766 if test -z "$ac_top_builddir"; then
22767 ac_top_srcdir=.
22768 else
22769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22770 fi ;;
22771 [\\/]* | ?:[\\/]* ) # Absolute path.
22772 ac_srcdir=$srcdir$ac_dir_suffix;
22773 ac_top_srcdir=$srcdir ;;
22774 *) # Relative path.
22775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22777 esac
22778
22779 # Do not use `cd foo && pwd` to compute absolute paths, because
22780 # the directories may not exist.
22781 case `pwd` in
22782 .) ac_abs_builddir="$ac_dest_dir";;
22783 *)
22784 case "$ac_dest_dir" in
22785 .) ac_abs_builddir=`pwd`;;
22786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22787 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22788 esac;;
22789 esac
22790 case $ac_abs_builddir in
22791 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22792 *)
22793 case ${ac_top_builddir}. in
22794 .) ac_abs_top_builddir=$ac_abs_builddir;;
22795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22797 esac;;
22798 esac
22799 case $ac_abs_builddir in
22800 .) ac_abs_srcdir=$ac_srcdir;;
22801 *)
22802 case $ac_srcdir in
22803 .) ac_abs_srcdir=$ac_abs_builddir;;
22804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22806 esac;;
22807 esac
22808 case $ac_abs_builddir in
22809 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22810 *)
22811 case $ac_top_srcdir in
22812 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22815 esac;;
22816 esac
22817
22818
22819 case $srcdir in
22820 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22821 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22822 esac
22823
22824 # Try a symlink, then a hard link, then a copy.
22825 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22826 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22827 cp -p $srcdir/$ac_source $ac_dest ||
22828 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22829 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22830 { (exit 1); exit 1; }; }
22831 done
22832 _ACEOF
22833 cat >>$CONFIG_STATUS <<\_ACEOF
22834
22835 #
22836 # CONFIG_COMMANDS section.
22837 #
22838 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22839 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22840 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22841 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22842 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$ac_dest" : 'X\(//\)[^/]' \| \
22844 X"$ac_dest" : 'X\(//\)$' \| \
22845 X"$ac_dest" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22847 echo X"$ac_dest" |
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22852 s/.*/./; q'`
22853 { if $as_mkdir_p; then
22854 mkdir -p "$ac_dir"
22855 else
22856 as_dir="$ac_dir"
22857 as_dirs=
22858 while test ! -d "$as_dir"; do
22859 as_dirs="$as_dir $as_dirs"
22860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22862 X"$as_dir" : 'X\(//\)[^/]' \| \
22863 X"$as_dir" : 'X\(//\)$' \| \
22864 X"$as_dir" : 'X\(/\)' \| \
22865 . : '\(.\)' 2>/dev/null ||
22866 echo X"$as_dir" |
22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22869 /^X\(\/\/\)$/{ s//\1/; q; }
22870 /^X\(\/\).*/{ s//\1/; q; }
22871 s/.*/./; q'`
22872 done
22873 test ! -n "$as_dirs" || mkdir $as_dirs
22874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22875 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22876 { (exit 1); exit 1; }; }; }
22877
22878 ac_builddir=.
22879
22880 if test "$ac_dir" != .; then
22881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22882 # A "../" for each directory in $ac_dir_suffix.
22883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22884 else
22885 ac_dir_suffix= ac_top_builddir=
22886 fi
22887
22888 case $srcdir in
22889 .) # No --srcdir option. We are building in place.
22890 ac_srcdir=.
22891 if test -z "$ac_top_builddir"; then
22892 ac_top_srcdir=.
22893 else
22894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22895 fi ;;
22896 [\\/]* | ?:[\\/]* ) # Absolute path.
22897 ac_srcdir=$srcdir$ac_dir_suffix;
22898 ac_top_srcdir=$srcdir ;;
22899 *) # Relative path.
22900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22902 esac
22903
22904 # Do not use `cd foo && pwd` to compute absolute paths, because
22905 # the directories may not exist.
22906 case `pwd` in
22907 .) ac_abs_builddir="$ac_dir";;
22908 *)
22909 case "$ac_dir" in
22910 .) ac_abs_builddir=`pwd`;;
22911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22913 esac;;
22914 esac
22915 case $ac_abs_builddir in
22916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22917 *)
22918 case ${ac_top_builddir}. in
22919 .) ac_abs_top_builddir=$ac_abs_builddir;;
22920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22922 esac;;
22923 esac
22924 case $ac_abs_builddir in
22925 .) ac_abs_srcdir=$ac_srcdir;;
22926 *)
22927 case $ac_srcdir in
22928 .) ac_abs_srcdir=$ac_abs_builddir;;
22929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22931 esac;;
22932 esac
22933 case $ac_abs_builddir in
22934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22935 *)
22936 case $ac_top_srcdir in
22937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22940 esac;;
22941 esac
22942
22943
22944 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22945 echo "$as_me: executing $ac_dest commands" >&6;}
22946 case $ac_dest in
22947 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22948 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22949 # Strip MF so we end up with the name of the file.
22950 mf=`echo "$mf" | sed -e 's/:.*$//'`
22951 # Check whether this is an Automake generated Makefile or not.
22952 # We used to match only the files named `Makefile.in', but
22953 # some people rename them; so instead we look at the file content.
22954 # Grep'ing the first line is not enough: some people post-process
22955 # each Makefile.in and add a new line on top of each file to say so.
22956 # So let's grep whole file.
22957 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22958 dirpart=`(dirname "$mf") 2>/dev/null ||
22959 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22960 X"$mf" : 'X\(//\)[^/]' \| \
22961 X"$mf" : 'X\(//\)$' \| \
22962 X"$mf" : 'X\(/\)' \| \
22963 . : '\(.\)' 2>/dev/null ||
22964 echo X"$mf" |
22965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22967 /^X\(\/\/\)$/{ s//\1/; q; }
22968 /^X\(\/\).*/{ s//\1/; q; }
22969 s/.*/./; q'`
22970 else
22971 continue
22972 fi
22973 # Extract the definition of DEPDIR, am__include, and am__quote
22974 # from the Makefile without running `make'.
22975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22976 test -z "$DEPDIR" && continue
22977 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22978 test -z "am__include" && continue
22979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22980 # When using ansi2knr, U may be empty or an underscore; expand it
22981 U=`sed -n 's/^U = //p' < "$mf"`
22982 # Find all dependency output files, they are included files with
22983 # $(DEPDIR) in their names. We invoke sed twice because it is the
22984 # simplest approach to changing $(DEPDIR) to its actual value in the
22985 # expansion.
22986 for file in `sed -n "
22987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22989 # Make sure the directory exists.
22990 test -f "$dirpart/$file" && continue
22991 fdir=`(dirname "$file") 2>/dev/null ||
22992 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22993 X"$file" : 'X\(//\)[^/]' \| \
22994 X"$file" : 'X\(//\)$' \| \
22995 X"$file" : 'X\(/\)' \| \
22996 . : '\(.\)' 2>/dev/null ||
22997 echo X"$file" |
22998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23000 /^X\(\/\/\)$/{ s//\1/; q; }
23001 /^X\(\/\).*/{ s//\1/; q; }
23002 s/.*/./; q'`
23003 { if $as_mkdir_p; then
23004 mkdir -p $dirpart/$fdir
23005 else
23006 as_dir=$dirpart/$fdir
23007 as_dirs=
23008 while test ! -d "$as_dir"; do
23009 as_dirs="$as_dir $as_dirs"
23010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23012 X"$as_dir" : 'X\(//\)[^/]' \| \
23013 X"$as_dir" : 'X\(//\)$' \| \
23014 X"$as_dir" : 'X\(/\)' \| \
23015 . : '\(.\)' 2>/dev/null ||
23016 echo X"$as_dir" |
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 done
23023 test ! -n "$as_dirs" || mkdir $as_dirs
23024 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23025 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23026 { (exit 1); exit 1; }; }; }
23027
23028 # echo "creating $dirpart/$file"
23029 echo '# dummy' > "$dirpart/$file"
23030 done
23031 done
23032 ;;
23033 default )
23034
23035 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23036 mv -f Makefile.tmp Makefile
23037
23038
23039 case x$CONFIG_HEADERS in
23040 xconfig.h:config.in)
23041 echo > stamp-h ;;
23042 esac
23043 ;;
23044 esac
23045 done
23046 _ACEOF
23047
23048 cat >>$CONFIG_STATUS <<\_ACEOF
23049
23050 { (exit 0); exit 0; }
23051 _ACEOF
23052 chmod +x $CONFIG_STATUS
23053 ac_clean_files=$ac_clean_files_save
23054
23055
23056 # configure is writing to config.log, and then calls config.status.
23057 # config.status does its own redirection, appending to config.log.
23058 # Unfortunately, on DOS this fails, as config.log is still kept open
23059 # by configure, so config.status won't be able to write to it; its
23060 # output is simply discarded. So we exec the FD to /dev/null,
23061 # effectively closing config.log, so it can be properly (re)opened and
23062 # appended to by config.status. When coming back to configure, we
23063 # need to make the FD available again.
23064 if test "$no_create" != yes; then
23065 ac_cs_success=:
23066 ac_config_status_args=
23067 test "$silent" = yes &&
23068 ac_config_status_args="$ac_config_status_args --quiet"
23069 exec 5>/dev/null
23070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23071 exec 5>>config.log
23072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23073 # would make configure fail if this is the last instruction.
23074 $ac_cs_success || { (exit 1); exit 1; }
23075 fi
23076
23077 #
23078 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23079 #
23080 if test "$no_recursion" != yes; then
23081
23082 # Remove --cache-file and --srcdir arguments so they do not pile up.
23083 ac_sub_configure_args=
23084 ac_prev=
23085 eval "set x $ac_configure_args"
23086 shift
23087 for ac_arg
23088 do
23089 if test -n "$ac_prev"; then
23090 ac_prev=
23091 continue
23092 fi
23093 case $ac_arg in
23094 -cache-file | --cache-file | --cache-fil | --cache-fi \
23095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23096 ac_prev=cache_file ;;
23097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23099 | --c=*)
23100 ;;
23101 --config-cache | -C)
23102 ;;
23103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23104 ac_prev=srcdir ;;
23105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23106 ;;
23107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23108 ac_prev=prefix ;;
23109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23110 ;;
23111 *)
23112 case $ac_arg in
23113 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23114 esac
23115 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23116 esac
23117 done
23118
23119 # Always prepend --prefix to ensure using the same prefix
23120 # in subdir configurations.
23121 ac_arg="--prefix=$prefix"
23122 case $ac_arg in
23123 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23124 esac
23125 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23126
23127 ac_popdir=`pwd`
23128 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23129
23130 # Do not complain, so a configure script can configure whichever
23131 # parts of a large source tree are present.
23132 test -d "$srcdir/$ac_dir" || continue
23133
23134 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23135 echo "$as_me: configuring in $ac_dir" >&6;}
23136 { if $as_mkdir_p; then
23137 mkdir -p "$ac_dir"
23138 else
23139 as_dir="$ac_dir"
23140 as_dirs=
23141 while test ! -d "$as_dir"; do
23142 as_dirs="$as_dir $as_dirs"
23143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23145 X"$as_dir" : 'X\(//\)[^/]' \| \
23146 X"$as_dir" : 'X\(//\)$' \| \
23147 X"$as_dir" : 'X\(/\)' \| \
23148 . : '\(.\)' 2>/dev/null ||
23149 echo X"$as_dir" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23152 /^X\(\/\/\)$/{ s//\1/; q; }
23153 /^X\(\/\).*/{ s//\1/; q; }
23154 s/.*/./; q'`
23155 done
23156 test ! -n "$as_dirs" || mkdir $as_dirs
23157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23159 { (exit 1); exit 1; }; }; }
23160
23161 ac_builddir=.
23162
23163 if test "$ac_dir" != .; then
23164 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23165 # A "../" for each directory in $ac_dir_suffix.
23166 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23167 else
23168 ac_dir_suffix= ac_top_builddir=
23169 fi
23170
23171 case $srcdir in
23172 .) # No --srcdir option. We are building in place.
23173 ac_srcdir=.
23174 if test -z "$ac_top_builddir"; then
23175 ac_top_srcdir=.
23176 else
23177 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23178 fi ;;
23179 [\\/]* | ?:[\\/]* ) # Absolute path.
23180 ac_srcdir=$srcdir$ac_dir_suffix;
23181 ac_top_srcdir=$srcdir ;;
23182 *) # Relative path.
23183 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23184 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23185 esac
23186
23187 # Do not use `cd foo && pwd` to compute absolute paths, because
23188 # the directories may not exist.
23189 case `pwd` in
23190 .) ac_abs_builddir="$ac_dir";;
23191 *)
23192 case "$ac_dir" in
23193 .) ac_abs_builddir=`pwd`;;
23194 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23195 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23196 esac;;
23197 esac
23198 case $ac_abs_builddir in
23199 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23200 *)
23201 case ${ac_top_builddir}. in
23202 .) ac_abs_top_builddir=$ac_abs_builddir;;
23203 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23204 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23205 esac;;
23206 esac
23207 case $ac_abs_builddir in
23208 .) ac_abs_srcdir=$ac_srcdir;;
23209 *)
23210 case $ac_srcdir in
23211 .) ac_abs_srcdir=$ac_abs_builddir;;
23212 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23213 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23214 esac;;
23215 esac
23216 case $ac_abs_builddir in
23217 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23218 *)
23219 case $ac_top_srcdir in
23220 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23221 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23222 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23223 esac;;
23224 esac
23225
23226
23227 cd "$ac_dir"
23228
23229 # Check for guested configure; otherwise get Cygnus style configure.
23230 if test -f "$ac_srcdir/configure.gnu"; then
23231 ac_sub_configure=$ac_srcdir/configure.gnu
23232 elif test -f "$ac_srcdir/configure"; then
23233 ac_sub_configure=$ac_srcdir/configure
23234 elif test -f "$ac_srcdir/configure.in"; then
23235 # This should be Cygnus configure.
23236 ac_sub_configure=$ac_aux_dir/configure
23237 else
23238 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23239 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23240 ac_sub_configure=
23241 fi
23242
23243 # The recursion is here.
23244 if test -n "$ac_sub_configure"; then
23245 # Make the cache file name correct relative to the subdirectory.
23246 case $cache_file in
23247 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23248 *) # Relative path.
23249 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23250 esac
23251
23252 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23253 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23254 # The eval makes quoting arguments work.
23255 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23256 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23257 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23258 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23259 { (exit 1); exit 1; }; }
23260 fi
23261
23262 cd "$ac_popdir"
23263 done
23264 fi
23265
23266
23267 exit 0
This page took 1.206861 seconds and 4 git commands to generate.