daily update
[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 LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881 Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-curses use the curses library instead of the termcap
887 library
888 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
889 --with-bugurl=URL Direct users to URL to report a bug
890 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
891 --with-system-readline use installed readline library
892 --with-expat include expat support (auto/yes/no)
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
895 --without-libexpat-prefix don't search for libexpat in includedir and libdir
896 --with-python include python support (auto/yes/no/<path>)
897 --without-included-regex don't use included regex; this is the default
898 on systems with version 2 of the GNU C library
899 (use with caution on other system)
900 --with-sysroot=DIR Search for usr/lib et al within DIR.
901 --with-system-gdbinit=file Automatically load a system-wide gdbinit file
902 --with-tcl directory containing tcl configuration (tclConfig.sh)
903 --with-tk directory containing tk configuration (tkConfig.sh)
904 --with-x use the X Window System
905
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CPP C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
923 ac_popdir=`pwd`
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
926 ac_builddir=.
927
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933 ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937 .) # No --srcdir option. We are building in place.
938 ac_srcdir=.
939 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=.
941 else
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 fi ;;
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
947 *) # Relative path.
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957 case "$ac_dir" in
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975 case $ac_srcdir in
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 esac;;
989 esac
990
991 cd $ac_dir
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
994 echo
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
997 echo
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1001 echo
1002 $ac_configure --help
1003 else
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 fi
1006 cd $ac_popdir
1007 done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012 cat <<\_ACEOF
1013
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017 _ACEOF
1018 exit 0
1019 fi
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1024
1025 It was created by $as_me, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1027
1028 $ $0 $@
1029
1030 _ACEOF
1031 {
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1036
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054 _ASUNAME
1055
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1058 do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062 done
1063
1064 } >&5
1065
1066 cat >&5 <<_ACEOF
1067
1068
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1072
1073 _ACEOF
1074
1075
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1087 do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1144 {
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
1152 *)
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ;;
1156 esac;
1157 }
1158 echo
1159
1160 cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1197 fi
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1205 ' 0
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1210
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1215
1216 # Predefined preprocessor variables.
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1241
1242
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 fi
1251 fi
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1257 . "$ac_site_file"
1258 fi
1259 done
1260
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
1272 else
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276 fi
1277
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 ac_cache_corrupted=:
1306 else
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309 eval $ac_var=\$ac_old_val
1310 fi
1311 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1312 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1315 fi;;
1316 esac
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1319 case $ac_new_val in
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1323 esac
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 esac
1328 fi
1329 done
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339
1340 ac_ext=c
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345
1346
1347 gl_header_list="$gl_header_list stdint.h"
1348 gl_header_list="$gl_header_list wchar.h"
1349 gl_header_list="$gl_header_list string.h"
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1371
1372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1375 if test "${enable_maintainer_mode+set}" = set; then
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
1378 else
1379 USE_MAINTAINER_MODE=no
1380 fi;
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1383
1384
1385 if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1388 else
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1391 fi
1392
1393 MAINT=$MAINTAINER_MODE_TRUE
1394
1395
1396
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 fi
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1479 fi
1480
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518 fi
1519 if test -z "$ac_cv_prog_CC"; then
1520 ac_ct_CC=$CC
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 CC=$ac_ct_CC
1557 else
1558 CC="$ac_cv_prog_CC"
1559 fi
1560
1561 fi
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 else
1573 ac_prog_rejected=no
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1583 continue
1584 fi
1585 ac_cv_prog_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589 done
1590 done
1591
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1595 shift
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1600 shift
1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1602 fi
1603 fi
1604 fi
1605 fi
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 fi
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 for ac_prog in cl
1619 do
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 test -n "$CC" && break
1656 done
1657 fi
1658 if test -z "$CC"; then
1659 ac_ct_CC=$CC
1660 for ac_prog in cl
1661 do
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683 done
1684 done
1685
1686 fi
1687 fi
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697 test -n "$ac_ct_CC" && break
1698 done
1699
1700 CC=$ac_ct_CC
1701 fi
1702
1703 fi
1704
1705
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log' for more details." >&2;}
1712 { (exit 1); exit 1; }; }; }
1713
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733
1734 cat >conftest.$ac_ext <<_ACEOF
1735 /* confdefs.h. */
1736 _ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h. */
1740
1741 int
1742 main ()
1743 {
1744
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1753 # of exeext.
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # Find the output, starting from the most likely. This scheme is
1763 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764 # resort.
1765
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768 ac_cv_exeext=
1769 # b.out is created by i960 compilers.
1770 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1771 do
1772 test -f "$ac_file" || continue
1773 case $ac_file in
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1775 ;;
1776 conftest.$ac_ext )
1777 # This is the source file.
1778 ;;
1779 [ab].out )
1780 # We found the default executable, but exeext='' is most
1781 # certainly right.
1782 break;;
1783 *.* )
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1788 export ac_cv_exeext
1789 break;;
1790 * )
1791 break;;
1792 esac
1793 done
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804 { (exit 77); exit 77; }; }; }
1805 fi
1806
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1810
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 cross_compiling=no
1825 else
1826 if test "$cross_compiling" = maybe; then
1827 cross_compiling=yes
1828 else
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }; }
1838 fi
1839 fi
1840 fi
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1843
1844 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1852
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856 (eval $ac_link) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1863 # `rm'.
1864 for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873 done
1874 else
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }; }
1882 fi
1883
1884 rm -f conftest$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1887
1888 rm -f conftest.$ac_ext
1889 EXEEXT=$ac_cv_exeext
1890 ac_exeext=$EXEEXT
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h. */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1902
1903 int
1904 main ()
1905 {
1906
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 break;;
1922 esac
1923 done
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1935 fi
1936
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938 fi
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h. */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1954
1955 int
1956 main ()
1957 {
1958 #ifndef __GNUC__
1959 choke me
1960 #endif
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 rm -f conftest.$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_compiler_gnu=yes
1989 else
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_compiler_gnu=no
1994 fi
1995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1997
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS=${CFLAGS+set}
2003 ac_save_CFLAGS=$CFLAGS
2004 CFLAGS="-g"
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2016
2017 int
2018 main ()
2019 {
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2028 ac_status=$?
2029 grep -v '^ *+' conftest.er1 >conftest.err
2030 rm -f conftest.er1
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_cv_prog_cc_g=yes
2048 else
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_cv_prog_cc_g=no
2053 fi
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072 fi
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h. */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2086 #include <stdarg.h>
2087 #include <stdio.h>
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2094 char **p;
2095 int i;
2096 {
2097 return p[i];
2098 }
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2100 {
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2107 }
2108
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
2112 as 'x'. The following induces an error, until -std1 is added to get
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
2115 that's true only with -std1. */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122 int argc;
2123 char **argv;
2124 int
2125 main ()
2126 {
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140 do
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc=$ac_arg
2165 break
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 fi
2171 rm -f conftest.err conftest.$ac_objext
2172 done
2173 rm -f conftest.$ac_ext conftest.$ac_objext
2174 CC=$ac_save_CC
2175
2176 fi
2177
2178 case "x$ac_cv_prog_cc_stdc" in
2179 x|xno)
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2182 *)
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
2186 esac
2187
2188 # Some people use a C++ compiler to compile C. Since we use `exit',
2189 # in C++ we need to declare it. In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #ifndef __cplusplus
2194 choke me
2195 #endif
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2220 '' \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2225 'void exit (int);'
2226 do
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_declaration
2234 #include <stdlib.h>
2235 int
2236 main ()
2237 {
2238 exit (42);
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 :
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 continue
2271 fi
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2279 $ac_declaration
2280 int
2281 main ()
2282 {
2283 exit (42);
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2291 ac_status=$?
2292 grep -v '^ *+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 break
2311 else
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2323 fi
2324
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338 cat >>confdefs.h <<\_ACEOF
2339 #define _GNU_SOURCE 1
2340 _ACEOF
2341
2342
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2351 # On Suns, sometimes $CPP names a directory.
2352 if test -n "$CPP" && test -d "$CPP"; then
2353 CPP=
2354 fi
2355 if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 # Double quotes because CPP needs to be expanded
2360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2361 do
2362 ac_preproc_ok=false
2363 for ac_c_preproc_warn_flag in '' yes
2364 do
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 #ifdef __STDC__
2378 # include <limits.h>
2379 #else
2380 # include <assert.h>
2381 #endif
2382 Syntax error
2383 _ACEOF
2384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
2398 else
2399 ac_cpp_err=yes
2400 fi
2401 if test -z "$ac_cpp_err"; then
2402 :
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Broken: fails on valid input.
2408 continue
2409 fi
2410 rm -f conftest.err conftest.$ac_ext
2411
2412 # OK, works on sane cases. Now check whether non-existent headers
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2420 #include <ac_nonexistent.h>
2421 _ACEOF
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev/null; then
2430 if test -s conftest.err; then
2431 ac_cpp_err=$ac_c_preproc_warn_flag
2432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433 else
2434 ac_cpp_err=
2435 fi
2436 else
2437 ac_cpp_err=yes
2438 fi
2439 if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2441 continue
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 # Passes both tests.
2447 ac_preproc_ok=:
2448 break
2449 fi
2450 rm -f conftest.err conftest.$ac_ext
2451
2452 done
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.$ac_ext
2455 if $ac_preproc_ok; then
2456 break
2457 fi
2458
2459 done
2460 ac_cv_prog_CPP=$CPP
2461
2462 fi
2463 CPP=$ac_cv_prog_CPP
2464 else
2465 ac_cv_prog_CPP=$CPP
2466 fi
2467 echo "$as_me:$LINENO: result: $CPP" >&5
2468 echo "${ECHO_T}$CPP" >&6
2469 ac_preproc_ok=false
2470 for ac_c_preproc_warn_flag in '' yes
2471 do
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #ifdef __STDC__
2485 # include <limits.h>
2486 #else
2487 # include <assert.h>
2488 #endif
2489 Syntax error
2490 _ACEOF
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
2505 else
2506 ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509 :
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Broken: fails on valid input.
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_ext
2518
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 else
2541 ac_cpp_err=
2542 fi
2543 else
2544 ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2548 continue
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 # Passes both tests.
2554 ac_preproc_ok=:
2555 break
2556 fi
2557 rm -f conftest.err conftest.$ac_ext
2558
2559 done
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2563 :
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2572 fi
2573
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
2581 echo "$as_me:$LINENO: checking for egrep" >&5
2582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583 if test "${ac_cv_prog_egrep+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587 then ac_cv_prog_egrep='grep -E'
2588 else ac_cv_prog_egrep='egrep'
2589 fi
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP=$ac_cv_prog_egrep
2594
2595
2596
2597 echo "$as_me:$LINENO: checking for AIX" >&5
2598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2605 #ifdef _AIX
2606 yes
2607 #endif
2608
2609 _ACEOF
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 $EGREP "yes" >/dev/null 2>&1; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 cat >>confdefs.h <<\_ACEOF
2615 #define _ALL_SOURCE 1
2616 _ACEOF
2617
2618 else
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2621 fi
2622 rm -f conftest*
2623
2624
2625 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2627 if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 ac_func_search_save_LIBS=$LIBS
2631 ac_cv_search_strerror=no
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 #ifdef __cplusplus
2641 extern "C"
2642 #endif
2643 /* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
2645 char strerror ();
2646 int
2647 main ()
2648 {
2649 strerror ();
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_search_strerror="none required"
2677 else
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 fi
2682 rm -f conftest.err conftest.$ac_objext \
2683 conftest$ac_exeext conftest.$ac_ext
2684 if test "$ac_cv_search_strerror" = no; then
2685 for ac_lib in cposix; do
2686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700 char strerror ();
2701 int
2702 main ()
2703 {
2704 strerror ();
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext conftest$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror="-l$ac_lib"
2732 break
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.err conftest.$ac_objext \
2739 conftest$ac_exeext conftest.$ac_ext
2740 done
2741 fi
2742 LIBS=$ac_func_search_save_LIBS
2743 fi
2744 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746 if test "$ac_cv_search_strerror" != no; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2748
2749 fi
2750
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775
2776 fi
2777 fi
2778 RANLIB=$ac_cv_prog_RANLIB
2779 if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781 echo "${ECHO_T}$RANLIB" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787 fi
2788 if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791 set dummy ranlib; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2815 fi
2816 fi
2817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818 if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2824 fi
2825
2826 RANLIB=$ac_ct_RANLIB
2827 else
2828 RANLIB="$ac_cv_prog_RANLIB"
2829 fi
2830
2831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 #include <stdlib.h>
2843 #include <stdarg.h>
2844 #include <string.h>
2845 #include <float.h>
2846
2847 int
2848 main ()
2849 {
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_header_stdc=yes
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 ac_cv_header_stdc=no
2883 fi
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885
2886 if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 #include <string.h>
2895
2896 _ACEOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev/null 2>&1; then
2899 :
2900 else
2901 ac_cv_header_stdc=no
2902 fi
2903 rm -f conftest*
2904
2905 fi
2906
2907 if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <stdlib.h>
2916
2917 _ACEOF
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev/null 2>&1; then
2920 :
2921 else
2922 ac_cv_header_stdc=no
2923 fi
2924 rm -f conftest*
2925
2926 fi
2927
2928 if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2931 :
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <ctype.h>
2940 #if ((' ' & 0x0FF) == 0x020)
2941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2943 #else
2944 # define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2949 #endif
2950
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952 int
2953 main ()
2954 {
2955 int i;
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2959 exit(2);
2960 exit (0);
2961 }
2962 _ACEOF
2963 rm -f conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 :
2975 else
2976 echo "$as_me: program exited with status $ac_status" >&5
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ( exit $ac_status )
2981 ac_cv_header_stdc=no
2982 fi
2983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984 fi
2985 fi
2986 fi
2987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989 if test $ac_cv_header_stdc = yes; then
2990
2991 cat >>confdefs.h <<\_ACEOF
2992 #define STDC_HEADERS 1
2993 _ACEOF
2994
2995 fi
2996
2997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008 inttypes.h stdint.h unistd.h
3009 do
3010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011 echo "$as_me:$LINENO: checking for $ac_header" >&5
3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_includes_default
3023
3024 #include <$ac_header>
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 eval "$as_ac_Header=no"
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 fi
3057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h <<_ACEOF
3061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062 _ACEOF
3063
3064 fi
3065
3066 done
3067
3068
3069
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073 if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 fi
3076 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3078 else
3079 # Is the header compilable?
3080 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089 #include <minix/config.h>
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_header_compiler=no
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <minix/config.h>
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 else
3147 ac_cpp_err=
3148 fi
3149 else
3150 ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153 ac_header_preproc=yes
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_header_preproc=no
3159 fi
3160 rm -f conftest.err conftest.$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162 echo "${ECHO_T}$ac_header_preproc" >&6
3163
3164 # So? What about this header?
3165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3166 yes:no: )
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc=yes
3172 ;;
3173 no:yes:* )
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3186 (
3187 cat <<\_ASBOX
3188 ## ------------------------------------------ ##
3189 ## Report this to the AC_PACKAGE_NAME lists. ##
3190 ## ------------------------------------------ ##
3191 _ASBOX
3192 ) |
3193 sed "s/^/$as_me: WARNING: /" >&2
3194 ;;
3195 esac
3196 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198 if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 ac_cv_header_minix_config_h=$ac_header_preproc
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3205
3206 fi
3207 if test $ac_cv_header_minix_config_h = yes; then
3208 MINIX=yes
3209 else
3210 MINIX=
3211 fi
3212
3213
3214 if test "$MINIX" = yes; then
3215
3216 cat >>confdefs.h <<\_ACEOF
3217 #define _POSIX_SOURCE 1
3218 _ACEOF
3219
3220
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _POSIX_1_SOURCE 2
3223 _ACEOF
3224
3225
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _MINIX 1
3228 _ACEOF
3229
3230 fi
3231
3232
3233
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245
3246 # define __EXTENSIONS__ 1
3247 $ac_includes_default
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_cv_safe_to_define___extensions__=no
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h <<\_ACEOF
3291 #define __EXTENSIONS__ 1
3292 _ACEOF
3293
3294 cat >>confdefs.h <<\_ACEOF
3295 #define _ALL_SOURCE 1
3296 _ACEOF
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define _GNU_SOURCE 1
3300 _ACEOF
3301
3302 cat >>confdefs.h <<\_ACEOF
3303 #define _POSIX_PTHREAD_SEMANTICS 1
3304 _ACEOF
3305
3306 cat >>confdefs.h <<\_ACEOF
3307 #define _TANDEM_SOURCE 1
3308 _ACEOF
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321 if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 am_cv_prog_cc_stdc=no
3325 ac_save_CC="$CC"
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX -qlanglvl=ansi
3329 # Ultrix and OSF/1 -std1
3330 # HP-UX 10.20 and later -Ae
3331 # HP-UX older versions -Aa -D_HPUX_SOURCE
3332 # SVR4 -Xc -D__EXTENSIONS__
3333 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 do
3335 CC="$ac_save_CC $ac_arg"
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <stdarg.h>
3343 #include <stdio.h>
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3350 char **p;
3351 int i;
3352 {
3353 return p[i];
3354 }
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3356 {
3357 char *s;
3358 va_list v;
3359 va_start (v,p);
3360 s = g (p, va_arg (v,int));
3361 va_end (v);
3362 return s;
3363 }
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370
3371 int
3372 main ()
3373 {
3374
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc="$ac_arg"; break
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 fi
3409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410 done
3411 CC="$ac_save_CC"
3412
3413 fi
3414
3415 if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6
3418 else
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3421 fi
3422 case "x$am_cv_prog_cc_stdc" in
3423 x|xno) ;;
3424 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425 esac
3426
3427
3428 ac_aux_dir=
3429 for ac_dir in .. $srcdir/..; do
3430 if test -f $ac_dir/install-sh; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f $ac_dir/install.sh; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f $ac_dir/shtool; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
3443 done
3444 if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3452
3453 # Make sure we can run config.sub.
3454 $ac_config_sub sun4 >/dev/null 2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3458
3459 echo "$as_me:$LINENO: checking build system type" >&5
3460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461 if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 ac_cv_build_alias=$build_alias
3465 test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias=`$ac_config_guess`
3467 test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478 echo "${ECHO_T}$ac_cv_build" >&6
3479 build=$ac_cv_build
3480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3483
3484
3485 echo "$as_me:$LINENO: checking host system type" >&5
3486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487 if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 ac_cv_host_alias=$host_alias
3491 test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias=$ac_cv_build_alias
3493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6
3501 host=$ac_cv_host
3502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3505
3506
3507 echo "$as_me:$LINENO: checking target system type" >&5
3508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509 if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 ac_cv_target_alias=$target_alias
3513 test "x$ac_cv_target_alias" = "x" &&
3514 ac_cv_target_alias=$ac_cv_host_alias
3515 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3518 { (exit 1); exit 1; }; }
3519
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522 echo "${ECHO_T}$ac_cv_target" >&6
3523 target=$ac_cv_target
3524 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3527
3528
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
3536 # Dependency checking.
3537 rm -rf .tst 2>/dev/null
3538 mkdir .tst 2>/dev/null
3539 if test -d .tst; then
3540 am__leading_dot=.
3541 else
3542 am__leading_dot=_
3543 fi
3544 rmdir .tst 2>/dev/null
3545
3546 DEPDIR="${am__leading_dot}deps"
3547
3548 ac_config_commands="$ac_config_commands depdir"
3549
3550
3551 depcc="$CC" am_compiler_list=
3552
3553 am_depcomp=$ac_aux_dir/depcomp
3554 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 if test -f "$am_depcomp"; then
3560 # We make a subdir and do the tests there. Otherwise we can end up
3561 # making bogus files that we don't know about and never remove. For
3562 # instance it was reported that on HP-UX the gcc test will end up
3563 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # in D'.
3565 mkdir conftest.dir
3566 # Copy depcomp to subdir because otherwise we won't find it if we're
3567 # using a relative directory.
3568 cp "$am_depcomp" conftest.dir
3569 cd conftest.dir
3570 # We will build objects and dependencies in a subdirectory because
3571 # it helps to detect inapplicable dependency modes. For instance
3572 # both Tru64's cc and ICC support -MD to output dependencies as a
3573 # side effect of compilation, but ICC will put the dependencies in
3574 # the current directory while Tru64 will put them in the object
3575 # directory.
3576 mkdir sub
3577
3578 am_cv_CC_dependencies_compiler_type=none
3579 if test "$am_compiler_list" = ""; then
3580 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581 fi
3582 for depmode in $am_compiler_list; do
3583 if test $depmode = none; then break; fi
3584
3585 echo "$as_me:$LINENO: trying $depmode" >&5
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3589 #
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3593 : > sub/conftest.c
3594 for i in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub/conftst$i.h
3599 done
3600 echo "include sub/conftest.Po" > confmf
3601
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this.
3605 depcmd="depmode=$depmode \
3606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3609 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3610 if env $depcmd > conftest.err 2>&1 &&
3611 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3612 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3613 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3614 # icc doesn't choke on unknown options, it will just issue warnings
3615 # or remarks (even with -Werror). So we grep stderr for any message
3616 # that says an option was ignored or not supported.
3617 # When given -MP, icc 7.0 and 7.1 complain thusly:
3618 # icc: Command line warning: ignoring option '-M'; no argument required
3619 # The diagnosis changed in icc 8.0:
3620 # icc: Command line remark: option '-MP' not supported
3621 if (grep 'ignoring option' conftest.err ||
3622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3623 am_cv_CC_dependencies_compiler_type=$depmode
3624 echo "$as_me:$LINENO: success" >&5
3625 break
3626 fi
3627 fi
3628 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3629 sed -e 's/^/| /' < conftest.err >&5
3630 done
3631
3632 cd ..
3633 rm -rf conftest.dir
3634 else
3635 am_cv_CC_dependencies_compiler_type=none
3636 fi
3637
3638 fi
3639 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3641 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3642 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3643 echo "$as_me: error: no usable dependency style found" >&2;}
3644 { (exit 1); exit 1; }; }
3645 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3646
3647 fi
3648
3649
3650 # Check for the 'make' the user wants to use.
3651 for ac_prog in make
3652 do
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_MAKE+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if test -n "$MAKE"; then
3661 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_MAKE="$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 MAKE=$ac_cv_prog_MAKE
3680 if test -n "$MAKE"; then
3681 echo "$as_me:$LINENO: result: $MAKE" >&5
3682 echo "${ECHO_T}$MAKE" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688 test -n "$MAKE" && break
3689 done
3690
3691 MAKE_IS_GNU=
3692 case "`$MAKE --version 2>&1 | sed 1q`" in
3693 *GNU*)
3694 MAKE_IS_GNU=yes
3695 ;;
3696 esac
3697
3698
3699 if test "$MAKE_IS_GNU" = yes; then
3700 GMAKE_TRUE=
3701 GMAKE_FALSE='#'
3702 else
3703 GMAKE_TRUE='#'
3704 GMAKE_FALSE=
3705 fi
3706
3707 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3709 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3710 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 cat >conftest.make <<\_ACEOF
3714 all:
3715 @echo 'ac_maketemp="$(MAKE)"'
3716 _ACEOF
3717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3718 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3719 if test -n "$ac_maketemp"; then
3720 eval ac_cv_prog_make_${ac_make}_set=yes
3721 else
3722 eval ac_cv_prog_make_${ac_make}_set=no
3723 fi
3724 rm -f conftest.make
3725 fi
3726 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3727 echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 SET_MAKE=
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 SET_MAKE="MAKE=${MAKE-make}"
3734 fi
3735
3736
3737
3738 CONFIG_OBS=
3739 CONFIG_DEPS=
3740 CONFIG_SRCS=
3741 ENABLE_CFLAGS=
3742
3743 CONFIG_ALL=
3744 CONFIG_CLEAN=
3745 CONFIG_INSTALL=
3746 CONFIG_UNINSTALL=
3747
3748 # If we haven't got the data from the intl directory,
3749 # assume NLS is disabled.
3750 USE_NLS=no
3751 LIBINTL=
3752 LIBINTL_DEP=
3753 INCINTL=
3754 XGETTEXT=
3755 GMSGFMT=
3756 POSUB=
3757
3758 if test -f ../intl/config.intl; then
3759 . ../intl/config.intl
3760 fi
3761 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3763 if test x"$USE_NLS" != xyes; then
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 else
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6
3769
3770 cat >>confdefs.h <<\_ACEOF
3771 #define ENABLE_NLS 1
3772 _ACEOF
3773
3774
3775 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3776 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3777 # Look for .po and .gmo files in the source directory.
3778 CATALOGS=
3779 XLINGUAS=
3780 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3781 # If there aren't any .gmo files the shell will give us the
3782 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3783 # weeded out.
3784 case "$cat" in *\**)
3785 continue;;
3786 esac
3787 # The quadruple backslash is collapsed to a double backslash
3788 # by the backticks, then collapsed again by the double quotes,
3789 # leaving us with one backslash in the sed expression (right
3790 # before the dot that mustn't act as a wildcard).
3791 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3792 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3793 # The user is allowed to set LINGUAS to a list of languages to
3794 # install catalogs for. If it's empty that means "all of them."
3795 if test "x$LINGUAS" = x; then
3796 CATALOGS="$CATALOGS $cat"
3797 XLINGUAS="$XLINGUAS $lang"
3798 else
3799 case "$LINGUAS" in *$lang*)
3800 CATALOGS="$CATALOGS $cat"
3801 XLINGUAS="$XLINGUAS $lang"
3802 ;;
3803 esac
3804 fi
3805 done
3806 LINGUAS="$XLINGUAS"
3807 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3808 echo "${ECHO_T}$LINGUAS" >&6
3809
3810
3811 DATADIRNAME=share
3812
3813 INSTOBJEXT=.mo
3814
3815 GENCAT=gencat
3816
3817 CATOBJEXT=.gmo
3818
3819 fi
3820
3821 localedir='${datadir}/locale'
3822
3823
3824 if test x"$USE_NLS" = xyes; then
3825 CONFIG_ALL="$CONFIG_ALL all-po"
3826 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3827 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3828 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3829 fi
3830
3831
3832 GNULIB_MEMMEM=0;
3833 GNULIB_MEMPCPY=0;
3834 GNULIB_MEMRCHR=0;
3835 GNULIB_STPCPY=0;
3836 GNULIB_STPNCPY=0;
3837 GNULIB_STRCHRNUL=0;
3838 GNULIB_STRDUP=0;
3839 GNULIB_STRNDUP=0;
3840 GNULIB_STRNLEN=0;
3841 GNULIB_STRPBRK=0;
3842 GNULIB_STRSEP=0;
3843 GNULIB_STRSTR=0;
3844 GNULIB_STRCASESTR=0;
3845 GNULIB_STRTOK_R=0;
3846 GNULIB_MBSLEN=0;
3847 GNULIB_MBSNLEN=0;
3848 GNULIB_MBSCHR=0;
3849 GNULIB_MBSRCHR=0;
3850 GNULIB_MBSSTR=0;
3851 GNULIB_MBSCASECMP=0;
3852 GNULIB_MBSNCASECMP=0;
3853 GNULIB_MBSPCASECMP=0;
3854 GNULIB_MBSCASESTR=0;
3855 GNULIB_MBSCSPN=0;
3856 GNULIB_MBSPBRK=0;
3857 GNULIB_MBSSPN=0;
3858 GNULIB_MBSSEP=0;
3859 GNULIB_MBSTOK_R=0;
3860 GNULIB_STRERROR=0;
3861 GNULIB_STRSIGNAL=0;
3862 HAVE_DECL_MEMMEM=1;
3863 HAVE_MEMPCPY=1;
3864 HAVE_DECL_MEMRCHR=1;
3865 HAVE_STPCPY=1;
3866 HAVE_STPNCPY=1;
3867 HAVE_STRCHRNUL=1;
3868 HAVE_DECL_STRDUP=1;
3869 HAVE_STRNDUP=1;
3870 HAVE_DECL_STRNDUP=1;
3871 HAVE_DECL_STRNLEN=1;
3872 HAVE_STRPBRK=1;
3873 HAVE_STRSEP=1;
3874 HAVE_STRCASESTR=1;
3875 HAVE_DECL_STRTOK_R=1;
3876 HAVE_DECL_STRERROR=1;
3877 HAVE_DECL_STRSIGNAL=1;
3878 REPLACE_STRERROR=0;
3879 REPLACE_STRSIGNAL=0;
3880 REPLACE_MEMMEM=0;
3881 REPLACE_STRCASESTR=0;
3882 REPLACE_STRSTR=0;
3883
3884
3885 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3886 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3887 if test "${ac_cv_have_decl_memmem+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 $ac_includes_default
3897 int
3898 main ()
3899 {
3900 #ifndef memmem
3901 char *p = (char *) memmem;
3902 #endif
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_cv_have_decl_memmem=yes
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 ac_cv_have_decl_memmem=no
3936 fi
3937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3940 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3941 if test $ac_cv_have_decl_memmem = yes; then
3942
3943 cat >>confdefs.h <<_ACEOF
3944 #define HAVE_DECL_MEMMEM 1
3945 _ACEOF
3946
3947
3948 else
3949 cat >>confdefs.h <<_ACEOF
3950 #define HAVE_DECL_MEMMEM 0
3951 _ACEOF
3952
3953
3954 fi
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 for ac_func in memmem
3971 do
3972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3973 echo "$as_me:$LINENO: checking for $ac_func" >&5
3974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3975 if eval "test \"\${$as_ac_var+set}\" = set"; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3986 #define $ac_func innocuous_$ac_func
3987
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func (); below.
3990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 <limits.h> exists even on freestanding compilers. */
3992
3993 #ifdef __STDC__
3994 # include <limits.h>
3995 #else
3996 # include <assert.h>
3997 #endif
3998
3999 #undef $ac_func
4000
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 #ifdef __cplusplus
4003 extern "C"
4004 {
4005 #endif
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char $ac_func ();
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4013 choke me
4014 #else
4015 char (*f) () = $ac_func;
4016 #endif
4017 #ifdef __cplusplus
4018 }
4019 #endif
4020
4021 int
4022 main ()
4023 {
4024 return f != $ac_func;
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_var=yes"
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 eval "$as_ac_var=no"
4057 fi
4058 rm -f conftest.err conftest.$ac_objext \
4059 conftest$ac_exeext conftest.$ac_ext
4060 fi
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063 if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4066 _ACEOF
4067
4068 else
4069
4070 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4071
4072 fi
4073 done
4074
4075
4076
4077 :
4078
4079
4080
4081
4082
4083 if test $ac_cv_have_decl_memmem = no; then
4084 HAVE_DECL_MEMMEM=0
4085 fi
4086 :
4087
4088
4089 echo "$as_me:$LINENO: checking for long long int" >&5
4090 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4091 if test "${ac_cv_type_long_long_int+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 cat >conftest.$ac_ext <<_ACEOF
4095
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 /* For now, do not test the preprocessor; as of 2007 there are too many
4102 implementations with broken preprocessors. Perhaps this can
4103 be revisited in 2012. In the meantime, code should not expect
4104 #if to work with literals wider than 32 bits. */
4105 /* Test literals. */
4106 long long int ll = 9223372036854775807ll;
4107 long long int nll = -9223372036854775807LL;
4108 unsigned long long int ull = 18446744073709551615ULL;
4109 /* Test constant expressions. */
4110 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4111 ? 1 : -1)];
4112 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4113 ? 1 : -1)];
4114 int i = 63;
4115 int
4116 main ()
4117 {
4118 /* Test availability of runtime routines for shift and division. */
4119 long long int llmax = 9223372036854775807ll;
4120 unsigned long long int ullmax = 18446744073709551615ull;
4121 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4122 | (llmax / ll) | (llmax % ll)
4123 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4124 | (ullmax / ull) | (ullmax % ull));
4125 ;
4126 return 0;
4127 }
4128
4129 _ACEOF
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 if test "$cross_compiling" = yes; then
4153 ac_cv_type_long_long_int=yes
4154 else
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <limits.h>
4162 #ifndef LLONG_MAX
4163 # define HALF \
4164 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4165 # define LLONG_MAX (HALF - 1 + HALF)
4166 #endif
4167 int
4168 main ()
4169 {
4170 long long int n = 1;
4171 int i;
4172 for (i = 0; ; i++)
4173 {
4174 long long int m = n << i;
4175 if (m >> i != n)
4176 return 1;
4177 if (LLONG_MAX / 2 < m)
4178 break;
4179 }
4180 return 0;
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187 (eval $ac_link) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_type_long_long_int=yes
4197 else
4198 echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ( exit $ac_status )
4203 ac_cv_type_long_long_int=no
4204 fi
4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ac_cv_type_long_long_int=no
4212 fi
4213 rm -f conftest.err conftest.$ac_objext \
4214 conftest$ac_exeext conftest.$ac_ext
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4217 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4218 if test $ac_cv_type_long_long_int = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define HAVE_LONG_LONG_INT 1
4222 _ACEOF
4223
4224 fi
4225
4226
4227 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4228 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4229 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 /* For now, do not test the preprocessor; as of 2007 there are too many
4240 implementations with broken preprocessors. Perhaps this can
4241 be revisited in 2012. In the meantime, code should not expect
4242 #if to work with literals wider than 32 bits. */
4243 /* Test literals. */
4244 long long int ll = 9223372036854775807ll;
4245 long long int nll = -9223372036854775807LL;
4246 unsigned long long int ull = 18446744073709551615ULL;
4247 /* Test constant expressions. */
4248 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4249 ? 1 : -1)];
4250 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4251 ? 1 : -1)];
4252 int i = 63;
4253 int
4254 main ()
4255 {
4256 /* Test availability of runtime routines for shift and division. */
4257 long long int llmax = 9223372036854775807ll;
4258 unsigned long long int ullmax = 18446744073709551615ull;
4259 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4260 | (llmax / ll) | (llmax % ll)
4261 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4262 | (ullmax / ull) | (ullmax % ull));
4263 ;
4264 return 0;
4265 }
4266
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_type_unsigned_long_long_int=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_type_unsigned_long_long_int=no
4296 fi
4297 rm -f conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4299 fi
4300 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4301 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4302 if test $ac_cv_type_unsigned_long_long_int = yes; then
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4306 _ACEOF
4307
4308 fi
4309
4310
4311
4312 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4313 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4314 if test "${gl_cv_have_include_next+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 rm -rf conftestd1 conftestd2
4318 mkdir conftestd1 conftestd2
4319 cat <<EOF > conftestd1/conftest.h
4320 #define DEFINED_IN_CONFTESTD1
4321 #include_next <conftest.h>
4322 #ifdef DEFINED_IN_CONFTESTD2
4323 int foo;
4324 #else
4325 #error "include_next doesn't work"
4326 #endif
4327 EOF
4328 cat <<EOF > conftestd2/conftest.h
4329 #ifndef DEFINED_IN_CONFTESTD1
4330 #error "include_next test doesn't work"
4331 #endif
4332 #define DEFINED_IN_CONFTESTD2
4333 EOF
4334 save_CPPFLAGS="$CPPFLAGS"
4335 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 #include <conftest.h>
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 gl_cv_have_include_next=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 gl_cv_have_include_next=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 CPPFLAGS="$save_CPPFLAGS"
4370 rm -rf conftestd1 conftestd2
4371
4372 fi
4373 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4374 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4375 if test $gl_cv_have_include_next = yes; then
4376
4377
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_INCLUDE_NEXT 1
4380 _ACEOF
4381
4382
4383 INCLUDE_NEXT=include_next
4384 else
4385 INCLUDE_NEXT=include
4386 fi
4387
4388
4389
4390
4391
4392
4393
4394 for ac_header in $gl_header_list
4395 do
4396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 fi
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 else
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4416 #include <$ac_header>
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler=yes
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 ac_header_compiler=no
4446 fi
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4450
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <$ac_header>
4461 _ACEOF
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4473 else
4474 ac_cpp_err=
4475 fi
4476 else
4477 ac_cpp_err=yes
4478 fi
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_header_preproc=no
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4490
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4493 yes:no: )
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4499 ;;
4500 no:yes:* )
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4513 (
4514 cat <<\_ASBOX
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4518 _ASBOX
4519 ) |
4520 sed "s/^/$as_me: WARNING: /" >&2
4521 ;;
4522 esac
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 eval "$as_ac_Header=\$ac_header_preproc"
4529 fi
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532
4533 fi
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4538
4539 fi
4540
4541 done
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4555 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4556 if test "${ac_cv_c_restrict+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_cv_c_restrict=no
4560 # The order here caters to the fact that C++ does not require restrict.
4561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 typedef int * int_ptr;
4569 int foo (int_ptr $ac_kw ip) {
4570 return ip[0];
4571 }
4572 int
4573 main ()
4574 {
4575 int s[1];
4576 int * $ac_kw t = s;
4577 t[0] = 0;
4578 return foo(t)
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_c_restrict=$ac_kw
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 fi
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 test "$ac_cv_c_restrict" != no && break
4613 done
4614
4615 fi
4616 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4617 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4618
4619
4620 case $ac_cv_c_restrict in
4621 restrict) ;;
4622 no) cat >>confdefs.h <<\_ACEOF
4623 #define restrict
4624 _ACEOF
4625 ;;
4626 *) cat >>confdefs.h <<_ACEOF
4627 #define restrict $ac_cv_c_restrict
4628 _ACEOF
4629 ;;
4630 esac
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 :
4645
4646
4647
4648
4649
4650
4651
4652 if test $gl_cv_have_include_next = yes; then
4653 gl_cv_next_string_h='<'string.h'>'
4654 else
4655 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4656 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4657 if test "${gl_cv_next_string_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660
4661 if test $ac_cv_header_string_h = yes; then
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 #include <string.h>
4669
4670 _ACEOF
4671 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 sed -n '\#/string.h#{
4673 s#.*"\(.*/string.h\)".*#\1#
4674 s#^/[^/]#//&#
4675 p
4676 q
4677 }'`'"'
4678 else
4679 gl_cv_next_string_h='<'string.h'>'
4680 fi
4681
4682 fi
4683 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4684 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4685 fi
4686 NEXT_STRING_H=$gl_cv_next_string_h
4687
4688
4689
4690
4691
4692 GNULIB_WCWIDTH=0;
4693 HAVE_DECL_WCWIDTH=1;
4694 REPLACE_WCWIDTH=0;
4695 WCHAR_H=
4696
4697
4698
4699
4700
4701 if false; then
4702 GL_COND_LIBTOOL_TRUE=
4703 GL_COND_LIBTOOL_FALSE='#'
4704 else
4705 GL_COND_LIBTOOL_TRUE='#'
4706 GL_COND_LIBTOOL_FALSE=
4707 fi
4708
4709 gl_cond_libtool=false
4710 gl_libdeps=
4711 gl_ltlibdeps=
4712
4713
4714
4715 gl_source_base='gnulib'
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 for ac_func in memchr
4726 do
4727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4728 echo "$as_me:$LINENO: checking for $ac_func" >&5
4729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_var+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h. */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4741 #define $ac_func innocuous_$ac_func
4742
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func (); below.
4745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 <limits.h> exists even on freestanding compilers. */
4747
4748 #ifdef __STDC__
4749 # include <limits.h>
4750 #else
4751 # include <assert.h>
4752 #endif
4753
4754 #undef $ac_func
4755
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 #ifdef __cplusplus
4758 extern "C"
4759 {
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char $ac_func ();
4764 /* The GNU C library defines this for functions which it implements
4765 to always fail with ENOSYS. Some functions are actually named
4766 something starting with __ and the normal name is an alias. */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 choke me
4769 #else
4770 char (*f) () = $ac_func;
4771 #endif
4772 #ifdef __cplusplus
4773 }
4774 #endif
4775
4776 int
4777 main ()
4778 {
4779 return f != $ac_func;
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 eval "$as_ac_var=no"
4812 fi
4813 rm -f conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4815 fi
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4818 if test `eval echo '${'$as_ac_var'}'` = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4821 _ACEOF
4822
4823 else
4824
4825 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4826
4827 fi
4828 done
4829
4830
4831 if test $ac_cv_func_memchr = no; then
4832
4833
4834 for ac_header in bp-sym.h
4835 do
4836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo "$as_me:$LINENO: checking for $ac_header" >&5
4839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 fi
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845 else
4846 # Is the header compilable?
4847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 #include <$ac_header>
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try='test -s conftest.$ac_objext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_header_compiler=yes
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885 ac_header_compiler=no
4886 fi
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4890
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <$ac_header>
4901 _ACEOF
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null; then
4910 if test -s conftest.err; then
4911 ac_cpp_err=$ac_c_preproc_warn_flag
4912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4913 else
4914 ac_cpp_err=
4915 fi
4916 else
4917 ac_cpp_err=yes
4918 fi
4919 if test -z "$ac_cpp_err"; then
4920 ac_header_preproc=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_header_preproc=no
4926 fi
4927 rm -f conftest.err conftest.$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929 echo "${ECHO_T}$ac_header_preproc" >&6
4930
4931 # So? What about this header?
4932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4933 yes:no: )
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938 ac_header_preproc=yes
4939 ;;
4940 no:yes:* )
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4953 (
4954 cat <<\_ASBOX
4955 ## ------------------------------------------ ##
4956 ## Report this to the AC_PACKAGE_NAME lists. ##
4957 ## ------------------------------------------ ##
4958 _ASBOX
4959 ) |
4960 sed "s/^/$as_me: WARNING: /" >&2
4961 ;;
4962 esac
4963 echo "$as_me:$LINENO: checking for $ac_header" >&5
4964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 eval "$as_ac_Header=\$ac_header_preproc"
4969 fi
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972
4973 fi
4974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4975 cat >>confdefs.h <<_ACEOF
4976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 _ACEOF
4978
4979 fi
4980
4981 done
4982
4983
4984 fi
4985
4986
4987 echo "$as_me:$LINENO: checking for working memcmp" >&5
4988 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4989 if test "${ac_cv_func_memcmp_working+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test "$cross_compiling" = yes; then
4993 ac_cv_func_memcmp_working=no
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5002 int
5003 main ()
5004 {
5005
5006 /* Some versions of memcmp are not 8-bit clean. */
5007 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5008 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5009 exit (1);
5010
5011 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5012 or more and with at least one buffer not starting on a 4-byte boundary.
5013 William Lewis provided this test program. */
5014 {
5015 char foo[21];
5016 char bar[21];
5017 int i;
5018 for (i = 0; i < 4; i++)
5019 {
5020 char *a = foo + i;
5021 char *b = bar + i;
5022 strcpy (a, "--------01111111");
5023 strcpy (b, "--------10000000");
5024 if (memcmp (a, b, 16) >= 0)
5025 exit (1);
5026 }
5027 exit (0);
5028 }
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_func_memcmp_working=yes
5046 else
5047 echo "$as_me: program exited with status $ac_status" >&5
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ( exit $ac_status )
5052 ac_cv_func_memcmp_working=no
5053 fi
5054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 fi
5057 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5058 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5059 test $ac_cv_func_memcmp_working = no &&
5060
5061
5062
5063
5064
5065
5066 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5067
5068
5069 if test $ac_cv_func_memcmp_working = no; then
5070
5071 cat >>confdefs.h <<\_ACEOF
5072 #define memcmp rpl_memcmp
5073 _ACEOF
5074
5075 :
5076 fi
5077
5078
5079
5080 if test $ac_cv_have_decl_memmem = yes; then
5081 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5082 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5083 if test "${gl_cv_func_memmem_works+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test "$cross_compiling" = yes; then
5087 gl_cv_func_memmem_works="guessing no"
5088 else
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095
5096 #include <string.h> /* for memmem */
5097 #include <stdlib.h> /* for malloc */
5098 #include <unistd.h> /* for alarm */
5099
5100 int
5101 main ()
5102 {
5103 size_t m = 1000000;
5104 char *haystack = (char *) malloc (2 * m + 1);
5105 char *needle = (char *) malloc (m + 1);
5106 void *result = 0;
5107 /* Failure to compile this test due to missing alarm is okay,
5108 since all such platforms (mingw) also lack memmem. */
5109 alarm (5);
5110 /* Check for quadratic performance. */
5111 if (haystack && needle)
5112 {
5113 memset (haystack, 'A', 2 * m);
5114 haystack[2 * m] = 'B';
5115 memset (needle, 'A', m);
5116 needle[m] = 'B';
5117 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5118 }
5119 /* Check for empty needle behavior. */
5120 return !result || !memmem ("a", 1, 0, 0);
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 gl_cv_func_memmem_works=yes
5137 else
5138 echo "$as_me: program exited with status $ac_status" >&5
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ( exit $ac_status )
5143 gl_cv_func_memmem_works=no
5144 fi
5145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 fi
5148 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5149 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5150 if test "$gl_cv_func_memmem_works" != yes; then
5151 REPLACE_MEMMEM=1
5152
5153
5154
5155
5156
5157
5158
5159 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5160
5161 fi
5162 fi
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176 for ac_func in memmem
5177 do
5178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179 echo "$as_me:$LINENO: checking for $ac_func" >&5
5180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_var+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5192 #define $ac_func innocuous_$ac_func
5193
5194 /* System header to define __stub macros and hopefully few prototypes,
5195 which can conflict with char $ac_func (); below.
5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 <limits.h> exists even on freestanding compilers. */
5198
5199 #ifdef __STDC__
5200 # include <limits.h>
5201 #else
5202 # include <assert.h>
5203 #endif
5204
5205 #undef $ac_func
5206
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 #ifdef __cplusplus
5209 extern "C"
5210 {
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char $ac_func ();
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5219 choke me
5220 #else
5221 char (*f) () = $ac_func;
5222 #endif
5223 #ifdef __cplusplus
5224 }
5225 #endif
5226
5227 int
5228 main ()
5229 {
5230 return f != $ac_func;
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 eval "$as_ac_var=no"
5263 fi
5264 rm -f conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266 fi
5267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5269 if test `eval echo '${'$as_ac_var'}'` = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5272 _ACEOF
5273
5274 else
5275
5276 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5277
5278 fi
5279 done
5280
5281
5282
5283 :
5284
5285
5286
5287
5288
5289 if test $ac_cv_have_decl_memmem = no; then
5290 HAVE_DECL_MEMMEM=0
5291 fi
5292 :
5293
5294
5295
5296 GNULIB_MEMMEM=1
5297
5298
5299
5300
5301 if test $ac_cv_type_long_long_int = yes; then
5302 HAVE_LONG_LONG_INT=1
5303 else
5304 HAVE_LONG_LONG_INT=0
5305 fi
5306
5307
5308 if test $ac_cv_type_unsigned_long_long_int = yes; then
5309 HAVE_UNSIGNED_LONG_LONG_INT=1
5310 else
5311 HAVE_UNSIGNED_LONG_LONG_INT=0
5312 fi
5313
5314
5315 if test $ac_cv_header_inttypes_h = yes; then
5316 HAVE_INTTYPES_H=1
5317 else
5318 HAVE_INTTYPES_H=0
5319 fi
5320
5321
5322 if test $ac_cv_header_sys_types_h = yes; then
5323 HAVE_SYS_TYPES_H=1
5324 else
5325 HAVE_SYS_TYPES_H=0
5326 fi
5327
5328
5329
5330
5331
5332 :
5333
5334
5335
5336
5337
5338
5339
5340 if test $gl_cv_have_include_next = yes; then
5341 gl_cv_next_stdint_h='<'stdint.h'>'
5342 else
5343 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5344 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5345 if test "${gl_cv_next_stdint_h+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348
5349 if test $ac_cv_header_stdint_h = yes; then
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <stdint.h>
5357
5358 _ACEOF
5359 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 sed -n '\#/stdint.h#{
5361 s#.*"\(.*/stdint.h\)".*#\1#
5362 s#^/[^/]#//&#
5363 p
5364 q
5365 }'`'"'
5366 else
5367 gl_cv_next_stdint_h='<'stdint.h'>'
5368 fi
5369
5370 fi
5371 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5372 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5373 fi
5374 NEXT_STDINT_H=$gl_cv_next_stdint_h
5375
5376
5377
5378 if test $ac_cv_header_stdint_h = yes; then
5379 HAVE_STDINT_H=1
5380 else
5381 HAVE_STDINT_H=0
5382 fi
5383
5384
5385 if test $ac_cv_header_stdint_h = yes; then
5386 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5387 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5388 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 gl_cv_header_working_stdint_h=no
5392 cat >conftest.$ac_ext <<_ACEOF
5393
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399
5400 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5401 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5402 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5403 #include <stdint.h>
5404 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5405 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5406 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5407 #endif
5408
5409
5410 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5411 included before <wchar.h>. */
5412 #include <stddef.h>
5413 #include <signal.h>
5414 #if HAVE_WCHAR_H
5415 # include <stdio.h>
5416 # include <time.h>
5417 # include <wchar.h>
5418 #endif
5419
5420
5421 #ifdef INT8_MAX
5422 int8_t a1 = INT8_MAX;
5423 int8_t a1min = INT8_MIN;
5424 #endif
5425 #ifdef INT16_MAX
5426 int16_t a2 = INT16_MAX;
5427 int16_t a2min = INT16_MIN;
5428 #endif
5429 #ifdef INT32_MAX
5430 int32_t a3 = INT32_MAX;
5431 int32_t a3min = INT32_MIN;
5432 #endif
5433 #ifdef INT64_MAX
5434 int64_t a4 = INT64_MAX;
5435 int64_t a4min = INT64_MIN;
5436 #endif
5437 #ifdef UINT8_MAX
5438 uint8_t b1 = UINT8_MAX;
5439 #else
5440 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5441 #endif
5442 #ifdef UINT16_MAX
5443 uint16_t b2 = UINT16_MAX;
5444 #endif
5445 #ifdef UINT32_MAX
5446 uint32_t b3 = UINT32_MAX;
5447 #endif
5448 #ifdef UINT64_MAX
5449 uint64_t b4 = UINT64_MAX;
5450 #endif
5451 int_least8_t c1 = INT8_C (0x7f);
5452 int_least8_t c1max = INT_LEAST8_MAX;
5453 int_least8_t c1min = INT_LEAST8_MIN;
5454 int_least16_t c2 = INT16_C (0x7fff);
5455 int_least16_t c2max = INT_LEAST16_MAX;
5456 int_least16_t c2min = INT_LEAST16_MIN;
5457 int_least32_t c3 = INT32_C (0x7fffffff);
5458 int_least32_t c3max = INT_LEAST32_MAX;
5459 int_least32_t c3min = INT_LEAST32_MIN;
5460 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5461 int_least64_t c4max = INT_LEAST64_MAX;
5462 int_least64_t c4min = INT_LEAST64_MIN;
5463 uint_least8_t d1 = UINT8_C (0xff);
5464 uint_least8_t d1max = UINT_LEAST8_MAX;
5465 uint_least16_t d2 = UINT16_C (0xffff);
5466 uint_least16_t d2max = UINT_LEAST16_MAX;
5467 uint_least32_t d3 = UINT32_C (0xffffffff);
5468 uint_least32_t d3max = UINT_LEAST32_MAX;
5469 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5470 uint_least64_t d4max = UINT_LEAST64_MAX;
5471 int_fast8_t e1 = INT_FAST8_MAX;
5472 int_fast8_t e1min = INT_FAST8_MIN;
5473 int_fast16_t e2 = INT_FAST16_MAX;
5474 int_fast16_t e2min = INT_FAST16_MIN;
5475 int_fast32_t e3 = INT_FAST32_MAX;
5476 int_fast32_t e3min = INT_FAST32_MIN;
5477 int_fast64_t e4 = INT_FAST64_MAX;
5478 int_fast64_t e4min = INT_FAST64_MIN;
5479 uint_fast8_t f1 = UINT_FAST8_MAX;
5480 uint_fast16_t f2 = UINT_FAST16_MAX;
5481 uint_fast32_t f3 = UINT_FAST32_MAX;
5482 uint_fast64_t f4 = UINT_FAST64_MAX;
5483 #ifdef INTPTR_MAX
5484 intptr_t g = INTPTR_MAX;
5485 intptr_t gmin = INTPTR_MIN;
5486 #endif
5487 #ifdef UINTPTR_MAX
5488 uintptr_t h = UINTPTR_MAX;
5489 #endif
5490 intmax_t i = INTMAX_MAX;
5491 uintmax_t j = UINTMAX_MAX;
5492
5493 #include <limits.h> /* for CHAR_BIT */
5494 #define TYPE_MINIMUM(t) \
5495 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5496 #define TYPE_MAXIMUM(t) \
5497 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5498 struct s {
5499 int check_PTRDIFF:
5500 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5501 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5502 ? 1 : -1;
5503 /* Detect bug in FreeBSD 6.0 / ia64. */
5504 int check_SIG_ATOMIC:
5505 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5506 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5507 ? 1 : -1;
5508 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5509 int check_WCHAR:
5510 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5511 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5512 ? 1 : -1;
5513 /* Detect bug in mingw. */
5514 int check_WINT:
5515 WINT_MIN == TYPE_MINIMUM (wint_t)
5516 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5517 ? 1 : -1;
5518
5519 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5520 int check_UINT8_C:
5521 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5522 int check_UINT16_C:
5523 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5524
5525 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5526 #ifdef UINT8_MAX
5527 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5528 #endif
5529 #ifdef UINT16_MAX
5530 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5531 #endif
5532 #ifdef UINT32_MAX
5533 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5534 #endif
5535 #ifdef UINT64_MAX
5536 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5537 #endif
5538 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5539 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5540 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5541 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5542 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5543 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5544 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5545 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5546 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5547 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5548 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5549 };
5550
5551 int
5552 main ()
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 gl_cv_header_working_stdint_h=yes
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 fi
5587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5590 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5591 fi
5592 if test "$gl_cv_header_working_stdint_h" = yes; then
5593 STDINT_H=
5594 else
5595
5596
5597 for ac_header in sys/inttypes.h sys/bitypes.h
5598 do
5599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo "$as_me:$LINENO: checking for $ac_header" >&5
5602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 fi
5606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5608 else
5609 # Is the header compilable?
5610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 #include <$ac_header>
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -z "$ac_c_werror_flag"
5631 || test ! -s conftest.err'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_header_compiler=yes
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5653
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <$ac_header>
5664 _ACEOF
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } >/dev/null; then
5673 if test -s conftest.err; then
5674 ac_cpp_err=$ac_c_preproc_warn_flag
5675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5676 else
5677 ac_cpp_err=
5678 fi
5679 else
5680 ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_header_preproc=no
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5693
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5696 yes:no: )
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5701 ac_header_preproc=yes
5702 ;;
5703 no:yes:* )
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5716 (
5717 cat <<\_ASBOX
5718 ## ------------------------------------------ ##
5719 ## Report this to the AC_PACKAGE_NAME lists. ##
5720 ## ------------------------------------------ ##
5721 _ASBOX
5722 ) |
5723 sed "s/^/$as_me: WARNING: /" >&2
5724 ;;
5725 esac
5726 echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 eval "$as_ac_Header=\$ac_header_preproc"
5732 fi
5733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735
5736 fi
5737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5740 _ACEOF
5741
5742 fi
5743
5744 done
5745
5746 if test $ac_cv_header_sys_inttypes_h = yes; then
5747 HAVE_SYS_INTTYPES_H=1
5748 else
5749 HAVE_SYS_INTTYPES_H=0
5750 fi
5751
5752 if test $ac_cv_header_sys_bitypes_h = yes; then
5753 HAVE_SYS_BITYPES_H=1
5754 else
5755 HAVE_SYS_BITYPES_H=0
5756 fi
5757
5758
5759
5760 :
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5776 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5777 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5778 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 if test "$cross_compiling" = yes; then
5782 # Depending upon the size, compute the lo and hi bounds.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789
5790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5791 included before <wchar.h>. */
5792 #include <stddef.h>
5793 #include <signal.h>
5794 #if HAVE_WCHAR_H
5795 # include <stdio.h>
5796 # include <time.h>
5797 # include <wchar.h>
5798 #endif
5799
5800 #include <limits.h>
5801 int
5802 main ()
5803 {
5804 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5805 test_array [0] = 0
5806
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_lo=0 ac_mid=0
5834 while :; do
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841
5842 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5843 included before <wchar.h>. */
5844 #include <stddef.h>
5845 #include <signal.h>
5846 #if HAVE_WCHAR_H
5847 # include <stdio.h>
5848 # include <time.h>
5849 # include <wchar.h>
5850 #endif
5851
5852 #include <limits.h>
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5857 test_array [0] = 0
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_hi=$ac_mid; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_lo=`expr $ac_mid + 1`
5891 if test $ac_lo -le $ac_mid; then
5892 ac_lo= ac_hi=
5893 break
5894 fi
5895 ac_mid=`expr 2 '*' $ac_mid + 1`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5912 #include <stddef.h>
5913 #include <signal.h>
5914 #if HAVE_WCHAR_H
5915 # include <stdio.h>
5916 # include <time.h>
5917 # include <wchar.h>
5918 #endif
5919
5920 #include <limits.h>
5921 int
5922 main ()
5923 {
5924 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5925 test_array [0] = 0
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_hi=-1 ac_mid=-1
5954 while :; do
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961
5962 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963 included before <wchar.h>. */
5964 #include <stddef.h>
5965 #include <signal.h>
5966 #if HAVE_WCHAR_H
5967 # include <stdio.h>
5968 # include <time.h>
5969 # include <wchar.h>
5970 #endif
5971
5972 #include <limits.h>
5973 int
5974 main ()
5975 {
5976 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5977 test_array [0] = 0
5978
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_lo=$ac_mid; break
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_hi=`expr '(' $ac_mid ')' - 1`
6011 if test $ac_mid -le $ac_hi; then
6012 ac_lo= ac_hi=
6013 break
6014 fi
6015 ac_mid=`expr 2 '*' $ac_mid`
6016 fi
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 done
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_lo= ac_hi=
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 # Binary search between lo and hi bounds.
6029 while test "x$ac_lo" != "x$ac_hi"; do
6030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037
6038 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6039 included before <wchar.h>. */
6040 #include <stddef.h>
6041 #include <signal.h>
6042 #if HAVE_WCHAR_H
6043 # include <stdio.h>
6044 # include <time.h>
6045 # include <wchar.h>
6046 #endif
6047
6048 #include <limits.h>
6049 int
6050 main ()
6051 {
6052 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6053 test_array [0] = 0
6054
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_hi=$ac_mid
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6087 fi
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 done
6090 case $ac_lo in
6091 ?*) result=$ac_lo;;
6092 '') result=unknown ;;
6093 esac
6094 else
6095 if test "$cross_compiling" = yes; then
6096 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6097 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6098 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6099 See \`config.log' for more details." >&5
6100 echo "$as_me: error: cannot run test program while cross compiling
6101 See \`config.log' for more details." >&2;}
6102 { (exit 1); exit 1; }; }; }
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110
6111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6112 included before <wchar.h>. */
6113 #include <stddef.h>
6114 #include <signal.h>
6115 #if HAVE_WCHAR_H
6116 # include <stdio.h>
6117 # include <time.h>
6118 # include <wchar.h>
6119 #endif
6120
6121 #include <limits.h>
6122 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6123 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6124 #include <stdio.h>
6125 #include <stdlib.h>
6126 int
6127 main ()
6128 {
6129
6130 FILE *f = fopen ("conftest.val", "w");
6131 if (! f)
6132 exit (1);
6133 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6134 {
6135 long i = longval ();
6136 if (i != (sizeof ($gltype) * CHAR_BIT))
6137 exit (1);
6138 fprintf (f, "%ld\n", i);
6139 }
6140 else
6141 {
6142 unsigned long i = ulongval ();
6143 if (i != (sizeof ($gltype) * CHAR_BIT))
6144 exit (1);
6145 fprintf (f, "%lu\n", i);
6146 }
6147 exit (ferror (f) || fclose (f) != 0);
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 result=`cat conftest.val`
6165 else
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ( exit $ac_status )
6171 result=unknown
6172 fi
6173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 fi
6176 rm -f conftest.val
6177 eval gl_cv_bitsizeof_${gltype}=\$result
6178
6179 fi
6180 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6182 eval result=\$gl_cv_bitsizeof_${gltype}
6183 if test $result = unknown; then
6184 result=0
6185 fi
6186 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6187 cat >>confdefs.h <<_ACEOF
6188 #define BITSIZEOF_${GLTYPE} $result
6189 _ACEOF
6190
6191 eval BITSIZEOF_${GLTYPE}=\$result
6192 done
6193
6194
6195
6196
6197
6198
6199
6200 for gltype in sig_atomic_t wchar_t wint_t ; do
6201 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6202 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6203 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212
6213 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6214 included before <wchar.h>. */
6215 #include <stddef.h>
6216 #include <signal.h>
6217 #if HAVE_WCHAR_H
6218 # include <stdio.h>
6219 # include <time.h>
6220 # include <wchar.h>
6221 #endif
6222
6223 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6224 int
6225 main ()
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 result=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 result=no
6260 fi
6261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262 eval gl_cv_type_${gltype}_signed=\$result
6263
6264 fi
6265 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6266 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6267 eval result=\$gl_cv_type_${gltype}_signed
6268 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6269 if test "$result" = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define HAVE_SIGNED_${GLTYPE} 1
6272 _ACEOF
6273
6274 eval HAVE_SIGNED_${GLTYPE}=1
6275 else
6276 eval HAVE_SIGNED_${GLTYPE}=0
6277 fi
6278 done
6279
6280
6281 gl_cv_type_ptrdiff_t_signed=yes
6282 gl_cv_type_size_t_signed=no
6283
6284
6285
6286
6287
6288
6289
6290 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6291 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6292 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6293 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 eval gl_cv_type_${gltype}_suffix=no
6297 eval result=\$gl_cv_type_${gltype}_signed
6298 if test "$result" = yes; then
6299 glsufu=
6300 else
6301 glsufu=u
6302 fi
6303 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6304 case $glsuf in
6305 '') gltype1='int';;
6306 l) gltype1='long int';;
6307 ll) gltype1='long long int';;
6308 i64) gltype1='__int64';;
6309 u) gltype1='unsigned int';;
6310 ul) gltype1='unsigned long int';;
6311 ull) gltype1='unsigned long long int';;
6312 ui64)gltype1='unsigned __int64';;
6313 esac
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320
6321 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6322 included before <wchar.h>. */
6323 #include <stddef.h>
6324 #include <signal.h>
6325 #if HAVE_WCHAR_H
6326 # include <stdio.h>
6327 # include <time.h>
6328 # include <wchar.h>
6329 #endif
6330
6331 extern $gltype foo;
6332 extern $gltype1 foo;
6333 int
6334 main ()
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 eval gl_cv_type_${gltype}_suffix=\$glsuf
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 eval result=\$gl_cv_type_${gltype}_suffix
6371 test "$result" != no && break
6372 done
6373 fi
6374 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6376 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6377 eval result=\$gl_cv_type_${gltype}_suffix
6378 test "$result" = no && result=
6379 eval ${GLTYPE}_SUFFIX=\$result
6380 cat >>confdefs.h <<_ACEOF
6381 #define ${GLTYPE}_SUFFIX $result
6382 _ACEOF
6383
6384 done
6385
6386
6387
6388 STDINT_H=stdint.h
6389 fi
6390
6391
6392
6393
6394
6395
6396
6397 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6398 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6399 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #include <wchar.h>
6404 wchar_t w;
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 gl_cv_header_wchar_h_standalone=yes
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 gl_cv_header_wchar_h_standalone=no
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6438 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6439 if test $gl_cv_header_wchar_h_standalone != yes; then
6440 WCHAR_H=wchar.h
6441 fi
6442
6443
6444 :
6445
6446
6447
6448
6449
6450 if test $ac_cv_header_wchar_h = yes; then
6451 HAVE_WCHAR_H=1
6452 else
6453 HAVE_WCHAR_H=0
6454 fi
6455
6456
6457
6458
6459 :
6460
6461
6462
6463
6464
6465
6466
6467 if test $gl_cv_have_include_next = yes; then
6468 gl_cv_next_wchar_h='<'wchar.h'>'
6469 else
6470 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6471 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6472 if test "${gl_cv_next_wchar_h+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475
6476 if test $ac_cv_header_wchar_h = yes; then
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <wchar.h>
6484
6485 _ACEOF
6486 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 sed -n '\#/wchar.h#{
6488 s#.*"\(.*/wchar.h\)".*#\1#
6489 s#^/[^/]#//&#
6490 p
6491 q
6492 }'`'"'
6493 else
6494 gl_cv_next_wchar_h='<'wchar.h'>'
6495 fi
6496
6497 fi
6498 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6499 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6500 fi
6501 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6502
6503
6504
6505
6506
6507
6508
6509
6510 gltests_libdeps=
6511 gltests_ltlibdeps=
6512
6513
6514
6515 gl_source_base='tests'
6516
6517
6518
6519
6520 LIBGNU_LIBDEPS="$gl_libdeps"
6521
6522 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6523
6524
6525
6526 # For Makefile dependencies.
6527 GNULIB_STDINT_H=
6528 if test x"$STDINT_H" != x; then
6529 GNULIB_STDINT_H=gnulib/$STDINT_H
6530 fi
6531
6532
6533 PACKAGE=gdb
6534
6535 cat >>confdefs.h <<_ACEOF
6536 #define PACKAGE "$PACKAGE"
6537 _ACEOF
6538
6539
6540
6541 # GDB does not use automake, but gnulib does. This line lets us
6542 # generate its Makefile.in.
6543 am__api_version="1.9"
6544 # Find a good install program. We prefer a C program (faster),
6545 # so one script is as good as another. But avoid the broken or
6546 # incompatible versions:
6547 # SysV /etc/install, /usr/sbin/install
6548 # SunOS /usr/etc/install
6549 # IRIX /sbin/install
6550 # AIX /bin/install
6551 # AmigaOS /C/install, which installs bootblocks on floppy discs
6552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6555 # OS/2's system install, which has a completely different semantic
6556 # ./install, which can be erroneously created by make from ./install.sh.
6557 # Reject install programs that cannot install multiple files.
6558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6560 if test -z "$INSTALL"; then
6561 if test "${ac_cv_path_install+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 # Account for people who put trailing slashes in PATH elements.
6570 case $as_dir/ in
6571 ./ | .// | /cC/* | \
6572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6574 /usr/ucb/* ) ;;
6575 *)
6576 # OSF1 and SCO ODT 3.0 have their own names for install.
6577 # Don't use installbsd from OSF since it installs stuff as root
6578 # by default.
6579 for ac_prog in ginstall scoinst install; do
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6582 if test $ac_prog = install &&
6583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # AIX install. It has an incompatible calling convention.
6585 :
6586 elif test $ac_prog = install &&
6587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6588 # program-specific install script used by HP pwplus--don't use.
6589 :
6590 else
6591 rm -rf conftest.one conftest.two conftest.dir
6592 echo one > conftest.one
6593 echo two > conftest.two
6594 mkdir conftest.dir
6595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6596 test -s conftest.one && test -s conftest.two &&
6597 test -s conftest.dir/conftest.one &&
6598 test -s conftest.dir/conftest.two
6599 then
6600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6601 break 3
6602 fi
6603 fi
6604 fi
6605 done
6606 done
6607 ;;
6608 esac
6609 done
6610
6611 rm -rf conftest.one conftest.two conftest.dir
6612
6613 fi
6614 if test "${ac_cv_path_install+set}" = set; then
6615 INSTALL=$ac_cv_path_install
6616 else
6617 # As a last resort, use the slow shell script. Don't cache a
6618 # value for INSTALL within a source directory, because that will
6619 # break other packages using the cache if that directory is
6620 # removed, or if the value is a relative name.
6621 INSTALL=$ac_install_sh
6622 fi
6623 fi
6624 echo "$as_me:$LINENO: result: $INSTALL" >&5
6625 echo "${ECHO_T}$INSTALL" >&6
6626
6627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6628 # It thinks the first close brace ends the variable substitution.
6629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6630
6631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6632
6633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6634
6635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6637 # Just in case
6638 sleep 1
6639 echo timestamp > conftest.file
6640 # Do `set' in a subshell so we don't clobber the current shell's
6641 # arguments. Must try -L first in case configure is actually a
6642 # symlink; some systems play weird games with the mod time of symlinks
6643 # (eg FreeBSD returns the mod time of the symlink's containing
6644 # directory).
6645 if (
6646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6647 if test "$*" = "X"; then
6648 # -L didn't work.
6649 set X `ls -t $srcdir/configure conftest.file`
6650 fi
6651 rm -f conftest.file
6652 if test "$*" != "X $srcdir/configure conftest.file" \
6653 && test "$*" != "X conftest.file $srcdir/configure"; then
6654
6655 # If neither matched, then we have a broken ls. This can happen
6656 # if, for instance, CONFIG_SHELL is bash and it inherits a
6657 # broken ls alias from the environment. This has actually
6658 # happened. Such a system could not be considered "sane".
6659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6660 alias in your environment" >&5
6661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6662 alias in your environment" >&2;}
6663 { (exit 1); exit 1; }; }
6664 fi
6665
6666 test "$2" = conftest.file
6667 )
6668 then
6669 # Ok.
6670 :
6671 else
6672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6673 Check your system clock" >&5
6674 echo "$as_me: error: newly created file is older than distributed files!
6675 Check your system clock" >&2;}
6676 { (exit 1); exit 1; }; }
6677 fi
6678 echo "$as_me:$LINENO: result: yes" >&5
6679 echo "${ECHO_T}yes" >&6
6680 test "$program_prefix" != NONE &&
6681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6682 # Use a double $ so make ignores it.
6683 test "$program_suffix" != NONE &&
6684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6685 # Double any \ or $. echo might interpret backslashes.
6686 # By default was `s,x,x', remove it if useless.
6687 cat <<\_ACEOF >conftest.sed
6688 s/[\\$]/&&/g;s/;s,x,x,$//
6689 _ACEOF
6690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6691 rm conftest.sed
6692
6693 # expand $ac_aux_dir to an absolute path
6694 am_aux_dir=`cd $ac_aux_dir && pwd`
6695
6696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6697 # Use eval to expand $SHELL
6698 if eval "$MISSING --run true"; then
6699 am_missing_run="$MISSING --run "
6700 else
6701 am_missing_run=
6702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6704 fi
6705
6706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6707 # We used to keeping the `.' as first argument, in order to
6708 # allow $(mkdir_p) to be used without argument. As in
6709 # $(mkdir_p) $(somedir)
6710 # where $(somedir) is conditionally defined. However this is wrong
6711 # for two reasons:
6712 # 1. if the package is installed by a user who cannot write `.'
6713 # make install will fail,
6714 # 2. the above comment should most certainly read
6715 # $(mkdir_p) $(DESTDIR)$(somedir)
6716 # so it does not work when $(somedir) is undefined and
6717 # $(DESTDIR) is not.
6718 # To support the latter case, we have to write
6719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6720 # so the `.' trick is pointless.
6721 mkdir_p='mkdir -p --'
6722 else
6723 # On NextStep and OpenStep, the `mkdir' command does not
6724 # recognize any option. It will interpret all options as
6725 # directories to create, and then abort because `.' already
6726 # exists.
6727 for d in ./-p ./--version;
6728 do
6729 test -d $d && rmdir $d
6730 done
6731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6732 if test -f "$ac_aux_dir/mkinstalldirs"; then
6733 mkdir_p='$(mkinstalldirs)'
6734 else
6735 mkdir_p='$(install_sh) -d'
6736 fi
6737 fi
6738
6739 for ac_prog in gawk mawk nawk awk
6740 do
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6745 if test "${ac_cv_prog_AWK+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test -n "$AWK"; then
6749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_AWK="$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764
6765 fi
6766 fi
6767 AWK=$ac_cv_prog_AWK
6768 if test -n "$AWK"; then
6769 echo "$as_me:$LINENO: result: $AWK" >&5
6770 echo "${ECHO_T}$AWK" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6
6774 fi
6775
6776 test -n "$AWK" && break
6777 done
6778
6779 ac_config_commands="$ac_config_commands depfiles"
6780
6781
6782 am_make=${MAKE-make}
6783 cat > confinc << 'END'
6784 am__doit:
6785 @echo done
6786 .PHONY: am__doit
6787 END
6788 # If we don't find an include directive, just comment out the code.
6789 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6790 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6791 am__include="#"
6792 am__quote=
6793 _am_result=none
6794 # First try GNU make style include.
6795 echo "include confinc" > confmf
6796 # We grep out `Entering directory' and `Leaving directory'
6797 # messages which can occur if `w' ends up in MAKEFLAGS.
6798 # In particular we don't look at `^make:' because GNU make might
6799 # be invoked under some other name (usually "gmake"), in which
6800 # case it prints its new name instead of `make'.
6801 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6802 am__include=include
6803 am__quote=
6804 _am_result=GNU
6805 fi
6806 # Now try BSD make style include.
6807 if test "$am__include" = "#"; then
6808 echo '.include "confinc"' > confmf
6809 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6810 am__include=.include
6811 am__quote="\""
6812 _am_result=BSD
6813 fi
6814 fi
6815
6816
6817 echo "$as_me:$LINENO: result: $_am_result" >&5
6818 echo "${ECHO_T}$_am_result" >&6
6819 rm -f confinc confmf
6820
6821 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6822 if test "${enable_dependency_tracking+set}" = set; then
6823 enableval="$enable_dependency_tracking"
6824
6825 fi;
6826 if test "x$enable_dependency_tracking" != xno; then
6827 am_depcomp="$ac_aux_dir/depcomp"
6828 AMDEPBACKSLASH='\'
6829 fi
6830
6831
6832 if test "x$enable_dependency_tracking" != xno; then
6833 AMDEP_TRUE=
6834 AMDEP_FALSE='#'
6835 else
6836 AMDEP_TRUE='#'
6837 AMDEP_FALSE=
6838 fi
6839
6840
6841
6842 # test to see if srcdir already configured
6843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6844 test -f $srcdir/config.status; then
6845 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6847 { (exit 1); exit 1; }; }
6848 fi
6849
6850 # test whether we have cygpath
6851 if test -z "$CYGPATH_W"; then
6852 if (cygpath --version) >/dev/null 2>/dev/null; then
6853 CYGPATH_W='cygpath -w'
6854 else
6855 CYGPATH_W=echo
6856 fi
6857 fi
6858
6859
6860 # Define the identity of the package.
6861 PACKAGE=gdb
6862 VERSION=UNUSED-VERSION
6863
6864
6865 # Some tools Automake needs.
6866
6867 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6868
6869
6870 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6871
6872
6873 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6874
6875
6876 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6877
6878
6879 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6880
6881 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6882
6883 # Installed binaries are usually stripped using `strip' when the user
6884 # run `make install-strip'. However `strip' might not be the right
6885 # tool to use in cross-compilation environments, therefore Automake
6886 # will honor the `STRIP' environment variable to overrule this program.
6887 if test "$cross_compiling" != no; then
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}strip; ac_word=$2
6891 echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893 if test "${ac_cv_prog_STRIP+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912
6913 fi
6914 fi
6915 STRIP=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 echo "$as_me:$LINENO: result: $STRIP" >&5
6918 echo "${ECHO_T}$STRIP" >&6
6919 else
6920 echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6
6922 fi
6923
6924 fi
6925 if test -z "$ac_cv_prog_STRIP"; then
6926 ac_ct_STRIP=$STRIP
6927 # Extract the first word of "strip", so it can be a program name with args.
6928 set dummy strip; ac_word=$2
6929 echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_STRIP="strip"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950
6951 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6952 fi
6953 fi
6954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955 if test -n "$ac_ct_STRIP"; then
6956 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6957 echo "${ECHO_T}$ac_ct_STRIP" >&6
6958 else
6959 echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6
6961 fi
6962
6963 STRIP=$ac_ct_STRIP
6964 else
6965 STRIP="$ac_cv_prog_STRIP"
6966 fi
6967
6968 fi
6969 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6970
6971 # We need awk for the "check" target. The system "awk" is bad on
6972 # some platforms.
6973 # Always define AMTAR for backward compatibility.
6974
6975 AMTAR=${AMTAR-"${am_missing_run}tar"}
6976
6977 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6978
6979
6980
6981
6982 depcc="$CC" am_compiler_list=
6983
6984 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6985 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6990 # We make a subdir and do the tests there. Otherwise we can end up
6991 # making bogus files that we don't know about and never remove. For
6992 # instance it was reported that on HP-UX the gcc test will end up
6993 # making a dummy file named `D' -- because `-MD' means `put the output
6994 # in D'.
6995 mkdir conftest.dir
6996 # Copy depcomp to subdir because otherwise we won't find it if we're
6997 # using a relative directory.
6998 cp "$am_depcomp" conftest.dir
6999 cd conftest.dir
7000 # We will build objects and dependencies in a subdirectory because
7001 # it helps to detect inapplicable dependency modes. For instance
7002 # both Tru64's cc and ICC support -MD to output dependencies as a
7003 # side effect of compilation, but ICC will put the dependencies in
7004 # the current directory while Tru64 will put them in the object
7005 # directory.
7006 mkdir sub
7007
7008 am_cv_CC_dependencies_compiler_type=none
7009 if test "$am_compiler_list" = ""; then
7010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7011 fi
7012 for depmode in $am_compiler_list; do
7013 # Setup a source with many dependencies, because some compilers
7014 # like to wrap large dependency lists on column 80 (with \), and
7015 # we should not choose a depcomp mode which is confused by this.
7016 #
7017 # We need to recreate these files for each test, as the compiler may
7018 # overwrite some of them when testing with obscure command lines.
7019 # This happens at least with the AIX C compiler.
7020 : > sub/conftest.c
7021 for i in 1 2 3 4 5 6; do
7022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7024 # Solaris 8's {/usr,}/bin/sh.
7025 touch sub/conftst$i.h
7026 done
7027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7028
7029 case $depmode in
7030 nosideeffect)
7031 # after this tag, mechanisms are not by side-effect, so they'll
7032 # only be used when explicitly requested
7033 if test "x$enable_dependency_tracking" = xyes; then
7034 continue
7035 else
7036 break
7037 fi
7038 ;;
7039 none) break ;;
7040 esac
7041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7042 # mode. It turns out that the SunPro C++ compiler does not properly
7043 # handle `-M -o', and we need to detect this.
7044 if depmode=$depmode \
7045 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7047 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7048 >/dev/null 2>conftest.err &&
7049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7050 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7052 # icc doesn't choke on unknown options, it will just issue warnings
7053 # or remarks (even with -Werror). So we grep stderr for any message
7054 # that says an option was ignored or not supported.
7055 # When given -MP, icc 7.0 and 7.1 complain thusly:
7056 # icc: Command line warning: ignoring option '-M'; no argument required
7057 # The diagnosis changed in icc 8.0:
7058 # icc: Command line remark: option '-MP' not supported
7059 if (grep 'ignoring option' conftest.err ||
7060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7061 am_cv_CC_dependencies_compiler_type=$depmode
7062 break
7063 fi
7064 fi
7065 done
7066
7067 cd ..
7068 rm -rf conftest.dir
7069 else
7070 am_cv_CC_dependencies_compiler_type=none
7071 fi
7072
7073 fi
7074 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7075 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7077
7078
7079
7080 if
7081 test "x$enable_dependency_tracking" != xno \
7082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7083 am__fastdepCC_TRUE=
7084 am__fastdepCC_FALSE='#'
7085 else
7086 am__fastdepCC_TRUE='#'
7087 am__fastdepCC_FALSE=
7088 fi
7089
7090
7091
7092
7093 debugdir=${libdir}/debug
7094
7095
7096 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7097 if test "${with_separate_debug_dir+set}" = set; then
7098 withval="$with_separate_debug_dir"
7099 debugdir="${withval}"
7100 fi;
7101
7102
7103 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7105 ac_define_dir=`eval echo $debugdir`
7106 ac_define_dir=`eval echo $ac_define_dir`
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define DEBUGDIR "$ac_define_dir"
7110 _ACEOF
7111
7112
7113 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7114
7115 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7116 if test "x$prefix" = xNONE; then
7117 test_prefix=/usr/local
7118 else
7119 test_prefix=$prefix
7120 fi
7121 else
7122 test_prefix=$exec_prefix
7123 fi
7124 case ${debugdir} in
7125 "${test_prefix}"|"${test_prefix}/"*|\
7126 '${exec_prefix}'|'${exec_prefix}/'*)
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define DEBUGDIR_RELOCATABLE 1
7130 _ACEOF
7131
7132 ;;
7133 esac
7134
7135
7136
7137 subdirs="$subdirs doc testsuite"
7138
7139
7140 # Check whether to support alternative target configurations
7141 # Check whether --enable-targets or --disable-targets was given.
7142 if test "${enable_targets+set}" = set; then
7143 enableval="$enable_targets"
7144 case "${enableval}" in
7145 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7146 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7147 { (exit 1); exit 1; }; }
7148 ;;
7149 no) enable_targets= ;;
7150 *) enable_targets=$enableval ;;
7151 esac
7152 fi;
7153
7154 # Check whether to enable 64-bit support on 32-bit hosts
7155 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7156 if test "${enable_64_bit_bfd+set}" = set; then
7157 enableval="$enable_64_bit_bfd"
7158 case "${enableval}" in
7159 yes) want64=true ;;
7160 no) want64=false ;;
7161 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7162 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7163 { (exit 1); exit 1; }; } ;;
7164 esac
7165 else
7166 want64=false
7167 fi;
7168 # Provide defaults for some variables set by the per-host and per-target
7169 # configuration.
7170 gdb_host_obs=posix-hdep.o
7171
7172 if test "${target}" = "${host}"; then
7173 gdb_native=yes
7174 else
7175 gdb_native=no
7176 fi
7177
7178 . $srcdir/configure.host
7179
7180 # Accumulate some settings from configure.tgt over all enabled targets
7181
7182 TARGET_OBS=
7183 all_targets=
7184
7185 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7186 do
7187 if test "$targ_alias" = "all"; then
7188 all_targets=true
7189 else
7190 # Canonicalize the secondary target names.
7191 result=`$ac_config_sub $targ_alias 2>/dev/null`
7192 if test -n "$result"; then
7193 targ=$result
7194 else
7195 targ=$targ_alias
7196 fi
7197
7198 . ${srcdir}/configure.tgt
7199
7200 # Target-specific object files
7201 for i in ${gdb_target_obs}; do
7202 case " $TARGET_OBS " in
7203 *" ${i} "*) ;;
7204 *)
7205 TARGET_OBS="$TARGET_OBS ${i}"
7206 ;;
7207 esac
7208 done
7209
7210 # Check whether this target needs 64-bit CORE_ADDR
7211 if test x${want64} = xfalse; then
7212 . ${srcdir}/../bfd/config.bfd
7213 fi
7214 fi
7215 done
7216
7217 if test x${all_targets} = xtrue; then
7218
7219 # We want all 64-bit targets if we either:
7220 # - run on a 64-bit host or
7221 # - already require 64-bit support for some other target or
7222 # - the --enable-64-bit-bfd option was supplied
7223 # Otherwise we only support all 32-bit targets.
7224 #
7225 # NOTE: This test must be in sync with the corresponding
7226 # tests in BFD!
7227
7228 if test x${want64} = xfalse; then
7229 echo "$as_me:$LINENO: checking for long" >&5
7230 echo $ECHO_N "checking for long... $ECHO_C" >&6
7231 if test "${ac_cv_type_long+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 int
7242 main ()
7243 {
7244 if ((long *) 0)
7245 return 0;
7246 if (sizeof (long))
7247 return 0;
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_cv_type_long=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 ac_cv_type_long=no
7280 fi
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7284 echo "${ECHO_T}$ac_cv_type_long" >&6
7285
7286 echo "$as_me:$LINENO: checking size of long" >&5
7287 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7288 if test "${ac_cv_sizeof_long+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 if test "$ac_cv_type_long" = yes; then
7292 # The cast to unsigned long works around a bug in the HP C Compiler
7293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7295 # This bug is HP SR number 8606223364.
7296 if test "$cross_compiling" = yes; then
7297 # Depending upon the size, compute the lo and hi bounds.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7305 int
7306 main ()
7307 {
7308 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7309 test_array [0] = 0
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -z "$ac_c_werror_flag"
7325 || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 ac_lo=0 ac_mid=0
7338 while :; do
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7346 int
7347 main ()
7348 {
7349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7350 test_array [0] = 0
7351
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_hi=$ac_mid; break
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_lo=`expr $ac_mid + 1`
7384 if test $ac_lo -le $ac_mid; then
7385 ac_lo= ac_hi=
7386 break
7387 fi
7388 ac_mid=`expr 2 '*' $ac_mid + 1`
7389 fi
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391 done
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 int
7404 main ()
7405 {
7406 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7407 test_array [0] = 0
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_hi=-1 ac_mid=-1
7436 while :; do
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7448 test_array [0] = 0
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_lo=$ac_mid; break
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_hi=`expr '(' $ac_mid ')' - 1`
7482 if test $ac_mid -le $ac_hi; then
7483 ac_lo= ac_hi=
7484 break
7485 fi
7486 ac_mid=`expr 2 '*' $ac_mid`
7487 fi
7488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7489 done
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_lo= ac_hi=
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 # Binary search between lo and hi bounds.
7500 while test "x$ac_lo" != "x$ac_hi"; do
7501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 int
7510 main ()
7511 {
7512 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7513 test_array [0] = 0
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_hi=$ac_mid
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_lo=`expr '(' $ac_mid ')' + 1`
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 done
7550 case $ac_lo in
7551 ?*) ac_cv_sizeof_long=$ac_lo;;
7552 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7555 See \`config.log' for more details." >&5
7556 echo "$as_me: error: cannot compute sizeof (long), 77
7557 See \`config.log' for more details." >&2;}
7558 { (exit 1); exit 1; }; }; } ;;
7559 esac
7560 else
7561 if test "$cross_compiling" = yes; then
7562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7565 See \`config.log' for more details." >&5
7566 echo "$as_me: error: cannot run test program while cross compiling
7567 See \`config.log' for more details." >&2;}
7568 { (exit 1); exit 1; }; }; }
7569 else
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 $ac_includes_default
7577 long longval () { return (long) (sizeof (long)); }
7578 unsigned long ulongval () { return (long) (sizeof (long)); }
7579 #include <stdio.h>
7580 #include <stdlib.h>
7581 int
7582 main ()
7583 {
7584
7585 FILE *f = fopen ("conftest.val", "w");
7586 if (! f)
7587 exit (1);
7588 if (((long) (sizeof (long))) < 0)
7589 {
7590 long i = longval ();
7591 if (i != ((long) (sizeof (long))))
7592 exit (1);
7593 fprintf (f, "%ld\n", i);
7594 }
7595 else
7596 {
7597 unsigned long i = ulongval ();
7598 if (i != ((long) (sizeof (long))))
7599 exit (1);
7600 fprintf (f, "%lu\n", i);
7601 }
7602 exit (ferror (f) || fclose (f) != 0);
7603
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_sizeof_long=`cat conftest.val`
7620 else
7621 echo "$as_me: program exited with status $ac_status" >&5
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ( exit $ac_status )
7626 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7627 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7629 See \`config.log' for more details." >&5
7630 echo "$as_me: error: cannot compute sizeof (long), 77
7631 See \`config.log' for more details." >&2;}
7632 { (exit 1); exit 1; }; }; }
7633 fi
7634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 fi
7637 rm -f conftest.val
7638 else
7639 ac_cv_sizeof_long=0
7640 fi
7641 fi
7642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7643 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7644 cat >>confdefs.h <<_ACEOF
7645 #define SIZEOF_LONG $ac_cv_sizeof_long
7646 _ACEOF
7647
7648
7649 if test "x${ac_cv_sizeof_long}" = "x8"; then
7650 want64=true
7651 fi
7652 fi
7653 if test x${want64} = xtrue; then
7654 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7655 else
7656 TARGET_OBS='$(ALL_TARGET_OBS)'
7657 fi
7658 fi
7659
7660
7661
7662 # For other settings, only the main target counts.
7663 gdb_sim=
7664 gdb_osabi=
7665 build_gdbserver=
7666 targ=$target; . ${srcdir}/configure.tgt
7667
7668 # Fetch the default architecture and default target vector from BFD.
7669 targ=$target; . $srcdir/../bfd/config.bfd
7670
7671 # We only want the first architecture, so strip off the others if
7672 # there is more than one.
7673 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7674
7675 if test "x$targ_archs" != x; then
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define DEFAULT_BFD_ARCH $targ_archs
7679 _ACEOF
7680
7681 fi
7682 if test "x$targ_defvec" != x; then
7683
7684 cat >>confdefs.h <<_ACEOF
7685 #define DEFAULT_BFD_VEC $targ_defvec
7686 _ACEOF
7687
7688 fi
7689
7690 # The CLI cannot be disabled yet, but may be in the future.
7691
7692 # Enable CLI.
7693 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7694 if test "${enable_gdbcli+set}" = set; then
7695 enableval="$enable_gdbcli"
7696 case $enableval in
7697 yes)
7698 ;;
7699 no)
7700 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7701 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7702 { (exit 1); exit 1; }; } ;;
7703 *)
7704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7705 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7706 { (exit 1); exit 1; }; } ;;
7707 esac
7708 else
7709 enable_gdbcli=yes
7710 fi;
7711 if test x"$enable_gdbcli" = xyes; then
7712 if test -d $srcdir/cli; then
7713 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7714 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7715 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7716 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7717 fi
7718 fi
7719
7720 # Enable MI.
7721 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7722 if test "${enable_gdbmi+set}" = set; then
7723 enableval="$enable_gdbmi"
7724 case $enableval in
7725 yes | no)
7726 ;;
7727 *)
7728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7729 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7730 { (exit 1); exit 1; }; } ;;
7731 esac
7732 else
7733 enable_gdbmi=yes
7734 fi;
7735 if test x"$enable_gdbmi" = xyes; then
7736 if test -d $srcdir/mi; then
7737 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7738 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7739 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7740 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7741 fi
7742 fi
7743
7744 # Enable TUI.
7745 # Check whether --enable-tui or --disable-tui was given.
7746 if test "${enable_tui+set}" = set; then
7747 enableval="$enable_tui"
7748 case $enableval in
7749 yes | no | auto)
7750 ;;
7751 *)
7752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7753 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7754 { (exit 1); exit 1; }; } ;;
7755 esac
7756 else
7757 enable_tui=auto
7758 fi;
7759
7760 # Enable gdbtk.
7761 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7762 if test "${enable_gdbtk+set}" = set; then
7763 enableval="$enable_gdbtk"
7764 case $enableval in
7765 yes | no)
7766 ;;
7767 *)
7768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7769 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7770 { (exit 1); exit 1; }; } ;;
7771 esac
7772 else
7773 if test -d $srcdir/gdbtk; then
7774 enable_gdbtk=yes
7775 else
7776 enable_gdbtk=no
7777 fi
7778 fi;
7779 # We unconditionally disable gdbtk tests on selected platforms.
7780 case $host_os in
7781 go32* | windows*)
7782 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7783 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7784 enable_gdbtk=no ;;
7785 esac
7786
7787 # Libunwind support.
7788
7789 # Check whether --with-libunwind or --without-libunwind was given.
7790 if test "${with_libunwind+set}" = set; then
7791 withval="$with_libunwind"
7792 case "${withval}" in
7793 yes) enable_libunwind=yes ;;
7794 no) enable_libunwind=no ;;
7795 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7796 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7797 { (exit 1); exit 1; }; } ;;
7798 esac
7799 else
7800
7801
7802
7803 for ac_header in libunwind.h libunwind-ia64.h
7804 do
7805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 fi
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814 else
7815 # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #include <$ac_header>
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_header_compiler=yes
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_header_compiler=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858 echo "${ECHO_T}$ac_header_compiler" >&6
7859
7860 # Is the header present?
7861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 #include <$ac_header>
7870 _ACEOF
7871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } >/dev/null; then
7879 if test -s conftest.err; then
7880 ac_cpp_err=$ac_c_preproc_warn_flag
7881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7882 else
7883 ac_cpp_err=
7884 fi
7885 else
7886 ac_cpp_err=yes
7887 fi
7888 if test -z "$ac_cpp_err"; then
7889 ac_header_preproc=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_header_preproc=no
7895 fi
7896 rm -f conftest.err conftest.$ac_ext
7897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7898 echo "${ECHO_T}$ac_header_preproc" >&6
7899
7900 # So? What about this header?
7901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7902 yes:no: )
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7907 ac_header_preproc=yes
7908 ;;
7909 no:yes:* )
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7922 (
7923 cat <<\_ASBOX
7924 ## ------------------------------------------ ##
7925 ## Report this to the AC_PACKAGE_NAME lists. ##
7926 ## ------------------------------------------ ##
7927 _ASBOX
7928 ) |
7929 sed "s/^/$as_me: WARNING: /" >&2
7930 ;;
7931 esac
7932 echo "$as_me:$LINENO: checking for $ac_header" >&5
7933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 eval "$as_ac_Header=\$ac_header_preproc"
7938 fi
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941
7942 fi
7943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 _ACEOF
7947
7948 fi
7949
7950 done
7951
7952 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7953 enable_libunwind=yes;
7954 fi
7955
7956 fi;
7957
7958 if test x"$enable_libunwind" = xyes; then
7959
7960
7961 for ac_header in libunwind.h libunwind-ia64.h
7962 do
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 fi
7970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972 else
7973 # Is the header compilable?
7974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #include <$ac_header>
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_header_compiler=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 ac_header_compiler=no
8013 fi
8014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8016 echo "${ECHO_T}$ac_header_compiler" >&6
8017
8018 # Is the header present?
8019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <$ac_header>
8028 _ACEOF
8029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } >/dev/null; then
8037 if test -s conftest.err; then
8038 ac_cpp_err=$ac_c_preproc_warn_flag
8039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8040 else
8041 ac_cpp_err=
8042 fi
8043 else
8044 ac_cpp_err=yes
8045 fi
8046 if test -z "$ac_cpp_err"; then
8047 ac_header_preproc=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_header_preproc=no
8053 fi
8054 rm -f conftest.err conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8057
8058 # So? What about this header?
8059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8060 yes:no: )
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8065 ac_header_preproc=yes
8066 ;;
8067 no:yes:* )
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8080 (
8081 cat <<\_ASBOX
8082 ## ------------------------------------------ ##
8083 ## Report this to the AC_PACKAGE_NAME lists. ##
8084 ## ------------------------------------------ ##
8085 _ASBOX
8086 ) |
8087 sed "s/^/$as_me: WARNING: /" >&2
8088 ;;
8089 esac
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 eval "$as_ac_Header=\$ac_header_preproc"
8096 fi
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8099
8100 fi
8101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 _ACEOF
8105
8106 fi
8107
8108 done
8109
8110
8111 cat >>confdefs.h <<\_ACEOF
8112 #define HAVE_LIBUNWIND 1
8113 _ACEOF
8114
8115 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8116 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8117 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8118 fi
8119
8120 opt_curses=no
8121
8122 # Check whether --with-curses or --without-curses was given.
8123 if test "${with_curses+set}" = set; then
8124 withval="$with_curses"
8125 opt_curses=$withval
8126 fi;
8127
8128 prefer_curses=no
8129 if test "$opt_curses" = "yes"; then
8130 prefer_curses=yes
8131 fi
8132
8133 # Profiling support.
8134 # Check whether --enable-profiling or --disable-profiling was given.
8135 if test "${enable_profiling+set}" = set; then
8136 enableval="$enable_profiling"
8137 case $enableval in
8138 yes | no)
8139 ;;
8140 *)
8141 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8142 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8143 { (exit 1); exit 1; }; } ;;
8144 esac
8145 else
8146 enable_profiling=no
8147 fi;
8148
8149
8150
8151 for ac_func in monstartup _mcleanup
8152 do
8153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8154 echo "$as_me:$LINENO: checking for $ac_func" >&5
8155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8156 if eval "test \"\${$as_ac_var+set}\" = set"; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8167 #define $ac_func innocuous_$ac_func
8168
8169 /* System header to define __stub macros and hopefully few prototypes,
8170 which can conflict with char $ac_func (); below.
8171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8172 <limits.h> exists even on freestanding compilers. */
8173
8174 #ifdef __STDC__
8175 # include <limits.h>
8176 #else
8177 # include <assert.h>
8178 #endif
8179
8180 #undef $ac_func
8181
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 #ifdef __cplusplus
8184 extern "C"
8185 {
8186 #endif
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8189 char $ac_func ();
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8194 choke me
8195 #else
8196 char (*f) () = $ac_func;
8197 #endif
8198 #ifdef __cplusplus
8199 }
8200 #endif
8201
8202 int
8203 main ()
8204 {
8205 return f != $ac_func;
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest$ac_exeext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 eval "$as_ac_var=yes"
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 eval "$as_ac_var=no"
8238 fi
8239 rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 fi
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8244 if test `eval echo '${'$as_ac_var'}'` = yes; then
8245 cat >>confdefs.h <<_ACEOF
8246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8247 _ACEOF
8248
8249 fi
8250 done
8251
8252 echo "$as_me:$LINENO: checking for _etext" >&5
8253 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8254 if test "${ac_cv_var__etext+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 #include <stdlib.h>
8264 extern char _etext;
8265
8266 int
8267 main ()
8268 {
8269 free (&_etext);
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_var__etext=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_var__etext=no
8302 fi
8303 rm -f conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 fi
8306 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8307 echo "${ECHO_T}$ac_cv_var__etext" >&6
8308 if test $ac_cv_var__etext = yes; then
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE__ETEXT 1
8312 _ACEOF
8313
8314 fi
8315 echo "$as_me:$LINENO: checking for etext" >&5
8316 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8317 if test "${ac_cv_var_etext+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <stdlib.h>
8327 extern char etext;
8328
8329 int
8330 main ()
8331 {
8332 free (&etext);
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 ac_cv_var_etext=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_var_etext=no
8365 fi
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8370 echo "${ECHO_T}$ac_cv_var_etext" >&6
8371 if test $ac_cv_var_etext = yes; then
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_ETEXT 1
8375 _ACEOF
8376
8377 fi
8378 if test "$enable_profiling" = yes ; then
8379 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8380 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8381 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8382 { (exit 1); exit 1; }; }
8383 fi
8384 PROFILE_CFLAGS=-pg
8385 OLD_CFLAGS="$CFLAGS"
8386 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8387
8388 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8389 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8390 if test "${ac_cv_cc_supports_pg+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h. */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399
8400 int
8401 main ()
8402 {
8403 int x;
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_cc_supports_pg=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_cc_supports_pg=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8440 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8441
8442 if test $ac_cv_cc_supports_pg = no; then
8443 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8444 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8445 { (exit 1); exit 1; }; }
8446 fi
8447
8448 CFLAGS="$OLD_CFLAGS"
8449 fi
8450
8451
8452
8453 # Check whether --with-pkgversion or --without-pkgversion was given.
8454 if test "${with_pkgversion+set}" = set; then
8455 withval="$with_pkgversion"
8456 case "$withval" in
8457 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8458 echo "$as_me: error: package version not specified" >&2;}
8459 { (exit 1); exit 1; }; } ;;
8460 no) PKGVERSION= ;;
8461 *) PKGVERSION="($withval) " ;;
8462 esac
8463 else
8464 PKGVERSION="(GDB) "
8465
8466 fi;
8467
8468
8469
8470
8471 # Check whether --with-bugurl or --without-bugurl was given.
8472 if test "${with_bugurl+set}" = set; then
8473 withval="$with_bugurl"
8474 case "$withval" in
8475 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8476 echo "$as_me: error: bug URL not specified" >&2;}
8477 { (exit 1); exit 1; }; } ;;
8478 no) BUGURL=
8479 ;;
8480 *) BUGURL="$withval"
8481 ;;
8482 esac
8483 else
8484 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8485
8486 fi;
8487 case ${BUGURL} in
8488 "")
8489 REPORT_BUGS_TO=
8490 REPORT_BUGS_TEXI=
8491 ;;
8492 *)
8493 REPORT_BUGS_TO="<$BUGURL>"
8494 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8495 ;;
8496 esac;
8497
8498
8499
8500
8501 cat >>confdefs.h <<_ACEOF
8502 #define PKGVERSION "$PKGVERSION"
8503 _ACEOF
8504
8505
8506 cat >>confdefs.h <<_ACEOF
8507 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8508 _ACEOF
8509
8510
8511 # --------------------- #
8512 # Checks for programs. #
8513 # --------------------- #
8514
8515 for ac_prog in gawk mawk nawk awk
8516 do
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518 set dummy $ac_prog; ac_word=$2
8519 echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521 if test "${ac_cv_prog_AWK+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 if test -n "$AWK"; then
8525 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_AWK="$ac_prog"
8535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538 done
8539 done
8540
8541 fi
8542 fi
8543 AWK=$ac_cv_prog_AWK
8544 if test -n "$AWK"; then
8545 echo "$as_me:$LINENO: result: $AWK" >&5
8546 echo "${ECHO_T}$AWK" >&6
8547 else
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550 fi
8551
8552 test -n "$AWK" && break
8553 done
8554
8555 # Find a good install program. We prefer a C program (faster),
8556 # so one script is as good as another. But avoid the broken or
8557 # incompatible versions:
8558 # SysV /etc/install, /usr/sbin/install
8559 # SunOS /usr/etc/install
8560 # IRIX /sbin/install
8561 # AIX /bin/install
8562 # AmigaOS /C/install, which installs bootblocks on floppy discs
8563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8566 # OS/2's system install, which has a completely different semantic
8567 # ./install, which can be erroneously created by make from ./install.sh.
8568 # Reject install programs that cannot install multiple files.
8569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8571 if test -z "$INSTALL"; then
8572 if test "${ac_cv_path_install+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 # Account for people who put trailing slashes in PATH elements.
8581 case $as_dir/ in
8582 ./ | .// | /cC/* | \
8583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8585 /usr/ucb/* ) ;;
8586 *)
8587 # OSF1 and SCO ODT 3.0 have their own names for install.
8588 # Don't use installbsd from OSF since it installs stuff as root
8589 # by default.
8590 for ac_prog in ginstall scoinst install; do
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8593 if test $ac_prog = install &&
8594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8595 # AIX install. It has an incompatible calling convention.
8596 :
8597 elif test $ac_prog = install &&
8598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8599 # program-specific install script used by HP pwplus--don't use.
8600 :
8601 else
8602 rm -rf conftest.one conftest.two conftest.dir
8603 echo one > conftest.one
8604 echo two > conftest.two
8605 mkdir conftest.dir
8606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8607 test -s conftest.one && test -s conftest.two &&
8608 test -s conftest.dir/conftest.one &&
8609 test -s conftest.dir/conftest.two
8610 then
8611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8612 break 3
8613 fi
8614 fi
8615 fi
8616 done
8617 done
8618 ;;
8619 esac
8620 done
8621
8622 rm -rf conftest.one conftest.two conftest.dir
8623
8624 fi
8625 if test "${ac_cv_path_install+set}" = set; then
8626 INSTALL=$ac_cv_path_install
8627 else
8628 # As a last resort, use the slow shell script. Don't cache a
8629 # value for INSTALL within a source directory, because that will
8630 # break other packages using the cache if that directory is
8631 # removed, or if the value is a relative name.
8632 INSTALL=$ac_install_sh
8633 fi
8634 fi
8635 echo "$as_me:$LINENO: result: $INSTALL" >&5
8636 echo "${ECHO_T}$INSTALL" >&6
8637
8638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8639 # It thinks the first close brace ends the variable substitution.
8640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8641
8642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8643
8644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8645
8646 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8648 LN_S=$as_ln_s
8649 if test "$LN_S" = "ln -s"; then
8650 echo "$as_me:$LINENO: result: yes" >&5
8651 echo "${ECHO_T}yes" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8654 echo "${ECHO_T}no, using $LN_S" >&6
8655 fi
8656
8657 if test -n "$ac_tool_prefix"; then
8658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_prog_RANLIB+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 if test -n "$RANLIB"; then
8666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8667 else
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8670 do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679 done
8680 done
8681
8682 fi
8683 fi
8684 RANLIB=$ac_cv_prog_RANLIB
8685 if test -n "$RANLIB"; then
8686 echo "$as_me:$LINENO: result: $RANLIB" >&5
8687 echo "${ECHO_T}$RANLIB" >&6
8688 else
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691 fi
8692
8693 fi
8694 if test -z "$ac_cv_prog_RANLIB"; then
8695 ac_ct_RANLIB=$RANLIB
8696 # Extract the first word of "ranlib", so it can be a program name with args.
8697 set dummy ranlib; ac_word=$2
8698 echo "$as_me:$LINENO: checking for $ac_word" >&5
8699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 if test -n "$ac_ct_RANLIB"; then
8704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_ac_ct_RANLIB="ranlib"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717 done
8718 done
8719
8720 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8721 fi
8722 fi
8723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8724 if test -n "$ac_ct_RANLIB"; then
8725 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8726 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729 echo "${ECHO_T}no" >&6
8730 fi
8731
8732 RANLIB=$ac_ct_RANLIB
8733 else
8734 RANLIB="$ac_cv_prog_RANLIB"
8735 fi
8736
8737 for ac_prog in 'bison -y' byacc
8738 do
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 echo "$as_me:$LINENO: checking for $ac_word" >&5
8742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8743 if test "${ac_cv_prog_YACC+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 if test -n "$YACC"; then
8747 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8748 else
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8751 do
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_YACC="$ac_prog"
8757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8759 fi
8760 done
8761 done
8762
8763 fi
8764 fi
8765 YACC=$ac_cv_prog_YACC
8766 if test -n "$YACC"; then
8767 echo "$as_me:$LINENO: result: $YACC" >&5
8768 echo "${ECHO_T}$YACC" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8772 fi
8773
8774 test -n "$YACC" && break
8775 done
8776 test -n "$YACC" || YACC="yacc"
8777
8778
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8781 set dummy ${ac_tool_prefix}ar; ac_word=$2
8782 echo "$as_me:$LINENO: checking for $ac_word" >&5
8783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8784 if test "${ac_cv_prog_AR+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 if test -n "$AR"; then
8788 ac_cv_prog_AR="$AR" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_AR="${ac_tool_prefix}ar"
8798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8800 fi
8801 done
8802 done
8803
8804 fi
8805 fi
8806 AR=$ac_cv_prog_AR
8807 if test -n "$AR"; then
8808 echo "$as_me:$LINENO: result: $AR" >&5
8809 echo "${ECHO_T}$AR" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8813 fi
8814
8815 fi
8816 if test -z "$ac_cv_prog_AR"; then
8817 ac_ct_AR=$AR
8818 # Extract the first word of "ar", so it can be a program name with args.
8819 set dummy ar; ac_word=$2
8820 echo "$as_me:$LINENO: checking for $ac_word" >&5
8821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8822 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 if test -n "$ac_ct_AR"; then
8826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_AR="ar"
8836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8838 fi
8839 done
8840 done
8841
8842 fi
8843 fi
8844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8845 if test -n "$ac_ct_AR"; then
8846 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8847 echo "${ECHO_T}$ac_ct_AR" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8851 fi
8852
8853 AR=$ac_ct_AR
8854 else
8855 AR="$ac_cv_prog_AR"
8856 fi
8857
8858 if test -n "$ac_tool_prefix"; then
8859 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8860 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882
8883 fi
8884 fi
8885 DLLTOOL=$ac_cv_prog_DLLTOOL
8886 if test -n "$DLLTOOL"; then
8887 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8888 echo "${ECHO_T}$DLLTOOL" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8892 fi
8893
8894 fi
8895 if test -z "$ac_cv_prog_DLLTOOL"; then
8896 ac_ct_DLLTOOL=$DLLTOOL
8897 # Extract the first word of "dlltool", so it can be a program name with args.
8898 set dummy dlltool; ac_word=$2
8899 echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904 if test -n "$ac_ct_DLLTOOL"; then
8905 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8906 else
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8909 do
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8917 fi
8918 done
8919 done
8920
8921 fi
8922 fi
8923 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8924 if test -n "$ac_ct_DLLTOOL"; then
8925 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8926 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8927 else
8928 echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6
8930 fi
8931
8932 DLLTOOL=$ac_ct_DLLTOOL
8933 else
8934 DLLTOOL="$ac_cv_prog_DLLTOOL"
8935 fi
8936
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}windres; ac_word=$2
8940 echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8942 if test "${ac_cv_prog_WINDRES+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 if test -n "$WINDRES"; then
8946 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961
8962 fi
8963 fi
8964 WINDRES=$ac_cv_prog_WINDRES
8965 if test -n "$WINDRES"; then
8966 echo "$as_me:$LINENO: result: $WINDRES" >&5
8967 echo "${ECHO_T}$WINDRES" >&6
8968 else
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8971 fi
8972
8973 fi
8974 if test -z "$ac_cv_prog_WINDRES"; then
8975 ac_ct_WINDRES=$WINDRES
8976 # Extract the first word of "windres", so it can be a program name with args.
8977 set dummy windres; ac_word=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 if test -n "$ac_ct_WINDRES"; then
8984 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_WINDRES="windres"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997 done
8998 done
8999
9000 fi
9001 fi
9002 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9003 if test -n "$ac_ct_WINDRES"; then
9004 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9005 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9006 else
9007 echo "$as_me:$LINENO: result: no" >&5
9008 echo "${ECHO_T}no" >&6
9009 fi
9010
9011 WINDRES=$ac_ct_WINDRES
9012 else
9013 WINDRES="$ac_cv_prog_WINDRES"
9014 fi
9015
9016
9017 # Needed for GNU/Hurd.
9018 if test -n "$ac_tool_prefix"; then
9019 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9020 set dummy ${ac_tool_prefix}mig; ac_word=$2
9021 echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023 if test "${ac_cv_prog_MIG+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 if test -n "$MIG"; then
9027 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040 done
9041 done
9042
9043 fi
9044 fi
9045 MIG=$ac_cv_prog_MIG
9046 if test -n "$MIG"; then
9047 echo "$as_me:$LINENO: result: $MIG" >&5
9048 echo "${ECHO_T}$MIG" >&6
9049 else
9050 echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6
9052 fi
9053
9054 fi
9055 if test -z "$ac_cv_prog_MIG"; then
9056 ac_ct_MIG=$MIG
9057 # Extract the first word of "mig", so it can be a program name with args.
9058 set dummy mig; ac_word=$2
9059 echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test -n "$ac_ct_MIG"; then
9065 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9066 else
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9069 do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_ac_ct_MIG="mig"
9075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9077 fi
9078 done
9079 done
9080
9081 fi
9082 fi
9083 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9084 if test -n "$ac_ct_MIG"; then
9085 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9086 echo "${ECHO_T}$ac_ct_MIG" >&6
9087 else
9088 echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6
9090 fi
9091
9092 MIG=$ac_ct_MIG
9093 else
9094 MIG="$ac_cv_prog_MIG"
9095 fi
9096
9097
9098 # ---------------------- #
9099 # Checks for libraries. #
9100 # ---------------------- #
9101
9102 # We might need to link with -lm; most simulators need it.
9103
9104 echo "$as_me:$LINENO: checking for main in -lm" >&5
9105 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9106 if test "${ac_cv_lib_m_main+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 ac_check_lib_save_LIBS=$LIBS
9110 LIBS="-lm $LIBS"
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117
9118
9119 int
9120 main ()
9121 {
9122 main ();
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -z "$ac_c_werror_flag"
9137 || test ! -s conftest.err'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_m_main=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_cv_lib_m_main=no
9155 fi
9156 rm -f conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9158 LIBS=$ac_check_lib_save_LIBS
9159 fi
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9161 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9162 if test $ac_cv_lib_m_main = yes; then
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_LIBM 1
9165 _ACEOF
9166
9167 LIBS="-lm $LIBS"
9168
9169 fi
9170
9171
9172 # We need to link with -lw to get `wctype' on Solaris before Solaris
9173 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9174 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9175 # is known to have this problem). Therefore we avoid libw if we can.
9176 echo "$as_me:$LINENO: checking for wctype" >&5
9177 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9178 if test "${ac_cv_func_wctype+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9189 #define wctype innocuous_wctype
9190
9191 /* System header to define __stub macros and hopefully few prototypes,
9192 which can conflict with char wctype (); below.
9193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9194 <limits.h> exists even on freestanding compilers. */
9195
9196 #ifdef __STDC__
9197 # include <limits.h>
9198 #else
9199 # include <assert.h>
9200 #endif
9201
9202 #undef wctype
9203
9204 /* Override any gcc2 internal prototype to avoid an error. */
9205 #ifdef __cplusplus
9206 extern "C"
9207 {
9208 #endif
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211 char wctype ();
9212 /* The GNU C library defines this for functions which it implements
9213 to always fail with ENOSYS. Some functions are actually named
9214 something starting with __ and the normal name is an alias. */
9215 #if defined (__stub_wctype) || defined (__stub___wctype)
9216 choke me
9217 #else
9218 char (*f) () = wctype;
9219 #endif
9220 #ifdef __cplusplus
9221 }
9222 #endif
9223
9224 int
9225 main ()
9226 {
9227 return f != wctype;
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_func_wctype=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_cv_func_wctype=no
9260 fi
9261 rm -f conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 fi
9264 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9265 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9266 if test $ac_cv_func_wctype = yes; then
9267 :
9268 else
9269
9270 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9271 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9272 if test "${ac_cv_lib_w_wctype+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 ac_check_lib_save_LIBS=$LIBS
9276 LIBS="-lw $LIBS"
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 /* We use char because int might match the return type of a gcc2
9289 builtin and then its argument prototype would still apply. */
9290 char wctype ();
9291 int
9292 main ()
9293 {
9294 wctype ();
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_lib_w_wctype=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_cv_lib_w_wctype=no
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 LIBS=$ac_check_lib_save_LIBS
9331 fi
9332 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9333 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9334 if test $ac_cv_lib_w_wctype = yes; then
9335 cat >>confdefs.h <<_ACEOF
9336 #define HAVE_LIBW 1
9337 _ACEOF
9338
9339 LIBS="-lw $LIBS"
9340
9341 fi
9342
9343 fi
9344
9345
9346 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9347 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9348 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9349 if test "${ac_cv_search_gethostbyname+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 ac_func_search_save_LIBS=$LIBS
9353 ac_cv_search_gethostbyname=no
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360
9361 /* Override any gcc2 internal prototype to avoid an error. */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367 char gethostbyname ();
9368 int
9369 main ()
9370 {
9371 gethostbyname ();
9372 ;
9373 return 0;
9374 }
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 ac_cv_search_gethostbyname="none required"
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 fi
9404 rm -f conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 if test "$ac_cv_search_gethostbyname" = no; then
9407 for ac_lib in nsl; do
9408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char gethostbyname ();
9423 int
9424 main ()
9425 {
9426 gethostbyname ();
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_search_gethostbyname="-l$ac_lib"
9454 break
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 fi
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 done
9463 fi
9464 LIBS=$ac_func_search_save_LIBS
9465 fi
9466 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9467 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9468 if test "$ac_cv_search_gethostbyname" != no; then
9469 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9470
9471 fi
9472
9473
9474 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9475 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9476 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9477 if test "${ac_cv_search_socketpair+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 ac_func_search_save_LIBS=$LIBS
9481 ac_cv_search_socketpair=no
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488
9489 /* Override any gcc2 internal prototype to avoid an error. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char socketpair ();
9496 int
9497 main ()
9498 {
9499 socketpair ();
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_search_socketpair="none required"
9527 else
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 fi
9532 rm -f conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 if test "$ac_cv_search_socketpair" = no; then
9535 for ac_lib in socket; do
9536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543
9544 /* Override any gcc2 internal prototype to avoid an error. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550 char socketpair ();
9551 int
9552 main ()
9553 {
9554 socketpair ();
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_search_socketpair="-l$ac_lib"
9582 break
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 fi
9588 rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 done
9591 fi
9592 LIBS=$ac_func_search_save_LIBS
9593 fi
9594 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9595 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9596 if test "$ac_cv_search_socketpair" != no; then
9597 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9598
9599 fi
9600
9601
9602 # Link in zlib if we can. This allows us to read compressed debug sections.
9603 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9604 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9605 if test "${ac_cv_search_zlibVersion+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608 ac_func_search_save_LIBS=$LIBS
9609 ac_cv_search_zlibVersion=no
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616
9617 /* Override any gcc2 internal prototype to avoid an error. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 /* We use char because int might match the return type of a gcc2
9622 builtin and then its argument prototype would still apply. */
9623 char zlibVersion ();
9624 int
9625 main ()
9626 {
9627 zlibVersion ();
9628 ;
9629 return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -z "$ac_c_werror_flag"
9642 || test ! -s conftest.err'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest$ac_exeext'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_cv_search_zlibVersion="none required"
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659 fi
9660 rm -f conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 if test "$ac_cv_search_zlibVersion" = no; then
9663 for ac_lib in z; do
9664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671
9672 /* Override any gcc2 internal prototype to avoid an error. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char zlibVersion ();
9679 int
9680 main ()
9681 {
9682 zlibVersion ();
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_search_zlibVersion="-l$ac_lib"
9710 break
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 fi
9716 rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 done
9719 fi
9720 LIBS=$ac_func_search_save_LIBS
9721 fi
9722 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9723 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9724 if test "$ac_cv_search_zlibVersion" != no; then
9725 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9726
9727 for ac_header in zlib.h
9728 do
9729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9731 echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 fi
9736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9738 else
9739 # Is the header compilable?
9740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9749 #include <$ac_header>
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_header_compiler=yes
9774 else
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_compiler=no
9779 fi
9780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 echo "${ECHO_T}$ac_header_compiler" >&6
9783
9784 # Is the header present?
9785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <$ac_header>
9794 _ACEOF
9795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } >/dev/null; then
9803 if test -s conftest.err; then
9804 ac_cpp_err=$ac_c_preproc_warn_flag
9805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9806 else
9807 ac_cpp_err=
9808 fi
9809 else
9810 ac_cpp_err=yes
9811 fi
9812 if test -z "$ac_cpp_err"; then
9813 ac_header_preproc=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_header_preproc=no
9819 fi
9820 rm -f conftest.err conftest.$ac_ext
9821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9822 echo "${ECHO_T}$ac_header_preproc" >&6
9823
9824 # So? What about this header?
9825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9826 yes:no: )
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9831 ac_header_preproc=yes
9832 ;;
9833 no:yes:* )
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9846 (
9847 cat <<\_ASBOX
9848 ## ------------------------------------------ ##
9849 ## Report this to the AC_PACKAGE_NAME lists. ##
9850 ## ------------------------------------------ ##
9851 _ASBOX
9852 ) |
9853 sed "s/^/$as_me: WARNING: /" >&2
9854 ;;
9855 esac
9856 echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 eval "$as_ac_Header=\$ac_header_preproc"
9862 fi
9863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9865
9866 fi
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h <<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 _ACEOF
9871
9872 fi
9873
9874 done
9875
9876 fi
9877
9878
9879 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9880 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9881 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9882 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 ac_func_search_save_LIBS=$LIBS
9886 ac_cv_search_dlgetmodinfo=no
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893
9894 /* Override any gcc2 internal prototype to avoid an error. */
9895 #ifdef __cplusplus
9896 extern "C"
9897 #endif
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900 char dlgetmodinfo ();
9901 int
9902 main ()
9903 {
9904 dlgetmodinfo ();
9905 ;
9906 return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag"
9919 || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_dlgetmodinfo="none required"
9932 else
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 fi
9937 rm -f conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 if test "$ac_cv_search_dlgetmodinfo" = no; then
9940 for ac_lib in dl xpdl; do
9941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948
9949 /* Override any gcc2 internal prototype to avoid an error. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9955 char dlgetmodinfo ();
9956 int
9957 main ()
9958 {
9959 dlgetmodinfo ();
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9987 break
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 fi
9993 rm -f conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 done
9996 fi
9997 LIBS=$ac_func_search_save_LIBS
9998 fi
9999 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10000 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10001 if test "$ac_cv_search_dlgetmodinfo" != no; then
10002 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10003
10004 fi
10005
10006
10007
10008
10009
10010 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10011 if test "${with_libiconv_prefix+set}" = set; then
10012 withval="$with_libiconv_prefix"
10013
10014 for dir in `echo "$withval" | tr : ' '`; do
10015 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10016 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10017 done
10018
10019 fi;
10020
10021 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10022 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10023
10024 echo "$as_me:$LINENO: checking for iconv" >&5
10025 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10026 if test "${am_cv_func_iconv+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029
10030 am_cv_func_iconv="no, consider installing GNU libiconv"
10031 am_cv_lib_iconv=no
10032 am_cv_use_build_libiconv=no
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 #include <stdlib.h>
10040 #include <iconv.h>
10041 int
10042 main ()
10043 {
10044 iconv_t cd = iconv_open("","");
10045 iconv(cd,NULL,NULL,NULL,NULL);
10046 iconv_close(cd);
10047 ;
10048 return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 am_cv_func_iconv=yes
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 fi
10079 rm -f conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 if test "$am_cv_func_iconv" != yes; then
10082 am_save_LIBS="$LIBS"
10083 LIBS="$LIBS -liconv"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 #include <stdlib.h>
10091 #include <iconv.h>
10092 int
10093 main ()
10094 {
10095 iconv_t cd = iconv_open("","");
10096 iconv(cd,NULL,NULL,NULL,NULL);
10097 iconv_close(cd);
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag"
10112 || test ! -s conftest.err'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 am_cv_lib_iconv=yes
10125 am_cv_func_iconv=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130 fi
10131 rm -f conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS="$am_save_LIBS"
10134 fi
10135 # Look for libiconv in the build tree.
10136 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10137 am_save_LIBS="$LIBS"
10138 am_save_CPPFLAGS="$CPPFLAGS"
10139 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10140 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h. */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <stdlib.h>
10148 #include <iconv.h>
10149 int
10150 main ()
10151 {
10152 iconv_t cd = iconv_open("","");
10153 iconv(cd,NULL,NULL,NULL,NULL);
10154 iconv_close(cd);
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -z "$ac_c_werror_flag"
10169 || test ! -s conftest.err'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; } &&
10175 { ac_try='test -s conftest$ac_exeext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 am_cv_lib_iconv=yes
10182 am_cv_func_iconv=yes
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 fi
10188 rm -f conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LIBS="$am_save_LIBS"
10191 CPPFLAGS="$am_save_CPPFLAGS"
10192 fi
10193
10194 fi
10195 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10196 echo "${ECHO_T}$am_cv_func_iconv" >&6
10197 LIBICONV=
10198 if test "$am_cv_lib_iconv" = yes; then
10199 LIBICONV="-liconv"
10200 fi
10201 if test "$am_cv_use_build_libiconv" = yes; then
10202 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10203 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10204 fi
10205 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10206 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10207 if test "$am_cv_func_iconv" = yes; then
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_ICONV 1
10211 _ACEOF
10212
10213 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10214 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10215 if test "${am_cv_proto_iconv+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225
10226 #include <stdlib.h>
10227 #include <iconv.h>
10228 extern
10229 #ifdef __cplusplus
10230 "C"
10231 #endif
10232 #if defined(__STDC__) || defined(__cplusplus)
10233 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10234 #else
10235 size_t iconv();
10236 #endif
10237
10238 int
10239 main ()
10240 {
10241
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248 (eval $ac_compile) 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_c_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest.$ac_objext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 am_cv_proto_iconv_arg1=""
10269 else
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 am_cv_proto_iconv_arg1="const"
10274 fi
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 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);"
10277 fi
10278
10279 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10280 echo "$as_me:$LINENO: result: ${ac_t:-
10281 }$am_cv_proto_iconv" >&5
10282 echo "${ECHO_T}${ac_t:-
10283 }$am_cv_proto_iconv" >&6
10284
10285 cat >>confdefs.h <<_ACEOF
10286 #define ICONV_CONST $am_cv_proto_iconv_arg1
10287 _ACEOF
10288
10289 fi
10290
10291
10292 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10293 # There is a very specific comment in /usr/include/curses.h explaining that
10294 # termcap routines built into libcurses must not be used.
10295 #
10296 # The symptoms we observed so far is GDB unexpectedly changing
10297 # the terminal settings when tgetent is called - this is particularly
10298 # visible as the output is missing carriage returns, and so rapidly
10299 # becomes very hard to read.
10300 #
10301 # The readline configure script has already decided that libtermcap
10302 # was enough for its purposes, and so decided to build readline using
10303 # libtermcap. Since the TUI mode requires curses, building GDB with
10304 # TUI enabled results in both libraries to be used at the same time,
10305 # which is not allowed. This basically means that GDB with TUI is
10306 # broken on alpha-osf.
10307
10308 case $host_os in
10309 alpha*-*-osf* )
10310 if "$enable_tui" = "yes"; then
10311 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10312 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10313 { (exit 1); exit 1; }; }
10314 fi
10315 if "$enable_tui" = "auto"; then
10316 enable_tui=no
10317 fi
10318 ;;
10319 esac
10320
10321 # For the TUI, we need enhanced curses functionality.
10322 if test x"$enable_tui" != xno; then
10323 prefer_curses=yes
10324 fi
10325
10326 curses_found=no
10327 if test x"$prefer_curses" = xyes; then
10328 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10329 # curses library because the latter might not provide all the
10330 # functionality we need. However, this leads to problems on systems
10331 # where the linker searches /usr/local/lib, but the compiler doesn't
10332 # search /usr/local/include, if ncurses is installed in /usr/local. A
10333 # default installation of ncurses on alpha*-dec-osf* will lead to such
10334 # a situation.
10335 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10336 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10337 if test "${ac_cv_search_waddstr+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 ac_func_search_save_LIBS=$LIBS
10341 ac_cv_search_waddstr=no
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348
10349 /* Override any gcc2 internal prototype to avoid an error. */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 /* We use char because int might match the return type of a gcc2
10354 builtin and then its argument prototype would still apply. */
10355 char waddstr ();
10356 int
10357 main ()
10358 {
10359 waddstr ();
10360 ;
10361 return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_search_waddstr="none required"
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 fi
10392 rm -f conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test "$ac_cv_search_waddstr" = no; then
10395 for ac_lib in ncurses cursesX curses; do
10396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h. */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403
10404 /* Override any gcc2 internal prototype to avoid an error. */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410 char waddstr ();
10411 int
10412 main ()
10413 {
10414 waddstr ();
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_search_waddstr="-l$ac_lib"
10442 break
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 fi
10448 rm -f conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 done
10451 fi
10452 LIBS=$ac_func_search_save_LIBS
10453 fi
10454 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10455 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10456 if test "$ac_cv_search_waddstr" != no; then
10457 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10458
10459 fi
10460
10461
10462 if test "$ac_cv_search_waddstr" != no; then
10463 curses_found=yes
10464 fi
10465 fi
10466
10467 # Check whether we should enable the TUI, but only do so if we really
10468 # can.
10469 if test x"$enable_tui" != xno; then
10470 if test -d $srcdir/tui; then
10471 if test "$curses_found" != no; then
10472 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10473 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10474 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10475 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10476 CONFIG_ALL="${CONFIG_ALL} all-tui"
10477 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10478 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10479 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10480 else
10481 if test x"$enable_tui" = xyes; then
10482 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10483 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10484 { (exit 1); exit 1; }; }
10485 else
10486 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10487 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10488 fi
10489 fi
10490 fi
10491 fi
10492
10493 # Since GDB uses Readline, we need termcap functionality. In many
10494 # cases this will be provided by the curses library, but some systems
10495 # have a seperate termcap library, or no curses library at all.
10496
10497 case $host_os in
10498 cygwin*)
10499 if test -d $srcdir/libtermcap; then
10500 LIBS="../libtermcap/libtermcap.a $LIBS"
10501 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10502 fi ;;
10503 go32* | *djgpp*)
10504 ac_cv_search_tgetent="none required"
10505 ;;
10506 *mingw32*)
10507 ac_cv_search_tgetent="none required"
10508 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10509 ;;
10510 esac
10511
10512 # These are the libraries checked by Readline.
10513 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10514 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10515 if test "${ac_cv_search_tgetent+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 ac_func_search_save_LIBS=$LIBS
10519 ac_cv_search_tgetent=no
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526
10527 /* Override any gcc2 internal prototype to avoid an error. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10533 char tgetent ();
10534 int
10535 main ()
10536 {
10537 tgetent ();
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 ac_cv_search_tgetent="none required"
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 fi
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 if test "$ac_cv_search_tgetent" = no; then
10573 for ac_lib in termcap tinfo curses ncurses; do
10574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581
10582 /* Override any gcc2 internal prototype to avoid an error. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char tgetent ();
10589 int
10590 main ()
10591 {
10592 tgetent ();
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag"
10607 || test ! -s conftest.err'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; } &&
10613 { ac_try='test -s conftest$ac_exeext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_search_tgetent="-l$ac_lib"
10620 break
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 fi
10626 rm -f conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 done
10629 fi
10630 LIBS=$ac_func_search_save_LIBS
10631 fi
10632 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10633 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10634 if test "$ac_cv_search_tgetent" != no; then
10635 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10636
10637 fi
10638
10639
10640 if test "$ac_cv_search_tgetent" = no; then
10641 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10642 echo "$as_me: error: no termcap library found" >&2;}
10643 { (exit 1); exit 1; }; }
10644 fi
10645
10646
10647 # Check whether --with-system-readline or --without-system-readline was given.
10648 if test "${with_system_readline+set}" = set; then
10649 withval="$with_system_readline"
10650
10651 fi;
10652
10653 if test "$with_system_readline" = yes; then
10654 READLINE=-lreadline
10655 READLINE_DEPS=
10656 READLINE_CFLAGS=
10657 else
10658 READLINE='$(READLINE_DIR)/libreadline.a'
10659 READLINE_DEPS='$(READLINE)'
10660 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10661 fi
10662
10663
10664
10665
10666
10667 # Check whether --with-expat or --without-expat was given.
10668 if test "${with_expat+set}" = set; then
10669 withval="$with_expat"
10670
10671 else
10672 with_expat=auto
10673 fi;
10674 echo "$as_me:$LINENO: checking whether to use expat" >&5
10675 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10676 echo "$as_me:$LINENO: result: $with_expat" >&5
10677 echo "${ECHO_T}$with_expat" >&6
10678
10679 if test "${with_expat}" = no; then
10680 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10681 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10682 HAVE_LIBEXPAT=no
10683 else
10684
10685 if test "X$prefix" = "XNONE"; then
10686 acl_final_prefix="$ac_default_prefix"
10687 else
10688 acl_final_prefix="$prefix"
10689 fi
10690 if test "X$exec_prefix" = "XNONE"; then
10691 acl_final_exec_prefix='${prefix}'
10692 else
10693 acl_final_exec_prefix="$exec_prefix"
10694 fi
10695 acl_save_prefix="$prefix"
10696 prefix="$acl_final_prefix"
10697 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10698 prefix="$acl_save_prefix"
10699
10700
10701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10702 if test "${with_gnu_ld+set}" = set; then
10703 withval="$with_gnu_ld"
10704 test "$withval" = no || with_gnu_ld=yes
10705 else
10706 with_gnu_ld=no
10707 fi;
10708 # Prepare PATH_SEPARATOR.
10709 # The user is always right.
10710 if test "${PATH_SEPARATOR+set}" != set; then
10711 echo "#! /bin/sh" >conf$$.sh
10712 echo "exit 0" >>conf$$.sh
10713 chmod +x conf$$.sh
10714 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10715 PATH_SEPARATOR=';'
10716 else
10717 PATH_SEPARATOR=:
10718 fi
10719 rm -f conf$$.sh
10720 fi
10721 ac_prog=ld
10722 if test "$GCC" = yes; then
10723 # Check if gcc -print-prog-name=ld gives a path.
10724 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10725 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10726 case $host in
10727 *-*-mingw*)
10728 # gcc leaves a trailing carriage return which upsets mingw
10729 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10730 *)
10731 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10732 esac
10733 case $ac_prog in
10734 # Accept absolute paths.
10735 [\\/]* | [A-Za-z]:[\\/]*)
10736 re_direlt='/[^/][^/]*/\.\./'
10737 # Canonicalize the path of ld
10738 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10739 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10740 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10741 done
10742 test -z "$LD" && LD="$ac_prog"
10743 ;;
10744 "")
10745 # If it fails, then pretend we aren't using GCC.
10746 ac_prog=ld
10747 ;;
10748 *)
10749 # If it is relative, then search for the first ld in PATH.
10750 with_gnu_ld=unknown
10751 ;;
10752 esac
10753 elif test "$with_gnu_ld" = yes; then
10754 echo "$as_me:$LINENO: checking for GNU ld" >&5
10755 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10756 else
10757 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10758 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10759 fi
10760 if test "${acl_cv_path_LD+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 if test -z "$LD"; then
10764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10765 for ac_dir in $PATH; do
10766 test -z "$ac_dir" && ac_dir=.
10767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10768 acl_cv_path_LD="$ac_dir/$ac_prog"
10769 # Check to see if the program is GNU ld. I'd rather use --version,
10770 # but apparently some GNU ld's only accept -v.
10771 # Break only if it was the GNU/non-GNU ld that we prefer.
10772 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10773 test "$with_gnu_ld" != no && break
10774 else
10775 test "$with_gnu_ld" != yes && break
10776 fi
10777 fi
10778 done
10779 IFS="$ac_save_ifs"
10780 else
10781 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10782 fi
10783 fi
10784
10785 LD="$acl_cv_path_LD"
10786 if test -n "$LD"; then
10787 echo "$as_me:$LINENO: result: $LD" >&5
10788 echo "${ECHO_T}$LD" >&6
10789 else
10790 echo "$as_me:$LINENO: result: no" >&5
10791 echo "${ECHO_T}no" >&6
10792 fi
10793 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10794 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10795 { (exit 1); exit 1; }; }
10796 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10797 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10798 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10802 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10803 acl_cv_prog_gnu_ld=yes
10804 else
10805 acl_cv_prog_gnu_ld=no
10806 fi
10807 fi
10808 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10809 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10810 with_gnu_ld=$acl_cv_prog_gnu_ld
10811
10812
10813
10814 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10815 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10816 if test "${acl_cv_rpath+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819
10820 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10821 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10822 . ./conftest.sh
10823 rm -f ./conftest.sh
10824 acl_cv_rpath=done
10825
10826 fi
10827 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10828 echo "${ECHO_T}$acl_cv_rpath" >&6
10829 wl="$acl_cv_wl"
10830 libext="$acl_cv_libext"
10831 shlibext="$acl_cv_shlibext"
10832 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10833 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10834 hardcode_direct="$acl_cv_hardcode_direct"
10835 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10836 # Check whether --enable-rpath or --disable-rpath was given.
10837 if test "${enable_rpath+set}" = set; then
10838 enableval="$enable_rpath"
10839 :
10840 else
10841 enable_rpath=yes
10842 fi;
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852 use_additional=yes
10853
10854 acl_save_prefix="$prefix"
10855 prefix="$acl_final_prefix"
10856 acl_save_exec_prefix="$exec_prefix"
10857 exec_prefix="$acl_final_exec_prefix"
10858
10859 eval additional_includedir=\"$includedir\"
10860 eval additional_libdir=\"$libdir\"
10861
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865
10866 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10867 if test "${with_libexpat_prefix+set}" = set; then
10868 withval="$with_libexpat_prefix"
10869
10870 if test "X$withval" = "Xno"; then
10871 use_additional=no
10872 else
10873 if test "X$withval" = "X"; then
10874
10875 acl_save_prefix="$prefix"
10876 prefix="$acl_final_prefix"
10877 acl_save_exec_prefix="$exec_prefix"
10878 exec_prefix="$acl_final_exec_prefix"
10879
10880 eval additional_includedir=\"$includedir\"
10881 eval additional_libdir=\"$libdir\"
10882
10883 exec_prefix="$acl_save_exec_prefix"
10884 prefix="$acl_save_prefix"
10885
10886 else
10887 additional_includedir="$withval/include"
10888 additional_libdir="$withval/lib"
10889 fi
10890 fi
10891
10892 fi;
10893 LIBEXPAT=
10894 LTLIBEXPAT=
10895 INCEXPAT=
10896 rpathdirs=
10897 ltrpathdirs=
10898 names_already_handled=
10899 names_next_round='expat '
10900 while test -n "$names_next_round"; do
10901 names_this_round="$names_next_round"
10902 names_next_round=
10903 for name in $names_this_round; do
10904 already_handled=
10905 for n in $names_already_handled; do
10906 if test "$n" = "$name"; then
10907 already_handled=yes
10908 break
10909 fi
10910 done
10911 if test -z "$already_handled"; then
10912 names_already_handled="$names_already_handled $name"
10913 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10914 eval value=\"\$HAVE_LIB$uppername\"
10915 if test -n "$value"; then
10916 if test "$value" = yes; then
10917 eval value=\"\$LIB$uppername\"
10918 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10919 eval value=\"\$LTLIB$uppername\"
10920 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10921 else
10922 :
10923 fi
10924 else
10925 found_dir=
10926 found_la=
10927 found_so=
10928 found_a=
10929 if test $use_additional = yes; then
10930 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10931 found_dir="$additional_libdir"
10932 found_so="$additional_libdir/lib$name.$shlibext"
10933 if test -f "$additional_libdir/lib$name.la"; then
10934 found_la="$additional_libdir/lib$name.la"
10935 fi
10936 else
10937 if test -f "$additional_libdir/lib$name.$libext"; then
10938 found_dir="$additional_libdir"
10939 found_a="$additional_libdir/lib$name.$libext"
10940 if test -f "$additional_libdir/lib$name.la"; then
10941 found_la="$additional_libdir/lib$name.la"
10942 fi
10943 fi
10944 fi
10945 fi
10946 if test "X$found_dir" = "X"; then
10947 for x in $LDFLAGS $LTLIBEXPAT; do
10948
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10953 eval x=\"$x\"
10954 exec_prefix="$acl_save_exec_prefix"
10955 prefix="$acl_save_prefix"
10956
10957 case "$x" in
10958 -L*)
10959 dir=`echo "X$x" | sed -e 's/^X-L//'`
10960 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10961 found_dir="$dir"
10962 found_so="$dir/lib$name.$shlibext"
10963 if test -f "$dir/lib$name.la"; then
10964 found_la="$dir/lib$name.la"
10965 fi
10966 else
10967 if test -f "$dir/lib$name.$libext"; then
10968 found_dir="$dir"
10969 found_a="$dir/lib$name.$libext"
10970 if test -f "$dir/lib$name.la"; then
10971 found_la="$dir/lib$name.la"
10972 fi
10973 fi
10974 fi
10975 ;;
10976 esac
10977 if test "X$found_dir" != "X"; then
10978 break
10979 fi
10980 done
10981 fi
10982 if test "X$found_dir" != "X"; then
10983 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10984 if test "X$found_so" != "X"; then
10985 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10986 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10987 else
10988 haveit=
10989 for x in $ltrpathdirs; do
10990 if test "X$x" = "X$found_dir"; then
10991 haveit=yes
10992 break
10993 fi
10994 done
10995 if test -z "$haveit"; then
10996 ltrpathdirs="$ltrpathdirs $found_dir"
10997 fi
10998 if test "$hardcode_direct" = yes; then
10999 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11000 else
11001 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11002 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11003 haveit=
11004 for x in $rpathdirs; do
11005 if test "X$x" = "X$found_dir"; then
11006 haveit=yes
11007 break
11008 fi
11009 done
11010 if test -z "$haveit"; then
11011 rpathdirs="$rpathdirs $found_dir"
11012 fi
11013 else
11014 haveit=
11015 for x in $LDFLAGS $LIBEXPAT; do
11016
11017 acl_save_prefix="$prefix"
11018 prefix="$acl_final_prefix"
11019 acl_save_exec_prefix="$exec_prefix"
11020 exec_prefix="$acl_final_exec_prefix"
11021 eval x=\"$x\"
11022 exec_prefix="$acl_save_exec_prefix"
11023 prefix="$acl_save_prefix"
11024
11025 if test "X$x" = "X-L$found_dir"; then
11026 haveit=yes
11027 break
11028 fi
11029 done
11030 if test -z "$haveit"; then
11031 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11032 fi
11033 if test "$hardcode_minus_L" != no; then
11034 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11035 else
11036 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11037 fi
11038 fi
11039 fi
11040 fi
11041 else
11042 if test "X$found_a" != "X"; then
11043 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11044 else
11045 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11046 fi
11047 fi
11048 additional_includedir=
11049 case "$found_dir" in
11050 */lib | */lib/)
11051 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11052 additional_includedir="$basedir/include"
11053 ;;
11054 esac
11055 if test "X$additional_includedir" != "X"; then
11056 if test "X$additional_includedir" != "X/usr/include"; then
11057 haveit=
11058 if test "X$additional_includedir" = "X/usr/local/include"; then
11059 if test -n "$GCC"; then
11060 case $host_os in
11061 linux*) haveit=yes;;
11062 esac
11063 fi
11064 fi
11065 if test -z "$haveit"; then
11066 for x in $CPPFLAGS $INCEXPAT; do
11067
11068 acl_save_prefix="$prefix"
11069 prefix="$acl_final_prefix"
11070 acl_save_exec_prefix="$exec_prefix"
11071 exec_prefix="$acl_final_exec_prefix"
11072 eval x=\"$x\"
11073 exec_prefix="$acl_save_exec_prefix"
11074 prefix="$acl_save_prefix"
11075
11076 if test "X$x" = "X-I$additional_includedir"; then
11077 haveit=yes
11078 break
11079 fi
11080 done
11081 if test -z "$haveit"; then
11082 if test -d "$additional_includedir"; then
11083 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11084 fi
11085 fi
11086 fi
11087 fi
11088 fi
11089 if test -n "$found_la"; then
11090 save_libdir="$libdir"
11091 case "$found_la" in
11092 */* | *\\*) . "$found_la" ;;
11093 *) . "./$found_la" ;;
11094 esac
11095 libdir="$save_libdir"
11096 for dep in $dependency_libs; do
11097 case "$dep" in
11098 -L*)
11099 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11100 if test "X$additional_libdir" != "X/usr/lib"; then
11101 haveit=
11102 if test "X$additional_libdir" = "X/usr/local/lib"; then
11103 if test -n "$GCC"; then
11104 case $host_os in
11105 linux*) haveit=yes;;
11106 esac
11107 fi
11108 fi
11109 if test -z "$haveit"; then
11110 haveit=
11111 for x in $LDFLAGS $LIBEXPAT; do
11112
11113 acl_save_prefix="$prefix"
11114 prefix="$acl_final_prefix"
11115 acl_save_exec_prefix="$exec_prefix"
11116 exec_prefix="$acl_final_exec_prefix"
11117 eval x=\"$x\"
11118 exec_prefix="$acl_save_exec_prefix"
11119 prefix="$acl_save_prefix"
11120
11121 if test "X$x" = "X-L$additional_libdir"; then
11122 haveit=yes
11123 break
11124 fi
11125 done
11126 if test -z "$haveit"; then
11127 if test -d "$additional_libdir"; then
11128 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11129 fi
11130 fi
11131 haveit=
11132 for x in $LDFLAGS $LTLIBEXPAT; do
11133
11134 acl_save_prefix="$prefix"
11135 prefix="$acl_final_prefix"
11136 acl_save_exec_prefix="$exec_prefix"
11137 exec_prefix="$acl_final_exec_prefix"
11138 eval x=\"$x\"
11139 exec_prefix="$acl_save_exec_prefix"
11140 prefix="$acl_save_prefix"
11141
11142 if test "X$x" = "X-L$additional_libdir"; then
11143 haveit=yes
11144 break
11145 fi
11146 done
11147 if test -z "$haveit"; then
11148 if test -d "$additional_libdir"; then
11149 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11150 fi
11151 fi
11152 fi
11153 fi
11154 ;;
11155 -R*)
11156 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11157 if test "$enable_rpath" != no; then
11158 haveit=
11159 for x in $rpathdirs; do
11160 if test "X$x" = "X$dir"; then
11161 haveit=yes
11162 break
11163 fi
11164 done
11165 if test -z "$haveit"; then
11166 rpathdirs="$rpathdirs $dir"
11167 fi
11168 haveit=
11169 for x in $ltrpathdirs; do
11170 if test "X$x" = "X$dir"; then
11171 haveit=yes
11172 break
11173 fi
11174 done
11175 if test -z "$haveit"; then
11176 ltrpathdirs="$ltrpathdirs $dir"
11177 fi
11178 fi
11179 ;;
11180 -l*)
11181 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11182 ;;
11183 *.la)
11184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11185 ;;
11186 *)
11187 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11188 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11189 ;;
11190 esac
11191 done
11192 fi
11193 else
11194 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11195 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11196 fi
11197 fi
11198 fi
11199 done
11200 done
11201 if test "X$rpathdirs" != "X"; then
11202 if test -n "$hardcode_libdir_separator"; then
11203 alldirs=
11204 for found_dir in $rpathdirs; do
11205 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11206 done
11207 acl_save_libdir="$libdir"
11208 libdir="$alldirs"
11209 eval flag=\"$hardcode_libdir_flag_spec\"
11210 libdir="$acl_save_libdir"
11211 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11212 else
11213 for found_dir in $rpathdirs; do
11214 acl_save_libdir="$libdir"
11215 libdir="$found_dir"
11216 eval flag=\"$hardcode_libdir_flag_spec\"
11217 libdir="$acl_save_libdir"
11218 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11219 done
11220 fi
11221 fi
11222 if test "X$ltrpathdirs" != "X"; then
11223 for found_dir in $ltrpathdirs; do
11224 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11225 done
11226 fi
11227
11228
11229 ac_save_CPPFLAGS="$CPPFLAGS"
11230
11231 for element in $INCEXPAT; do
11232 haveit=
11233 for x in $CPPFLAGS; do
11234
11235 acl_save_prefix="$prefix"
11236 prefix="$acl_final_prefix"
11237 acl_save_exec_prefix="$exec_prefix"
11238 exec_prefix="$acl_final_exec_prefix"
11239 eval x=\"$x\"
11240 exec_prefix="$acl_save_exec_prefix"
11241 prefix="$acl_save_prefix"
11242
11243 if test "X$x" = "X$element"; then
11244 haveit=yes
11245 break
11246 fi
11247 done
11248 if test -z "$haveit"; then
11249 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11250 fi
11251 done
11252
11253
11254 echo "$as_me:$LINENO: checking for libexpat" >&5
11255 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11256 if test "${ac_cv_libexpat+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259
11260 ac_save_LIBS="$LIBS"
11261 LIBS="$LIBS $LIBEXPAT"
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include "expat.h"
11269 int
11270 main ()
11271 {
11272 XML_Parser p = XML_ParserCreate (0);
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279 (eval $ac_link) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -z "$ac_c_werror_flag"
11287 || test ! -s conftest.err'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_cv_libexpat=yes
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 ac_cv_libexpat=no
11305 fi
11306 rm -f conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS="$ac_save_LIBS"
11309
11310 fi
11311 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11312 echo "${ECHO_T}$ac_cv_libexpat" >&6
11313 if test "$ac_cv_libexpat" = yes; then
11314 HAVE_LIBEXPAT=yes
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_LIBEXPAT 1
11318 _ACEOF
11319
11320 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11321 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11322 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11323 echo "${ECHO_T}$LIBEXPAT" >&6
11324 else
11325 HAVE_LIBEXPAT=no
11326 CPPFLAGS="$ac_save_CPPFLAGS"
11327 LIBEXPAT=
11328 LTLIBEXPAT=
11329 fi
11330
11331
11332
11333
11334
11335
11336 if test "$HAVE_LIBEXPAT" != yes; then
11337 if test "$with_expat" = yes; then
11338 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11339 echo "$as_me: error: expat is missing or unusable" >&2;}
11340 { (exit 1); exit 1; }; }
11341 else
11342 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11343 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11344 fi
11345 else
11346 save_LIBS=$LIBS
11347 LIBS="$LIBS $LIBEXPAT"
11348
11349 for ac_func in XML_StopParser
11350 do
11351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11352 echo "$as_me:$LINENO: checking for $ac_func" >&5
11353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11354 if eval "test \"\${$as_ac_var+set}\" = set"; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h. */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11365 #define $ac_func innocuous_$ac_func
11366
11367 /* System header to define __stub macros and hopefully few prototypes,
11368 which can conflict with char $ac_func (); below.
11369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11370 <limits.h> exists even on freestanding compilers. */
11371
11372 #ifdef __STDC__
11373 # include <limits.h>
11374 #else
11375 # include <assert.h>
11376 #endif
11377
11378 #undef $ac_func
11379
11380 /* Override any gcc2 internal prototype to avoid an error. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 {
11384 #endif
11385 /* We use char because int might match the return type of a gcc2
11386 builtin and then its argument prototype would still apply. */
11387 char $ac_func ();
11388 /* The GNU C library defines this for functions which it implements
11389 to always fail with ENOSYS. Some functions are actually named
11390 something starting with __ and the normal name is an alias. */
11391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11392 choke me
11393 #else
11394 char (*f) () = $ac_func;
11395 #endif
11396 #ifdef __cplusplus
11397 }
11398 #endif
11399
11400 int
11401 main ()
11402 {
11403 return f != $ac_func;
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest$ac_exeext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 eval "$as_ac_var=yes"
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 eval "$as_ac_var=no"
11436 fi
11437 rm -f conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11446
11447 fi
11448 done
11449
11450 LIBS=$save_LIBS
11451 fi
11452 fi
11453
11454
11455
11456
11457 # Check whether --with-python or --without-python was given.
11458 if test "${with_python+set}" = set; then
11459 withval="$with_python"
11460
11461 else
11462 with_python=auto
11463 fi;
11464 echo "$as_me:$LINENO: checking whether to use python" >&5
11465 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11466 echo "$as_me:$LINENO: result: $with_python" >&5
11467 echo "${ECHO_T}$with_python" >&6
11468
11469 if test "${with_python}" = no; then
11470 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11471 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11472 have_libpython=no
11473 else
11474 case "${with_python}" in
11475 yes | auto)
11476 # Leave as empty, use defaults.
11477 python_includes=
11478 python_libs=
11479 ;;
11480 /*)
11481 python_includes="-I${with_python}/include"
11482 python_libs="-L${with_python}/lib"
11483 ;;
11484 *)
11485 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11486 echo "$as_me: error: invalid value for --with-python" >&2;}
11487 { (exit 1); exit 1; }; }
11488 ;;
11489 esac
11490
11491 save_CPPFLAGS=$CPPFLAGS
11492 CPPFLAGS="$CPPFLAGS ${python_includes}"
11493 save_LIBS=$LIBS
11494 LIBS="$LIBS ${python_libs}"
11495 have_libpython=no
11496 if test "${have_libpython}" = no; then
11497
11498 version=python2.6
11499
11500
11501 HAVE_LIBPYTHON2_6=no
11502 echo "$as_me:$LINENO: checking for ${version}" >&5
11503 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11504 save_LIBS=$LIBS
11505 LIBS="$LIBS -l${version}"
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include "${version}/Python.h"
11513 int
11514 main ()
11515 {
11516 Py_Initialize ();
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523 (eval $ac_link) 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -z "$ac_c_werror_flag"
11531 || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 HAVE_LIBPYTHON2_6=yes
11544 have_libpython=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 LIBS=$save_LIBS
11550 fi
11551 rm -f conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11554 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11555
11556 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11557
11558 cat >>confdefs.h <<\_ACEOF
11559 #define HAVE_LIBPYTHON2_6 1
11560 _ACEOF
11561
11562 fi
11563 fi
11564 if test ${have_libpython} = no; then
11565
11566 version=python2.5
11567
11568
11569 HAVE_LIBPYTHON2_5=no
11570 echo "$as_me:$LINENO: checking for ${version}" >&5
11571 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11572 save_LIBS=$LIBS
11573 LIBS="$LIBS -l${version}"
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include "${version}/Python.h"
11581 int
11582 main ()
11583 {
11584 Py_Initialize ();
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591 (eval $ac_link) 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag"
11599 || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 HAVE_LIBPYTHON2_5=yes
11612 have_libpython=yes
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 LIBS=$save_LIBS
11618 fi
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11622 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11623
11624 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11625
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_LIBPYTHON2_5 1
11628 _ACEOF
11629
11630 fi
11631 fi
11632 if test ${have_libpython} = no; then
11633
11634 version=python2.4
11635
11636
11637 HAVE_LIBPYTHON2_4=no
11638 echo "$as_me:$LINENO: checking for ${version}" >&5
11639 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11640 save_LIBS=$LIBS
11641 LIBS="$LIBS -l${version}"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include "${version}/Python.h"
11649 int
11650 main ()
11651 {
11652 Py_Initialize ();
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 HAVE_LIBPYTHON2_4=yes
11680 have_libpython=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 LIBS=$save_LIBS
11686 fi
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11690 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11691
11692 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define HAVE_LIBPYTHON2_4 1
11696 _ACEOF
11697
11698 fi
11699 fi
11700 if test ${have_libpython} = no; then
11701 case "${with_python}" in
11702 yes)
11703 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11704 echo "$as_me: error: python is missing or unusable" >&2;}
11705 { (exit 1); exit 1; }; }
11706 ;;
11707 auto)
11708 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11709 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11710 ;;
11711 *)
11712 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11713 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11714 { (exit 1); exit 1; }; }
11715 ;;
11716 esac
11717 CPPFLAGS=$save_CPPFLAGS
11718 LIBS=$save_LIBS
11719 fi
11720 fi
11721
11722 if test "${have_libpython}" = yes; then
11723
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_PYTHON 1
11726 _ACEOF
11727
11728 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11729 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11730 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11731 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11732
11733 # Flags needed to compile Python code (taken from python-config --cflags).
11734 # We cannot call python-config directly because it will output whatever was
11735 # used when compiling the Python interpreter itself, including flags which
11736 # would make the python-related objects be compiled differently from the
11737 # rest of GDB (e.g., -O2 and -fPIC).
11738 if test "${GCC}" = yes; then
11739 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11740 fi
11741
11742 if test "x${tentative_python_cflags}" != x; then
11743 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11744 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11745 for flag in ${tentative_python_cflags}; do
11746 # Check that the compiler accepts it
11747 saved_CFLAGS="$CFLAGS"
11748 CFLAGS="$CFLAGS $flag"
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755
11756 int
11757 main ()
11758 {
11759
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag"
11774 || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest.$ac_objext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 fi
11792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 CFLAGS="$saved_CFLAGS"
11794 done
11795 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11796 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11797 fi
11798 else
11799 # Even if Python support is not compiled in, we need to have these files
11800 # included in order to recognize the GDB command "python".
11801 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11802 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11803 fi
11804
11805
11806 # ------------------------- #
11807 # Checks for header files. #
11808 # ------------------------- #
11809
11810
11811
11812
11813
11814
11815 ac_header_dirent=no
11816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11817 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11818 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <sys/types.h>
11830 #include <$ac_hdr>
11831
11832 int
11833 main ()
11834 {
11835 if ((DIR *) 0)
11836 return 0;
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11843 (eval $ac_compile) 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag"
11851 || test ! -s conftest.err'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 eval "$as_ac_Header=yes"
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 eval "$as_ac_Header=no"
11869 fi
11870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11877 _ACEOF
11878
11879 ac_header_dirent=$ac_hdr; break
11880 fi
11881
11882 done
11883 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11884 if test $ac_header_dirent = dirent.h; then
11885 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11886 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11887 if test "${ac_cv_search_opendir+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890 ac_func_search_save_LIBS=$LIBS
11891 ac_cv_search_opendir=no
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898
11899 /* Override any gcc2 internal prototype to avoid an error. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char opendir ();
11906 int
11907 main ()
11908 {
11909 opendir ();
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_search_opendir="none required"
11937 else
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 fi
11942 rm -f conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11944 if test "$ac_cv_search_opendir" = no; then
11945 for ac_lib in dir; do
11946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953
11954 /* Override any gcc2 internal prototype to avoid an error. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 /* We use char because int might match the return type of a gcc2
11959 builtin and then its argument prototype would still apply. */
11960 char opendir ();
11961 int
11962 main ()
11963 {
11964 opendir ();
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_search_opendir="-l$ac_lib"
11992 break
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 fi
11998 rm -f conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 done
12001 fi
12002 LIBS=$ac_func_search_save_LIBS
12003 fi
12004 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12005 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12006 if test "$ac_cv_search_opendir" != no; then
12007 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12008
12009 fi
12010
12011 else
12012 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12013 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12014 if test "${ac_cv_search_opendir+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 ac_func_search_save_LIBS=$LIBS
12018 ac_cv_search_opendir=no
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h. */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025
12026 /* Override any gcc2 internal prototype to avoid an error. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 /* We use char because int might match the return type of a gcc2
12031 builtin and then its argument prototype would still apply. */
12032 char opendir ();
12033 int
12034 main ()
12035 {
12036 opendir ();
12037 ;
12038 return 0;
12039 }
12040 _ACEOF
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043 (eval $ac_link) 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag"
12051 || test ! -s conftest.err'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_search_opendir="none required"
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 fi
12069 rm -f conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 if test "$ac_cv_search_opendir" = no; then
12072 for ac_lib in x; do
12073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h. */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080
12081 /* Override any gcc2 internal prototype to avoid an error. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 /* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12087 char opendir ();
12088 int
12089 main ()
12090 {
12091 opendir ();
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_search_opendir="-l$ac_lib"
12119 break
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 fi
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 done
12128 fi
12129 LIBS=$ac_func_search_save_LIBS
12130 fi
12131 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12132 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12133 if test "$ac_cv_search_opendir" != no; then
12134 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12135
12136 fi
12137
12138 fi
12139
12140 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12141 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12142 if test "${ac_cv_header_stat_broken+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 #include <sys/types.h>
12152 #include <sys/stat.h>
12153
12154 #if defined(S_ISBLK) && defined(S_IFDIR)
12155 # if S_ISBLK (S_IFDIR)
12156 You lose.
12157 # endif
12158 #endif
12159
12160 #if defined(S_ISBLK) && defined(S_IFCHR)
12161 # if S_ISBLK (S_IFCHR)
12162 You lose.
12163 # endif
12164 #endif
12165
12166 #if defined(S_ISLNK) && defined(S_IFREG)
12167 # if S_ISLNK (S_IFREG)
12168 You lose.
12169 # endif
12170 #endif
12171
12172 #if defined(S_ISSOCK) && defined(S_IFREG)
12173 # if S_ISSOCK (S_IFREG)
12174 You lose.
12175 # endif
12176 #endif
12177
12178 _ACEOF
12179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12180 $EGREP "You lose" >/dev/null 2>&1; then
12181 ac_cv_header_stat_broken=yes
12182 else
12183 ac_cv_header_stat_broken=no
12184 fi
12185 rm -f conftest*
12186
12187 fi
12188 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12189 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12190 if test $ac_cv_header_stat_broken = yes; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define STAT_MACROS_BROKEN 1
12194 _ACEOF
12195
12196 fi
12197
12198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12200 if test "${ac_cv_header_stdc+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 #include <stdlib.h>
12210 #include <stdarg.h>
12211 #include <string.h>
12212 #include <float.h>
12213
12214 int
12215 main ()
12216 {
12217
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -z "$ac_c_werror_flag"
12232 || test ! -s conftest.err'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_header_stdc=yes
12245 else
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249 ac_cv_header_stdc=no
12250 fi
12251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12252
12253 if test $ac_cv_header_stdc = yes; then
12254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <string.h>
12262
12263 _ACEOF
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "memchr" >/dev/null 2>&1; then
12266 :
12267 else
12268 ac_cv_header_stdc=no
12269 fi
12270 rm -f conftest*
12271
12272 fi
12273
12274 if test $ac_cv_header_stdc = yes; then
12275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12282 #include <stdlib.h>
12283
12284 _ACEOF
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "free" >/dev/null 2>&1; then
12287 :
12288 else
12289 ac_cv_header_stdc=no
12290 fi
12291 rm -f conftest*
12292
12293 fi
12294
12295 if test $ac_cv_header_stdc = yes; then
12296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12297 if test "$cross_compiling" = yes; then
12298 :
12299 else
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 #include <ctype.h>
12307 #if ((' ' & 0x0FF) == 0x020)
12308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12310 #else
12311 # define ISLOWER(c) \
12312 (('a' <= (c) && (c) <= 'i') \
12313 || ('j' <= (c) && (c) <= 'r') \
12314 || ('s' <= (c) && (c) <= 'z'))
12315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12316 #endif
12317
12318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12319 int
12320 main ()
12321 {
12322 int i;
12323 for (i = 0; i < 256; i++)
12324 if (XOR (islower (i), ISLOWER (i))
12325 || toupper (i) != TOUPPER (i))
12326 exit(2);
12327 exit (0);
12328 }
12329 _ACEOF
12330 rm -f conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 :
12342 else
12343 echo "$as_me: program exited with status $ac_status" >&5
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 ( exit $ac_status )
12348 ac_cv_header_stdc=no
12349 fi
12350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 fi
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12356 if test $ac_cv_header_stdc = yes; then
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define STDC_HEADERS 1
12360 _ACEOF
12361
12362 fi
12363
12364 # elf_hp.h is for HP/UX 64-bit shared library support.
12365 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12366 # unconditionally, so what's the point in checking these?
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12405 thread_db.h gnu/libc-version.h signal.h stddef.h \
12406 stdlib.h string.h memory.h strings.h sys/fault.h \
12407 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12408 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12409 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12410 sys/types.h sys/wait.h wait.h termios.h termio.h \
12411 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12412 do
12413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415 echo "$as_me:$LINENO: checking for $ac_header" >&5
12416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 fi
12420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12422 else
12423 # Is the header compilable?
12424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 $ac_includes_default
12433 #include <$ac_header>
12434 _ACEOF
12435 rm -f conftest.$ac_objext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12437 (eval $ac_compile) 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest.$ac_objext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_header_compiler=yes
12458 else
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_header_compiler=no
12463 fi
12464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12466 echo "${ECHO_T}$ac_header_compiler" >&6
12467
12468 # Is the header present?
12469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477 #include <$ac_header>
12478 _ACEOF
12479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } >/dev/null; then
12487 if test -s conftest.err; then
12488 ac_cpp_err=$ac_c_preproc_warn_flag
12489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490 else
12491 ac_cpp_err=
12492 fi
12493 else
12494 ac_cpp_err=yes
12495 fi
12496 if test -z "$ac_cpp_err"; then
12497 ac_header_preproc=yes
12498 else
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 ac_header_preproc=no
12503 fi
12504 rm -f conftest.err conftest.$ac_ext
12505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12506 echo "${ECHO_T}$ac_header_preproc" >&6
12507
12508 # So? What about this header?
12509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12510 yes:no: )
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12515 ac_header_preproc=yes
12516 ;;
12517 no:yes:* )
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12530 (
12531 cat <<\_ASBOX
12532 ## ------------------------------------------ ##
12533 ## Report this to the AC_PACKAGE_NAME lists. ##
12534 ## ------------------------------------------ ##
12535 _ASBOX
12536 ) |
12537 sed "s/^/$as_me: WARNING: /" >&2
12538 ;;
12539 esac
12540 echo "$as_me:$LINENO: checking for $ac_header" >&5
12541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545 eval "$as_ac_Header=\$ac_header_preproc"
12546 fi
12547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12549
12550 fi
12551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12554 _ACEOF
12555
12556 fi
12557
12558 done
12559
12560
12561 for ac_header in link.h
12562 do
12563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12564 echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 #if HAVE_SYS_TYPES_H
12576 # include <sys/types.h>
12577 #endif
12578 #if HAVE_NLIST_H
12579 # include <nlist.h>
12580 #endif
12581
12582
12583 #include <$ac_header>
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12587 (eval $ac_compile) 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest.$ac_objext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 eval "$as_ac_Header=yes"
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 eval "$as_ac_Header=no"
12613 fi
12614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12615 fi
12616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12619 cat >>confdefs.h <<_ACEOF
12620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12621 _ACEOF
12622
12623 fi
12624
12625 done
12626
12627
12628 for ac_header in sys/proc.h
12629 do
12630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12631 echo "$as_me:$LINENO: checking for $ac_header" >&5
12632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #if HAVE_SYS_PARAM_H
12643 # include <sys/param.h>
12644 #endif
12645
12646
12647 #include <$ac_header>
12648 _ACEOF
12649 rm -f conftest.$ac_objext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651 (eval $ac_compile) 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag"
12659 || test ! -s conftest.err'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest.$ac_objext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 eval "$as_ac_Header=yes"
12672 else
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 eval "$as_ac_Header=no"
12677 fi
12678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 fi
12680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12683 cat >>confdefs.h <<_ACEOF
12684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12685 _ACEOF
12686
12687 fi
12688
12689 done
12690
12691
12692 for ac_header in sys/user.h
12693 do
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 #if HAVE_SYS_PARAM_H
12707 # include <sys/param.h>
12708 #endif
12709
12710
12711 #include <$ac_header>
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag"
12723 || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest.$ac_objext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 eval "$as_ac_Header=yes"
12736 else
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 eval "$as_ac_Header=no"
12741 fi
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12743 fi
12744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12747 cat >>confdefs.h <<_ACEOF
12748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12749 _ACEOF
12750
12751 fi
12752
12753 done
12754
12755
12756 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12757 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12758 # think that we don't have <curses.h> if we're using GCC.
12759 case $host_os in
12760 solaris2.[789])
12761 if test "$GCC" = yes; then
12762
12763 cat >>confdefs.h <<\_ACEOF
12764 #define _MSE_INT_H 1
12765 _ACEOF
12766
12767 fi ;;
12768 esac
12769
12770
12771
12772
12773
12774 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12775 do
12776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12778 echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 fi
12783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12785 else
12786 # Is the header compilable?
12787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 $ac_includes_default
12796 #include <$ac_header>
12797 _ACEOF
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -z "$ac_c_werror_flag"
12808 || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_header_compiler=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 ac_header_compiler=no
12826 fi
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6
12830
12831 # Is the header present?
12832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 #include <$ac_header>
12841 _ACEOF
12842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } >/dev/null; then
12850 if test -s conftest.err; then
12851 ac_cpp_err=$ac_c_preproc_warn_flag
12852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12853 else
12854 ac_cpp_err=
12855 fi
12856 else
12857 ac_cpp_err=yes
12858 fi
12859 if test -z "$ac_cpp_err"; then
12860 ac_header_preproc=yes
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_header_preproc=no
12866 fi
12867 rm -f conftest.err conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6
12870
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12873 yes:no: )
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12878 ac_header_preproc=yes
12879 ;;
12880 no:yes:* )
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12893 (
12894 cat <<\_ASBOX
12895 ## ------------------------------------------ ##
12896 ## Report this to the AC_PACKAGE_NAME lists. ##
12897 ## ------------------------------------------ ##
12898 _ASBOX
12899 ) |
12900 sed "s/^/$as_me: WARNING: /" >&2
12901 ;;
12902 esac
12903 echo "$as_me:$LINENO: checking for $ac_header" >&5
12904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 eval "$as_ac_Header=\$ac_header_preproc"
12909 fi
12910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12912
12913 fi
12914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12915 cat >>confdefs.h <<_ACEOF
12916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12917 _ACEOF
12918
12919 fi
12920
12921 done
12922
12923
12924 for ac_header in term.h
12925 do
12926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12927 echo "$as_me:$LINENO: checking for $ac_header" >&5
12928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 #if HAVE_CURSES_H
12939 # include <curses.h>
12940 #endif
12941
12942
12943 #include <$ac_header>
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_c_werror_flag"
12955 || test ! -s conftest.err'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 eval "$as_ac_Header=yes"
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 eval "$as_ac_Header=no"
12973 fi
12974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 fi
12976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12979 cat >>confdefs.h <<_ACEOF
12980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12981 _ACEOF
12982
12983 fi
12984
12985 done
12986
12987
12988 # ------------------------- #
12989 # Checks for declarations. #
12990 # ------------------------- #
12991
12992 echo "$as_me:$LINENO: checking whether free is declared" >&5
12993 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12994 if test "${ac_cv_have_decl_free+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13004 int
13005 main ()
13006 {
13007 #ifndef free
13008 char *p = (char *) free;
13009 #endif
13010
13011 ;
13012 return 0;
13013 }
13014 _ACEOF
13015 rm -f conftest.$ac_objext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest.$ac_objext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_have_decl_free=yes
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_cv_have_decl_free=no
13043 fi
13044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13045 fi
13046 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13047 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13048 if test $ac_cv_have_decl_free = yes; then
13049
13050 cat >>confdefs.h <<_ACEOF
13051 #define HAVE_DECL_FREE 1
13052 _ACEOF
13053
13054
13055 else
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_DECL_FREE 0
13058 _ACEOF
13059
13060
13061 fi
13062 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13063 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13064 if test "${ac_cv_have_decl_malloc+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13074 int
13075 main ()
13076 {
13077 #ifndef malloc
13078 char *p = (char *) malloc;
13079 #endif
13080
13081 ;
13082 return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>conftest.er1
13088 ac_status=$?
13089 grep -v '^ *+' conftest.er1 >conftest.err
13090 rm -f conftest.er1
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try='test -z "$ac_c_werror_flag"
13095 || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_have_decl_malloc=yes
13108 else
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_cv_have_decl_malloc=no
13113 fi
13114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13115 fi
13116 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13117 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13118 if test $ac_cv_have_decl_malloc = yes; then
13119
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_DECL_MALLOC 1
13122 _ACEOF
13123
13124
13125 else
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_DECL_MALLOC 0
13128 _ACEOF
13129
13130
13131 fi
13132 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13133 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13134 if test "${ac_cv_have_decl_realloc+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 $ac_includes_default
13144 int
13145 main ()
13146 {
13147 #ifndef realloc
13148 char *p = (char *) realloc;
13149 #endif
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_have_decl_realloc=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_have_decl_realloc=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13187 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13188 if test $ac_cv_have_decl_realloc = yes; then
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_DECL_REALLOC 1
13192 _ACEOF
13193
13194
13195 else
13196 cat >>confdefs.h <<_ACEOF
13197 #define HAVE_DECL_REALLOC 0
13198 _ACEOF
13199
13200
13201 fi
13202 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13203 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13204 if test "${ac_cv_have_decl_strerror+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 int
13215 main ()
13216 {
13217 #ifndef strerror
13218 char *p = (char *) strerror;
13219 #endif
13220
13221 ;
13222 return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag"
13235 || test ! -s conftest.err'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_cv_have_decl_strerror=yes
13248 else
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 ac_cv_have_decl_strerror=no
13253 fi
13254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13255 fi
13256 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13257 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13258 if test $ac_cv_have_decl_strerror = yes; then
13259
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_DECL_STRERROR 1
13262 _ACEOF
13263
13264
13265 else
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_STRERROR 0
13268 _ACEOF
13269
13270
13271 fi
13272 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13273 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13274 if test "${ac_cv_have_decl_strstr+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13284 int
13285 main ()
13286 {
13287 #ifndef strstr
13288 char *p = (char *) strstr;
13289 #endif
13290
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_have_decl_strstr=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_cv_have_decl_strstr=no
13323 fi
13324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325 fi
13326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13327 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13328 if test $ac_cv_have_decl_strstr = yes; then
13329
13330 cat >>confdefs.h <<_ACEOF
13331 #define HAVE_DECL_STRSTR 1
13332 _ACEOF
13333
13334
13335 else
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_DECL_STRSTR 0
13338 _ACEOF
13339
13340
13341 fi
13342 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13343 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13344 if test "${ac_cv_have_decl_getopt+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 int
13355 main ()
13356 {
13357 #ifndef getopt
13358 char *p = (char *) getopt;
13359 #endif
13360
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_have_decl_getopt=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_cv_have_decl_getopt=no
13393 fi
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13397 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13398 if test $ac_cv_have_decl_getopt = yes; then
13399
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_DECL_GETOPT 1
13402 _ACEOF
13403
13404
13405 else
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_DECL_GETOPT 0
13408 _ACEOF
13409
13410
13411 fi
13412 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13413 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13414 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 #ifndef snprintf
13428 char *p = (char *) snprintf;
13429 #endif
13430
13431 ;
13432 return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>conftest.er1
13438 ac_status=$?
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_have_decl_snprintf=yes
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ac_cv_have_decl_snprintf=no
13463 fi
13464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13467 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13468 if test $ac_cv_have_decl_snprintf = yes; then
13469
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_DECL_SNPRINTF 1
13472 _ACEOF
13473
13474
13475 else
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_DECL_SNPRINTF 0
13478 _ACEOF
13479
13480
13481 fi
13482 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13483 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13484 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13494 int
13495 main ()
13496 {
13497 #ifndef vsnprintf
13498 char *p = (char *) vsnprintf;
13499 #endif
13500
13501 ;
13502 return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_have_decl_vsnprintf=yes
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_cv_have_decl_vsnprintf=no
13533 fi
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13537 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13538 if test $ac_cv_have_decl_vsnprintf = yes; then
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DECL_VSNPRINTF 1
13542 _ACEOF
13543
13544
13545 else
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_DECL_VSNPRINTF 0
13548 _ACEOF
13549
13550
13551 fi
13552
13553
13554
13555 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13556 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13557 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <locale.h>
13567 int
13568 main ()
13569 {
13570 return LC_MESSAGES
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 am_cv_val_LC_MESSAGES=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 am_cv_val_LC_MESSAGES=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 fi
13607 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13608 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13609 if test $am_cv_val_LC_MESSAGES = yes; then
13610
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_LC_MESSAGES 1
13613 _ACEOF
13614
13615 fi
13616
13617
13618 # ----------------------- #
13619 # Checks for structures. #
13620 # ----------------------- #
13621
13622 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13623 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13624 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 cat >conftest.$ac_ext <<_ACEOF
13628 /* confdefs.h. */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13634 int
13635 main ()
13636 {
13637 static struct stat ac_aggr;
13638 if (ac_aggr.st_blocks)
13639 return 0;
13640 ;
13641 return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_member_struct_stat_st_blocks=yes
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 $ac_includes_default
13678 int
13679 main ()
13680 {
13681 static struct stat ac_aggr;
13682 if (sizeof ac_aggr.st_blocks)
13683 return 0;
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 (eval $ac_compile) 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_member_struct_stat_st_blocks=yes
13711 else
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_cv_member_struct_stat_st_blocks=no
13716 fi
13717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13720 fi
13721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13723 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13727 _ACEOF
13728
13729
13730 fi
13731 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13732 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13733 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 int
13744 main ()
13745 {
13746 static struct stat ac_aggr;
13747 if (ac_aggr.st_blksize)
13748 return 0;
13749 ;
13750 return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag"
13763 || test ! -s conftest.err'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_cv_member_struct_stat_st_blksize=yes
13776 else
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 int
13788 main ()
13789 {
13790 static struct stat ac_aggr;
13791 if (sizeof ac_aggr.st_blksize)
13792 return 0;
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_member_struct_stat_st_blksize=yes
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_cv_member_struct_stat_st_blksize=no
13825 fi
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13831 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13832 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13836 _ACEOF
13837
13838
13839 fi
13840
13841
13842 # ------------------ #
13843 # Checks for types. #
13844 # ------------------ #
13845
13846 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13847 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13848 if test "${ac_cv_type_signal+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 #include <sys/types.h>
13858 #include <signal.h>
13859 #ifdef signal
13860 # undef signal
13861 #endif
13862 #ifdef __cplusplus
13863 extern "C" void (*signal (int, void (*)(int)))(int);
13864 #else
13865 void (*signal ()) ();
13866 #endif
13867
13868 int
13869 main ()
13870 {
13871 int i;
13872 ;
13873 return 0;
13874 }
13875 _ACEOF
13876 rm -f conftest.$ac_objext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13878 (eval $ac_compile) 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -z "$ac_c_werror_flag"
13886 || test ! -s conftest.err'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_type_signal=void
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 ac_cv_type_signal=int
13904 fi
13905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13906 fi
13907 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13908 echo "${ECHO_T}$ac_cv_type_signal" >&6
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define RETSIGTYPE $ac_cv_type_signal
13912 _ACEOF
13913
13914
13915 echo "$as_me:$LINENO: checking for socklen_t" >&5
13916 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13917 if test "${ac_cv_type_socklen_t+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 #include <sys/types.h>
13927 #include <sys/socket.h>
13928
13929
13930 int
13931 main ()
13932 {
13933 if ((socklen_t *) 0)
13934 return 0;
13935 if (sizeof (socklen_t))
13936 return 0;
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_type_socklen_t=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_type_socklen_t=no
13969 fi
13970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13973 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13974 if test $ac_cv_type_socklen_t = yes; then
13975
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_SOCKLEN_T 1
13978 _ACEOF
13979
13980
13981 fi
13982
13983
13984 # ------------------------------------- #
13985 # Checks for compiler characteristics. #
13986 # ------------------------------------- #
13987
13988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13990 if test "${ac_cv_c_const+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999
14000 int
14001 main ()
14002 {
14003 /* FIXME: Include the comments suggested by Paul. */
14004 #ifndef __cplusplus
14005 /* Ultrix mips cc rejects this. */
14006 typedef int charset[2];
14007 const charset x;
14008 /* SunOS 4.1.1 cc rejects this. */
14009 char const *const *ccp;
14010 char **p;
14011 /* NEC SVR4.0.2 mips cc rejects this. */
14012 struct point {int x, y;};
14013 static struct point const zero = {0,0};
14014 /* AIX XL C 1.02.0.0 rejects this.
14015 It does not let you subtract one const X* pointer from another in
14016 an arm of an if-expression whose if-part is not a constant
14017 expression */
14018 const char *g = "string";
14019 ccp = &g + (g ? g-g : 0);
14020 /* HPUX 7.0 cc rejects these. */
14021 ++ccp;
14022 p = (char**) ccp;
14023 ccp = (char const *const *) p;
14024 { /* SCO 3.2v4 cc rejects this. */
14025 char *t;
14026 char const *s = 0 ? (char *) 0 : (char const *) 0;
14027
14028 *t++ = 0;
14029 }
14030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14031 int x[] = {25, 17};
14032 const int *foo = &x[0];
14033 ++foo;
14034 }
14035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14036 typedef const int *iptr;
14037 iptr p = 0;
14038 ++p;
14039 }
14040 { /* AIX XL C 1.02.0.0 rejects this saying
14041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14042 struct s { int j; const int *ap[3]; };
14043 struct s *b; b->j = 5;
14044 }
14045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14046 const int foo = 10;
14047 }
14048 #endif
14049
14050 ;
14051 return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag"
14064 || test ! -s conftest.err'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_cv_c_const=yes
14077 else
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 ac_cv_c_const=no
14082 fi
14083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14084 fi
14085 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14086 echo "${ECHO_T}$ac_cv_c_const" >&6
14087 if test $ac_cv_c_const = no; then
14088
14089 cat >>confdefs.h <<\_ACEOF
14090 #define const
14091 _ACEOF
14092
14093 fi
14094
14095 echo "$as_me:$LINENO: checking for inline" >&5
14096 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14097 if test "${ac_cv_c_inline+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 ac_cv_c_inline=no
14101 for ac_kw in inline __inline__ __inline; do
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #ifndef __cplusplus
14109 typedef int foo_t;
14110 static $ac_kw foo_t static_foo () {return 0; }
14111 $ac_kw foo_t foo () {return 0; }
14112 #endif
14113
14114 _ACEOF
14115 rm -f conftest.$ac_objext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_c_inline=$ac_kw; break
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 fi
14143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14144 done
14145
14146 fi
14147 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14148 echo "${ECHO_T}$ac_cv_c_inline" >&6
14149
14150
14151 case $ac_cv_c_inline in
14152 inline | yes) ;;
14153 *)
14154 case $ac_cv_c_inline in
14155 no) ac_val=;;
14156 *) ac_val=$ac_cv_c_inline;;
14157 esac
14158 cat >>confdefs.h <<_ACEOF
14159 #ifndef __cplusplus
14160 #define inline $ac_val
14161 #endif
14162 _ACEOF
14163 ;;
14164 esac
14165
14166 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14167 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14168 if test "${ac_cv_c_bigendian+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 # See if sys/param.h defines the BYTE_ORDER macro.
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <sys/types.h>
14179 #include <sys/param.h>
14180
14181 int
14182 main ()
14183 {
14184 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14185 bogus endian macros
14186 #endif
14187
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 # It does; now see whether it defined to BIG_ENDIAN or not.
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <sys/types.h>
14222 #include <sys/param.h>
14223
14224 int
14225 main ()
14226 {
14227 #if BYTE_ORDER != BIG_ENDIAN
14228 not big endian
14229 #endif
14230
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag"
14245 || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest.$ac_objext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 ac_cv_c_bigendian=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 ac_cv_c_bigendian=no
14263 fi
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 # It does not; compile a test program.
14270 if test "$cross_compiling" = yes; then
14271 # try to guess the endianness by grepping values into an object file
14272 ac_cv_c_bigendian=unknown
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h. */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14280 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14281 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14282 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14283 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14284 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14285 int
14286 main ()
14287 {
14288 _ascii (); _ebcdic ();
14289 ;
14290 return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14295 (eval $ac_compile) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14316 ac_cv_c_bigendian=yes
14317 fi
14318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14319 if test "$ac_cv_c_bigendian" = unknown; then
14320 ac_cv_c_bigendian=no
14321 else
14322 # finding both strings is unlikely to happen, but who knows?
14323 ac_cv_c_bigendian=unknown
14324 fi
14325 fi
14326 else
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 fi
14331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332 else
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 int
14340 main ()
14341 {
14342 /* Are we little or big endian? From Harbison&Steele. */
14343 union
14344 {
14345 long l;
14346 char c[sizeof (long)];
14347 } u;
14348 u.l = 1;
14349 exit (u.c[sizeof (long) - 1] == 1);
14350 }
14351 _ACEOF
14352 rm -f conftest$ac_exeext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_cv_c_bigendian=no
14364 else
14365 echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ( exit $ac_status )
14370 ac_cv_c_bigendian=yes
14371 fi
14372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 fi
14375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14379 case $ac_cv_c_bigendian in
14380 yes)
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define WORDS_BIGENDIAN 1
14384 _ACEOF
14385 ;;
14386 no)
14387 ;;
14388 *)
14389 { { echo "$as_me:$LINENO: error: unknown endianness
14390 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14391 echo "$as_me: error: unknown endianness
14392 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14393 { (exit 1); exit 1; }; } ;;
14394 esac
14395
14396
14397 # ------------------------------ #
14398 # Checks for library functions. #
14399 # ------------------------------ #
14400
14401 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14402 # for constant arguments. Useless!
14403 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14404 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14405 if test "${ac_cv_working_alloca_h+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <alloca.h>
14415 int
14416 main ()
14417 {
14418 char *p = (char *) alloca (2 * sizeof (int));
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest$ac_exeext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_cv_working_alloca_h=yes
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_cv_working_alloca_h=no
14451 fi
14452 rm -f conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454 fi
14455 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14456 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14457 if test $ac_cv_working_alloca_h = yes; then
14458
14459 cat >>confdefs.h <<\_ACEOF
14460 #define HAVE_ALLOCA_H 1
14461 _ACEOF
14462
14463 fi
14464
14465 echo "$as_me:$LINENO: checking for alloca" >&5
14466 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14467 if test "${ac_cv_func_alloca_works+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #ifdef __GNUC__
14477 # define alloca __builtin_alloca
14478 #else
14479 # ifdef _MSC_VER
14480 # include <malloc.h>
14481 # define alloca _alloca
14482 # else
14483 # if HAVE_ALLOCA_H
14484 # include <alloca.h>
14485 # else
14486 # ifdef _AIX
14487 #pragma alloca
14488 # else
14489 # ifndef alloca /* predefined by HP cc +Olibcalls */
14490 char *alloca ();
14491 # endif
14492 # endif
14493 # endif
14494 # endif
14495 #endif
14496
14497 int
14498 main ()
14499 {
14500 char *p = (char *) alloca (1);
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14507 (eval $ac_link) 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 ac_cv_func_alloca_works=yes
14528 else
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_cv_func_alloca_works=no
14533 fi
14534 rm -f conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 fi
14537 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14538 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14539
14540 if test $ac_cv_func_alloca_works = yes; then
14541
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_ALLOCA 1
14544 _ACEOF
14545
14546 else
14547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14548 # that cause trouble. Some versions do not even contain alloca or
14549 # contain a buggy version. If you still want to use their alloca,
14550 # use ar to extract alloca.o from them instead of compiling alloca.c.
14551
14552 ALLOCA=alloca.$ac_objext
14553
14554 cat >>confdefs.h <<\_ACEOF
14555 #define C_ALLOCA 1
14556 _ACEOF
14557
14558
14559 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14560 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14561 if test "${ac_cv_os_cray+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14570 #if defined(CRAY) && ! defined(CRAY2)
14571 webecray
14572 #else
14573 wenotbecray
14574 #endif
14575
14576 _ACEOF
14577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14578 $EGREP "webecray" >/dev/null 2>&1; then
14579 ac_cv_os_cray=yes
14580 else
14581 ac_cv_os_cray=no
14582 fi
14583 rm -f conftest*
14584
14585 fi
14586 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14587 echo "${ECHO_T}$ac_cv_os_cray" >&6
14588 if test $ac_cv_os_cray = yes; then
14589 for ac_func in _getb67 GETB67 getb67; do
14590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 echo "$as_me:$LINENO: checking for $ac_func" >&5
14592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_var+set}\" = set"; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14604 #define $ac_func innocuous_$ac_func
14605
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func (); below.
14608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609 <limits.h> exists even on freestanding compilers. */
14610
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14616
14617 #undef $ac_func
14618
14619 /* Override any gcc2 internal prototype to avoid an error. */
14620 #ifdef __cplusplus
14621 extern "C"
14622 {
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != $ac_func;
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 eval "$as_ac_var=yes"
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 eval "$as_ac_var=no"
14675 fi
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define CRAY_STACKSEG_END $ac_func
14685 _ACEOF
14686
14687 break
14688 fi
14689
14690 done
14691 fi
14692
14693 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14694 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14695 if test "${ac_cv_c_stack_direction+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 if test "$cross_compiling" = yes; then
14699 ac_cv_c_stack_direction=0
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 int
14708 find_stack_direction ()
14709 {
14710 static char *addr = 0;
14711 auto char dummy;
14712 if (addr == 0)
14713 {
14714 addr = &dummy;
14715 return find_stack_direction ();
14716 }
14717 else
14718 return (&dummy > addr) ? 1 : -1;
14719 }
14720
14721 int
14722 main ()
14723 {
14724 exit (find_stack_direction () < 0);
14725 }
14726 _ACEOF
14727 rm -f conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_c_stack_direction=1
14739 else
14740 echo "$as_me: program exited with status $ac_status" >&5
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ( exit $ac_status )
14745 ac_cv_c_stack_direction=-1
14746 fi
14747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14748 fi
14749 fi
14750 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14751 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14752
14753 cat >>confdefs.h <<_ACEOF
14754 #define STACK_DIRECTION $ac_cv_c_stack_direction
14755 _ACEOF
14756
14757
14758 fi
14759
14760
14761
14762 for ac_header in stdlib.h unistd.h
14763 do
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14766 echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 fi
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14773 else
14774 # Is the header compilable?
14775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 $ac_includes_default
14784 #include <$ac_header>
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest.$ac_objext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_header_compiler=yes
14809 else
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 ac_header_compiler=no
14814 fi
14815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14817 echo "${ECHO_T}$ac_header_compiler" >&6
14818
14819 # Is the header present?
14820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 #include <$ac_header>
14829 _ACEOF
14830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14832 ac_status=$?
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } >/dev/null; then
14838 if test -s conftest.err; then
14839 ac_cpp_err=$ac_c_preproc_warn_flag
14840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14841 else
14842 ac_cpp_err=
14843 fi
14844 else
14845 ac_cpp_err=yes
14846 fi
14847 if test -z "$ac_cpp_err"; then
14848 ac_header_preproc=yes
14849 else
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_header_preproc=no
14854 fi
14855 rm -f conftest.err conftest.$ac_ext
14856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857 echo "${ECHO_T}$ac_header_preproc" >&6
14858
14859 # So? What about this header?
14860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861 yes:no: )
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866 ac_header_preproc=yes
14867 ;;
14868 no:yes:* )
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881 (
14882 cat <<\_ASBOX
14883 ## ------------------------------------------ ##
14884 ## Report this to the AC_PACKAGE_NAME lists. ##
14885 ## ------------------------------------------ ##
14886 _ASBOX
14887 ) |
14888 sed "s/^/$as_me: WARNING: /" >&2
14889 ;;
14890 esac
14891 echo "$as_me:$LINENO: checking for $ac_header" >&5
14892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 eval "$as_ac_Header=\$ac_header_preproc"
14897 fi
14898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14900
14901 fi
14902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14903 cat >>confdefs.h <<_ACEOF
14904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14905 _ACEOF
14906
14907 fi
14908
14909 done
14910
14911
14912 for ac_func in getpagesize
14913 do
14914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14915 echo "$as_me:$LINENO: checking for $ac_func" >&5
14916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_var+set}\" = set"; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h. */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14928 #define $ac_func innocuous_$ac_func
14929
14930 /* System header to define __stub macros and hopefully few prototypes,
14931 which can conflict with char $ac_func (); below.
14932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14933 <limits.h> exists even on freestanding compilers. */
14934
14935 #ifdef __STDC__
14936 # include <limits.h>
14937 #else
14938 # include <assert.h>
14939 #endif
14940
14941 #undef $ac_func
14942
14943 /* Override any gcc2 internal prototype to avoid an error. */
14944 #ifdef __cplusplus
14945 extern "C"
14946 {
14947 #endif
14948 /* We use char because int might match the return type of a gcc2
14949 builtin and then its argument prototype would still apply. */
14950 char $ac_func ();
14951 /* The GNU C library defines this for functions which it implements
14952 to always fail with ENOSYS. Some functions are actually named
14953 something starting with __ and the normal name is an alias. */
14954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14955 choke me
14956 #else
14957 char (*f) () = $ac_func;
14958 #endif
14959 #ifdef __cplusplus
14960 }
14961 #endif
14962
14963 int
14964 main ()
14965 {
14966 return f != $ac_func;
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 (eval $ac_link) 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag"
14981 || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest$ac_exeext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 eval "$as_ac_var=yes"
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 eval "$as_ac_var=no"
14999 fi
15000 rm -f conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 fi
15003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15005 if test `eval echo '${'$as_ac_var'}'` = yes; then
15006 cat >>confdefs.h <<_ACEOF
15007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15008 _ACEOF
15009
15010 fi
15011 done
15012
15013 echo "$as_me:$LINENO: checking for working mmap" >&5
15014 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15015 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018 if test "$cross_compiling" = yes; then
15019 ac_cv_func_mmap_fixed_mapped=no
15020 else
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 $ac_includes_default
15028 /* malloc might have been renamed as rpl_malloc. */
15029 #undef malloc
15030
15031 /* Thanks to Mike Haertel and Jim Avera for this test.
15032 Here is a matrix of mmap possibilities:
15033 mmap private not fixed
15034 mmap private fixed at somewhere currently unmapped
15035 mmap private fixed at somewhere already mapped
15036 mmap shared not fixed
15037 mmap shared fixed at somewhere currently unmapped
15038 mmap shared fixed at somewhere already mapped
15039 For private mappings, we should verify that changes cannot be read()
15040 back from the file, nor mmap's back from the file at a different
15041 address. (There have been systems where private was not correctly
15042 implemented like the infamous i386 svr4.0, and systems where the
15043 VM page cache was not coherent with the file system buffer cache
15044 like early versions of FreeBSD and possibly contemporary NetBSD.)
15045 For shared mappings, we should conversely verify that changes get
15046 propagated back to all the places they're supposed to be.
15047
15048 Grep wants private fixed already mapped.
15049 The main things grep needs to know about mmap are:
15050 * does it exist and is it safe to write into the mmap'd area
15051 * how to use it (BSD variants) */
15052
15053 #include <fcntl.h>
15054 #include <sys/mman.h>
15055
15056 #if !STDC_HEADERS && !HAVE_STDLIB_H
15057 char *malloc ();
15058 #endif
15059
15060 /* This mess was copied from the GNU getpagesize.h. */
15061 #if !HAVE_GETPAGESIZE
15062 /* Assume that all systems that can run configure have sys/param.h. */
15063 # if !HAVE_SYS_PARAM_H
15064 # define HAVE_SYS_PARAM_H 1
15065 # endif
15066
15067 # ifdef _SC_PAGESIZE
15068 # define getpagesize() sysconf(_SC_PAGESIZE)
15069 # else /* no _SC_PAGESIZE */
15070 # if HAVE_SYS_PARAM_H
15071 # include <sys/param.h>
15072 # ifdef EXEC_PAGESIZE
15073 # define getpagesize() EXEC_PAGESIZE
15074 # else /* no EXEC_PAGESIZE */
15075 # ifdef NBPG
15076 # define getpagesize() NBPG * CLSIZE
15077 # ifndef CLSIZE
15078 # define CLSIZE 1
15079 # endif /* no CLSIZE */
15080 # else /* no NBPG */
15081 # ifdef NBPC
15082 # define getpagesize() NBPC
15083 # else /* no NBPC */
15084 # ifdef PAGESIZE
15085 # define getpagesize() PAGESIZE
15086 # endif /* PAGESIZE */
15087 # endif /* no NBPC */
15088 # endif /* no NBPG */
15089 # endif /* no EXEC_PAGESIZE */
15090 # else /* no HAVE_SYS_PARAM_H */
15091 # define getpagesize() 8192 /* punt totally */
15092 # endif /* no HAVE_SYS_PARAM_H */
15093 # endif /* no _SC_PAGESIZE */
15094
15095 #endif /* no HAVE_GETPAGESIZE */
15096
15097 int
15098 main ()
15099 {
15100 char *data, *data2, *data3;
15101 int i, pagesize;
15102 int fd;
15103
15104 pagesize = getpagesize ();
15105
15106 /* First, make a file with some known garbage in it. */
15107 data = (char *) malloc (pagesize);
15108 if (!data)
15109 exit (1);
15110 for (i = 0; i < pagesize; ++i)
15111 *(data + i) = rand ();
15112 umask (0);
15113 fd = creat ("conftest.mmap", 0600);
15114 if (fd < 0)
15115 exit (1);
15116 if (write (fd, data, pagesize) != pagesize)
15117 exit (1);
15118 close (fd);
15119
15120 /* Next, try to mmap the file at a fixed address which already has
15121 something else allocated at it. If we can, also make sure that
15122 we see the same garbage. */
15123 fd = open ("conftest.mmap", O_RDWR);
15124 if (fd < 0)
15125 exit (1);
15126 data2 = (char *) malloc (2 * pagesize);
15127 if (!data2)
15128 exit (1);
15129 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15130 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15131 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15132 exit (1);
15133 for (i = 0; i < pagesize; ++i)
15134 if (*(data + i) != *(data2 + i))
15135 exit (1);
15136
15137 /* Finally, make sure that changes to the mapped area do not
15138 percolate back to the file as seen by read(). (This is a bug on
15139 some variants of i386 svr4.0.) */
15140 for (i = 0; i < pagesize; ++i)
15141 *(data2 + i) = *(data2 + i) + 1;
15142 data3 = (char *) malloc (pagesize);
15143 if (!data3)
15144 exit (1);
15145 if (read (fd, data3, pagesize) != pagesize)
15146 exit (1);
15147 for (i = 0; i < pagesize; ++i)
15148 if (*(data + i) != *(data3 + i))
15149 exit (1);
15150 close (fd);
15151 exit (0);
15152 }
15153 _ACEOF
15154 rm -f conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_func_mmap_fixed_mapped=yes
15166 else
15167 echo "$as_me: program exited with status $ac_status" >&5
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ( exit $ac_status )
15172 ac_cv_func_mmap_fixed_mapped=no
15173 fi
15174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15175 fi
15176 fi
15177 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15178 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15179 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15180
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_MMAP 1
15183 _ACEOF
15184
15185 fi
15186 rm -f conftest.mmap
15187
15188 echo "$as_me:$LINENO: checking for pid_t" >&5
15189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15190 if test "${ac_cv_type_pid_t+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 $ac_includes_default
15200 int
15201 main ()
15202 {
15203 if ((pid_t *) 0)
15204 return 0;
15205 if (sizeof (pid_t))
15206 return 0;
15207 ;
15208 return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213 (eval $ac_compile) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag"
15221 || test ! -s conftest.err'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_type_pid_t=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ac_cv_type_pid_t=no
15239 fi
15240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15241 fi
15242 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15243 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15244 if test $ac_cv_type_pid_t = yes; then
15245 :
15246 else
15247
15248 cat >>confdefs.h <<_ACEOF
15249 #define pid_t int
15250 _ACEOF
15251
15252 fi
15253
15254
15255
15256 for ac_header in unistd.h vfork.h
15257 do
15258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15260 echo "$as_me:$LINENO: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 fi
15265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15267 else
15268 # Is the header compilable?
15269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h. */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 $ac_includes_default
15278 #include <$ac_header>
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282 (eval $ac_compile) 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_header_compiler=yes
15303 else
15304 echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15306
15307 ac_header_compiler=no
15308 fi
15309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15311 echo "${ECHO_T}$ac_header_compiler" >&6
15312
15313 # Is the header present?
15314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 #include <$ac_header>
15323 _ACEOF
15324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } >/dev/null; then
15332 if test -s conftest.err; then
15333 ac_cpp_err=$ac_c_preproc_warn_flag
15334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15335 else
15336 ac_cpp_err=
15337 fi
15338 else
15339 ac_cpp_err=yes
15340 fi
15341 if test -z "$ac_cpp_err"; then
15342 ac_header_preproc=yes
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 ac_header_preproc=no
15348 fi
15349 rm -f conftest.err conftest.$ac_ext
15350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15351 echo "${ECHO_T}$ac_header_preproc" >&6
15352
15353 # So? What about this header?
15354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15355 yes:no: )
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15360 ac_header_preproc=yes
15361 ;;
15362 no:yes:* )
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15375 (
15376 cat <<\_ASBOX
15377 ## ------------------------------------------ ##
15378 ## Report this to the AC_PACKAGE_NAME lists. ##
15379 ## ------------------------------------------ ##
15380 _ASBOX
15381 ) |
15382 sed "s/^/$as_me: WARNING: /" >&2
15383 ;;
15384 esac
15385 echo "$as_me:$LINENO: checking for $ac_header" >&5
15386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390 eval "$as_ac_Header=\$ac_header_preproc"
15391 fi
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15394
15395 fi
15396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15399 _ACEOF
15400
15401 fi
15402
15403 done
15404
15405
15406
15407 for ac_func in fork vfork
15408 do
15409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15410 echo "$as_me:$LINENO: checking for $ac_func" >&5
15411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15412 if eval "test \"\${$as_ac_var+set}\" = set"; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15423 #define $ac_func innocuous_$ac_func
15424
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char $ac_func (); below.
15427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15428 <limits.h> exists even on freestanding compilers. */
15429
15430 #ifdef __STDC__
15431 # include <limits.h>
15432 #else
15433 # include <assert.h>
15434 #endif
15435
15436 #undef $ac_func
15437
15438 /* Override any gcc2 internal prototype to avoid an error. */
15439 #ifdef __cplusplus
15440 extern "C"
15441 {
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15445 char $ac_func ();
15446 /* The GNU C library defines this for functions which it implements
15447 to always fail with ENOSYS. Some functions are actually named
15448 something starting with __ and the normal name is an alias. */
15449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 choke me
15451 #else
15452 char (*f) () = $ac_func;
15453 #endif
15454 #ifdef __cplusplus
15455 }
15456 #endif
15457
15458 int
15459 main ()
15460 {
15461 return f != $ac_func;
15462 ;
15463 return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext conftest$ac_exeext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15468 (eval $ac_link) 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -z "$ac_c_werror_flag"
15476 || test ! -s conftest.err'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; } &&
15482 { ac_try='test -s conftest$ac_exeext'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 eval "$as_ac_var=yes"
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 eval "$as_ac_var=no"
15494 fi
15495 rm -f conftest.err conftest.$ac_objext \
15496 conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15500 if test `eval echo '${'$as_ac_var'}'` = yes; then
15501 cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 _ACEOF
15504
15505 fi
15506 done
15507
15508 if test "x$ac_cv_func_fork" = xyes; then
15509 echo "$as_me:$LINENO: checking for working fork" >&5
15510 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15511 if test "${ac_cv_func_fork_works+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 if test "$cross_compiling" = yes; then
15515 ac_cv_func_fork_works=cross
15516 else
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* By Ruediger Kuhlmann. */
15519 #include <sys/types.h>
15520 #if HAVE_UNISTD_H
15521 # include <unistd.h>
15522 #endif
15523 /* Some systems only have a dummy stub for fork() */
15524 int main ()
15525 {
15526 if (fork() < 0)
15527 exit (1);
15528 exit (0);
15529 }
15530 _ACEOF
15531 rm -f conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; }; then
15542 ac_cv_func_fork_works=yes
15543 else
15544 echo "$as_me: program exited with status $ac_status" >&5
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 ( exit $ac_status )
15549 ac_cv_func_fork_works=no
15550 fi
15551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15552 fi
15553 fi
15554 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15555 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15556
15557 else
15558 ac_cv_func_fork_works=$ac_cv_func_fork
15559 fi
15560 if test "x$ac_cv_func_fork_works" = xcross; then
15561 case $host in
15562 *-*-amigaos* | *-*-msdosdjgpp*)
15563 # Override, as these systems have only a dummy fork() stub
15564 ac_cv_func_fork_works=no
15565 ;;
15566 *)
15567 ac_cv_func_fork_works=yes
15568 ;;
15569 esac
15570 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15571 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15572 fi
15573 ac_cv_func_vfork_works=$ac_cv_func_vfork
15574 if test "x$ac_cv_func_vfork" = xyes; then
15575 echo "$as_me:$LINENO: checking for working vfork" >&5
15576 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15577 if test "${ac_cv_func_vfork_works+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580 if test "$cross_compiling" = yes; then
15581 ac_cv_func_vfork_works=cross
15582 else
15583 cat >conftest.$ac_ext <<_ACEOF
15584 /* confdefs.h. */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589 /* Thanks to Paul Eggert for this test. */
15590 #include <stdio.h>
15591 #include <stdlib.h>
15592 #include <sys/types.h>
15593 #include <sys/stat.h>
15594 #include <sys/wait.h>
15595 #if HAVE_UNISTD_H
15596 # include <unistd.h>
15597 #endif
15598 #if HAVE_VFORK_H
15599 # include <vfork.h>
15600 #endif
15601 /* On some sparc systems, changes by the child to local and incoming
15602 argument registers are propagated back to the parent. The compiler
15603 is told about this with #include <vfork.h>, but some compilers
15604 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15605 static variable whose address is put into a register that is
15606 clobbered by the vfork. */
15607 static void
15608 #ifdef __cplusplus
15609 sparc_address_test (int arg)
15610 # else
15611 sparc_address_test (arg) int arg;
15612 #endif
15613 {
15614 static pid_t child;
15615 if (!child) {
15616 child = vfork ();
15617 if (child < 0) {
15618 perror ("vfork");
15619 _exit(2);
15620 }
15621 if (!child) {
15622 arg = getpid();
15623 write(-1, "", 0);
15624 _exit (arg);
15625 }
15626 }
15627 }
15628
15629 int
15630 main ()
15631 {
15632 pid_t parent = getpid ();
15633 pid_t child;
15634
15635 sparc_address_test (0);
15636
15637 child = vfork ();
15638
15639 if (child == 0) {
15640 /* Here is another test for sparc vfork register problems. This
15641 test uses lots of local variables, at least as many local
15642 variables as main has allocated so far including compiler
15643 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15644 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15645 reuse the register of parent for one of the local variables,
15646 since it will think that parent can't possibly be used any more
15647 in this routine. Assigning to the local variable will thus
15648 munge parent in the parent process. */
15649 pid_t
15650 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15651 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15652 /* Convince the compiler that p..p7 are live; otherwise, it might
15653 use the same hardware register for all 8 local variables. */
15654 if (p != p1 || p != p2 || p != p3 || p != p4
15655 || p != p5 || p != p6 || p != p7)
15656 _exit(1);
15657
15658 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15659 from child file descriptors. If the child closes a descriptor
15660 before it execs or exits, this munges the parent's descriptor
15661 as well. Test for this by closing stdout in the child. */
15662 _exit(close(fileno(stdout)) != 0);
15663 } else {
15664 int status;
15665 struct stat st;
15666
15667 while (wait(&status) != child)
15668 ;
15669 exit(
15670 /* Was there some problem with vforking? */
15671 child < 0
15672
15673 /* Did the child fail? (This shouldn't happen.) */
15674 || status
15675
15676 /* Did the vfork/compiler bug occur? */
15677 || parent != getpid()
15678
15679 /* Did the file descriptor bug occur? */
15680 || fstat(fileno(stdout), &st) != 0
15681 );
15682 }
15683 }
15684 _ACEOF
15685 rm -f conftest$ac_exeext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15687 (eval $ac_link) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_cv_func_vfork_works=yes
15697 else
15698 echo "$as_me: program exited with status $ac_status" >&5
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ( exit $ac_status )
15703 ac_cv_func_vfork_works=no
15704 fi
15705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15706 fi
15707 fi
15708 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15709 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15710
15711 fi;
15712 if test "x$ac_cv_func_fork_works" = xcross; then
15713 ac_cv_func_vfork_works=$ac_cv_func_vfork
15714 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15715 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15716 fi
15717
15718 if test "x$ac_cv_func_vfork_works" = xyes; then
15719
15720 cat >>confdefs.h <<\_ACEOF
15721 #define HAVE_WORKING_VFORK 1
15722 _ACEOF
15723
15724 else
15725
15726 cat >>confdefs.h <<\_ACEOF
15727 #define vfork fork
15728 _ACEOF
15729
15730 fi
15731 if test "x$ac_cv_func_fork_works" = xyes; then
15732
15733 cat >>confdefs.h <<\_ACEOF
15734 #define HAVE_WORKING_FORK 1
15735 _ACEOF
15736
15737 fi
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760 for ac_func in canonicalize_file_name realpath getrusage getuid \
15761 getgid poll pread64 sbrk setpgid setpgrp setsid \
15762 sigaction sigprocmask sigsetmask socketpair syscall \
15763 ttrace wborder setlocale iconvlist libiconvlist
15764 do
15765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15766 echo "$as_me:$LINENO: checking for $ac_func" >&5
15767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15768 if eval "test \"\${$as_ac_var+set}\" = set"; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h. */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15779 #define $ac_func innocuous_$ac_func
15780
15781 /* System header to define __stub macros and hopefully few prototypes,
15782 which can conflict with char $ac_func (); below.
15783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15784 <limits.h> exists even on freestanding compilers. */
15785
15786 #ifdef __STDC__
15787 # include <limits.h>
15788 #else
15789 # include <assert.h>
15790 #endif
15791
15792 #undef $ac_func
15793
15794 /* Override any gcc2 internal prototype to avoid an error. */
15795 #ifdef __cplusplus
15796 extern "C"
15797 {
15798 #endif
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15801 char $ac_func ();
15802 /* The GNU C library defines this for functions which it implements
15803 to always fail with ENOSYS. Some functions are actually named
15804 something starting with __ and the normal name is an alias. */
15805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15806 choke me
15807 #else
15808 char (*f) () = $ac_func;
15809 #endif
15810 #ifdef __cplusplus
15811 }
15812 #endif
15813
15814 int
15815 main ()
15816 {
15817 return f != $ac_func;
15818 ;
15819 return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag"
15832 || test ! -s conftest.err'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest$ac_exeext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 eval "$as_ac_var=yes"
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 eval "$as_ac_var=no"
15850 fi
15851 rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 fi
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15856 if test `eval echo '${'$as_ac_var'}'` = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15859 _ACEOF
15860
15861 fi
15862 done
15863
15864
15865 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15866 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15867 if test "${am_cv_langinfo_codeset+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <langinfo.h>
15877 int
15878 main ()
15879 {
15880 char* cs = nl_langinfo(CODESET);
15881 ;
15882 return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest$ac_exeext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 am_cv_langinfo_codeset=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 am_cv_langinfo_codeset=no
15913 fi
15914 rm -f conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15916
15917 fi
15918 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15919 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15920 if test $am_cv_langinfo_codeset = yes; then
15921
15922 cat >>confdefs.h <<\_ACEOF
15923 #define HAVE_LANGINFO_CODESET 1
15924 _ACEOF
15925
15926 fi
15927
15928
15929 # Check the return and argument types of ptrace. No canned test for
15930 # this, so roll our own.
15931 gdb_ptrace_headers='
15932 #if HAVE_SYS_TYPES_H
15933 # include <sys/types.h>
15934 #endif
15935 #if HAVE_SYS_PTRACE_H
15936 # include <sys/ptrace.h>
15937 #endif
15938 #if HAVE_UNISTD_H
15939 # include <unistd.h>
15940 #endif
15941 '
15942 # There is no point in checking if we don't have a prototype.
15943 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15944 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15945 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $gdb_ptrace_headers
15955
15956 int
15957 main ()
15958 {
15959 #ifndef ptrace
15960 char *p = (char *) ptrace;
15961 #endif
15962
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -z "$ac_c_werror_flag"
15977 || test ! -s conftest.err'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_have_decl_ptrace=yes
15990 else
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 ac_cv_have_decl_ptrace=no
15995 fi
15996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15997 fi
15998 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15999 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16000 if test $ac_cv_have_decl_ptrace = yes; then
16001
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_DECL_PTRACE 1
16004 _ACEOF
16005
16006
16007 else
16008 cat >>confdefs.h <<_ACEOF
16009 #define HAVE_DECL_PTRACE 0
16010 _ACEOF
16011
16012
16013 : ${gdb_cv_func_ptrace_ret='int'}
16014 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16015
16016 fi
16017
16018
16019 # Check return type. Varargs (used on GNU/Linux) conflict with the
16020 # empty argument list, so check for that explicitly.
16021 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16022 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16023 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 $gdb_ptrace_headers
16033 int
16034 main ()
16035 {
16036 extern long ptrace (enum __ptrace_request, ...);
16037 ;
16038 return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 gdb_cv_func_ptrace_ret='long'
16064 else
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 $gdb_ptrace_headers
16075 int
16076 main ()
16077 {
16078 extern int ptrace ();
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 gdb_cv_func_ptrace_ret='int'
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 gdb_cv_func_ptrace_ret='long'
16111 fi
16112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16115 fi
16116 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16117 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16121 _ACEOF
16122
16123 # Check argument types.
16124 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16125 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16126 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129
16130 cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h. */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 $gdb_ptrace_headers
16137 int
16138 main ()
16139 {
16140 extern long ptrace (enum __ptrace_request, ...);
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 gdb_cv_func_ptrace_args='int,int,long,long'
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172
16173 for gdb_arg1 in 'int' 'long'; do
16174 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16175 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16176 for gdb_arg4 in 'int' 'long'; do
16177 cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h. */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 $gdb_ptrace_headers
16184 int
16185 main ()
16186 {
16187
16188 extern $gdb_cv_func_ptrace_ret
16189 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16190
16191 ;
16192 return 0;
16193 }
16194 _ACEOF
16195 rm -f conftest.$ac_objext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_c_werror_flag"
16205 || test ! -s conftest.err'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; } &&
16211 { ac_try='test -s conftest.$ac_objext'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16218 break 4;
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 fi
16224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16225 for gdb_arg5 in 'int *' 'int' 'long'; do
16226 cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $gdb_ptrace_headers
16233 int
16234 main ()
16235 {
16236
16237 extern $gdb_cv_func_ptrace_ret
16238 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16239
16240 ;
16241 return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>conftest.er1
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266
16267 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16268 break 5;
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 fi
16274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16275 done
16276 done
16277 done
16278 done
16279 done
16280 # Provide a safe default value.
16281 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16282
16283 fi
16284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16287 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16288 ac_save_IFS=$IFS; IFS=','
16289 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16290 IFS=$ac_save_IFS
16291 shift
16292
16293 cat >>confdefs.h <<_ACEOF
16294 #define PTRACE_TYPE_ARG3 $3
16295 _ACEOF
16296
16297 if test -n "$5"; then
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define PTRACE_TYPE_ARG5 $5
16301 _ACEOF
16302
16303 fi
16304
16305 if test "$cross_compiling" = no; then
16306 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16307 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16308 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311 if test "$cross_compiling" = yes; then
16312 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16313 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16314 { (exit 1); exit 1; }; }
16315 else
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h. */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 #if HAVE_UNISTD_H
16323 # include <unistd.h>
16324 #endif
16325
16326 int
16327 main ()
16328 {
16329 /* If this system has a BSD-style setpgrp which takes arguments,
16330 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16331 exit successfully. */
16332 exit (setpgrp (1,1) == -1 ? 0 : 1);
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_func_setpgrp_void=no
16349 else
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ( exit $ac_status )
16355 ac_cv_func_setpgrp_void=yes
16356 fi
16357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16358 fi
16359 fi
16360 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16361 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16362 if test $ac_cv_func_setpgrp_void = yes; then
16363
16364 cat >>confdefs.h <<\_ACEOF
16365 #define SETPGRP_VOID 1
16366 _ACEOF
16367
16368 fi
16369
16370 else
16371 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16372 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16373 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382
16383 #include <unistd.h>
16384
16385 int
16386 main ()
16387 {
16388
16389 if (setpgrp(1,1) == -1)
16390 exit (0);
16391 else
16392 exit (1);
16393
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -z "$ac_c_werror_flag"
16408 || test ! -s conftest.err'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_func_setpgrp_void=no
16421 else
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 ac_cv_func_setpgrp_void=yes
16426 fi
16427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16428 fi
16429 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16430 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16431 if test $ac_cv_func_setpgrp_void = yes; then
16432 cat >>confdefs.h <<\_ACEOF
16433 #define SETPGRP_VOID 1
16434 _ACEOF
16435
16436 fi
16437 fi
16438
16439 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16440 # since sigsetjmp might only be defined as a macro.
16441 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16442 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16443 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452
16453 #include <setjmp.h>
16454
16455 int
16456 main ()
16457 {
16458 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try='test -s conftest.$ac_objext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 gdb_cv_func_sigsetjmp=yes
16486 else
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 gdb_cv_func_sigsetjmp=no
16491 fi
16492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16495 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16496 if test $gdb_cv_func_sigsetjmp = yes; then
16497
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_SIGSETJMP 1
16500 _ACEOF
16501
16502 fi
16503
16504 # Assume we'll default to using the included libiberty regex.
16505 gdb_use_included_regex=yes
16506
16507 # However, if the system regex is GNU regex, then default to *not*
16508 # using the included regex.
16509 echo "$as_me:$LINENO: checking for GNU regex" >&5
16510 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16511 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <gnu-versions.h>
16521 int
16522 main ()
16523 {
16524 #define REGEX_INTERFACE_VERSION 1
16525 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16526 # error "Version mismatch"
16527 #endif
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534 (eval $ac_compile) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag"
16542 || test ! -s conftest.err'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 gdb_cv_have_gnu_regex=yes
16555 else
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 gdb_cv_have_gnu_regex=no
16560 fi
16561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562 fi
16563 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16564 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16565 if test $gdb_cv_have_gnu_regex = yes; then
16566 gdb_use_included_regex=no
16567 fi
16568
16569
16570 # Check whether --with-included-regex or --without-included-regex was given.
16571 if test "${with_included_regex+set}" = set; then
16572 withval="$with_included_regex"
16573 gdb_with_regex=$withval
16574 else
16575 gdb_with_regex=$gdb_use_included_regex
16576 fi;
16577 if test "$gdb_with_regex" = yes; then
16578
16579 cat >>confdefs.h <<\_ACEOF
16580 #define USE_INCLUDED_REGEX 1
16581 _ACEOF
16582
16583 fi
16584
16585 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16586 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16587 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16588 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591 cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h. */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 #include <sys/param.h>
16598 #include <sys/proc.h>
16599
16600
16601 int
16602 main ()
16603 {
16604 static struct thread ac_aggr;
16605 if (ac_aggr.td_pcb)
16606 return 0;
16607 ;
16608 return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_member_struct_thread_td_pcb=yes
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h. */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16644 #include <sys/param.h>
16645 #include <sys/proc.h>
16646
16647
16648 int
16649 main ()
16650 {
16651 static struct thread ac_aggr;
16652 if (sizeof ac_aggr.td_pcb)
16653 return 0;
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag"
16668 || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_cv_member_struct_thread_td_pcb=yes
16681 else
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_cv_member_struct_thread_td_pcb=no
16686 fi
16687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688 fi
16689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16690 fi
16691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16692 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16693 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16694
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_STRUCT_THREAD_TD_PCB 1
16697 _ACEOF
16698
16699
16700 fi
16701
16702
16703 # See if <sys/lwp.h> defines `struct lwp`.
16704 echo "$as_me:$LINENO: checking for struct lwp" >&5
16705 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16706 if test "${gdb_cv_struct_lwp+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <sys/param.h>
16716 #include <sys/lwp.h>
16717 int
16718 main ()
16719 {
16720 struct lwp l;
16721 ;
16722 return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest.$ac_objext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 gdb_cv_struct_lwp=yes
16748 else
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 gdb_cv_struct_lwp=no
16753 fi
16754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16757 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16758 if test $gdb_cv_struct_lwp = yes; then
16759
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_STRUCT_LWP 1
16762 _ACEOF
16763
16764 fi
16765
16766 # See if <machine/reg.h> degines `struct reg'.
16767 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16768 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16769 if test "${gdb_cv_struct_reg+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 #include <sys/types.h>
16779 #include <machine/reg.h>
16780 int
16781 main ()
16782 {
16783 struct reg r;
16784 ;
16785 return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -z "$ac_c_werror_flag"
16798 || test ! -s conftest.err'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest.$ac_objext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 gdb_cv_struct_reg=yes
16811 else
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 gdb_cv_struct_reg=no
16816 fi
16817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16818 fi
16819 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16820 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16821 if test $gdb_cv_struct_reg = yes; then
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_STRUCT_REG 1
16825 _ACEOF
16826
16827 fi
16828
16829 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16830 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16831 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16832 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16833 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 #include <machine/reg.h>
16843
16844 int
16845 main ()
16846 {
16847 static struct reg ac_aggr;
16848 if (ac_aggr.r_fs)
16849 return 0;
16850 ;
16851 return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_member_struct_reg_r_fs=yes
16877 else
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 #include <machine/reg.h>
16888
16889 int
16890 main ()
16891 {
16892 static struct reg ac_aggr;
16893 if (sizeof ac_aggr.r_fs)
16894 return 0;
16895 ;
16896 return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16901 (eval $ac_compile) 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag"
16909 || test ! -s conftest.err'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest.$ac_objext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_member_struct_reg_r_fs=yes
16922 else
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 ac_cv_member_struct_reg_r_fs=no
16927 fi
16928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16929 fi
16930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16931 fi
16932 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16933 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16934 if test $ac_cv_member_struct_reg_r_fs = yes; then
16935
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_STRUCT_REG_R_FS 1
16938 _ACEOF
16939
16940
16941 fi
16942 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16943 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16944 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <machine/reg.h>
16954
16955 int
16956 main ()
16957 {
16958 static struct reg ac_aggr;
16959 if (ac_aggr.r_gs)
16960 return 0;
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext
16966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16967 (eval $ac_compile) 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag"
16975 || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_member_struct_reg_r_gs=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <machine/reg.h>
16999
17000 int
17001 main ()
17002 {
17003 static struct reg ac_aggr;
17004 if (sizeof ac_aggr.r_gs)
17005 return 0;
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_member_struct_reg_r_gs=yes
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_cv_member_struct_reg_r_gs=no
17038 fi
17039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17040 fi
17041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17044 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17045 if test $ac_cv_member_struct_reg_r_gs = yes; then
17046
17047 cat >>confdefs.h <<_ACEOF
17048 #define HAVE_STRUCT_REG_R_GS 1
17049 _ACEOF
17050
17051
17052 fi
17053
17054
17055 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17056 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17057 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17058 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h. */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 #include <sys/ptrace.h>
17068 int
17069 main ()
17070 {
17071 PTRACE_GETREGS;
17072 ;
17073 return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17078 (eval $ac_compile) 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag"
17086 || test ! -s conftest.err'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 gdb_cv_have_ptrace_getregs=yes
17099 else
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 gdb_cv_have_ptrace_getregs=no
17104 fi
17105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17106 fi
17107
17108 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17109 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17110 if test $gdb_cv_have_ptrace_getregs = yes; then
17111
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE_PTRACE_GETREGS 1
17114 _ACEOF
17115
17116 fi
17117
17118 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17119 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17120 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17121 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 else
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 #include <sys/ptrace.h>
17131 int
17132 main ()
17133 {
17134 PTRACE_GETFPXREGS;
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17141 (eval $ac_compile) 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag"
17149 || test ! -s conftest.err'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest.$ac_objext'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 gdb_cv_have_ptrace_getfpxregs=yes
17162 else
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166 gdb_cv_have_ptrace_getfpxregs=no
17167 fi
17168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169 fi
17170
17171 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17172 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17173 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17174
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_PTRACE_GETFPXREGS 1
17177 _ACEOF
17178
17179 fi
17180
17181 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17182 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17183 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17184 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <sys/types.h>
17194 #include <sys/ptrace.h>
17195 int
17196 main ()
17197 {
17198 PT_GETDBREGS;
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 gdb_cv_have_pt_getdbregs=yes
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 gdb_cv_have_pt_getdbregs=no
17231 fi
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17233 fi
17234
17235 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17236 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17237 if test $gdb_cv_have_pt_getdbregs = yes; then
17238
17239 cat >>confdefs.h <<\_ACEOF
17240 #define HAVE_PT_GETDBREGS 1
17241 _ACEOF
17242
17243 fi
17244
17245 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17246 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17247 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17248 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251 cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <sys/types.h>
17258 #include <sys/ptrace.h>
17259 int
17260 main ()
17261 {
17262 PT_GETXMMREGS;
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17269 (eval $ac_compile) 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 gdb_cv_have_pt_getxmmregs=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 gdb_cv_have_pt_getxmmregs=no
17295 fi
17296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17297 fi
17298
17299 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17300 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17301 if test $gdb_cv_have_pt_getxmmregs = yes; then
17302
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_PT_GETXMMREGS 1
17305 _ACEOF
17306
17307 fi
17308
17309 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17310
17311 if test "${target}" = "${host}"; then
17312 case "${host}" in
17313 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17314
17315 cat >>confdefs.h <<\_ACEOF
17316 #define NEW_PROC_API 1
17317 _ACEOF
17318
17319 ;;
17320 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17321
17322 cat >>confdefs.h <<\_ACEOF
17323 #define NEW_PROC_API 1
17324 _ACEOF
17325
17326 ;;
17327 mips-sgi-irix5*)
17328 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17329
17330 cat >>confdefs.h <<\_ACEOF
17331 #define _KMEMUSER 1
17332 _ACEOF
17333
17334 ;;
17335 esac
17336 fi
17337
17338 if test "$ac_cv_header_sys_procfs_h" = yes; then
17339 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17340 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17341 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350
17351 #define _SYSCALL32
17352 #include <sys/procfs.h>
17353 int
17354 main ()
17355 {
17356 pstatus_t avar
17357 ;
17358 return 0;
17359 }
17360 _ACEOF
17361 rm -f conftest.$ac_objext
17362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17363 (eval $ac_compile) 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17384 else
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 bfd_cv_have_sys_procfs_type_pstatus_t=no
17389
17390 fi
17391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393
17394 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17395
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_PSTATUS_T 1
17398 _ACEOF
17399
17400 fi
17401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17402 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17403
17404 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17405 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17406 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409 cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415
17416 #define _SYSCALL32
17417 #include <sys/procfs.h>
17418 int
17419 main ()
17420 {
17421 prrun_t avar
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest.$ac_objext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17428 (eval $ac_compile) 2>conftest.er1
17429 ac_status=$?
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -z "$ac_c_werror_flag"
17436 || test ! -s conftest.err'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 bfd_cv_have_sys_procfs_type_prrun_t=yes
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453 bfd_cv_have_sys_procfs_type_prrun_t=no
17454
17455 fi
17456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17457 fi
17458
17459 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17460
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_PRRUN_T 1
17463 _ACEOF
17464
17465 fi
17466 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17467 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17468
17469 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17470 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17471 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480
17481 #define _SYSCALL32
17482 #include <sys/procfs.h>
17483 int
17484 main ()
17485 {
17486 gregset_t avar
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 bfd_cv_have_sys_procfs_type_gregset_t=yes
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 bfd_cv_have_sys_procfs_type_gregset_t=no
17519
17520 fi
17521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17522 fi
17523
17524 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17525
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_GREGSET_T 1
17528 _ACEOF
17529
17530 fi
17531 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17532 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17533
17534 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17535 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17536 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545
17546 #define _SYSCALL32
17547 #include <sys/procfs.h>
17548 int
17549 main ()
17550 {
17551 fpregset_t avar
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 bfd_cv_have_sys_procfs_type_fpregset_t=no
17584
17585 fi
17586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 fi
17588
17589 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17590
17591 cat >>confdefs.h <<\_ACEOF
17592 #define HAVE_FPREGSET_T 1
17593 _ACEOF
17594
17595 fi
17596 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17597 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17598
17599 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17600 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17601 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 else
17604 cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h. */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610
17611 #define _SYSCALL32
17612 #include <sys/procfs.h>
17613 int
17614 main ()
17615 {
17616 prgregset_t avar
17617 ;
17618 return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext
17622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17623 (eval $ac_compile) 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } &&
17630 { ac_try='test -z "$ac_c_werror_flag"
17631 || test ! -s conftest.err'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest.$ac_objext'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17644 else
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648 bfd_cv_have_sys_procfs_type_prgregset_t=no
17649
17650 fi
17651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17652 fi
17653
17654 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17655
17656 cat >>confdefs.h <<\_ACEOF
17657 #define HAVE_PRGREGSET_T 1
17658 _ACEOF
17659
17660 fi
17661 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17662 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17663
17664 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17665 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17666 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h. */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675
17676 #define _SYSCALL32
17677 #include <sys/procfs.h>
17678 int
17679 main ()
17680 {
17681 prfpregset_t avar
17682 ;
17683 return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688 (eval $ac_compile) 2>conftest.er1
17689 ac_status=$?
17690 grep -v '^ *+' conftest.er1 >conftest.err
17691 rm -f conftest.er1
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17709 else
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17714
17715 fi
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717 fi
17718
17719 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17720
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_PRFPREGSET_T 1
17723 _ACEOF
17724
17725 fi
17726 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17727 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17728
17729 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17730 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17731 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740
17741 #define _SYSCALL32
17742 #include <sys/procfs.h>
17743 int
17744 main ()
17745 {
17746 prgregset32_t avar
17747 ;
17748 return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17779
17780 fi
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 fi
17783
17784 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17785
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_PRGREGSET32_T 1
17788 _ACEOF
17789
17790 fi
17791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17792 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17793
17794 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17795 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17796 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805
17806 #define _SYSCALL32
17807 #include <sys/procfs.h>
17808 int
17809 main ()
17810 {
17811 prfpregset32_t avar
17812 ;
17813 return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17844
17845 fi
17846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17847 fi
17848
17849 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17850
17851 cat >>confdefs.h <<\_ACEOF
17852 #define HAVE_PRFPREGSET32_T 1
17853 _ACEOF
17854
17855 fi
17856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17857 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17858
17859 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17860 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17861 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h. */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870
17871 #define _SYSCALL32
17872 #include <sys/procfs.h>
17873 int
17874 main ()
17875 {
17876 lwpid_t avar
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag"
17891 || test ! -s conftest.err'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17904 else
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 bfd_cv_have_sys_procfs_type_lwpid_t=no
17909
17910 fi
17911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17912 fi
17913
17914 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17915
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE_LWPID_T 1
17918 _ACEOF
17919
17920 fi
17921 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17922 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17923
17924 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17925 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17926 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h. */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935
17936 #define _SYSCALL32
17937 #include <sys/procfs.h>
17938 int
17939 main ()
17940 {
17941 psaddr_t avar
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17949 ac_status=$?
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 bfd_cv_have_sys_procfs_type_psaddr_t=yes
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 bfd_cv_have_sys_procfs_type_psaddr_t=no
17974
17975 fi
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 fi
17978
17979 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17980
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_PSADDR_T 1
17983 _ACEOF
17984
17985 fi
17986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17987 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17988
17989 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17990 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17991 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000
18001 #define _SYSCALL32
18002 #include <sys/procfs.h>
18003 int
18004 main ()
18005 {
18006 prsysent_t avar
18007 ;
18008 return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag"
18021 || test ! -s conftest.err'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18034 else
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 bfd_cv_have_sys_procfs_type_prsysent_t=no
18039
18040 fi
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18042 fi
18043
18044 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE_PRSYSENT_T 1
18048 _ACEOF
18049
18050 fi
18051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18052 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18053
18054 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18055 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18056 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059 cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h. */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065
18066 #define _SYSCALL32
18067 #include <sys/procfs.h>
18068 int
18069 main ()
18070 {
18071 pr_sigset_t avar
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18099 else
18100 echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18102
18103 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18104
18105 fi
18106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18107 fi
18108
18109 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18110
18111 cat >>confdefs.h <<\_ACEOF
18112 #define HAVE_PR_SIGSET_T 1
18113 _ACEOF
18114
18115 fi
18116 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18117 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18118
18119 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18120 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18121 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130
18131 #define _SYSCALL32
18132 #include <sys/procfs.h>
18133 int
18134 main ()
18135 {
18136 pr_sigaction64_t avar
18137 ;
18138 return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18143 (eval $ac_compile) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18164 else
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18169
18170 fi
18171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18172 fi
18173
18174 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_PR_SIGACTION64_T 1
18178 _ACEOF
18179
18180 fi
18181 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18182 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18183
18184 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18185 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18186 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h. */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195
18196 #define _SYSCALL32
18197 #include <sys/procfs.h>
18198 int
18199 main ()
18200 {
18201 pr_siginfo64_t avar
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18234
18235 fi
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237 fi
18238
18239 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_PR_SIGINFO64_T 1
18243 _ACEOF
18244
18245 fi
18246 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18247 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18248
18249
18250
18251
18252
18253 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18254 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18255 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18256 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259 if test "$cross_compiling" = yes; then
18260 gdb_cv_prfpregset_t_broken=yes
18261 else
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h. */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 #include <sys/procfs.h>
18269 int main ()
18270 {
18271 if (sizeof (prfpregset_t) == sizeof (void *))
18272 return 1;
18273 return 0;
18274 }
18275 _ACEOF
18276 rm -f conftest$ac_exeext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18278 (eval $ac_link) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 gdb_cv_prfpregset_t_broken=no
18288 else
18289 echo "$as_me: program exited with status $ac_status" >&5
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 ( exit $ac_status )
18294 gdb_cv_prfpregset_t_broken=yes
18295 fi
18296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18297 fi
18298 fi
18299
18300 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18301 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18302 if test $gdb_cv_prfpregset_t_broken = yes; then
18303
18304 cat >>confdefs.h <<\_ACEOF
18305 #define PRFPREGSET_T_BROKEN 1
18306 _ACEOF
18307
18308 fi
18309 fi
18310
18311
18312 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18313 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18314 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h. */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 #include <unistd.h>
18324 #include <sys/types.h>
18325 #include <sys/procfs.h>
18326
18327 int
18328 main ()
18329 {
18330
18331 int dummy;;
18332 dummy = ioctl(0, PIOCSET, &dummy);
18333
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18340 (eval $ac_compile) 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest.$ac_objext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 gdb_cv_have_procfs_piocset=yes
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365 gdb_cv_have_procfs_piocset=no
18366 fi
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369
18370 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18371 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18372 if test $gdb_cv_have_procfs_piocset = yes; then
18373
18374 cat >>confdefs.h <<\_ACEOF
18375 #define HAVE_PROCFS_PIOCSET 1
18376 _ACEOF
18377
18378 fi
18379 fi
18380
18381 if test ${host} = ${target} ; then
18382
18383 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18384 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18385 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388 cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h. */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 #include <link.h>
18395 int
18396 main ()
18397 {
18398 struct link_map lm; (void) lm.l_addr;
18399 ;
18400 return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405 (eval $ac_compile) 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag"
18413 || test ! -s conftest.err'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest.$ac_objext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 gdb_cv_have_struct_link_map_with_l_members=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430 gdb_cv_have_struct_link_map_with_l_members=no
18431 fi
18432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18433 fi
18434
18435 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18436 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18437 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18438
18439 cat >>confdefs.h <<\_ACEOF
18440 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18441 _ACEOF
18442
18443 fi
18444
18445
18446 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18447 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18448 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h. */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 #include <sys/types.h>
18458 #include <link.h>
18459 int
18460 main ()
18461 {
18462 struct link_map lm; (void) lm.lm_addr;
18463 ;
18464 return 0;
18465 }
18466 _ACEOF
18467 rm -f conftest.$ac_objext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18469 (eval $ac_compile) 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag"
18477 || test ! -s conftest.err'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest.$ac_objext'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 gdb_cv_have_struct_link_map_with_lm_members=yes
18490 else
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18493
18494 gdb_cv_have_struct_link_map_with_lm_members=no
18495 fi
18496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18497 fi
18498
18499 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18500 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18501 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18502
18503 cat >>confdefs.h <<\_ACEOF
18504 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18505 _ACEOF
18506
18507 fi
18508
18509
18510 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18511 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18512 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 #include <sys/types.h>
18522 #ifdef HAVE_NLIST_H
18523 #include <nlist.h>
18524 #endif
18525 #include <link.h>
18526 int
18527 main ()
18528 {
18529 struct so_map lm; (void) lm.som_addr;
18530 ;
18531 return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 gdb_cv_have_struct_so_map_with_som_members=yes
18557 else
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 gdb_cv_have_struct_so_map_with_som_members=no
18562 fi
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 fi
18565
18566 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18567 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18568 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18569
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18572 _ACEOF
18573
18574 fi
18575
18576
18577 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18578 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18579 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #define _SYSCALL32
18589 #include <sys/link.h>
18590 int
18591 main ()
18592 {
18593 struct link_map32 l;
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag"
18608 || test ! -s conftest.err'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest.$ac_objext'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 gdb_cv_have_struct_link_map32=yes
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 gdb_cv_have_struct_link_map32=no
18626 fi
18627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18628 fi
18629
18630 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18631 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18632 if test $gdb_cv_have_struct_link_map32 = yes; then
18633
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE_STRUCT_LINK_MAP32 1
18636 _ACEOF
18637
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define _SYSCALL32 1
18641 _ACEOF
18642
18643 fi
18644 fi
18645
18646 # Check if the compiler supports the `long long' type.
18647
18648 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18649 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18650 if test "${gdb_cv_c_long_long+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 extern long long foo;
18660 int
18661 main ()
18662 {
18663 switch (foo & 2) { case 0: return 1; }
18664 ;
18665 return 0;
18666 }
18667 _ACEOF
18668 rm -f conftest.$ac_objext
18669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18670 (eval $ac_compile) 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag"
18678 || test ! -s conftest.err'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest.$ac_objext'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 gdb_cv_c_long_long=yes
18691 else
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 gdb_cv_c_long_long=no
18696 fi
18697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18698 fi
18699 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18700 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18701 if test $gdb_cv_c_long_long = yes; then
18702
18703 cat >>confdefs.h <<\_ACEOF
18704 #define CC_HAS_LONG_LONG 1
18705 _ACEOF
18706
18707 fi
18708
18709 # Check if the compiler and runtime support printing long longs.
18710
18711 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18712 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18713 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 if test "$cross_compiling" = yes; then
18717 gdb_cv_printf_has_long_long=no
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18726 int
18727 main ()
18728 {
18729 char buf[32];
18730 long long l = 0;
18731 l = (l << 16) + 0x0123;
18732 l = (l << 16) + 0x4567;
18733 l = (l << 16) + 0x89ab;
18734 l = (l << 16) + 0xcdef;
18735 sprintf (buf, "0x%016llx", l);
18736 return (strcmp ("0x0123456789abcdef", buf));
18737 ;
18738 return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 gdb_cv_printf_has_long_long=yes
18753 else
18754 echo "$as_me: program exited with status $ac_status" >&5
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ( exit $ac_status )
18759 gdb_cv_printf_has_long_long=no
18760 fi
18761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18762 fi
18763 fi
18764 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18765 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18766 if test $gdb_cv_printf_has_long_long = yes; then
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define PRINTF_HAS_LONG_LONG 1
18770 _ACEOF
18771
18772 fi
18773
18774 # Check if the compiler and runtime support printing decfloats.
18775
18776 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18777 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18778 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 if test "$cross_compiling" = yes; then
18782 gdb_cv_printf_has_decfloat=no
18783 else
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 int
18792 main ()
18793 {
18794 char buf[64];
18795 _Decimal32 d32 = 1.2345df;
18796 _Decimal64 d64 = 1.2345dd;
18797 _Decimal128 d128 = 1.2345dl;
18798 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18799 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18800 ;
18801 return 0;
18802 }
18803 _ACEOF
18804 rm -f conftest$ac_exeext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 gdb_cv_printf_has_decfloat=yes
18816 else
18817 echo "$as_me: program exited with status $ac_status" >&5
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821 ( exit $ac_status )
18822 gdb_cv_printf_has_decfloat=no
18823 fi
18824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18825 fi
18826 fi
18827 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18828 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18829 if test $gdb_cv_printf_has_decfloat = yes; then
18830
18831 cat >>confdefs.h <<\_ACEOF
18832 #define PRINTF_HAS_DECFLOAT 1
18833 _ACEOF
18834
18835 fi
18836
18837 # Check if the compiler supports the `long double' type. We can't use
18838 # AC_C_LONG_DOUBLE because that one does additional checks on the
18839 # constants defined in <float.h> that fail on some systems,
18840 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18841
18842 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18843 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18844 if test "${gdb_cv_c_long_double+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h. */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 long double foo;
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18857 (eval $ac_compile) 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest.$ac_objext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 gdb_cv_c_long_double=yes
18878 else
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 gdb_cv_c_long_double=no
18883 fi
18884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18885 fi
18886 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18887 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18888 if test $gdb_cv_c_long_double = yes; then
18889
18890 cat >>confdefs.h <<\_ACEOF
18891 #define HAVE_LONG_DOUBLE 1
18892 _ACEOF
18893
18894 fi
18895
18896 # Check if the compiler and runtime support printing long doubles.
18897
18898 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18899 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18900 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 if test "$cross_compiling" = yes; then
18904 gdb_cv_printf_has_long_double=no
18905 else
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h. */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18912 $ac_includes_default
18913 int
18914 main ()
18915 {
18916 char buf[16];
18917 long double f = 3.141592653;
18918 sprintf (buf, "%Lg", f);
18919 return (strncmp ("3.14159", buf, 7));
18920 ;
18921 return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 gdb_cv_printf_has_long_double=yes
18936 else
18937 echo "$as_me: program exited with status $ac_status" >&5
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ( exit $ac_status )
18942 gdb_cv_printf_has_long_double=no
18943 fi
18944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18945 fi
18946 fi
18947 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18948 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18949 if test $gdb_cv_printf_has_long_double = yes; then
18950
18951 cat >>confdefs.h <<\_ACEOF
18952 #define PRINTF_HAS_LONG_DOUBLE 1
18953 _ACEOF
18954
18955 fi
18956
18957 # Check if the compiler and runtime support scanning long doubles.
18958
18959 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18960 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18961 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964 if test "$cross_compiling" = yes; then
18965 gdb_cv_scanf_has_long_double=no
18966 else
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <stdio.h>
18974 int
18975 main ()
18976 {
18977 char *buf = "3.141592653";
18978 long double f = 0;
18979 sscanf (buf, "%Lg", &f);
18980 return !(f > 3.14159 && f < 3.14160);
18981 ;
18982 return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest$ac_exeext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18987 (eval $ac_link) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 gdb_cv_scanf_has_long_double=yes
18997 else
18998 echo "$as_me: program exited with status $ac_status" >&5
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ( exit $ac_status )
19003 gdb_cv_scanf_has_long_double=no
19004 fi
19005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19006 fi
19007 fi
19008 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19009 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19010 if test $gdb_cv_scanf_has_long_double = yes; then
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define SCANF_HAS_LONG_DOUBLE 1
19014 _ACEOF
19015
19016 fi
19017
19018 case ${host_os} in
19019 aix*)
19020 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19021 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19022 if test "${gdb_cv_bigtoc+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025
19026 SAVE_LDFLAGS=$LDFLAGS
19027
19028 case $GCC in
19029 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19030 *) gdb_cv_bigtoc=-bbigtoc ;;
19031 esac
19032
19033 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040
19041 int
19042 main ()
19043 {
19044 int i;
19045 ;
19046 return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051 (eval $ac_link) 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_c_werror_flag"
19059 || test ! -s conftest.err'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071 :
19072 else
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 gdb_cv_bigtoc=
19077 fi
19078 rm -f conftest.err conftest.$ac_objext \
19079 conftest$ac_exeext conftest.$ac_ext
19080 LDFLAGS="${SAVE_LDFLAGS}"
19081
19082 fi
19083 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19084 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19085 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19086 ;;
19087 esac
19088
19089
19090
19091 if test ${build} = ${host} -a ${host} = ${target} ; then
19092 case ${host_os} in
19093 hpux*)
19094 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19095 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19096 if test -f /usr/include/dce/cma_config.h ; then
19097 if test "$GCC" = "yes" ; then
19098 echo "$as_me:$LINENO: result: yes" >&5
19099 echo "${ECHO_T}yes" >&6
19100
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_HPUX_THREAD_SUPPORT 1
19103 _ACEOF
19104
19105 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19106 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19107 else
19108 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19109 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19110 fi
19111 else
19112 echo "$as_me:$LINENO: result: no" >&5
19113 echo "${ECHO_T}no" >&6
19114 fi
19115 ;;
19116 solaris*)
19117 # See if thread_db library is around for Solaris thread debugging.
19118 # Note that we must explicitly test for version 1 of the library
19119 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19120 # the same API.
19121 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19122 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19123 if test -f /usr/lib/libthread_db.so.1 ; then
19124 echo "$as_me:$LINENO: result: yes" >&5
19125 echo "${ECHO_T}yes" >&6
19126
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE_THREAD_DB_LIB 1
19129 _ACEOF
19130
19131 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19132 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19133
19134 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19135 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19136 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 ac_check_lib_save_LIBS=$LIBS
19140 LIBS="-ldl $LIBS"
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147
19148 /* Override any gcc2 internal prototype to avoid an error. */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 /* We use char because int might match the return type of a gcc2
19153 builtin and then its argument prototype would still apply. */
19154 char dlopen ();
19155 int
19156 main ()
19157 {
19158 dlopen ();
19159 ;
19160 return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19165 (eval $ac_link) 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag"
19173 || test ! -s conftest.err'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try='test -s conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_cv_lib_dl_dlopen=yes
19186 else
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 ac_cv_lib_dl_dlopen=no
19191 fi
19192 rm -f conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19195 fi
19196 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19197 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19198 if test $ac_cv_lib_dl_dlopen = yes; then
19199 cat >>confdefs.h <<_ACEOF
19200 #define HAVE_LIBDL 1
19201 _ACEOF
19202
19203 LIBS="-ldl $LIBS"
19204
19205 fi
19206
19207 if test "$GCC" = "yes" ; then
19208 # The GNU linker requires the -export-dynamic option to make
19209 # all symbols visible in the dynamic symbol table.
19210 hold_ldflags=$LDFLAGS
19211 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19212 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19213 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h. */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220
19221 int
19222 main ()
19223 {
19224 int i;
19225 ;
19226 return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231 (eval $ac_link) 2>conftest.er1
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest$ac_exeext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 found=yes
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 found=no
19257 fi
19258 rm -f conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 LDFLAGS=$hold_ldflags
19261 echo "$as_me:$LINENO: result: $found" >&5
19262 echo "${ECHO_T}$found" >&6
19263 if test $found = yes; then
19264 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19265 fi
19266 fi
19267 # Sun randomly tweaked the prototypes in <proc_service.h>
19268 # at one point.
19269 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19270 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19271 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281
19282 #include <proc_service.h>
19283 ps_err_e ps_pdwrite
19284 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19285
19286 int
19287 main ()
19288 {
19289
19290 ;
19291 return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19296 (eval $ac_compile) 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
19303 { ac_try='test -z "$ac_c_werror_flag"
19304 || test ! -s conftest.err'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest.$ac_objext'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 gdb_cv_proc_service_is_old=no
19317 else
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 gdb_cv_proc_service_is_old=yes
19322 fi
19323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19324
19325 fi
19326
19327 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19328 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19329 if test $gdb_cv_proc_service_is_old = yes; then
19330
19331 cat >>confdefs.h <<\_ACEOF
19332 #define PROC_SERVICE_IS_OLD 1
19333 _ACEOF
19334
19335 fi
19336 else
19337 echo "$as_me:$LINENO: result: no" >&5
19338 echo "${ECHO_T}no" >&6
19339 fi
19340 ;;
19341 aix*)
19342 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19343 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19344 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 #include <sys/pthdebug.h>
19354 int
19355 main ()
19356 {
19357 #ifndef PTHDB_VERSION_3
19358 #error
19359 #endif
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag"
19374 || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 gdb_cv_have_aix_thread_debug=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 gdb_cv_have_aix_thread_debug=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394 fi
19395
19396 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19397 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19398 if test $gdb_cv_have_aix_thread_debug = yes; then
19399 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19400 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19401 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19402 fi
19403 ;;
19404 esac
19405
19406 fi
19407
19408 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19409 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19410 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19411 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 #include <thread_db.h>
19421 int
19422 main ()
19423 {
19424 int i = TD_NOTALLOC;
19425 ;
19426 return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19431 (eval $ac_compile) 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag"
19439 || test ! -s conftest.err'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest.$ac_objext'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 gdb_cv_thread_db_h_has_td_notalloc=yes
19452 else
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456 gdb_cv_thread_db_h_has_td_notalloc=no
19457
19458 fi
19459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460
19461 fi
19462 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19463 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19464 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19465 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19466 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <thread_db.h>
19476 int
19477 main ()
19478 {
19479 int i = TD_VERSION;
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486 (eval $ac_compile) 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } &&
19493 { ac_try='test -z "$ac_c_werror_flag"
19494 || test ! -s conftest.err'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19506 gdb_cv_thread_db_h_has_td_version=yes
19507 else
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 gdb_cv_thread_db_h_has_td_version=no
19512
19513 fi
19514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19515
19516 fi
19517 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19518 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19519 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19520 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19521 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h. */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 #include <thread_db.h>
19531 int
19532 main ()
19533 {
19534 int i = TD_NOTLS;
19535 ;
19536 return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19541 (eval $ac_compile) 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 gdb_cv_thread_db_h_has_td_notls=yes
19562 else
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 gdb_cv_thread_db_h_has_td_notls=no
19567
19568 fi
19569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570
19571 fi
19572 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19573 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19574 fi
19575 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define THREAD_DB_HAS_TD_NOTALLOC 1
19579 _ACEOF
19580
19581 fi
19582 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define THREAD_DB_HAS_TD_VERSION 1
19586 _ACEOF
19587
19588 fi
19589 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19590
19591 cat >>confdefs.h <<\_ACEOF
19592 #define THREAD_DB_HAS_TD_NOTLS 1
19593 _ACEOF
19594
19595 fi
19596
19597 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19598 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19599 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19600 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/syscall.h>
19610 int
19611 main ()
19612 {
19613 int i = __NR_tkill;
19614 ;
19615 return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 gdb_cv_sys_syscall_h_has_tkill=yes
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 gdb_cv_sys_syscall_h_has_tkill=no
19646
19647 fi
19648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19649
19650 fi
19651 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19652 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19653 fi
19654 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19655
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_TKILL_SYSCALL 1
19658 _ACEOF
19659
19660 fi
19661
19662 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19663 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19664 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <sys/personality.h>
19674
19675 int
19676 main ()
19677 {
19678 #ifndef ADDR_NO_RANDOMIZE
19679 char *p = (char *) ADDR_NO_RANDOMIZE;
19680 #endif
19681
19682 ;
19683 return 0;
19684 }
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_c_werror_flag"
19696 || test ! -s conftest.err'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19709 else
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19714 fi
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 fi
19717 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19718 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19719 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19720
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19723 _ACEOF
19724
19725
19726 else
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19729 _ACEOF
19730
19731
19732 fi
19733
19734
19735
19736 if test "$cross_compiling" = yes; then
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h. */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 #include <sys/personality.h>
19744 int
19745 main ()
19746 {
19747
19748 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19749 # define ADDR_NO_RANDOMIZE 0x0040000
19750 # endif
19751 /* Test the flag could be set and stays set. */
19752 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19753 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19754 return 1
19755 ;
19756 return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19761 (eval $ac_link) 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag"
19769 || test ! -s conftest.err'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest$ac_exeext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 have_personality=true
19782 else
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 have_personality=false
19787 fi
19788 rm -f conftest.err conftest.$ac_objext \
19789 conftest$ac_exeext conftest.$ac_ext
19790 else
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_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815 (eval $ac_link) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 have_personality=true
19825 else
19826 echo "$as_me: program exited with status $ac_status" >&5
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ( exit $ac_status )
19831 have_personality=false
19832 fi
19833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19834 fi
19835 if $have_personality
19836 then
19837
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE_PERSONALITY 1
19840 _ACEOF
19841
19842 fi
19843
19844
19845
19846 # Check whether --with-sysroot or --without-sysroot was given.
19847 if test "${with_sysroot+set}" = set; then
19848 withval="$with_sysroot"
19849
19850 case ${with_sysroot} in
19851 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19852 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19853 esac
19854
19855 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19856
19857 if test "x$prefix" = xNONE; then
19858 test_prefix=/usr/local
19859 else
19860 test_prefix=$prefix
19861 fi
19862 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19863 test_exec_prefix=$test_prefix
19864 else
19865 test_exec_prefix=$exec_prefix
19866 fi
19867 case ${TARGET_SYSTEM_ROOT} in
19868 "${test_prefix}"|"${test_prefix}/"*|\
19869 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19870 '${prefix}'|'${prefix}/'*|\
19871 '${exec_prefix}'|'${exec_prefix}/'*)
19872 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19873 TARGET_SYSTEM_ROOT_DEFINE="$t"
19874 ;;
19875 esac
19876
19877 else
19878
19879 TARGET_SYSTEM_ROOT=
19880 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19881
19882 fi;
19883
19884
19885
19886 system_gdbinit=
19887
19888 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19889 if test "${with_system_gdbinit+set}" = set; then
19890 withval="$with_system_gdbinit"
19891 system_gdbinit=${withval}
19892 fi;
19893
19894
19895 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19897 ac_define_dir=`eval echo $system_gdbinit`
19898 ac_define_dir=`eval echo $ac_define_dir`
19899
19900 cat >>confdefs.h <<_ACEOF
19901 #define SYSTEM_GDBINIT "$ac_define_dir"
19902 _ACEOF
19903
19904
19905
19906 if test "x$prefix" = xNONE; then
19907 test_prefix=$ac_default_prefix
19908 else
19909 test_prefix=$prefix
19910 fi
19911 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19912 test_exec_prefix=$test_prefix
19913 else
19914 test_exec_prefix=$exec_prefix
19915 fi
19916 case ${system_gdbinit} in
19917 "${test_prefix}"|"${test_prefix}/"*|\
19918 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19919 '${prefix}'|'${prefix}/'*|\
19920 '${exec_prefix}'|'${exec_prefix}/'*)
19921
19922 cat >>confdefs.h <<\_ACEOF
19923 #define SYSTEM_GDBINIT_RELOCATABLE 1
19924 _ACEOF
19925
19926 ;;
19927 esac
19928
19929 # Check whether --enable-werror or --disable-werror was given.
19930 if test "${enable_werror+set}" = set; then
19931 enableval="$enable_werror"
19932 case "${enableval}" in
19933 yes | y) ERROR_ON_WARNING="yes" ;;
19934 no | n) ERROR_ON_WARNING="no" ;;
19935 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19936 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19937 { (exit 1); exit 1; }; } ;;
19938 esac
19939 fi;
19940
19941 # Enable -Werror by default when using gcc
19942 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19943 ERROR_ON_WARNING=yes
19944 fi
19945
19946 WERROR_CFLAGS=""
19947 if test "${ERROR_ON_WARNING}" = yes ; then
19948 WERROR_CFLAGS="-Werror"
19949 fi
19950
19951 # The entries after -Wno-pointer-sign are disabled warnings which may
19952 # be enabled in the future, which can not currently be used to build
19953 # GDB.
19954 # NOTE: If you change this list, remember to update
19955 # gdb/doc/gdbint.texinfo.
19956 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19957 -Wformat-nonliteral -Wno-pointer-sign \
19958 -Wno-unused -Wno-switch -Wno-char-subscripts"
19959
19960 # Enable -Wno-format by default when using gcc on mingw since many
19961 # GCC versions complain about %I64.
19962 case "${host}" in
19963 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19964 esac
19965
19966 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19967 if test "${enable_build_warnings+set}" = set; then
19968 enableval="$enable_build_warnings"
19969 case "${enableval}" in
19970 yes) ;;
19971 no) build_warnings="-w";;
19972 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19973 build_warnings="${build_warnings} ${t}";;
19974 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19975 build_warnings="${t} ${build_warnings}";;
19976 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19977 esac
19978 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19979 echo "Setting compiler warning flags = $build_warnings" 6>&1
19980 fi
19981 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19982 if test "${enable_gdb_build_warnings+set}" = set; then
19983 enableval="$enable_gdb_build_warnings"
19984 case "${enableval}" in
19985 yes) ;;
19986 no) build_warnings="-w";;
19987 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19988 build_warnings="${build_warnings} ${t}";;
19989 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19990 build_warnings="${t} ${build_warnings}";;
19991 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19992 esac
19993 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19994 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19995 fi
19996 fi; WARN_CFLAGS=""
19997 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19998 then
19999 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20000 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20001 # Separate out the -Werror flag as some files just cannot be
20002 # compiled with it enabled.
20003 for w in ${build_warnings}; do
20004 case $w in
20005 -Werr*) WERROR_CFLAGS=-Werror ;;
20006 *) # Check that GCC accepts it
20007 saved_CFLAGS="$CFLAGS"
20008 CFLAGS="$CFLAGS $w"
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015
20016 int
20017 main ()
20018 {
20019
20020 ;
20021 return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest.$ac_objext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 WARN_CFLAGS="${WARN_CFLAGS} $w"
20047 else
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 fi
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053 CFLAGS="$saved_CFLAGS"
20054 esac
20055 done
20056 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20057 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20058 fi
20059
20060
20061
20062 # In the Cygwin environment, we need some additional flags.
20063 echo "$as_me:$LINENO: checking for cygwin" >&5
20064 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20065 if test "${gdb_cv_os_cygwin+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074
20075 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20076 lose
20077 #endif
20078 _ACEOF
20079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080 $EGREP "lose" >/dev/null 2>&1; then
20081 gdb_cv_os_cygwin=yes
20082 else
20083 gdb_cv_os_cygwin=no
20084 fi
20085 rm -f conftest*
20086
20087 fi
20088 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20089 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20090
20091
20092 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20093 case ${host} in
20094 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20095 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20096 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20097 esac
20098
20099
20100 # libreadline needs libuser32.a in a cygwin environment
20101 WIN32LIBS=
20102 if test x$gdb_cv_os_cygwin = xyes; then
20103 WIN32LIBS="-luser32"
20104 case "${target}" in
20105 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20106 ;;
20107 esac
20108 fi
20109
20110 # The ser-tcp.c module requires sockets.
20111 case ${host} in
20112 *mingw32*)
20113
20114 cat >>confdefs.h <<\_ACEOF
20115 #define USE_WIN32API 1
20116 _ACEOF
20117
20118 WIN32LIBS="$WIN32LIBS -lws2_32"
20119 ;;
20120 esac
20121
20122
20123 # Add ELF support to GDB, but only if BFD includes ELF support.
20124 OLD_CFLAGS=$CFLAGS
20125 OLD_LDFLAGS=$LDFLAGS
20126 OLD_LIBS=$LIBS
20127 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20128 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20129 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20130 LIBS="-lbfd -liberty $intl $LIBS"
20131 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20132 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20133 if test "${gdb_cv_var_elf+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h. */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 #include <stdlib.h>
20143 #include "bfd.h"
20144 #include "elf-bfd.h"
20145
20146 int
20147 main ()
20148 {
20149 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext conftest$ac_exeext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20156 (eval $ac_link) 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag"
20164 || test ! -s conftest.err'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest$ac_exeext'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 gdb_cv_var_elf=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181 gdb_cv_var_elf=no
20182 fi
20183 rm -f conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185 fi
20186 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20187 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20188 if test $gdb_cv_var_elf = yes; then
20189 CONFIG_OBS="$CONFIG_OBS elfread.o"
20190
20191 cat >>confdefs.h <<\_ACEOF
20192 #define HAVE_ELF 1
20193 _ACEOF
20194
20195 fi
20196 CFLAGS=$OLD_CFLAGS
20197 LDFLAGS=$OLD_LDFLAGS
20198 LIBS=$OLD_LIBS
20199
20200 # Add any host-specific objects to GDB.
20201 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20202
20203 LIBGUI="../libgui/src/libgui.a"
20204 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20205
20206
20207
20208 WIN32LDAPP=
20209
20210
20211
20212 case "${host}" in
20213 *-*-cygwin* | *-*-mingw* )
20214 configdir="win"
20215 ;;
20216 *)
20217 configdir="unix"
20218 ;;
20219 esac
20220
20221 GDBTKLIBS=
20222 if test "${enable_gdbtk}" = "yes"; then
20223
20224 # Gdbtk must have an absolute path to srcdir in order to run
20225 # properly when not installed.
20226 here=`pwd`
20227 cd ${srcdir}
20228 GDBTK_SRC_DIR=`pwd`
20229 cd $here
20230
20231
20232 #
20233 # Ok, lets find the tcl configuration
20234 # First, look for one uninstalled.
20235 # the alternative search directory is invoked by --with-tcl
20236 #
20237
20238 if test x"${no_tcl}" = x ; then
20239 # we reset no_tcl in case something fails here
20240 no_tcl=true
20241
20242 # Check whether --with-tcl or --without-tcl was given.
20243 if test "${with_tcl+set}" = set; then
20244 withval="$with_tcl"
20245 with_tclconfig=${withval}
20246 fi;
20247 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20248 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20249 if test "${ac_cv_c_tclconfig+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252
20253
20254 # First check to see if --with-tcl was specified.
20255 case "${host}" in
20256 *-*-cygwin*) platDir="win" ;;
20257 *) platDir="unix" ;;
20258 esac
20259 if test x"${with_tclconfig}" != x ; then
20260 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20261 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20262 else
20263 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20264 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20265 { (exit 1); exit 1; }; }
20266 fi
20267 fi
20268
20269 # then check for a private Tcl installation
20270 if test x"${ac_cv_c_tclconfig}" = x ; then
20271 for i in \
20272 ../tcl \
20273 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20274 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20275 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20276 ../../tcl \
20277 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20278 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20279 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20280 ../../../tcl \
20281 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20282 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20283 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20284 if test -f "$i/$platDir/tclConfig.sh" ; then
20285 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20286 break
20287 fi
20288 done
20289 fi
20290
20291 # on Darwin, check in Framework installation locations
20292 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20293 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20294 `ls -d /Library/Frameworks 2>/dev/null` \
20295 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20296 `ls -d /System/Library/Frameworks 2>/dev/null` \
20297 ; do
20298 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20299 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20300 break
20301 fi
20302 done
20303 fi
20304
20305 # check in a few common install locations
20306 if test x"${ac_cv_c_tclconfig}" = x ; then
20307 for i in `ls -d ${libdir} 2>/dev/null` \
20308 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20309 `ls -d ${prefix}/lib 2>/dev/null` \
20310 `ls -d /usr/local/lib 2>/dev/null` \
20311 `ls -d /usr/contrib/lib 2>/dev/null` \
20312 `ls -d /usr/lib 2>/dev/null` \
20313 ; do
20314 if test -f "$i/tclConfig.sh" ; then
20315 ac_cv_c_tclconfig=`(cd $i; pwd)`
20316 break
20317 fi
20318 done
20319 fi
20320
20321 # check in a few other private locations
20322 if test x"${ac_cv_c_tclconfig}" = x ; then
20323 for i in \
20324 ${srcdir}/../tcl \
20325 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20326 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20327 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20328 if test -f "$i/$platDir/tclConfig.sh" ; then
20329 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20330 break
20331 fi
20332 done
20333 fi
20334
20335 fi
20336
20337
20338 if test x"${ac_cv_c_tclconfig}" = x ; then
20339 TCL_BIN_DIR="# no Tcl configs found"
20340 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20341 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20342 else
20343 no_tcl=
20344 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20345 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20346 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20347 fi
20348 fi
20349
20350
20351 # If $no_tk is nonempty, then we can't do Tk, and there is no
20352 # point to doing Tcl.
20353
20354 #
20355 # Ok, lets find the tk configuration
20356 # First, look for one uninstalled.
20357 # the alternative search directory is invoked by --with-tk
20358 #
20359
20360 if test x"${no_tk}" = x ; then
20361 # we reset no_tk in case something fails here
20362 no_tk=true
20363
20364 # Check whether --with-tk or --without-tk was given.
20365 if test "${with_tk+set}" = set; then
20366 withval="$with_tk"
20367 with_tkconfig=${withval}
20368 fi;
20369 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20370 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20371 if test "${ac_cv_c_tkconfig+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374
20375
20376 # First check to see if --with-tkconfig was specified.
20377 if test x"${with_tkconfig}" != x ; then
20378 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20379 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20380 else
20381 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20382 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20383 { (exit 1); exit 1; }; }
20384 fi
20385 fi
20386
20387 # then check for a private Tk library
20388 case "${host}" in
20389 *-*-cygwin*) platDir="win" ;;
20390 *) platDir="unix" ;;
20391 esac
20392 if test x"${ac_cv_c_tkconfig}" = x ; then
20393 for i in \
20394 ../tk \
20395 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20396 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20397 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20398 ../../tk \
20399 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20400 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20401 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20402 ../../../tk \
20403 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20404 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20405 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20406 if test -f "$i/$platDir/tkConfig.sh" ; then
20407 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20408 break
20409 fi
20410 done
20411 fi
20412
20413 # on Darwin, check in Framework installation locations
20414 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20415 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20416 `ls -d /Library/Frameworks 2>/dev/null` \
20417 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20418 `ls -d /System/Library/Frameworks 2>/dev/null` \
20419 ; do
20420 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20421 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20422 break
20423 fi
20424 done
20425 fi
20426
20427 # check in a few common install locations
20428 if test x"${ac_cv_c_tkconfig}" = x ; then
20429 for i in `ls -d ${libdir} 2>/dev/null` \
20430 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20431 `ls -d ${prefix}/lib 2>/dev/null` \
20432 `ls -d /usr/local/lib 2>/dev/null` \
20433 `ls -d /usr/contrib/lib 2>/dev/null` \
20434 `ls -d /usr/lib 2>/dev/null` \
20435 ; do
20436 if test -f "$i/tkConfig.sh" ; then
20437 ac_cv_c_tkconfig=`(cd $i; pwd)`
20438 break
20439 fi
20440 done
20441 fi
20442 # check in a few other private locations
20443 if test x"${ac_cv_c_tkconfig}" = x ; then
20444 for i in \
20445 ${srcdir}/../tk \
20446 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20447 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20448 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20449 if test -f "$i/$platDir/tkConfig.sh" ; then
20450 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20451 break
20452 fi
20453 done
20454 fi
20455
20456 fi
20457
20458
20459 if test x"${ac_cv_c_tkconfig}" = x ; then
20460 TK_BIN_DIR="# no Tk configs found"
20461 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20462 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20463 else
20464 no_tk=
20465 TK_BIN_DIR=${ac_cv_c_tkconfig}
20466 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20467 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20468 fi
20469 fi
20470
20471
20472 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20473
20474 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20475 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20476
20477 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20478 echo "$as_me:$LINENO: result: loading" >&5
20479 echo "${ECHO_T}loading" >&6
20480 . ${TCL_BIN_DIR}/tclConfig.sh
20481 else
20482 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20483 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20484 fi
20485
20486 # eval is required to do the TCL_DBGX substitution
20487 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20488 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20489
20490 # If the TCL_BIN_DIR is the build directory (not the install directory),
20491 # then set the common variable name to the value of the build variables.
20492 # For example, the variable TCL_LIB_SPEC will be set to the value
20493 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20494 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20495 # installed and uninstalled version of Tcl.
20496 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20497 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20498 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20499 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20500 elif test "`uname -s`" = "Darwin"; then
20501 # If Tcl was built as a framework, attempt to use the libraries
20502 # from the framework at the given location so that linking works
20503 # against Tcl.framework installed in an arbitary location.
20504 case ${TCL_DEFS} in
20505 *TCL_FRAMEWORK*)
20506 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20507 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20508 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20509 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20510 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20511 break
20512 fi
20513 done
20514 fi
20515 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20516 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20517 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20518 fi
20519 ;;
20520 esac
20521 fi
20522
20523 # eval is required to do the TCL_DBGX substitution
20524 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20525 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20526 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20527 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543 # Check for in-tree tcl
20544 here=`pwd`
20545 cd ${srcdir}/..
20546 topdir=`pwd`
20547 cd ${here}
20548
20549 intree="no"
20550 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20551 intree="yes"
20552 fi
20553
20554 # Find Tcl private headers
20555 if test x"${intree}" = xno; then
20556
20557 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20558 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20559 private_dir=""
20560 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20561 if test -f ${dir}/tclInt.h ; then
20562 private_dir=${dir}
20563 fi
20564
20565 if test x"${private_dir}" = x; then
20566 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20567 echo "$as_me: error: could not find private Tcl headers" >&2;}
20568 { (exit 1); exit 1; }; }
20569 else
20570 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20571 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20572 echo "${ECHO_T}${private_dir}" >&6
20573 fi
20574
20575 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20576 TCL_LIBRARY="${TCL_LIB_SPEC}"
20577 TCL_DEPS=""
20578 else
20579 # If building tcl in the same src tree, private headers
20580 # are not needed, but we need to be sure to use the right
20581 # headers library
20582 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20583 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20584 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20585 fi
20586
20587
20588
20589
20590
20591 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20592 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20593
20594 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20595 echo "$as_me:$LINENO: result: loading" >&5
20596 echo "${ECHO_T}loading" >&6
20597 . ${TK_BIN_DIR}/tkConfig.sh
20598 else
20599 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20600 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20601 fi
20602
20603 # eval is required to do the TK_DBGX substitution
20604 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20605 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20606
20607 # If the TK_BIN_DIR is the build directory (not the install directory),
20608 # then set the common variable name to the value of the build variables.
20609 # For example, the variable TK_LIB_SPEC will be set to the value
20610 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20611 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20612 # installed and uninstalled version of Tcl.
20613 if test -f "${TK_BIN_DIR}/Makefile" ; then
20614 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20615 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20616 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20617 elif test "`uname -s`" = "Darwin"; then
20618 # If Tk was built as a framework, attempt to use the libraries
20619 # from the framework at the given location so that linking works
20620 # against Tk.framework installed in an arbitary location.
20621 case ${TK_DEFS} in
20622 *TK_FRAMEWORK*)
20623 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20624 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20625 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20626 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20627 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20628 break
20629 fi
20630 done
20631 fi
20632 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20633 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20634 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20635 fi
20636 ;;
20637 esac
20638 fi
20639
20640 # eval is required to do the TK_DBGX substitution
20641 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20642 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20643 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20644 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659 # Check for in-tree Tk
20660 intree="no"
20661 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20662 intree="yes"
20663 fi
20664
20665 # Find Tk private headers
20666 if test x"${intree}" = xno; then
20667
20668 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20669 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20670 private_dir=""
20671 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20672 if test -f ${dir}/tkInt.h; then
20673 private_dir=${dir}
20674 fi
20675
20676 if test x"${private_dir}" = x; then
20677 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20678 echo "$as_me: error: could not find Tk private headers" >&2;}
20679 { (exit 1); exit 1; }; }
20680 else
20681 TK_PRIVATE_INCLUDE="-I${private_dir}"
20682 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20683 echo "${ECHO_T}${private_dir}" >&6
20684 fi
20685
20686 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20687 TK_LIBRARY=${TK_LIB_SPEC}
20688 TK_DEPS=""
20689 else
20690 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20691 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20692 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20693 fi
20694
20695
20696
20697
20698
20699 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20700
20701 # Include some libraries that Tcl and Tk want.
20702 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20703 # Yes, the ordering seems wrong here. But it isn't.
20704 # TK_LIBS is the list of libraries that need to be linked
20705 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20706 # were in LIBS then any link tests after this point would
20707 # try to include things like `$(LIBGUI)', which wouldn't work.
20708 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20709
20710 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20711 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20712 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20713 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20714 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20715 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20716 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20717
20718 if test x$gdb_cv_os_cygwin = xyes; then
20719 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20720 WIN32LDAPP="-Wl,--subsystem,console"
20721 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20722 fi
20723
20724
20725
20726 subdirs="$subdirs gdbtk"
20727
20728 fi
20729 fi
20730
20731
20732
20733
20734
20735
20736
20737
20738 echo "$as_me:$LINENO: checking for X" >&5
20739 echo $ECHO_N "checking for X... $ECHO_C" >&6
20740
20741
20742 # Check whether --with-x or --without-x was given.
20743 if test "${with_x+set}" = set; then
20744 withval="$with_x"
20745
20746 fi;
20747 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20748 if test "x$with_x" = xno; then
20749 # The user explicitly disabled X.
20750 have_x=disabled
20751 else
20752 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20753 # Both variables are already set.
20754 have_x=yes
20755 else
20756 if test "${ac_cv_have_x+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 else
20759 # One or both of the vars are not set, and there is no cached value.
20760 ac_x_includes=no ac_x_libraries=no
20761 rm -fr conftest.dir
20762 if mkdir conftest.dir; then
20763 cd conftest.dir
20764 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20765 cat >Imakefile <<'_ACEOF'
20766 acfindx:
20767 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20768 _ACEOF
20769 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20771 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20772 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20773 for ac_extension in a so sl; do
20774 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20775 test -f $ac_im_libdir/libX11.$ac_extension; then
20776 ac_im_usrlibdir=$ac_im_libdir; break
20777 fi
20778 done
20779 # Screen out bogus values from the imake configuration. They are
20780 # bogus both because they are the default anyway, and because
20781 # using them would break gcc on systems where it needs fixed includes.
20782 case $ac_im_incroot in
20783 /usr/include) ;;
20784 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20785 esac
20786 case $ac_im_usrlibdir in
20787 /usr/lib | /lib) ;;
20788 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20789 esac
20790 fi
20791 cd ..
20792 rm -fr conftest.dir
20793 fi
20794
20795 # Standard set of common directories for X headers.
20796 # Check X11 before X11Rn because it is often a symlink to the current release.
20797 ac_x_header_dirs='
20798 /usr/X11/include
20799 /usr/X11R6/include
20800 /usr/X11R5/include
20801 /usr/X11R4/include
20802
20803 /usr/include/X11
20804 /usr/include/X11R6
20805 /usr/include/X11R5
20806 /usr/include/X11R4
20807
20808 /usr/local/X11/include
20809 /usr/local/X11R6/include
20810 /usr/local/X11R5/include
20811 /usr/local/X11R4/include
20812
20813 /usr/local/include/X11
20814 /usr/local/include/X11R6
20815 /usr/local/include/X11R5
20816 /usr/local/include/X11R4
20817
20818 /usr/X386/include
20819 /usr/x386/include
20820 /usr/XFree86/include/X11
20821
20822 /usr/include
20823 /usr/local/include
20824 /usr/unsupported/include
20825 /usr/athena/include
20826 /usr/local/x11r5/include
20827 /usr/lpp/Xamples/include
20828
20829 /usr/openwin/include
20830 /usr/openwin/share/include'
20831
20832 if test "$ac_x_includes" = no; then
20833 # Guess where to find include files, by looking for Intrinsic.h.
20834 # First, try using that file with no special directory specified.
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 #include <X11/Intrinsic.h>
20842 _ACEOF
20843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20845 ac_status=$?
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } >/dev/null; then
20851 if test -s conftest.err; then
20852 ac_cpp_err=$ac_c_preproc_warn_flag
20853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20854 else
20855 ac_cpp_err=
20856 fi
20857 else
20858 ac_cpp_err=yes
20859 fi
20860 if test -z "$ac_cpp_err"; then
20861 # We can compile using X headers with no special include directory.
20862 ac_x_includes=
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 for ac_dir in $ac_x_header_dirs; do
20868 if test -r "$ac_dir/X11/Intrinsic.h"; then
20869 ac_x_includes=$ac_dir
20870 break
20871 fi
20872 done
20873 fi
20874 rm -f conftest.err conftest.$ac_ext
20875 fi # $ac_x_includes = no
20876
20877 if test "$ac_x_libraries" = no; then
20878 # Check for the libraries.
20879 # See if we find them without any special options.
20880 # Don't add to $LIBS permanently.
20881 ac_save_LIBS=$LIBS
20882 LIBS="-lXt $LIBS"
20883 cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h. */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <X11/Intrinsic.h>
20890 int
20891 main ()
20892 {
20893 XtMalloc (0)
20894 ;
20895 return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900 (eval $ac_link) 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } &&
20907 { ac_try='test -z "$ac_c_werror_flag"
20908 || test ! -s conftest.err'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest$ac_exeext'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 LIBS=$ac_save_LIBS
20921 # We can link X programs with no special library path.
20922 ac_x_libraries=
20923 else
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 LIBS=$ac_save_LIBS
20928 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20929 do
20930 # Don't even attempt the hair of trying to link an X program!
20931 for ac_extension in a so sl; do
20932 if test -r $ac_dir/libXt.$ac_extension; then
20933 ac_x_libraries=$ac_dir
20934 break 2
20935 fi
20936 done
20937 done
20938 fi
20939 rm -f conftest.err conftest.$ac_objext \
20940 conftest$ac_exeext conftest.$ac_ext
20941 fi # $ac_x_libraries = no
20942
20943 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20944 # Didn't find X anywhere. Cache the known absence of X.
20945 ac_cv_have_x="have_x=no"
20946 else
20947 # Record where we found X for the cache.
20948 ac_cv_have_x="have_x=yes \
20949 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20950 fi
20951 fi
20952
20953 fi
20954 eval "$ac_cv_have_x"
20955 fi # $with_x != no
20956
20957 if test "$have_x" != yes; then
20958 echo "$as_me:$LINENO: result: $have_x" >&5
20959 echo "${ECHO_T}$have_x" >&6
20960 no_x=yes
20961 else
20962 # If each of the values was on the command line, it overrides each guess.
20963 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20964 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20965 # Update the cache value to reflect the command line values.
20966 ac_cv_have_x="have_x=yes \
20967 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20968 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20969 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20970 fi
20971
20972
20973 # Unlike the sim directory, whether a simulator is linked is controlled by
20974 # presence of a gdb_sim definition in the target configure.tgt entry.
20975 # This code just checks for a few cases where we'd like to ignore those
20976 # definitions, even when they're present in the '.mt' file. These cases
20977 # are when --disable-sim is specified, or if the simulator directory is
20978 # not part of the source tree.
20979 #
20980 # Check whether --enable-sim or --disable-sim was given.
20981 if test "${enable_sim+set}" = set; then
20982 enableval="$enable_sim"
20983 echo "enable_sim = $enable_sim";
20984 echo "enableval = ${enableval}";
20985 case "${enableval}" in
20986 yes) ignore_sim=false ;;
20987 no) ignore_sim=true ;;
20988 *) ignore_sim=false ;;
20989 esac
20990 else
20991 ignore_sim=false
20992 fi;
20993
20994 if test ! -d "${srcdir}/../sim"; then
20995 ignore_sim=true
20996 fi
20997
20998 SIM=
20999 SIM_OBS=
21000 if test "${ignore_sim}" = "false"; then
21001 if test x"${gdb_sim}" != x ; then
21002 SIM="${gdb_sim}"
21003 SIM_OBS="remote-sim.o"
21004
21005 cat >>confdefs.h <<\_ACEOF
21006 #define WITH_SIM 1
21007 _ACEOF
21008
21009 fi
21010 fi
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025 # List of host floatformats.
21026
21027 cat >>confdefs.h <<_ACEOF
21028 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21029 _ACEOF
21030
21031
21032 cat >>confdefs.h <<_ACEOF
21033 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21034 _ACEOF
21035
21036
21037 cat >>confdefs.h <<_ACEOF
21038 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21039 _ACEOF
21040
21041
21042 # target_subdir is used by the testsuite to find the target libraries.
21043 target_subdir=
21044 if test "${host}" != "${target}"; then
21045 target_subdir="${target_alias}/"
21046 fi
21047
21048
21049 frags=
21050 if test "${gdb_native}" = "yes"; then
21051 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21052 if test ! -f ${host_makefile_frag}; then
21053 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21054 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21055 { (exit 1); exit 1; }; }
21056 fi
21057 frags="$frags $host_makefile_frag"
21058 else
21059 host_makefile_frag=/dev/null
21060 fi
21061
21062
21063
21064
21065 if test "${gdb_native}" = "yes"; then
21066 # We pick this up from the host configuration file (.mh) because we
21067 # do not have a native configuration Makefile fragment.
21068 nativefile=`sed -n '
21069 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21070 ' ${host_makefile_frag}`
21071 fi
21072
21073
21074 if test x"${gdb_osabi}" != x ; then
21075
21076 cat >>confdefs.h <<_ACEOF
21077 #define GDB_OSABI_DEFAULT $gdb_osabi
21078 _ACEOF
21079
21080 fi
21081
21082 # Enable multi-ice-gdb-server.
21083 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21084 if test "${enable_multi_ice+set}" = set; then
21085 enableval="$enable_multi_ice"
21086 case $enableval in
21087 yes | no)
21088 ;;
21089 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21090 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21091 { (exit 1); exit 1; }; } ;;
21092 esac
21093 fi;
21094 if test "x$enable_multi_ice" = xyes; then
21095
21096
21097 subdirs="$subdirs multi-ice"
21098
21099 fi
21100
21101 # We only build gdbserver automatically in a native configuration.
21102 if test "$gdb_native" = "yes"; then
21103 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21104 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21105 if test "x$build_gdbserver" = xyes; then
21106 echo "$as_me:$LINENO: result: yes" >&5
21107 echo "${ECHO_T}yes" >&6
21108
21109
21110 subdirs="$subdirs gdbserver"
21111
21112 else
21113 echo "$as_me:$LINENO: result: no" >&5
21114 echo "${ECHO_T}no" >&6
21115 fi
21116 fi
21117
21118 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21119 # to an empty version.
21120
21121 files=
21122 links=
21123
21124 rm -f nm.h
21125 nm_h=""
21126 if test "${nativefile}" != ""; then
21127 nm_h=nm.h
21128 case "${nativefile}" in
21129 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21130 * ) GDB_NM_FILE="${nativefile}"
21131 esac
21132 files="${files} ${GDB_NM_FILE}"
21133 links="${links} nm.h"
21134
21135 cat >>confdefs.h <<_ACEOF
21136 #define GDB_NM_FILE "${GDB_NM_FILE}"
21137 _ACEOF
21138
21139 fi
21140
21141
21142 ac_sources="$files"
21143 ac_dests="$links"
21144 while test -n "$ac_sources"; do
21145 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21146 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21147 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21148 done
21149 ac_config_links="$ac_config_links $ac_config_links_1"
21150
21151
21152
21153
21154
21155 cat >>confdefs.h <<\_ACEOF
21156 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21157 _ACEOF
21158
21159
21160 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21161 ac_config_commands="$ac_config_commands default"
21162 cat >confcache <<\_ACEOF
21163 # This file is a shell script that caches the results of configure
21164 # tests run on this system so they can be shared between configure
21165 # scripts and configure runs, see configure's option --config-cache.
21166 # It is not useful on other systems. If it contains results you don't
21167 # want to keep, you may remove or edit it.
21168 #
21169 # config.status only pays attention to the cache file if you give it
21170 # the --recheck option to rerun configure.
21171 #
21172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21174 # following values.
21175
21176 _ACEOF
21177
21178 # The following way of writing the cache mishandles newlines in values,
21179 # but we know of no workaround that is simple, portable, and efficient.
21180 # So, don't put newlines in cache variables' values.
21181 # Ultrix sh set writes to stderr and can't be redirected directly,
21182 # and sets the high bit in the cache file unless we assign to the vars.
21183 {
21184 (set) 2>&1 |
21185 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21186 *ac_space=\ *)
21187 # `set' does not quote correctly, so add quotes (double-quote
21188 # substitution turns \\\\ into \\, and sed turns \\ into \).
21189 sed -n \
21190 "s/'/'\\\\''/g;
21191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21192 ;;
21193 *)
21194 # `set' quotes correctly as required by POSIX, so do not add quotes.
21195 sed -n \
21196 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21197 ;;
21198 esac;
21199 } |
21200 sed '
21201 t clear
21202 : clear
21203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21204 t end
21205 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21206 : end' >>confcache
21207 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21208 if test -w $cache_file; then
21209 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21210 cat confcache >$cache_file
21211 else
21212 echo "not updating unwritable cache $cache_file"
21213 fi
21214 fi
21215 rm -f confcache
21216
21217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21218 # Let make expand exec_prefix.
21219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21220
21221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21223 # trailing colons and then remove the whole line if VPATH becomes empty
21224 # (actually we leave an empty line to preserve line numbers).
21225 if test "x$srcdir" = x.; then
21226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21227 s/:*\$(srcdir):*/:/;
21228 s/:*\${srcdir}:*/:/;
21229 s/:*@srcdir@:*/:/;
21230 s/^\([^=]*=[ ]*\):*/\1/;
21231 s/:*$//;
21232 s/^[^=]*=[ ]*$//;
21233 }'
21234 fi
21235
21236 DEFS=-DHAVE_CONFIG_H
21237
21238 ac_libobjs=
21239 ac_ltlibobjs=
21240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21241 # 1. Remove the extension, and $U if already installed.
21242 ac_i=`echo "$ac_i" |
21243 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21244 # 2. Add them.
21245 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21246 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21247 done
21248 LIBOBJS=$ac_libobjs
21249
21250 LTLIBOBJS=$ac_ltlibobjs
21251
21252
21253 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21254 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21255 Usually this means the macro was only invoked conditionally." >&5
21256 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21257 Usually this means the macro was only invoked conditionally." >&2;}
21258 { (exit 1); exit 1; }; }
21259 fi
21260 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21261 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21262 Usually this means the macro was only invoked conditionally." >&5
21263 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21264 Usually this means the macro was only invoked conditionally." >&2;}
21265 { (exit 1); exit 1; }; }
21266 fi
21267 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21268 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21269 Usually this means the macro was only invoked conditionally." >&5
21270 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21271 Usually this means the macro was only invoked conditionally." >&2;}
21272 { (exit 1); exit 1; }; }
21273 fi
21274
21275 gl_libobjs=
21276 gl_ltlibobjs=
21277 if test -n "$gl_LIBOBJS"; then
21278 # Remove the extension.
21279 sed_drop_objext='s/\.o$//;s/\.obj$//'
21280 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21281 gl_libobjs="$gl_libobjs $i.$ac_objext"
21282 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21283 done
21284 fi
21285 gl_LIBOBJS=$gl_libobjs
21286
21287 gl_LTLIBOBJS=$gl_ltlibobjs
21288
21289
21290
21291 gltests_libobjs=
21292 gltests_ltlibobjs=
21293 if test -n "$gltests_LIBOBJS"; then
21294 # Remove the extension.
21295 sed_drop_objext='s/\.o$//;s/\.obj$//'
21296 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21297 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21298 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21299 done
21300 fi
21301 gltests_LIBOBJS=$gltests_libobjs
21302
21303 gltests_LTLIBOBJS=$gltests_ltlibobjs
21304
21305
21306 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21307 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&5
21309 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21310 Usually this means the macro was only invoked conditionally." >&2;}
21311 { (exit 1); exit 1; }; }
21312 fi
21313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21314 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21315 Usually this means the macro was only invoked conditionally." >&5
21316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21317 Usually this means the macro was only invoked conditionally." >&2;}
21318 { (exit 1); exit 1; }; }
21319 fi
21320
21321 : ${CONFIG_STATUS=./config.status}
21322 ac_clean_files_save=$ac_clean_files
21323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21326 cat >$CONFIG_STATUS <<_ACEOF
21327 #! $SHELL
21328 # Generated by $as_me.
21329 # Run this file to recreate the current configuration.
21330 # Compiler output produced by configure, useful for debugging
21331 # configure, is in config.log if it exists.
21332
21333 debug=false
21334 ac_cs_recheck=false
21335 ac_cs_silent=false
21336 SHELL=\${CONFIG_SHELL-$SHELL}
21337 _ACEOF
21338
21339 cat >>$CONFIG_STATUS <<\_ACEOF
21340 ## --------------------- ##
21341 ## M4sh Initialization. ##
21342 ## --------------------- ##
21343
21344 # Be Bourne compatible
21345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21346 emulate sh
21347 NULLCMD=:
21348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21349 # is contrary to our usage. Disable this feature.
21350 alias -g '${1+"$@"}'='"$@"'
21351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21352 set -o posix
21353 fi
21354 DUALCASE=1; export DUALCASE # for MKS sh
21355
21356 # Support unset when possible.
21357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21358 as_unset=unset
21359 else
21360 as_unset=false
21361 fi
21362
21363
21364 # Work around bugs in pre-3.0 UWIN ksh.
21365 $as_unset ENV MAIL MAILPATH
21366 PS1='$ '
21367 PS2='> '
21368 PS4='+ '
21369
21370 # NLS nuisances.
21371 for as_var in \
21372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374 LC_TELEPHONE LC_TIME
21375 do
21376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377 eval $as_var=C; export $as_var
21378 else
21379 $as_unset $as_var
21380 fi
21381 done
21382
21383 # Required to use basename.
21384 if expr a : '\(a\)' >/dev/null 2>&1; then
21385 as_expr=expr
21386 else
21387 as_expr=false
21388 fi
21389
21390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21391 as_basename=basename
21392 else
21393 as_basename=false
21394 fi
21395
21396
21397 # Name of the executable.
21398 as_me=`$as_basename "$0" ||
21399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21400 X"$0" : 'X\(//\)$' \| \
21401 X"$0" : 'X\(/\)$' \| \
21402 . : '\(.\)' 2>/dev/null ||
21403 echo X/"$0" |
21404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21405 /^X\/\(\/\/\)$/{ s//\1/; q; }
21406 /^X\/\(\/\).*/{ s//\1/; q; }
21407 s/.*/./; q'`
21408
21409
21410 # PATH needs CR, and LINENO needs CR and PATH.
21411 # Avoid depending upon Character Ranges.
21412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21415 as_cr_digits='0123456789'
21416 as_cr_alnum=$as_cr_Letters$as_cr_digits
21417
21418 # The user is always right.
21419 if test "${PATH_SEPARATOR+set}" != set; then
21420 echo "#! /bin/sh" >conf$$.sh
21421 echo "exit 0" >>conf$$.sh
21422 chmod +x conf$$.sh
21423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21424 PATH_SEPARATOR=';'
21425 else
21426 PATH_SEPARATOR=:
21427 fi
21428 rm -f conf$$.sh
21429 fi
21430
21431
21432 as_lineno_1=$LINENO
21433 as_lineno_2=$LINENO
21434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21435 test "x$as_lineno_1" != "x$as_lineno_2" &&
21436 test "x$as_lineno_3" = "x$as_lineno_2" || {
21437 # Find who we are. Look in the path if we contain no path at all
21438 # relative or not.
21439 case $0 in
21440 *[\\/]* ) as_myself=$0 ;;
21441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21442 for as_dir in $PATH
21443 do
21444 IFS=$as_save_IFS
21445 test -z "$as_dir" && as_dir=.
21446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21447 done
21448
21449 ;;
21450 esac
21451 # We did not find ourselves, most probably we were run as `sh COMMAND'
21452 # in which case we are not to be found in the path.
21453 if test "x$as_myself" = x; then
21454 as_myself=$0
21455 fi
21456 if test ! -f "$as_myself"; then
21457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21459 { (exit 1); exit 1; }; }
21460 fi
21461 case $CONFIG_SHELL in
21462 '')
21463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21465 do
21466 IFS=$as_save_IFS
21467 test -z "$as_dir" && as_dir=.
21468 for as_base in sh bash ksh sh5; do
21469 case $as_dir in
21470 /*)
21471 if ("$as_dir/$as_base" -c '
21472 as_lineno_1=$LINENO
21473 as_lineno_2=$LINENO
21474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21475 test "x$as_lineno_1" != "x$as_lineno_2" &&
21476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21479 CONFIG_SHELL=$as_dir/$as_base
21480 export CONFIG_SHELL
21481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21482 fi;;
21483 esac
21484 done
21485 done
21486 ;;
21487 esac
21488
21489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21490 # uniformly replaced by the line number. The first 'sed' inserts a
21491 # line-number line before each line; the second 'sed' does the real
21492 # work. The second script uses 'N' to pair each line-number line
21493 # with the numbered line, and appends trailing '-' during
21494 # substitution so that $LINENO is not a special case at line end.
21495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21497 sed '=' <$as_myself |
21498 sed '
21499 N
21500 s,$,-,
21501 : loop
21502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21503 t loop
21504 s,-$,,
21505 s,^['$as_cr_digits']*\n,,
21506 ' >$as_me.lineno &&
21507 chmod +x $as_me.lineno ||
21508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21510 { (exit 1); exit 1; }; }
21511
21512 # Don't try to exec as it changes $[0], causing all sort of problems
21513 # (the dirname of $[0] is not the place where we might find the
21514 # original and so on. Autoconf is especially sensible to this).
21515 . ./$as_me.lineno
21516 # Exit status is that of the last command.
21517 exit
21518 }
21519
21520
21521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21522 *c*,-n*) ECHO_N= ECHO_C='
21523 ' ECHO_T=' ' ;;
21524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21526 esac
21527
21528 if expr a : '\(a\)' >/dev/null 2>&1; then
21529 as_expr=expr
21530 else
21531 as_expr=false
21532 fi
21533
21534 rm -f conf$$ conf$$.exe conf$$.file
21535 echo >conf$$.file
21536 if ln -s conf$$.file conf$$ 2>/dev/null; then
21537 # We could just check for DJGPP; but this test a) works b) is more generic
21538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21539 if test -f conf$$.exe; then
21540 # Don't use ln at all; we don't have any links
21541 as_ln_s='cp -p'
21542 else
21543 as_ln_s='ln -s'
21544 fi
21545 elif ln conf$$.file conf$$ 2>/dev/null; then
21546 as_ln_s=ln
21547 else
21548 as_ln_s='cp -p'
21549 fi
21550 rm -f conf$$ conf$$.exe conf$$.file
21551
21552 if mkdir -p . 2>/dev/null; then
21553 as_mkdir_p=:
21554 else
21555 test -d ./-p && rmdir ./-p
21556 as_mkdir_p=false
21557 fi
21558
21559 as_executable_p="test -f"
21560
21561 # Sed expression to map a string onto a valid CPP name.
21562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21563
21564 # Sed expression to map a string onto a valid variable name.
21565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21566
21567
21568 # IFS
21569 # We need space, tab and new line, in precisely that order.
21570 as_nl='
21571 '
21572 IFS=" $as_nl"
21573
21574 # CDPATH.
21575 $as_unset CDPATH
21576
21577 exec 6>&1
21578
21579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21580 # report actual input values of CONFIG_FILES etc. instead of their
21581 # values after options handling. Logging --version etc. is OK.
21582 exec 5>>config.log
21583 {
21584 echo
21585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21586 ## Running $as_me. ##
21587 _ASBOX
21588 } >&5
21589 cat >&5 <<_CSEOF
21590
21591 This file was extended by $as_me, which was
21592 generated by GNU Autoconf 2.59. Invocation command line was
21593
21594 CONFIG_FILES = $CONFIG_FILES
21595 CONFIG_HEADERS = $CONFIG_HEADERS
21596 CONFIG_LINKS = $CONFIG_LINKS
21597 CONFIG_COMMANDS = $CONFIG_COMMANDS
21598 $ $0 $@
21599
21600 _CSEOF
21601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21602 echo >&5
21603 _ACEOF
21604
21605 # Files that config.status was made for.
21606 if test -n "$ac_config_files"; then
21607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21608 fi
21609
21610 if test -n "$ac_config_headers"; then
21611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21612 fi
21613
21614 if test -n "$ac_config_links"; then
21615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21616 fi
21617
21618 if test -n "$ac_config_commands"; then
21619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21620 fi
21621
21622 cat >>$CONFIG_STATUS <<\_ACEOF
21623
21624 ac_cs_usage="\
21625 \`$as_me' instantiates files from templates according to the
21626 current configuration.
21627
21628 Usage: $0 [OPTIONS] [FILE]...
21629
21630 -h, --help print this help, then exit
21631 -V, --version print version number, then exit
21632 -q, --quiet do not print progress messages
21633 -d, --debug don't remove temporary files
21634 --recheck update $as_me by reconfiguring in the same conditions
21635 --file=FILE[:TEMPLATE]
21636 instantiate the configuration file FILE
21637 --header=FILE[:TEMPLATE]
21638 instantiate the configuration header FILE
21639
21640 Configuration files:
21641 $config_files
21642
21643 Configuration headers:
21644 $config_headers
21645
21646 Configuration links:
21647 $config_links
21648
21649 Configuration commands:
21650 $config_commands
21651
21652 Report bugs to <bug-autoconf@gnu.org>."
21653 _ACEOF
21654
21655 cat >>$CONFIG_STATUS <<_ACEOF
21656 ac_cs_version="\\
21657 config.status
21658 configured by $0, generated by GNU Autoconf 2.59,
21659 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21660
21661 Copyright (C) 2003 Free Software Foundation, Inc.
21662 This config.status script is free software; the Free Software Foundation
21663 gives unlimited permission to copy, distribute and modify it."
21664 srcdir=$srcdir
21665 INSTALL="$INSTALL"
21666 _ACEOF
21667
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21669 # If no file are specified by the user, then we need to provide default
21670 # value. By we need to know if files were specified by the user.
21671 ac_need_defaults=:
21672 while test $# != 0
21673 do
21674 case $1 in
21675 --*=*)
21676 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21677 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21678 ac_shift=:
21679 ;;
21680 -*)
21681 ac_option=$1
21682 ac_optarg=$2
21683 ac_shift=shift
21684 ;;
21685 *) # This is not an option, so the user has probably given explicit
21686 # arguments.
21687 ac_option=$1
21688 ac_need_defaults=false;;
21689 esac
21690
21691 case $ac_option in
21692 # Handling of the options.
21693 _ACEOF
21694 cat >>$CONFIG_STATUS <<\_ACEOF
21695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21696 ac_cs_recheck=: ;;
21697 --version | --vers* | -V )
21698 echo "$ac_cs_version"; exit 0 ;;
21699 --he | --h)
21700 # Conflict between --help and --header
21701 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21702 Try \`$0 --help' for more information." >&5
21703 echo "$as_me: error: ambiguous option: $1
21704 Try \`$0 --help' for more information." >&2;}
21705 { (exit 1); exit 1; }; };;
21706 --help | --hel | -h )
21707 echo "$ac_cs_usage"; exit 0 ;;
21708 --debug | --d* | -d )
21709 debug=: ;;
21710 --file | --fil | --fi | --f )
21711 $ac_shift
21712 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21713 ac_need_defaults=false;;
21714 --header | --heade | --head | --hea )
21715 $ac_shift
21716 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21717 ac_need_defaults=false;;
21718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21719 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21720 ac_cs_silent=: ;;
21721
21722 # This is an error.
21723 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21724 Try \`$0 --help' for more information." >&5
21725 echo "$as_me: error: unrecognized option: $1
21726 Try \`$0 --help' for more information." >&2;}
21727 { (exit 1); exit 1; }; } ;;
21728
21729 *) ac_config_targets="$ac_config_targets $1" ;;
21730
21731 esac
21732 shift
21733 done
21734
21735 ac_configure_extra_args=
21736
21737 if $ac_cs_silent; then
21738 exec 6>/dev/null
21739 ac_configure_extra_args="$ac_configure_extra_args --silent"
21740 fi
21741
21742 _ACEOF
21743 cat >>$CONFIG_STATUS <<_ACEOF
21744 if \$ac_cs_recheck; then
21745 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21746 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21747 fi
21748
21749 _ACEOF
21750
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 #
21753 # INIT-COMMANDS section.
21754 #
21755
21756 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21757 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21758
21759 gdb_host_cpu=$gdb_host_cpu
21760 nativefile=$nativefile
21761
21762
21763 _ACEOF
21764
21765
21766
21767 cat >>$CONFIG_STATUS <<\_ACEOF
21768 for ac_config_target in $ac_config_targets
21769 do
21770 case "$ac_config_target" in
21771 # Handling of arguments.
21772 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21773 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21774 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21775 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21776 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21777 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21778 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21779 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21781 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21782 { (exit 1); exit 1; }; };;
21783 esac
21784 done
21785
21786 # If the user did not use the arguments to specify the items to instantiate,
21787 # then the envvar interface is used. Set only those that are not.
21788 # We use the long form for the default assignment because of an extremely
21789 # bizarre bug on SunOS 4.1.3.
21790 if $ac_need_defaults; then
21791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21793 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21795 fi
21796
21797 # Have a temporary directory for convenience. Make it in the build tree
21798 # simply because there is no reason to put it here, and in addition,
21799 # creating and moving files from /tmp can sometimes cause problems.
21800 # Create a temporary directory, and hook for its removal unless debugging.
21801 $debug ||
21802 {
21803 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21804 trap '{ (exit 1); exit 1; }' 1 2 13 15
21805 }
21806
21807 # Create a (secure) tmp directory for tmp files.
21808
21809 {
21810 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21811 test -n "$tmp" && test -d "$tmp"
21812 } ||
21813 {
21814 tmp=./confstat$$-$RANDOM
21815 (umask 077 && mkdir $tmp)
21816 } ||
21817 {
21818 echo "$me: cannot create a temporary directory in ." >&2
21819 { (exit 1); exit 1; }
21820 }
21821
21822 _ACEOF
21823
21824 cat >>$CONFIG_STATUS <<_ACEOF
21825
21826 #
21827 # CONFIG_FILES section.
21828 #
21829
21830 # No need to generate the scripts if there are no CONFIG_FILES.
21831 # This happens for instance when ./config.status config.h
21832 if test -n "\$CONFIG_FILES"; then
21833 # Protect against being on the right side of a sed subst in config.status.
21834 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21835 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21836 s,@SHELL@,$SHELL,;t t
21837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21838 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21839 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21840 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21841 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21842 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21843 s,@exec_prefix@,$exec_prefix,;t t
21844 s,@prefix@,$prefix,;t t
21845 s,@program_transform_name@,$program_transform_name,;t t
21846 s,@bindir@,$bindir,;t t
21847 s,@sbindir@,$sbindir,;t t
21848 s,@libexecdir@,$libexecdir,;t t
21849 s,@datadir@,$datadir,;t t
21850 s,@sysconfdir@,$sysconfdir,;t t
21851 s,@sharedstatedir@,$sharedstatedir,;t t
21852 s,@localstatedir@,$localstatedir,;t t
21853 s,@libdir@,$libdir,;t t
21854 s,@includedir@,$includedir,;t t
21855 s,@oldincludedir@,$oldincludedir,;t t
21856 s,@infodir@,$infodir,;t t
21857 s,@mandir@,$mandir,;t t
21858 s,@build_alias@,$build_alias,;t t
21859 s,@host_alias@,$host_alias,;t t
21860 s,@target_alias@,$target_alias,;t t
21861 s,@DEFS@,$DEFS,;t t
21862 s,@ECHO_C@,$ECHO_C,;t t
21863 s,@ECHO_N@,$ECHO_N,;t t
21864 s,@ECHO_T@,$ECHO_T,;t t
21865 s,@LIBS@,$LIBS,;t t
21866 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21867 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21868 s,@MAINT@,$MAINT,;t t
21869 s,@CC@,$CC,;t t
21870 s,@CFLAGS@,$CFLAGS,;t t
21871 s,@LDFLAGS@,$LDFLAGS,;t t
21872 s,@CPPFLAGS@,$CPPFLAGS,;t t
21873 s,@ac_ct_CC@,$ac_ct_CC,;t t
21874 s,@EXEEXT@,$EXEEXT,;t t
21875 s,@OBJEXT@,$OBJEXT,;t t
21876 s,@CPP@,$CPP,;t t
21877 s,@EGREP@,$EGREP,;t t
21878 s,@RANLIB@,$RANLIB,;t t
21879 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21880 s,@build@,$build,;t t
21881 s,@build_cpu@,$build_cpu,;t t
21882 s,@build_vendor@,$build_vendor,;t t
21883 s,@build_os@,$build_os,;t t
21884 s,@host@,$host,;t t
21885 s,@host_cpu@,$host_cpu,;t t
21886 s,@host_vendor@,$host_vendor,;t t
21887 s,@host_os@,$host_os,;t t
21888 s,@target@,$target,;t t
21889 s,@target_cpu@,$target_cpu,;t t
21890 s,@target_vendor@,$target_vendor,;t t
21891 s,@target_os@,$target_os,;t t
21892 s,@am__leading_dot@,$am__leading_dot,;t t
21893 s,@DEPDIR@,$DEPDIR,;t t
21894 s,@CCDEPMODE@,$CCDEPMODE,;t t
21895 s,@MAKE@,$MAKE,;t t
21896 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21897 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21898 s,@SET_MAKE@,$SET_MAKE,;t t
21899 s,@USE_NLS@,$USE_NLS,;t t
21900 s,@LIBINTL@,$LIBINTL,;t t
21901 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21902 s,@INCINTL@,$INCINTL,;t t
21903 s,@XGETTEXT@,$XGETTEXT,;t t
21904 s,@GMSGFMT@,$GMSGFMT,;t t
21905 s,@POSUB@,$POSUB,;t t
21906 s,@CATALOGS@,$CATALOGS,;t t
21907 s,@DATADIRNAME@,$DATADIRNAME,;t t
21908 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21909 s,@GENCAT@,$GENCAT,;t t
21910 s,@CATOBJEXT@,$CATOBJEXT,;t t
21911 s,@localedir@,$localedir,;t t
21912 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21913 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21914 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21915 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21916 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21917 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21918 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21919 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21920 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21921 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21922 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21923 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21924 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21925 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21926 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21927 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21928 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21929 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21930 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21931 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21932 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21933 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21934 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21935 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21936 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21937 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21938 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21939 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21940 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21941 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21942 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21943 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21944 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21945 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21946 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21947 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21948 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21949 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21950 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21951 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21952 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21953 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21954 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21955 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21956 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21957 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21958 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21959 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21960 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21961 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21962 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21963 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21964 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21965 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21966 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21967 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21968 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21969 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21970 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21971 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21972 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21973 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21974 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21975 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21976 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21977 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21978 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21979 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21980 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21981 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21982 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21983 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21984 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21985 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21986 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21987 s,@STDINT_H@,$STDINT_H,;t t
21988 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21989 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21990 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21991 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21992 s,@WCHAR_H@,$WCHAR_H,;t t
21993 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21994 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21995 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21996 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21997 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21998 s,@PACKAGE@,$PACKAGE,;t t
21999 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22000 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22002 s,@CYGPATH_W@,$CYGPATH_W,;t t
22003 s,@PYTHON2_4@,$PYTHON2_4,;t t
22004 s,@ACLOCAL@,$ACLOCAL,;t t
22005 s,@AUTOCONF@,$AUTOCONF,;t t
22006 s,@AUTOMAKE@,$AUTOMAKE,;t t
22007 s,@AUTOHEADER@,$AUTOHEADER,;t t
22008 s,@MAKEINFO@,$MAKEINFO,;t t
22009 s,@install_sh@,$install_sh,;t t
22010 s,@STRIP@,$STRIP,;t t
22011 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22012 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22013 s,@mkdir_p@,$mkdir_p,;t t
22014 s,@AWK@,$AWK,;t t
22015 s,@AMTAR@,$AMTAR,;t t
22016 s,@am__tar@,$am__tar,;t t
22017 s,@am__untar@,$am__untar,;t t
22018 s,@am__include@,$am__include,;t t
22019 s,@am__quote@,$am__quote,;t t
22020 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22021 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22022 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22023 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22024 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22025 s,@subdirs@,$subdirs,;t t
22026 s,@TARGET_OBS@,$TARGET_OBS,;t t
22027 s,@PKGVERSION@,$PKGVERSION,;t t
22028 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22029 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22030 s,@LN_S@,$LN_S,;t t
22031 s,@YACC@,$YACC,;t t
22032 s,@AR@,$AR,;t t
22033 s,@ac_ct_AR@,$ac_ct_AR,;t t
22034 s,@DLLTOOL@,$DLLTOOL,;t t
22035 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22036 s,@WINDRES@,$WINDRES,;t t
22037 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22038 s,@MIG@,$MIG,;t t
22039 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22040 s,@READLINE@,$READLINE,;t t
22041 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22042 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22043 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22044 s,@LIBEXPAT@,$LIBEXPAT,;t t
22045 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22046 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22047 s,@ALLOCA@,$ALLOCA,;t t
22048 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22049 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22050 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22051 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22052 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22053 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22054 s,@WIN32LIBS@,$WIN32LIBS,;t t
22055 s,@LIBGUI@,$LIBGUI,;t t
22056 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22057 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22058 s,@TCL_VERSION@,$TCL_VERSION,;t t
22059 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22060 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22061 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22062 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22063 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22064 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22065 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22066 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22067 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22068 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22069 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22070 s,@TCL_DEPS@,$TCL_DEPS,;t t
22071 s,@TK_VERSION@,$TK_VERSION,;t t
22072 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22073 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22074 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22075 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22076 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22077 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22078 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22079 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22080 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22081 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22082 s,@TK_DEPS@,$TK_DEPS,;t t
22083 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22084 s,@X_CFLAGS@,$X_CFLAGS,;t t
22085 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22086 s,@X_LIBS@,$X_LIBS,;t t
22087 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22088 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22089 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22090 s,@SIM@,$SIM,;t t
22091 s,@SIM_OBS@,$SIM_OBS,;t t
22092 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22093 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22094 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22095 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22096 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22097 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22098 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22099 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22100 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22101 s,@target_subdir@,$target_subdir,;t t
22102 s,@frags@,$frags,;t t
22103 s,@nm_h@,$nm_h,;t t
22104 s,@LIBOBJS@,$LIBOBJS,;t t
22105 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22106 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22107 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22108 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22109 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22110 /@host_makefile_frag@/r $host_makefile_frag
22111 s,@host_makefile_frag@,,;t t
22112 CEOF
22113
22114 _ACEOF
22115
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 # Split the substitutions into bite-sized pieces for seds with
22118 # small command number limits, like on Digital OSF/1 and HP-UX.
22119 ac_max_sed_lines=48
22120 ac_sed_frag=1 # Number of current file.
22121 ac_beg=1 # First line for current file.
22122 ac_end=$ac_max_sed_lines # Line after last line for current file.
22123 ac_more_lines=:
22124 ac_sed_cmds=
22125 while $ac_more_lines; do
22126 if test $ac_beg -gt 1; then
22127 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22128 else
22129 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22130 fi
22131 if test ! -s $tmp/subs.frag; then
22132 ac_more_lines=false
22133 else
22134 # The purpose of the label and of the branching condition is to
22135 # speed up the sed processing (if there are no `@' at all, there
22136 # is no need to browse any of the substitutions).
22137 # These are the two extra sed commands mentioned above.
22138 (echo ':t
22139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22140 if test -z "$ac_sed_cmds"; then
22141 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22142 else
22143 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22144 fi
22145 ac_sed_frag=`expr $ac_sed_frag + 1`
22146 ac_beg=$ac_end
22147 ac_end=`expr $ac_end + $ac_max_sed_lines`
22148 fi
22149 done
22150 if test -z "$ac_sed_cmds"; then
22151 ac_sed_cmds=cat
22152 fi
22153 fi # test -n "$CONFIG_FILES"
22154
22155 _ACEOF
22156 cat >>$CONFIG_STATUS <<\_ACEOF
22157 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22159 case $ac_file in
22160 - | *:- | *:-:* ) # input from stdin
22161 cat >$tmp/stdin
22162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22166 * ) ac_file_in=$ac_file.in ;;
22167 esac
22168
22169 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22170 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172 X"$ac_file" : 'X\(//\)[^/]' \| \
22173 X"$ac_file" : 'X\(//\)$' \| \
22174 X"$ac_file" : 'X\(/\)' \| \
22175 . : '\(.\)' 2>/dev/null ||
22176 echo X"$ac_file" |
22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22179 /^X\(\/\/\)$/{ s//\1/; q; }
22180 /^X\(\/\).*/{ s//\1/; q; }
22181 s/.*/./; q'`
22182 { if $as_mkdir_p; then
22183 mkdir -p "$ac_dir"
22184 else
22185 as_dir="$ac_dir"
22186 as_dirs=
22187 while test ! -d "$as_dir"; do
22188 as_dirs="$as_dir $as_dirs"
22189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| \
22194 . : '\(.\)' 2>/dev/null ||
22195 echo X"$as_dir" |
22196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22198 /^X\(\/\/\)$/{ s//\1/; q; }
22199 /^X\(\/\).*/{ s//\1/; q; }
22200 s/.*/./; q'`
22201 done
22202 test ! -n "$as_dirs" || mkdir $as_dirs
22203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22205 { (exit 1); exit 1; }; }; }
22206
22207 ac_builddir=.
22208
22209 if test "$ac_dir" != .; then
22210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22211 # A "../" for each directory in $ac_dir_suffix.
22212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22213 else
22214 ac_dir_suffix= ac_top_builddir=
22215 fi
22216
22217 case $srcdir in
22218 .) # No --srcdir option. We are building in place.
22219 ac_srcdir=.
22220 if test -z "$ac_top_builddir"; then
22221 ac_top_srcdir=.
22222 else
22223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22224 fi ;;
22225 [\\/]* | ?:[\\/]* ) # Absolute path.
22226 ac_srcdir=$srcdir$ac_dir_suffix;
22227 ac_top_srcdir=$srcdir ;;
22228 *) # Relative path.
22229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22230 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22231 esac
22232
22233 # Do not use `cd foo && pwd` to compute absolute paths, because
22234 # the directories may not exist.
22235 case `pwd` in
22236 .) ac_abs_builddir="$ac_dir";;
22237 *)
22238 case "$ac_dir" in
22239 .) ac_abs_builddir=`pwd`;;
22240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22241 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22242 esac;;
22243 esac
22244 case $ac_abs_builddir in
22245 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22246 *)
22247 case ${ac_top_builddir}. in
22248 .) ac_abs_top_builddir=$ac_abs_builddir;;
22249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22251 esac;;
22252 esac
22253 case $ac_abs_builddir in
22254 .) ac_abs_srcdir=$ac_srcdir;;
22255 *)
22256 case $ac_srcdir in
22257 .) ac_abs_srcdir=$ac_abs_builddir;;
22258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22260 esac;;
22261 esac
22262 case $ac_abs_builddir in
22263 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22264 *)
22265 case $ac_top_srcdir in
22266 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22269 esac;;
22270 esac
22271
22272
22273 case $INSTALL in
22274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22275 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22276 esac
22277
22278 if test x"$ac_file" != x-; then
22279 { echo "$as_me:$LINENO: creating $ac_file" >&5
22280 echo "$as_me: creating $ac_file" >&6;}
22281 rm -f "$ac_file"
22282 fi
22283 # Let's still pretend it is `configure' which instantiates (i.e., don't
22284 # use $as_me), people would be surprised to read:
22285 # /* config.h. Generated by config.status. */
22286 if test x"$ac_file" = x-; then
22287 configure_input=
22288 else
22289 configure_input="$ac_file. "
22290 fi
22291 configure_input=$configure_input"Generated from `echo $ac_file_in |
22292 sed 's,.*/,,'` by configure."
22293
22294 # First look for the input files in the build tree, otherwise in the
22295 # src tree.
22296 ac_file_inputs=`IFS=:
22297 for f in $ac_file_in; do
22298 case $f in
22299 -) echo $tmp/stdin ;;
22300 [\\/$]*)
22301 # Absolute (can't be DOS-style, as IFS=:)
22302 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22303 echo "$as_me: error: cannot find input file: $f" >&2;}
22304 { (exit 1); exit 1; }; }
22305 echo "$f";;
22306 *) # Relative
22307 if test -f "$f"; then
22308 # Build tree
22309 echo "$f"
22310 elif test -f "$srcdir/$f"; then
22311 # Source tree
22312 echo "$srcdir/$f"
22313 else
22314 # /dev/null tree
22315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22316 echo "$as_me: error: cannot find input file: $f" >&2;}
22317 { (exit 1); exit 1; }; }
22318 fi;;
22319 esac
22320 done` || { (exit 1); exit 1; }
22321 _ACEOF
22322 cat >>$CONFIG_STATUS <<_ACEOF
22323 sed "$ac_vpsub
22324 $extrasub
22325 _ACEOF
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 :t
22328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22329 s,@configure_input@,$configure_input,;t t
22330 s,@srcdir@,$ac_srcdir,;t t
22331 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22332 s,@top_srcdir@,$ac_top_srcdir,;t t
22333 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22334 s,@builddir@,$ac_builddir,;t t
22335 s,@abs_builddir@,$ac_abs_builddir,;t t
22336 s,@top_builddir@,$ac_top_builddir,;t t
22337 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22338 s,@INSTALL@,$ac_INSTALL,;t t
22339 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22340 rm -f $tmp/stdin
22341 if test x"$ac_file" != x-; then
22342 mv $tmp/out $ac_file
22343 else
22344 cat $tmp/out
22345 rm -f $tmp/out
22346 fi
22347
22348 done
22349 _ACEOF
22350 cat >>$CONFIG_STATUS <<\_ACEOF
22351
22352 #
22353 # CONFIG_HEADER section.
22354 #
22355
22356 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22357 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22358 #
22359 # ac_d sets the value in "#define NAME VALUE" lines.
22360 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22361 ac_dB='[ ].*$,\1#\2'
22362 ac_dC=' '
22363 ac_dD=',;t'
22364 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22365 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22366 ac_uB='$,\1#\2define\3'
22367 ac_uC=' '
22368 ac_uD=',;t'
22369
22370 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22372 case $ac_file in
22373 - | *:- | *:-:* ) # input from stdin
22374 cat >$tmp/stdin
22375 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22377 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22379 * ) ac_file_in=$ac_file.in ;;
22380 esac
22381
22382 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22383 echo "$as_me: creating $ac_file" >&6;}
22384
22385 # First look for the input files in the build tree, otherwise in the
22386 # src tree.
22387 ac_file_inputs=`IFS=:
22388 for f in $ac_file_in; do
22389 case $f in
22390 -) echo $tmp/stdin ;;
22391 [\\/$]*)
22392 # Absolute (can't be DOS-style, as IFS=:)
22393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22394 echo "$as_me: error: cannot find input file: $f" >&2;}
22395 { (exit 1); exit 1; }; }
22396 # Do quote $f, to prevent DOS paths from being IFS'd.
22397 echo "$f";;
22398 *) # Relative
22399 if test -f "$f"; then
22400 # Build tree
22401 echo "$f"
22402 elif test -f "$srcdir/$f"; then
22403 # Source tree
22404 echo "$srcdir/$f"
22405 else
22406 # /dev/null tree
22407 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22408 echo "$as_me: error: cannot find input file: $f" >&2;}
22409 { (exit 1); exit 1; }; }
22410 fi;;
22411 esac
22412 done` || { (exit 1); exit 1; }
22413 # Remove the trailing spaces.
22414 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22415
22416 _ACEOF
22417
22418 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22419 # `conftest.undefs', that substitutes the proper values into
22420 # config.h.in to produce config.h. The first handles `#define'
22421 # templates, and the second `#undef' templates.
22422 # And first: Protect against being on the right side of a sed subst in
22423 # config.status. Protect against being in an unquoted here document
22424 # in config.status.
22425 rm -f conftest.defines conftest.undefs
22426 # Using a here document instead of a string reduces the quoting nightmare.
22427 # Putting comments in sed scripts is not portable.
22428 #
22429 # `end' is used to avoid that the second main sed command (meant for
22430 # 0-ary CPP macros) applies to n-ary macro definitions.
22431 # See the Autoconf documentation for `clear'.
22432 cat >confdef2sed.sed <<\_ACEOF
22433 s/[\\&,]/\\&/g
22434 s,[\\$`],\\&,g
22435 t clear
22436 : clear
22437 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22438 t end
22439 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22440 : end
22441 _ACEOF
22442 # If some macros were called several times there might be several times
22443 # the same #defines, which is useless. Nevertheless, we may not want to
22444 # sort them, since we want the *last* AC-DEFINE to be honored.
22445 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22446 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22447 rm -f confdef2sed.sed
22448
22449 # This sed command replaces #undef with comments. This is necessary, for
22450 # example, in the case of _POSIX_SOURCE, which is predefined and required
22451 # on some systems where configure will not decide to define it.
22452 cat >>conftest.undefs <<\_ACEOF
22453 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22454 _ACEOF
22455
22456 # Break up conftest.defines because some shells have a limit on the size
22457 # of here documents, and old seds have small limits too (100 cmds).
22458 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22459 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22460 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22461 echo ' :' >>$CONFIG_STATUS
22462 rm -f conftest.tail
22463 while grep . conftest.defines >/dev/null
22464 do
22465 # Write a limited-size here document to $tmp/defines.sed.
22466 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22467 # Speed up: don't consider the non `#define' lines.
22468 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22469 # Work around the forget-to-reset-the-flag bug.
22470 echo 't clr' >>$CONFIG_STATUS
22471 echo ': clr' >>$CONFIG_STATUS
22472 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22473 echo 'CEOF
22474 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22475 rm -f $tmp/in
22476 mv $tmp/out $tmp/in
22477 ' >>$CONFIG_STATUS
22478 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22479 rm -f conftest.defines
22480 mv conftest.tail conftest.defines
22481 done
22482 rm -f conftest.defines
22483 echo ' fi # grep' >>$CONFIG_STATUS
22484 echo >>$CONFIG_STATUS
22485
22486 # Break up conftest.undefs because some shells have a limit on the size
22487 # of here documents, and old seds have small limits too (100 cmds).
22488 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22489 rm -f conftest.tail
22490 while grep . conftest.undefs >/dev/null
22491 do
22492 # Write a limited-size here document to $tmp/undefs.sed.
22493 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22494 # Speed up: don't consider the non `#undef'
22495 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22496 # Work around the forget-to-reset-the-flag bug.
22497 echo 't clr' >>$CONFIG_STATUS
22498 echo ': clr' >>$CONFIG_STATUS
22499 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22500 echo 'CEOF
22501 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22502 rm -f $tmp/in
22503 mv $tmp/out $tmp/in
22504 ' >>$CONFIG_STATUS
22505 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22506 rm -f conftest.undefs
22507 mv conftest.tail conftest.undefs
22508 done
22509 rm -f conftest.undefs
22510
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512 # Let's still pretend it is `configure' which instantiates (i.e., don't
22513 # use $as_me), people would be surprised to read:
22514 # /* config.h. Generated by config.status. */
22515 if test x"$ac_file" = x-; then
22516 echo "/* Generated by configure. */" >$tmp/config.h
22517 else
22518 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22519 fi
22520 cat $tmp/in >>$tmp/config.h
22521 rm -f $tmp/in
22522 if test x"$ac_file" != x-; then
22523 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22524 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22525 echo "$as_me: $ac_file is unchanged" >&6;}
22526 else
22527 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22529 X"$ac_file" : 'X\(//\)[^/]' \| \
22530 X"$ac_file" : 'X\(//\)$' \| \
22531 X"$ac_file" : 'X\(/\)' \| \
22532 . : '\(.\)' 2>/dev/null ||
22533 echo X"$ac_file" |
22534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22536 /^X\(\/\/\)$/{ s//\1/; q; }
22537 /^X\(\/\).*/{ s//\1/; q; }
22538 s/.*/./; q'`
22539 { if $as_mkdir_p; then
22540 mkdir -p "$ac_dir"
22541 else
22542 as_dir="$ac_dir"
22543 as_dirs=
22544 while test ! -d "$as_dir"; do
22545 as_dirs="$as_dir $as_dirs"
22546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22548 X"$as_dir" : 'X\(//\)[^/]' \| \
22549 X"$as_dir" : 'X\(//\)$' \| \
22550 X"$as_dir" : 'X\(/\)' \| \
22551 . : '\(.\)' 2>/dev/null ||
22552 echo X"$as_dir" |
22553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22555 /^X\(\/\/\)$/{ s//\1/; q; }
22556 /^X\(\/\).*/{ s//\1/; q; }
22557 s/.*/./; q'`
22558 done
22559 test ! -n "$as_dirs" || mkdir $as_dirs
22560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22562 { (exit 1); exit 1; }; }; }
22563
22564 rm -f $ac_file
22565 mv $tmp/config.h $ac_file
22566 fi
22567 else
22568 cat $tmp/config.h
22569 rm -f $tmp/config.h
22570 fi
22571 # Compute $ac_file's index in $config_headers.
22572 _am_stamp_count=1
22573 for _am_header in $config_headers :; do
22574 case $_am_header in
22575 $ac_file | $ac_file:* )
22576 break ;;
22577 * )
22578 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22579 esac
22580 done
22581 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22582 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22583 X$ac_file : 'X\(//\)[^/]' \| \
22584 X$ac_file : 'X\(//\)$' \| \
22585 X$ac_file : 'X\(/\)' \| \
22586 . : '\(.\)' 2>/dev/null ||
22587 echo X$ac_file |
22588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22590 /^X\(\/\/\)$/{ s//\1/; q; }
22591 /^X\(\/\).*/{ s//\1/; q; }
22592 s/.*/./; q'`/stamp-h$_am_stamp_count
22593 done
22594 _ACEOF
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596
22597 #
22598 # CONFIG_LINKS section.
22599 #
22600
22601 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22602 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22603 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22604
22605 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22606 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22607
22608 if test ! -r $srcdir/$ac_source; then
22609 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22610 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22611 { (exit 1); exit 1; }; }
22612 fi
22613 rm -f $ac_dest
22614
22615 # Make relative symlinks.
22616 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22617 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$ac_dest" : 'X\(//\)[^/]' \| \
22619 X"$ac_dest" : 'X\(//\)$' \| \
22620 X"$ac_dest" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22622 echo X"$ac_dest" |
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22627 s/.*/./; q'`
22628 { if $as_mkdir_p; then
22629 mkdir -p "$ac_dest_dir"
22630 else
22631 as_dir="$ac_dest_dir"
22632 as_dirs=
22633 while test ! -d "$as_dir"; do
22634 as_dirs="$as_dir $as_dirs"
22635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22637 X"$as_dir" : 'X\(//\)[^/]' \| \
22638 X"$as_dir" : 'X\(//\)$' \| \
22639 X"$as_dir" : 'X\(/\)' \| \
22640 . : '\(.\)' 2>/dev/null ||
22641 echo X"$as_dir" |
22642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22644 /^X\(\/\/\)$/{ s//\1/; q; }
22645 /^X\(\/\).*/{ s//\1/; q; }
22646 s/.*/./; q'`
22647 done
22648 test ! -n "$as_dirs" || mkdir $as_dirs
22649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22650 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22651 { (exit 1); exit 1; }; }; }
22652
22653 ac_builddir=.
22654
22655 if test "$ac_dest_dir" != .; then
22656 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22657 # A "../" for each directory in $ac_dir_suffix.
22658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22659 else
22660 ac_dir_suffix= ac_top_builddir=
22661 fi
22662
22663 case $srcdir in
22664 .) # No --srcdir option. We are building in place.
22665 ac_srcdir=.
22666 if test -z "$ac_top_builddir"; then
22667 ac_top_srcdir=.
22668 else
22669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22670 fi ;;
22671 [\\/]* | ?:[\\/]* ) # Absolute path.
22672 ac_srcdir=$srcdir$ac_dir_suffix;
22673 ac_top_srcdir=$srcdir ;;
22674 *) # Relative path.
22675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22677 esac
22678
22679 # Do not use `cd foo && pwd` to compute absolute paths, because
22680 # the directories may not exist.
22681 case `pwd` in
22682 .) ac_abs_builddir="$ac_dest_dir";;
22683 *)
22684 case "$ac_dest_dir" in
22685 .) ac_abs_builddir=`pwd`;;
22686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22687 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22688 esac;;
22689 esac
22690 case $ac_abs_builddir in
22691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22692 *)
22693 case ${ac_top_builddir}. in
22694 .) ac_abs_top_builddir=$ac_abs_builddir;;
22695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22697 esac;;
22698 esac
22699 case $ac_abs_builddir in
22700 .) ac_abs_srcdir=$ac_srcdir;;
22701 *)
22702 case $ac_srcdir in
22703 .) ac_abs_srcdir=$ac_abs_builddir;;
22704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22706 esac;;
22707 esac
22708 case $ac_abs_builddir in
22709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22710 *)
22711 case $ac_top_srcdir in
22712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22715 esac;;
22716 esac
22717
22718
22719 case $srcdir in
22720 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22721 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22722 esac
22723
22724 # Try a symlink, then a hard link, then a copy.
22725 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22726 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22727 cp -p $srcdir/$ac_source $ac_dest ||
22728 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22729 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22730 { (exit 1); exit 1; }; }
22731 done
22732 _ACEOF
22733 cat >>$CONFIG_STATUS <<\_ACEOF
22734
22735 #
22736 # CONFIG_COMMANDS section.
22737 #
22738 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22741 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22742 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22743 X"$ac_dest" : 'X\(//\)[^/]' \| \
22744 X"$ac_dest" : 'X\(//\)$' \| \
22745 X"$ac_dest" : 'X\(/\)' \| \
22746 . : '\(.\)' 2>/dev/null ||
22747 echo X"$ac_dest" |
22748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22750 /^X\(\/\/\)$/{ s//\1/; q; }
22751 /^X\(\/\).*/{ s//\1/; q; }
22752 s/.*/./; q'`
22753 { if $as_mkdir_p; then
22754 mkdir -p "$ac_dir"
22755 else
22756 as_dir="$ac_dir"
22757 as_dirs=
22758 while test ! -d "$as_dir"; do
22759 as_dirs="$as_dir $as_dirs"
22760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22762 X"$as_dir" : 'X\(//\)[^/]' \| \
22763 X"$as_dir" : 'X\(//\)$' \| \
22764 X"$as_dir" : 'X\(/\)' \| \
22765 . : '\(.\)' 2>/dev/null ||
22766 echo X"$as_dir" |
22767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22769 /^X\(\/\/\)$/{ s//\1/; q; }
22770 /^X\(\/\).*/{ s//\1/; q; }
22771 s/.*/./; q'`
22772 done
22773 test ! -n "$as_dirs" || mkdir $as_dirs
22774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22776 { (exit 1); exit 1; }; }; }
22777
22778 ac_builddir=.
22779
22780 if test "$ac_dir" != .; then
22781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22782 # A "../" for each directory in $ac_dir_suffix.
22783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22784 else
22785 ac_dir_suffix= ac_top_builddir=
22786 fi
22787
22788 case $srcdir in
22789 .) # No --srcdir option. We are building in place.
22790 ac_srcdir=.
22791 if test -z "$ac_top_builddir"; then
22792 ac_top_srcdir=.
22793 else
22794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22795 fi ;;
22796 [\\/]* | ?:[\\/]* ) # Absolute path.
22797 ac_srcdir=$srcdir$ac_dir_suffix;
22798 ac_top_srcdir=$srcdir ;;
22799 *) # Relative path.
22800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22801 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22802 esac
22803
22804 # Do not use `cd foo && pwd` to compute absolute paths, because
22805 # the directories may not exist.
22806 case `pwd` in
22807 .) ac_abs_builddir="$ac_dir";;
22808 *)
22809 case "$ac_dir" in
22810 .) ac_abs_builddir=`pwd`;;
22811 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22812 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22813 esac;;
22814 esac
22815 case $ac_abs_builddir in
22816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22817 *)
22818 case ${ac_top_builddir}. in
22819 .) ac_abs_top_builddir=$ac_abs_builddir;;
22820 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22821 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22822 esac;;
22823 esac
22824 case $ac_abs_builddir in
22825 .) ac_abs_srcdir=$ac_srcdir;;
22826 *)
22827 case $ac_srcdir in
22828 .) ac_abs_srcdir=$ac_abs_builddir;;
22829 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22830 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22831 esac;;
22832 esac
22833 case $ac_abs_builddir in
22834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22835 *)
22836 case $ac_top_srcdir in
22837 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22838 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22839 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22840 esac;;
22841 esac
22842
22843
22844 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22845 echo "$as_me: executing $ac_dest commands" >&6;}
22846 case $ac_dest in
22847 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22848 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22849 # Strip MF so we end up with the name of the file.
22850 mf=`echo "$mf" | sed -e 's/:.*$//'`
22851 # Check whether this is an Automake generated Makefile or not.
22852 # We used to match only the files named `Makefile.in', but
22853 # some people rename them; so instead we look at the file content.
22854 # Grep'ing the first line is not enough: some people post-process
22855 # each Makefile.in and add a new line on top of each file to say so.
22856 # So let's grep whole file.
22857 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22858 dirpart=`(dirname "$mf") 2>/dev/null ||
22859 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22860 X"$mf" : 'X\(//\)[^/]' \| \
22861 X"$mf" : 'X\(//\)$' \| \
22862 X"$mf" : 'X\(/\)' \| \
22863 . : '\(.\)' 2>/dev/null ||
22864 echo X"$mf" |
22865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22867 /^X\(\/\/\)$/{ s//\1/; q; }
22868 /^X\(\/\).*/{ s//\1/; q; }
22869 s/.*/./; q'`
22870 else
22871 continue
22872 fi
22873 # Extract the definition of DEPDIR, am__include, and am__quote
22874 # from the Makefile without running `make'.
22875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22876 test -z "$DEPDIR" && continue
22877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22878 test -z "am__include" && continue
22879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22880 # When using ansi2knr, U may be empty or an underscore; expand it
22881 U=`sed -n 's/^U = //p' < "$mf"`
22882 # Find all dependency output files, they are included files with
22883 # $(DEPDIR) in their names. We invoke sed twice because it is the
22884 # simplest approach to changing $(DEPDIR) to its actual value in the
22885 # expansion.
22886 for file in `sed -n "
22887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22889 # Make sure the directory exists.
22890 test -f "$dirpart/$file" && continue
22891 fdir=`(dirname "$file") 2>/dev/null ||
22892 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22893 X"$file" : 'X\(//\)[^/]' \| \
22894 X"$file" : 'X\(//\)$' \| \
22895 X"$file" : 'X\(/\)' \| \
22896 . : '\(.\)' 2>/dev/null ||
22897 echo X"$file" |
22898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22900 /^X\(\/\/\)$/{ s//\1/; q; }
22901 /^X\(\/\).*/{ s//\1/; q; }
22902 s/.*/./; q'`
22903 { if $as_mkdir_p; then
22904 mkdir -p $dirpart/$fdir
22905 else
22906 as_dir=$dirpart/$fdir
22907 as_dirs=
22908 while test ! -d "$as_dir"; do
22909 as_dirs="$as_dir $as_dirs"
22910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912 X"$as_dir" : 'X\(//\)[^/]' \| \
22913 X"$as_dir" : 'X\(//\)$' \| \
22914 X"$as_dir" : 'X\(/\)' \| \
22915 . : '\(.\)' 2>/dev/null ||
22916 echo X"$as_dir" |
22917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22919 /^X\(\/\/\)$/{ s//\1/; q; }
22920 /^X\(\/\).*/{ s//\1/; q; }
22921 s/.*/./; q'`
22922 done
22923 test ! -n "$as_dirs" || mkdir $as_dirs
22924 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22925 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22926 { (exit 1); exit 1; }; }; }
22927
22928 # echo "creating $dirpart/$file"
22929 echo '# dummy' > "$dirpart/$file"
22930 done
22931 done
22932 ;;
22933 default )
22934
22935 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22936 mv -f Makefile.tmp Makefile
22937
22938
22939 case x$CONFIG_HEADERS in
22940 xconfig.h:config.in)
22941 echo > stamp-h ;;
22942 esac
22943 ;;
22944 esac
22945 done
22946 _ACEOF
22947
22948 cat >>$CONFIG_STATUS <<\_ACEOF
22949
22950 { (exit 0); exit 0; }
22951 _ACEOF
22952 chmod +x $CONFIG_STATUS
22953 ac_clean_files=$ac_clean_files_save
22954
22955
22956 # configure is writing to config.log, and then calls config.status.
22957 # config.status does its own redirection, appending to config.log.
22958 # Unfortunately, on DOS this fails, as config.log is still kept open
22959 # by configure, so config.status won't be able to write to it; its
22960 # output is simply discarded. So we exec the FD to /dev/null,
22961 # effectively closing config.log, so it can be properly (re)opened and
22962 # appended to by config.status. When coming back to configure, we
22963 # need to make the FD available again.
22964 if test "$no_create" != yes; then
22965 ac_cs_success=:
22966 ac_config_status_args=
22967 test "$silent" = yes &&
22968 ac_config_status_args="$ac_config_status_args --quiet"
22969 exec 5>/dev/null
22970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22971 exec 5>>config.log
22972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22973 # would make configure fail if this is the last instruction.
22974 $ac_cs_success || { (exit 1); exit 1; }
22975 fi
22976
22977 #
22978 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22979 #
22980 if test "$no_recursion" != yes; then
22981
22982 # Remove --cache-file and --srcdir arguments so they do not pile up.
22983 ac_sub_configure_args=
22984 ac_prev=
22985 eval "set x $ac_configure_args"
22986 shift
22987 for ac_arg
22988 do
22989 if test -n "$ac_prev"; then
22990 ac_prev=
22991 continue
22992 fi
22993 case $ac_arg in
22994 -cache-file | --cache-file | --cache-fil | --cache-fi \
22995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22996 ac_prev=cache_file ;;
22997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22999 | --c=*)
23000 ;;
23001 --config-cache | -C)
23002 ;;
23003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23004 ac_prev=srcdir ;;
23005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23006 ;;
23007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23008 ac_prev=prefix ;;
23009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23010 ;;
23011 *)
23012 case $ac_arg in
23013 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23014 esac
23015 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23016 esac
23017 done
23018
23019 # Always prepend --prefix to ensure using the same prefix
23020 # in subdir configurations.
23021 ac_arg="--prefix=$prefix"
23022 case $ac_arg in
23023 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23024 esac
23025 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23026
23027 ac_popdir=`pwd`
23028 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23029
23030 # Do not complain, so a configure script can configure whichever
23031 # parts of a large source tree are present.
23032 test -d "$srcdir/$ac_dir" || continue
23033
23034 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23035 echo "$as_me: configuring in $ac_dir" >&6;}
23036 { if $as_mkdir_p; then
23037 mkdir -p "$ac_dir"
23038 else
23039 as_dir="$ac_dir"
23040 as_dirs=
23041 while test ! -d "$as_dir"; do
23042 as_dirs="$as_dir $as_dirs"
23043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23045 X"$as_dir" : 'X\(//\)[^/]' \| \
23046 X"$as_dir" : 'X\(//\)$' \| \
23047 X"$as_dir" : 'X\(/\)' \| \
23048 . : '\(.\)' 2>/dev/null ||
23049 echo X"$as_dir" |
23050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23052 /^X\(\/\/\)$/{ s//\1/; q; }
23053 /^X\(\/\).*/{ s//\1/; q; }
23054 s/.*/./; q'`
23055 done
23056 test ! -n "$as_dirs" || mkdir $as_dirs
23057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23059 { (exit 1); exit 1; }; }; }
23060
23061 ac_builddir=.
23062
23063 if test "$ac_dir" != .; then
23064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23065 # A "../" for each directory in $ac_dir_suffix.
23066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23067 else
23068 ac_dir_suffix= ac_top_builddir=
23069 fi
23070
23071 case $srcdir in
23072 .) # No --srcdir option. We are building in place.
23073 ac_srcdir=.
23074 if test -z "$ac_top_builddir"; then
23075 ac_top_srcdir=.
23076 else
23077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23078 fi ;;
23079 [\\/]* | ?:[\\/]* ) # Absolute path.
23080 ac_srcdir=$srcdir$ac_dir_suffix;
23081 ac_top_srcdir=$srcdir ;;
23082 *) # Relative path.
23083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23085 esac
23086
23087 # Do not use `cd foo && pwd` to compute absolute paths, because
23088 # the directories may not exist.
23089 case `pwd` in
23090 .) ac_abs_builddir="$ac_dir";;
23091 *)
23092 case "$ac_dir" in
23093 .) ac_abs_builddir=`pwd`;;
23094 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23095 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23096 esac;;
23097 esac
23098 case $ac_abs_builddir in
23099 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23100 *)
23101 case ${ac_top_builddir}. in
23102 .) ac_abs_top_builddir=$ac_abs_builddir;;
23103 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23104 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23105 esac;;
23106 esac
23107 case $ac_abs_builddir in
23108 .) ac_abs_srcdir=$ac_srcdir;;
23109 *)
23110 case $ac_srcdir in
23111 .) ac_abs_srcdir=$ac_abs_builddir;;
23112 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23113 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23114 esac;;
23115 esac
23116 case $ac_abs_builddir in
23117 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23118 *)
23119 case $ac_top_srcdir in
23120 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23121 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23122 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23123 esac;;
23124 esac
23125
23126
23127 cd "$ac_dir"
23128
23129 # Check for guested configure; otherwise get Cygnus style configure.
23130 if test -f "$ac_srcdir/configure.gnu"; then
23131 ac_sub_configure=$ac_srcdir/configure.gnu
23132 elif test -f "$ac_srcdir/configure"; then
23133 ac_sub_configure=$ac_srcdir/configure
23134 elif test -f "$ac_srcdir/configure.in"; then
23135 # This should be Cygnus configure.
23136 ac_sub_configure=$ac_aux_dir/configure
23137 else
23138 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23139 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23140 ac_sub_configure=
23141 fi
23142
23143 # The recursion is here.
23144 if test -n "$ac_sub_configure"; then
23145 # Make the cache file name correct relative to the subdirectory.
23146 case $cache_file in
23147 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23148 *) # Relative path.
23149 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23150 esac
23151
23152 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23153 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23154 # The eval makes quoting arguments work.
23155 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23156 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23157 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23158 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23159 { (exit 1); exit 1; }; }
23160 fi
23161
23162 cd "$ac_popdir"
23163 done
23164 fi
23165
23166
23167 exit 0
This page took 0.532637 seconds and 4 git commands to generate.