fix gdbtui build errors when pipe() is not available (e.g. mingw targets)
[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 DEBUGDIR GDB_DATADIR subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE SYSTEM_GDBINIT WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags GDB_NM_FILE datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets=TARGETS
868 alternative target configurations
869 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
870 --disable-gdbcli disable command-line interface (CLI)
871 --disable-gdbmi disable machine-interface (MI)
872 --enable-tui enable full-screen terminal user interface (TUI)
873 --enable-gdbtk enable gdbtk graphical user interface (GUI)
874 --enable-profiling enable profiling of GDB
875 --disable-rpath do not hardcode runtime library paths
876 --enable-werror treat compile warnings as errors
877 --enable-build-warnings enable build-time compiler warnings if gcc is used
878 --enable-gdb-build-warnings
879 enable GDB specific build-time compiler warnings if
880 gcc is used
881 --enable-sim link gdb with simulator
882 --enable-multi-ice build the multi-ice-gdb-server
883
884 Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-separate-debug-dir=PATH
888 look for global separate debug info in this path
889 [LIBDIR/debug]
890 --with-gdb-datadir=PATH look for global separate data files in this path
891 [DATADIR/gdb]
892 --with-relocated-sources=PATH
893 automatically relocate this path for source files
894 --with-libunwind use libunwind frame unwinding support
895 --with-curses use the curses library instead of the termcap
896 library
897 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
898 --with-bugurl=URL Direct users to URL to report a bug
899 --with-libiconv-prefix=DIR
900 search for libiconv in DIR/include and DIR/lib
901 --with-system-readline use installed readline library
902 --with-expat include expat support (auto/yes/no)
903 --with-gnu-ld assume the C compiler uses GNU ld default=no
904 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
905 --without-libexpat-prefix don't search for libexpat in includedir and libdir
906 --with-python include python support (auto/yes/no/<path>)
907 --without-included-regex
908 don't use included regex; this is the default on
909 systems with version 2 of the GNU C library (use
910 with caution on other system)
911 --with-sysroot[=DIR]
912 search for usr/lib et al within DIR
913 --with-system-gdbinit=PATH
914 automatically load a system-wide gdbinit file
915 --with-tcl directory containing tcl configuration (tclConfig.sh)
916 --with-tk directory containing tk configuration (tkConfig.sh)
917 --with-x use the X Window System
918 --with-datarootdir use datarootdir as the data root directory.
919 --with-docdir install documentation in this directory.
920 --with-pdfdir install pdf in this directory.
921 --with-htmldir install html in this directory.
922
923 Some influential environment variables:
924 CC C compiler command
925 CFLAGS C compiler flags
926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
927 nonstandard directory <lib dir>
928 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
929 headers in a nonstandard directory <include dir>
930 CPP C preprocessor
931
932 Use these variables to override the choices made by `configure' or to help
933 it to find libraries and programs with nonstandard names/locations.
934
935 _ACEOF
936 fi
937
938 if test "$ac_init_help" = "recursive"; then
939 # If there are subdirs, report their specific --help.
940 ac_popdir=`pwd`
941 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
942 test -d $ac_dir || continue
943 ac_builddir=.
944
945 if test "$ac_dir" != .; then
946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
947 # A "../" for each directory in $ac_dir_suffix.
948 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
949 else
950 ac_dir_suffix= ac_top_builddir=
951 fi
952
953 case $srcdir in
954 .) # No --srcdir option. We are building in place.
955 ac_srcdir=.
956 if test -z "$ac_top_builddir"; then
957 ac_top_srcdir=.
958 else
959 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
960 fi ;;
961 [\\/]* | ?:[\\/]* ) # Absolute path.
962 ac_srcdir=$srcdir$ac_dir_suffix;
963 ac_top_srcdir=$srcdir ;;
964 *) # Relative path.
965 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
966 ac_top_srcdir=$ac_top_builddir$srcdir ;;
967 esac
968
969 # Do not use `cd foo && pwd` to compute absolute paths, because
970 # the directories may not exist.
971 case `pwd` in
972 .) ac_abs_builddir="$ac_dir";;
973 *)
974 case "$ac_dir" in
975 .) ac_abs_builddir=`pwd`;;
976 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
977 *) ac_abs_builddir=`pwd`/"$ac_dir";;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *)
983 case ${ac_top_builddir}. in
984 .) ac_abs_top_builddir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
986 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_srcdir=$ac_srcdir;;
991 *)
992 case $ac_srcdir in
993 .) ac_abs_srcdir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
995 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
996 esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *)
1001 case $ac_top_srcdir in
1002 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1005 esac;;
1006 esac
1007
1008 cd $ac_dir
1009 # Check for guested configure; otherwise get Cygnus style configure.
1010 if test -f $ac_srcdir/configure.gnu; then
1011 echo
1012 $SHELL $ac_srcdir/configure.gnu --help=recursive
1013 elif test -f $ac_srcdir/configure; then
1014 echo
1015 $SHELL $ac_srcdir/configure --help=recursive
1016 elif test -f $ac_srcdir/configure.ac ||
1017 test -f $ac_srcdir/configure.in; then
1018 echo
1019 $ac_configure --help
1020 else
1021 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1022 fi
1023 cd $ac_popdir
1024 done
1025 fi
1026
1027 test -n "$ac_init_help" && exit 0
1028 if $ac_init_version; then
1029 cat <<\_ACEOF
1030
1031 Copyright (C) 2003 Free Software Foundation, Inc.
1032 This configure script is free software; the Free Software Foundation
1033 gives unlimited permission to copy, distribute and modify it.
1034 _ACEOF
1035 exit 0
1036 fi
1037 exec 5>config.log
1038 cat >&5 <<_ACEOF
1039 This file contains any messages produced by compilers while
1040 running configure, to aid debugging if configure makes a mistake.
1041
1042 It was created by $as_me, which was
1043 generated by GNU Autoconf 2.59. Invocation command line was
1044
1045 $ $0 $@
1046
1047 _ACEOF
1048 {
1049 cat <<_ASUNAME
1050 ## --------- ##
1051 ## Platform. ##
1052 ## --------- ##
1053
1054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1059
1060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1062
1063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1066 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1070
1071 _ASUNAME
1072
1073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1074 for as_dir in $PATH
1075 do
1076 IFS=$as_save_IFS
1077 test -z "$as_dir" && as_dir=.
1078 echo "PATH: $as_dir"
1079 done
1080
1081 } >&5
1082
1083 cat >&5 <<_ACEOF
1084
1085
1086 ## ----------- ##
1087 ## Core tests. ##
1088 ## ----------- ##
1089
1090 _ACEOF
1091
1092
1093 # Keep a trace of the command line.
1094 # Strip out --no-create and --no-recursion so they do not pile up.
1095 # Strip out --silent because we don't want to record it for future runs.
1096 # Also quote any args containing shell meta-characters.
1097 # Make two passes to allow for proper duplicate-argument suppression.
1098 ac_configure_args=
1099 ac_configure_args0=
1100 ac_configure_args1=
1101 ac_sep=
1102 ac_must_keep_next=false
1103 for ac_pass in 1 2
1104 do
1105 for ac_arg
1106 do
1107 case $ac_arg in
1108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 continue ;;
1112 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1113 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1114 esac
1115 case $ac_pass in
1116 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1117 2)
1118 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1119 if test $ac_must_keep_next = true; then
1120 ac_must_keep_next=false # Got value, back to normal.
1121 else
1122 case $ac_arg in
1123 *=* | --config-cache | -C | -disable-* | --disable-* \
1124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1126 | -with-* | --with-* | -without-* | --without-* | --x)
1127 case "$ac_configure_args0 " in
1128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1129 esac
1130 ;;
1131 -* ) ac_must_keep_next=true ;;
1132 esac
1133 fi
1134 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1135 # Get rid of the leading space.
1136 ac_sep=" "
1137 ;;
1138 esac
1139 done
1140 done
1141 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1142 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1143
1144 # When interrupted or exit'd, cleanup temporary files, and complete
1145 # config.log. We remove comments because anyway the quotes in there
1146 # would cause problems or look ugly.
1147 # WARNING: Be sure not to use single quotes in there, as some shells,
1148 # such as our DU 5.0 friend, will then `close' the trap.
1149 trap 'exit_status=$?
1150 # Save into config.log some information that might help in debugging.
1151 {
1152 echo
1153
1154 cat <<\_ASBOX
1155 ## ---------------- ##
1156 ## Cache variables. ##
1157 ## ---------------- ##
1158 _ASBOX
1159 echo
1160 # The following way of writing the cache mishandles newlines in values,
1161 {
1162 (set) 2>&1 |
1163 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1164 *ac_space=\ *)
1165 sed -n \
1166 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1168 ;;
1169 *)
1170 sed -n \
1171 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1172 ;;
1173 esac;
1174 }
1175 echo
1176
1177 cat <<\_ASBOX
1178 ## ----------------- ##
1179 ## Output variables. ##
1180 ## ----------------- ##
1181 _ASBOX
1182 echo
1183 for ac_var in $ac_subst_vars
1184 do
1185 eval ac_val=$`echo $ac_var`
1186 echo "$ac_var='"'"'$ac_val'"'"'"
1187 done | sort
1188 echo
1189
1190 if test -n "$ac_subst_files"; then
1191 cat <<\_ASBOX
1192 ## ------------- ##
1193 ## Output files. ##
1194 ## ------------- ##
1195 _ASBOX
1196 echo
1197 for ac_var in $ac_subst_files
1198 do
1199 eval ac_val=$`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1201 done | sort
1202 echo
1203 fi
1204
1205 if test -s confdefs.h; then
1206 cat <<\_ASBOX
1207 ## ----------- ##
1208 ## confdefs.h. ##
1209 ## ----------- ##
1210 _ASBOX
1211 echo
1212 sed "/^$/d" confdefs.h | sort
1213 echo
1214 fi
1215 test "$ac_signal" != 0 &&
1216 echo "$as_me: caught signal $ac_signal"
1217 echo "$as_me: exit $exit_status"
1218 } >&5
1219 rm -f core *.core &&
1220 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1221 exit $exit_status
1222 ' 0
1223 for ac_signal in 1 2 13 15; do
1224 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1225 done
1226 ac_signal=0
1227
1228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1229 rm -rf conftest* confdefs.h
1230 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1231 echo >confdefs.h
1232
1233 # Predefined preprocessor variables.
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_NAME "$PACKAGE_NAME"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1242 _ACEOF
1243
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_STRING "$PACKAGE_STRING"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1257 _ACEOF
1258
1259
1260 # Let the site file select an alternate cache file if it wants to.
1261 # Prefer explicitly selected file to automatically selected ones.
1262 if test -z "$CONFIG_SITE"; then
1263 if test "x$prefix" != xNONE; then
1264 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1265 else
1266 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1267 fi
1268 fi
1269 for ac_site_file in $CONFIG_SITE; do
1270 if test -r "$ac_site_file"; then
1271 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1272 echo "$as_me: loading site script $ac_site_file" >&6;}
1273 sed 's/^/| /' "$ac_site_file" >&5
1274 . "$ac_site_file"
1275 fi
1276 done
1277
1278 if test -r "$cache_file"; then
1279 # Some versions of bash will fail to source /dev/null (special
1280 # files actually), so we avoid doing that.
1281 if test -f "$cache_file"; then
1282 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1283 echo "$as_me: loading cache $cache_file" >&6;}
1284 case $cache_file in
1285 [\\/]* | ?:[\\/]* ) . $cache_file;;
1286 *) . ./$cache_file;;
1287 esac
1288 fi
1289 else
1290 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1291 echo "$as_me: creating cache $cache_file" >&6;}
1292 >$cache_file
1293 fi
1294
1295 # Check that the precious variables saved in the cache have kept the same
1296 # value.
1297 ac_cache_corrupted=false
1298 for ac_var in `(set) 2>&1 |
1299 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1301 eval ac_new_set=\$ac_env_${ac_var}_set
1302 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1303 eval ac_new_val="\$ac_env_${ac_var}_value"
1304 case $ac_old_set,$ac_new_set in
1305 set,)
1306 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1308 ac_cache_corrupted=: ;;
1309 ,set)
1310 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1311 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1312 ac_cache_corrupted=: ;;
1313 ,);;
1314 *)
1315 if test "x$ac_old_val" != "x$ac_new_val"; then
1316 # differences in whitespace do not lead to failure.
1317 ac_old_val_w=`echo x $ac_old_val`
1318 ac_new_val_w=`echo x $ac_new_val`
1319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1320 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1321 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1322 ac_cache_corrupted=:
1323 else
1324 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1325 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1326 eval $ac_var=\$ac_old_val
1327 fi
1328 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1329 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1330 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1331 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1332 fi;;
1333 esac
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1336 case $ac_new_val in
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1340 esac
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 esac
1345 fi
1346 done
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1349 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1350 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354 { (exit 1); exit 1; }; }
1355 fi
1356
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362
1363
1364 gl_header_list="$gl_header_list stdint.h"
1365 gl_header_list="$gl_header_list wchar.h"
1366 gl_header_list="$gl_header_list string.h"
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387 ac_config_headers="$ac_config_headers config.h:config.in"
1388
1389 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1390 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1391 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1392 if test "${enable_maintainer_mode+set}" = set; then
1393 enableval="$enable_maintainer_mode"
1394 USE_MAINTAINER_MODE=$enableval
1395 else
1396 USE_MAINTAINER_MODE=no
1397 fi;
1398 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1399 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1400
1401
1402 if test $USE_MAINTAINER_MODE = yes; then
1403 MAINTAINER_MODE_TRUE=
1404 MAINTAINER_MODE_FALSE='#'
1405 else
1406 MAINTAINER_MODE_TRUE='#'
1407 MAINTAINER_MODE_FALSE=
1408 fi
1409
1410 MAINT=$MAINTAINER_MODE_TRUE
1411
1412
1413
1414 ac_ext=c
1415 ac_cpp='$CPP $CPPFLAGS'
1416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419 if test -n "$ac_tool_prefix"; then
1420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1440 fi
1441 done
1442 done
1443
1444 fi
1445 fi
1446 CC=$ac_cv_prog_CC
1447 if test -n "$CC"; then
1448 echo "$as_me:$LINENO: result: $CC" >&5
1449 echo "${ECHO_T}$CC" >&6
1450 else
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455 fi
1456 if test -z "$ac_cv_prog_CC"; then
1457 ac_ct_CC=$CC
1458 # Extract the first word of "gcc", so it can be a program name with args.
1459 set dummy gcc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 if test -n "$ac_ct_CC"; then
1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467 else
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_ac_ct_CC="gcc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479 done
1480 done
1481
1482 fi
1483 fi
1484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485 if test -n "$ac_ct_CC"; then
1486 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487 echo "${ECHO_T}$ac_ct_CC" >&6
1488 else
1489 echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492
1493 CC=$ac_ct_CC
1494 else
1495 CC="$ac_cv_prog_CC"
1496 fi
1497
1498 if test -z "$CC"; then
1499 if test -n "$ac_tool_prefix"; then
1500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1501 set dummy ${ac_tool_prefix}cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$CC"; then
1508 ac_cv_prog_CC="$CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_CC="${ac_tool_prefix}cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 CC=$ac_cv_prog_CC
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535 fi
1536 if test -z "$ac_cv_prog_CC"; then
1537 ac_ct_CC=$CC
1538 # Extract the first word of "cc", so it can be a program name with args.
1539 set dummy cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$ac_ct_CC"; then
1546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_ac_ct_CC="cc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 break 2
1558 fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1565 if test -n "$ac_ct_CC"; then
1566 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1567 echo "${ECHO_T}$ac_ct_CC" >&6
1568 else
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 CC=$ac_ct_CC
1574 else
1575 CC="$ac_cv_prog_CC"
1576 fi
1577
1578 fi
1579 if test -z "$CC"; then
1580 # Extract the first word of "cc", so it can be a program name with args.
1581 set dummy cc; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1589 else
1590 ac_prog_rejected=no
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 for as_dir in $PATH
1593 do
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1599 ac_prog_rejected=yes
1600 continue
1601 fi
1602 ac_cv_prog_CC="cc"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 break 2
1605 fi
1606 done
1607 done
1608
1609 if test $ac_prog_rejected = yes; then
1610 # We found a bogon in the path, so make sure we never use it.
1611 set dummy $ac_cv_prog_CC
1612 shift
1613 if test $# != 0; then
1614 # We chose a different compiler from the bogus one.
1615 # However, it has the same basename, so the bogon will be chosen
1616 # first if we set CC to just the basename; use the full file name.
1617 shift
1618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1619 fi
1620 fi
1621 fi
1622 fi
1623 CC=$ac_cv_prog_CC
1624 if test -n "$CC"; then
1625 echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1627 else
1628 echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634 if test -n "$ac_tool_prefix"; then
1635 for ac_prog in cl
1636 do
1637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665 echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672 test -n "$CC" && break
1673 done
1674 fi
1675 if test -z "$CC"; then
1676 ac_ct_CC=$CC
1677 for ac_prog in cl
1678 do
1679 # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 if test -n "$ac_ct_CC"; then
1687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_ac_ct_CC="$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706 if test -n "$ac_ct_CC"; then
1707 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708 echo "${ECHO_T}$ac_ct_CC" >&6
1709 else
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 test -n "$ac_ct_CC" && break
1715 done
1716
1717 CC=$ac_ct_CC
1718 fi
1719
1720 fi
1721
1722
1723 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1724 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1725 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1726 See \`config.log' for more details." >&5
1727 echo "$as_me: error: no acceptable C compiler found in \$PATH
1728 See \`config.log' for more details." >&2;}
1729 { (exit 1); exit 1; }; }; }
1730
1731 # Provide some information about the compiler.
1732 echo "$as_me:$LINENO:" \
1733 "checking for C compiler version" >&5
1734 ac_compiler=`set X $ac_compile; echo $2`
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736 (eval $ac_compiler --version </dev/null >&5) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }
1740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741 (eval $ac_compiler -v </dev/null >&5) 2>&5
1742 ac_status=$?
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746 (eval $ac_compiler -V </dev/null >&5) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1750
1751 cat >conftest.$ac_ext <<_ACEOF
1752 /* confdefs.h. */
1753 _ACEOF
1754 cat confdefs.h >>conftest.$ac_ext
1755 cat >>conftest.$ac_ext <<_ACEOF
1756 /* end confdefs.h. */
1757
1758 int
1759 main ()
1760 {
1761
1762 ;
1763 return 0;
1764 }
1765 _ACEOF
1766 ac_clean_files_save=$ac_clean_files
1767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1768 # Try to create an executable without -o first, disregard a.out.
1769 # It will help us diagnose broken compilers, and finding out an intuition
1770 # of exeext.
1771 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775 (eval $ac_link_default) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }; then
1779 # Find the output, starting from the most likely. This scheme is
1780 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1781 # resort.
1782
1783 # Be careful to initialize this variable, since it used to be cached.
1784 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1785 ac_cv_exeext=
1786 # b.out is created by i960 compilers.
1787 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1788 do
1789 test -f "$ac_file" || continue
1790 case $ac_file in
1791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792 ;;
1793 conftest.$ac_ext )
1794 # This is the source file.
1795 ;;
1796 [ab].out )
1797 # We found the default executable, but exeext='' is most
1798 # certainly right.
1799 break;;
1800 *.* )
1801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802 # FIXME: I believe we export ac_cv_exeext for Libtool,
1803 # but it would be cool to find out if it's true. Does anybody
1804 # maintain Libtool? --akim.
1805 export ac_cv_exeext
1806 break;;
1807 * )
1808 break;;
1809 esac
1810 done
1811 else
1812 echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 See \`config.log' for more details." >&2;}
1821 { (exit 77); exit 77; }; }; }
1822 fi
1823
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1827
1828 # Check the compiler produces executables we can run. If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
1842 else
1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1847 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'.
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: cannot run C compiled programs.
1852 If you meant to cross compile, use \`--host'.
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }; }
1855 fi
1856 fi
1857 fi
1858 echo "$as_me:$LINENO: result: yes" >&5
1859 echo "${ECHO_T}yes" >&6
1860
1861 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1862 ac_clean_files=$ac_clean_files_save
1863 # Check the compiler produces executables we can run. If not, either
1864 # the compiler is broken, or we cross compile.
1865 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1866 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1867 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1868 echo "${ECHO_T}$cross_compiling" >&6
1869
1870 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1871 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1873 (eval $ac_link) 2>&5
1874 ac_status=$?
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; then
1877 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1878 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1879 # work properly (i.e., refer to `conftest.exe'), while it won't with
1880 # `rm'.
1881 for ac_file in conftest.exe conftest conftest.*; do
1882 test -f "$ac_file" || continue
1883 case $ac_file in
1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 export ac_cv_exeext
1887 break;;
1888 * ) break;;
1889 esac
1890 done
1891 else
1892 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1893 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }; }
1899 fi
1900
1901 rm -f conftest$ac_cv_exeext
1902 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1903 echo "${ECHO_T}$ac_cv_exeext" >&6
1904
1905 rm -f conftest.$ac_ext
1906 EXEEXT=$ac_cv_exeext
1907 ac_exeext=$EXEEXT
1908 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1910 if test "${ac_cv_objext+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 cat >conftest.$ac_ext <<_ACEOF
1914 /* confdefs.h. */
1915 _ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1919
1920 int
1921 main ()
1922 {
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.o conftest.obj
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; then
1934 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1935 case $ac_file in
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1938 break;;
1939 esac
1940 done
1941 else
1942 echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1946 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1947 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1950 See \`config.log' for more details." >&2;}
1951 { (exit 1); exit 1; }; }; }
1952 fi
1953
1954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1955 fi
1956 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1957 echo "${ECHO_T}$ac_cv_objext" >&6
1958 OBJEXT=$ac_cv_objext
1959 ac_objext=$OBJEXT
1960 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1961 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1962 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h. */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1971
1972 int
1973 main ()
1974 {
1975 #ifndef __GNUC__
1976 choke me
1977 #endif
1978
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>conftest.er1
1986 ac_status=$?
1987 grep -v '^ *+' conftest.er1 >conftest.err
1988 rm -f conftest.er1
1989 cat conftest.err >&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -z "$ac_c_werror_flag"
1993 || test ! -s conftest.err'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_compiler_gnu=yes
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_compiler_gnu=no
2011 fi
2012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2014
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2018 GCC=`test $ac_compiler_gnu = yes && echo yes`
2019 ac_test_CFLAGS=${CFLAGS+set}
2020 ac_save_CFLAGS=$CFLAGS
2021 CFLAGS="-g"
2022 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2023 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2024 if test "${ac_cv_prog_cc_g+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h. */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2033
2034 int
2035 main ()
2036 {
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2045 ac_status=$?
2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_cv_prog_cc_g=yes
2065 else
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 ac_cv_prog_cc_g=no
2070 fi
2071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2074 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2075 if test "$ac_test_CFLAGS" = set; then
2076 CFLAGS=$ac_save_CFLAGS
2077 elif test $ac_cv_prog_cc_g = yes; then
2078 if test "$GCC" = yes; then
2079 CFLAGS="-g -O2"
2080 else
2081 CFLAGS="-g"
2082 fi
2083 else
2084 if test "$GCC" = yes; then
2085 CFLAGS="-O2"
2086 else
2087 CFLAGS=
2088 fi
2089 fi
2090 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2091 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2092 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 ac_cv_prog_cc_stdc=no
2096 ac_save_CC=$CC
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h. */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2103 #include <stdarg.h>
2104 #include <stdio.h>
2105 #include <sys/types.h>
2106 #include <sys/stat.h>
2107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2108 struct buf { int x; };
2109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110 static char *e (p, i)
2111 char **p;
2112 int i;
2113 {
2114 return p[i];
2115 }
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2117 {
2118 char *s;
2119 va_list v;
2120 va_start (v,p);
2121 s = g (p, va_arg (v,int));
2122 va_end (v);
2123 return s;
2124 }
2125
2126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2127 function prototypes and stuff, but not '\xHH' hex character constants.
2128 These don't provoke an error unfortunately, instead are silently treated
2129 as 'x'. The following induces an error, until -std1 is added to get
2130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2131 array size at least. It's necessary to write '\x00'==0 to get something
2132 that's true only with -std1. */
2133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2134
2135 int test (int i, double x);
2136 struct s1 {int (*f) (int a);};
2137 struct s2 {int (*f) (double a);};
2138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2139 int argc;
2140 char **argv;
2141 int
2142 main ()
2143 {
2144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 # Don't try gcc -ansi; that turns off useful extensions and
2150 # breaks some systems' header files.
2151 # AIX -qlanglvl=ansi
2152 # Ultrix and OSF/1 -std1
2153 # HP-UX 10.20 and later -Ae
2154 # HP-UX older versions -Aa -D_HPUX_SOURCE
2155 # SVR4 -Xc -D__EXTENSIONS__
2156 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2157 do
2158 CC="$ac_save_CC $ac_arg"
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_stdc=$ac_arg
2182 break
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 fi
2188 rm -f conftest.err conftest.$ac_objext
2189 done
2190 rm -f conftest.$ac_ext conftest.$ac_objext
2191 CC=$ac_save_CC
2192
2193 fi
2194
2195 case "x$ac_cv_prog_cc_stdc" in
2196 x|xno)
2197 echo "$as_me:$LINENO: result: none needed" >&5
2198 echo "${ECHO_T}none needed" >&6 ;;
2199 *)
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2202 CC="$CC $ac_cv_prog_cc_stdc" ;;
2203 esac
2204
2205 # Some people use a C++ compiler to compile C. Since we use `exit',
2206 # in C++ we need to declare it. In case someone uses the same compiler
2207 # for both compiling C and C++ we need to have the C++ compiler decide
2208 # the declaration of exit, since it's the most demanding environment.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #ifndef __cplusplus
2211 choke me
2212 #endif
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2237 '' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2242 'void exit (int);'
2243 do
2244 cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250 $ac_declaration
2251 #include <stdlib.h>
2252 int
2253 main ()
2254 {
2255 exit (42);
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2263 ac_status=$?
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 :
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 break
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 rm -f conftest*
2336 if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2340 fi
2341
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 fi
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
2355 cat >>confdefs.h <<\_ACEOF
2356 #define _GNU_SOURCE 1
2357 _ACEOF
2358
2359
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2368 # On Suns, sometimes $CPP names a directory.
2369 if test -n "$CPP" && test -d "$CPP"; then
2370 CPP=
2371 fi
2372 if test -z "$CPP"; then
2373 if test "${ac_cv_prog_CPP+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 # Double quotes because CPP needs to be expanded
2377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2378 do
2379 ac_preproc_ok=false
2380 for ac_c_preproc_warn_flag in '' yes
2381 do
2382 # Use a header file that comes with gcc, so configuring glibc
2383 # with a fresh cross-compiler works.
2384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 # <limits.h> exists even on freestanding compilers.
2386 # On the NeXT, cc -E runs the code through the compiler's parser,
2387 # not just through cpp. "Syntax error" is here to catch this case.
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h. */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2394 #ifdef __STDC__
2395 # include <limits.h>
2396 #else
2397 # include <assert.h>
2398 #endif
2399 Syntax error
2400 _ACEOF
2401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } >/dev/null; then
2409 if test -s conftest.err; then
2410 ac_cpp_err=$ac_c_preproc_warn_flag
2411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2412 else
2413 ac_cpp_err=
2414 fi
2415 else
2416 ac_cpp_err=yes
2417 fi
2418 if test -z "$ac_cpp_err"; then
2419 :
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 # Broken: fails on valid input.
2425 continue
2426 fi
2427 rm -f conftest.err conftest.$ac_ext
2428
2429 # OK, works on sane cases. Now check whether non-existent headers
2430 # can be detected and how.
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2437 #include <ac_nonexistent.h>
2438 _ACEOF
2439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } >/dev/null; then
2447 if test -s conftest.err; then
2448 ac_cpp_err=$ac_c_preproc_warn_flag
2449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2450 else
2451 ac_cpp_err=
2452 fi
2453 else
2454 ac_cpp_err=yes
2455 fi
2456 if test -z "$ac_cpp_err"; then
2457 # Broken: success on invalid input.
2458 continue
2459 else
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 # Passes both tests.
2464 ac_preproc_ok=:
2465 break
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468
2469 done
2470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2471 rm -f conftest.err conftest.$ac_ext
2472 if $ac_preproc_ok; then
2473 break
2474 fi
2475
2476 done
2477 ac_cv_prog_CPP=$CPP
2478
2479 fi
2480 CPP=$ac_cv_prog_CPP
2481 else
2482 ac_cv_prog_CPP=$CPP
2483 fi
2484 echo "$as_me:$LINENO: result: $CPP" >&5
2485 echo "${ECHO_T}$CPP" >&6
2486 ac_preproc_ok=false
2487 for ac_c_preproc_warn_flag in '' yes
2488 do
2489 # Use a header file that comes with gcc, so configuring glibc
2490 # with a fresh cross-compiler works.
2491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2492 # <limits.h> exists even on freestanding compilers.
2493 # On the NeXT, cc -E runs the code through the compiler's parser,
2494 # not just through cpp. "Syntax error" is here to catch this case.
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 #ifdef __STDC__
2502 # include <limits.h>
2503 #else
2504 # include <assert.h>
2505 #endif
2506 Syntax error
2507 _ACEOF
2508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } >/dev/null; then
2516 if test -s conftest.err; then
2517 ac_cpp_err=$ac_c_preproc_warn_flag
2518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2519 else
2520 ac_cpp_err=
2521 fi
2522 else
2523 ac_cpp_err=yes
2524 fi
2525 if test -z "$ac_cpp_err"; then
2526 :
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 # Broken: fails on valid input.
2532 continue
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535
2536 # OK, works on sane cases. Now check whether non-existent headers
2537 # can be detected and how.
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544 #include <ac_nonexistent.h>
2545 _ACEOF
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } >/dev/null; then
2554 if test -s conftest.err; then
2555 ac_cpp_err=$ac_c_preproc_warn_flag
2556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2557 else
2558 ac_cpp_err=
2559 fi
2560 else
2561 ac_cpp_err=yes
2562 fi
2563 if test -z "$ac_cpp_err"; then
2564 # Broken: success on invalid input.
2565 continue
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 # Passes both tests.
2571 ac_preproc_ok=:
2572 break
2573 fi
2574 rm -f conftest.err conftest.$ac_ext
2575
2576 done
2577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2578 rm -f conftest.err conftest.$ac_ext
2579 if $ac_preproc_ok; then
2580 :
2581 else
2582 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2583 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }; }
2589 fi
2590
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598 echo "$as_me:$LINENO: checking for egrep" >&5
2599 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2600 if test "${ac_cv_prog_egrep+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2604 then ac_cv_prog_egrep='grep -E'
2605 else ac_cv_prog_egrep='egrep'
2606 fi
2607 fi
2608 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2609 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2610 EGREP=$ac_cv_prog_egrep
2611
2612
2613
2614 echo "$as_me:$LINENO: checking for AIX" >&5
2615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622 #ifdef _AIX
2623 yes
2624 #endif
2625
2626 _ACEOF
2627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628 $EGREP "yes" >/dev/null 2>&1; then
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2631 cat >>confdefs.h <<\_ACEOF
2632 #define _ALL_SOURCE 1
2633 _ACEOF
2634
2635 else
2636 echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639 rm -f conftest*
2640
2641
2642 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2643 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2644 if test "${ac_cv_search_strerror+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 ac_func_search_save_LIBS=$LIBS
2648 ac_cv_search_strerror=no
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h. */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2655
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 #ifdef __cplusplus
2658 extern "C"
2659 #endif
2660 /* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2662 char strerror ();
2663 int
2664 main ()
2665 {
2666 strerror ();
2667 ;
2668 return 0;
2669 }
2670 _ACEOF
2671 rm -f conftest.$ac_objext conftest$ac_exeext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2673 (eval $ac_link) 2>conftest.er1
2674 ac_status=$?
2675 grep -v '^ *+' conftest.er1 >conftest.err
2676 rm -f conftest.er1
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest$ac_exeext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 ac_cv_search_strerror="none required"
2694 else
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 fi
2699 rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 if test "$ac_cv_search_strerror" = no; then
2702 for ac_lib in cposix; do
2703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710
2711 /* Override any gcc2 internal prototype to avoid an error. */
2712 #ifdef __cplusplus
2713 extern "C"
2714 #endif
2715 /* We use char because int might match the return type of a gcc2
2716 builtin and then its argument prototype would still apply. */
2717 char strerror ();
2718 int
2719 main ()
2720 {
2721 strerror ();
2722 ;
2723 return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext conftest$ac_exeext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2728 (eval $ac_link) 2>conftest.er1
2729 ac_status=$?
2730 grep -v '^ *+' conftest.er1 >conftest.err
2731 rm -f conftest.er1
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag"
2736 || test ! -s conftest.err'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; } &&
2742 { ac_try='test -s conftest$ac_exeext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 ac_cv_search_strerror="-l$ac_lib"
2749 break
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 fi
2755 rm -f conftest.err conftest.$ac_objext \
2756 conftest$ac_exeext conftest.$ac_ext
2757 done
2758 fi
2759 LIBS=$ac_func_search_save_LIBS
2760 fi
2761 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2762 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2763 if test "$ac_cv_search_strerror" != no; then
2764 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2765
2766 fi
2767
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_RANLIB+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 if test -n "$RANLIB"; then
2777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792
2793 fi
2794 fi
2795 RANLIB=$ac_cv_prog_RANLIB
2796 if test -n "$RANLIB"; then
2797 echo "$as_me:$LINENO: result: $RANLIB" >&5
2798 echo "${ECHO_T}$RANLIB" >&6
2799 else
2800 echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2802 fi
2803
2804 fi
2805 if test -z "$ac_cv_prog_RANLIB"; then
2806 ac_ct_RANLIB=$RANLIB
2807 # Extract the first word of "ranlib", so it can be a program name with args.
2808 set dummy ranlib; ac_word=$2
2809 echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 if test -n "$ac_ct_RANLIB"; then
2815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_RANLIB="ranlib"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830
2831 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2832 fi
2833 fi
2834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2835 if test -n "$ac_ct_RANLIB"; then
2836 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2837 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843 RANLIB=$ac_ct_RANLIB
2844 else
2845 RANLIB="$ac_cv_prog_RANLIB"
2846 fi
2847
2848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2850 if test "${ac_cv_header_stdc+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #include <stdlib.h>
2860 #include <stdarg.h>
2861 #include <string.h>
2862 #include <float.h>
2863
2864 int
2865 main ()
2866 {
2867
2868 ;
2869 return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 ac_cv_header_stdc=yes
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 ac_cv_header_stdc=no
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902
2903 if test $ac_cv_header_stdc = yes; then
2904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #include <string.h>
2912
2913 _ACEOF
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 $EGREP "memchr" >/dev/null 2>&1; then
2916 :
2917 else
2918 ac_cv_header_stdc=no
2919 fi
2920 rm -f conftest*
2921
2922 fi
2923
2924 if test $ac_cv_header_stdc = yes; then
2925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <stdlib.h>
2933
2934 _ACEOF
2935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2936 $EGREP "free" >/dev/null 2>&1; then
2937 :
2938 else
2939 ac_cv_header_stdc=no
2940 fi
2941 rm -f conftest*
2942
2943 fi
2944
2945 if test $ac_cv_header_stdc = yes; then
2946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2947 if test "$cross_compiling" = yes; then
2948 :
2949 else
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ctype.h>
2957 #if ((' ' & 0x0FF) == 0x020)
2958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2960 #else
2961 # define ISLOWER(c) \
2962 (('a' <= (c) && (c) <= 'i') \
2963 || ('j' <= (c) && (c) <= 'r') \
2964 || ('s' <= (c) && (c) <= 'z'))
2965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2966 #endif
2967
2968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2969 int
2970 main ()
2971 {
2972 int i;
2973 for (i = 0; i < 256; i++)
2974 if (XOR (islower (i), ISLOWER (i))
2975 || toupper (i) != TOUPPER (i))
2976 exit(2);
2977 exit (0);
2978 }
2979 _ACEOF
2980 rm -f conftest$ac_exeext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982 (eval $ac_link) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 :
2992 else
2993 echo "$as_me: program exited with status $ac_status" >&5
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ( exit $ac_status )
2998 ac_cv_header_stdc=no
2999 fi
3000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3001 fi
3002 fi
3003 fi
3004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3006 if test $ac_cv_header_stdc = yes; then
3007
3008 cat >>confdefs.h <<\_ACEOF
3009 #define STDC_HEADERS 1
3010 _ACEOF
3011
3012 fi
3013
3014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3025 inttypes.h stdint.h unistd.h
3026 do
3027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3028 echo "$as_me:$LINENO: checking for $ac_header" >&5
3029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039 $ac_includes_default
3040
3041 #include <$ac_header>
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag"
3053 || test ! -s conftest.err'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 eval "$as_ac_Header=yes"
3066 else
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 eval "$as_ac_Header=no"
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3077 cat >>confdefs.h <<_ACEOF
3078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3079 _ACEOF
3080
3081 fi
3082
3083 done
3084
3085
3086
3087 if test "${ac_cv_header_minix_config_h+set}" = set; then
3088 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3089 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3090 if test "${ac_cv_header_minix_config_h+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3094 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3095 else
3096 # Is the header compilable?
3097 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3098 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 $ac_includes_default
3106 #include <minix/config.h>
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag"
3118 || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 ac_header_compiler=yes
3131 else
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ac_header_compiler=no
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3139 echo "${ECHO_T}$ac_header_compiler" >&6
3140
3141 # Is the header present?
3142 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3143 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <minix/config.h>
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163 else
3164 ac_cpp_err=
3165 fi
3166 else
3167 ac_cpp_err=yes
3168 fi
3169 if test -z "$ac_cpp_err"; then
3170 ac_header_preproc=yes
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_header_preproc=no
3176 fi
3177 rm -f conftest.err conftest.$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3179 echo "${ECHO_T}$ac_header_preproc" >&6
3180
3181 # So? What about this header?
3182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3183 yes:no: )
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3185 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3186 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3187 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3188 ac_header_preproc=yes
3189 ;;
3190 no:yes:* )
3191 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3192 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3193 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3194 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3195 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3196 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3197 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3198 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3200 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3201 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3202 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3203 (
3204 cat <<\_ASBOX
3205 ## ------------------------------------------ ##
3206 ## Report this to the AC_PACKAGE_NAME lists. ##
3207 ## ------------------------------------------ ##
3208 _ASBOX
3209 ) |
3210 sed "s/^/$as_me: WARNING: /" >&2
3211 ;;
3212 esac
3213 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3214 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3215 if test "${ac_cv_header_minix_config_h+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 ac_cv_header_minix_config_h=$ac_header_preproc
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3221 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3222
3223 fi
3224 if test $ac_cv_header_minix_config_h = yes; then
3225 MINIX=yes
3226 else
3227 MINIX=
3228 fi
3229
3230
3231 if test "$MINIX" = yes; then
3232
3233 cat >>confdefs.h <<\_ACEOF
3234 #define _POSIX_SOURCE 1
3235 _ACEOF
3236
3237
3238 cat >>confdefs.h <<\_ACEOF
3239 #define _POSIX_1_SOURCE 2
3240 _ACEOF
3241
3242
3243 cat >>confdefs.h <<\_ACEOF
3244 #define _MINIX 1
3245 _ACEOF
3246
3247 fi
3248
3249
3250
3251 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3252 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3253 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262
3263 # define __EXTENSIONS__ 1
3264 $ac_includes_default
3265 int
3266 main ()
3267 {
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_safe_to_define___extensions__=yes
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_cv_safe_to_define___extensions__=no
3301 fi
3302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3305 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3306 test $ac_cv_safe_to_define___extensions__ = yes &&
3307 cat >>confdefs.h <<\_ACEOF
3308 #define __EXTENSIONS__ 1
3309 _ACEOF
3310
3311 cat >>confdefs.h <<\_ACEOF
3312 #define _ALL_SOURCE 1
3313 _ACEOF
3314
3315 cat >>confdefs.h <<\_ACEOF
3316 #define _GNU_SOURCE 1
3317 _ACEOF
3318
3319 cat >>confdefs.h <<\_ACEOF
3320 #define _POSIX_PTHREAD_SEMANTICS 1
3321 _ACEOF
3322
3323 cat >>confdefs.h <<\_ACEOF
3324 #define _TANDEM_SOURCE 1
3325 _ACEOF
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3337 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3338 if test "${am_cv_prog_cc_stdc+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 am_cv_prog_cc_stdc=no
3342 ac_save_CC="$CC"
3343 # Don't try gcc -ansi; that turns off useful extensions and
3344 # breaks some systems' header files.
3345 # AIX -qlanglvl=ansi
3346 # Ultrix and OSF/1 -std1
3347 # HP-UX 10.20 and later -Ae
3348 # HP-UX older versions -Aa -D_HPUX_SOURCE
3349 # SVR4 -Xc -D__EXTENSIONS__
3350 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 do
3352 CC="$ac_save_CC $ac_arg"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3367 char **p;
3368 int i;
3369 {
3370 return p[i];
3371 }
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3373 {
3374 char *s;
3375 va_list v;
3376 va_start (v,p);
3377 s = g (p, va_arg (v,int));
3378 va_end (v);
3379 return s;
3380 }
3381 int test (int i, double x);
3382 struct s1 {int (*f) (int a);};
3383 struct s2 {int (*f) (double a);};
3384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3385 int argc;
3386 char **argv;
3387
3388 int
3389 main ()
3390 {
3391
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 am_cv_prog_cc_stdc="$ac_arg"; break
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 fi
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 done
3428 CC="$ac_save_CC"
3429
3430 fi
3431
3432 if test -z "$am_cv_prog_cc_stdc"; then
3433 echo "$as_me:$LINENO: result: none needed" >&5
3434 echo "${ECHO_T}none needed" >&6
3435 else
3436 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3437 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3438 fi
3439 case "x$am_cv_prog_cc_stdc" in
3440 x|xno) ;;
3441 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3442 esac
3443
3444
3445 ac_aux_dir=
3446 for ac_dir in .. $srcdir/..; do
3447 if test -f $ac_dir/install-sh; then
3448 ac_aux_dir=$ac_dir
3449 ac_install_sh="$ac_aux_dir/install-sh -c"
3450 break
3451 elif test -f $ac_dir/install.sh; then
3452 ac_aux_dir=$ac_dir
3453 ac_install_sh="$ac_aux_dir/install.sh -c"
3454 break
3455 elif test -f $ac_dir/shtool; then
3456 ac_aux_dir=$ac_dir
3457 ac_install_sh="$ac_aux_dir/shtool install -c"
3458 break
3459 fi
3460 done
3461 if test -z "$ac_aux_dir"; then
3462 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3463 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3464 { (exit 1); exit 1; }; }
3465 fi
3466 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3467 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3468 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3469
3470 # Make sure we can run config.sub.
3471 $ac_config_sub sun4 >/dev/null 2>&1 ||
3472 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3473 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476 echo "$as_me:$LINENO: checking build system type" >&5
3477 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3478 if test "${ac_cv_build+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 ac_cv_build_alias=$build_alias
3482 test -z "$ac_cv_build_alias" &&
3483 ac_cv_build_alias=`$ac_config_guess`
3484 test -z "$ac_cv_build_alias" &&
3485 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3486 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3487 { (exit 1); exit 1; }; }
3488 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3490 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3491 { (exit 1); exit 1; }; }
3492
3493 fi
3494 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3495 echo "${ECHO_T}$ac_cv_build" >&6
3496 build=$ac_cv_build
3497 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3498 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3499 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3500
3501
3502 echo "$as_me:$LINENO: checking host system type" >&5
3503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3504 if test "${ac_cv_host+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 ac_cv_host_alias=$host_alias
3508 test -z "$ac_cv_host_alias" &&
3509 ac_cv_host_alias=$ac_cv_build_alias
3510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3513 { (exit 1); exit 1; }; }
3514
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3517 echo "${ECHO_T}$ac_cv_host" >&6
3518 host=$ac_cv_host
3519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3522
3523
3524 echo "$as_me:$LINENO: checking target system type" >&5
3525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3526 if test "${ac_cv_target+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 ac_cv_target_alias=$target_alias
3530 test "x$ac_cv_target_alias" = "x" &&
3531 ac_cv_target_alias=$ac_cv_host_alias
3532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3535 { (exit 1); exit 1; }; }
3536
3537 fi
3538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3539 echo "${ECHO_T}$ac_cv_target" >&6
3540 target=$ac_cv_target
3541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3544
3545
3546 # The aliases save the names the user supplied, while $host etc.
3547 # will get canonicalized.
3548 test -n "$target_alias" &&
3549 test "$program_prefix$program_suffix$program_transform_name" = \
3550 NONENONEs,x,x, &&
3551 program_prefix=${target_alias}-
3552
3553 # Dependency checking.
3554 rm -rf .tst 2>/dev/null
3555 mkdir .tst 2>/dev/null
3556 if test -d .tst; then
3557 am__leading_dot=.
3558 else
3559 am__leading_dot=_
3560 fi
3561 rmdir .tst 2>/dev/null
3562
3563 DEPDIR="${am__leading_dot}deps"
3564
3565 ac_config_commands="$ac_config_commands depdir"
3566
3567
3568 depcc="$CC" am_compiler_list=
3569
3570 am_depcomp=$ac_aux_dir/depcomp
3571 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3573 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 if test -f "$am_depcomp"; then
3577 # We make a subdir and do the tests there. Otherwise we can end up
3578 # making bogus files that we don't know about and never remove. For
3579 # instance it was reported that on HP-UX the gcc test will end up
3580 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # in D'.
3582 mkdir conftest.dir
3583 # Copy depcomp to subdir because otherwise we won't find it if we're
3584 # using a relative directory.
3585 cp "$am_depcomp" conftest.dir
3586 cd conftest.dir
3587 # We will build objects and dependencies in a subdirectory because
3588 # it helps to detect inapplicable dependency modes. For instance
3589 # both Tru64's cc and ICC support -MD to output dependencies as a
3590 # side effect of compilation, but ICC will put the dependencies in
3591 # the current directory while Tru64 will put them in the object
3592 # directory.
3593 mkdir sub
3594
3595 am_cv_CC_dependencies_compiler_type=none
3596 if test "$am_compiler_list" = ""; then
3597 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598 fi
3599 for depmode in $am_compiler_list; do
3600 if test $depmode = none; then break; fi
3601
3602 echo "$as_me:$LINENO: trying $depmode" >&5
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3606 #
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3610 : > sub/conftest.c
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614 # Solaris 8's {/usr,}/bin/sh.
3615 touch sub/conftst$i.h
3616 done
3617 echo "include sub/conftest.Po" > confmf
3618
3619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620 # mode. It turns out that the SunPro C++ compiler does not properly
3621 # handle `-M -o', and we need to detect this.
3622 depcmd="depmode=$depmode \
3623 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3626 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3627 if env $depcmd > conftest.err 2>&1 &&
3628 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3629 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3630 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3631 # icc doesn't choke on unknown options, it will just issue warnings
3632 # or remarks (even with -Werror). So we grep stderr for any message
3633 # that says an option was ignored or not supported.
3634 # When given -MP, icc 7.0 and 7.1 complain thusly:
3635 # icc: Command line warning: ignoring option '-M'; no argument required
3636 # The diagnosis changed in icc 8.0:
3637 # icc: Command line remark: option '-MP' not supported
3638 if (grep 'ignoring option' conftest.err ||
3639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640 am_cv_CC_dependencies_compiler_type=$depmode
3641 echo "$as_me:$LINENO: success" >&5
3642 break
3643 fi
3644 fi
3645 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3646 sed -e 's/^/| /' < conftest.err >&5
3647 done
3648
3649 cd ..
3650 rm -rf conftest.dir
3651 else
3652 am_cv_CC_dependencies_compiler_type=none
3653 fi
3654
3655 fi
3656 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3658 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3659 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3660 echo "$as_me: error: no usable dependency style found" >&2;}
3661 { (exit 1); exit 1; }; }
3662 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663
3664 fi
3665
3666
3667 # Check for the 'make' the user wants to use.
3668 for ac_prog in make
3669 do
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_MAKE+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 if test -n "$MAKE"; then
3678 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_MAKE="$ac_prog"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693
3694 fi
3695 fi
3696 MAKE=$ac_cv_prog_MAKE
3697 if test -n "$MAKE"; then
3698 echo "$as_me:$LINENO: result: $MAKE" >&5
3699 echo "${ECHO_T}$MAKE" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705 test -n "$MAKE" && break
3706 done
3707
3708 MAKE_IS_GNU=
3709 case "`$MAKE --version 2>&1 | sed 1q`" in
3710 *GNU*)
3711 MAKE_IS_GNU=yes
3712 ;;
3713 esac
3714
3715
3716 if test "$MAKE_IS_GNU" = yes; then
3717 GMAKE_TRUE=
3718 GMAKE_FALSE='#'
3719 else
3720 GMAKE_TRUE='#'
3721 GMAKE_FALSE=
3722 fi
3723
3724 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3725 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3727 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.make <<\_ACEOF
3731 all:
3732 @echo 'ac_maketemp="$(MAKE)"'
3733 _ACEOF
3734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3735 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3736 if test -n "$ac_maketemp"; then
3737 eval ac_cv_prog_make_${ac_make}_set=yes
3738 else
3739 eval ac_cv_prog_make_${ac_make}_set=no
3740 fi
3741 rm -f conftest.make
3742 fi
3743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3744 echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746 SET_MAKE=
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 SET_MAKE="MAKE=${MAKE-make}"
3751 fi
3752
3753
3754
3755 CONFIG_OBS=
3756 CONFIG_DEPS=
3757 CONFIG_SRCS=
3758 ENABLE_CFLAGS=
3759
3760 CONFIG_ALL=
3761 CONFIG_CLEAN=
3762 CONFIG_INSTALL=
3763 CONFIG_UNINSTALL=
3764
3765 # If we haven't got the data from the intl directory,
3766 # assume NLS is disabled.
3767 USE_NLS=no
3768 LIBINTL=
3769 LIBINTL_DEP=
3770 INCINTL=
3771 XGETTEXT=
3772 GMSGFMT=
3773 POSUB=
3774
3775 if test -f ../intl/config.intl; then
3776 . ../intl/config.intl
3777 fi
3778 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3779 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3780 if test x"$USE_NLS" != xyes; then
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 else
3784 echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6
3786
3787 cat >>confdefs.h <<\_ACEOF
3788 #define ENABLE_NLS 1
3789 _ACEOF
3790
3791
3792 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3793 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3794 # Look for .po and .gmo files in the source directory.
3795 CATALOGS=
3796 XLINGUAS=
3797 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3798 # If there aren't any .gmo files the shell will give us the
3799 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3800 # weeded out.
3801 case "$cat" in *\**)
3802 continue;;
3803 esac
3804 # The quadruple backslash is collapsed to a double backslash
3805 # by the backticks, then collapsed again by the double quotes,
3806 # leaving us with one backslash in the sed expression (right
3807 # before the dot that mustn't act as a wildcard).
3808 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3809 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3810 # The user is allowed to set LINGUAS to a list of languages to
3811 # install catalogs for. If it's empty that means "all of them."
3812 if test "x$LINGUAS" = x; then
3813 CATALOGS="$CATALOGS $cat"
3814 XLINGUAS="$XLINGUAS $lang"
3815 else
3816 case "$LINGUAS" in *$lang*)
3817 CATALOGS="$CATALOGS $cat"
3818 XLINGUAS="$XLINGUAS $lang"
3819 ;;
3820 esac
3821 fi
3822 done
3823 LINGUAS="$XLINGUAS"
3824 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3825 echo "${ECHO_T}$LINGUAS" >&6
3826
3827
3828 DATADIRNAME=share
3829
3830 INSTOBJEXT=.mo
3831
3832 GENCAT=gencat
3833
3834 CATOBJEXT=.gmo
3835
3836 fi
3837
3838 localedir='${datadir}/locale'
3839
3840
3841 if test x"$USE_NLS" = xyes; then
3842 CONFIG_ALL="$CONFIG_ALL all-po"
3843 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3844 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3845 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3846 fi
3847
3848
3849 GNULIB_MEMMEM=0;
3850 GNULIB_MEMPCPY=0;
3851 GNULIB_MEMRCHR=0;
3852 GNULIB_STPCPY=0;
3853 GNULIB_STPNCPY=0;
3854 GNULIB_STRCHRNUL=0;
3855 GNULIB_STRDUP=0;
3856 GNULIB_STRNDUP=0;
3857 GNULIB_STRNLEN=0;
3858 GNULIB_STRPBRK=0;
3859 GNULIB_STRSEP=0;
3860 GNULIB_STRSTR=0;
3861 GNULIB_STRCASESTR=0;
3862 GNULIB_STRTOK_R=0;
3863 GNULIB_MBSLEN=0;
3864 GNULIB_MBSNLEN=0;
3865 GNULIB_MBSCHR=0;
3866 GNULIB_MBSRCHR=0;
3867 GNULIB_MBSSTR=0;
3868 GNULIB_MBSCASECMP=0;
3869 GNULIB_MBSNCASECMP=0;
3870 GNULIB_MBSPCASECMP=0;
3871 GNULIB_MBSCASESTR=0;
3872 GNULIB_MBSCSPN=0;
3873 GNULIB_MBSPBRK=0;
3874 GNULIB_MBSSPN=0;
3875 GNULIB_MBSSEP=0;
3876 GNULIB_MBSTOK_R=0;
3877 GNULIB_STRERROR=0;
3878 GNULIB_STRSIGNAL=0;
3879 HAVE_DECL_MEMMEM=1;
3880 HAVE_MEMPCPY=1;
3881 HAVE_DECL_MEMRCHR=1;
3882 HAVE_STPCPY=1;
3883 HAVE_STPNCPY=1;
3884 HAVE_STRCHRNUL=1;
3885 HAVE_DECL_STRDUP=1;
3886 HAVE_STRNDUP=1;
3887 HAVE_DECL_STRNDUP=1;
3888 HAVE_DECL_STRNLEN=1;
3889 HAVE_STRPBRK=1;
3890 HAVE_STRSEP=1;
3891 HAVE_STRCASESTR=1;
3892 HAVE_DECL_STRTOK_R=1;
3893 HAVE_DECL_STRERROR=1;
3894 HAVE_DECL_STRSIGNAL=1;
3895 REPLACE_STRERROR=0;
3896 REPLACE_STRSIGNAL=0;
3897 REPLACE_MEMMEM=0;
3898 REPLACE_STRCASESTR=0;
3899 REPLACE_STRSTR=0;
3900
3901
3902 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3903 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3904 if test "${ac_cv_have_decl_memmem+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 $ac_includes_default
3914 int
3915 main ()
3916 {
3917 #ifndef memmem
3918 char *p = (char *) memmem;
3919 #endif
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_have_decl_memmem=yes
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_cv_have_decl_memmem=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3957 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3958 if test $ac_cv_have_decl_memmem = yes; then
3959
3960 cat >>confdefs.h <<_ACEOF
3961 #define HAVE_DECL_MEMMEM 1
3962 _ACEOF
3963
3964
3965 else
3966 cat >>confdefs.h <<_ACEOF
3967 #define HAVE_DECL_MEMMEM 0
3968 _ACEOF
3969
3970
3971 fi
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987 for ac_func in memmem
3988 do
3989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3990 echo "$as_me:$LINENO: checking for $ac_func" >&5
3991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_var+set}\" = set"; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4003 #define $ac_func innocuous_$ac_func
4004
4005 /* System header to define __stub macros and hopefully few prototypes,
4006 which can conflict with char $ac_func (); below.
4007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 <limits.h> exists even on freestanding compilers. */
4009
4010 #ifdef __STDC__
4011 # include <limits.h>
4012 #else
4013 # include <assert.h>
4014 #endif
4015
4016 #undef $ac_func
4017
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 #ifdef __cplusplus
4020 extern "C"
4021 {
4022 #endif
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4025 char $ac_func ();
4026 /* The GNU C library defines this for functions which it implements
4027 to always fail with ENOSYS. Some functions are actually named
4028 something starting with __ and the normal name is an alias. */
4029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4030 choke me
4031 #else
4032 char (*f) () = $ac_func;
4033 #endif
4034 #ifdef __cplusplus
4035 }
4036 #endif
4037
4038 int
4039 main ()
4040 {
4041 return f != $ac_func;
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext conftest$ac_exeext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048 (eval $ac_link) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest$ac_exeext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_var=yes"
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 eval "$as_ac_var=no"
4074 fi
4075 rm -f conftest.err conftest.$ac_objext \
4076 conftest$ac_exeext conftest.$ac_ext
4077 fi
4078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4080 if test `eval echo '${'$as_ac_var'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 else
4086
4087 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4088
4089 fi
4090 done
4091
4092
4093
4094 :
4095
4096
4097
4098
4099
4100 if test $ac_cv_have_decl_memmem = no; then
4101 HAVE_DECL_MEMMEM=0
4102 fi
4103 :
4104
4105
4106 echo "$as_me:$LINENO: checking for long long int" >&5
4107 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4108 if test "${ac_cv_type_long_long_int+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 cat >conftest.$ac_ext <<_ACEOF
4112
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 /* For now, do not test the preprocessor; as of 2007 there are too many
4119 implementations with broken preprocessors. Perhaps this can
4120 be revisited in 2012. In the meantime, code should not expect
4121 #if to work with literals wider than 32 bits. */
4122 /* Test literals. */
4123 long long int ll = 9223372036854775807ll;
4124 long long int nll = -9223372036854775807LL;
4125 unsigned long long int ull = 18446744073709551615ULL;
4126 /* Test constant expressions. */
4127 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4128 ? 1 : -1)];
4129 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4130 ? 1 : -1)];
4131 int i = 63;
4132 int
4133 main ()
4134 {
4135 /* Test availability of runtime routines for shift and division. */
4136 long long int llmax = 9223372036854775807ll;
4137 unsigned long long int ullmax = 18446744073709551615ull;
4138 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4139 | (llmax / ll) | (llmax % ll)
4140 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4141 | (ullmax / ull) | (ullmax % ull));
4142 ;
4143 return 0;
4144 }
4145
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 if test "$cross_compiling" = yes; then
4170 ac_cv_type_long_long_int=yes
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <limits.h>
4179 #ifndef LLONG_MAX
4180 # define HALF \
4181 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4182 # define LLONG_MAX (HALF - 1 + HALF)
4183 #endif
4184 int
4185 main ()
4186 {
4187 long long int n = 1;
4188 int i;
4189 for (i = 0; ; i++)
4190 {
4191 long long int m = n << i;
4192 if (m >> i != n)
4193 return 1;
4194 if (LLONG_MAX / 2 < m)
4195 break;
4196 }
4197 return 0;
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_type_long_long_int=yes
4214 else
4215 echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ( exit $ac_status )
4220 ac_cv_type_long_long_int=no
4221 fi
4222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_cv_type_long_long_int=no
4229 fi
4230 rm -f conftest.err conftest.$ac_objext \
4231 conftest$ac_exeext conftest.$ac_ext
4232 fi
4233 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4234 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4235 if test $ac_cv_type_long_long_int = yes; then
4236
4237 cat >>confdefs.h <<\_ACEOF
4238 #define HAVE_LONG_LONG_INT 1
4239 _ACEOF
4240
4241 fi
4242
4243
4244 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4245 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4246 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 /* For now, do not test the preprocessor; as of 2007 there are too many
4257 implementations with broken preprocessors. Perhaps this can
4258 be revisited in 2012. In the meantime, code should not expect
4259 #if to work with literals wider than 32 bits. */
4260 /* Test literals. */
4261 long long int ll = 9223372036854775807ll;
4262 long long int nll = -9223372036854775807LL;
4263 unsigned long long int ull = 18446744073709551615ULL;
4264 /* Test constant expressions. */
4265 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4266 ? 1 : -1)];
4267 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4268 ? 1 : -1)];
4269 int i = 63;
4270 int
4271 main ()
4272 {
4273 /* Test availability of runtime routines for shift and division. */
4274 long long int llmax = 9223372036854775807ll;
4275 unsigned long long int ullmax = 18446744073709551615ull;
4276 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4277 | (llmax / ll) | (llmax % ll)
4278 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4279 | (ullmax / ull) | (ullmax % ull));
4280 ;
4281 return 0;
4282 }
4283
4284 _ACEOF
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287 (eval $ac_link) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest$ac_exeext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_type_unsigned_long_long_int=yes
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_type_unsigned_long_long_int=no
4313 fi
4314 rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4318 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4319 if test $ac_cv_type_unsigned_long_long_int = yes; then
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4323 _ACEOF
4324
4325 fi
4326
4327
4328
4329 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4330 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4331 if test "${gl_cv_have_include_next+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 rm -rf conftestd1 conftestd2
4335 mkdir conftestd1 conftestd2
4336 cat <<EOF > conftestd1/conftest.h
4337 #define DEFINED_IN_CONFTESTD1
4338 #include_next <conftest.h>
4339 #ifdef DEFINED_IN_CONFTESTD2
4340 int foo;
4341 #else
4342 #error "include_next doesn't work"
4343 #endif
4344 EOF
4345 cat <<EOF > conftestd2/conftest.h
4346 #ifndef DEFINED_IN_CONFTESTD1
4347 #error "include_next test doesn't work"
4348 #endif
4349 #define DEFINED_IN_CONFTESTD2
4350 EOF
4351 save_CPPFLAGS="$CPPFLAGS"
4352 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4353 cat >conftest.$ac_ext <<_ACEOF
4354 #include <conftest.h>
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 gl_cv_have_include_next=yes
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 gl_cv_have_include_next=no
4384 fi
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 CPPFLAGS="$save_CPPFLAGS"
4387 rm -rf conftestd1 conftestd2
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4391 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4392 if test $gl_cv_have_include_next = yes; then
4393
4394
4395 cat >>confdefs.h <<\_ACEOF
4396 #define HAVE_INCLUDE_NEXT 1
4397 _ACEOF
4398
4399
4400 INCLUDE_NEXT=include_next
4401 else
4402 INCLUDE_NEXT=include
4403 fi
4404
4405
4406
4407
4408
4409
4410
4411 for ac_header in $gl_header_list
4412 do
4413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415 echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 fi
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4422 else
4423 # Is the header compilable?
4424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 $ac_includes_default
4433 #include <$ac_header>
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag"
4445 || test ! -s conftest.err'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_header_compiler=yes
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_header_compiler=no
4463 fi
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466 echo "${ECHO_T}$ac_header_compiler" >&6
4467
4468 # Is the header present?
4469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <$ac_header>
4478 _ACEOF
4479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } >/dev/null; then
4487 if test -s conftest.err; then
4488 ac_cpp_err=$ac_c_preproc_warn_flag
4489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4490 else
4491 ac_cpp_err=
4492 fi
4493 else
4494 ac_cpp_err=yes
4495 fi
4496 if test -z "$ac_cpp_err"; then
4497 ac_header_preproc=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_header_preproc=no
4503 fi
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4507
4508 # So? What about this header?
4509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4510 yes:no: )
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4515 ac_header_preproc=yes
4516 ;;
4517 no:yes:* )
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4530 (
4531 cat <<\_ASBOX
4532 ## ------------------------------------------ ##
4533 ## Report this to the AC_PACKAGE_NAME lists. ##
4534 ## ------------------------------------------ ##
4535 _ASBOX
4536 ) |
4537 sed "s/^/$as_me: WARNING: /" >&2
4538 ;;
4539 esac
4540 echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 eval "$as_ac_Header=\$ac_header_preproc"
4546 fi
4547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549
4550 fi
4551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4552 cat >>confdefs.h <<_ACEOF
4553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554 _ACEOF
4555
4556 fi
4557
4558 done
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4572 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4573 if test "${ac_cv_c_restrict+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 ac_cv_c_restrict=no
4577 # The order here caters to the fact that C++ does not require restrict.
4578 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 typedef int * int_ptr;
4586 int foo (int_ptr $ac_kw ip) {
4587 return ip[0];
4588 }
4589 int
4590 main ()
4591 {
4592 int s[1];
4593 int * $ac_kw t = s;
4594 t[0] = 0;
4595 return foo(t)
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_cv_c_restrict=$ac_kw
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 fi
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 test "$ac_cv_c_restrict" != no && break
4630 done
4631
4632 fi
4633 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4634 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4635
4636
4637 case $ac_cv_c_restrict in
4638 restrict) ;;
4639 no) cat >>confdefs.h <<\_ACEOF
4640 #define restrict
4641 _ACEOF
4642 ;;
4643 *) cat >>confdefs.h <<_ACEOF
4644 #define restrict $ac_cv_c_restrict
4645 _ACEOF
4646 ;;
4647 esac
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661 :
4662
4663
4664
4665
4666
4667
4668
4669 if test $gl_cv_have_include_next = yes; then
4670 gl_cv_next_string_h='<'string.h'>'
4671 else
4672 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4673 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4674 if test "${gl_cv_next_string_h+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677
4678 if test $ac_cv_header_string_h = yes; then
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #include <string.h>
4686
4687 _ACEOF
4688 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689 sed -n '\#/string.h#{
4690 s#.*"\(.*/string.h\)".*#\1#
4691 s#^/[^/]#//&#
4692 p
4693 q
4694 }'`'"'
4695 else
4696 gl_cv_next_string_h='<'string.h'>'
4697 fi
4698
4699 fi
4700 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4701 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4702 fi
4703 NEXT_STRING_H=$gl_cv_next_string_h
4704
4705
4706
4707
4708
4709 GNULIB_WCWIDTH=0;
4710 HAVE_DECL_WCWIDTH=1;
4711 REPLACE_WCWIDTH=0;
4712 WCHAR_H=
4713
4714
4715
4716
4717
4718 if false; then
4719 GL_COND_LIBTOOL_TRUE=
4720 GL_COND_LIBTOOL_FALSE='#'
4721 else
4722 GL_COND_LIBTOOL_TRUE='#'
4723 GL_COND_LIBTOOL_FALSE=
4724 fi
4725
4726 gl_cond_libtool=false
4727 gl_libdeps=
4728 gl_ltlibdeps=
4729
4730
4731
4732 gl_source_base='gnulib'
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 for ac_func in memchr
4743 do
4744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4745 echo "$as_me:$LINENO: checking for $ac_func" >&5
4746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4747 if eval "test \"\${$as_ac_var+set}\" = set"; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4758 #define $ac_func innocuous_$ac_func
4759
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func (); below.
4762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763 <limits.h> exists even on freestanding compilers. */
4764
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770
4771 #undef $ac_func
4772
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 {
4777 #endif
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4780 char $ac_func ();
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4785 choke me
4786 #else
4787 char (*f) () = $ac_func;
4788 #endif
4789 #ifdef __cplusplus
4790 }
4791 #endif
4792
4793 int
4794 main ()
4795 {
4796 return f != $ac_func;
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -z "$ac_c_werror_flag"
4811 || test ! -s conftest.err'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest$ac_exeext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 eval "$as_ac_var=yes"
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 eval "$as_ac_var=no"
4829 fi
4830 rm -f conftest.err conftest.$ac_objext \
4831 conftest$ac_exeext conftest.$ac_ext
4832 fi
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4835 if test `eval echo '${'$as_ac_var'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4838 _ACEOF
4839
4840 else
4841
4842 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4843
4844 fi
4845 done
4846
4847
4848 if test $ac_cv_func_memchr = no; then
4849
4850
4851 for ac_header in bp-sym.h
4852 do
4853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855 echo "$as_me:$LINENO: checking for $ac_header" >&5
4856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 fi
4860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862 else
4863 # Is the header compilable?
4864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4873 #include <$ac_header>
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_header_compiler=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_header_compiler=no
4903 fi
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4906 echo "${ECHO_T}$ac_header_compiler" >&6
4907
4908 # Is the header present?
4909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <$ac_header>
4918 _ACEOF
4919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } >/dev/null; then
4927 if test -s conftest.err; then
4928 ac_cpp_err=$ac_c_preproc_warn_flag
4929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4930 else
4931 ac_cpp_err=
4932 fi
4933 else
4934 ac_cpp_err=yes
4935 fi
4936 if test -z "$ac_cpp_err"; then
4937 ac_header_preproc=yes
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 ac_header_preproc=no
4943 fi
4944 rm -f conftest.err conftest.$ac_ext
4945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4946 echo "${ECHO_T}$ac_header_preproc" >&6
4947
4948 # So? What about this header?
4949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4950 yes:no: )
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4955 ac_header_preproc=yes
4956 ;;
4957 no:yes:* )
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4970 (
4971 cat <<\_ASBOX
4972 ## ------------------------------------------ ##
4973 ## Report this to the AC_PACKAGE_NAME lists. ##
4974 ## ------------------------------------------ ##
4975 _ASBOX
4976 ) |
4977 sed "s/^/$as_me: WARNING: /" >&2
4978 ;;
4979 esac
4980 echo "$as_me:$LINENO: checking for $ac_header" >&5
4981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 eval "$as_ac_Header=\$ac_header_preproc"
4986 fi
4987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4989
4990 fi
4991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 _ACEOF
4995
4996 fi
4997
4998 done
4999
5000
5001 fi
5002
5003
5004 echo "$as_me:$LINENO: checking for working memcmp" >&5
5005 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5006 if test "${ac_cv_func_memcmp_working+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 if test "$cross_compiling" = yes; then
5010 ac_cv_func_memcmp_working=no
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 int
5020 main ()
5021 {
5022
5023 /* Some versions of memcmp are not 8-bit clean. */
5024 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5025 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5026 exit (1);
5027
5028 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5029 or more and with at least one buffer not starting on a 4-byte boundary.
5030 William Lewis provided this test program. */
5031 {
5032 char foo[21];
5033 char bar[21];
5034 int i;
5035 for (i = 0; i < 4; i++)
5036 {
5037 char *a = foo + i;
5038 char *b = bar + i;
5039 strcpy (a, "--------01111111");
5040 strcpy (b, "--------10000000");
5041 if (memcmp (a, b, 16) >= 0)
5042 exit (1);
5043 }
5044 exit (0);
5045 }
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_func_memcmp_working=yes
5063 else
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ( exit $ac_status )
5069 ac_cv_func_memcmp_working=no
5070 fi
5071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 fi
5074 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5075 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5076 test $ac_cv_func_memcmp_working = no &&
5077
5078
5079
5080
5081
5082
5083 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5084
5085
5086 if test $ac_cv_func_memcmp_working = no; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define memcmp rpl_memcmp
5090 _ACEOF
5091
5092 :
5093 fi
5094
5095
5096
5097 if test $ac_cv_have_decl_memmem = yes; then
5098 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5099 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5100 if test "${gl_cv_func_memmem_works+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 if test "$cross_compiling" = yes; then
5104 gl_cv_func_memmem_works="guessing no"
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112
5113 #include <string.h> /* for memmem */
5114 #include <stdlib.h> /* for malloc */
5115 #include <unistd.h> /* for alarm */
5116
5117 int
5118 main ()
5119 {
5120 size_t m = 1000000;
5121 char *haystack = (char *) malloc (2 * m + 1);
5122 char *needle = (char *) malloc (m + 1);
5123 void *result = 0;
5124 /* Failure to compile this test due to missing alarm is okay,
5125 since all such platforms (mingw) also lack memmem. */
5126 alarm (5);
5127 /* Check for quadratic performance. */
5128 if (haystack && needle)
5129 {
5130 memset (haystack, 'A', 2 * m);
5131 haystack[2 * m] = 'B';
5132 memset (needle, 'A', m);
5133 needle[m] = 'B';
5134 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5135 }
5136 /* Check for empty needle behavior. */
5137 return !result || !memmem ("a", 1, 0, 0);
5138 ;
5139 return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 gl_cv_func_memmem_works=yes
5154 else
5155 echo "$as_me: program exited with status $ac_status" >&5
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 ( exit $ac_status )
5160 gl_cv_func_memmem_works=no
5161 fi
5162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 fi
5165 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5166 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5167 if test "$gl_cv_func_memmem_works" != yes; then
5168 REPLACE_MEMMEM=1
5169
5170
5171
5172
5173
5174
5175
5176 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5177
5178 fi
5179 fi
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 for ac_func in memmem
5194 do
5195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5196 echo "$as_me:$LINENO: checking for $ac_func" >&5
5197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_var+set}\" = set"; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5209 #define $ac_func innocuous_$ac_func
5210
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func (); below.
5213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 <limits.h> exists even on freestanding compilers. */
5215
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5221
5222 #undef $ac_func
5223
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 #ifdef __cplusplus
5226 extern "C"
5227 {
5228 #endif
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char $ac_func ();
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 choke me
5237 #else
5238 char (*f) () = $ac_func;
5239 #endif
5240 #ifdef __cplusplus
5241 }
5242 #endif
5243
5244 int
5245 main ()
5246 {
5247 return f != $ac_func;
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 eval "$as_ac_var=yes"
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 eval "$as_ac_var=no"
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 fi
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5286 if test `eval echo '${'$as_ac_var'}'` = yes; then
5287 cat >>confdefs.h <<_ACEOF
5288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5289 _ACEOF
5290
5291 else
5292
5293 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5294
5295 fi
5296 done
5297
5298
5299
5300 :
5301
5302
5303
5304
5305
5306 if test $ac_cv_have_decl_memmem = no; then
5307 HAVE_DECL_MEMMEM=0
5308 fi
5309 :
5310
5311
5312
5313 GNULIB_MEMMEM=1
5314
5315
5316
5317
5318 if test $ac_cv_type_long_long_int = yes; then
5319 HAVE_LONG_LONG_INT=1
5320 else
5321 HAVE_LONG_LONG_INT=0
5322 fi
5323
5324
5325 if test $ac_cv_type_unsigned_long_long_int = yes; then
5326 HAVE_UNSIGNED_LONG_LONG_INT=1
5327 else
5328 HAVE_UNSIGNED_LONG_LONG_INT=0
5329 fi
5330
5331
5332 if test $ac_cv_header_inttypes_h = yes; then
5333 HAVE_INTTYPES_H=1
5334 else
5335 HAVE_INTTYPES_H=0
5336 fi
5337
5338
5339 if test $ac_cv_header_sys_types_h = yes; then
5340 HAVE_SYS_TYPES_H=1
5341 else
5342 HAVE_SYS_TYPES_H=0
5343 fi
5344
5345
5346
5347
5348
5349 :
5350
5351
5352
5353
5354
5355
5356
5357 if test $gl_cv_have_include_next = yes; then
5358 gl_cv_next_stdint_h='<'stdint.h'>'
5359 else
5360 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5361 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5362 if test "${gl_cv_next_stdint_h+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365
5366 if test $ac_cv_header_stdint_h = yes; then
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <stdint.h>
5374
5375 _ACEOF
5376 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 sed -n '\#/stdint.h#{
5378 s#.*"\(.*/stdint.h\)".*#\1#
5379 s#^/[^/]#//&#
5380 p
5381 q
5382 }'`'"'
5383 else
5384 gl_cv_next_stdint_h='<'stdint.h'>'
5385 fi
5386
5387 fi
5388 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5389 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5390 fi
5391 NEXT_STDINT_H=$gl_cv_next_stdint_h
5392
5393
5394
5395 if test $ac_cv_header_stdint_h = yes; then
5396 HAVE_STDINT_H=1
5397 else
5398 HAVE_STDINT_H=0
5399 fi
5400
5401
5402 if test $ac_cv_header_stdint_h = yes; then
5403 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5404 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5405 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 gl_cv_header_working_stdint_h=no
5409 cat >conftest.$ac_ext <<_ACEOF
5410
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416
5417 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5418 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5419 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5420 #include <stdint.h>
5421 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5422 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5423 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5424 #endif
5425
5426
5427 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5428 included before <wchar.h>. */
5429 #include <stddef.h>
5430 #include <signal.h>
5431 #if HAVE_WCHAR_H
5432 # include <stdio.h>
5433 # include <time.h>
5434 # include <wchar.h>
5435 #endif
5436
5437
5438 #ifdef INT8_MAX
5439 int8_t a1 = INT8_MAX;
5440 int8_t a1min = INT8_MIN;
5441 #endif
5442 #ifdef INT16_MAX
5443 int16_t a2 = INT16_MAX;
5444 int16_t a2min = INT16_MIN;
5445 #endif
5446 #ifdef INT32_MAX
5447 int32_t a3 = INT32_MAX;
5448 int32_t a3min = INT32_MIN;
5449 #endif
5450 #ifdef INT64_MAX
5451 int64_t a4 = INT64_MAX;
5452 int64_t a4min = INT64_MIN;
5453 #endif
5454 #ifdef UINT8_MAX
5455 uint8_t b1 = UINT8_MAX;
5456 #else
5457 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5458 #endif
5459 #ifdef UINT16_MAX
5460 uint16_t b2 = UINT16_MAX;
5461 #endif
5462 #ifdef UINT32_MAX
5463 uint32_t b3 = UINT32_MAX;
5464 #endif
5465 #ifdef UINT64_MAX
5466 uint64_t b4 = UINT64_MAX;
5467 #endif
5468 int_least8_t c1 = INT8_C (0x7f);
5469 int_least8_t c1max = INT_LEAST8_MAX;
5470 int_least8_t c1min = INT_LEAST8_MIN;
5471 int_least16_t c2 = INT16_C (0x7fff);
5472 int_least16_t c2max = INT_LEAST16_MAX;
5473 int_least16_t c2min = INT_LEAST16_MIN;
5474 int_least32_t c3 = INT32_C (0x7fffffff);
5475 int_least32_t c3max = INT_LEAST32_MAX;
5476 int_least32_t c3min = INT_LEAST32_MIN;
5477 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5478 int_least64_t c4max = INT_LEAST64_MAX;
5479 int_least64_t c4min = INT_LEAST64_MIN;
5480 uint_least8_t d1 = UINT8_C (0xff);
5481 uint_least8_t d1max = UINT_LEAST8_MAX;
5482 uint_least16_t d2 = UINT16_C (0xffff);
5483 uint_least16_t d2max = UINT_LEAST16_MAX;
5484 uint_least32_t d3 = UINT32_C (0xffffffff);
5485 uint_least32_t d3max = UINT_LEAST32_MAX;
5486 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5487 uint_least64_t d4max = UINT_LEAST64_MAX;
5488 int_fast8_t e1 = INT_FAST8_MAX;
5489 int_fast8_t e1min = INT_FAST8_MIN;
5490 int_fast16_t e2 = INT_FAST16_MAX;
5491 int_fast16_t e2min = INT_FAST16_MIN;
5492 int_fast32_t e3 = INT_FAST32_MAX;
5493 int_fast32_t e3min = INT_FAST32_MIN;
5494 int_fast64_t e4 = INT_FAST64_MAX;
5495 int_fast64_t e4min = INT_FAST64_MIN;
5496 uint_fast8_t f1 = UINT_FAST8_MAX;
5497 uint_fast16_t f2 = UINT_FAST16_MAX;
5498 uint_fast32_t f3 = UINT_FAST32_MAX;
5499 uint_fast64_t f4 = UINT_FAST64_MAX;
5500 #ifdef INTPTR_MAX
5501 intptr_t g = INTPTR_MAX;
5502 intptr_t gmin = INTPTR_MIN;
5503 #endif
5504 #ifdef UINTPTR_MAX
5505 uintptr_t h = UINTPTR_MAX;
5506 #endif
5507 intmax_t i = INTMAX_MAX;
5508 uintmax_t j = UINTMAX_MAX;
5509
5510 #include <limits.h> /* for CHAR_BIT */
5511 #define TYPE_MINIMUM(t) \
5512 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5513 #define TYPE_MAXIMUM(t) \
5514 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5515 struct s {
5516 int check_PTRDIFF:
5517 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5518 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5519 ? 1 : -1;
5520 /* Detect bug in FreeBSD 6.0 / ia64. */
5521 int check_SIG_ATOMIC:
5522 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5523 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5524 ? 1 : -1;
5525 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5526 int check_WCHAR:
5527 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5528 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5529 ? 1 : -1;
5530 /* Detect bug in mingw. */
5531 int check_WINT:
5532 WINT_MIN == TYPE_MINIMUM (wint_t)
5533 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5534 ? 1 : -1;
5535
5536 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5537 int check_UINT8_C:
5538 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5539 int check_UINT16_C:
5540 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5541
5542 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5543 #ifdef UINT8_MAX
5544 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5545 #endif
5546 #ifdef UINT16_MAX
5547 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5548 #endif
5549 #ifdef UINT32_MAX
5550 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5551 #endif
5552 #ifdef UINT64_MAX
5553 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5554 #endif
5555 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5556 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5557 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5558 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5559 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5560 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5561 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5562 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5563 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5564 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5565 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5566 };
5567
5568 int
5569 main ()
5570 {
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -z "$ac_c_werror_flag"
5586 || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 gl_cv_header_working_stdint_h=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 fi
5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5607 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5608 fi
5609 if test "$gl_cv_header_working_stdint_h" = yes; then
5610 STDINT_H=
5611 else
5612
5613
5614 for ac_header in sys/inttypes.h sys/bitypes.h
5615 do
5616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5618 echo "$as_me:$LINENO: checking for $ac_header" >&5
5619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 fi
5623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5625 else
5626 # Is the header compilable?
5627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 $ac_includes_default
5636 #include <$ac_header>
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_header_compiler=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ac_header_compiler=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5669 echo "${ECHO_T}$ac_header_compiler" >&6
5670
5671 # Is the header present?
5672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <$ac_header>
5681 _ACEOF
5682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } >/dev/null; then
5690 if test -s conftest.err; then
5691 ac_cpp_err=$ac_c_preproc_warn_flag
5692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5693 else
5694 ac_cpp_err=
5695 fi
5696 else
5697 ac_cpp_err=yes
5698 fi
5699 if test -z "$ac_cpp_err"; then
5700 ac_header_preproc=yes
5701 else
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ac_header_preproc=no
5706 fi
5707 rm -f conftest.err conftest.$ac_ext
5708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5709 echo "${ECHO_T}$ac_header_preproc" >&6
5710
5711 # So? What about this header?
5712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5713 yes:no: )
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5718 ac_header_preproc=yes
5719 ;;
5720 no:yes:* )
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5733 (
5734 cat <<\_ASBOX
5735 ## ------------------------------------------ ##
5736 ## Report this to the AC_PACKAGE_NAME lists. ##
5737 ## ------------------------------------------ ##
5738 _ASBOX
5739 ) |
5740 sed "s/^/$as_me: WARNING: /" >&2
5741 ;;
5742 esac
5743 echo "$as_me:$LINENO: checking for $ac_header" >&5
5744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 eval "$as_ac_Header=\$ac_header_preproc"
5749 fi
5750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5752
5753 fi
5754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757 _ACEOF
5758
5759 fi
5760
5761 done
5762
5763 if test $ac_cv_header_sys_inttypes_h = yes; then
5764 HAVE_SYS_INTTYPES_H=1
5765 else
5766 HAVE_SYS_INTTYPES_H=0
5767 fi
5768
5769 if test $ac_cv_header_sys_bitypes_h = yes; then
5770 HAVE_SYS_BITYPES_H=1
5771 else
5772 HAVE_SYS_BITYPES_H=0
5773 fi
5774
5775
5776
5777 :
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5793 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5794 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5795 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 if test "$cross_compiling" = yes; then
5799 # Depending upon the size, compute the lo and hi bounds.
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806
5807 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5808 included before <wchar.h>. */
5809 #include <stddef.h>
5810 #include <signal.h>
5811 #if HAVE_WCHAR_H
5812 # include <stdio.h>
5813 # include <time.h>
5814 # include <wchar.h>
5815 #endif
5816
5817 #include <limits.h>
5818 int
5819 main ()
5820 {
5821 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5822 test_array [0] = 0
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_lo=0 ac_mid=0
5851 while :; do
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858
5859 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5860 included before <wchar.h>. */
5861 #include <stddef.h>
5862 #include <signal.h>
5863 #if HAVE_WCHAR_H
5864 # include <stdio.h>
5865 # include <time.h>
5866 # include <wchar.h>
5867 #endif
5868
5869 #include <limits.h>
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_hi=$ac_mid; break
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo=`expr $ac_mid + 1`
5908 if test $ac_lo -le $ac_mid; then
5909 ac_lo= ac_hi=
5910 break
5911 fi
5912 ac_mid=`expr 2 '*' $ac_mid + 1`
5913 fi
5914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 done
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926
5927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5928 included before <wchar.h>. */
5929 #include <stddef.h>
5930 #include <signal.h>
5931 #if HAVE_WCHAR_H
5932 # include <stdio.h>
5933 # include <time.h>
5934 # include <wchar.h>
5935 #endif
5936
5937 #include <limits.h>
5938 int
5939 main ()
5940 {
5941 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5942 test_array [0] = 0
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_hi=-1 ac_mid=-1
5971 while :; do
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978
5979 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5980 included before <wchar.h>. */
5981 #include <stddef.h>
5982 #include <signal.h>
5983 #if HAVE_WCHAR_H
5984 # include <stdio.h>
5985 # include <time.h>
5986 # include <wchar.h>
5987 #endif
5988
5989 #include <limits.h>
5990 int
5991 main ()
5992 {
5993 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5994 test_array [0] = 0
5995
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_lo=$ac_mid; break
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_hi=`expr '(' $ac_mid ')' - 1`
6028 if test $ac_mid -le $ac_hi; then
6029 ac_lo= ac_hi=
6030 break
6031 fi
6032 ac_mid=`expr 2 '*' $ac_mid`
6033 fi
6034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035 done
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_lo= ac_hi=
6041 fi
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6045 # Binary search between lo and hi bounds.
6046 while test "x$ac_lo" != "x$ac_hi"; do
6047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054
6055 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6056 included before <wchar.h>. */
6057 #include <stddef.h>
6058 #include <signal.h>
6059 #if HAVE_WCHAR_H
6060 # include <stdio.h>
6061 # include <time.h>
6062 # include <wchar.h>
6063 #endif
6064
6065 #include <limits.h>
6066 int
6067 main ()
6068 {
6069 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6070 test_array [0] = 0
6071
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_hi=$ac_mid
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_lo=`expr '(' $ac_mid ')' + 1`
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 done
6107 case $ac_lo in
6108 ?*) result=$ac_lo;;
6109 '') result=unknown ;;
6110 esac
6111 else
6112 if test "$cross_compiling" = yes; then
6113 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6114 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6115 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6116 See \`config.log' for more details." >&5
6117 echo "$as_me: error: cannot run test program while cross compiling
6118 See \`config.log' for more details." >&2;}
6119 { (exit 1); exit 1; }; }; }
6120 else
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127
6128 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6129 included before <wchar.h>. */
6130 #include <stddef.h>
6131 #include <signal.h>
6132 #if HAVE_WCHAR_H
6133 # include <stdio.h>
6134 # include <time.h>
6135 # include <wchar.h>
6136 #endif
6137
6138 #include <limits.h>
6139 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6140 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6141 #include <stdio.h>
6142 #include <stdlib.h>
6143 int
6144 main ()
6145 {
6146
6147 FILE *f = fopen ("conftest.val", "w");
6148 if (! f)
6149 exit (1);
6150 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6151 {
6152 long i = longval ();
6153 if (i != (sizeof ($gltype) * CHAR_BIT))
6154 exit (1);
6155 fprintf (f, "%ld\n", i);
6156 }
6157 else
6158 {
6159 unsigned long i = ulongval ();
6160 if (i != (sizeof ($gltype) * CHAR_BIT))
6161 exit (1);
6162 fprintf (f, "%lu\n", i);
6163 }
6164 exit (ferror (f) || fclose (f) != 0);
6165
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 result=`cat conftest.val`
6182 else
6183 echo "$as_me: program exited with status $ac_status" >&5
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ( exit $ac_status )
6188 result=unknown
6189 fi
6190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6191 fi
6192 fi
6193 rm -f conftest.val
6194 eval gl_cv_bitsizeof_${gltype}=\$result
6195
6196 fi
6197 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6198 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6199 eval result=\$gl_cv_bitsizeof_${gltype}
6200 if test $result = unknown; then
6201 result=0
6202 fi
6203 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6204 cat >>confdefs.h <<_ACEOF
6205 #define BITSIZEOF_${GLTYPE} $result
6206 _ACEOF
6207
6208 eval BITSIZEOF_${GLTYPE}=\$result
6209 done
6210
6211
6212
6213
6214
6215
6216
6217 for gltype in sig_atomic_t wchar_t wint_t ; do
6218 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6219 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6220 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229
6230 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6231 included before <wchar.h>. */
6232 #include <stddef.h>
6233 #include <signal.h>
6234 #if HAVE_WCHAR_H
6235 # include <stdio.h>
6236 # include <time.h>
6237 # include <wchar.h>
6238 #endif
6239
6240 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6241 int
6242 main ()
6243 {
6244
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 result=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 result=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 eval gl_cv_type_${gltype}_signed=\$result
6280
6281 fi
6282 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6284 eval result=\$gl_cv_type_${gltype}_signed
6285 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6286 if test "$result" = yes; then
6287 cat >>confdefs.h <<_ACEOF
6288 #define HAVE_SIGNED_${GLTYPE} 1
6289 _ACEOF
6290
6291 eval HAVE_SIGNED_${GLTYPE}=1
6292 else
6293 eval HAVE_SIGNED_${GLTYPE}=0
6294 fi
6295 done
6296
6297
6298 gl_cv_type_ptrdiff_t_signed=yes
6299 gl_cv_type_size_t_signed=no
6300
6301
6302
6303
6304
6305
6306
6307 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6308 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6309 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6310 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 eval gl_cv_type_${gltype}_suffix=no
6314 eval result=\$gl_cv_type_${gltype}_signed
6315 if test "$result" = yes; then
6316 glsufu=
6317 else
6318 glsufu=u
6319 fi
6320 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6321 case $glsuf in
6322 '') gltype1='int';;
6323 l) gltype1='long int';;
6324 ll) gltype1='long long int';;
6325 i64) gltype1='__int64';;
6326 u) gltype1='unsigned int';;
6327 ul) gltype1='unsigned long int';;
6328 ull) gltype1='unsigned long long int';;
6329 ui64)gltype1='unsigned __int64';;
6330 esac
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337
6338 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6339 included before <wchar.h>. */
6340 #include <stddef.h>
6341 #include <signal.h>
6342 #if HAVE_WCHAR_H
6343 # include <stdio.h>
6344 # include <time.h>
6345 # include <wchar.h>
6346 #endif
6347
6348 extern $gltype foo;
6349 extern $gltype1 foo;
6350 int
6351 main ()
6352 {
6353
6354 ;
6355 return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag"
6368 || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 eval gl_cv_type_${gltype}_suffix=\$glsuf
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 eval result=\$gl_cv_type_${gltype}_suffix
6388 test "$result" != no && break
6389 done
6390 fi
6391 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6393 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6394 eval result=\$gl_cv_type_${gltype}_suffix
6395 test "$result" = no && result=
6396 eval ${GLTYPE}_SUFFIX=\$result
6397 cat >>confdefs.h <<_ACEOF
6398 #define ${GLTYPE}_SUFFIX $result
6399 _ACEOF
6400
6401 done
6402
6403
6404
6405 STDINT_H=stdint.h
6406 fi
6407
6408
6409
6410
6411
6412
6413
6414 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6415 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6416 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #include <wchar.h>
6421 wchar_t w;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 gl_cv_header_wchar_h_standalone=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 gl_cv_header_wchar_h_standalone=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6455 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6456 if test $gl_cv_header_wchar_h_standalone != yes; then
6457 WCHAR_H=wchar.h
6458 fi
6459
6460
6461 :
6462
6463
6464
6465
6466
6467 if test $ac_cv_header_wchar_h = yes; then
6468 HAVE_WCHAR_H=1
6469 else
6470 HAVE_WCHAR_H=0
6471 fi
6472
6473
6474
6475
6476 :
6477
6478
6479
6480
6481
6482
6483
6484 if test $gl_cv_have_include_next = yes; then
6485 gl_cv_next_wchar_h='<'wchar.h'>'
6486 else
6487 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6488 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6489 if test "${gl_cv_next_wchar_h+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492
6493 if test $ac_cv_header_wchar_h = yes; then
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <wchar.h>
6501
6502 _ACEOF
6503 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 sed -n '\#/wchar.h#{
6505 s#.*"\(.*/wchar.h\)".*#\1#
6506 s#^/[^/]#//&#
6507 p
6508 q
6509 }'`'"'
6510 else
6511 gl_cv_next_wchar_h='<'wchar.h'>'
6512 fi
6513
6514 fi
6515 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6516 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6517 fi
6518 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6519
6520
6521
6522
6523
6524
6525
6526
6527 gltests_libdeps=
6528 gltests_ltlibdeps=
6529
6530
6531
6532 gl_source_base='tests'
6533
6534
6535
6536
6537 LIBGNU_LIBDEPS="$gl_libdeps"
6538
6539 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6540
6541
6542
6543 # For Makefile dependencies.
6544 GNULIB_STDINT_H=
6545 if test x"$STDINT_H" != x; then
6546 GNULIB_STDINT_H=gnulib/$STDINT_H
6547 fi
6548
6549
6550 PACKAGE=gdb
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define PACKAGE "$PACKAGE"
6554 _ACEOF
6555
6556
6557
6558 # GDB does not use automake, but gnulib does. This line lets us
6559 # generate its Makefile.in.
6560 am__api_version="1.9"
6561 # Find a good install program. We prefer a C program (faster),
6562 # so one script is as good as another. But avoid the broken or
6563 # incompatible versions:
6564 # SysV /etc/install, /usr/sbin/install
6565 # SunOS /usr/etc/install
6566 # IRIX /sbin/install
6567 # AIX /bin/install
6568 # AmigaOS /C/install, which installs bootblocks on floppy discs
6569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6572 # OS/2's system install, which has a completely different semantic
6573 # ./install, which can be erroneously created by make from ./install.sh.
6574 # Reject install programs that cannot install multiple files.
6575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6577 if test -z "$INSTALL"; then
6578 if test "${ac_cv_path_install+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 # Account for people who put trailing slashes in PATH elements.
6587 case $as_dir/ in
6588 ./ | .// | /cC/* | \
6589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6591 /usr/ucb/* ) ;;
6592 *)
6593 # OSF1 and SCO ODT 3.0 have their own names for install.
6594 # Don't use installbsd from OSF since it installs stuff as root
6595 # by default.
6596 for ac_prog in ginstall scoinst install; do
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6599 if test $ac_prog = install &&
6600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6601 # AIX install. It has an incompatible calling convention.
6602 :
6603 elif test $ac_prog = install &&
6604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6605 # program-specific install script used by HP pwplus--don't use.
6606 :
6607 else
6608 rm -rf conftest.one conftest.two conftest.dir
6609 echo one > conftest.one
6610 echo two > conftest.two
6611 mkdir conftest.dir
6612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6613 test -s conftest.one && test -s conftest.two &&
6614 test -s conftest.dir/conftest.one &&
6615 test -s conftest.dir/conftest.two
6616 then
6617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6618 break 3
6619 fi
6620 fi
6621 fi
6622 done
6623 done
6624 ;;
6625 esac
6626 done
6627
6628 rm -rf conftest.one conftest.two conftest.dir
6629
6630 fi
6631 if test "${ac_cv_path_install+set}" = set; then
6632 INSTALL=$ac_cv_path_install
6633 else
6634 # As a last resort, use the slow shell script. Don't cache a
6635 # value for INSTALL within a source directory, because that will
6636 # break other packages using the cache if that directory is
6637 # removed, or if the value is a relative name.
6638 INSTALL=$ac_install_sh
6639 fi
6640 fi
6641 echo "$as_me:$LINENO: result: $INSTALL" >&5
6642 echo "${ECHO_T}$INSTALL" >&6
6643
6644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6645 # It thinks the first close brace ends the variable substitution.
6646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6647
6648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6649
6650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6651
6652 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6653 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6654 # Just in case
6655 sleep 1
6656 echo timestamp > conftest.file
6657 # Do `set' in a subshell so we don't clobber the current shell's
6658 # arguments. Must try -L first in case configure is actually a
6659 # symlink; some systems play weird games with the mod time of symlinks
6660 # (eg FreeBSD returns the mod time of the symlink's containing
6661 # directory).
6662 if (
6663 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6664 if test "$*" = "X"; then
6665 # -L didn't work.
6666 set X `ls -t $srcdir/configure conftest.file`
6667 fi
6668 rm -f conftest.file
6669 if test "$*" != "X $srcdir/configure conftest.file" \
6670 && test "$*" != "X conftest.file $srcdir/configure"; then
6671
6672 # If neither matched, then we have a broken ls. This can happen
6673 # if, for instance, CONFIG_SHELL is bash and it inherits a
6674 # broken ls alias from the environment. This has actually
6675 # happened. Such a system could not be considered "sane".
6676 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6677 alias in your environment" >&5
6678 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6679 alias in your environment" >&2;}
6680 { (exit 1); exit 1; }; }
6681 fi
6682
6683 test "$2" = conftest.file
6684 )
6685 then
6686 # Ok.
6687 :
6688 else
6689 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6690 Check your system clock" >&5
6691 echo "$as_me: error: newly created file is older than distributed files!
6692 Check your system clock" >&2;}
6693 { (exit 1); exit 1; }; }
6694 fi
6695 echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6697 test "$program_prefix" != NONE &&
6698 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6699 # Use a double $ so make ignores it.
6700 test "$program_suffix" != NONE &&
6701 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6702 # Double any \ or $. echo might interpret backslashes.
6703 # By default was `s,x,x', remove it if useless.
6704 cat <<\_ACEOF >conftest.sed
6705 s/[\\$]/&&/g;s/;s,x,x,$//
6706 _ACEOF
6707 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6708 rm conftest.sed
6709
6710 # expand $ac_aux_dir to an absolute path
6711 am_aux_dir=`cd $ac_aux_dir && pwd`
6712
6713 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6714 # Use eval to expand $SHELL
6715 if eval "$MISSING --run true"; then
6716 am_missing_run="$MISSING --run "
6717 else
6718 am_missing_run=
6719 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6720 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6721 fi
6722
6723 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6724 # We used to keeping the `.' as first argument, in order to
6725 # allow $(mkdir_p) to be used without argument. As in
6726 # $(mkdir_p) $(somedir)
6727 # where $(somedir) is conditionally defined. However this is wrong
6728 # for two reasons:
6729 # 1. if the package is installed by a user who cannot write `.'
6730 # make install will fail,
6731 # 2. the above comment should most certainly read
6732 # $(mkdir_p) $(DESTDIR)$(somedir)
6733 # so it does not work when $(somedir) is undefined and
6734 # $(DESTDIR) is not.
6735 # To support the latter case, we have to write
6736 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6737 # so the `.' trick is pointless.
6738 mkdir_p='mkdir -p --'
6739 else
6740 # On NextStep and OpenStep, the `mkdir' command does not
6741 # recognize any option. It will interpret all options as
6742 # directories to create, and then abort because `.' already
6743 # exists.
6744 for d in ./-p ./--version;
6745 do
6746 test -d $d && rmdir $d
6747 done
6748 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6749 if test -f "$ac_aux_dir/mkinstalldirs"; then
6750 mkdir_p='$(mkinstalldirs)'
6751 else
6752 mkdir_p='$(install_sh) -d'
6753 fi
6754 fi
6755
6756 for ac_prog in gawk mawk nawk awk
6757 do
6758 # Extract the first word of "$ac_prog", so it can be a program name with args.
6759 set dummy $ac_prog; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_AWK+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 if test -n "$AWK"; then
6766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_AWK="$ac_prog"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781
6782 fi
6783 fi
6784 AWK=$ac_cv_prog_AWK
6785 if test -n "$AWK"; then
6786 echo "$as_me:$LINENO: result: $AWK" >&5
6787 echo "${ECHO_T}$AWK" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6
6791 fi
6792
6793 test -n "$AWK" && break
6794 done
6795
6796 ac_config_commands="$ac_config_commands depfiles"
6797
6798
6799 am_make=${MAKE-make}
6800 cat > confinc << 'END'
6801 am__doit:
6802 @echo done
6803 .PHONY: am__doit
6804 END
6805 # If we don't find an include directive, just comment out the code.
6806 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6807 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6808 am__include="#"
6809 am__quote=
6810 _am_result=none
6811 # First try GNU make style include.
6812 echo "include confinc" > confmf
6813 # We grep out `Entering directory' and `Leaving directory'
6814 # messages which can occur if `w' ends up in MAKEFLAGS.
6815 # In particular we don't look at `^make:' because GNU make might
6816 # be invoked under some other name (usually "gmake"), in which
6817 # case it prints its new name instead of `make'.
6818 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6819 am__include=include
6820 am__quote=
6821 _am_result=GNU
6822 fi
6823 # Now try BSD make style include.
6824 if test "$am__include" = "#"; then
6825 echo '.include "confinc"' > confmf
6826 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6827 am__include=.include
6828 am__quote="\""
6829 _am_result=BSD
6830 fi
6831 fi
6832
6833
6834 echo "$as_me:$LINENO: result: $_am_result" >&5
6835 echo "${ECHO_T}$_am_result" >&6
6836 rm -f confinc confmf
6837
6838 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6839 if test "${enable_dependency_tracking+set}" = set; then
6840 enableval="$enable_dependency_tracking"
6841
6842 fi;
6843 if test "x$enable_dependency_tracking" != xno; then
6844 am_depcomp="$ac_aux_dir/depcomp"
6845 AMDEPBACKSLASH='\'
6846 fi
6847
6848
6849 if test "x$enable_dependency_tracking" != xno; then
6850 AMDEP_TRUE=
6851 AMDEP_FALSE='#'
6852 else
6853 AMDEP_TRUE='#'
6854 AMDEP_FALSE=
6855 fi
6856
6857
6858
6859 # test to see if srcdir already configured
6860 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6861 test -f $srcdir/config.status; then
6862 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6863 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6864 { (exit 1); exit 1; }; }
6865 fi
6866
6867 # test whether we have cygpath
6868 if test -z "$CYGPATH_W"; then
6869 if (cygpath --version) >/dev/null 2>/dev/null; then
6870 CYGPATH_W='cygpath -w'
6871 else
6872 CYGPATH_W=echo
6873 fi
6874 fi
6875
6876
6877 # Define the identity of the package.
6878 PACKAGE=gdb
6879 VERSION=UNUSED-VERSION
6880
6881
6882 # Some tools Automake needs.
6883
6884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6885
6886
6887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6888
6889
6890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6891
6892
6893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6894
6895
6896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6897
6898 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6899
6900 # Installed binaries are usually stripped using `strip' when the user
6901 # run `make install-strip'. However `strip' might not be the right
6902 # tool to use in cross-compilation environments, therefore Automake
6903 # will honor the `STRIP' environment variable to overrule this program.
6904 if test "$cross_compiling" != no; then
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}strip; ac_word=$2
6908 echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6910 if test "${ac_cv_prog_STRIP+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 if test -n "$STRIP"; then
6914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929
6930 fi
6931 fi
6932 STRIP=$ac_cv_prog_STRIP
6933 if test -n "$STRIP"; then
6934 echo "$as_me:$LINENO: result: $STRIP" >&5
6935 echo "${ECHO_T}$STRIP" >&6
6936 else
6937 echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6939 fi
6940
6941 fi
6942 if test -z "$ac_cv_prog_STRIP"; then
6943 ac_ct_STRIP=$STRIP
6944 # Extract the first word of "strip", so it can be a program name with args.
6945 set dummy strip; ac_word=$2
6946 echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951 if test -n "$ac_ct_STRIP"; then
6952 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_ac_ct_STRIP="strip"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967
6968 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6969 fi
6970 fi
6971 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6972 if test -n "$ac_ct_STRIP"; then
6973 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6974 echo "${ECHO_T}$ac_ct_STRIP" >&6
6975 else
6976 echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978 fi
6979
6980 STRIP=$ac_ct_STRIP
6981 else
6982 STRIP="$ac_cv_prog_STRIP"
6983 fi
6984
6985 fi
6986 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6987
6988 # We need awk for the "check" target. The system "awk" is bad on
6989 # some platforms.
6990 # Always define AMTAR for backward compatibility.
6991
6992 AMTAR=${AMTAR-"${am_missing_run}tar"}
6993
6994 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6995
6996
6997
6998
6999 depcc="$CC" am_compiler_list=
7000
7001 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7007 # We make a subdir and do the tests there. Otherwise we can end up
7008 # making bogus files that we don't know about and never remove. For
7009 # instance it was reported that on HP-UX the gcc test will end up
7010 # making a dummy file named `D' -- because `-MD' means `put the output
7011 # in D'.
7012 mkdir conftest.dir
7013 # Copy depcomp to subdir because otherwise we won't find it if we're
7014 # using a relative directory.
7015 cp "$am_depcomp" conftest.dir
7016 cd conftest.dir
7017 # We will build objects and dependencies in a subdirectory because
7018 # it helps to detect inapplicable dependency modes. For instance
7019 # both Tru64's cc and ICC support -MD to output dependencies as a
7020 # side effect of compilation, but ICC will put the dependencies in
7021 # the current directory while Tru64 will put them in the object
7022 # directory.
7023 mkdir sub
7024
7025 am_cv_CC_dependencies_compiler_type=none
7026 if test "$am_compiler_list" = ""; then
7027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7028 fi
7029 for depmode in $am_compiler_list; do
7030 # Setup a source with many dependencies, because some compilers
7031 # like to wrap large dependency lists on column 80 (with \), and
7032 # we should not choose a depcomp mode which is confused by this.
7033 #
7034 # We need to recreate these files for each test, as the compiler may
7035 # overwrite some of them when testing with obscure command lines.
7036 # This happens at least with the AIX C compiler.
7037 : > sub/conftest.c
7038 for i in 1 2 3 4 5 6; do
7039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7041 # Solaris 8's {/usr,}/bin/sh.
7042 touch sub/conftst$i.h
7043 done
7044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7045
7046 case $depmode in
7047 nosideeffect)
7048 # after this tag, mechanisms are not by side-effect, so they'll
7049 # only be used when explicitly requested
7050 if test "x$enable_dependency_tracking" = xyes; then
7051 continue
7052 else
7053 break
7054 fi
7055 ;;
7056 none) break ;;
7057 esac
7058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7059 # mode. It turns out that the SunPro C++ compiler does not properly
7060 # handle `-M -o', and we need to detect this.
7061 if depmode=$depmode \
7062 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7064 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7065 >/dev/null 2>conftest.err &&
7066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7067 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7069 # icc doesn't choke on unknown options, it will just issue warnings
7070 # or remarks (even with -Werror). So we grep stderr for any message
7071 # that says an option was ignored or not supported.
7072 # When given -MP, icc 7.0 and 7.1 complain thusly:
7073 # icc: Command line warning: ignoring option '-M'; no argument required
7074 # The diagnosis changed in icc 8.0:
7075 # icc: Command line remark: option '-MP' not supported
7076 if (grep 'ignoring option' conftest.err ||
7077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7078 am_cv_CC_dependencies_compiler_type=$depmode
7079 break
7080 fi
7081 fi
7082 done
7083
7084 cd ..
7085 rm -rf conftest.dir
7086 else
7087 am_cv_CC_dependencies_compiler_type=none
7088 fi
7089
7090 fi
7091 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7094
7095
7096
7097 if
7098 test "x$enable_dependency_tracking" != xno \
7099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7100 am__fastdepCC_TRUE=
7101 am__fastdepCC_FALSE='#'
7102 else
7103 am__fastdepCC_TRUE='#'
7104 am__fastdepCC_FALSE=
7105 fi
7106
7107
7108
7109
7110
7111
7112 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7113 if test "${with_separate_debug_dir+set}" = set; then
7114 withval="$with_separate_debug_dir"
7115
7116 DEBUGDIR=$withval
7117 else
7118 DEBUGDIR=${libdir}/debug
7119 fi;
7120
7121 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7123 ac_define_dir=`eval echo $DEBUGDIR`
7124 ac_define_dir=`eval echo $ac_define_dir`
7125
7126 cat >>confdefs.h <<_ACEOF
7127 #define DEBUGDIR "$ac_define_dir"
7128 _ACEOF
7129
7130
7131
7132 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7133 if test "x$prefix" = xNONE; then
7134 test_prefix=/usr/local
7135 else
7136 test_prefix=$prefix
7137 fi
7138 else
7139 test_prefix=$exec_prefix
7140 fi
7141 value=0
7142 case ${ac_define_dir} in
7143 "${test_prefix}"|"${test_prefix}/"*|\
7144 '${exec_prefix}'|'${exec_prefix}/'*)
7145 value=1
7146 ;;
7147 esac
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define DEBUGDIR_RELOCATABLE $value
7151 _ACEOF
7152
7153
7154
7155 # GDB's datadir relocation
7156
7157
7158
7159 # Check whether --with-gdb-datadir or --without-gdb-datadir was given.
7160 if test "${with_gdb_datadir+set}" = set; then
7161 withval="$with_gdb_datadir"
7162
7163 GDB_DATADIR=$withval
7164 else
7165 GDB_DATADIR=${datadir}/gdb
7166 fi;
7167
7168 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7170 ac_define_dir=`eval echo $GDB_DATADIR`
7171 ac_define_dir=`eval echo $ac_define_dir`
7172
7173 cat >>confdefs.h <<_ACEOF
7174 #define GDB_DATADIR "$ac_define_dir"
7175 _ACEOF
7176
7177
7178
7179 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7180 if test "x$prefix" = xNONE; then
7181 test_prefix=/usr/local
7182 else
7183 test_prefix=$prefix
7184 fi
7185 else
7186 test_prefix=$exec_prefix
7187 fi
7188 value=0
7189 case ${ac_define_dir} in
7190 "${test_prefix}"|"${test_prefix}/"*|\
7191 '${exec_prefix}'|'${exec_prefix}/'*)
7192 value=1
7193 ;;
7194 esac
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define GDB_DATADIR_RELOCATABLE $value
7198 _ACEOF
7199
7200
7201
7202
7203 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7204 if test "${with_relocated_sources+set}" = set; then
7205 withval="$with_relocated_sources"
7206 reloc_srcdir="${withval}"
7207
7208 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7209 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7210 ac_define_dir=`eval echo $reloc_srcdir`
7211 ac_define_dir=`eval echo $ac_define_dir`
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define RELOC_SRCDIR "$ac_define_dir"
7215 _ACEOF
7216
7217
7218
7219 fi;
7220
7221
7222
7223 subdirs="$subdirs doc testsuite"
7224
7225
7226 # Check whether to support alternative target configurations
7227 # Check whether --enable-targets or --disable-targets was given.
7228 if test "${enable_targets+set}" = set; then
7229 enableval="$enable_targets"
7230 case "${enableval}" in
7231 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7232 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7233 { (exit 1); exit 1; }; }
7234 ;;
7235 no) enable_targets= ;;
7236 *) enable_targets=$enableval ;;
7237 esac
7238 fi;
7239
7240 # Check whether to enable 64-bit support on 32-bit hosts
7241 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7242 if test "${enable_64_bit_bfd+set}" = set; then
7243 enableval="$enable_64_bit_bfd"
7244 case "${enableval}" in
7245 yes) want64=true ;;
7246 no) want64=false ;;
7247 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7248 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7249 { (exit 1); exit 1; }; } ;;
7250 esac
7251 else
7252 want64=false
7253 fi;
7254 # Provide defaults for some variables set by the per-host and per-target
7255 # configuration.
7256 gdb_host_obs=posix-hdep.o
7257
7258 if test "${target}" = "${host}"; then
7259 gdb_native=yes
7260 else
7261 gdb_native=no
7262 fi
7263
7264 . $srcdir/configure.host
7265
7266 # Accumulate some settings from configure.tgt over all enabled targets
7267
7268 TARGET_OBS=
7269 all_targets=
7270
7271 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7272 do
7273 if test "$targ_alias" = "all"; then
7274 all_targets=true
7275 else
7276 # Canonicalize the secondary target names.
7277 result=`$ac_config_sub $targ_alias 2>/dev/null`
7278 if test -n "$result"; then
7279 targ=$result
7280 else
7281 targ=$targ_alias
7282 fi
7283
7284 . ${srcdir}/configure.tgt
7285
7286 # Target-specific object files
7287 for i in ${gdb_target_obs}; do
7288 case " $TARGET_OBS " in
7289 *" ${i} "*) ;;
7290 *)
7291 TARGET_OBS="$TARGET_OBS ${i}"
7292 ;;
7293 esac
7294 done
7295
7296 # Check whether this target needs 64-bit CORE_ADDR
7297 if test x${want64} = xfalse; then
7298 . ${srcdir}/../bfd/config.bfd
7299 fi
7300 fi
7301 done
7302
7303 if test x${all_targets} = xtrue; then
7304
7305 # We want all 64-bit targets if we either:
7306 # - run on a 64-bit host or
7307 # - already require 64-bit support for some other target or
7308 # - the --enable-64-bit-bfd option was supplied
7309 # Otherwise we only support all 32-bit targets.
7310 #
7311 # NOTE: This test must be in sync with the corresponding
7312 # tests in BFD!
7313
7314 if test x${want64} = xfalse; then
7315 echo "$as_me:$LINENO: checking for long" >&5
7316 echo $ECHO_N "checking for long... $ECHO_C" >&6
7317 if test "${ac_cv_type_long+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 $ac_includes_default
7327 int
7328 main ()
7329 {
7330 if ((long *) 0)
7331 return 0;
7332 if (sizeof (long))
7333 return 0;
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_type_long=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_cv_type_long=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_long" >&6
7371
7372 echo "$as_me:$LINENO: checking size of long" >&5
7373 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7374 if test "${ac_cv_sizeof_long+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 if test "$ac_cv_type_long" = yes; then
7378 # The cast to unsigned long works around a bug in the HP C Compiler
7379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7381 # This bug is HP SR number 8606223364.
7382 if test "$cross_compiling" = yes; then
7383 # Depending upon the size, compute the lo and hi bounds.
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 $ac_includes_default
7391 int
7392 main ()
7393 {
7394 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7395 test_array [0] = 0
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag"
7411 || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest.$ac_objext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 (eval $ac_try) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 ac_lo=0 ac_mid=0
7424 while :; do
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h. */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7431 $ac_includes_default
7432 int
7433 main ()
7434 {
7435 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7436 test_array [0] = 0
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_hi=$ac_mid; break
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_lo=`expr $ac_mid + 1`
7470 if test $ac_lo -le $ac_mid; then
7471 ac_lo= ac_hi=
7472 break
7473 fi
7474 ac_mid=`expr 2 '*' $ac_mid + 1`
7475 fi
7476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7477 done
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 $ac_includes_default
7489 int
7490 main ()
7491 {
7492 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7493 test_array [0] = 0
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 ac_hi=-1 ac_mid=-1
7522 while :; do
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 int
7531 main ()
7532 {
7533 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7534 test_array [0] = 0
7535
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_lo=$ac_mid; break
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_hi=`expr '(' $ac_mid ')' - 1`
7568 if test $ac_mid -le $ac_hi; then
7569 ac_lo= ac_hi=
7570 break
7571 fi
7572 ac_mid=`expr 2 '*' $ac_mid`
7573 fi
7574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575 done
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_lo= ac_hi=
7581 fi
7582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 # Binary search between lo and hi bounds.
7586 while test "x$ac_lo" != "x$ac_hi"; do
7587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7595 int
7596 main ()
7597 {
7598 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7599 test_array [0] = 0
7600
7601 ;
7602 return 0;
7603 }
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -z "$ac_c_werror_flag"
7615 || test ! -s conftest.err'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_hi=$ac_mid
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7631
7632 ac_lo=`expr '(' $ac_mid ')' + 1`
7633 fi
7634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7635 done
7636 case $ac_lo in
7637 ?*) ac_cv_sizeof_long=$ac_lo;;
7638 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7639 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7641 See \`config.log' for more details." >&5
7642 echo "$as_me: error: cannot compute sizeof (long), 77
7643 See \`config.log' for more details." >&2;}
7644 { (exit 1); exit 1; }; }; } ;;
7645 esac
7646 else
7647 if test "$cross_compiling" = yes; then
7648 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7649 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7651 See \`config.log' for more details." >&5
7652 echo "$as_me: error: cannot run test program while cross compiling
7653 See \`config.log' for more details." >&2;}
7654 { (exit 1); exit 1; }; }; }
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 $ac_includes_default
7663 long longval () { return (long) (sizeof (long)); }
7664 unsigned long ulongval () { return (long) (sizeof (long)); }
7665 #include <stdio.h>
7666 #include <stdlib.h>
7667 int
7668 main ()
7669 {
7670
7671 FILE *f = fopen ("conftest.val", "w");
7672 if (! f)
7673 exit (1);
7674 if (((long) (sizeof (long))) < 0)
7675 {
7676 long i = longval ();
7677 if (i != ((long) (sizeof (long))))
7678 exit (1);
7679 fprintf (f, "%ld\n", i);
7680 }
7681 else
7682 {
7683 unsigned long i = ulongval ();
7684 if (i != ((long) (sizeof (long))))
7685 exit (1);
7686 fprintf (f, "%lu\n", i);
7687 }
7688 exit (ferror (f) || fclose (f) != 0);
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_sizeof_long=`cat conftest.val`
7706 else
7707 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ( exit $ac_status )
7712 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7713 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7715 See \`config.log' for more details." >&5
7716 echo "$as_me: error: cannot compute sizeof (long), 77
7717 See \`config.log' for more details." >&2;}
7718 { (exit 1); exit 1; }; }; }
7719 fi
7720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 fi
7723 rm -f conftest.val
7724 else
7725 ac_cv_sizeof_long=0
7726 fi
7727 fi
7728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7730 cat >>confdefs.h <<_ACEOF
7731 #define SIZEOF_LONG $ac_cv_sizeof_long
7732 _ACEOF
7733
7734
7735 if test "x${ac_cv_sizeof_long}" = "x8"; then
7736 want64=true
7737 fi
7738 fi
7739 if test x${want64} = xtrue; then
7740 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7741 else
7742 TARGET_OBS='$(ALL_TARGET_OBS)'
7743 fi
7744 fi
7745
7746
7747
7748 # For other settings, only the main target counts.
7749 gdb_sim=
7750 gdb_osabi=
7751 build_gdbserver=
7752 targ=$target; . ${srcdir}/configure.tgt
7753
7754 # Fetch the default architecture and default target vector from BFD.
7755 targ=$target; . $srcdir/../bfd/config.bfd
7756
7757 # We only want the first architecture, so strip off the others if
7758 # there is more than one.
7759 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7760
7761 if test "x$targ_archs" != x; then
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define DEFAULT_BFD_ARCH $targ_archs
7765 _ACEOF
7766
7767 fi
7768 if test "x$targ_defvec" != x; then
7769
7770 cat >>confdefs.h <<_ACEOF
7771 #define DEFAULT_BFD_VEC $targ_defvec
7772 _ACEOF
7773
7774 fi
7775
7776 # The CLI cannot be disabled yet, but may be in the future.
7777
7778 # Enable CLI.
7779 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7780 if test "${enable_gdbcli+set}" = set; then
7781 enableval="$enable_gdbcli"
7782 case $enableval in
7783 yes)
7784 ;;
7785 no)
7786 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7787 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7788 { (exit 1); exit 1; }; } ;;
7789 *)
7790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7791 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7792 { (exit 1); exit 1; }; } ;;
7793 esac
7794 else
7795 enable_gdbcli=yes
7796 fi;
7797 if test x"$enable_gdbcli" = xyes; then
7798 if test -d $srcdir/cli; then
7799 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7800 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7801 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7802 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7803 fi
7804 fi
7805
7806 # Enable MI.
7807 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7808 if test "${enable_gdbmi+set}" = set; then
7809 enableval="$enable_gdbmi"
7810 case $enableval in
7811 yes | no)
7812 ;;
7813 *)
7814 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7815 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7816 { (exit 1); exit 1; }; } ;;
7817 esac
7818 else
7819 enable_gdbmi=yes
7820 fi;
7821 if test x"$enable_gdbmi" = xyes; then
7822 if test -d $srcdir/mi; then
7823 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7824 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7825 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7826 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7827 fi
7828 fi
7829
7830 # Enable TUI.
7831 # Check whether --enable-tui or --disable-tui was given.
7832 if test "${enable_tui+set}" = set; then
7833 enableval="$enable_tui"
7834 case $enableval in
7835 yes | no | auto)
7836 ;;
7837 *)
7838 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7839 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7840 { (exit 1); exit 1; }; } ;;
7841 esac
7842 else
7843 enable_tui=auto
7844 fi;
7845
7846 # Enable gdbtk.
7847 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7848 if test "${enable_gdbtk+set}" = set; then
7849 enableval="$enable_gdbtk"
7850 case $enableval in
7851 yes | no)
7852 ;;
7853 *)
7854 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7855 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7856 { (exit 1); exit 1; }; } ;;
7857 esac
7858 else
7859 if test -d $srcdir/gdbtk; then
7860 enable_gdbtk=yes
7861 else
7862 enable_gdbtk=no
7863 fi
7864 fi;
7865 # We unconditionally disable gdbtk tests on selected platforms.
7866 case $host_os in
7867 go32* | windows*)
7868 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7869 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7870 enable_gdbtk=no ;;
7871 esac
7872
7873 # Libunwind support.
7874
7875 # Check whether --with-libunwind or --without-libunwind was given.
7876 if test "${with_libunwind+set}" = set; then
7877 withval="$with_libunwind"
7878 case "${withval}" in
7879 yes) enable_libunwind=yes ;;
7880 no) enable_libunwind=no ;;
7881 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7882 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7883 { (exit 1); exit 1; }; } ;;
7884 esac
7885 else
7886
7887
7888
7889 for ac_header in libunwind.h libunwind-ia64.h
7890 do
7891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7893 echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 fi
7898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7900 else
7901 # Is the header compilable?
7902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7911 #include <$ac_header>
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_header_compiler=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_header_compiler=no
7941 fi
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7944 echo "${ECHO_T}$ac_header_compiler" >&6
7945
7946 # Is the header present?
7947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <$ac_header>
7956 _ACEOF
7957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } >/dev/null; then
7965 if test -s conftest.err; then
7966 ac_cpp_err=$ac_c_preproc_warn_flag
7967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7968 else
7969 ac_cpp_err=
7970 fi
7971 else
7972 ac_cpp_err=yes
7973 fi
7974 if test -z "$ac_cpp_err"; then
7975 ac_header_preproc=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ac_header_preproc=no
7981 fi
7982 rm -f conftest.err conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7984 echo "${ECHO_T}$ac_header_preproc" >&6
7985
7986 # So? What about this header?
7987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7988 yes:no: )
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7993 ac_header_preproc=yes
7994 ;;
7995 no:yes:* )
7996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8008 (
8009 cat <<\_ASBOX
8010 ## ------------------------------------------ ##
8011 ## Report this to the AC_PACKAGE_NAME lists. ##
8012 ## ------------------------------------------ ##
8013 _ASBOX
8014 ) |
8015 sed "s/^/$as_me: WARNING: /" >&2
8016 ;;
8017 esac
8018 echo "$as_me:$LINENO: checking for $ac_header" >&5
8019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 eval "$as_ac_Header=\$ac_header_preproc"
8024 fi
8025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8027
8028 fi
8029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8030 cat >>confdefs.h <<_ACEOF
8031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8032 _ACEOF
8033
8034 fi
8035
8036 done
8037
8038 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8039 enable_libunwind=yes;
8040 fi
8041
8042 fi;
8043
8044 if test x"$enable_libunwind" = xyes; then
8045
8046
8047 for ac_header in libunwind.h libunwind-ia64.h
8048 do
8049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8051 echo "$as_me:$LINENO: checking for $ac_header" >&5
8052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 fi
8056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8058 else
8059 # Is the header compilable?
8060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8069 #include <$ac_header>
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073 (eval $ac_compile) 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag"
8081 || test ! -s conftest.err'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_header_compiler=yes
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_header_compiler=no
8099 fi
8100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8102 echo "${ECHO_T}$ac_header_compiler" >&6
8103
8104 # Is the header present?
8105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 #include <$ac_header>
8114 _ACEOF
8115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } >/dev/null; then
8123 if test -s conftest.err; then
8124 ac_cpp_err=$ac_c_preproc_warn_flag
8125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8126 else
8127 ac_cpp_err=
8128 fi
8129 else
8130 ac_cpp_err=yes
8131 fi
8132 if test -z "$ac_cpp_err"; then
8133 ac_header_preproc=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 ac_header_preproc=no
8139 fi
8140 rm -f conftest.err conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8142 echo "${ECHO_T}$ac_header_preproc" >&6
8143
8144 # So? What about this header?
8145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8146 yes:no: )
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8151 ac_header_preproc=yes
8152 ;;
8153 no:yes:* )
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8166 (
8167 cat <<\_ASBOX
8168 ## ------------------------------------------ ##
8169 ## Report this to the AC_PACKAGE_NAME lists. ##
8170 ## ------------------------------------------ ##
8171 _ASBOX
8172 ) |
8173 sed "s/^/$as_me: WARNING: /" >&2
8174 ;;
8175 esac
8176 echo "$as_me:$LINENO: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 eval "$as_ac_Header=\$ac_header_preproc"
8182 fi
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8185
8186 fi
8187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8188 cat >>confdefs.h <<_ACEOF
8189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LIBUNWIND 1
8199 _ACEOF
8200
8201 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8202 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8203 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8204 fi
8205
8206 opt_curses=no
8207
8208 # Check whether --with-curses or --without-curses was given.
8209 if test "${with_curses+set}" = set; then
8210 withval="$with_curses"
8211 opt_curses=$withval
8212 fi;
8213
8214 prefer_curses=no
8215 if test "$opt_curses" = "yes"; then
8216 prefer_curses=yes
8217 fi
8218
8219 # Profiling support.
8220 # Check whether --enable-profiling or --disable-profiling was given.
8221 if test "${enable_profiling+set}" = set; then
8222 enableval="$enable_profiling"
8223 case $enableval in
8224 yes | no)
8225 ;;
8226 *)
8227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8228 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8229 { (exit 1); exit 1; }; } ;;
8230 esac
8231 else
8232 enable_profiling=no
8233 fi;
8234
8235
8236
8237 for ac_func in monstartup _mcleanup
8238 do
8239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8240 echo "$as_me:$LINENO: checking for $ac_func" >&5
8241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8242 if eval "test \"\${$as_ac_var+set}\" = set"; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8253 #define $ac_func innocuous_$ac_func
8254
8255 /* System header to define __stub macros and hopefully few prototypes,
8256 which can conflict with char $ac_func (); below.
8257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8258 <limits.h> exists even on freestanding compilers. */
8259
8260 #ifdef __STDC__
8261 # include <limits.h>
8262 #else
8263 # include <assert.h>
8264 #endif
8265
8266 #undef $ac_func
8267
8268 /* Override any gcc2 internal prototype to avoid an error. */
8269 #ifdef __cplusplus
8270 extern "C"
8271 {
8272 #endif
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8275 char $ac_func ();
8276 /* The GNU C library defines this for functions which it implements
8277 to always fail with ENOSYS. Some functions are actually named
8278 something starting with __ and the normal name is an alias. */
8279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8280 choke me
8281 #else
8282 char (*f) () = $ac_func;
8283 #endif
8284 #ifdef __cplusplus
8285 }
8286 #endif
8287
8288 int
8289 main ()
8290 {
8291 return f != $ac_func;
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298 (eval $ac_link) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 eval "$as_ac_var=yes"
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 eval "$as_ac_var=no"
8324 fi
8325 rm -f conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 fi
8328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8330 if test `eval echo '${'$as_ac_var'}'` = yes; then
8331 cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 fi
8336 done
8337
8338 echo "$as_me:$LINENO: checking for _etext" >&5
8339 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8340 if test "${ac_cv_var__etext+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 #include <stdlib.h>
8350 extern char _etext;
8351
8352 int
8353 main ()
8354 {
8355 free (&_etext);
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_var__etext=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_var__etext=no
8388 fi
8389 rm -f conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8393 echo "${ECHO_T}$ac_cv_var__etext" >&6
8394 if test $ac_cv_var__etext = yes; then
8395
8396 cat >>confdefs.h <<\_ACEOF
8397 #define HAVE__ETEXT 1
8398 _ACEOF
8399
8400 fi
8401 echo "$as_me:$LINENO: checking for etext" >&5
8402 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8403 if test "${ac_cv_var_etext+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #include <stdlib.h>
8413 extern char etext;
8414
8415 int
8416 main ()
8417 {
8418 free (&etext);
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_var_etext=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_cv_var_etext=no
8451 fi
8452 rm -f conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8456 echo "${ECHO_T}$ac_cv_var_etext" >&6
8457 if test $ac_cv_var_etext = yes; then
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_ETEXT 1
8461 _ACEOF
8462
8463 fi
8464 if test "$enable_profiling" = yes ; then
8465 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8466 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8467 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8468 { (exit 1); exit 1; }; }
8469 fi
8470 PROFILE_CFLAGS=-pg
8471 OLD_CFLAGS="$CFLAGS"
8472 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8473
8474 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8475 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8476 if test "${ac_cv_cc_supports_pg+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485
8486 int
8487 main ()
8488 {
8489 int x;
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_cc_supports_pg=yes
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_cc_supports_pg=no
8522 fi
8523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8526 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8527
8528 if test $ac_cv_cc_supports_pg = no; then
8529 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8530 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8531 { (exit 1); exit 1; }; }
8532 fi
8533
8534 CFLAGS="$OLD_CFLAGS"
8535 fi
8536
8537
8538
8539 # Check whether --with-pkgversion or --without-pkgversion was given.
8540 if test "${with_pkgversion+set}" = set; then
8541 withval="$with_pkgversion"
8542 case "$withval" in
8543 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8544 echo "$as_me: error: package version not specified" >&2;}
8545 { (exit 1); exit 1; }; } ;;
8546 no) PKGVERSION= ;;
8547 *) PKGVERSION="($withval) " ;;
8548 esac
8549 else
8550 PKGVERSION="(GDB) "
8551
8552 fi;
8553
8554
8555
8556
8557 # Check whether --with-bugurl or --without-bugurl was given.
8558 if test "${with_bugurl+set}" = set; then
8559 withval="$with_bugurl"
8560 case "$withval" in
8561 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8562 echo "$as_me: error: bug URL not specified" >&2;}
8563 { (exit 1); exit 1; }; } ;;
8564 no) BUGURL=
8565 ;;
8566 *) BUGURL="$withval"
8567 ;;
8568 esac
8569 else
8570 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8571
8572 fi;
8573 case ${BUGURL} in
8574 "")
8575 REPORT_BUGS_TO=
8576 REPORT_BUGS_TEXI=
8577 ;;
8578 *)
8579 REPORT_BUGS_TO="<$BUGURL>"
8580 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8581 ;;
8582 esac;
8583
8584
8585
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define PKGVERSION "$PKGVERSION"
8589 _ACEOF
8590
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8594 _ACEOF
8595
8596
8597 # --------------------- #
8598 # Checks for programs. #
8599 # --------------------- #
8600
8601 for ac_prog in gawk mawk nawk awk
8602 do
8603 # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 echo "$as_me:$LINENO: checking for $ac_word" >&5
8606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8607 if test "${ac_cv_prog_AWK+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 if test -n "$AWK"; then
8611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_AWK="$ac_prog"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624 done
8625 done
8626
8627 fi
8628 fi
8629 AWK=$ac_cv_prog_AWK
8630 if test -n "$AWK"; then
8631 echo "$as_me:$LINENO: result: $AWK" >&5
8632 echo "${ECHO_T}$AWK" >&6
8633 else
8634 echo "$as_me:$LINENO: result: no" >&5
8635 echo "${ECHO_T}no" >&6
8636 fi
8637
8638 test -n "$AWK" && break
8639 done
8640
8641 # Find a good install program. We prefer a C program (faster),
8642 # so one script is as good as another. But avoid the broken or
8643 # incompatible versions:
8644 # SysV /etc/install, /usr/sbin/install
8645 # SunOS /usr/etc/install
8646 # IRIX /sbin/install
8647 # AIX /bin/install
8648 # AmigaOS /C/install, which installs bootblocks on floppy discs
8649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8652 # OS/2's system install, which has a completely different semantic
8653 # ./install, which can be erroneously created by make from ./install.sh.
8654 # Reject install programs that cannot install multiple files.
8655 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8657 if test -z "$INSTALL"; then
8658 if test "${ac_cv_path_install+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 # Account for people who put trailing slashes in PATH elements.
8667 case $as_dir/ in
8668 ./ | .// | /cC/* | \
8669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8671 /usr/ucb/* ) ;;
8672 *)
8673 # OSF1 and SCO ODT 3.0 have their own names for install.
8674 # Don't use installbsd from OSF since it installs stuff as root
8675 # by default.
8676 for ac_prog in ginstall scoinst install; do
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8679 if test $ac_prog = install &&
8680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8681 # AIX install. It has an incompatible calling convention.
8682 :
8683 elif test $ac_prog = install &&
8684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8685 # program-specific install script used by HP pwplus--don't use.
8686 :
8687 else
8688 rm -rf conftest.one conftest.two conftest.dir
8689 echo one > conftest.one
8690 echo two > conftest.two
8691 mkdir conftest.dir
8692 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8693 test -s conftest.one && test -s conftest.two &&
8694 test -s conftest.dir/conftest.one &&
8695 test -s conftest.dir/conftest.two
8696 then
8697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8698 break 3
8699 fi
8700 fi
8701 fi
8702 done
8703 done
8704 ;;
8705 esac
8706 done
8707
8708 rm -rf conftest.one conftest.two conftest.dir
8709
8710 fi
8711 if test "${ac_cv_path_install+set}" = set; then
8712 INSTALL=$ac_cv_path_install
8713 else
8714 # As a last resort, use the slow shell script. Don't cache a
8715 # value for INSTALL within a source directory, because that will
8716 # break other packages using the cache if that directory is
8717 # removed, or if the value is a relative name.
8718 INSTALL=$ac_install_sh
8719 fi
8720 fi
8721 echo "$as_me:$LINENO: result: $INSTALL" >&5
8722 echo "${ECHO_T}$INSTALL" >&6
8723
8724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8725 # It thinks the first close brace ends the variable substitution.
8726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8727
8728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8729
8730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8731
8732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8734 LN_S=$as_ln_s
8735 if test "$LN_S" = "ln -s"; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737 echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8740 echo "${ECHO_T}no, using $LN_S" >&6
8741 fi
8742
8743 if test -n "$ac_tool_prefix"; then
8744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8746 echo "$as_me:$LINENO: checking for $ac_word" >&5
8747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8748 if test "${ac_cv_prog_RANLIB+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 if test -n "$RANLIB"; then
8752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765 done
8766 done
8767
8768 fi
8769 fi
8770 RANLIB=$ac_cv_prog_RANLIB
8771 if test -n "$RANLIB"; then
8772 echo "$as_me:$LINENO: result: $RANLIB" >&5
8773 echo "${ECHO_T}$RANLIB" >&6
8774 else
8775 echo "$as_me:$LINENO: result: no" >&5
8776 echo "${ECHO_T}no" >&6
8777 fi
8778
8779 fi
8780 if test -z "$ac_cv_prog_RANLIB"; then
8781 ac_ct_RANLIB=$RANLIB
8782 # Extract the first word of "ranlib", so it can be a program name with args.
8783 set dummy ranlib; ac_word=$2
8784 echo "$as_me:$LINENO: checking for $ac_word" >&5
8785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 if test -n "$ac_ct_RANLIB"; then
8790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_ac_ct_RANLIB="ranlib"
8800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8805
8806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8807 fi
8808 fi
8809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8810 if test -n "$ac_ct_RANLIB"; then
8811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816 fi
8817
8818 RANLIB=$ac_ct_RANLIB
8819 else
8820 RANLIB="$ac_cv_prog_RANLIB"
8821 fi
8822
8823 for ac_prog in 'bison -y' byacc
8824 do
8825 # Extract the first word of "$ac_prog", so it can be a program name with args.
8826 set dummy $ac_prog; ac_word=$2
8827 echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8829 if test "${ac_cv_prog_YACC+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 if test -n "$YACC"; then
8833 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842 ac_cv_prog_YACC="$ac_prog"
8843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846 done
8847 done
8848
8849 fi
8850 fi
8851 YACC=$ac_cv_prog_YACC
8852 if test -n "$YACC"; then
8853 echo "$as_me:$LINENO: result: $YACC" >&5
8854 echo "${ECHO_T}$YACC" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8858 fi
8859
8860 test -n "$YACC" && break
8861 done
8862 test -n "$YACC" || YACC="yacc"
8863
8864
8865 if test -n "$ac_tool_prefix"; then
8866 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}ar; ac_word=$2
8868 echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8870 if test "${ac_cv_prog_AR+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 if test -n "$AR"; then
8874 ac_cv_prog_AR="$AR" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_prog_AR="${ac_tool_prefix}ar"
8884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887 done
8888 done
8889
8890 fi
8891 fi
8892 AR=$ac_cv_prog_AR
8893 if test -n "$AR"; then
8894 echo "$as_me:$LINENO: result: $AR" >&5
8895 echo "${ECHO_T}$AR" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898 echo "${ECHO_T}no" >&6
8899 fi
8900
8901 fi
8902 if test -z "$ac_cv_prog_AR"; then
8903 ac_ct_AR=$AR
8904 # Extract the first word of "ar", so it can be a program name with args.
8905 set dummy ar; ac_word=$2
8906 echo "$as_me:$LINENO: checking for $ac_word" >&5
8907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8908 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 if test -n "$ac_ct_AR"; then
8912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8913 else
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921 ac_cv_prog_ac_ct_AR="ar"
8922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 break 2
8924 fi
8925 done
8926 done
8927
8928 fi
8929 fi
8930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8931 if test -n "$ac_ct_AR"; then
8932 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8933 echo "${ECHO_T}$ac_ct_AR" >&6
8934 else
8935 echo "$as_me:$LINENO: result: no" >&5
8936 echo "${ECHO_T}no" >&6
8937 fi
8938
8939 AR=$ac_ct_AR
8940 else
8941 AR="$ac_cv_prog_AR"
8942 fi
8943
8944 if test -n "$ac_tool_prefix"; then
8945 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8946 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8947 echo "$as_me:$LINENO: checking for $ac_word" >&5
8948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8949 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952 if test -n "$DLLTOOL"; then
8953 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966 done
8967 done
8968
8969 fi
8970 fi
8971 DLLTOOL=$ac_cv_prog_DLLTOOL
8972 if test -n "$DLLTOOL"; then
8973 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8974 echo "${ECHO_T}$DLLTOOL" >&6
8975 else
8976 echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6
8978 fi
8979
8980 fi
8981 if test -z "$ac_cv_prog_DLLTOOL"; then
8982 ac_ct_DLLTOOL=$DLLTOOL
8983 # Extract the first word of "dlltool", so it can be a program name with args.
8984 set dummy dlltool; ac_word=$2
8985 echo "$as_me:$LINENO: checking for $ac_word" >&5
8986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990 if test -n "$ac_ct_DLLTOOL"; then
8991 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9003 fi
9004 done
9005 done
9006
9007 fi
9008 fi
9009 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9010 if test -n "$ac_ct_DLLTOOL"; then
9011 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9012 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015 echo "${ECHO_T}no" >&6
9016 fi
9017
9018 DLLTOOL=$ac_ct_DLLTOOL
9019 else
9020 DLLTOOL="$ac_cv_prog_DLLTOOL"
9021 fi
9022
9023 if test -n "$ac_tool_prefix"; then
9024 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9025 set dummy ${ac_tool_prefix}windres; ac_word=$2
9026 echo "$as_me:$LINENO: checking for $ac_word" >&5
9027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9028 if test "${ac_cv_prog_WINDRES+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 if test -n "$WINDRES"; then
9032 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9033 else
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045 done
9046 done
9047
9048 fi
9049 fi
9050 WINDRES=$ac_cv_prog_WINDRES
9051 if test -n "$WINDRES"; then
9052 echo "$as_me:$LINENO: result: $WINDRES" >&5
9053 echo "${ECHO_T}$WINDRES" >&6
9054 else
9055 echo "$as_me:$LINENO: result: no" >&5
9056 echo "${ECHO_T}no" >&6
9057 fi
9058
9059 fi
9060 if test -z "$ac_cv_prog_WINDRES"; then
9061 ac_ct_WINDRES=$WINDRES
9062 # Extract the first word of "windres", so it can be a program name with args.
9063 set dummy windres; ac_word=$2
9064 echo "$as_me:$LINENO: checking for $ac_word" >&5
9065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9066 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 if test -n "$ac_ct_WINDRES"; then
9070 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_prog_ac_ct_WINDRES="windres"
9080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083 done
9084 done
9085
9086 fi
9087 fi
9088 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9089 if test -n "$ac_ct_WINDRES"; then
9090 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9091 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095 fi
9096
9097 WINDRES=$ac_ct_WINDRES
9098 else
9099 WINDRES="$ac_cv_prog_WINDRES"
9100 fi
9101
9102
9103 # Needed for GNU/Hurd.
9104 if test -n "$ac_tool_prefix"; then
9105 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9106 set dummy ${ac_tool_prefix}mig; ac_word=$2
9107 echo "$as_me:$LINENO: checking for $ac_word" >&5
9108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9109 if test "${ac_cv_prog_MIG+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 if test -n "$MIG"; then
9113 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9117 do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126 done
9127 done
9128
9129 fi
9130 fi
9131 MIG=$ac_cv_prog_MIG
9132 if test -n "$MIG"; then
9133 echo "$as_me:$LINENO: result: $MIG" >&5
9134 echo "${ECHO_T}$MIG" >&6
9135 else
9136 echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138 fi
9139
9140 fi
9141 if test -z "$ac_cv_prog_MIG"; then
9142 ac_ct_MIG=$MIG
9143 # Extract the first word of "mig", so it can be a program name with args.
9144 set dummy mig; ac_word=$2
9145 echo "$as_me:$LINENO: checking for $ac_word" >&5
9146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9147 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 if test -n "$ac_ct_MIG"; then
9151 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160 ac_cv_prog_ac_ct_MIG="mig"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164 done
9165 done
9166
9167 fi
9168 fi
9169 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9170 if test -n "$ac_ct_MIG"; then
9171 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9172 echo "${ECHO_T}$ac_ct_MIG" >&6
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178 MIG=$ac_ct_MIG
9179 else
9180 MIG="$ac_cv_prog_MIG"
9181 fi
9182
9183
9184 # ---------------------- #
9185 # Checks for libraries. #
9186 # ---------------------- #
9187
9188 # We might need to link with -lm; most simulators need it.
9189
9190 echo "$as_me:$LINENO: checking for main in -lm" >&5
9191 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9192 if test "${ac_cv_lib_m_main+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 ac_check_lib_save_LIBS=$LIBS
9196 LIBS="-lm $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203
9204
9205 int
9206 main ()
9207 {
9208 main ();
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215 (eval $ac_link) 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -z "$ac_c_werror_flag"
9223 || test ! -s conftest.err'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest$ac_exeext'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 (eval $ac_try) 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235 ac_cv_lib_m_main=yes
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9239
9240 ac_cv_lib_m_main=no
9241 fi
9242 rm -f conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9247 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9248 if test $ac_cv_lib_m_main = yes; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_LIBM 1
9251 _ACEOF
9252
9253 LIBS="-lm $LIBS"
9254
9255 fi
9256
9257
9258 # We need to link with -lw to get `wctype' on Solaris before Solaris
9259 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9260 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9261 # is known to have this problem). Therefore we avoid libw if we can.
9262 echo "$as_me:$LINENO: checking for wctype" >&5
9263 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9264 if test "${ac_cv_func_wctype+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define wctype innocuous_wctype
9276
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char wctype (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9281
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287
9288 #undef wctype
9289
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 {
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char wctype ();
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_wctype) || defined (__stub___wctype)
9302 choke me
9303 #else
9304 char (*f) () = wctype;
9305 #endif
9306 #ifdef __cplusplus
9307 }
9308 #endif
9309
9310 int
9311 main ()
9312 {
9313 return f != wctype;
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_func_wctype=yes
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_cv_func_wctype=no
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9351 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9352 if test $ac_cv_func_wctype = yes; then
9353 :
9354 else
9355
9356 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9357 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9358 if test "${ac_cv_lib_w_wctype+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-lw $LIBS"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369
9370 /* Override any gcc2 internal prototype to avoid an error. */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376 char wctype ();
9377 int
9378 main ()
9379 {
9380 wctype ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_w_wctype=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_w_wctype=no
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9419 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9420 if test $ac_cv_lib_w_wctype = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBW 1
9423 _ACEOF
9424
9425 LIBS="-lw $LIBS"
9426
9427 fi
9428
9429 fi
9430
9431
9432 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9433 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9434 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9435 if test "${ac_cv_search_gethostbyname+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438 ac_func_search_save_LIBS=$LIBS
9439 ac_cv_search_gethostbyname=no
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h. */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446
9447 /* Override any gcc2 internal prototype to avoid an error. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453 char gethostbyname ();
9454 int
9455 main ()
9456 {
9457 gethostbyname ();
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_search_gethostbyname="none required"
9485 else
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489 fi
9490 rm -f conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test "$ac_cv_search_gethostbyname" = no; then
9493 for ac_lib in nsl; do
9494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501
9502 /* Override any gcc2 internal prototype to avoid an error. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 /* We use char because int might match the return type of a gcc2
9507 builtin and then its argument prototype would still apply. */
9508 char gethostbyname ();
9509 int
9510 main ()
9511 {
9512 gethostbyname ();
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_search_gethostbyname="-l$ac_lib"
9540 break
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545 fi
9546 rm -f conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 done
9549 fi
9550 LIBS=$ac_func_search_save_LIBS
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9553 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9554 if test "$ac_cv_search_gethostbyname" != no; then
9555 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9556
9557 fi
9558
9559
9560 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9561 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9562 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9563 if test "${ac_cv_search_socketpair+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 ac_func_search_save_LIBS=$LIBS
9567 ac_cv_search_socketpair=no
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574
9575 /* Override any gcc2 internal prototype to avoid an error. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581 char socketpair ();
9582 int
9583 main ()
9584 {
9585 socketpair ();
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592 (eval $ac_link) 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_search_socketpair="none required"
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 fi
9618 rm -f conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 if test "$ac_cv_search_socketpair" = no; then
9621 for ac_lib in socket; do
9622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629
9630 /* Override any gcc2 internal prototype to avoid an error. */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 /* We use char because int might match the return type of a gcc2
9635 builtin and then its argument prototype would still apply. */
9636 char socketpair ();
9637 int
9638 main ()
9639 {
9640 socketpair ();
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_search_socketpair="-l$ac_lib"
9668 break
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 fi
9674 rm -f conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 done
9677 fi
9678 LIBS=$ac_func_search_save_LIBS
9679 fi
9680 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9681 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9682 if test "$ac_cv_search_socketpair" != no; then
9683 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9684
9685 fi
9686
9687
9688 # Link in zlib if we can. This allows us to read compressed debug sections.
9689 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9690 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9691 if test "${ac_cv_search_zlibVersion+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 ac_func_search_save_LIBS=$LIBS
9695 ac_cv_search_zlibVersion=no
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702
9703 /* Override any gcc2 internal prototype to avoid an error. */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 /* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709 char zlibVersion ();
9710 int
9711 main ()
9712 {
9713 zlibVersion ();
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_search_zlibVersion="none required"
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 fi
9746 rm -f conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 if test "$ac_cv_search_zlibVersion" = no; then
9749 for ac_lib in z; do
9750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757
9758 /* Override any gcc2 internal prototype to avoid an error. */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9764 char zlibVersion ();
9765 int
9766 main ()
9767 {
9768 zlibVersion ();
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_search_zlibVersion="-l$ac_lib"
9796 break
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 fi
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 done
9805 fi
9806 LIBS=$ac_func_search_save_LIBS
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9809 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9810 if test "$ac_cv_search_zlibVersion" != no; then
9811 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9812
9813 for ac_header in zlib.h
9814 do
9815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817 echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 fi
9822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 else
9825 # Is the header compilable?
9826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 $ac_includes_default
9835 #include <$ac_header>
9836 _ACEOF
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839 (eval $ac_compile) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest.$ac_objext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_header_compiler=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_header_compiler=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9868 echo "${ECHO_T}$ac_header_compiler" >&6
9869
9870 # Is the header present?
9871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 #include <$ac_header>
9880 _ACEOF
9881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null; then
9889 if test -s conftest.err; then
9890 ac_cpp_err=$ac_c_preproc_warn_flag
9891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9892 else
9893 ac_cpp_err=
9894 fi
9895 else
9896 ac_cpp_err=yes
9897 fi
9898 if test -z "$ac_cpp_err"; then
9899 ac_header_preproc=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_header_preproc=no
9905 fi
9906 rm -f conftest.err conftest.$ac_ext
9907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908 echo "${ECHO_T}$ac_header_preproc" >&6
9909
9910 # So? What about this header?
9911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912 yes:no: )
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917 ac_header_preproc=yes
9918 ;;
9919 no:yes:* )
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9932 (
9933 cat <<\_ASBOX
9934 ## ------------------------------------------ ##
9935 ## Report this to the AC_PACKAGE_NAME lists. ##
9936 ## ------------------------------------------ ##
9937 _ASBOX
9938 ) |
9939 sed "s/^/$as_me: WARNING: /" >&2
9940 ;;
9941 esac
9942 echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 eval "$as_ac_Header=\$ac_header_preproc"
9948 fi
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9951
9952 fi
9953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959
9960 done
9961
9962 fi
9963
9964
9965 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9966 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9967 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9968 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 ac_func_search_save_LIBS=$LIBS
9972 ac_cv_search_dlgetmodinfo=no
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979
9980 /* Override any gcc2 internal prototype to avoid an error. */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9986 char dlgetmodinfo ();
9987 int
9988 main ()
9989 {
9990 dlgetmodinfo ();
9991 ;
9992 return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_search_dlgetmodinfo="none required"
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 if test "$ac_cv_search_dlgetmodinfo" = no; then
10026 for ac_lib in dl xpdl; do
10027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034
10035 /* Override any gcc2 internal prototype to avoid an error. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 /* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10041 char dlgetmodinfo ();
10042 int
10043 main ()
10044 {
10045 dlgetmodinfo ();
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10073 break
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 fi
10079 rm -f conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 done
10082 fi
10083 LIBS=$ac_func_search_save_LIBS
10084 fi
10085 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10086 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10087 if test "$ac_cv_search_dlgetmodinfo" != no; then
10088 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10089
10090 fi
10091
10092
10093
10094
10095
10096 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10097 if test "${with_libiconv_prefix+set}" = set; then
10098 withval="$with_libiconv_prefix"
10099
10100 for dir in `echo "$withval" | tr : ' '`; do
10101 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
10102 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
10103 done
10104
10105 fi;
10106
10107 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10108 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10109
10110 echo "$as_me:$LINENO: checking for iconv" >&5
10111 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10112 if test "${am_cv_func_iconv+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115
10116 am_cv_func_iconv="no, consider installing GNU libiconv"
10117 am_cv_lib_iconv=no
10118 am_cv_use_build_libiconv=no
10119
10120 # If libiconv is part of the build tree, then try using it over
10121 # any system iconv.
10122 if test -d ../libiconv; then
10123 am_save_LIBS="$LIBS"
10124 am_save_CPPFLAGS="$CPPFLAGS"
10125 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10126 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <stdlib.h>
10134 #include <iconv.h>
10135 int
10136 main ()
10137 {
10138 iconv_t cd = iconv_open("","");
10139 iconv(cd,NULL,NULL,NULL,NULL);
10140 iconv_close(cd);
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 am_cv_use_build_libiconv=yes
10168 am_cv_lib_iconv=yes
10169 am_cv_func_iconv=yes
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 fi
10175 rm -f conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS="$am_save_LIBS"
10178 CPPFLAGS="$am_save_CPPFLAGS"
10179 fi
10180
10181 # Next, try to find iconv in libc.
10182 if test "$am_cv_func_iconv" != yes; then
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <stdlib.h>
10190 #include <iconv.h>
10191 int
10192 main ()
10193 {
10194 iconv_t cd = iconv_open("","");
10195 iconv(cd,NULL,NULL,NULL,NULL);
10196 iconv_close(cd);
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 am_cv_func_iconv=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 fi
10232
10233 # If iconv was not in libc, try -liconv. In this case, arrange to
10234 # look in the libiconv prefix, if it was specified by the user.
10235 if test "$am_cv_func_iconv" != yes; then
10236 am_save_CPPFLAGS="$CPPFLAGS"
10237 am_save_LIBS="$LIBS"
10238 if test -n "$LIBICONV_INCLUDE"; then
10239 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10240 LIBS="$LIBS $LIBICONV_LIBDIR"
10241 fi
10242 LIBS="$LIBS -liconv"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 #include <stdlib.h>
10250 #include <iconv.h>
10251 int
10252 main ()
10253 {
10254 iconv_t cd = iconv_open("","");
10255 iconv(cd,NULL,NULL,NULL,NULL);
10256 iconv_close(cd);
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 am_cv_lib_iconv=yes
10284 am_cv_func_iconv=yes
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10288
10289 fi
10290 rm -f conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS="$am_save_LIBS"
10293 CPPFLAGS="$am_save_CPPFLAGS"
10294 fi
10295
10296 fi
10297 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10298 echo "${ECHO_T}$am_cv_func_iconv" >&6
10299
10300 # Set the various flags based on the cache variables. We can't rely
10301 # on the flags to remain set from the above code, due to caching.
10302 LIBICONV=
10303 if test "$am_cv_lib_iconv" = yes; then
10304 LIBICONV="-liconv"
10305 else
10306 LIBICONV_LIBDIR=
10307 LIBICONV_INCLUDE=
10308 fi
10309 if test "$am_cv_use_build_libiconv" = yes; then
10310 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10311 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10312 fi
10313 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
10314 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10315
10316 if test "$am_cv_func_iconv" = yes; then
10317
10318 cat >>confdefs.h <<\_ACEOF
10319 #define HAVE_ICONV 1
10320 _ACEOF
10321
10322 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10323 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10324 if test "${am_cv_proto_iconv+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334
10335 #include <stdlib.h>
10336 #include <iconv.h>
10337 extern
10338 #ifdef __cplusplus
10339 "C"
10340 #endif
10341 #if defined(__STDC__) || defined(__cplusplus)
10342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10343 #else
10344 size_t iconv();
10345 #endif
10346
10347 int
10348 main ()
10349 {
10350
10351 ;
10352 return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 am_cv_proto_iconv_arg1=""
10378 else
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382 am_cv_proto_iconv_arg1="const"
10383 fi
10384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 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);"
10386 fi
10387
10388 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10389 echo "$as_me:$LINENO: result: ${ac_t:-
10390 }$am_cv_proto_iconv" >&5
10391 echo "${ECHO_T}${ac_t:-
10392 }$am_cv_proto_iconv" >&6
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define ICONV_CONST $am_cv_proto_iconv_arg1
10396 _ACEOF
10397
10398 fi
10399
10400
10401 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10402 # There is a very specific comment in /usr/include/curses.h explaining that
10403 # termcap routines built into libcurses must not be used.
10404 #
10405 # The symptoms we observed so far is GDB unexpectedly changing
10406 # the terminal settings when tgetent is called - this is particularly
10407 # visible as the output is missing carriage returns, and so rapidly
10408 # becomes very hard to read.
10409 #
10410 # The readline configure script has already decided that libtermcap
10411 # was enough for its purposes, and so decided to build readline using
10412 # libtermcap. Since the TUI mode requires curses, building GDB with
10413 # TUI enabled results in both libraries to be used at the same time,
10414 # which is not allowed. This basically means that GDB with TUI is
10415 # broken on alpha-osf.
10416
10417 case $host_os in
10418 alpha*-*-osf* )
10419 if "$enable_tui" = "yes"; then
10420 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10421 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10422 { (exit 1); exit 1; }; }
10423 fi
10424 if "$enable_tui" = "auto"; then
10425 enable_tui=no
10426 fi
10427 ;;
10428 esac
10429
10430 # For the TUI, we need enhanced curses functionality.
10431 if test x"$enable_tui" != xno; then
10432 prefer_curses=yes
10433 fi
10434
10435 curses_found=no
10436 if test x"$prefer_curses" = xyes; then
10437 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10438 # curses library because the latter might not provide all the
10439 # functionality we need. However, this leads to problems on systems
10440 # where the linker searches /usr/local/lib, but the compiler doesn't
10441 # search /usr/local/include, if ncurses is installed in /usr/local. A
10442 # default installation of ncurses on alpha*-dec-osf* will lead to such
10443 # a situation.
10444 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10445 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10446 if test "${ac_cv_search_waddstr+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449 ac_func_search_save_LIBS=$LIBS
10450 ac_cv_search_waddstr=no
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457
10458 /* Override any gcc2 internal prototype to avoid an error. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 /* We use char because int might match the return type of a gcc2
10463 builtin and then its argument prototype would still apply. */
10464 char waddstr ();
10465 int
10466 main ()
10467 {
10468 waddstr ();
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_cv_search_waddstr="none required"
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 fi
10501 rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503 if test "$ac_cv_search_waddstr" = no; then
10504 for ac_lib in ncurses cursesX curses; do
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10519 char waddstr ();
10520 int
10521 main ()
10522 {
10523 waddstr ();
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_search_waddstr="-l$ac_lib"
10551 break
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 fi
10557 rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 done
10560 fi
10561 LIBS=$ac_func_search_save_LIBS
10562 fi
10563 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10564 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10565 if test "$ac_cv_search_waddstr" != no; then
10566 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10567
10568 fi
10569
10570
10571 if test "$ac_cv_search_waddstr" != no; then
10572 curses_found=yes
10573 fi
10574 fi
10575
10576 # Check whether we should enable the TUI, but only do so if we really
10577 # can.
10578 if test x"$enable_tui" != xno; then
10579 if test -d $srcdir/tui; then
10580 if test "$curses_found" != no; then
10581 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10582 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10583 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10584 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10585 CONFIG_ALL="${CONFIG_ALL} all-tui"
10586 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10587 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10588 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10589 else
10590 if test x"$enable_tui" = xyes; then
10591 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10592 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10593 { (exit 1); exit 1; }; }
10594 else
10595 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10596 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10597 fi
10598 fi
10599 fi
10600 fi
10601
10602 # Since GDB uses Readline, we need termcap functionality. In many
10603 # cases this will be provided by the curses library, but some systems
10604 # have a seperate termcap library, or no curses library at all.
10605
10606 case $host_os in
10607 cygwin*)
10608 if test -d $srcdir/libtermcap; then
10609 LIBS="../libtermcap/libtermcap.a $LIBS"
10610 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10611 fi ;;
10612 go32* | *djgpp*)
10613 ac_cv_search_tgetent="none required"
10614 ;;
10615 *mingw32*)
10616 ac_cv_search_tgetent="none required"
10617 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10618 ;;
10619 esac
10620
10621 # These are the libraries checked by Readline.
10622 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10623 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10624 if test "${ac_cv_search_tgetent+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627 ac_func_search_save_LIBS=$LIBS
10628 ac_cv_search_tgetent=no
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635
10636 /* Override any gcc2 internal prototype to avoid an error. */
10637 #ifdef __cplusplus
10638 extern "C"
10639 #endif
10640 /* We use char because int might match the return type of a gcc2
10641 builtin and then its argument prototype would still apply. */
10642 char tgetent ();
10643 int
10644 main ()
10645 {
10646 tgetent ();
10647 ;
10648 return 0;
10649 }
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_search_tgetent="none required"
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 fi
10679 rm -f conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 if test "$ac_cv_search_tgetent" = no; then
10682 for ac_lib in termcap tinfo curses ncurses; do
10683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690
10691 /* Override any gcc2 internal prototype to avoid an error. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10697 char tgetent ();
10698 int
10699 main ()
10700 {
10701 tgetent ();
10702 ;
10703 return 0;
10704 }
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest$ac_exeext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_cv_search_tgetent="-l$ac_lib"
10729 break
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 fi
10735 rm -f conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 done
10738 fi
10739 LIBS=$ac_func_search_save_LIBS
10740 fi
10741 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10742 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10743 if test "$ac_cv_search_tgetent" != no; then
10744 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10745
10746 fi
10747
10748
10749 if test "$ac_cv_search_tgetent" = no; then
10750 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10751 echo "$as_me: error: no termcap library found" >&2;}
10752 { (exit 1); exit 1; }; }
10753 fi
10754
10755
10756 # Check whether --with-system-readline or --without-system-readline was given.
10757 if test "${with_system_readline+set}" = set; then
10758 withval="$with_system_readline"
10759
10760 fi;
10761
10762 if test "$with_system_readline" = yes; then
10763 READLINE=-lreadline
10764 READLINE_DEPS=
10765 READLINE_CFLAGS=
10766 else
10767 READLINE='$(READLINE_DIR)/libreadline.a'
10768 READLINE_DEPS='$(READLINE)'
10769 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10770 fi
10771
10772
10773
10774
10775
10776 # Check whether --with-expat or --without-expat was given.
10777 if test "${with_expat+set}" = set; then
10778 withval="$with_expat"
10779
10780 else
10781 with_expat=auto
10782 fi;
10783 echo "$as_me:$LINENO: checking whether to use expat" >&5
10784 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10785 echo "$as_me:$LINENO: result: $with_expat" >&5
10786 echo "${ECHO_T}$with_expat" >&6
10787
10788 if test "${with_expat}" = no; then
10789 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10790 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10791 HAVE_LIBEXPAT=no
10792 else
10793
10794 if test "X$prefix" = "XNONE"; then
10795 acl_final_prefix="$ac_default_prefix"
10796 else
10797 acl_final_prefix="$prefix"
10798 fi
10799 if test "X$exec_prefix" = "XNONE"; then
10800 acl_final_exec_prefix='${prefix}'
10801 else
10802 acl_final_exec_prefix="$exec_prefix"
10803 fi
10804 acl_save_prefix="$prefix"
10805 prefix="$acl_final_prefix"
10806 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10807 prefix="$acl_save_prefix"
10808
10809
10810 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10811 if test "${with_gnu_ld+set}" = set; then
10812 withval="$with_gnu_ld"
10813 test "$withval" = no || with_gnu_ld=yes
10814 else
10815 with_gnu_ld=no
10816 fi;
10817 # Prepare PATH_SEPARATOR.
10818 # The user is always right.
10819 if test "${PATH_SEPARATOR+set}" != set; then
10820 echo "#! /bin/sh" >conf$$.sh
10821 echo "exit 0" >>conf$$.sh
10822 chmod +x conf$$.sh
10823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10824 PATH_SEPARATOR=';'
10825 else
10826 PATH_SEPARATOR=:
10827 fi
10828 rm -f conf$$.sh
10829 fi
10830 ac_prog=ld
10831 if test "$GCC" = yes; then
10832 # Check if gcc -print-prog-name=ld gives a path.
10833 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10834 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10835 case $host in
10836 *-*-mingw*)
10837 # gcc leaves a trailing carriage return which upsets mingw
10838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10839 *)
10840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10841 esac
10842 case $ac_prog in
10843 # Accept absolute paths.
10844 [\\/]* | [A-Za-z]:[\\/]*)
10845 re_direlt='/[^/][^/]*/\.\./'
10846 # Canonicalize the path of ld
10847 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10848 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10849 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10850 done
10851 test -z "$LD" && LD="$ac_prog"
10852 ;;
10853 "")
10854 # If it fails, then pretend we aren't using GCC.
10855 ac_prog=ld
10856 ;;
10857 *)
10858 # If it is relative, then search for the first ld in PATH.
10859 with_gnu_ld=unknown
10860 ;;
10861 esac
10862 elif test "$with_gnu_ld" = yes; then
10863 echo "$as_me:$LINENO: checking for GNU ld" >&5
10864 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10865 else
10866 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10867 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10868 fi
10869 if test "${acl_cv_path_LD+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 if test -z "$LD"; then
10873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10874 for ac_dir in $PATH; do
10875 test -z "$ac_dir" && ac_dir=.
10876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10877 acl_cv_path_LD="$ac_dir/$ac_prog"
10878 # Check to see if the program is GNU ld. I'd rather use --version,
10879 # but apparently some GNU ld's only accept -v.
10880 # Break only if it was the GNU/non-GNU ld that we prefer.
10881 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10882 test "$with_gnu_ld" != no && break
10883 else
10884 test "$with_gnu_ld" != yes && break
10885 fi
10886 fi
10887 done
10888 IFS="$ac_save_ifs"
10889 else
10890 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10891 fi
10892 fi
10893
10894 LD="$acl_cv_path_LD"
10895 if test -n "$LD"; then
10896 echo "$as_me:$LINENO: result: $LD" >&5
10897 echo "${ECHO_T}$LD" >&6
10898 else
10899 echo "$as_me:$LINENO: result: no" >&5
10900 echo "${ECHO_T}no" >&6
10901 fi
10902 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10903 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10904 { (exit 1); exit 1; }; }
10905 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10906 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10907 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10911 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10912 acl_cv_prog_gnu_ld=yes
10913 else
10914 acl_cv_prog_gnu_ld=no
10915 fi
10916 fi
10917 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10918 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10919 with_gnu_ld=$acl_cv_prog_gnu_ld
10920
10921
10922
10923 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10924 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10925 if test "${acl_cv_rpath+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928
10929 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10930 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10931 . ./conftest.sh
10932 rm -f ./conftest.sh
10933 acl_cv_rpath=done
10934
10935 fi
10936 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10937 echo "${ECHO_T}$acl_cv_rpath" >&6
10938 wl="$acl_cv_wl"
10939 libext="$acl_cv_libext"
10940 shlibext="$acl_cv_shlibext"
10941 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10942 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10943 hardcode_direct="$acl_cv_hardcode_direct"
10944 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10945 # Check whether --enable-rpath or --disable-rpath was given.
10946 if test "${enable_rpath+set}" = set; then
10947 enableval="$enable_rpath"
10948 :
10949 else
10950 enable_rpath=yes
10951 fi;
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 use_additional=yes
10962
10963 acl_save_prefix="$prefix"
10964 prefix="$acl_final_prefix"
10965 acl_save_exec_prefix="$exec_prefix"
10966 exec_prefix="$acl_final_exec_prefix"
10967
10968 eval additional_includedir=\"$includedir\"
10969 eval additional_libdir=\"$libdir\"
10970
10971 exec_prefix="$acl_save_exec_prefix"
10972 prefix="$acl_save_prefix"
10973
10974
10975 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10976 if test "${with_libexpat_prefix+set}" = set; then
10977 withval="$with_libexpat_prefix"
10978
10979 if test "X$withval" = "Xno"; then
10980 use_additional=no
10981 else
10982 if test "X$withval" = "X"; then
10983
10984 acl_save_prefix="$prefix"
10985 prefix="$acl_final_prefix"
10986 acl_save_exec_prefix="$exec_prefix"
10987 exec_prefix="$acl_final_exec_prefix"
10988
10989 eval additional_includedir=\"$includedir\"
10990 eval additional_libdir=\"$libdir\"
10991
10992 exec_prefix="$acl_save_exec_prefix"
10993 prefix="$acl_save_prefix"
10994
10995 else
10996 additional_includedir="$withval/include"
10997 additional_libdir="$withval/lib"
10998 fi
10999 fi
11000
11001 fi;
11002 LIBEXPAT=
11003 LTLIBEXPAT=
11004 INCEXPAT=
11005 rpathdirs=
11006 ltrpathdirs=
11007 names_already_handled=
11008 names_next_round='expat '
11009 while test -n "$names_next_round"; do
11010 names_this_round="$names_next_round"
11011 names_next_round=
11012 for name in $names_this_round; do
11013 already_handled=
11014 for n in $names_already_handled; do
11015 if test "$n" = "$name"; then
11016 already_handled=yes
11017 break
11018 fi
11019 done
11020 if test -z "$already_handled"; then
11021 names_already_handled="$names_already_handled $name"
11022 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11023 eval value=\"\$HAVE_LIB$uppername\"
11024 if test -n "$value"; then
11025 if test "$value" = yes; then
11026 eval value=\"\$LIB$uppername\"
11027 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
11028 eval value=\"\$LTLIB$uppername\"
11029 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11030 else
11031 :
11032 fi
11033 else
11034 found_dir=
11035 found_la=
11036 found_so=
11037 found_a=
11038 if test $use_additional = yes; then
11039 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11040 found_dir="$additional_libdir"
11041 found_so="$additional_libdir/lib$name.$shlibext"
11042 if test -f "$additional_libdir/lib$name.la"; then
11043 found_la="$additional_libdir/lib$name.la"
11044 fi
11045 else
11046 if test -f "$additional_libdir/lib$name.$libext"; then
11047 found_dir="$additional_libdir"
11048 found_a="$additional_libdir/lib$name.$libext"
11049 if test -f "$additional_libdir/lib$name.la"; then
11050 found_la="$additional_libdir/lib$name.la"
11051 fi
11052 fi
11053 fi
11054 fi
11055 if test "X$found_dir" = "X"; then
11056 for x in $LDFLAGS $LTLIBEXPAT; do
11057
11058 acl_save_prefix="$prefix"
11059 prefix="$acl_final_prefix"
11060 acl_save_exec_prefix="$exec_prefix"
11061 exec_prefix="$acl_final_exec_prefix"
11062 eval x=\"$x\"
11063 exec_prefix="$acl_save_exec_prefix"
11064 prefix="$acl_save_prefix"
11065
11066 case "$x" in
11067 -L*)
11068 dir=`echo "X$x" | sed -e 's/^X-L//'`
11069 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11070 found_dir="$dir"
11071 found_so="$dir/lib$name.$shlibext"
11072 if test -f "$dir/lib$name.la"; then
11073 found_la="$dir/lib$name.la"
11074 fi
11075 else
11076 if test -f "$dir/lib$name.$libext"; then
11077 found_dir="$dir"
11078 found_a="$dir/lib$name.$libext"
11079 if test -f "$dir/lib$name.la"; then
11080 found_la="$dir/lib$name.la"
11081 fi
11082 fi
11083 fi
11084 ;;
11085 esac
11086 if test "X$found_dir" != "X"; then
11087 break
11088 fi
11089 done
11090 fi
11091 if test "X$found_dir" != "X"; then
11092 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11093 if test "X$found_so" != "X"; then
11094 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11095 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11096 else
11097 haveit=
11098 for x in $ltrpathdirs; do
11099 if test "X$x" = "X$found_dir"; then
11100 haveit=yes
11101 break
11102 fi
11103 done
11104 if test -z "$haveit"; then
11105 ltrpathdirs="$ltrpathdirs $found_dir"
11106 fi
11107 if test "$hardcode_direct" = yes; then
11108 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11109 else
11110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11111 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11112 haveit=
11113 for x in $rpathdirs; do
11114 if test "X$x" = "X$found_dir"; then
11115 haveit=yes
11116 break
11117 fi
11118 done
11119 if test -z "$haveit"; then
11120 rpathdirs="$rpathdirs $found_dir"
11121 fi
11122 else
11123 haveit=
11124 for x in $LDFLAGS $LIBEXPAT; do
11125
11126 acl_save_prefix="$prefix"
11127 prefix="$acl_final_prefix"
11128 acl_save_exec_prefix="$exec_prefix"
11129 exec_prefix="$acl_final_exec_prefix"
11130 eval x=\"$x\"
11131 exec_prefix="$acl_save_exec_prefix"
11132 prefix="$acl_save_prefix"
11133
11134 if test "X$x" = "X-L$found_dir"; then
11135 haveit=yes
11136 break
11137 fi
11138 done
11139 if test -z "$haveit"; then
11140 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11141 fi
11142 if test "$hardcode_minus_L" != no; then
11143 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11144 else
11145 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11146 fi
11147 fi
11148 fi
11149 fi
11150 else
11151 if test "X$found_a" != "X"; then
11152 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11153 else
11154 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11155 fi
11156 fi
11157 additional_includedir=
11158 case "$found_dir" in
11159 */lib | */lib/)
11160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11161 additional_includedir="$basedir/include"
11162 ;;
11163 esac
11164 if test "X$additional_includedir" != "X"; then
11165 if test "X$additional_includedir" != "X/usr/include"; then
11166 haveit=
11167 if test "X$additional_includedir" = "X/usr/local/include"; then
11168 if test -n "$GCC"; then
11169 case $host_os in
11170 linux*) haveit=yes;;
11171 esac
11172 fi
11173 fi
11174 if test -z "$haveit"; then
11175 for x in $CPPFLAGS $INCEXPAT; do
11176
11177 acl_save_prefix="$prefix"
11178 prefix="$acl_final_prefix"
11179 acl_save_exec_prefix="$exec_prefix"
11180 exec_prefix="$acl_final_exec_prefix"
11181 eval x=\"$x\"
11182 exec_prefix="$acl_save_exec_prefix"
11183 prefix="$acl_save_prefix"
11184
11185 if test "X$x" = "X-I$additional_includedir"; then
11186 haveit=yes
11187 break
11188 fi
11189 done
11190 if test -z "$haveit"; then
11191 if test -d "$additional_includedir"; then
11192 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11193 fi
11194 fi
11195 fi
11196 fi
11197 fi
11198 if test -n "$found_la"; then
11199 save_libdir="$libdir"
11200 case "$found_la" in
11201 */* | *\\*) . "$found_la" ;;
11202 *) . "./$found_la" ;;
11203 esac
11204 libdir="$save_libdir"
11205 for dep in $dependency_libs; do
11206 case "$dep" in
11207 -L*)
11208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11209 if test "X$additional_libdir" != "X/usr/lib"; then
11210 haveit=
11211 if test "X$additional_libdir" = "X/usr/local/lib"; then
11212 if test -n "$GCC"; then
11213 case $host_os in
11214 linux*) haveit=yes;;
11215 esac
11216 fi
11217 fi
11218 if test -z "$haveit"; then
11219 haveit=
11220 for x in $LDFLAGS $LIBEXPAT; do
11221
11222 acl_save_prefix="$prefix"
11223 prefix="$acl_final_prefix"
11224 acl_save_exec_prefix="$exec_prefix"
11225 exec_prefix="$acl_final_exec_prefix"
11226 eval x=\"$x\"
11227 exec_prefix="$acl_save_exec_prefix"
11228 prefix="$acl_save_prefix"
11229
11230 if test "X$x" = "X-L$additional_libdir"; then
11231 haveit=yes
11232 break
11233 fi
11234 done
11235 if test -z "$haveit"; then
11236 if test -d "$additional_libdir"; then
11237 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11238 fi
11239 fi
11240 haveit=
11241 for x in $LDFLAGS $LTLIBEXPAT; do
11242
11243 acl_save_prefix="$prefix"
11244 prefix="$acl_final_prefix"
11245 acl_save_exec_prefix="$exec_prefix"
11246 exec_prefix="$acl_final_exec_prefix"
11247 eval x=\"$x\"
11248 exec_prefix="$acl_save_exec_prefix"
11249 prefix="$acl_save_prefix"
11250
11251 if test "X$x" = "X-L$additional_libdir"; then
11252 haveit=yes
11253 break
11254 fi
11255 done
11256 if test -z "$haveit"; then
11257 if test -d "$additional_libdir"; then
11258 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11259 fi
11260 fi
11261 fi
11262 fi
11263 ;;
11264 -R*)
11265 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11266 if test "$enable_rpath" != no; then
11267 haveit=
11268 for x in $rpathdirs; do
11269 if test "X$x" = "X$dir"; then
11270 haveit=yes
11271 break
11272 fi
11273 done
11274 if test -z "$haveit"; then
11275 rpathdirs="$rpathdirs $dir"
11276 fi
11277 haveit=
11278 for x in $ltrpathdirs; do
11279 if test "X$x" = "X$dir"; then
11280 haveit=yes
11281 break
11282 fi
11283 done
11284 if test -z "$haveit"; then
11285 ltrpathdirs="$ltrpathdirs $dir"
11286 fi
11287 fi
11288 ;;
11289 -l*)
11290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11291 ;;
11292 *.la)
11293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11294 ;;
11295 *)
11296 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11297 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11298 ;;
11299 esac
11300 done
11301 fi
11302 else
11303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11304 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11305 fi
11306 fi
11307 fi
11308 done
11309 done
11310 if test "X$rpathdirs" != "X"; then
11311 if test -n "$hardcode_libdir_separator"; then
11312 alldirs=
11313 for found_dir in $rpathdirs; do
11314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11315 done
11316 acl_save_libdir="$libdir"
11317 libdir="$alldirs"
11318 eval flag=\"$hardcode_libdir_flag_spec\"
11319 libdir="$acl_save_libdir"
11320 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11321 else
11322 for found_dir in $rpathdirs; do
11323 acl_save_libdir="$libdir"
11324 libdir="$found_dir"
11325 eval flag=\"$hardcode_libdir_flag_spec\"
11326 libdir="$acl_save_libdir"
11327 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11328 done
11329 fi
11330 fi
11331 if test "X$ltrpathdirs" != "X"; then
11332 for found_dir in $ltrpathdirs; do
11333 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11334 done
11335 fi
11336
11337
11338 ac_save_CPPFLAGS="$CPPFLAGS"
11339
11340 for element in $INCEXPAT; do
11341 haveit=
11342 for x in $CPPFLAGS; do
11343
11344 acl_save_prefix="$prefix"
11345 prefix="$acl_final_prefix"
11346 acl_save_exec_prefix="$exec_prefix"
11347 exec_prefix="$acl_final_exec_prefix"
11348 eval x=\"$x\"
11349 exec_prefix="$acl_save_exec_prefix"
11350 prefix="$acl_save_prefix"
11351
11352 if test "X$x" = "X$element"; then
11353 haveit=yes
11354 break
11355 fi
11356 done
11357 if test -z "$haveit"; then
11358 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11359 fi
11360 done
11361
11362
11363 echo "$as_me:$LINENO: checking for libexpat" >&5
11364 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11365 if test "${ac_cv_libexpat+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368
11369 ac_save_LIBS="$LIBS"
11370 LIBS="$LIBS $LIBEXPAT"
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include "expat.h"
11378 int
11379 main ()
11380 {
11381 XML_Parser p = XML_ParserCreate (0);
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11388 (eval $ac_link) 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_c_werror_flag"
11396 || test ! -s conftest.err'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest$ac_exeext'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; }; then
11408 ac_cv_libexpat=yes
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 ac_cv_libexpat=no
11414 fi
11415 rm -f conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS="$ac_save_LIBS"
11418
11419 fi
11420 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11421 echo "${ECHO_T}$ac_cv_libexpat" >&6
11422 if test "$ac_cv_libexpat" = yes; then
11423 HAVE_LIBEXPAT=yes
11424
11425 cat >>confdefs.h <<\_ACEOF
11426 #define HAVE_LIBEXPAT 1
11427 _ACEOF
11428
11429 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11430 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11431 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11432 echo "${ECHO_T}$LIBEXPAT" >&6
11433 else
11434 HAVE_LIBEXPAT=no
11435 CPPFLAGS="$ac_save_CPPFLAGS"
11436 LIBEXPAT=
11437 LTLIBEXPAT=
11438 fi
11439
11440
11441
11442
11443
11444
11445 if test "$HAVE_LIBEXPAT" != yes; then
11446 if test "$with_expat" = yes; then
11447 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11448 echo "$as_me: error: expat is missing or unusable" >&2;}
11449 { (exit 1); exit 1; }; }
11450 else
11451 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11452 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11453 fi
11454 else
11455 save_LIBS=$LIBS
11456 LIBS="$LIBS $LIBEXPAT"
11457
11458 for ac_func in XML_StopParser
11459 do
11460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 echo "$as_me:$LINENO: checking for $ac_func" >&5
11462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11463 if eval "test \"\${$as_ac_var+set}\" = set"; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11474 #define $ac_func innocuous_$ac_func
11475
11476 /* System header to define __stub macros and hopefully few prototypes,
11477 which can conflict with char $ac_func (); below.
11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479 <limits.h> exists even on freestanding compilers. */
11480
11481 #ifdef __STDC__
11482 # include <limits.h>
11483 #else
11484 # include <assert.h>
11485 #endif
11486
11487 #undef $ac_func
11488
11489 /* Override any gcc2 internal prototype to avoid an error. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 {
11493 #endif
11494 /* We use char because int might match the return type of a gcc2
11495 builtin and then its argument prototype would still apply. */
11496 char $ac_func ();
11497 /* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11501 choke me
11502 #else
11503 char (*f) () = $ac_func;
11504 #endif
11505 #ifdef __cplusplus
11506 }
11507 #endif
11508
11509 int
11510 main ()
11511 {
11512 return f != $ac_func;
11513 ;
11514 return 0;
11515 }
11516 _ACEOF
11517 rm -f conftest.$ac_objext conftest$ac_exeext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11519 (eval $ac_link) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -z "$ac_c_werror_flag"
11527 || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 eval "$as_ac_var=yes"
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 eval "$as_ac_var=no"
11545 fi
11546 rm -f conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 fi
11549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554 _ACEOF
11555
11556 fi
11557 done
11558
11559 LIBS=$save_LIBS
11560 fi
11561 fi
11562
11563
11564
11565
11566 # Check whether --with-python or --without-python was given.
11567 if test "${with_python+set}" = set; then
11568 withval="$with_python"
11569
11570 else
11571 with_python=auto
11572 fi;
11573 echo "$as_me:$LINENO: checking whether to use python" >&5
11574 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11575 echo "$as_me:$LINENO: result: $with_python" >&5
11576 echo "${ECHO_T}$with_python" >&6
11577
11578 if test "${with_python}" = no; then
11579 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11580 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11581 have_libpython=no
11582 else
11583 case "${with_python}" in
11584 yes | auto)
11585 # Leave as empty, use defaults.
11586 python_includes=
11587 python_libs=
11588 ;;
11589 /*)
11590 python_includes="-I${with_python}/include"
11591 python_libs="-L${with_python}/lib"
11592 ;;
11593 *)
11594 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11595 echo "$as_me: error: invalid value for --with-python" >&2;}
11596 { (exit 1); exit 1; }; }
11597 ;;
11598 esac
11599
11600 save_CPPFLAGS=$CPPFLAGS
11601 CPPFLAGS="$CPPFLAGS ${python_includes}"
11602 save_LIBS=$LIBS
11603 LIBS="$LIBS ${python_libs}"
11604 have_libpython=no
11605 if test "${have_libpython}" = no; then
11606
11607 version=python2.6
11608
11609
11610 HAVE_LIBPYTHON2_6=no
11611 echo "$as_me:$LINENO: checking for ${version}" >&5
11612 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11613 save_LIBS=$LIBS
11614 LIBS="$LIBS -l${version}"
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 #include "${version}/Python.h"
11622 int
11623 main ()
11624 {
11625 Py_Initialize ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632 (eval $ac_link) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 HAVE_LIBPYTHON2_6=yes
11653 have_libpython=yes
11654 else
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 LIBS=$save_LIBS
11659 fi
11660 rm -f conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11663 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11664
11665 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11666
11667 cat >>confdefs.h <<\_ACEOF
11668 #define HAVE_LIBPYTHON2_6 1
11669 _ACEOF
11670
11671 fi
11672 fi
11673 if test ${have_libpython} = no; then
11674
11675 version=python2.5
11676
11677
11678 HAVE_LIBPYTHON2_5=no
11679 echo "$as_me:$LINENO: checking for ${version}" >&5
11680 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11681 save_LIBS=$LIBS
11682 LIBS="$LIBS -l${version}"
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include "${version}/Python.h"
11690 int
11691 main ()
11692 {
11693 Py_Initialize ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 HAVE_LIBPYTHON2_5=yes
11721 have_libpython=yes
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 LIBS=$save_LIBS
11727 fi
11728 rm -f conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11731 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11732
11733 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LIBPYTHON2_5 1
11737 _ACEOF
11738
11739 fi
11740 fi
11741 if test ${have_libpython} = no; then
11742
11743 version=python2.4
11744
11745
11746 HAVE_LIBPYTHON2_4=no
11747 echo "$as_me:$LINENO: checking for ${version}" >&5
11748 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11749 save_LIBS=$LIBS
11750 LIBS="$LIBS -l${version}"
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h. */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include "${version}/Python.h"
11758 int
11759 main ()
11760 {
11761 Py_Initialize ();
11762 ;
11763 return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 HAVE_LIBPYTHON2_4=yes
11789 have_libpython=yes
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 LIBS=$save_LIBS
11795 fi
11796 rm -f conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11799 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11800
11801 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11802
11803 cat >>confdefs.h <<\_ACEOF
11804 #define HAVE_LIBPYTHON2_4 1
11805 _ACEOF
11806
11807 fi
11808 fi
11809 if test ${have_libpython} = no; then
11810 case "${with_python}" in
11811 yes)
11812 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11813 echo "$as_me: error: python is missing or unusable" >&2;}
11814 { (exit 1); exit 1; }; }
11815 ;;
11816 auto)
11817 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11818 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11819 ;;
11820 *)
11821 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11822 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11823 { (exit 1); exit 1; }; }
11824 ;;
11825 esac
11826 CPPFLAGS=$save_CPPFLAGS
11827 LIBS=$save_LIBS
11828 fi
11829 fi
11830
11831 if test "${have_libpython}" = yes; then
11832
11833 cat >>confdefs.h <<\_ACEOF
11834 #define HAVE_PYTHON 1
11835 _ACEOF
11836
11837 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11838 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11839 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11840 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11841
11842 # Flags needed to compile Python code (taken from python-config --cflags).
11843 # We cannot call python-config directly because it will output whatever was
11844 # used when compiling the Python interpreter itself, including flags which
11845 # would make the python-related objects be compiled differently from the
11846 # rest of GDB (e.g., -O2 and -fPIC).
11847 if test "${GCC}" = yes; then
11848 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11849 fi
11850
11851 if test "x${tentative_python_cflags}" != x; then
11852 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11853 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11854 for flag in ${tentative_python_cflags}; do
11855 # Check that the compiler accepts it
11856 saved_CFLAGS="$CFLAGS"
11857 CFLAGS="$CFLAGS $flag"
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864
11865 int
11866 main ()
11867 {
11868
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest.$ac_objext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11896 else
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 fi
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 CFLAGS="$saved_CFLAGS"
11903 done
11904 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11905 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11906 fi
11907 else
11908 # Even if Python support is not compiled in, we need to have these files
11909 # included in order to recognize the GDB command "python".
11910 CONFIG_OBS="$CONFIG_OBS python.o python-value.o python-prettyprint.o"
11911 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c python/python-prettyprint.c"
11912 fi
11913
11914
11915 # ------------------------- #
11916 # Checks for header files. #
11917 # ------------------------- #
11918
11919
11920
11921
11922
11923
11924 ac_header_dirent=no
11925 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11926 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11927 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11928 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 #include <sys/types.h>
11939 #include <$ac_hdr>
11940
11941 int
11942 main ()
11943 {
11944 if ((DIR *) 0)
11945 return 0;
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag"
11960 || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 eval "$as_ac_Header=yes"
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 eval "$as_ac_Header=no"
11978 fi
11979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11986 _ACEOF
11987
11988 ac_header_dirent=$ac_hdr; break
11989 fi
11990
11991 done
11992 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11993 if test $ac_header_dirent = dirent.h; then
11994 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11995 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11996 if test "${ac_cv_search_opendir+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999 ac_func_search_save_LIBS=$LIBS
12000 ac_cv_search_opendir=no
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007
12008 /* Override any gcc2 internal prototype to avoid an error. */
12009 #ifdef __cplusplus
12010 extern "C"
12011 #endif
12012 /* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12014 char opendir ();
12015 int
12016 main ()
12017 {
12018 opendir ();
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12025 (eval $ac_link) 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag"
12033 || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_search_opendir="none required"
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 fi
12051 rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 if test "$ac_cv_search_opendir" = no; then
12054 for ac_lib in dir; do
12055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062
12063 /* Override any gcc2 internal prototype to avoid an error. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12069 char opendir ();
12070 int
12071 main ()
12072 {
12073 opendir ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12080 (eval $ac_link) 2>conftest.er1
12081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag"
12088 || test ! -s conftest.err'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_cv_search_opendir="-l$ac_lib"
12101 break
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 fi
12107 rm -f conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 done
12110 fi
12111 LIBS=$ac_func_search_save_LIBS
12112 fi
12113 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12114 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12115 if test "$ac_cv_search_opendir" != no; then
12116 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12117
12118 fi
12119
12120 else
12121 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12122 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12123 if test "${ac_cv_search_opendir+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126 ac_func_search_save_LIBS=$LIBS
12127 ac_cv_search_opendir=no
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134
12135 /* Override any gcc2 internal prototype to avoid an error. */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 /* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12141 char opendir ();
12142 int
12143 main ()
12144 {
12145 opendir ();
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_search_opendir="none required"
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 fi
12178 rm -f conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 if test "$ac_cv_search_opendir" = no; then
12181 for ac_lib in x; do
12182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189
12190 /* Override any gcc2 internal prototype to avoid an error. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196 char opendir ();
12197 int
12198 main ()
12199 {
12200 opendir ();
12201 ;
12202 return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_search_opendir="-l$ac_lib"
12228 break
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 fi
12234 rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 done
12237 fi
12238 LIBS=$ac_func_search_save_LIBS
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12241 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12242 if test "$ac_cv_search_opendir" != no; then
12243 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12244
12245 fi
12246
12247 fi
12248
12249 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12250 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12251 if test "${ac_cv_header_stat_broken+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 #include <sys/types.h>
12261 #include <sys/stat.h>
12262
12263 #if defined(S_ISBLK) && defined(S_IFDIR)
12264 # if S_ISBLK (S_IFDIR)
12265 You lose.
12266 # endif
12267 #endif
12268
12269 #if defined(S_ISBLK) && defined(S_IFCHR)
12270 # if S_ISBLK (S_IFCHR)
12271 You lose.
12272 # endif
12273 #endif
12274
12275 #if defined(S_ISLNK) && defined(S_IFREG)
12276 # if S_ISLNK (S_IFREG)
12277 You lose.
12278 # endif
12279 #endif
12280
12281 #if defined(S_ISSOCK) && defined(S_IFREG)
12282 # if S_ISSOCK (S_IFREG)
12283 You lose.
12284 # endif
12285 #endif
12286
12287 _ACEOF
12288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12289 $EGREP "You lose" >/dev/null 2>&1; then
12290 ac_cv_header_stat_broken=yes
12291 else
12292 ac_cv_header_stat_broken=no
12293 fi
12294 rm -f conftest*
12295
12296 fi
12297 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12298 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12299 if test $ac_cv_header_stat_broken = yes; then
12300
12301 cat >>confdefs.h <<\_ACEOF
12302 #define STAT_MACROS_BROKEN 1
12303 _ACEOF
12304
12305 fi
12306
12307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12309 if test "${ac_cv_header_stdc+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include <stdlib.h>
12319 #include <stdarg.h>
12320 #include <string.h>
12321 #include <float.h>
12322
12323 int
12324 main ()
12325 {
12326
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_header_stdc=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_cv_header_stdc=no
12359 fi
12360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361
12362 if test $ac_cv_header_stdc = yes; then
12363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #include <string.h>
12371
12372 _ACEOF
12373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12374 $EGREP "memchr" >/dev/null 2>&1; then
12375 :
12376 else
12377 ac_cv_header_stdc=no
12378 fi
12379 rm -f conftest*
12380
12381 fi
12382
12383 if test $ac_cv_header_stdc = yes; then
12384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #include <stdlib.h>
12392
12393 _ACEOF
12394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12395 $EGREP "free" >/dev/null 2>&1; then
12396 :
12397 else
12398 ac_cv_header_stdc=no
12399 fi
12400 rm -f conftest*
12401
12402 fi
12403
12404 if test $ac_cv_header_stdc = yes; then
12405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12406 if test "$cross_compiling" = yes; then
12407 :
12408 else
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <ctype.h>
12416 #if ((' ' & 0x0FF) == 0x020)
12417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12419 #else
12420 # define ISLOWER(c) \
12421 (('a' <= (c) && (c) <= 'i') \
12422 || ('j' <= (c) && (c) <= 'r') \
12423 || ('s' <= (c) && (c) <= 'z'))
12424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12425 #endif
12426
12427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12428 int
12429 main ()
12430 {
12431 int i;
12432 for (i = 0; i < 256; i++)
12433 if (XOR (islower (i), ISLOWER (i))
12434 || toupper (i) != TOUPPER (i))
12435 exit(2);
12436 exit (0);
12437 }
12438 _ACEOF
12439 rm -f conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 :
12451 else
12452 echo "$as_me: program exited with status $ac_status" >&5
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ( exit $ac_status )
12457 ac_cv_header_stdc=no
12458 fi
12459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 fi
12462 fi
12463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12465 if test $ac_cv_header_stdc = yes; then
12466
12467 cat >>confdefs.h <<\_ACEOF
12468 #define STDC_HEADERS 1
12469 _ACEOF
12470
12471 fi
12472
12473 # elf_hp.h is for HP/UX 64-bit shared library support.
12474 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12475 # unconditionally, so what's the point in checking these?
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12514 thread_db.h gnu/libc-version.h signal.h stddef.h \
12515 stdlib.h string.h memory.h strings.h sys/fault.h \
12516 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12517 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12518 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12519 sys/types.h sys/wait.h wait.h termios.h termio.h \
12520 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12521 do
12522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo "$as_me:$LINENO: checking for $ac_header" >&5
12525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 fi
12529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12531 else
12532 # Is the header compilable?
12533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 $ac_includes_default
12542 #include <$ac_header>
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -z "$ac_c_werror_flag"
12554 || test ! -s conftest.err'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_header_compiler=yes
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_header_compiler=no
12572 fi
12573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12575 echo "${ECHO_T}$ac_header_compiler" >&6
12576
12577 # Is the header present?
12578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 #include <$ac_header>
12587 _ACEOF
12588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null; then
12596 if test -s conftest.err; then
12597 ac_cpp_err=$ac_c_preproc_warn_flag
12598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12599 else
12600 ac_cpp_err=
12601 fi
12602 else
12603 ac_cpp_err=yes
12604 fi
12605 if test -z "$ac_cpp_err"; then
12606 ac_header_preproc=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_preproc=no
12612 fi
12613 rm -f conftest.err conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12615 echo "${ECHO_T}$ac_header_preproc" >&6
12616
12617 # So? What about this header?
12618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12619 yes:no: )
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12624 ac_header_preproc=yes
12625 ;;
12626 no:yes:* )
12627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12639 (
12640 cat <<\_ASBOX
12641 ## ------------------------------------------ ##
12642 ## Report this to the AC_PACKAGE_NAME lists. ##
12643 ## ------------------------------------------ ##
12644 _ASBOX
12645 ) |
12646 sed "s/^/$as_me: WARNING: /" >&2
12647 ;;
12648 esac
12649 echo "$as_me:$LINENO: checking for $ac_header" >&5
12650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 eval "$as_ac_Header=\$ac_header_preproc"
12655 fi
12656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658
12659 fi
12660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12663 _ACEOF
12664
12665 fi
12666
12667 done
12668
12669
12670 for ac_header in link.h
12671 do
12672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12673 echo "$as_me:$LINENO: checking for $ac_header" >&5
12674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 #if HAVE_SYS_TYPES_H
12685 # include <sys/types.h>
12686 #endif
12687 #if HAVE_NLIST_H
12688 # include <nlist.h>
12689 #endif
12690
12691
12692 #include <$ac_header>
12693 _ACEOF
12694 rm -f conftest.$ac_objext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12696 (eval $ac_compile) 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 eval "$as_ac_Header=yes"
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 eval "$as_ac_Header=no"
12722 fi
12723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12724 fi
12725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12728 cat >>confdefs.h <<_ACEOF
12729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12730 _ACEOF
12731
12732 fi
12733
12734 done
12735
12736
12737 for ac_header in sys/proc.h
12738 do
12739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12740 echo "$as_me:$LINENO: checking for $ac_header" >&5
12741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #if HAVE_SYS_PARAM_H
12752 # include <sys/param.h>
12753 #endif
12754
12755
12756 #include <$ac_header>
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>conftest.er1
12761 ac_status=$?
12762 grep -v '^ *+' conftest.er1 >conftest.err
12763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag"
12768 || test ! -s conftest.err'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest.$ac_objext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 eval "$as_ac_Header=yes"
12781 else
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 eval "$as_ac_Header=no"
12786 fi
12787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12788 fi
12789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12792 cat >>confdefs.h <<_ACEOF
12793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800
12801 for ac_header in sys/user.h
12802 do
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 echo "$as_me:$LINENO: checking for $ac_header" >&5
12805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 #if HAVE_SYS_PARAM_H
12816 # include <sys/param.h>
12817 #endif
12818
12819
12820 #include <$ac_header>
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_Header=yes"
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 eval "$as_ac_Header=no"
12850 fi
12851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12852 fi
12853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12856 cat >>confdefs.h <<_ACEOF
12857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12858 _ACEOF
12859
12860 fi
12861
12862 done
12863
12864
12865 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12866 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12867 # think that we don't have <curses.h> if we're using GCC.
12868 case $host_os in
12869 solaris2.[789])
12870 if test "$GCC" = yes; then
12871
12872 cat >>confdefs.h <<\_ACEOF
12873 #define _MSE_INT_H 1
12874 _ACEOF
12875
12876 fi ;;
12877 esac
12878
12879
12880
12881
12882
12883 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12884 do
12885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo "$as_me:$LINENO: checking for $ac_header" >&5
12888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 fi
12892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894 else
12895 # Is the header compilable?
12896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12905 #include <$ac_header>
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_header_compiler=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934 ac_header_compiler=no
12935 fi
12936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12938 echo "${ECHO_T}$ac_header_compiler" >&6
12939
12940 # Is the header present?
12941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <$ac_header>
12950 _ACEOF
12951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } >/dev/null; then
12959 if test -s conftest.err; then
12960 ac_cpp_err=$ac_c_preproc_warn_flag
12961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12962 else
12963 ac_cpp_err=
12964 fi
12965 else
12966 ac_cpp_err=yes
12967 fi
12968 if test -z "$ac_cpp_err"; then
12969 ac_header_preproc=yes
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 ac_header_preproc=no
12975 fi
12976 rm -f conftest.err conftest.$ac_ext
12977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12978 echo "${ECHO_T}$ac_header_preproc" >&6
12979
12980 # So? What about this header?
12981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12982 yes:no: )
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12987 ac_header_preproc=yes
12988 ;;
12989 no:yes:* )
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13002 (
13003 cat <<\_ASBOX
13004 ## ------------------------------------------ ##
13005 ## Report this to the AC_PACKAGE_NAME lists. ##
13006 ## ------------------------------------------ ##
13007 _ASBOX
13008 ) |
13009 sed "s/^/$as_me: WARNING: /" >&2
13010 ;;
13011 esac
13012 echo "$as_me:$LINENO: checking for $ac_header" >&5
13013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 eval "$as_ac_Header=\$ac_header_preproc"
13018 fi
13019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13021
13022 fi
13023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13024 cat >>confdefs.h <<_ACEOF
13025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13026 _ACEOF
13027
13028 fi
13029
13030 done
13031
13032
13033 for ac_header in term.h
13034 do
13035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13036 echo "$as_me:$LINENO: checking for $ac_header" >&5
13037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #if HAVE_CURSES_H
13048 # include <curses.h>
13049 #endif
13050
13051
13052 #include <$ac_header>
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 eval "$as_ac_Header=yes"
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 eval "$as_ac_Header=no"
13082 fi
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13088 cat >>confdefs.h <<_ACEOF
13089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13090 _ACEOF
13091
13092 fi
13093
13094 done
13095
13096
13097 # ------------------------- #
13098 # Checks for declarations. #
13099 # ------------------------- #
13100
13101 echo "$as_me:$LINENO: checking whether free is declared" >&5
13102 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13103 if test "${ac_cv_have_decl_free+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 $ac_includes_default
13113 int
13114 main ()
13115 {
13116 #ifndef free
13117 char *p = (char *) free;
13118 #endif
13119
13120 ;
13121 return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag"
13134 || test ! -s conftest.err'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_cv_have_decl_free=yes
13147 else
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_cv_have_decl_free=no
13152 fi
13153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13154 fi
13155 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13156 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13157 if test $ac_cv_have_decl_free = yes; then
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_DECL_FREE 1
13161 _ACEOF
13162
13163
13164 else
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_DECL_FREE 0
13167 _ACEOF
13168
13169
13170 fi
13171 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13172 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13173 if test "${ac_cv_have_decl_malloc+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 $ac_includes_default
13183 int
13184 main ()
13185 {
13186 #ifndef malloc
13187 char *p = (char *) malloc;
13188 #endif
13189
13190 ;
13191 return 0;
13192 }
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag"
13204 || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest.$ac_objext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_have_decl_malloc=yes
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_have_decl_malloc=no
13222 fi
13223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224 fi
13225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13226 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13227 if test $ac_cv_have_decl_malloc = yes; then
13228
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_DECL_MALLOC 1
13231 _ACEOF
13232
13233
13234 else
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_DECL_MALLOC 0
13237 _ACEOF
13238
13239
13240 fi
13241 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13242 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13243 if test "${ac_cv_have_decl_realloc+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 $ac_includes_default
13253 int
13254 main ()
13255 {
13256 #ifndef realloc
13257 char *p = (char *) realloc;
13258 #endif
13259
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest.$ac_objext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_have_decl_realloc=yes
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_cv_have_decl_realloc=no
13292 fi
13293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13294 fi
13295 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13296 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13297 if test $ac_cv_have_decl_realloc = yes; then
13298
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_DECL_REALLOC 1
13301 _ACEOF
13302
13303
13304 else
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_DECL_REALLOC 0
13307 _ACEOF
13308
13309
13310 fi
13311 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13312 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13313 if test "${ac_cv_have_decl_strerror+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 $ac_includes_default
13323 int
13324 main ()
13325 {
13326 #ifndef strerror
13327 char *p = (char *) strerror;
13328 #endif
13329
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag"
13344 || test ! -s conftest.err'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest.$ac_objext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_cv_have_decl_strerror=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 ac_cv_have_decl_strerror=no
13362 fi
13363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13366 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13367 if test $ac_cv_have_decl_strerror = yes; then
13368
13369 cat >>confdefs.h <<_ACEOF
13370 #define HAVE_DECL_STRERROR 1
13371 _ACEOF
13372
13373
13374 else
13375 cat >>confdefs.h <<_ACEOF
13376 #define HAVE_DECL_STRERROR 0
13377 _ACEOF
13378
13379
13380 fi
13381 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13382 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13383 if test "${ac_cv_have_decl_strstr+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 int
13394 main ()
13395 {
13396 #ifndef strstr
13397 char *p = (char *) strstr;
13398 #endif
13399
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406 (eval $ac_compile) 2>conftest.er1
13407 ac_status=$?
13408 grep -v '^ *+' conftest.er1 >conftest.err
13409 rm -f conftest.er1
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag"
13414 || test ! -s conftest.err'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest.$ac_objext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_have_decl_strstr=yes
13427 else
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 ac_cv_have_decl_strstr=no
13432 fi
13433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13436 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13437 if test $ac_cv_have_decl_strstr = yes; then
13438
13439 cat >>confdefs.h <<_ACEOF
13440 #define HAVE_DECL_STRSTR 1
13441 _ACEOF
13442
13443
13444 else
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_DECL_STRSTR 0
13447 _ACEOF
13448
13449
13450 fi
13451 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13452 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13453 if test "${ac_cv_have_decl_getopt+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 int
13464 main ()
13465 {
13466 #ifndef getopt
13467 char *p = (char *) getopt;
13468 #endif
13469
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_cv_have_decl_getopt=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 ac_cv_have_decl_getopt=no
13502 fi
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13506 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13507 if test $ac_cv_have_decl_getopt = yes; then
13508
13509 cat >>confdefs.h <<_ACEOF
13510 #define HAVE_DECL_GETOPT 1
13511 _ACEOF
13512
13513
13514 else
13515 cat >>confdefs.h <<_ACEOF
13516 #define HAVE_DECL_GETOPT 0
13517 _ACEOF
13518
13519
13520 fi
13521 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13522 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13523 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 int
13534 main ()
13535 {
13536 #ifndef snprintf
13537 char *p = (char *) snprintf;
13538 #endif
13539
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -z "$ac_c_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_cv_have_decl_snprintf=yes
13567 else
13568 echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13570
13571 ac_cv_have_decl_snprintf=no
13572 fi
13573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13574 fi
13575 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13576 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13577 if test $ac_cv_have_decl_snprintf = yes; then
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_DECL_SNPRINTF 1
13581 _ACEOF
13582
13583
13584 else
13585 cat >>confdefs.h <<_ACEOF
13586 #define HAVE_DECL_SNPRINTF 0
13587 _ACEOF
13588
13589
13590 fi
13591 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13592 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13593 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 $ac_includes_default
13603 int
13604 main ()
13605 {
13606 #ifndef vsnprintf
13607 char *p = (char *) vsnprintf;
13608 #endif
13609
13610 ;
13611 return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616 (eval $ac_compile) 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_c_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest.$ac_objext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_have_decl_vsnprintf=yes
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_cv_have_decl_vsnprintf=no
13642 fi
13643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13646 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13647 if test $ac_cv_have_decl_vsnprintf = yes; then
13648
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DECL_VSNPRINTF 1
13651 _ACEOF
13652
13653
13654 else
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_DECL_VSNPRINTF 0
13657 _ACEOF
13658
13659
13660 fi
13661
13662
13663
13664 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13665 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13666 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 #include <locale.h>
13676 int
13677 main ()
13678 {
13679 return LC_MESSAGES
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13686 (eval $ac_link) 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag"
13694 || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest$ac_exeext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 am_cv_val_LC_MESSAGES=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 am_cv_val_LC_MESSAGES=no
13712 fi
13713 rm -f conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 fi
13716 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13717 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13718 if test $am_cv_val_LC_MESSAGES = yes; then
13719
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_LC_MESSAGES 1
13722 _ACEOF
13723
13724 fi
13725
13726
13727 # ----------------------- #
13728 # Checks for structures. #
13729 # ----------------------- #
13730
13731 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13732 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13733 if test "${ac_cv_member_struct_stat_st_blocks+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_blocks)
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_blocks=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_blocks)
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_blocks=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_blocks=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_blocks" >&5
13831 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13832 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13836 _ACEOF
13837
13838
13839 fi
13840 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13841 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13842 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h. */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 $ac_includes_default
13852 int
13853 main ()
13854 {
13855 static struct stat ac_aggr;
13856 if (ac_aggr.st_blksize)
13857 return 0;
13858 ;
13859 return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_member_struct_stat_st_blksize=yes
13885 else
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 int
13897 main ()
13898 {
13899 static struct stat ac_aggr;
13900 if (sizeof ac_aggr.st_blksize)
13901 return 0;
13902 ;
13903 return 0;
13904 }
13905 _ACEOF
13906 rm -f conftest.$ac_objext
13907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13908 (eval $ac_compile) 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag"
13916 || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest.$ac_objext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_cv_member_struct_stat_st_blksize=yes
13929 else
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 ac_cv_member_struct_stat_st_blksize=no
13934 fi
13935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13936 fi
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13938 fi
13939 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13940 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13941 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13942
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13945 _ACEOF
13946
13947
13948 fi
13949
13950
13951 # ------------------ #
13952 # Checks for types. #
13953 # ------------------ #
13954
13955 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13956 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13957 if test "${ac_cv_type_signal+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include <sys/types.h>
13967 #include <signal.h>
13968 #ifdef signal
13969 # undef signal
13970 #endif
13971 #ifdef __cplusplus
13972 extern "C" void (*signal (int, void (*)(int)))(int);
13973 #else
13974 void (*signal ()) ();
13975 #endif
13976
13977 int
13978 main ()
13979 {
13980 int i;
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 rm -f conftest.$ac_objext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag"
13995 || test ! -s conftest.err'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest.$ac_objext'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
14007 ac_cv_type_signal=void
14008 else
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012 ac_cv_type_signal=int
14013 fi
14014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14015 fi
14016 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14017 echo "${ECHO_T}$ac_cv_type_signal" >&6
14018
14019 cat >>confdefs.h <<_ACEOF
14020 #define RETSIGTYPE $ac_cv_type_signal
14021 _ACEOF
14022
14023
14024 echo "$as_me:$LINENO: checking for socklen_t" >&5
14025 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14026 if test "${ac_cv_type_socklen_t+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <sys/types.h>
14036 #include <sys/socket.h>
14037
14038
14039 int
14040 main ()
14041 {
14042 if ((socklen_t *) 0)
14043 return 0;
14044 if (sizeof (socklen_t))
14045 return 0;
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14052 (eval $ac_compile) 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag"
14060 || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_type_socklen_t=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_cv_type_socklen_t=no
14078 fi
14079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14080 fi
14081 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14082 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14083 if test $ac_cv_type_socklen_t = yes; then
14084
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_SOCKLEN_T 1
14087 _ACEOF
14088
14089
14090 fi
14091
14092
14093 # ------------------------------------- #
14094 # Checks for compiler characteristics. #
14095 # ------------------------------------- #
14096
14097 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14099 if test "${ac_cv_c_const+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
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
14109 int
14110 main ()
14111 {
14112 /* FIXME: Include the comments suggested by Paul. */
14113 #ifndef __cplusplus
14114 /* Ultrix mips cc rejects this. */
14115 typedef int charset[2];
14116 const charset x;
14117 /* SunOS 4.1.1 cc rejects this. */
14118 char const *const *ccp;
14119 char **p;
14120 /* NEC SVR4.0.2 mips cc rejects this. */
14121 struct point {int x, y;};
14122 static struct point const zero = {0,0};
14123 /* AIX XL C 1.02.0.0 rejects this.
14124 It does not let you subtract one const X* pointer from another in
14125 an arm of an if-expression whose if-part is not a constant
14126 expression */
14127 const char *g = "string";
14128 ccp = &g + (g ? g-g : 0);
14129 /* HPUX 7.0 cc rejects these. */
14130 ++ccp;
14131 p = (char**) ccp;
14132 ccp = (char const *const *) p;
14133 { /* SCO 3.2v4 cc rejects this. */
14134 char *t;
14135 char const *s = 0 ? (char *) 0 : (char const *) 0;
14136
14137 *t++ = 0;
14138 }
14139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14140 int x[] = {25, 17};
14141 const int *foo = &x[0];
14142 ++foo;
14143 }
14144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14145 typedef const int *iptr;
14146 iptr p = 0;
14147 ++p;
14148 }
14149 { /* AIX XL C 1.02.0.0 rejects this saying
14150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14151 struct s { int j; const int *ap[3]; };
14152 struct s *b; b->j = 5;
14153 }
14154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14155 const int foo = 10;
14156 }
14157 #endif
14158
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 rm -f conftest.$ac_objext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag"
14173 || test ! -s conftest.err'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_c_const=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 ac_cv_c_const=no
14191 fi
14192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14193 fi
14194 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14195 echo "${ECHO_T}$ac_cv_c_const" >&6
14196 if test $ac_cv_c_const = no; then
14197
14198 cat >>confdefs.h <<\_ACEOF
14199 #define const
14200 _ACEOF
14201
14202 fi
14203
14204 echo "$as_me:$LINENO: checking for inline" >&5
14205 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14206 if test "${ac_cv_c_inline+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209 ac_cv_c_inline=no
14210 for ac_kw in inline __inline__ __inline; do
14211 cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h. */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 #ifndef __cplusplus
14218 typedef int foo_t;
14219 static $ac_kw foo_t static_foo () {return 0; }
14220 $ac_kw foo_t foo () {return 0; }
14221 #endif
14222
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_c_inline=$ac_kw; break
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 fi
14252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14253 done
14254
14255 fi
14256 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14257 echo "${ECHO_T}$ac_cv_c_inline" >&6
14258
14259
14260 case $ac_cv_c_inline in
14261 inline | yes) ;;
14262 *)
14263 case $ac_cv_c_inline in
14264 no) ac_val=;;
14265 *) ac_val=$ac_cv_c_inline;;
14266 esac
14267 cat >>confdefs.h <<_ACEOF
14268 #ifndef __cplusplus
14269 #define inline $ac_val
14270 #endif
14271 _ACEOF
14272 ;;
14273 esac
14274
14275 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14276 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14277 if test "${ac_cv_c_bigendian+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280 # See if sys/param.h defines the BYTE_ORDER macro.
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <sys/types.h>
14288 #include <sys/param.h>
14289
14290 int
14291 main ()
14292 {
14293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14294 bogus endian macros
14295 #endif
14296
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 # It does; now see whether it defined to BIG_ENDIAN or not.
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 #include <sys/types.h>
14331 #include <sys/param.h>
14332
14333 int
14334 main ()
14335 {
14336 #if BYTE_ORDER != BIG_ENDIAN
14337 not big endian
14338 #endif
14339
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_c_bigendian=yes
14367 else
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 ac_cv_c_bigendian=no
14372 fi
14373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14374 else
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 # It does not; compile a test program.
14379 if test "$cross_compiling" = yes; then
14380 # try to guess the endianness by grepping values into an object file
14381 ac_cv_c_bigendian=unknown
14382 cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h. */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14394 int
14395 main ()
14396 {
14397 _ascii (); _ebcdic ();
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14405 ac_status=$?
14406 grep -v '^ *+' conftest.er1 >conftest.err
14407 rm -f conftest.er1
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14425 ac_cv_c_bigendian=yes
14426 fi
14427 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14428 if test "$ac_cv_c_bigendian" = unknown; then
14429 ac_cv_c_bigendian=no
14430 else
14431 # finding both strings is unlikely to happen, but who knows?
14432 ac_cv_c_bigendian=unknown
14433 fi
14434 fi
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 else
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 int
14449 main ()
14450 {
14451 /* Are we little or big endian? From Harbison&Steele. */
14452 union
14453 {
14454 long l;
14455 char c[sizeof (long)];
14456 } u;
14457 u.l = 1;
14458 exit (u.c[sizeof (long) - 1] == 1);
14459 }
14460 _ACEOF
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_c_bigendian=no
14473 else
14474 echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ( exit $ac_status )
14479 ac_cv_c_bigendian=yes
14480 fi
14481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14482 fi
14483 fi
14484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14488 case $ac_cv_c_bigendian in
14489 yes)
14490
14491 cat >>confdefs.h <<\_ACEOF
14492 #define WORDS_BIGENDIAN 1
14493 _ACEOF
14494 ;;
14495 no)
14496 ;;
14497 *)
14498 { { echo "$as_me:$LINENO: error: unknown endianness
14499 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14500 echo "$as_me: error: unknown endianness
14501 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14502 { (exit 1); exit 1; }; } ;;
14503 esac
14504
14505
14506 # ------------------------------ #
14507 # Checks for library functions. #
14508 # ------------------------------ #
14509
14510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14511 # for constant arguments. Useless!
14512 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14513 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14514 if test "${ac_cv_working_alloca_h+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <alloca.h>
14524 int
14525 main ()
14526 {
14527 char *p = (char *) alloca (2 * sizeof (int));
14528 ;
14529 return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest$ac_exeext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_working_alloca_h=yes
14555 else
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_cv_working_alloca_h=no
14560 fi
14561 rm -f conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
14563 fi
14564 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14565 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14566 if test $ac_cv_working_alloca_h = yes; then
14567
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_ALLOCA_H 1
14570 _ACEOF
14571
14572 fi
14573
14574 echo "$as_me:$LINENO: checking for alloca" >&5
14575 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14576 if test "${ac_cv_func_alloca_works+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 #ifdef __GNUC__
14586 # define alloca __builtin_alloca
14587 #else
14588 # ifdef _MSC_VER
14589 # include <malloc.h>
14590 # define alloca _alloca
14591 # else
14592 # if HAVE_ALLOCA_H
14593 # include <alloca.h>
14594 # else
14595 # ifdef _AIX
14596 #pragma alloca
14597 # else
14598 # ifndef alloca /* predefined by HP cc +Olibcalls */
14599 char *alloca ();
14600 # endif
14601 # endif
14602 # endif
14603 # endif
14604 #endif
14605
14606 int
14607 main ()
14608 {
14609 char *p = (char *) alloca (1);
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest$ac_exeext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_func_alloca_works=yes
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ac_cv_func_alloca_works=no
14642 fi
14643 rm -f conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14645 fi
14646 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14647 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14648
14649 if test $ac_cv_func_alloca_works = yes; then
14650
14651 cat >>confdefs.h <<\_ACEOF
14652 #define HAVE_ALLOCA 1
14653 _ACEOF
14654
14655 else
14656 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14657 # that cause trouble. Some versions do not even contain alloca or
14658 # contain a buggy version. If you still want to use their alloca,
14659 # use ar to extract alloca.o from them instead of compiling alloca.c.
14660
14661 ALLOCA=alloca.$ac_objext
14662
14663 cat >>confdefs.h <<\_ACEOF
14664 #define C_ALLOCA 1
14665 _ACEOF
14666
14667
14668 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14669 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14670 if test "${ac_cv_os_cray+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #if defined(CRAY) && ! defined(CRAY2)
14680 webecray
14681 #else
14682 wenotbecray
14683 #endif
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "webecray" >/dev/null 2>&1; then
14688 ac_cv_os_cray=yes
14689 else
14690 ac_cv_os_cray=no
14691 fi
14692 rm -f conftest*
14693
14694 fi
14695 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14696 echo "${ECHO_T}$ac_cv_os_cray" >&6
14697 if test $ac_cv_os_cray = yes; then
14698 for ac_func in _getb67 GETB67 getb67; do
14699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 echo "$as_me:$LINENO: checking for $ac_func" >&5
14701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_var+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h. */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713 #define $ac_func innocuous_$ac_func
14714
14715 /* System header to define __stub macros and hopefully few prototypes,
14716 which can conflict with char $ac_func (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14719
14720 #ifdef __STDC__
14721 # include <limits.h>
14722 #else
14723 # include <assert.h>
14724 #endif
14725
14726 #undef $ac_func
14727
14728 /* Override any gcc2 internal prototype to avoid an error. */
14729 #ifdef __cplusplus
14730 extern "C"
14731 {
14732 #endif
14733 /* We use char because int might match the return type of a gcc2
14734 builtin and then its argument prototype would still apply. */
14735 char $ac_func ();
14736 /* The GNU C library defines this for functions which it implements
14737 to always fail with ENOSYS. Some functions are actually named
14738 something starting with __ and the normal name is an alias. */
14739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14740 choke me
14741 #else
14742 char (*f) () = $ac_func;
14743 #endif
14744 #ifdef __cplusplus
14745 }
14746 #endif
14747
14748 int
14749 main ()
14750 {
14751 return f != $ac_func;
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 eval "$as_ac_var=yes"
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 eval "$as_ac_var=no"
14784 fi
14785 rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 fi
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791
14792 cat >>confdefs.h <<_ACEOF
14793 #define CRAY_STACKSEG_END $ac_func
14794 _ACEOF
14795
14796 break
14797 fi
14798
14799 done
14800 fi
14801
14802 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14803 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14804 if test "${ac_cv_c_stack_direction+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 if test "$cross_compiling" = yes; then
14808 ac_cv_c_stack_direction=0
14809 else
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 int
14817 find_stack_direction ()
14818 {
14819 static char *addr = 0;
14820 auto char dummy;
14821 if (addr == 0)
14822 {
14823 addr = &dummy;
14824 return find_stack_direction ();
14825 }
14826 else
14827 return (&dummy > addr) ? 1 : -1;
14828 }
14829
14830 int
14831 main ()
14832 {
14833 exit (find_stack_direction () < 0);
14834 }
14835 _ACEOF
14836 rm -f conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_c_stack_direction=1
14848 else
14849 echo "$as_me: program exited with status $ac_status" >&5
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ( exit $ac_status )
14854 ac_cv_c_stack_direction=-1
14855 fi
14856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 fi
14858 fi
14859 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14861
14862 cat >>confdefs.h <<_ACEOF
14863 #define STACK_DIRECTION $ac_cv_c_stack_direction
14864 _ACEOF
14865
14866
14867 fi
14868
14869
14870
14871 for ac_header in stdlib.h unistd.h
14872 do
14873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14875 echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 fi
14880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14882 else
14883 # Is the header compilable?
14884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h. */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 #include <$ac_header>
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest.$ac_objext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_header_compiler=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_header_compiler=no
14923 fi
14924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14926 echo "${ECHO_T}$ac_header_compiler" >&6
14927
14928 # Is the header present?
14929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <$ac_header>
14938 _ACEOF
14939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } >/dev/null; then
14947 if test -s conftest.err; then
14948 ac_cpp_err=$ac_c_preproc_warn_flag
14949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14950 else
14951 ac_cpp_err=
14952 fi
14953 else
14954 ac_cpp_err=yes
14955 fi
14956 if test -z "$ac_cpp_err"; then
14957 ac_header_preproc=yes
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 ac_header_preproc=no
14963 fi
14964 rm -f conftest.err conftest.$ac_ext
14965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14966 echo "${ECHO_T}$ac_header_preproc" >&6
14967
14968 # So? What about this header?
14969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14970 yes:no: )
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14975 ac_header_preproc=yes
14976 ;;
14977 no:yes:* )
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14990 (
14991 cat <<\_ASBOX
14992 ## ------------------------------------------ ##
14993 ## Report this to the AC_PACKAGE_NAME lists. ##
14994 ## ------------------------------------------ ##
14995 _ASBOX
14996 ) |
14997 sed "s/^/$as_me: WARNING: /" >&2
14998 ;;
14999 esac
15000 echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 eval "$as_ac_Header=\$ac_header_preproc"
15006 fi
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15009
15010 fi
15011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15014 _ACEOF
15015
15016 fi
15017
15018 done
15019
15020
15021 for ac_func in getpagesize
15022 do
15023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024 echo "$as_me:$LINENO: checking for $ac_func" >&5
15025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15026 if eval "test \"\${$as_ac_var+set}\" = set"; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15037 #define $ac_func innocuous_$ac_func
15038
15039 /* System header to define __stub macros and hopefully few prototypes,
15040 which can conflict with char $ac_func (); below.
15041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042 <limits.h> exists even on freestanding compilers. */
15043
15044 #ifdef __STDC__
15045 # include <limits.h>
15046 #else
15047 # include <assert.h>
15048 #endif
15049
15050 #undef $ac_func
15051
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 {
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15059 char $ac_func ();
15060 /* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15064 choke me
15065 #else
15066 char (*f) () = $ac_func;
15067 #endif
15068 #ifdef __cplusplus
15069 }
15070 #endif
15071
15072 int
15073 main ()
15074 {
15075 return f != $ac_func;
15076 ;
15077 return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 eval "$as_ac_var=yes"
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 eval "$as_ac_var=no"
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15111 fi
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15114 if test `eval echo '${'$as_ac_var'}'` = yes; then
15115 cat >>confdefs.h <<_ACEOF
15116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15117 _ACEOF
15118
15119 fi
15120 done
15121
15122 echo "$as_me:$LINENO: checking for working mmap" >&5
15123 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15124 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127 if test "$cross_compiling" = yes; then
15128 ac_cv_func_mmap_fixed_mapped=no
15129 else
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 $ac_includes_default
15137 /* malloc might have been renamed as rpl_malloc. */
15138 #undef malloc
15139
15140 /* Thanks to Mike Haertel and Jim Avera for this test.
15141 Here is a matrix of mmap possibilities:
15142 mmap private not fixed
15143 mmap private fixed at somewhere currently unmapped
15144 mmap private fixed at somewhere already mapped
15145 mmap shared not fixed
15146 mmap shared fixed at somewhere currently unmapped
15147 mmap shared fixed at somewhere already mapped
15148 For private mappings, we should verify that changes cannot be read()
15149 back from the file, nor mmap's back from the file at a different
15150 address. (There have been systems where private was not correctly
15151 implemented like the infamous i386 svr4.0, and systems where the
15152 VM page cache was not coherent with the file system buffer cache
15153 like early versions of FreeBSD and possibly contemporary NetBSD.)
15154 For shared mappings, we should conversely verify that changes get
15155 propagated back to all the places they're supposed to be.
15156
15157 Grep wants private fixed already mapped.
15158 The main things grep needs to know about mmap are:
15159 * does it exist and is it safe to write into the mmap'd area
15160 * how to use it (BSD variants) */
15161
15162 #include <fcntl.h>
15163 #include <sys/mman.h>
15164
15165 #if !STDC_HEADERS && !HAVE_STDLIB_H
15166 char *malloc ();
15167 #endif
15168
15169 /* This mess was copied from the GNU getpagesize.h. */
15170 #if !HAVE_GETPAGESIZE
15171 /* Assume that all systems that can run configure have sys/param.h. */
15172 # if !HAVE_SYS_PARAM_H
15173 # define HAVE_SYS_PARAM_H 1
15174 # endif
15175
15176 # ifdef _SC_PAGESIZE
15177 # define getpagesize() sysconf(_SC_PAGESIZE)
15178 # else /* no _SC_PAGESIZE */
15179 # if HAVE_SYS_PARAM_H
15180 # include <sys/param.h>
15181 # ifdef EXEC_PAGESIZE
15182 # define getpagesize() EXEC_PAGESIZE
15183 # else /* no EXEC_PAGESIZE */
15184 # ifdef NBPG
15185 # define getpagesize() NBPG * CLSIZE
15186 # ifndef CLSIZE
15187 # define CLSIZE 1
15188 # endif /* no CLSIZE */
15189 # else /* no NBPG */
15190 # ifdef NBPC
15191 # define getpagesize() NBPC
15192 # else /* no NBPC */
15193 # ifdef PAGESIZE
15194 # define getpagesize() PAGESIZE
15195 # endif /* PAGESIZE */
15196 # endif /* no NBPC */
15197 # endif /* no NBPG */
15198 # endif /* no EXEC_PAGESIZE */
15199 # else /* no HAVE_SYS_PARAM_H */
15200 # define getpagesize() 8192 /* punt totally */
15201 # endif /* no HAVE_SYS_PARAM_H */
15202 # endif /* no _SC_PAGESIZE */
15203
15204 #endif /* no HAVE_GETPAGESIZE */
15205
15206 int
15207 main ()
15208 {
15209 char *data, *data2, *data3;
15210 int i, pagesize;
15211 int fd;
15212
15213 pagesize = getpagesize ();
15214
15215 /* First, make a file with some known garbage in it. */
15216 data = (char *) malloc (pagesize);
15217 if (!data)
15218 exit (1);
15219 for (i = 0; i < pagesize; ++i)
15220 *(data + i) = rand ();
15221 umask (0);
15222 fd = creat ("conftest.mmap", 0600);
15223 if (fd < 0)
15224 exit (1);
15225 if (write (fd, data, pagesize) != pagesize)
15226 exit (1);
15227 close (fd);
15228
15229 /* Next, try to mmap the file at a fixed address which already has
15230 something else allocated at it. If we can, also make sure that
15231 we see the same garbage. */
15232 fd = open ("conftest.mmap", O_RDWR);
15233 if (fd < 0)
15234 exit (1);
15235 data2 = (char *) malloc (2 * pagesize);
15236 if (!data2)
15237 exit (1);
15238 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15241 exit (1);
15242 for (i = 0; i < pagesize; ++i)
15243 if (*(data + i) != *(data2 + i))
15244 exit (1);
15245
15246 /* Finally, make sure that changes to the mapped area do not
15247 percolate back to the file as seen by read(). (This is a bug on
15248 some variants of i386 svr4.0.) */
15249 for (i = 0; i < pagesize; ++i)
15250 *(data2 + i) = *(data2 + i) + 1;
15251 data3 = (char *) malloc (pagesize);
15252 if (!data3)
15253 exit (1);
15254 if (read (fd, data3, pagesize) != pagesize)
15255 exit (1);
15256 for (i = 0; i < pagesize; ++i)
15257 if (*(data + i) != *(data3 + i))
15258 exit (1);
15259 close (fd);
15260 exit (0);
15261 }
15262 _ACEOF
15263 rm -f conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265 (eval $ac_link) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_func_mmap_fixed_mapped=yes
15275 else
15276 echo "$as_me: program exited with status $ac_status" >&5
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ( exit $ac_status )
15281 ac_cv_func_mmap_fixed_mapped=no
15282 fi
15283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15284 fi
15285 fi
15286 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15287 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15288 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15289
15290 cat >>confdefs.h <<\_ACEOF
15291 #define HAVE_MMAP 1
15292 _ACEOF
15293
15294 fi
15295 rm -f conftest.mmap
15296
15297 echo "$as_me:$LINENO: checking for pid_t" >&5
15298 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15299 if test "${ac_cv_type_pid_t+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 int
15310 main ()
15311 {
15312 if ((pid_t *) 0)
15313 return 0;
15314 if (sizeof (pid_t))
15315 return 0;
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_type_pid_t=yes
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 ac_cv_type_pid_t=no
15348 fi
15349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15352 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15353 if test $ac_cv_type_pid_t = yes; then
15354 :
15355 else
15356
15357 cat >>confdefs.h <<_ACEOF
15358 #define pid_t int
15359 _ACEOF
15360
15361 fi
15362
15363
15364
15365 for ac_header in unistd.h vfork.h
15366 do
15367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15369 echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 fi
15374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15376 else
15377 # Is the header compilable?
15378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <$ac_header>
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15391 (eval $ac_compile) 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -z "$ac_c_werror_flag"
15399 || test ! -s conftest.err'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest.$ac_objext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 ac_header_compiler=yes
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 ac_header_compiler=no
15417 fi
15418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420 echo "${ECHO_T}$ac_header_compiler" >&6
15421
15422 # Is the header present?
15423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 #include <$ac_header>
15432 _ACEOF
15433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } >/dev/null; then
15441 if test -s conftest.err; then
15442 ac_cpp_err=$ac_c_preproc_warn_flag
15443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15444 else
15445 ac_cpp_err=
15446 fi
15447 else
15448 ac_cpp_err=yes
15449 fi
15450 if test -z "$ac_cpp_err"; then
15451 ac_header_preproc=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_header_preproc=no
15457 fi
15458 rm -f conftest.err conftest.$ac_ext
15459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15460 echo "${ECHO_T}$ac_header_preproc" >&6
15461
15462 # So? What about this header?
15463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15464 yes:no: )
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15469 ac_header_preproc=yes
15470 ;;
15471 no:yes:* )
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15484 (
15485 cat <<\_ASBOX
15486 ## ------------------------------------------ ##
15487 ## Report this to the AC_PACKAGE_NAME lists. ##
15488 ## ------------------------------------------ ##
15489 _ASBOX
15490 ) |
15491 sed "s/^/$as_me: WARNING: /" >&2
15492 ;;
15493 esac
15494 echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499 eval "$as_ac_Header=\$ac_header_preproc"
15500 fi
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15503
15504 fi
15505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15508 _ACEOF
15509
15510 fi
15511
15512 done
15513
15514
15515
15516 for ac_func in fork vfork
15517 do
15518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15519 echo "$as_me:$LINENO: checking for $ac_func" >&5
15520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15521 if eval "test \"\${$as_ac_var+set}\" = set"; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15532 #define $ac_func innocuous_$ac_func
15533
15534 /* System header to define __stub macros and hopefully few prototypes,
15535 which can conflict with char $ac_func (); below.
15536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15537 <limits.h> exists even on freestanding compilers. */
15538
15539 #ifdef __STDC__
15540 # include <limits.h>
15541 #else
15542 # include <assert.h>
15543 #endif
15544
15545 #undef $ac_func
15546
15547 /* Override any gcc2 internal prototype to avoid an error. */
15548 #ifdef __cplusplus
15549 extern "C"
15550 {
15551 #endif
15552 /* We use char because int might match the return type of a gcc2
15553 builtin and then its argument prototype would still apply. */
15554 char $ac_func ();
15555 /* The GNU C library defines this for functions which it implements
15556 to always fail with ENOSYS. Some functions are actually named
15557 something starting with __ and the normal name is an alias. */
15558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 choke me
15560 #else
15561 char (*f) () = $ac_func;
15562 #endif
15563 #ifdef __cplusplus
15564 }
15565 #endif
15566
15567 int
15568 main ()
15569 {
15570 return f != $ac_func;
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 eval "$as_ac_var=yes"
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 eval "$as_ac_var=no"
15603 fi
15604 rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606 fi
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15609 if test `eval echo '${'$as_ac_var'}'` = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612 _ACEOF
15613
15614 fi
15615 done
15616
15617 if test "x$ac_cv_func_fork" = xyes; then
15618 echo "$as_me:$LINENO: checking for working fork" >&5
15619 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15620 if test "${ac_cv_func_fork_works+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623 if test "$cross_compiling" = yes; then
15624 ac_cv_func_fork_works=cross
15625 else
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* By Ruediger Kuhlmann. */
15628 #include <sys/types.h>
15629 #if HAVE_UNISTD_H
15630 # include <unistd.h>
15631 #endif
15632 /* Some systems only have a dummy stub for fork() */
15633 int main ()
15634 {
15635 if (fork() < 0)
15636 exit (1);
15637 exit (0);
15638 }
15639 _ACEOF
15640 rm -f conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642 (eval $ac_link) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_func_fork_works=yes
15652 else
15653 echo "$as_me: program exited with status $ac_status" >&5
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 ( exit $ac_status )
15658 ac_cv_func_fork_works=no
15659 fi
15660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15661 fi
15662 fi
15663 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15664 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15665
15666 else
15667 ac_cv_func_fork_works=$ac_cv_func_fork
15668 fi
15669 if test "x$ac_cv_func_fork_works" = xcross; then
15670 case $host in
15671 *-*-amigaos* | *-*-msdosdjgpp*)
15672 # Override, as these systems have only a dummy fork() stub
15673 ac_cv_func_fork_works=no
15674 ;;
15675 *)
15676 ac_cv_func_fork_works=yes
15677 ;;
15678 esac
15679 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15680 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15681 fi
15682 ac_cv_func_vfork_works=$ac_cv_func_vfork
15683 if test "x$ac_cv_func_vfork" = xyes; then
15684 echo "$as_me:$LINENO: checking for working vfork" >&5
15685 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15686 if test "${ac_cv_func_vfork_works+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 if test "$cross_compiling" = yes; then
15690 ac_cv_func_vfork_works=cross
15691 else
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 /* Thanks to Paul Eggert for this test. */
15699 #include <stdio.h>
15700 #include <stdlib.h>
15701 #include <sys/types.h>
15702 #include <sys/stat.h>
15703 #include <sys/wait.h>
15704 #if HAVE_UNISTD_H
15705 # include <unistd.h>
15706 #endif
15707 #if HAVE_VFORK_H
15708 # include <vfork.h>
15709 #endif
15710 /* On some sparc systems, changes by the child to local and incoming
15711 argument registers are propagated back to the parent. The compiler
15712 is told about this with #include <vfork.h>, but some compilers
15713 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15714 static variable whose address is put into a register that is
15715 clobbered by the vfork. */
15716 static void
15717 #ifdef __cplusplus
15718 sparc_address_test (int arg)
15719 # else
15720 sparc_address_test (arg) int arg;
15721 #endif
15722 {
15723 static pid_t child;
15724 if (!child) {
15725 child = vfork ();
15726 if (child < 0) {
15727 perror ("vfork");
15728 _exit(2);
15729 }
15730 if (!child) {
15731 arg = getpid();
15732 write(-1, "", 0);
15733 _exit (arg);
15734 }
15735 }
15736 }
15737
15738 int
15739 main ()
15740 {
15741 pid_t parent = getpid ();
15742 pid_t child;
15743
15744 sparc_address_test (0);
15745
15746 child = vfork ();
15747
15748 if (child == 0) {
15749 /* Here is another test for sparc vfork register problems. This
15750 test uses lots of local variables, at least as many local
15751 variables as main has allocated so far including compiler
15752 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15753 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15754 reuse the register of parent for one of the local variables,
15755 since it will think that parent can't possibly be used any more
15756 in this routine. Assigning to the local variable will thus
15757 munge parent in the parent process. */
15758 pid_t
15759 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15760 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15761 /* Convince the compiler that p..p7 are live; otherwise, it might
15762 use the same hardware register for all 8 local variables. */
15763 if (p != p1 || p != p2 || p != p3 || p != p4
15764 || p != p5 || p != p6 || p != p7)
15765 _exit(1);
15766
15767 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15768 from child file descriptors. If the child closes a descriptor
15769 before it execs or exits, this munges the parent's descriptor
15770 as well. Test for this by closing stdout in the child. */
15771 _exit(close(fileno(stdout)) != 0);
15772 } else {
15773 int status;
15774 struct stat st;
15775
15776 while (wait(&status) != child)
15777 ;
15778 exit(
15779 /* Was there some problem with vforking? */
15780 child < 0
15781
15782 /* Did the child fail? (This shouldn't happen.) */
15783 || status
15784
15785 /* Did the vfork/compiler bug occur? */
15786 || parent != getpid()
15787
15788 /* Did the file descriptor bug occur? */
15789 || fstat(fileno(stdout), &st) != 0
15790 );
15791 }
15792 }
15793 _ACEOF
15794 rm -f conftest$ac_exeext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_func_vfork_works=yes
15806 else
15807 echo "$as_me: program exited with status $ac_status" >&5
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ( exit $ac_status )
15812 ac_cv_func_vfork_works=no
15813 fi
15814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15815 fi
15816 fi
15817 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15818 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15819
15820 fi;
15821 if test "x$ac_cv_func_fork_works" = xcross; then
15822 ac_cv_func_vfork_works=$ac_cv_func_vfork
15823 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15824 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15825 fi
15826
15827 if test "x$ac_cv_func_vfork_works" = xyes; then
15828
15829 cat >>confdefs.h <<\_ACEOF
15830 #define HAVE_WORKING_VFORK 1
15831 _ACEOF
15832
15833 else
15834
15835 cat >>confdefs.h <<\_ACEOF
15836 #define vfork fork
15837 _ACEOF
15838
15839 fi
15840 if test "x$ac_cv_func_fork_works" = xyes; then
15841
15842 cat >>confdefs.h <<\_ACEOF
15843 #define HAVE_WORKING_FORK 1
15844 _ACEOF
15845
15846 fi
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870 for ac_func in canonicalize_file_name realpath getrusage getuid \
15871 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
15872 sigaction sigprocmask sigsetmask socketpair syscall \
15873 ttrace wborder setlocale iconvlist libiconvlist btowc
15874 do
15875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876 echo "$as_me:$LINENO: checking for $ac_func" >&5
15877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15878 if eval "test \"\${$as_ac_var+set}\" = set"; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15890
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15895
15896 #ifdef __STDC__
15897 # include <limits.h>
15898 #else
15899 # include <assert.h>
15900 #endif
15901
15902 #undef $ac_func
15903
15904 /* Override any gcc2 internal prototype to avoid an error. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 {
15908 #endif
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15911 char $ac_func ();
15912 /* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916 choke me
15917 #else
15918 char (*f) () = $ac_func;
15919 #endif
15920 #ifdef __cplusplus
15921 }
15922 #endif
15923
15924 int
15925 main ()
15926 {
15927 return f != $ac_func;
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext conftest$ac_exeext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 eval "$as_ac_var=no"
15960 fi
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972 done
15973
15974
15975 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15976 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15977 if test "${am_cv_langinfo_codeset+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 #include <langinfo.h>
15987 int
15988 main ()
15989 {
15990 char* cs = nl_langinfo(CODESET);
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 am_cv_langinfo_codeset=yes
16018 else
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 am_cv_langinfo_codeset=no
16023 fi
16024 rm -f conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16026
16027 fi
16028 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16029 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16030 if test $am_cv_langinfo_codeset = yes; then
16031
16032 cat >>confdefs.h <<\_ACEOF
16033 #define HAVE_LANGINFO_CODESET 1
16034 _ACEOF
16035
16036 fi
16037
16038
16039 # Check the return and argument types of ptrace. No canned test for
16040 # this, so roll our own.
16041 gdb_ptrace_headers='
16042 #if HAVE_SYS_TYPES_H
16043 # include <sys/types.h>
16044 #endif
16045 #if HAVE_SYS_PTRACE_H
16046 # include <sys/ptrace.h>
16047 #endif
16048 #if HAVE_UNISTD_H
16049 # include <unistd.h>
16050 #endif
16051 '
16052 # There is no point in checking if we don't have a prototype.
16053 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16054 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16055 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 $gdb_ptrace_headers
16065
16066 int
16067 main ()
16068 {
16069 #ifndef ptrace
16070 char *p = (char *) ptrace;
16071 #endif
16072
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16099 ac_cv_have_decl_ptrace=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 ac_cv_have_decl_ptrace=no
16105 fi
16106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16109 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16110 if test $ac_cv_have_decl_ptrace = yes; then
16111
16112 cat >>confdefs.h <<_ACEOF
16113 #define HAVE_DECL_PTRACE 1
16114 _ACEOF
16115
16116
16117 else
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_DECL_PTRACE 0
16120 _ACEOF
16121
16122
16123 : ${gdb_cv_func_ptrace_ret='int'}
16124 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16125
16126 fi
16127
16128
16129 # Check return type. Varargs (used on GNU/Linux) conflict with the
16130 # empty argument list, so check for that explicitly.
16131 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16132 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16133 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 else
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $gdb_ptrace_headers
16143 int
16144 main ()
16145 {
16146 extern long ptrace (enum __ptrace_request, ...);
16147 ;
16148 return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag"
16161 || test ! -s conftest.err'
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); }; } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 gdb_cv_func_ptrace_ret='long'
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $gdb_ptrace_headers
16185 int
16186 main ()
16187 {
16188 extern int ptrace ();
16189 ;
16190 return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 gdb_cv_func_ptrace_ret='int'
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 gdb_cv_func_ptrace_ret='long'
16221 fi
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223 fi
16224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16225 fi
16226 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16227 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16231 _ACEOF
16232
16233 # Check argument types.
16234 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16235 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16236 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 $gdb_ptrace_headers
16247 int
16248 main ()
16249 {
16250 extern long ptrace (enum __ptrace_request, ...);
16251 ;
16252 return 0;
16253 }
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 gdb_cv_func_ptrace_args='int,int,long,long'
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282
16283 for gdb_arg1 in 'int' 'long'; do
16284 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16285 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16286 for gdb_arg4 in 'int' 'long'; do
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $gdb_ptrace_headers
16294 int
16295 main ()
16296 {
16297
16298 extern $gdb_cv_func_ptrace_ret
16299 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16300
16301 ;
16302 return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307 (eval $ac_compile) 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -z "$ac_c_werror_flag"
16315 || test ! -s conftest.err'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16328 break 4;
16329 else
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 fi
16334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16335 for gdb_arg5 in 'int *' 'int' 'long'; do
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $gdb_ptrace_headers
16343 int
16344 main ()
16345 {
16346
16347 extern $gdb_cv_func_ptrace_ret
16348 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16349
16350 ;
16351 return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16356 (eval $ac_compile) 2>conftest.er1
16357 ac_status=$?
16358 grep -v '^ *+' conftest.er1 >conftest.err
16359 rm -f conftest.er1
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } &&
16363 { ac_try='test -z "$ac_c_werror_flag"
16364 || test ! -s conftest.err'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; } &&
16370 { ac_try='test -s conftest.$ac_objext'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376
16377 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16378 break 5;
16379 else
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16382
16383 fi
16384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16385 done
16386 done
16387 done
16388 done
16389 done
16390 # Provide a safe default value.
16391 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16392
16393 fi
16394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16395 fi
16396 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16397 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16398 ac_save_IFS=$IFS; IFS=','
16399 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16400 IFS=$ac_save_IFS
16401 shift
16402
16403 cat >>confdefs.h <<_ACEOF
16404 #define PTRACE_TYPE_ARG3 $3
16405 _ACEOF
16406
16407 if test -n "$5"; then
16408
16409 cat >>confdefs.h <<_ACEOF
16410 #define PTRACE_TYPE_ARG5 $5
16411 _ACEOF
16412
16413 fi
16414
16415 if test "$cross_compiling" = no; then
16416 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16417 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16418 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421 if test "$cross_compiling" = yes; then
16422 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16423 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16424 { (exit 1); exit 1; }; }
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #if HAVE_UNISTD_H
16433 # include <unistd.h>
16434 #endif
16435
16436 int
16437 main ()
16438 {
16439 /* If this system has a BSD-style setpgrp which takes arguments,
16440 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16441 exit successfully. */
16442 exit (setpgrp (1,1) == -1 ? 0 : 1);
16443 ;
16444 return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_func_setpgrp_void=no
16459 else
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 ( exit $ac_status )
16465 ac_cv_func_setpgrp_void=yes
16466 fi
16467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16468 fi
16469 fi
16470 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16471 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16472 if test $ac_cv_func_setpgrp_void = yes; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define SETPGRP_VOID 1
16476 _ACEOF
16477
16478 fi
16479
16480 else
16481 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16482 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16483 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492
16493 #include <unistd.h>
16494
16495 int
16496 main ()
16497 {
16498
16499 if (setpgrp(1,1) == -1)
16500 exit (0);
16501 else
16502 exit (1);
16503
16504 ;
16505 return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510 (eval $ac_compile) 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag"
16518 || test ! -s conftest.err'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_func_setpgrp_void=no
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_func_setpgrp_void=yes
16536 fi
16537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16540 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16541 if test $ac_cv_func_setpgrp_void = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define SETPGRP_VOID 1
16544 _ACEOF
16545
16546 fi
16547 fi
16548
16549 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16550 # since sigsetjmp might only be defined as a macro.
16551 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16552 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16553 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562
16563 #include <setjmp.h>
16564
16565 int
16566 main ()
16567 {
16568 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16569 ;
16570 return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16575 (eval $ac_compile) 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag"
16583 || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest.$ac_objext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 gdb_cv_func_sigsetjmp=yes
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 gdb_cv_func_sigsetjmp=no
16601 fi
16602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16603 fi
16604 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16605 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16606 if test $gdb_cv_func_sigsetjmp = yes; then
16607
16608 cat >>confdefs.h <<\_ACEOF
16609 #define HAVE_SIGSETJMP 1
16610 _ACEOF
16611
16612 fi
16613
16614 # Assume we'll default to using the included libiberty regex.
16615 gdb_use_included_regex=yes
16616
16617 # However, if the system regex is GNU regex, then default to *not*
16618 # using the included regex.
16619 echo "$as_me:$LINENO: checking for GNU regex" >&5
16620 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16621 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <gnu-versions.h>
16631 int
16632 main ()
16633 {
16634 #define REGEX_INTERFACE_VERSION 1
16635 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16636 # error "Version mismatch"
16637 #endif
16638 ;
16639 return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 gdb_cv_have_gnu_regex=yes
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 gdb_cv_have_gnu_regex=no
16670 fi
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16674 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16675 if test $gdb_cv_have_gnu_regex = yes; then
16676 gdb_use_included_regex=no
16677 fi
16678
16679
16680 # Check whether --with-included-regex or --without-included-regex was given.
16681 if test "${with_included_regex+set}" = set; then
16682 withval="$with_included_regex"
16683 gdb_with_regex=$withval
16684 else
16685 gdb_with_regex=$gdb_use_included_regex
16686 fi;
16687 if test "$gdb_with_regex" = yes; then
16688
16689 cat >>confdefs.h <<\_ACEOF
16690 #define USE_INCLUDED_REGEX 1
16691 _ACEOF
16692
16693 fi
16694
16695 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16696 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16697 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16698 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <sys/param.h>
16708 #include <sys/proc.h>
16709
16710
16711 int
16712 main ()
16713 {
16714 static struct thread ac_aggr;
16715 if (ac_aggr.td_pcb)
16716 return 0;
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_member_struct_thread_td_pcb=yes
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <sys/param.h>
16755 #include <sys/proc.h>
16756
16757
16758 int
16759 main ()
16760 {
16761 static struct thread ac_aggr;
16762 if (sizeof ac_aggr.td_pcb)
16763 return 0;
16764 ;
16765 return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>conftest.er1
16771 ac_status=$?
16772 grep -v '^ *+' conftest.er1 >conftest.err
16773 rm -f conftest.er1
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -z "$ac_c_werror_flag"
16778 || test ! -s conftest.err'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest.$ac_objext'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 ac_cv_member_struct_thread_td_pcb=yes
16791 else
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_cv_member_struct_thread_td_pcb=no
16796 fi
16797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16798 fi
16799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16800 fi
16801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16802 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16803 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16804
16805 cat >>confdefs.h <<_ACEOF
16806 #define HAVE_STRUCT_THREAD_TD_PCB 1
16807 _ACEOF
16808
16809
16810 fi
16811
16812
16813 # See if <sys/lwp.h> defines `struct lwp`.
16814 echo "$as_me:$LINENO: checking for struct lwp" >&5
16815 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16816 if test "${gdb_cv_struct_lwp+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <sys/param.h>
16826 #include <sys/lwp.h>
16827 int
16828 main ()
16829 {
16830 struct lwp l;
16831 ;
16832 return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 gdb_cv_struct_lwp=yes
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 gdb_cv_struct_lwp=no
16863 fi
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16867 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16868 if test $gdb_cv_struct_lwp = yes; then
16869
16870 cat >>confdefs.h <<\_ACEOF
16871 #define HAVE_STRUCT_LWP 1
16872 _ACEOF
16873
16874 fi
16875
16876 # See if <machine/reg.h> degines `struct reg'.
16877 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16878 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16879 if test "${gdb_cv_struct_reg+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #include <sys/types.h>
16889 #include <machine/reg.h>
16890 int
16891 main ()
16892 {
16893 struct reg r;
16894 ;
16895 return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900 (eval $ac_compile) 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag"
16908 || test ! -s conftest.err'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 gdb_cv_struct_reg=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 gdb_cv_struct_reg=no
16926 fi
16927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16928 fi
16929 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16930 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16931 if test $gdb_cv_struct_reg = yes; then
16932
16933 cat >>confdefs.h <<\_ACEOF
16934 #define HAVE_STRUCT_REG 1
16935 _ACEOF
16936
16937 fi
16938
16939 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16940 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16941 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16942 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16943 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 #include <machine/reg.h>
16953
16954 int
16955 main ()
16956 {
16957 static struct reg ac_aggr;
16958 if (ac_aggr.r_fs)
16959 return 0;
16960 ;
16961 return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_member_struct_reg_r_fs=yes
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 #include <machine/reg.h>
16998
16999 int
17000 main ()
17001 {
17002 static struct reg ac_aggr;
17003 if (sizeof ac_aggr.r_fs)
17004 return 0;
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag"
17019 || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest.$ac_objext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_member_struct_reg_r_fs=yes
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_member_struct_reg_r_fs=no
17037 fi
17038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17039 fi
17040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041 fi
17042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17043 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17044 if test $ac_cv_member_struct_reg_r_fs = yes; then
17045
17046 cat >>confdefs.h <<_ACEOF
17047 #define HAVE_STRUCT_REG_R_FS 1
17048 _ACEOF
17049
17050
17051 fi
17052 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17053 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17054 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <machine/reg.h>
17064
17065 int
17066 main ()
17067 {
17068 static struct reg ac_aggr;
17069 if (ac_aggr.r_gs)
17070 return 0;
17071 ;
17072 return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077 (eval $ac_compile) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest.$ac_objext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_member_struct_reg_r_gs=yes
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <machine/reg.h>
17109
17110 int
17111 main ()
17112 {
17113 static struct reg ac_aggr;
17114 if (sizeof ac_aggr.r_gs)
17115 return 0;
17116 ;
17117 return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_member_struct_reg_r_gs=yes
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ac_cv_member_struct_reg_r_gs=no
17148 fi
17149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150 fi
17151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17152 fi
17153 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17154 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17155 if test $ac_cv_member_struct_reg_r_gs = yes; then
17156
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_STRUCT_REG_R_GS 1
17159 _ACEOF
17160
17161
17162 fi
17163
17164
17165 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17166 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17167 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17168 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 #include <sys/ptrace.h>
17178 int
17179 main ()
17180 {
17181 PTRACE_GETREGS;
17182 ;
17183 return 0;
17184 }
17185 _ACEOF
17186 rm -f conftest.$ac_objext
17187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17188 (eval $ac_compile) 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag"
17196 || test ! -s conftest.err'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 gdb_cv_have_ptrace_getregs=yes
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 gdb_cv_have_ptrace_getregs=no
17214 fi
17215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17216 fi
17217
17218 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17219 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17220 if test $gdb_cv_have_ptrace_getregs = yes; then
17221
17222 cat >>confdefs.h <<\_ACEOF
17223 #define HAVE_PTRACE_GETREGS 1
17224 _ACEOF
17225
17226 fi
17227
17228 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17229 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17230 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17231 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <sys/ptrace.h>
17241 int
17242 main ()
17243 {
17244 PTRACE_GETFPXREGS;
17245 ;
17246 return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 gdb_cv_have_ptrace_getfpxregs=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 gdb_cv_have_ptrace_getfpxregs=no
17277 fi
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 fi
17280
17281 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17282 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17283 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17284
17285 cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_PTRACE_GETFPXREGS 1
17287 _ACEOF
17288
17289 fi
17290
17291 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17292 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17293 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17294 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <sys/types.h>
17304 #include <sys/ptrace.h>
17305 int
17306 main ()
17307 {
17308 PT_GETDBREGS;
17309 ;
17310 return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 gdb_cv_have_pt_getdbregs=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 gdb_cv_have_pt_getdbregs=no
17341 fi
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 fi
17344
17345 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17346 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17347 if test $gdb_cv_have_pt_getdbregs = yes; then
17348
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_PT_GETDBREGS 1
17351 _ACEOF
17352
17353 fi
17354
17355 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17356 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17357 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17358 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 #include <sys/types.h>
17368 #include <sys/ptrace.h>
17369 int
17370 main ()
17371 {
17372 PT_GETXMMREGS;
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 gdb_cv_have_pt_getxmmregs=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 gdb_cv_have_pt_getxmmregs=no
17405 fi
17406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17407 fi
17408
17409 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17410 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17411 if test $gdb_cv_have_pt_getxmmregs = yes; then
17412
17413 cat >>confdefs.h <<\_ACEOF
17414 #define HAVE_PT_GETXMMREGS 1
17415 _ACEOF
17416
17417 fi
17418
17419 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17420
17421 if test "${target}" = "${host}"; then
17422 case "${host}" in
17423 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17424
17425 cat >>confdefs.h <<\_ACEOF
17426 #define NEW_PROC_API 1
17427 _ACEOF
17428
17429 ;;
17430 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17431
17432 cat >>confdefs.h <<\_ACEOF
17433 #define NEW_PROC_API 1
17434 _ACEOF
17435
17436 ;;
17437 mips-sgi-irix5*)
17438 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17439
17440 cat >>confdefs.h <<\_ACEOF
17441 #define _KMEMUSER 1
17442 _ACEOF
17443
17444 ;;
17445 esac
17446 fi
17447
17448 if test "$ac_cv_header_sys_procfs_h" = yes; then
17449 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17450 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17451 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460
17461 #define _SYSCALL32
17462 #include <sys/procfs.h>
17463 int
17464 main ()
17465 {
17466 pstatus_t avar
17467 ;
17468 return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473 (eval $ac_compile) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 bfd_cv_have_sys_procfs_type_pstatus_t=no
17499
17500 fi
17501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17502 fi
17503
17504 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17505
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_PSTATUS_T 1
17508 _ACEOF
17509
17510 fi
17511 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17512 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17513
17514 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17515 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17516 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525
17526 #define _SYSCALL32
17527 #include <sys/procfs.h>
17528 int
17529 main ()
17530 {
17531 prrun_t avar
17532 ;
17533 return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17538 (eval $ac_compile) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 bfd_cv_have_sys_procfs_type_prrun_t=yes
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 bfd_cv_have_sys_procfs_type_prrun_t=no
17564
17565 fi
17566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17567 fi
17568
17569 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17570
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_PRRUN_T 1
17573 _ACEOF
17574
17575 fi
17576 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17577 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17578
17579 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17580 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17581 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590
17591 #define _SYSCALL32
17592 #include <sys/procfs.h>
17593 int
17594 main ()
17595 {
17596 gregset_t avar
17597 ;
17598 return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603 (eval $ac_compile) 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag"
17611 || test ! -s conftest.err'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest.$ac_objext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 bfd_cv_have_sys_procfs_type_gregset_t=yes
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 bfd_cv_have_sys_procfs_type_gregset_t=no
17629
17630 fi
17631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17632 fi
17633
17634 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17635
17636 cat >>confdefs.h <<\_ACEOF
17637 #define HAVE_GREGSET_T 1
17638 _ACEOF
17639
17640 fi
17641 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17642 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17643
17644 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17645 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17646 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655
17656 #define _SYSCALL32
17657 #include <sys/procfs.h>
17658 int
17659 main ()
17660 {
17661 fpregset_t avar
17662 ;
17663 return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17668 (eval $ac_compile) 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -z "$ac_c_werror_flag"
17676 || test ! -s conftest.err'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17692
17693 bfd_cv_have_sys_procfs_type_fpregset_t=no
17694
17695 fi
17696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17697 fi
17698
17699 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17700
17701 cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_FPREGSET_T 1
17703 _ACEOF
17704
17705 fi
17706 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17707 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17708
17709 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17710 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17711 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720
17721 #define _SYSCALL32
17722 #include <sys/procfs.h>
17723 int
17724 main ()
17725 {
17726 prgregset_t avar
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17754 else
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 bfd_cv_have_sys_procfs_type_prgregset_t=no
17759
17760 fi
17761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17762 fi
17763
17764 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17765
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_PRGREGSET_T 1
17768 _ACEOF
17769
17770 fi
17771 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17772 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17773
17774 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17775 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17776 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785
17786 #define _SYSCALL32
17787 #include <sys/procfs.h>
17788 int
17789 main ()
17790 {
17791 prfpregset_t avar
17792 ;
17793 return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17798 (eval $ac_compile) 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17819 else
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17824
17825 fi
17826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828
17829 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17830
17831 cat >>confdefs.h <<\_ACEOF
17832 #define HAVE_PRFPREGSET_T 1
17833 _ACEOF
17834
17835 fi
17836 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17837 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17838
17839 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17840 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17841 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850
17851 #define _SYSCALL32
17852 #include <sys/procfs.h>
17853 int
17854 main ()
17855 {
17856 prgregset32_t avar
17857 ;
17858 return 0;
17859 }
17860 _ACEOF
17861 rm -f conftest.$ac_objext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17863 (eval $ac_compile) 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag"
17871 || test ! -s conftest.err'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17889
17890 fi
17891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17892 fi
17893
17894 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17895
17896 cat >>confdefs.h <<\_ACEOF
17897 #define HAVE_PRGREGSET32_T 1
17898 _ACEOF
17899
17900 fi
17901 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17902 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17903
17904 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17905 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17906 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915
17916 #define _SYSCALL32
17917 #include <sys/procfs.h>
17918 int
17919 main ()
17920 {
17921 prfpregset32_t avar
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17928 (eval $ac_compile) 2>conftest.er1
17929 ac_status=$?
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag"
17936 || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest.$ac_objext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17954
17955 fi
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 fi
17958
17959 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE_PRFPREGSET32_T 1
17963 _ACEOF
17964
17965 fi
17966 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17967 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17968
17969 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17970 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17971 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980
17981 #define _SYSCALL32
17982 #include <sys/procfs.h>
17983 int
17984 main ()
17985 {
17986 lwpid_t avar
17987 ;
17988 return 0;
17989 }
17990 _ACEOF
17991 rm -f conftest.$ac_objext
17992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17993 (eval $ac_compile) 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag"
18001 || test ! -s conftest.err'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 bfd_cv_have_sys_procfs_type_lwpid_t=no
18019
18020 fi
18021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18022 fi
18023
18024 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18025
18026 cat >>confdefs.h <<\_ACEOF
18027 #define HAVE_LWPID_T 1
18028 _ACEOF
18029
18030 fi
18031 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18032 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18033
18034 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18035 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18036 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h. */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045
18046 #define _SYSCALL32
18047 #include <sys/procfs.h>
18048 int
18049 main ()
18050 {
18051 psaddr_t avar
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058 (eval $ac_compile) 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest.$ac_objext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 bfd_cv_have_sys_procfs_type_psaddr_t=no
18084
18085 fi
18086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18087 fi
18088
18089 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18090
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_PSADDR_T 1
18093 _ACEOF
18094
18095 fi
18096 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18097 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18098
18099 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18100 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18101 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104 cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110
18111 #define _SYSCALL32
18112 #include <sys/procfs.h>
18113 int
18114 main ()
18115 {
18116 prsysent_t avar
18117 ;
18118 return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 bfd_cv_have_sys_procfs_type_prsysent_t=no
18149
18150 fi
18151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 fi
18153
18154 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18155
18156 cat >>confdefs.h <<\_ACEOF
18157 #define HAVE_PRSYSENT_T 1
18158 _ACEOF
18159
18160 fi
18161 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18162 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18163
18164 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18165 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18166 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175
18176 #define _SYSCALL32
18177 #include <sys/procfs.h>
18178 int
18179 main ()
18180 {
18181 pr_sigset_t avar
18182 ;
18183 return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188 (eval $ac_compile) 2>conftest.er1
18189 ac_status=$?
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
18195 { ac_try='test -z "$ac_c_werror_flag"
18196 || test ! -s conftest.err'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; } &&
18202 { ac_try='test -s conftest.$ac_objext'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18214
18215 fi
18216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18217 fi
18218
18219 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18220
18221 cat >>confdefs.h <<\_ACEOF
18222 #define HAVE_PR_SIGSET_T 1
18223 _ACEOF
18224
18225 fi
18226 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18227 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18228
18229 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18230 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18231 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240
18241 #define _SYSCALL32
18242 #include <sys/procfs.h>
18243 int
18244 main ()
18245 {
18246 pr_sigaction64_t avar
18247 ;
18248 return 0;
18249 }
18250 _ACEOF
18251 rm -f conftest.$ac_objext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18253 (eval $ac_compile) 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest.$ac_objext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18279
18280 fi
18281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18282 fi
18283
18284 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18285
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE_PR_SIGACTION64_T 1
18288 _ACEOF
18289
18290 fi
18291 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18292 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18293
18294 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18295 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18296 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305
18306 #define _SYSCALL32
18307 #include <sys/procfs.h>
18308 int
18309 main ()
18310 {
18311 pr_siginfo64_t avar
18312 ;
18313 return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18318 (eval $ac_compile) 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag"
18326 || test ! -s conftest.err'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest.$ac_objext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18344
18345 fi
18346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18347 fi
18348
18349 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18350
18351 cat >>confdefs.h <<\_ACEOF
18352 #define HAVE_PR_SIGINFO64_T 1
18353 _ACEOF
18354
18355 fi
18356 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18357 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18358
18359
18360
18361
18362
18363 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18364 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18365 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18366 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 if test "$cross_compiling" = yes; then
18370 gdb_cv_prfpregset_t_broken=yes
18371 else
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 #include <sys/procfs.h>
18379 int main ()
18380 {
18381 if (sizeof (prfpregset_t) == sizeof (void *))
18382 return 1;
18383 return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 gdb_cv_prfpregset_t_broken=no
18398 else
18399 echo "$as_me: program exited with status $ac_status" >&5
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18402
18403 ( exit $ac_status )
18404 gdb_cv_prfpregset_t_broken=yes
18405 fi
18406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18407 fi
18408 fi
18409
18410 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18411 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18412 if test $gdb_cv_prfpregset_t_broken = yes; then
18413
18414 cat >>confdefs.h <<\_ACEOF
18415 #define PRFPREGSET_T_BROKEN 1
18416 _ACEOF
18417
18418 fi
18419 fi
18420
18421
18422 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18423 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18424 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 #include <unistd.h>
18434 #include <sys/types.h>
18435 #include <sys/procfs.h>
18436
18437 int
18438 main ()
18439 {
18440
18441 int dummy;;
18442 dummy = ioctl(0, PIOCSET, &dummy);
18443
18444 ;
18445 return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 gdb_cv_have_procfs_piocset=yes
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 gdb_cv_have_procfs_piocset=no
18476 fi
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18478 fi
18479
18480 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18481 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18482 if test $gdb_cv_have_procfs_piocset = yes; then
18483
18484 cat >>confdefs.h <<\_ACEOF
18485 #define HAVE_PROCFS_PIOCSET 1
18486 _ACEOF
18487
18488 fi
18489 fi
18490
18491 if test ${host} = ${target} ; then
18492
18493 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18494 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18495 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include <link.h>
18505 int
18506 main ()
18507 {
18508 struct link_map lm; (void) lm.l_addr;
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 gdb_cv_have_struct_link_map_with_l_members=yes
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540 gdb_cv_have_struct_link_map_with_l_members=no
18541 fi
18542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18543 fi
18544
18545 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18546 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18547 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18548
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18551 _ACEOF
18552
18553 fi
18554
18555
18556 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18557 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18558 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include <sys/types.h>
18568 #include <link.h>
18569 int
18570 main ()
18571 {
18572 struct link_map lm; (void) lm.lm_addr;
18573 ;
18574 return 0;
18575 }
18576 _ACEOF
18577 rm -f conftest.$ac_objext
18578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_c_werror_flag"
18587 || test ! -s conftest.err'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest.$ac_objext'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 gdb_cv_have_struct_link_map_with_lm_members=yes
18600 else
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 gdb_cv_have_struct_link_map_with_lm_members=no
18605 fi
18606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18607 fi
18608
18609 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18610 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18611 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18612
18613 cat >>confdefs.h <<\_ACEOF
18614 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18615 _ACEOF
18616
18617 fi
18618
18619
18620 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18621 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18622 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 #include <sys/types.h>
18632 #ifdef HAVE_NLIST_H
18633 #include <nlist.h>
18634 #endif
18635 #include <link.h>
18636 int
18637 main ()
18638 {
18639 struct so_map lm; (void) lm.som_addr;
18640 ;
18641 return 0;
18642 }
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 gdb_cv_have_struct_so_map_with_som_members=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 gdb_cv_have_struct_so_map_with_som_members=no
18672 fi
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675
18676 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18677 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18678 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18679
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18682 _ACEOF
18683
18684 fi
18685
18686
18687 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18688 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18689 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 #define _SYSCALL32
18699 #include <sys/link.h>
18700 int
18701 main ()
18702 {
18703 struct link_map32 l;
18704 ;
18705 return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18710 (eval $ac_compile) 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag"
18718 || test ! -s conftest.err'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 gdb_cv_have_struct_link_map32=yes
18731 else
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 gdb_cv_have_struct_link_map32=no
18736 fi
18737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18738 fi
18739
18740 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18741 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18742 if test $gdb_cv_have_struct_link_map32 = yes; then
18743
18744 cat >>confdefs.h <<\_ACEOF
18745 #define HAVE_STRUCT_LINK_MAP32 1
18746 _ACEOF
18747
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define _SYSCALL32 1
18751 _ACEOF
18752
18753 fi
18754 fi
18755
18756 # Check if the compiler supports the `long long' type.
18757
18758 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18759 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18760 if test "${gdb_cv_c_long_long+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 extern long long foo;
18770 int
18771 main ()
18772 {
18773 switch (foo & 2) { case 0: return 1; }
18774 ;
18775 return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 gdb_cv_c_long_long=yes
18801 else
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 gdb_cv_c_long_long=no
18806 fi
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18808 fi
18809 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18810 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18811 if test $gdb_cv_c_long_long = yes; then
18812
18813 cat >>confdefs.h <<\_ACEOF
18814 #define CC_HAS_LONG_LONG 1
18815 _ACEOF
18816
18817 fi
18818
18819 # Check if the compiler and runtime support printing long longs.
18820
18821 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18822 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18823 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 if test "$cross_compiling" = yes; then
18827 gdb_cv_printf_has_long_long=no
18828 else
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 int
18837 main ()
18838 {
18839 char buf[32];
18840 long long l = 0;
18841 l = (l << 16) + 0x0123;
18842 l = (l << 16) + 0x4567;
18843 l = (l << 16) + 0x89ab;
18844 l = (l << 16) + 0xcdef;
18845 sprintf (buf, "0x%016llx", l);
18846 return (strcmp ("0x0123456789abcdef", buf));
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853 (eval $ac_link) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 gdb_cv_printf_has_long_long=yes
18863 else
18864 echo "$as_me: program exited with status $ac_status" >&5
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868 ( exit $ac_status )
18869 gdb_cv_printf_has_long_long=no
18870 fi
18871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18872 fi
18873 fi
18874 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18875 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18876 if test $gdb_cv_printf_has_long_long = yes; then
18877
18878 cat >>confdefs.h <<\_ACEOF
18879 #define PRINTF_HAS_LONG_LONG 1
18880 _ACEOF
18881
18882 fi
18883
18884 # Check if the compiler and runtime support printing decfloats.
18885
18886 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18887 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18888 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 if test "$cross_compiling" = yes; then
18892 gdb_cv_printf_has_decfloat=no
18893 else
18894 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h. */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 $ac_includes_default
18901 int
18902 main ()
18903 {
18904 char buf[64];
18905 _Decimal32 d32 = 1.2345df;
18906 _Decimal64 d64 = 1.2345dd;
18907 _Decimal128 d128 = 1.2345dl;
18908 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18909 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18910 ;
18911 return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; }; then
18925 gdb_cv_printf_has_decfloat=yes
18926 else
18927 echo "$as_me: program exited with status $ac_status" >&5
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 ( exit $ac_status )
18932 gdb_cv_printf_has_decfloat=no
18933 fi
18934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18935 fi
18936 fi
18937 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18938 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18939 if test $gdb_cv_printf_has_decfloat = yes; then
18940
18941 cat >>confdefs.h <<\_ACEOF
18942 #define PRINTF_HAS_DECFLOAT 1
18943 _ACEOF
18944
18945 fi
18946
18947 # Check if the compiler supports the `long double' type. We can't use
18948 # AC_C_LONG_DOUBLE because that one does additional checks on the
18949 # constants defined in <float.h> that fail on some systems,
18950 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18951
18952 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18953 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18954 if test "${gdb_cv_c_long_double+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 long double foo;
18964 _ACEOF
18965 rm -f conftest.$ac_objext
18966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18967 (eval $ac_compile) 2>conftest.er1
18968 ac_status=$?
18969 grep -v '^ *+' conftest.er1 >conftest.err
18970 rm -f conftest.er1
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -z "$ac_c_werror_flag"
18975 || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 gdb_cv_c_long_double=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 gdb_cv_c_long_double=no
18993 fi
18994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995 fi
18996 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18997 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18998 if test $gdb_cv_c_long_double = yes; then
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_LONG_DOUBLE 1
19002 _ACEOF
19003
19004 fi
19005
19006 # Check if the compiler and runtime support printing long doubles.
19007
19008 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19009 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19010 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013 if test "$cross_compiling" = yes; then
19014 gdb_cv_printf_has_long_double=no
19015 else
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 $ac_includes_default
19023 int
19024 main ()
19025 {
19026 char buf[16];
19027 long double f = 3.141592653;
19028 sprintf (buf, "%Lg", f);
19029 return (strncmp ("3.14159", buf, 7));
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 gdb_cv_printf_has_long_double=yes
19046 else
19047 echo "$as_me: program exited with status $ac_status" >&5
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 ( exit $ac_status )
19052 gdb_cv_printf_has_long_double=no
19053 fi
19054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19055 fi
19056 fi
19057 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19058 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19059 if test $gdb_cv_printf_has_long_double = yes; then
19060
19061 cat >>confdefs.h <<\_ACEOF
19062 #define PRINTF_HAS_LONG_DOUBLE 1
19063 _ACEOF
19064
19065 fi
19066
19067 # Check if the compiler and runtime support scanning long doubles.
19068
19069 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19070 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19071 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 if test "$cross_compiling" = yes; then
19075 gdb_cv_scanf_has_long_double=no
19076 else
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 #include <stdio.h>
19084 int
19085 main ()
19086 {
19087 char *buf = "3.141592653";
19088 long double f = 0;
19089 sscanf (buf, "%Lg", &f);
19090 return !(f > 3.14159 && f < 3.14160);
19091 ;
19092 return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest$ac_exeext
19096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19097 (eval $ac_link) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 gdb_cv_scanf_has_long_double=yes
19107 else
19108 echo "$as_me: program exited with status $ac_status" >&5
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ( exit $ac_status )
19113 gdb_cv_scanf_has_long_double=no
19114 fi
19115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19116 fi
19117 fi
19118 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19119 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19120 if test $gdb_cv_scanf_has_long_double = yes; then
19121
19122 cat >>confdefs.h <<\_ACEOF
19123 #define SCANF_HAS_LONG_DOUBLE 1
19124 _ACEOF
19125
19126 fi
19127
19128 case ${host_os} in
19129 aix*)
19130 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19131 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19132 if test "${gdb_cv_bigtoc+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135
19136 SAVE_LDFLAGS=$LDFLAGS
19137
19138 case $GCC in
19139 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19140 *) gdb_cv_bigtoc=-bbigtoc ;;
19141 esac
19142
19143 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h. */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150
19151 int
19152 main ()
19153 {
19154 int i;
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest$ac_exeext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 :
19182 else
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 gdb_cv_bigtoc=
19187 fi
19188 rm -f conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LDFLAGS="${SAVE_LDFLAGS}"
19191
19192 fi
19193 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19194 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19195 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19196 ;;
19197 esac
19198
19199
19200
19201 if test ${build} = ${host} -a ${host} = ${target} ; then
19202 case ${host_os} in
19203 hpux*)
19204 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19205 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19206 if test -f /usr/include/dce/cma_config.h ; then
19207 if test "$GCC" = "yes" ; then
19208 echo "$as_me:$LINENO: result: yes" >&5
19209 echo "${ECHO_T}yes" >&6
19210
19211 cat >>confdefs.h <<\_ACEOF
19212 #define HAVE_HPUX_THREAD_SUPPORT 1
19213 _ACEOF
19214
19215 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19216 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19217 else
19218 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19219 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19220 fi
19221 else
19222 echo "$as_me:$LINENO: result: no" >&5
19223 echo "${ECHO_T}no" >&6
19224 fi
19225 ;;
19226 solaris*)
19227 # See if thread_db library is around for Solaris thread debugging.
19228 # Note that we must explicitly test for version 1 of the library
19229 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19230 # the same API.
19231 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19232 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19233 if test -f /usr/lib/libthread_db.so.1 ; then
19234 echo "$as_me:$LINENO: result: yes" >&5
19235 echo "${ECHO_T}yes" >&6
19236
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_THREAD_DB_LIB 1
19239 _ACEOF
19240
19241 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19242 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19243
19244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249 ac_check_lib_save_LIBS=$LIBS
19250 LIBS="-ldl $LIBS"
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257
19258 /* Override any gcc2 internal prototype to avoid an error. */
19259 #ifdef __cplusplus
19260 extern "C"
19261 #endif
19262 /* We use char because int might match the return type of a gcc2
19263 builtin and then its argument prototype would still apply. */
19264 char dlopen ();
19265 int
19266 main ()
19267 {
19268 dlopen ();
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19275 (eval $ac_link) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest$ac_exeext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_lib_dl_dlopen=yes
19296 else
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ac_cv_lib_dl_dlopen=no
19301 fi
19302 rm -f conftest.err conftest.$ac_objext \
19303 conftest$ac_exeext conftest.$ac_ext
19304 LIBS=$ac_check_lib_save_LIBS
19305 fi
19306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19308 if test $ac_cv_lib_dl_dlopen = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_LIBDL 1
19311 _ACEOF
19312
19313 LIBS="-ldl $LIBS"
19314
19315 fi
19316
19317 if test "$GCC" = "yes" ; then
19318 # The GNU linker requires the -export-dynamic option to make
19319 # all symbols visible in the dynamic symbol table.
19320 hold_ldflags=$LDFLAGS
19321 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19322 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19323 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h. */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330
19331 int
19332 main ()
19333 {
19334 int i;
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try='test -z "$ac_c_werror_flag"
19349 || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest$ac_exeext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 found=yes
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 found=no
19367 fi
19368 rm -f conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 LDFLAGS=$hold_ldflags
19371 echo "$as_me:$LINENO: result: $found" >&5
19372 echo "${ECHO_T}$found" >&6
19373 if test $found = yes; then
19374 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19375 fi
19376 fi
19377 # Sun randomly tweaked the prototypes in <proc_service.h>
19378 # at one point.
19379 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19380 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19381 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391
19392 #include <proc_service.h>
19393 ps_err_e ps_pdwrite
19394 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19395
19396 int
19397 main ()
19398 {
19399
19400 ;
19401 return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406 (eval $ac_compile) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -z "$ac_c_werror_flag"
19414 || test ! -s conftest.err'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest.$ac_objext'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
19426 gdb_cv_proc_service_is_old=no
19427 else
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 gdb_cv_proc_service_is_old=yes
19432 fi
19433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19434
19435 fi
19436
19437 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19438 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19439 if test $gdb_cv_proc_service_is_old = yes; then
19440
19441 cat >>confdefs.h <<\_ACEOF
19442 #define PROC_SERVICE_IS_OLD 1
19443 _ACEOF
19444
19445 fi
19446 else
19447 echo "$as_me:$LINENO: result: no" >&5
19448 echo "${ECHO_T}no" >&6
19449 fi
19450 ;;
19451 aix*)
19452 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19453 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19454 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 #include <sys/pthdebug.h>
19464 int
19465 main ()
19466 {
19467 #ifndef PTHDB_VERSION_3
19468 #error
19469 #endif
19470 ;
19471 return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476 (eval $ac_compile) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 gdb_cv_have_aix_thread_debug=yes
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 gdb_cv_have_aix_thread_debug=no
19502 fi
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504 fi
19505
19506 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19507 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19508 if test $gdb_cv_have_aix_thread_debug = yes; then
19509 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19510 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19511 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19512 fi
19513 ;;
19514 esac
19515
19516 fi
19517
19518 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19519 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19520 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19521 if test "${gdb_cv_thread_db_h_has_td_notalloc+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_NOTALLOC;
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_notalloc=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_notalloc=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_notalloc" >&5
19573 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19574 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19575 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19576 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <thread_db.h>
19586 int
19587 main ()
19588 {
19589 int i = TD_VERSION;
19590 ;
19591 return 0;
19592 }
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -z "$ac_c_werror_flag"
19604 || test ! -s conftest.err'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 gdb_cv_thread_db_h_has_td_version=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 gdb_cv_thread_db_h_has_td_version=no
19622
19623 fi
19624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19625
19626 fi
19627 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19628 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19629 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19630 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19631 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <thread_db.h>
19641 int
19642 main ()
19643 {
19644 int i = TD_NOTLS;
19645 ;
19646 return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 gdb_cv_thread_db_h_has_td_notls=yes
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 gdb_cv_thread_db_h_has_td_notls=no
19677
19678 fi
19679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680
19681 fi
19682 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19683 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19684 fi
19685 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19686
19687 cat >>confdefs.h <<\_ACEOF
19688 #define THREAD_DB_HAS_TD_NOTALLOC 1
19689 _ACEOF
19690
19691 fi
19692 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19693
19694 cat >>confdefs.h <<\_ACEOF
19695 #define THREAD_DB_HAS_TD_VERSION 1
19696 _ACEOF
19697
19698 fi
19699 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19700
19701 cat >>confdefs.h <<\_ACEOF
19702 #define THREAD_DB_HAS_TD_NOTLS 1
19703 _ACEOF
19704
19705 fi
19706
19707 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19708 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19709 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19710 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 #include <sys/syscall.h>
19720 int
19721 main ()
19722 {
19723 int i = __NR_tkill;
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 gdb_cv_sys_syscall_h_has_tkill=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 gdb_cv_sys_syscall_h_has_tkill=no
19756
19757 fi
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759
19760 fi
19761 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19762 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19763 fi
19764 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19765
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_TKILL_SYSCALL 1
19768 _ACEOF
19769
19770 fi
19771
19772 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19773 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19774 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 #include <sys/personality.h>
19784
19785 int
19786 main ()
19787 {
19788 #ifndef ADDR_NO_RANDOMIZE
19789 char *p = (char *) ADDR_NO_RANDOMIZE;
19790 #endif
19791
19792 ;
19793 return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext
19797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19798 (eval $ac_compile) 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_c_werror_flag"
19806 || test ! -s conftest.err'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19819 else
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19824 fi
19825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19826 fi
19827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19828 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19829 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19830
19831 cat >>confdefs.h <<_ACEOF
19832 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19833 _ACEOF
19834
19835
19836 else
19837 cat >>confdefs.h <<_ACEOF
19838 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19839 _ACEOF
19840
19841
19842 fi
19843
19844
19845
19846 if test "$cross_compiling" = yes; then
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #include <sys/personality.h>
19854 int
19855 main ()
19856 {
19857
19858 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19859 # define ADDR_NO_RANDOMIZE 0x0040000
19860 # endif
19861 /* Test the flag could be set and stays set. */
19862 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19863 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19864 return 1
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_c_werror_flag"
19879 || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest$ac_exeext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 have_personality=true
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 have_personality=false
19897 fi
19898 rm -f conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 else
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <sys/personality.h>
19908 int
19909 main ()
19910 {
19911
19912 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19913 # define ADDR_NO_RANDOMIZE 0x0040000
19914 # endif
19915 /* Test the flag could be set and stays set. */
19916 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19917 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19918 return 1
19919 ;
19920 return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest$ac_exeext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19925 (eval $ac_link) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 have_personality=true
19935 else
19936 echo "$as_me: program exited with status $ac_status" >&5
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ( exit $ac_status )
19941 have_personality=false
19942 fi
19943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19944 fi
19945 if $have_personality
19946 then
19947
19948 cat >>confdefs.h <<\_ACEOF
19949 #define HAVE_PERSONALITY 1
19950 _ACEOF
19951
19952 fi
19953
19954
19955 target_sysroot_reloc=0
19956
19957 # Check whether --with-sysroot or --without-sysroot was given.
19958 if test "${with_sysroot+set}" = set; then
19959 withval="$with_sysroot"
19960
19961 case ${with_sysroot} in
19962 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19963 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19964 esac
19965
19966 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19967
19968 if test "x$prefix" = xNONE; then
19969 test_prefix=/usr/local
19970 else
19971 test_prefix=$prefix
19972 fi
19973 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19974 test_exec_prefix=$test_prefix
19975 else
19976 test_exec_prefix=$exec_prefix
19977 fi
19978 case ${TARGET_SYSTEM_ROOT} in
19979 "${test_prefix}"|"${test_prefix}/"*|\
19980 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19981 '${prefix}'|'${prefix}/'*|\
19982 '${exec_prefix}'|'${exec_prefix}/'*)
19983 target_sysroot_reloc=1
19984 ;;
19985 esac
19986
19987 else
19988
19989 TARGET_SYSTEM_ROOT=
19990 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19991
19992 fi;
19993 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
19994
19995
19996
19997
19998
19999 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
20000 if test "${with_system_gdbinit+set}" = set; then
20001 withval="$with_system_gdbinit"
20002
20003 SYSTEM_GDBINIT=$withval
20004 else
20005 SYSTEM_GDBINIT=
20006 fi;
20007
20008 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20010 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
20011 ac_define_dir=`eval echo $ac_define_dir`
20012
20013 cat >>confdefs.h <<_ACEOF
20014 #define SYSTEM_GDBINIT "$ac_define_dir"
20015 _ACEOF
20016
20017
20018
20019 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20020 if test "x$prefix" = xNONE; then
20021 test_prefix=/usr/local
20022 else
20023 test_prefix=$prefix
20024 fi
20025 else
20026 test_prefix=$exec_prefix
20027 fi
20028 value=0
20029 case ${ac_define_dir} in
20030 "${test_prefix}"|"${test_prefix}/"*|\
20031 '${exec_prefix}'|'${exec_prefix}/'*)
20032 value=1
20033 ;;
20034 esac
20035
20036 cat >>confdefs.h <<_ACEOF
20037 #define SYSTEM_GDBINIT_RELOCATABLE $value
20038 _ACEOF
20039
20040
20041
20042 # Check whether --enable-werror or --disable-werror was given.
20043 if test "${enable_werror+set}" = set; then
20044 enableval="$enable_werror"
20045 case "${enableval}" in
20046 yes | y) ERROR_ON_WARNING="yes" ;;
20047 no | n) ERROR_ON_WARNING="no" ;;
20048 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20049 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20050 { (exit 1); exit 1; }; } ;;
20051 esac
20052 fi;
20053
20054 # Enable -Werror by default when using gcc
20055 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20056 ERROR_ON_WARNING=yes
20057 fi
20058
20059 WERROR_CFLAGS=""
20060 if test "${ERROR_ON_WARNING}" = yes ; then
20061 WERROR_CFLAGS="-Werror"
20062 fi
20063
20064 # The entries after -Wno-pointer-sign are disabled warnings which may
20065 # be enabled in the future, which can not currently be used to build
20066 # GDB.
20067 # NOTE: If you change this list, remember to update
20068 # gdb/doc/gdbint.texinfo.
20069 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
20070 -Wformat-nonliteral -Wno-pointer-sign \
20071 -Wno-unused -Wno-switch -Wno-char-subscripts"
20072
20073 # Enable -Wno-format by default when using gcc on mingw since many
20074 # GCC versions complain about %I64.
20075 case "${host}" in
20076 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
20077 esac
20078
20079 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20080 if test "${enable_build_warnings+set}" = set; then
20081 enableval="$enable_build_warnings"
20082 case "${enableval}" in
20083 yes) ;;
20084 no) build_warnings="-w";;
20085 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20086 build_warnings="${build_warnings} ${t}";;
20087 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20088 build_warnings="${t} ${build_warnings}";;
20089 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20090 esac
20091 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20092 echo "Setting compiler warning flags = $build_warnings" 6>&1
20093 fi
20094 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20095 if test "${enable_gdb_build_warnings+set}" = set; then
20096 enableval="$enable_gdb_build_warnings"
20097 case "${enableval}" in
20098 yes) ;;
20099 no) build_warnings="-w";;
20100 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20101 build_warnings="${build_warnings} ${t}";;
20102 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20103 build_warnings="${t} ${build_warnings}";;
20104 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20105 esac
20106 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20107 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20108 fi
20109 fi; WARN_CFLAGS=""
20110 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20111 then
20112 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20113 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20114 # Separate out the -Werror flag as some files just cannot be
20115 # compiled with it enabled.
20116 for w in ${build_warnings}; do
20117 case $w in
20118 -Werr*) WERROR_CFLAGS=-Werror ;;
20119 *) # Check that GCC accepts it
20120 saved_CFLAGS="$CFLAGS"
20121 CFLAGS="$CFLAGS $w"
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128
20129 int
20130 main ()
20131 {
20132
20133 ;
20134 return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20139 (eval $ac_compile) 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_c_werror_flag"
20147 || test ! -s conftest.err'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest.$ac_objext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 WARN_CFLAGS="${WARN_CFLAGS} $w"
20160 else
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 fi
20165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20166 CFLAGS="$saved_CFLAGS"
20167 esac
20168 done
20169 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20170 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20171 fi
20172
20173
20174
20175 # In the Cygwin environment, we need some additional flags.
20176 echo "$as_me:$LINENO: checking for cygwin" >&5
20177 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20178 if test "${gdb_cv_os_cygwin+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187
20188 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20189 lose
20190 #endif
20191 _ACEOF
20192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20193 $EGREP "lose" >/dev/null 2>&1; then
20194 gdb_cv_os_cygwin=yes
20195 else
20196 gdb_cv_os_cygwin=no
20197 fi
20198 rm -f conftest*
20199
20200 fi
20201 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20202 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20203
20204
20205 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20206 case ${host} in
20207 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20208 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20209 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20210 esac
20211
20212
20213 # libreadline needs libuser32.a in a cygwin environment
20214 WIN32LIBS=
20215 if test x$gdb_cv_os_cygwin = xyes; then
20216 WIN32LIBS="-luser32"
20217 case "${target}" in
20218 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20219 ;;
20220 esac
20221 fi
20222
20223 # The ser-tcp.c module requires sockets.
20224 case ${host} in
20225 *mingw32*)
20226
20227 cat >>confdefs.h <<\_ACEOF
20228 #define USE_WIN32API 1
20229 _ACEOF
20230
20231 WIN32LIBS="$WIN32LIBS -lws2_32"
20232 ;;
20233 esac
20234
20235
20236 # Add ELF support to GDB, but only if BFD includes ELF support.
20237 OLD_CFLAGS=$CFLAGS
20238 OLD_LDFLAGS=$LDFLAGS
20239 OLD_LIBS=$LIBS
20240 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20241 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20242 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20243 LIBS="-lbfd -liberty $intl $LIBS"
20244 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20245 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20246 if test "${gdb_cv_var_elf+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <stdlib.h>
20256 #include "bfd.h"
20257 #include "elf-bfd.h"
20258
20259 int
20260 main ()
20261 {
20262 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20263 ;
20264 return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269 (eval $ac_link) 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_c_werror_flag"
20277 || test ! -s conftest.err'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest$ac_exeext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 gdb_cv_var_elf=yes
20290 else
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 gdb_cv_var_elf=no
20295 fi
20296 rm -f conftest.err conftest.$ac_objext \
20297 conftest$ac_exeext conftest.$ac_ext
20298 fi
20299 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20300 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20301 if test $gdb_cv_var_elf = yes; then
20302 CONFIG_OBS="$CONFIG_OBS elfread.o"
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_ELF 1
20306 _ACEOF
20307
20308 fi
20309 CFLAGS=$OLD_CFLAGS
20310 LDFLAGS=$OLD_LDFLAGS
20311 LIBS=$OLD_LIBS
20312
20313 # Add any host-specific objects to GDB.
20314 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20315
20316 LIBGUI="../libgui/src/libgui.a"
20317 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20318
20319
20320
20321 WIN32LDAPP=
20322
20323
20324
20325 case "${host}" in
20326 *-*-cygwin* | *-*-mingw* )
20327 configdir="win"
20328 ;;
20329 *)
20330 configdir="unix"
20331 ;;
20332 esac
20333
20334 GDBTKLIBS=
20335 if test "${enable_gdbtk}" = "yes"; then
20336
20337 # Gdbtk must have an absolute path to srcdir in order to run
20338 # properly when not installed.
20339 here=`pwd`
20340 cd ${srcdir}
20341 GDBTK_SRC_DIR=`pwd`
20342 cd $here
20343
20344
20345 #
20346 # Ok, lets find the tcl configuration
20347 # First, look for one uninstalled.
20348 # the alternative search directory is invoked by --with-tcl
20349 #
20350
20351 if test x"${no_tcl}" = x ; then
20352 # we reset no_tcl in case something fails here
20353 no_tcl=true
20354
20355 # Check whether --with-tcl or --without-tcl was given.
20356 if test "${with_tcl+set}" = set; then
20357 withval="$with_tcl"
20358 with_tclconfig=${withval}
20359 fi;
20360 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20361 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20362 if test "${ac_cv_c_tclconfig+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365
20366
20367 # First check to see if --with-tcl was specified.
20368 case "${host}" in
20369 *-*-cygwin*) platDir="win" ;;
20370 *) platDir="unix" ;;
20371 esac
20372 if test x"${with_tclconfig}" != x ; then
20373 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20374 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20375 else
20376 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20377 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20378 { (exit 1); exit 1; }; }
20379 fi
20380 fi
20381
20382 # then check for a private Tcl installation
20383 if test x"${ac_cv_c_tclconfig}" = x ; then
20384 for i in \
20385 ../tcl \
20386 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20387 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20388 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20389 ../../tcl \
20390 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20391 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20392 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20393 ../../../tcl \
20394 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20395 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20396 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20397 if test -f "$i/$platDir/tclConfig.sh" ; then
20398 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20399 break
20400 fi
20401 done
20402 fi
20403
20404 # on Darwin, check in Framework installation locations
20405 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20406 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20407 `ls -d /Library/Frameworks 2>/dev/null` \
20408 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20409 `ls -d /System/Library/Frameworks 2>/dev/null` \
20410 ; do
20411 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20412 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20413 break
20414 fi
20415 done
20416 fi
20417
20418 # check in a few common install locations
20419 if test x"${ac_cv_c_tclconfig}" = x ; then
20420 for i in `ls -d ${libdir} 2>/dev/null` \
20421 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20422 `ls -d ${prefix}/lib 2>/dev/null` \
20423 `ls -d /usr/local/lib 2>/dev/null` \
20424 `ls -d /usr/contrib/lib 2>/dev/null` \
20425 `ls -d /usr/lib 2>/dev/null` \
20426 ; do
20427 if test -f "$i/tclConfig.sh" ; then
20428 ac_cv_c_tclconfig=`(cd $i; pwd)`
20429 break
20430 fi
20431 done
20432 fi
20433
20434 # check in a few other private locations
20435 if test x"${ac_cv_c_tclconfig}" = x ; then
20436 for i in \
20437 ${srcdir}/../tcl \
20438 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20439 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20440 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20441 if test -f "$i/$platDir/tclConfig.sh" ; then
20442 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20443 break
20444 fi
20445 done
20446 fi
20447
20448 fi
20449
20450
20451 if test x"${ac_cv_c_tclconfig}" = x ; then
20452 TCL_BIN_DIR="# no Tcl configs found"
20453 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20454 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20455 else
20456 no_tcl=
20457 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20458 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20459 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20460 fi
20461 fi
20462
20463
20464 # If $no_tk is nonempty, then we can't do Tk, and there is no
20465 # point to doing Tcl.
20466
20467 #
20468 # Ok, lets find the tk configuration
20469 # First, look for one uninstalled.
20470 # the alternative search directory is invoked by --with-tk
20471 #
20472
20473 if test x"${no_tk}" = x ; then
20474 # we reset no_tk in case something fails here
20475 no_tk=true
20476
20477 # Check whether --with-tk or --without-tk was given.
20478 if test "${with_tk+set}" = set; then
20479 withval="$with_tk"
20480 with_tkconfig=${withval}
20481 fi;
20482 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20483 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20484 if test "${ac_cv_c_tkconfig+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487
20488
20489 # First check to see if --with-tkconfig was specified.
20490 if test x"${with_tkconfig}" != x ; then
20491 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20492 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20493 else
20494 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20495 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20496 { (exit 1); exit 1; }; }
20497 fi
20498 fi
20499
20500 # then check for a private Tk library
20501 case "${host}" in
20502 *-*-cygwin*) platDir="win" ;;
20503 *) platDir="unix" ;;
20504 esac
20505 if test x"${ac_cv_c_tkconfig}" = x ; then
20506 for i in \
20507 ../tk \
20508 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20509 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20510 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20511 ../../tk \
20512 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20513 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20514 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20515 ../../../tk \
20516 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20517 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20518 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20519 if test -f "$i/$platDir/tkConfig.sh" ; then
20520 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20521 break
20522 fi
20523 done
20524 fi
20525
20526 # on Darwin, check in Framework installation locations
20527 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20528 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20529 `ls -d /Library/Frameworks 2>/dev/null` \
20530 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20531 `ls -d /System/Library/Frameworks 2>/dev/null` \
20532 ; do
20533 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20534 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20535 break
20536 fi
20537 done
20538 fi
20539
20540 # check in a few common install locations
20541 if test x"${ac_cv_c_tkconfig}" = x ; then
20542 for i in `ls -d ${libdir} 2>/dev/null` \
20543 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20544 `ls -d ${prefix}/lib 2>/dev/null` \
20545 `ls -d /usr/local/lib 2>/dev/null` \
20546 `ls -d /usr/contrib/lib 2>/dev/null` \
20547 `ls -d /usr/lib 2>/dev/null` \
20548 ; do
20549 if test -f "$i/tkConfig.sh" ; then
20550 ac_cv_c_tkconfig=`(cd $i; pwd)`
20551 break
20552 fi
20553 done
20554 fi
20555 # check in a few other private locations
20556 if test x"${ac_cv_c_tkconfig}" = x ; then
20557 for i in \
20558 ${srcdir}/../tk \
20559 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20560 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20561 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20562 if test -f "$i/$platDir/tkConfig.sh" ; then
20563 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20564 break
20565 fi
20566 done
20567 fi
20568
20569 fi
20570
20571
20572 if test x"${ac_cv_c_tkconfig}" = x ; then
20573 TK_BIN_DIR="# no Tk configs found"
20574 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20575 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20576 else
20577 no_tk=
20578 TK_BIN_DIR=${ac_cv_c_tkconfig}
20579 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20580 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20581 fi
20582 fi
20583
20584
20585 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20586
20587 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20588 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20589
20590 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20591 echo "$as_me:$LINENO: result: loading" >&5
20592 echo "${ECHO_T}loading" >&6
20593 . ${TCL_BIN_DIR}/tclConfig.sh
20594 else
20595 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20596 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20597 fi
20598
20599 # eval is required to do the TCL_DBGX substitution
20600 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20601 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20602
20603 # If the TCL_BIN_DIR is the build directory (not the install directory),
20604 # then set the common variable name to the value of the build variables.
20605 # For example, the variable TCL_LIB_SPEC will be set to the value
20606 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20607 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20608 # installed and uninstalled version of Tcl.
20609 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20610 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20611 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20612 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20613 elif test "`uname -s`" = "Darwin"; then
20614 # If Tcl was built as a framework, attempt to use the libraries
20615 # from the framework at the given location so that linking works
20616 # against Tcl.framework installed in an arbitary location.
20617 case ${TCL_DEFS} in
20618 *TCL_FRAMEWORK*)
20619 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20620 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20621 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20622 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20623 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20624 break
20625 fi
20626 done
20627 fi
20628 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20629 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20630 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20631 fi
20632 ;;
20633 esac
20634 fi
20635
20636 # eval is required to do the TCL_DBGX substitution
20637 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20638 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20639 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20640 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656 # Check for in-tree tcl
20657 here=`pwd`
20658 cd ${srcdir}/..
20659 topdir=`pwd`
20660 cd ${here}
20661
20662 intree="no"
20663 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20664 intree="yes"
20665 fi
20666
20667 # Find Tcl private headers
20668 if test x"${intree}" = xno; then
20669
20670 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20671 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20672 private_dir=""
20673 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20674 if test -f ${dir}/tclInt.h ; then
20675 private_dir=${dir}
20676 fi
20677
20678 if test x"${private_dir}" = x; then
20679 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20680 echo "$as_me: error: could not find private Tcl headers" >&2;}
20681 { (exit 1); exit 1; }; }
20682 else
20683 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20684 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20685 echo "${ECHO_T}${private_dir}" >&6
20686 fi
20687
20688 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20689 TCL_LIBRARY="${TCL_LIB_SPEC}"
20690 TCL_DEPS=""
20691 else
20692 # If building tcl in the same src tree, private headers
20693 # are not needed, but we need to be sure to use the right
20694 # headers library
20695 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20696 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20697 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20698 fi
20699
20700
20701
20702
20703
20704 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20705 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20706
20707 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20708 echo "$as_me:$LINENO: result: loading" >&5
20709 echo "${ECHO_T}loading" >&6
20710 . ${TK_BIN_DIR}/tkConfig.sh
20711 else
20712 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20713 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20714 fi
20715
20716 # eval is required to do the TK_DBGX substitution
20717 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20718 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20719
20720 # If the TK_BIN_DIR is the build directory (not the install directory),
20721 # then set the common variable name to the value of the build variables.
20722 # For example, the variable TK_LIB_SPEC will be set to the value
20723 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20724 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20725 # installed and uninstalled version of Tcl.
20726 if test -f "${TK_BIN_DIR}/Makefile" ; then
20727 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20728 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20729 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20730 elif test "`uname -s`" = "Darwin"; then
20731 # If Tk was built as a framework, attempt to use the libraries
20732 # from the framework at the given location so that linking works
20733 # against Tk.framework installed in an arbitary location.
20734 case ${TK_DEFS} in
20735 *TK_FRAMEWORK*)
20736 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20737 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20738 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20739 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20740 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20741 break
20742 fi
20743 done
20744 fi
20745 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20746 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20747 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20748 fi
20749 ;;
20750 esac
20751 fi
20752
20753 # eval is required to do the TK_DBGX substitution
20754 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20755 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20756 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20757 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772 # Check for in-tree Tk
20773 intree="no"
20774 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20775 intree="yes"
20776 fi
20777
20778 # Find Tk private headers
20779 if test x"${intree}" = xno; then
20780
20781 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20782 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20783 private_dir=""
20784 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20785 if test -f ${dir}/tkInt.h; then
20786 private_dir=${dir}
20787 fi
20788
20789 if test x"${private_dir}" = x; then
20790 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20791 echo "$as_me: error: could not find Tk private headers" >&2;}
20792 { (exit 1); exit 1; }; }
20793 else
20794 TK_PRIVATE_INCLUDE="-I${private_dir}"
20795 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20796 echo "${ECHO_T}${private_dir}" >&6
20797 fi
20798
20799 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20800 TK_LIBRARY=${TK_LIB_SPEC}
20801 TK_DEPS=""
20802 else
20803 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20804 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20805 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20806 fi
20807
20808
20809
20810
20811
20812 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20813
20814 # Include some libraries that Tcl and Tk want.
20815 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20816 # Yes, the ordering seems wrong here. But it isn't.
20817 # TK_LIBS is the list of libraries that need to be linked
20818 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20819 # were in LIBS then any link tests after this point would
20820 # try to include things like `$(LIBGUI)', which wouldn't work.
20821 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20822
20823 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20824 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20825 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20826 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20827 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20828 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20829 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20830
20831 if test x$gdb_cv_os_cygwin = xyes; then
20832 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20833 WIN32LDAPP="-Wl,--subsystem,console"
20834 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20835 fi
20836
20837
20838
20839 subdirs="$subdirs gdbtk"
20840
20841 fi
20842 fi
20843
20844
20845
20846
20847
20848
20849
20850
20851 echo "$as_me:$LINENO: checking for X" >&5
20852 echo $ECHO_N "checking for X... $ECHO_C" >&6
20853
20854
20855 # Check whether --with-x or --without-x was given.
20856 if test "${with_x+set}" = set; then
20857 withval="$with_x"
20858
20859 fi;
20860 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20861 if test "x$with_x" = xno; then
20862 # The user explicitly disabled X.
20863 have_x=disabled
20864 else
20865 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20866 # Both variables are already set.
20867 have_x=yes
20868 else
20869 if test "${ac_cv_have_x+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872 # One or both of the vars are not set, and there is no cached value.
20873 ac_x_includes=no ac_x_libraries=no
20874 rm -fr conftest.dir
20875 if mkdir conftest.dir; then
20876 cd conftest.dir
20877 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20878 cat >Imakefile <<'_ACEOF'
20879 acfindx:
20880 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20881 _ACEOF
20882 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20884 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20886 for ac_extension in a so sl; do
20887 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20888 test -f $ac_im_libdir/libX11.$ac_extension; then
20889 ac_im_usrlibdir=$ac_im_libdir; break
20890 fi
20891 done
20892 # Screen out bogus values from the imake configuration. They are
20893 # bogus both because they are the default anyway, and because
20894 # using them would break gcc on systems where it needs fixed includes.
20895 case $ac_im_incroot in
20896 /usr/include) ;;
20897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20898 esac
20899 case $ac_im_usrlibdir in
20900 /usr/lib | /lib) ;;
20901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20902 esac
20903 fi
20904 cd ..
20905 rm -fr conftest.dir
20906 fi
20907
20908 # Standard set of common directories for X headers.
20909 # Check X11 before X11Rn because it is often a symlink to the current release.
20910 ac_x_header_dirs='
20911 /usr/X11/include
20912 /usr/X11R6/include
20913 /usr/X11R5/include
20914 /usr/X11R4/include
20915
20916 /usr/include/X11
20917 /usr/include/X11R6
20918 /usr/include/X11R5
20919 /usr/include/X11R4
20920
20921 /usr/local/X11/include
20922 /usr/local/X11R6/include
20923 /usr/local/X11R5/include
20924 /usr/local/X11R4/include
20925
20926 /usr/local/include/X11
20927 /usr/local/include/X11R6
20928 /usr/local/include/X11R5
20929 /usr/local/include/X11R4
20930
20931 /usr/X386/include
20932 /usr/x386/include
20933 /usr/XFree86/include/X11
20934
20935 /usr/include
20936 /usr/local/include
20937 /usr/unsupported/include
20938 /usr/athena/include
20939 /usr/local/x11r5/include
20940 /usr/lpp/Xamples/include
20941
20942 /usr/openwin/include
20943 /usr/openwin/share/include'
20944
20945 if test "$ac_x_includes" = no; then
20946 # Guess where to find include files, by looking for Intrinsic.h.
20947 # First, try using that file with no special directory specified.
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 #include <X11/Intrinsic.h>
20955 _ACEOF
20956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } >/dev/null; then
20964 if test -s conftest.err; then
20965 ac_cpp_err=$ac_c_preproc_warn_flag
20966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20967 else
20968 ac_cpp_err=
20969 fi
20970 else
20971 ac_cpp_err=yes
20972 fi
20973 if test -z "$ac_cpp_err"; then
20974 # We can compile using X headers with no special include directory.
20975 ac_x_includes=
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 for ac_dir in $ac_x_header_dirs; do
20981 if test -r "$ac_dir/X11/Intrinsic.h"; then
20982 ac_x_includes=$ac_dir
20983 break
20984 fi
20985 done
20986 fi
20987 rm -f conftest.err conftest.$ac_ext
20988 fi # $ac_x_includes = no
20989
20990 if test "$ac_x_libraries" = no; then
20991 # Check for the libraries.
20992 # See if we find them without any special options.
20993 # Don't add to $LIBS permanently.
20994 ac_save_LIBS=$LIBS
20995 LIBS="-lXt $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <X11/Intrinsic.h>
21003 int
21004 main ()
21005 {
21006 XtMalloc (0)
21007 ;
21008 return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext conftest$ac_exeext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21013 (eval $ac_link) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest$ac_exeext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 LIBS=$ac_save_LIBS
21034 # We can link X programs with no special library path.
21035 ac_x_libraries=
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 LIBS=$ac_save_LIBS
21041 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21042 do
21043 # Don't even attempt the hair of trying to link an X program!
21044 for ac_extension in a so sl; do
21045 if test -r $ac_dir/libXt.$ac_extension; then
21046 ac_x_libraries=$ac_dir
21047 break 2
21048 fi
21049 done
21050 done
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054 fi # $ac_x_libraries = no
21055
21056 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21057 # Didn't find X anywhere. Cache the known absence of X.
21058 ac_cv_have_x="have_x=no"
21059 else
21060 # Record where we found X for the cache.
21061 ac_cv_have_x="have_x=yes \
21062 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21063 fi
21064 fi
21065
21066 fi
21067 eval "$ac_cv_have_x"
21068 fi # $with_x != no
21069
21070 if test "$have_x" != yes; then
21071 echo "$as_me:$LINENO: result: $have_x" >&5
21072 echo "${ECHO_T}$have_x" >&6
21073 no_x=yes
21074 else
21075 # If each of the values was on the command line, it overrides each guess.
21076 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21077 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21078 # Update the cache value to reflect the command line values.
21079 ac_cv_have_x="have_x=yes \
21080 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21081 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21082 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21083 fi
21084
21085
21086 # Unlike the sim directory, whether a simulator is linked is controlled by
21087 # presence of a gdb_sim definition in the target configure.tgt entry.
21088 # This code just checks for a few cases where we'd like to ignore those
21089 # definitions, even when they're present in the '.mt' file. These cases
21090 # are when --disable-sim is specified, or if the simulator directory is
21091 # not part of the source tree.
21092 #
21093 # Check whether --enable-sim or --disable-sim was given.
21094 if test "${enable_sim+set}" = set; then
21095 enableval="$enable_sim"
21096 echo "enable_sim = $enable_sim";
21097 echo "enableval = ${enableval}";
21098 case "${enableval}" in
21099 yes) ignore_sim=false ;;
21100 no) ignore_sim=true ;;
21101 *) ignore_sim=false ;;
21102 esac
21103 else
21104 ignore_sim=false
21105 fi;
21106
21107 if test ! -d "${srcdir}/../sim"; then
21108 ignore_sim=true
21109 fi
21110
21111 SIM=
21112 SIM_OBS=
21113 if test "${ignore_sim}" = "false"; then
21114 if test x"${gdb_sim}" != x ; then
21115 SIM="${gdb_sim}"
21116 SIM_OBS="remote-sim.o"
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define WITH_SIM 1
21120 _ACEOF
21121
21122 fi
21123 fi
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138 # List of host floatformats.
21139
21140 cat >>confdefs.h <<_ACEOF
21141 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21142 _ACEOF
21143
21144
21145 cat >>confdefs.h <<_ACEOF
21146 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21147 _ACEOF
21148
21149
21150 cat >>confdefs.h <<_ACEOF
21151 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21152 _ACEOF
21153
21154
21155 # target_subdir is used by the testsuite to find the target libraries.
21156 target_subdir=
21157 if test "${host}" != "${target}"; then
21158 target_subdir="${target_alias}/"
21159 fi
21160
21161
21162 frags=
21163 if test "${gdb_native}" = "yes"; then
21164 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21165 if test ! -f ${host_makefile_frag}; then
21166 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21167 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21168 { (exit 1); exit 1; }; }
21169 fi
21170 frags="$frags $host_makefile_frag"
21171 else
21172 host_makefile_frag=/dev/null
21173 fi
21174
21175
21176
21177
21178 if test "${gdb_native}" = "yes"; then
21179 # We pick this up from the host configuration file (.mh) because we
21180 # do not have a native configuration Makefile fragment.
21181 nativefile=`sed -n '
21182 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21183 ' ${host_makefile_frag}`
21184 fi
21185
21186
21187 if test x"${gdb_osabi}" != x ; then
21188
21189 cat >>confdefs.h <<_ACEOF
21190 #define GDB_OSABI_DEFAULT $gdb_osabi
21191 _ACEOF
21192
21193 fi
21194
21195 # Enable multi-ice-gdb-server.
21196 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21197 if test "${enable_multi_ice+set}" = set; then
21198 enableval="$enable_multi_ice"
21199 case $enableval in
21200 yes | no)
21201 ;;
21202 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21203 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21204 { (exit 1); exit 1; }; } ;;
21205 esac
21206 fi;
21207 if test "x$enable_multi_ice" = xyes; then
21208
21209
21210 subdirs="$subdirs multi-ice"
21211
21212 fi
21213
21214 # We only build gdbserver automatically in a native configuration.
21215 if test "$gdb_native" = "yes"; then
21216 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21217 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21218 if test "x$build_gdbserver" = xyes; then
21219 echo "$as_me:$LINENO: result: yes" >&5
21220 echo "${ECHO_T}yes" >&6
21221
21222
21223 subdirs="$subdirs gdbserver"
21224
21225 else
21226 echo "$as_me:$LINENO: result: no" >&5
21227 echo "${ECHO_T}no" >&6
21228 fi
21229 fi
21230
21231 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21232 # to an empty version.
21233
21234 files=
21235 links=
21236
21237 rm -f nm.h
21238 if test "${nativefile}" != ""; then
21239 case "${nativefile}" in
21240 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21241 * ) GDB_NM_FILE="${nativefile}"
21242 esac
21243 files="${files} ${GDB_NM_FILE}"
21244 links="${links} nm.h"
21245
21246 cat >>confdefs.h <<_ACEOF
21247 #define GDB_NM_FILE "${GDB_NM_FILE}"
21248 _ACEOF
21249
21250 fi
21251
21252
21253 ac_sources="$files"
21254 ac_dests="$links"
21255 while test -n "$ac_sources"; do
21256 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21257 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21258 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21259 done
21260 ac_config_links="$ac_config_links $ac_config_links_1"
21261
21262
21263
21264
21265
21266 cat >>confdefs.h <<\_ACEOF
21267 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21268 _ACEOF
21269
21270
21271 # Flags needed to enable html installing and building
21272
21273 # Check whether --with-datarootdir or --without-datarootdir was given.
21274 if test "${with_datarootdir+set}" = set; then
21275 withval="$with_datarootdir"
21276 datarootdir="\${prefix}/${withval}"
21277 else
21278 datarootdir="\${prefix}/share"
21279 fi;
21280
21281
21282 # Check whether --with-docdir or --without-docdir was given.
21283 if test "${with_docdir+set}" = set; then
21284 withval="$with_docdir"
21285 docdir="\${prefix}/${withval}"
21286 else
21287 docdir="\${datarootdir}/doc"
21288 fi;
21289
21290
21291 # Check whether --with-pdfdir or --without-pdfdir was given.
21292 if test "${with_pdfdir+set}" = set; then
21293 withval="$with_pdfdir"
21294 pdfdir="\${prefix}/${withval}"
21295 else
21296 pdfdir="\${docdir}"
21297 fi;
21298
21299
21300 # Check whether --with-htmldir or --without-htmldir was given.
21301 if test "${with_htmldir+set}" = set; then
21302 withval="$with_htmldir"
21303 htmldir="\${prefix}/${withval}"
21304 else
21305 htmldir="\${docdir}"
21306 fi;
21307
21308
21309
21310
21311
21312
21313 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21314 ac_config_commands="$ac_config_commands default"
21315 cat >confcache <<\_ACEOF
21316 # This file is a shell script that caches the results of configure
21317 # tests run on this system so they can be shared between configure
21318 # scripts and configure runs, see configure's option --config-cache.
21319 # It is not useful on other systems. If it contains results you don't
21320 # want to keep, you may remove or edit it.
21321 #
21322 # config.status only pays attention to the cache file if you give it
21323 # the --recheck option to rerun configure.
21324 #
21325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21327 # following values.
21328
21329 _ACEOF
21330
21331 # The following way of writing the cache mishandles newlines in values,
21332 # but we know of no workaround that is simple, portable, and efficient.
21333 # So, don't put newlines in cache variables' values.
21334 # Ultrix sh set writes to stderr and can't be redirected directly,
21335 # and sets the high bit in the cache file unless we assign to the vars.
21336 {
21337 (set) 2>&1 |
21338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21339 *ac_space=\ *)
21340 # `set' does not quote correctly, so add quotes (double-quote
21341 # substitution turns \\\\ into \\, and sed turns \\ into \).
21342 sed -n \
21343 "s/'/'\\\\''/g;
21344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21345 ;;
21346 *)
21347 # `set' quotes correctly as required by POSIX, so do not add quotes.
21348 sed -n \
21349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21350 ;;
21351 esac;
21352 } |
21353 sed '
21354 t clear
21355 : clear
21356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21357 t end
21358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21359 : end' >>confcache
21360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21361 if test -w $cache_file; then
21362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21363 cat confcache >$cache_file
21364 else
21365 echo "not updating unwritable cache $cache_file"
21366 fi
21367 fi
21368 rm -f confcache
21369
21370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21371 # Let make expand exec_prefix.
21372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21373
21374 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21375 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21376 # trailing colons and then remove the whole line if VPATH becomes empty
21377 # (actually we leave an empty line to preserve line numbers).
21378 if test "x$srcdir" = x.; then
21379 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21380 s/:*\$(srcdir):*/:/;
21381 s/:*\${srcdir}:*/:/;
21382 s/:*@srcdir@:*/:/;
21383 s/^\([^=]*=[ ]*\):*/\1/;
21384 s/:*$//;
21385 s/^[^=]*=[ ]*$//;
21386 }'
21387 fi
21388
21389 DEFS=-DHAVE_CONFIG_H
21390
21391 ac_libobjs=
21392 ac_ltlibobjs=
21393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21394 # 1. Remove the extension, and $U if already installed.
21395 ac_i=`echo "$ac_i" |
21396 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21397 # 2. Add them.
21398 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21399 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21400 done
21401 LIBOBJS=$ac_libobjs
21402
21403 LTLIBOBJS=$ac_ltlibobjs
21404
21405
21406 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21407 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21408 Usually this means the macro was only invoked conditionally." >&5
21409 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21410 Usually this means the macro was only invoked conditionally." >&2;}
21411 { (exit 1); exit 1; }; }
21412 fi
21413 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21414 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&5
21416 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21417 Usually this means the macro was only invoked conditionally." >&2;}
21418 { (exit 1); exit 1; }; }
21419 fi
21420 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21421 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&5
21423 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21424 Usually this means the macro was only invoked conditionally." >&2;}
21425 { (exit 1); exit 1; }; }
21426 fi
21427
21428 gl_libobjs=
21429 gl_ltlibobjs=
21430 if test -n "$gl_LIBOBJS"; then
21431 # Remove the extension.
21432 sed_drop_objext='s/\.o$//;s/\.obj$//'
21433 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21434 gl_libobjs="$gl_libobjs $i.$ac_objext"
21435 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21436 done
21437 fi
21438 gl_LIBOBJS=$gl_libobjs
21439
21440 gl_LTLIBOBJS=$gl_ltlibobjs
21441
21442
21443
21444 gltests_libobjs=
21445 gltests_ltlibobjs=
21446 if test -n "$gltests_LIBOBJS"; then
21447 # Remove the extension.
21448 sed_drop_objext='s/\.o$//;s/\.obj$//'
21449 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21450 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21451 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21452 done
21453 fi
21454 gltests_LIBOBJS=$gltests_libobjs
21455
21456 gltests_LTLIBOBJS=$gltests_ltlibobjs
21457
21458
21459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21460 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21461 Usually this means the macro was only invoked conditionally." >&5
21462 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21463 Usually this means the macro was only invoked conditionally." >&2;}
21464 { (exit 1); exit 1; }; }
21465 fi
21466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21467 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21468 Usually this means the macro was only invoked conditionally." >&5
21469 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21470 Usually this means the macro was only invoked conditionally." >&2;}
21471 { (exit 1); exit 1; }; }
21472 fi
21473
21474 : ${CONFIG_STATUS=./config.status}
21475 ac_clean_files_save=$ac_clean_files
21476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21477 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21479 cat >$CONFIG_STATUS <<_ACEOF
21480 #! $SHELL
21481 # Generated by $as_me.
21482 # Run this file to recreate the current configuration.
21483 # Compiler output produced by configure, useful for debugging
21484 # configure, is in config.log if it exists.
21485
21486 debug=false
21487 ac_cs_recheck=false
21488 ac_cs_silent=false
21489 SHELL=\${CONFIG_SHELL-$SHELL}
21490 _ACEOF
21491
21492 cat >>$CONFIG_STATUS <<\_ACEOF
21493 ## --------------------- ##
21494 ## M4sh Initialization. ##
21495 ## --------------------- ##
21496
21497 # Be Bourne compatible
21498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21499 emulate sh
21500 NULLCMD=:
21501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21502 # is contrary to our usage. Disable this feature.
21503 alias -g '${1+"$@"}'='"$@"'
21504 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21505 set -o posix
21506 fi
21507 DUALCASE=1; export DUALCASE # for MKS sh
21508
21509 # Support unset when possible.
21510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21511 as_unset=unset
21512 else
21513 as_unset=false
21514 fi
21515
21516
21517 # Work around bugs in pre-3.0 UWIN ksh.
21518 $as_unset ENV MAIL MAILPATH
21519 PS1='$ '
21520 PS2='> '
21521 PS4='+ '
21522
21523 # NLS nuisances.
21524 for as_var in \
21525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21527 LC_TELEPHONE LC_TIME
21528 do
21529 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21530 eval $as_var=C; export $as_var
21531 else
21532 $as_unset $as_var
21533 fi
21534 done
21535
21536 # Required to use basename.
21537 if expr a : '\(a\)' >/dev/null 2>&1; then
21538 as_expr=expr
21539 else
21540 as_expr=false
21541 fi
21542
21543 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21544 as_basename=basename
21545 else
21546 as_basename=false
21547 fi
21548
21549
21550 # Name of the executable.
21551 as_me=`$as_basename "$0" ||
21552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21553 X"$0" : 'X\(//\)$' \| \
21554 X"$0" : 'X\(/\)$' \| \
21555 . : '\(.\)' 2>/dev/null ||
21556 echo X/"$0" |
21557 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21558 /^X\/\(\/\/\)$/{ s//\1/; q; }
21559 /^X\/\(\/\).*/{ s//\1/; q; }
21560 s/.*/./; q'`
21561
21562
21563 # PATH needs CR, and LINENO needs CR and PATH.
21564 # Avoid depending upon Character Ranges.
21565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21568 as_cr_digits='0123456789'
21569 as_cr_alnum=$as_cr_Letters$as_cr_digits
21570
21571 # The user is always right.
21572 if test "${PATH_SEPARATOR+set}" != set; then
21573 echo "#! /bin/sh" >conf$$.sh
21574 echo "exit 0" >>conf$$.sh
21575 chmod +x conf$$.sh
21576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21577 PATH_SEPARATOR=';'
21578 else
21579 PATH_SEPARATOR=:
21580 fi
21581 rm -f conf$$.sh
21582 fi
21583
21584
21585 as_lineno_1=$LINENO
21586 as_lineno_2=$LINENO
21587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21588 test "x$as_lineno_1" != "x$as_lineno_2" &&
21589 test "x$as_lineno_3" = "x$as_lineno_2" || {
21590 # Find who we are. Look in the path if we contain no path at all
21591 # relative or not.
21592 case $0 in
21593 *[\\/]* ) as_myself=$0 ;;
21594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21596 do
21597 IFS=$as_save_IFS
21598 test -z "$as_dir" && as_dir=.
21599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21600 done
21601
21602 ;;
21603 esac
21604 # We did not find ourselves, most probably we were run as `sh COMMAND'
21605 # in which case we are not to be found in the path.
21606 if test "x$as_myself" = x; then
21607 as_myself=$0
21608 fi
21609 if test ! -f "$as_myself"; then
21610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21612 { (exit 1); exit 1; }; }
21613 fi
21614 case $CONFIG_SHELL in
21615 '')
21616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21617 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21618 do
21619 IFS=$as_save_IFS
21620 test -z "$as_dir" && as_dir=.
21621 for as_base in sh bash ksh sh5; do
21622 case $as_dir in
21623 /*)
21624 if ("$as_dir/$as_base" -c '
21625 as_lineno_1=$LINENO
21626 as_lineno_2=$LINENO
21627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21628 test "x$as_lineno_1" != "x$as_lineno_2" &&
21629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21630 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21631 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21632 CONFIG_SHELL=$as_dir/$as_base
21633 export CONFIG_SHELL
21634 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21635 fi;;
21636 esac
21637 done
21638 done
21639 ;;
21640 esac
21641
21642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21643 # uniformly replaced by the line number. The first 'sed' inserts a
21644 # line-number line before each line; the second 'sed' does the real
21645 # work. The second script uses 'N' to pair each line-number line
21646 # with the numbered line, and appends trailing '-' during
21647 # substitution so that $LINENO is not a special case at line end.
21648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21649 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21650 sed '=' <$as_myself |
21651 sed '
21652 N
21653 s,$,-,
21654 : loop
21655 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21656 t loop
21657 s,-$,,
21658 s,^['$as_cr_digits']*\n,,
21659 ' >$as_me.lineno &&
21660 chmod +x $as_me.lineno ||
21661 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21662 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21663 { (exit 1); exit 1; }; }
21664
21665 # Don't try to exec as it changes $[0], causing all sort of problems
21666 # (the dirname of $[0] is not the place where we might find the
21667 # original and so on. Autoconf is especially sensible to this).
21668 . ./$as_me.lineno
21669 # Exit status is that of the last command.
21670 exit
21671 }
21672
21673
21674 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21675 *c*,-n*) ECHO_N= ECHO_C='
21676 ' ECHO_T=' ' ;;
21677 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21678 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21679 esac
21680
21681 if expr a : '\(a\)' >/dev/null 2>&1; then
21682 as_expr=expr
21683 else
21684 as_expr=false
21685 fi
21686
21687 rm -f conf$$ conf$$.exe conf$$.file
21688 echo >conf$$.file
21689 if ln -s conf$$.file conf$$ 2>/dev/null; then
21690 # We could just check for DJGPP; but this test a) works b) is more generic
21691 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21692 if test -f conf$$.exe; then
21693 # Don't use ln at all; we don't have any links
21694 as_ln_s='cp -p'
21695 else
21696 as_ln_s='ln -s'
21697 fi
21698 elif ln conf$$.file conf$$ 2>/dev/null; then
21699 as_ln_s=ln
21700 else
21701 as_ln_s='cp -p'
21702 fi
21703 rm -f conf$$ conf$$.exe conf$$.file
21704
21705 if mkdir -p . 2>/dev/null; then
21706 as_mkdir_p=:
21707 else
21708 test -d ./-p && rmdir ./-p
21709 as_mkdir_p=false
21710 fi
21711
21712 as_executable_p="test -f"
21713
21714 # Sed expression to map a string onto a valid CPP name.
21715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21716
21717 # Sed expression to map a string onto a valid variable name.
21718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21719
21720
21721 # IFS
21722 # We need space, tab and new line, in precisely that order.
21723 as_nl='
21724 '
21725 IFS=" $as_nl"
21726
21727 # CDPATH.
21728 $as_unset CDPATH
21729
21730 exec 6>&1
21731
21732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21733 # report actual input values of CONFIG_FILES etc. instead of their
21734 # values after options handling. Logging --version etc. is OK.
21735 exec 5>>config.log
21736 {
21737 echo
21738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21739 ## Running $as_me. ##
21740 _ASBOX
21741 } >&5
21742 cat >&5 <<_CSEOF
21743
21744 This file was extended by $as_me, which was
21745 generated by GNU Autoconf 2.59. Invocation command line was
21746
21747 CONFIG_FILES = $CONFIG_FILES
21748 CONFIG_HEADERS = $CONFIG_HEADERS
21749 CONFIG_LINKS = $CONFIG_LINKS
21750 CONFIG_COMMANDS = $CONFIG_COMMANDS
21751 $ $0 $@
21752
21753 _CSEOF
21754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21755 echo >&5
21756 _ACEOF
21757
21758 # Files that config.status was made for.
21759 if test -n "$ac_config_files"; then
21760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21761 fi
21762
21763 if test -n "$ac_config_headers"; then
21764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21765 fi
21766
21767 if test -n "$ac_config_links"; then
21768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21769 fi
21770
21771 if test -n "$ac_config_commands"; then
21772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21773 fi
21774
21775 cat >>$CONFIG_STATUS <<\_ACEOF
21776
21777 ac_cs_usage="\
21778 \`$as_me' instantiates files from templates according to the
21779 current configuration.
21780
21781 Usage: $0 [OPTIONS] [FILE]...
21782
21783 -h, --help print this help, then exit
21784 -V, --version print version number, then exit
21785 -q, --quiet do not print progress messages
21786 -d, --debug don't remove temporary files
21787 --recheck update $as_me by reconfiguring in the same conditions
21788 --file=FILE[:TEMPLATE]
21789 instantiate the configuration file FILE
21790 --header=FILE[:TEMPLATE]
21791 instantiate the configuration header FILE
21792
21793 Configuration files:
21794 $config_files
21795
21796 Configuration headers:
21797 $config_headers
21798
21799 Configuration links:
21800 $config_links
21801
21802 Configuration commands:
21803 $config_commands
21804
21805 Report bugs to <bug-autoconf@gnu.org>."
21806 _ACEOF
21807
21808 cat >>$CONFIG_STATUS <<_ACEOF
21809 ac_cs_version="\\
21810 config.status
21811 configured by $0, generated by GNU Autoconf 2.59,
21812 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21813
21814 Copyright (C) 2003 Free Software Foundation, Inc.
21815 This config.status script is free software; the Free Software Foundation
21816 gives unlimited permission to copy, distribute and modify it."
21817 srcdir=$srcdir
21818 INSTALL="$INSTALL"
21819 _ACEOF
21820
21821 cat >>$CONFIG_STATUS <<\_ACEOF
21822 # If no file are specified by the user, then we need to provide default
21823 # value. By we need to know if files were specified by the user.
21824 ac_need_defaults=:
21825 while test $# != 0
21826 do
21827 case $1 in
21828 --*=*)
21829 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21830 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21831 ac_shift=:
21832 ;;
21833 -*)
21834 ac_option=$1
21835 ac_optarg=$2
21836 ac_shift=shift
21837 ;;
21838 *) # This is not an option, so the user has probably given explicit
21839 # arguments.
21840 ac_option=$1
21841 ac_need_defaults=false;;
21842 esac
21843
21844 case $ac_option in
21845 # Handling of the options.
21846 _ACEOF
21847 cat >>$CONFIG_STATUS <<\_ACEOF
21848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21849 ac_cs_recheck=: ;;
21850 --version | --vers* | -V )
21851 echo "$ac_cs_version"; exit 0 ;;
21852 --he | --h)
21853 # Conflict between --help and --header
21854 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21855 Try \`$0 --help' for more information." >&5
21856 echo "$as_me: error: ambiguous option: $1
21857 Try \`$0 --help' for more information." >&2;}
21858 { (exit 1); exit 1; }; };;
21859 --help | --hel | -h )
21860 echo "$ac_cs_usage"; exit 0 ;;
21861 --debug | --d* | -d )
21862 debug=: ;;
21863 --file | --fil | --fi | --f )
21864 $ac_shift
21865 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21866 ac_need_defaults=false;;
21867 --header | --heade | --head | --hea )
21868 $ac_shift
21869 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21870 ac_need_defaults=false;;
21871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21873 ac_cs_silent=: ;;
21874
21875 # This is an error.
21876 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21877 Try \`$0 --help' for more information." >&5
21878 echo "$as_me: error: unrecognized option: $1
21879 Try \`$0 --help' for more information." >&2;}
21880 { (exit 1); exit 1; }; } ;;
21881
21882 *) ac_config_targets="$ac_config_targets $1" ;;
21883
21884 esac
21885 shift
21886 done
21887
21888 ac_configure_extra_args=
21889
21890 if $ac_cs_silent; then
21891 exec 6>/dev/null
21892 ac_configure_extra_args="$ac_configure_extra_args --silent"
21893 fi
21894
21895 _ACEOF
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 if \$ac_cs_recheck; then
21898 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21899 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21900 fi
21901
21902 _ACEOF
21903
21904 cat >>$CONFIG_STATUS <<_ACEOF
21905 #
21906 # INIT-COMMANDS section.
21907 #
21908
21909 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21910 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21911
21912 _ACEOF
21913
21914
21915
21916 cat >>$CONFIG_STATUS <<\_ACEOF
21917 for ac_config_target in $ac_config_targets
21918 do
21919 case "$ac_config_target" in
21920 # Handling of arguments.
21921 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21922 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21923 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21924 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21925 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21926 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21927 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21928 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21929 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21930 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21931 { (exit 1); exit 1; }; };;
21932 esac
21933 done
21934
21935 # If the user did not use the arguments to specify the items to instantiate,
21936 # then the envvar interface is used. Set only those that are not.
21937 # We use the long form for the default assignment because of an extremely
21938 # bizarre bug on SunOS 4.1.3.
21939 if $ac_need_defaults; then
21940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21942 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21944 fi
21945
21946 # Have a temporary directory for convenience. Make it in the build tree
21947 # simply because there is no reason to put it here, and in addition,
21948 # creating and moving files from /tmp can sometimes cause problems.
21949 # Create a temporary directory, and hook for its removal unless debugging.
21950 $debug ||
21951 {
21952 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21953 trap '{ (exit 1); exit 1; }' 1 2 13 15
21954 }
21955
21956 # Create a (secure) tmp directory for tmp files.
21957
21958 {
21959 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21960 test -n "$tmp" && test -d "$tmp"
21961 } ||
21962 {
21963 tmp=./confstat$$-$RANDOM
21964 (umask 077 && mkdir $tmp)
21965 } ||
21966 {
21967 echo "$me: cannot create a temporary directory in ." >&2
21968 { (exit 1); exit 1; }
21969 }
21970
21971 _ACEOF
21972
21973 cat >>$CONFIG_STATUS <<_ACEOF
21974
21975 #
21976 # CONFIG_FILES section.
21977 #
21978
21979 # No need to generate the scripts if there are no CONFIG_FILES.
21980 # This happens for instance when ./config.status config.h
21981 if test -n "\$CONFIG_FILES"; then
21982 # Protect against being on the right side of a sed subst in config.status.
21983 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21984 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21985 s,@SHELL@,$SHELL,;t t
21986 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21987 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21988 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21989 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21990 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21991 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21992 s,@exec_prefix@,$exec_prefix,;t t
21993 s,@prefix@,$prefix,;t t
21994 s,@program_transform_name@,$program_transform_name,;t t
21995 s,@bindir@,$bindir,;t t
21996 s,@sbindir@,$sbindir,;t t
21997 s,@libexecdir@,$libexecdir,;t t
21998 s,@datadir@,$datadir,;t t
21999 s,@sysconfdir@,$sysconfdir,;t t
22000 s,@sharedstatedir@,$sharedstatedir,;t t
22001 s,@localstatedir@,$localstatedir,;t t
22002 s,@libdir@,$libdir,;t t
22003 s,@includedir@,$includedir,;t t
22004 s,@oldincludedir@,$oldincludedir,;t t
22005 s,@infodir@,$infodir,;t t
22006 s,@mandir@,$mandir,;t t
22007 s,@build_alias@,$build_alias,;t t
22008 s,@host_alias@,$host_alias,;t t
22009 s,@target_alias@,$target_alias,;t t
22010 s,@DEFS@,$DEFS,;t t
22011 s,@ECHO_C@,$ECHO_C,;t t
22012 s,@ECHO_N@,$ECHO_N,;t t
22013 s,@ECHO_T@,$ECHO_T,;t t
22014 s,@LIBS@,$LIBS,;t t
22015 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22016 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22017 s,@MAINT@,$MAINT,;t t
22018 s,@CC@,$CC,;t t
22019 s,@CFLAGS@,$CFLAGS,;t t
22020 s,@LDFLAGS@,$LDFLAGS,;t t
22021 s,@CPPFLAGS@,$CPPFLAGS,;t t
22022 s,@ac_ct_CC@,$ac_ct_CC,;t t
22023 s,@EXEEXT@,$EXEEXT,;t t
22024 s,@OBJEXT@,$OBJEXT,;t t
22025 s,@CPP@,$CPP,;t t
22026 s,@EGREP@,$EGREP,;t t
22027 s,@RANLIB@,$RANLIB,;t t
22028 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22029 s,@build@,$build,;t t
22030 s,@build_cpu@,$build_cpu,;t t
22031 s,@build_vendor@,$build_vendor,;t t
22032 s,@build_os@,$build_os,;t t
22033 s,@host@,$host,;t t
22034 s,@host_cpu@,$host_cpu,;t t
22035 s,@host_vendor@,$host_vendor,;t t
22036 s,@host_os@,$host_os,;t t
22037 s,@target@,$target,;t t
22038 s,@target_cpu@,$target_cpu,;t t
22039 s,@target_vendor@,$target_vendor,;t t
22040 s,@target_os@,$target_os,;t t
22041 s,@am__leading_dot@,$am__leading_dot,;t t
22042 s,@DEPDIR@,$DEPDIR,;t t
22043 s,@CCDEPMODE@,$CCDEPMODE,;t t
22044 s,@MAKE@,$MAKE,;t t
22045 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
22046 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
22047 s,@SET_MAKE@,$SET_MAKE,;t t
22048 s,@USE_NLS@,$USE_NLS,;t t
22049 s,@LIBINTL@,$LIBINTL,;t t
22050 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22051 s,@INCINTL@,$INCINTL,;t t
22052 s,@XGETTEXT@,$XGETTEXT,;t t
22053 s,@GMSGFMT@,$GMSGFMT,;t t
22054 s,@POSUB@,$POSUB,;t t
22055 s,@CATALOGS@,$CATALOGS,;t t
22056 s,@DATADIRNAME@,$DATADIRNAME,;t t
22057 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22058 s,@GENCAT@,$GENCAT,;t t
22059 s,@CATOBJEXT@,$CATOBJEXT,;t t
22060 s,@localedir@,$localedir,;t t
22061 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
22062 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
22063 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
22064 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
22065 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
22066 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
22067 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
22068 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
22069 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
22070 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
22071 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
22072 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
22073 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
22074 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
22075 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
22076 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
22077 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
22078 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
22079 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
22080 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
22081 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
22082 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
22083 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
22084 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
22085 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
22086 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
22087 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
22088 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
22089 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
22090 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
22091 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
22092 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
22093 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
22094 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
22095 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
22096 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
22097 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
22098 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
22099 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
22100 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
22101 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
22102 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22103 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22104 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22105 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22106 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22107 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22108 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22109 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22110 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22111 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22112 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22113 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22114 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22115 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22116 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22117 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22118 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22119 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22120 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22121 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22122 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22123 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22124 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22125 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22126 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22127 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22128 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22129 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22130 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22131 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22132 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22133 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22134 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22135 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22136 s,@STDINT_H@,$STDINT_H,;t t
22137 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22138 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22139 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22140 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22141 s,@WCHAR_H@,$WCHAR_H,;t t
22142 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22143 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22144 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22145 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22146 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22147 s,@PACKAGE@,$PACKAGE,;t t
22148 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22149 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22150 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22151 s,@CYGPATH_W@,$CYGPATH_W,;t t
22152 s,@PYTHON2_4@,$PYTHON2_4,;t t
22153 s,@ACLOCAL@,$ACLOCAL,;t t
22154 s,@AUTOCONF@,$AUTOCONF,;t t
22155 s,@AUTOMAKE@,$AUTOMAKE,;t t
22156 s,@AUTOHEADER@,$AUTOHEADER,;t t
22157 s,@MAKEINFO@,$MAKEINFO,;t t
22158 s,@install_sh@,$install_sh,;t t
22159 s,@STRIP@,$STRIP,;t t
22160 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22161 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22162 s,@mkdir_p@,$mkdir_p,;t t
22163 s,@AWK@,$AWK,;t t
22164 s,@AMTAR@,$AMTAR,;t t
22165 s,@am__tar@,$am__tar,;t t
22166 s,@am__untar@,$am__untar,;t t
22167 s,@am__include@,$am__include,;t t
22168 s,@am__quote@,$am__quote,;t t
22169 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22170 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22171 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22172 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22173 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22174 s,@DEBUGDIR@,$DEBUGDIR,;t t
22175 s,@GDB_DATADIR@,$GDB_DATADIR,;t t
22176 s,@subdirs@,$subdirs,;t t
22177 s,@TARGET_OBS@,$TARGET_OBS,;t t
22178 s,@PKGVERSION@,$PKGVERSION,;t t
22179 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22180 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22181 s,@LN_S@,$LN_S,;t t
22182 s,@YACC@,$YACC,;t t
22183 s,@AR@,$AR,;t t
22184 s,@ac_ct_AR@,$ac_ct_AR,;t t
22185 s,@DLLTOOL@,$DLLTOOL,;t t
22186 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22187 s,@WINDRES@,$WINDRES,;t t
22188 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22189 s,@MIG@,$MIG,;t t
22190 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22191 s,@READLINE@,$READLINE,;t t
22192 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22193 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22194 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22195 s,@LIBEXPAT@,$LIBEXPAT,;t t
22196 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22197 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22198 s,@ALLOCA@,$ALLOCA,;t t
22199 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22200 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22201 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22202 s,@SYSTEM_GDBINIT@,$SYSTEM_GDBINIT,;t t
22203 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22204 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22205 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22206 s,@WIN32LIBS@,$WIN32LIBS,;t t
22207 s,@LIBGUI@,$LIBGUI,;t t
22208 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22209 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22210 s,@TCL_VERSION@,$TCL_VERSION,;t t
22211 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22212 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22213 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22214 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22215 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22216 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22217 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22218 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22219 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22220 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22221 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22222 s,@TCL_DEPS@,$TCL_DEPS,;t t
22223 s,@TK_VERSION@,$TK_VERSION,;t t
22224 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22225 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22226 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22227 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22228 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22229 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22230 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22231 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22232 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22233 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22234 s,@TK_DEPS@,$TK_DEPS,;t t
22235 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22236 s,@X_CFLAGS@,$X_CFLAGS,;t t
22237 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22238 s,@X_LIBS@,$X_LIBS,;t t
22239 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22240 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22241 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22242 s,@SIM@,$SIM,;t t
22243 s,@SIM_OBS@,$SIM_OBS,;t t
22244 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22245 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22246 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22247 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22248 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22249 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22250 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22251 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22252 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22253 s,@target_subdir@,$target_subdir,;t t
22254 s,@frags@,$frags,;t t
22255 s,@GDB_NM_FILE@,$GDB_NM_FILE,;t t
22256 s,@datarootdir@,$datarootdir,;t t
22257 s,@docdir@,$docdir,;t t
22258 s,@htmldir@,$htmldir,;t t
22259 s,@pdfdir@,$pdfdir,;t t
22260 s,@LIBOBJS@,$LIBOBJS,;t t
22261 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22262 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22263 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22264 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22265 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22266 /@host_makefile_frag@/r $host_makefile_frag
22267 s,@host_makefile_frag@,,;t t
22268 CEOF
22269
22270 _ACEOF
22271
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 # Split the substitutions into bite-sized pieces for seds with
22274 # small command number limits, like on Digital OSF/1 and HP-UX.
22275 ac_max_sed_lines=48
22276 ac_sed_frag=1 # Number of current file.
22277 ac_beg=1 # First line for current file.
22278 ac_end=$ac_max_sed_lines # Line after last line for current file.
22279 ac_more_lines=:
22280 ac_sed_cmds=
22281 while $ac_more_lines; do
22282 if test $ac_beg -gt 1; then
22283 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22284 else
22285 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22286 fi
22287 if test ! -s $tmp/subs.frag; then
22288 ac_more_lines=false
22289 else
22290 # The purpose of the label and of the branching condition is to
22291 # speed up the sed processing (if there are no `@' at all, there
22292 # is no need to browse any of the substitutions).
22293 # These are the two extra sed commands mentioned above.
22294 (echo ':t
22295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22296 if test -z "$ac_sed_cmds"; then
22297 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22298 else
22299 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22300 fi
22301 ac_sed_frag=`expr $ac_sed_frag + 1`
22302 ac_beg=$ac_end
22303 ac_end=`expr $ac_end + $ac_max_sed_lines`
22304 fi
22305 done
22306 if test -z "$ac_sed_cmds"; then
22307 ac_sed_cmds=cat
22308 fi
22309 fi # test -n "$CONFIG_FILES"
22310
22311 _ACEOF
22312 cat >>$CONFIG_STATUS <<\_ACEOF
22313 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22315 case $ac_file in
22316 - | *:- | *:-:* ) # input from stdin
22317 cat >$tmp/stdin
22318 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22319 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22320 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22322 * ) ac_file_in=$ac_file.in ;;
22323 esac
22324
22325 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22326 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22328 X"$ac_file" : 'X\(//\)[^/]' \| \
22329 X"$ac_file" : 'X\(//\)$' \| \
22330 X"$ac_file" : 'X\(/\)' \| \
22331 . : '\(.\)' 2>/dev/null ||
22332 echo X"$ac_file" |
22333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22335 /^X\(\/\/\)$/{ s//\1/; q; }
22336 /^X\(\/\).*/{ s//\1/; q; }
22337 s/.*/./; q'`
22338 { if $as_mkdir_p; then
22339 mkdir -p "$ac_dir"
22340 else
22341 as_dir="$ac_dir"
22342 as_dirs=
22343 while test ! -d "$as_dir"; do
22344 as_dirs="$as_dir $as_dirs"
22345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22347 X"$as_dir" : 'X\(//\)[^/]' \| \
22348 X"$as_dir" : 'X\(//\)$' \| \
22349 X"$as_dir" : 'X\(/\)' \| \
22350 . : '\(.\)' 2>/dev/null ||
22351 echo X"$as_dir" |
22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22354 /^X\(\/\/\)$/{ s//\1/; q; }
22355 /^X\(\/\).*/{ s//\1/; q; }
22356 s/.*/./; q'`
22357 done
22358 test ! -n "$as_dirs" || mkdir $as_dirs
22359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22361 { (exit 1); exit 1; }; }; }
22362
22363 ac_builddir=.
22364
22365 if test "$ac_dir" != .; then
22366 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22367 # A "../" for each directory in $ac_dir_suffix.
22368 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22369 else
22370 ac_dir_suffix= ac_top_builddir=
22371 fi
22372
22373 case $srcdir in
22374 .) # No --srcdir option. We are building in place.
22375 ac_srcdir=.
22376 if test -z "$ac_top_builddir"; then
22377 ac_top_srcdir=.
22378 else
22379 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22380 fi ;;
22381 [\\/]* | ?:[\\/]* ) # Absolute path.
22382 ac_srcdir=$srcdir$ac_dir_suffix;
22383 ac_top_srcdir=$srcdir ;;
22384 *) # Relative path.
22385 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22386 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22387 esac
22388
22389 # Do not use `cd foo && pwd` to compute absolute paths, because
22390 # the directories may not exist.
22391 case `pwd` in
22392 .) ac_abs_builddir="$ac_dir";;
22393 *)
22394 case "$ac_dir" in
22395 .) ac_abs_builddir=`pwd`;;
22396 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22397 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22398 esac;;
22399 esac
22400 case $ac_abs_builddir in
22401 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22402 *)
22403 case ${ac_top_builddir}. in
22404 .) ac_abs_top_builddir=$ac_abs_builddir;;
22405 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22406 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22407 esac;;
22408 esac
22409 case $ac_abs_builddir in
22410 .) ac_abs_srcdir=$ac_srcdir;;
22411 *)
22412 case $ac_srcdir in
22413 .) ac_abs_srcdir=$ac_abs_builddir;;
22414 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22415 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22416 esac;;
22417 esac
22418 case $ac_abs_builddir in
22419 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22420 *)
22421 case $ac_top_srcdir in
22422 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22423 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22424 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22425 esac;;
22426 esac
22427
22428
22429 case $INSTALL in
22430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22431 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22432 esac
22433
22434 if test x"$ac_file" != x-; then
22435 { echo "$as_me:$LINENO: creating $ac_file" >&5
22436 echo "$as_me: creating $ac_file" >&6;}
22437 rm -f "$ac_file"
22438 fi
22439 # Let's still pretend it is `configure' which instantiates (i.e., don't
22440 # use $as_me), people would be surprised to read:
22441 # /* config.h. Generated by config.status. */
22442 if test x"$ac_file" = x-; then
22443 configure_input=
22444 else
22445 configure_input="$ac_file. "
22446 fi
22447 configure_input=$configure_input"Generated from `echo $ac_file_in |
22448 sed 's,.*/,,'` by configure."
22449
22450 # First look for the input files in the build tree, otherwise in the
22451 # src tree.
22452 ac_file_inputs=`IFS=:
22453 for f in $ac_file_in; do
22454 case $f in
22455 -) echo $tmp/stdin ;;
22456 [\\/$]*)
22457 # Absolute (can't be DOS-style, as IFS=:)
22458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22459 echo "$as_me: error: cannot find input file: $f" >&2;}
22460 { (exit 1); exit 1; }; }
22461 echo "$f";;
22462 *) # Relative
22463 if test -f "$f"; then
22464 # Build tree
22465 echo "$f"
22466 elif test -f "$srcdir/$f"; then
22467 # Source tree
22468 echo "$srcdir/$f"
22469 else
22470 # /dev/null tree
22471 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22472 echo "$as_me: error: cannot find input file: $f" >&2;}
22473 { (exit 1); exit 1; }; }
22474 fi;;
22475 esac
22476 done` || { (exit 1); exit 1; }
22477 _ACEOF
22478 cat >>$CONFIG_STATUS <<_ACEOF
22479 sed "$ac_vpsub
22480 $extrasub
22481 _ACEOF
22482 cat >>$CONFIG_STATUS <<\_ACEOF
22483 :t
22484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22485 s,@configure_input@,$configure_input,;t t
22486 s,@srcdir@,$ac_srcdir,;t t
22487 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22488 s,@top_srcdir@,$ac_top_srcdir,;t t
22489 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22490 s,@builddir@,$ac_builddir,;t t
22491 s,@abs_builddir@,$ac_abs_builddir,;t t
22492 s,@top_builddir@,$ac_top_builddir,;t t
22493 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22494 s,@INSTALL@,$ac_INSTALL,;t t
22495 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22496 rm -f $tmp/stdin
22497 if test x"$ac_file" != x-; then
22498 mv $tmp/out $ac_file
22499 else
22500 cat $tmp/out
22501 rm -f $tmp/out
22502 fi
22503
22504 done
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<\_ACEOF
22507
22508 #
22509 # CONFIG_HEADER section.
22510 #
22511
22512 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22513 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22514 #
22515 # ac_d sets the value in "#define NAME VALUE" lines.
22516 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22517 ac_dB='[ ].*$,\1#\2'
22518 ac_dC=' '
22519 ac_dD=',;t'
22520 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22521 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22522 ac_uB='$,\1#\2define\3'
22523 ac_uC=' '
22524 ac_uD=',;t'
22525
22526 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22527 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22528 case $ac_file in
22529 - | *:- | *:-:* ) # input from stdin
22530 cat >$tmp/stdin
22531 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22532 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22533 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22535 * ) ac_file_in=$ac_file.in ;;
22536 esac
22537
22538 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22539 echo "$as_me: creating $ac_file" >&6;}
22540
22541 # First look for the input files in the build tree, otherwise in the
22542 # src tree.
22543 ac_file_inputs=`IFS=:
22544 for f in $ac_file_in; do
22545 case $f in
22546 -) echo $tmp/stdin ;;
22547 [\\/$]*)
22548 # Absolute (can't be DOS-style, as IFS=:)
22549 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22550 echo "$as_me: error: cannot find input file: $f" >&2;}
22551 { (exit 1); exit 1; }; }
22552 # Do quote $f, to prevent DOS paths from being IFS'd.
22553 echo "$f";;
22554 *) # Relative
22555 if test -f "$f"; then
22556 # Build tree
22557 echo "$f"
22558 elif test -f "$srcdir/$f"; then
22559 # Source tree
22560 echo "$srcdir/$f"
22561 else
22562 # /dev/null tree
22563 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22564 echo "$as_me: error: cannot find input file: $f" >&2;}
22565 { (exit 1); exit 1; }; }
22566 fi;;
22567 esac
22568 done` || { (exit 1); exit 1; }
22569 # Remove the trailing spaces.
22570 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22571
22572 _ACEOF
22573
22574 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22575 # `conftest.undefs', that substitutes the proper values into
22576 # config.h.in to produce config.h. The first handles `#define'
22577 # templates, and the second `#undef' templates.
22578 # And first: Protect against being on the right side of a sed subst in
22579 # config.status. Protect against being in an unquoted here document
22580 # in config.status.
22581 rm -f conftest.defines conftest.undefs
22582 # Using a here document instead of a string reduces the quoting nightmare.
22583 # Putting comments in sed scripts is not portable.
22584 #
22585 # `end' is used to avoid that the second main sed command (meant for
22586 # 0-ary CPP macros) applies to n-ary macro definitions.
22587 # See the Autoconf documentation for `clear'.
22588 cat >confdef2sed.sed <<\_ACEOF
22589 s/[\\&,]/\\&/g
22590 s,[\\$`],\\&,g
22591 t clear
22592 : clear
22593 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22594 t end
22595 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22596 : end
22597 _ACEOF
22598 # If some macros were called several times there might be several times
22599 # the same #defines, which is useless. Nevertheless, we may not want to
22600 # sort them, since we want the *last* AC-DEFINE to be honored.
22601 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22602 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22603 rm -f confdef2sed.sed
22604
22605 # This sed command replaces #undef with comments. This is necessary, for
22606 # example, in the case of _POSIX_SOURCE, which is predefined and required
22607 # on some systems where configure will not decide to define it.
22608 cat >>conftest.undefs <<\_ACEOF
22609 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22610 _ACEOF
22611
22612 # Break up conftest.defines because some shells have a limit on the size
22613 # of here documents, and old seds have small limits too (100 cmds).
22614 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22615 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22616 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22617 echo ' :' >>$CONFIG_STATUS
22618 rm -f conftest.tail
22619 while grep . conftest.defines >/dev/null
22620 do
22621 # Write a limited-size here document to $tmp/defines.sed.
22622 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22623 # Speed up: don't consider the non `#define' lines.
22624 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22625 # Work around the forget-to-reset-the-flag bug.
22626 echo 't clr' >>$CONFIG_STATUS
22627 echo ': clr' >>$CONFIG_STATUS
22628 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22629 echo 'CEOF
22630 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22631 rm -f $tmp/in
22632 mv $tmp/out $tmp/in
22633 ' >>$CONFIG_STATUS
22634 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22635 rm -f conftest.defines
22636 mv conftest.tail conftest.defines
22637 done
22638 rm -f conftest.defines
22639 echo ' fi # grep' >>$CONFIG_STATUS
22640 echo >>$CONFIG_STATUS
22641
22642 # Break up conftest.undefs because some shells have a limit on the size
22643 # of here documents, and old seds have small limits too (100 cmds).
22644 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22645 rm -f conftest.tail
22646 while grep . conftest.undefs >/dev/null
22647 do
22648 # Write a limited-size here document to $tmp/undefs.sed.
22649 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22650 # Speed up: don't consider the non `#undef'
22651 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22652 # Work around the forget-to-reset-the-flag bug.
22653 echo 't clr' >>$CONFIG_STATUS
22654 echo ': clr' >>$CONFIG_STATUS
22655 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22656 echo 'CEOF
22657 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22658 rm -f $tmp/in
22659 mv $tmp/out $tmp/in
22660 ' >>$CONFIG_STATUS
22661 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22662 rm -f conftest.undefs
22663 mv conftest.tail conftest.undefs
22664 done
22665 rm -f conftest.undefs
22666
22667 cat >>$CONFIG_STATUS <<\_ACEOF
22668 # Let's still pretend it is `configure' which instantiates (i.e., don't
22669 # use $as_me), people would be surprised to read:
22670 # /* config.h. Generated by config.status. */
22671 if test x"$ac_file" = x-; then
22672 echo "/* Generated by configure. */" >$tmp/config.h
22673 else
22674 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22675 fi
22676 cat $tmp/in >>$tmp/config.h
22677 rm -f $tmp/in
22678 if test x"$ac_file" != x-; then
22679 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22680 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22681 echo "$as_me: $ac_file is unchanged" >&6;}
22682 else
22683 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22685 X"$ac_file" : 'X\(//\)[^/]' \| \
22686 X"$ac_file" : 'X\(//\)$' \| \
22687 X"$ac_file" : 'X\(/\)' \| \
22688 . : '\(.\)' 2>/dev/null ||
22689 echo X"$ac_file" |
22690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22692 /^X\(\/\/\)$/{ s//\1/; q; }
22693 /^X\(\/\).*/{ s//\1/; q; }
22694 s/.*/./; q'`
22695 { if $as_mkdir_p; then
22696 mkdir -p "$ac_dir"
22697 else
22698 as_dir="$ac_dir"
22699 as_dirs=
22700 while test ! -d "$as_dir"; do
22701 as_dirs="$as_dir $as_dirs"
22702 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22704 X"$as_dir" : 'X\(//\)[^/]' \| \
22705 X"$as_dir" : 'X\(//\)$' \| \
22706 X"$as_dir" : 'X\(/\)' \| \
22707 . : '\(.\)' 2>/dev/null ||
22708 echo X"$as_dir" |
22709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22711 /^X\(\/\/\)$/{ s//\1/; q; }
22712 /^X\(\/\).*/{ s//\1/; q; }
22713 s/.*/./; q'`
22714 done
22715 test ! -n "$as_dirs" || mkdir $as_dirs
22716 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22717 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22718 { (exit 1); exit 1; }; }; }
22719
22720 rm -f $ac_file
22721 mv $tmp/config.h $ac_file
22722 fi
22723 else
22724 cat $tmp/config.h
22725 rm -f $tmp/config.h
22726 fi
22727 # Compute $ac_file's index in $config_headers.
22728 _am_stamp_count=1
22729 for _am_header in $config_headers :; do
22730 case $_am_header in
22731 $ac_file | $ac_file:* )
22732 break ;;
22733 * )
22734 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22735 esac
22736 done
22737 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22738 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22739 X$ac_file : 'X\(//\)[^/]' \| \
22740 X$ac_file : 'X\(//\)$' \| \
22741 X$ac_file : 'X\(/\)' \| \
22742 . : '\(.\)' 2>/dev/null ||
22743 echo X$ac_file |
22744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22746 /^X\(\/\/\)$/{ s//\1/; q; }
22747 /^X\(\/\).*/{ s//\1/; q; }
22748 s/.*/./; q'`/stamp-h$_am_stamp_count
22749 done
22750 _ACEOF
22751 cat >>$CONFIG_STATUS <<\_ACEOF
22752
22753 #
22754 # CONFIG_LINKS section.
22755 #
22756
22757 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22758 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22759 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22760
22761 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22762 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22763
22764 if test ! -r $srcdir/$ac_source; then
22765 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22766 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22767 { (exit 1); exit 1; }; }
22768 fi
22769 rm -f $ac_dest
22770
22771 # Make relative symlinks.
22772 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22773 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22774 X"$ac_dest" : 'X\(//\)[^/]' \| \
22775 X"$ac_dest" : 'X\(//\)$' \| \
22776 X"$ac_dest" : 'X\(/\)' \| \
22777 . : '\(.\)' 2>/dev/null ||
22778 echo X"$ac_dest" |
22779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22781 /^X\(\/\/\)$/{ s//\1/; q; }
22782 /^X\(\/\).*/{ s//\1/; q; }
22783 s/.*/./; q'`
22784 { if $as_mkdir_p; then
22785 mkdir -p "$ac_dest_dir"
22786 else
22787 as_dir="$ac_dest_dir"
22788 as_dirs=
22789 while test ! -d "$as_dir"; do
22790 as_dirs="$as_dir $as_dirs"
22791 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793 X"$as_dir" : 'X\(//\)[^/]' \| \
22794 X"$as_dir" : 'X\(//\)$' \| \
22795 X"$as_dir" : 'X\(/\)' \| \
22796 . : '\(.\)' 2>/dev/null ||
22797 echo X"$as_dir" |
22798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800 /^X\(\/\/\)$/{ s//\1/; q; }
22801 /^X\(\/\).*/{ s//\1/; q; }
22802 s/.*/./; q'`
22803 done
22804 test ! -n "$as_dirs" || mkdir $as_dirs
22805 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22806 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22807 { (exit 1); exit 1; }; }; }
22808
22809 ac_builddir=.
22810
22811 if test "$ac_dest_dir" != .; then
22812 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22813 # A "../" for each directory in $ac_dir_suffix.
22814 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22815 else
22816 ac_dir_suffix= ac_top_builddir=
22817 fi
22818
22819 case $srcdir in
22820 .) # No --srcdir option. We are building in place.
22821 ac_srcdir=.
22822 if test -z "$ac_top_builddir"; then
22823 ac_top_srcdir=.
22824 else
22825 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22826 fi ;;
22827 [\\/]* | ?:[\\/]* ) # Absolute path.
22828 ac_srcdir=$srcdir$ac_dir_suffix;
22829 ac_top_srcdir=$srcdir ;;
22830 *) # Relative path.
22831 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22832 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22833 esac
22834
22835 # Do not use `cd foo && pwd` to compute absolute paths, because
22836 # the directories may not exist.
22837 case `pwd` in
22838 .) ac_abs_builddir="$ac_dest_dir";;
22839 *)
22840 case "$ac_dest_dir" in
22841 .) ac_abs_builddir=`pwd`;;
22842 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22843 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22844 esac;;
22845 esac
22846 case $ac_abs_builddir in
22847 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22848 *)
22849 case ${ac_top_builddir}. in
22850 .) ac_abs_top_builddir=$ac_abs_builddir;;
22851 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22852 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22853 esac;;
22854 esac
22855 case $ac_abs_builddir in
22856 .) ac_abs_srcdir=$ac_srcdir;;
22857 *)
22858 case $ac_srcdir in
22859 .) ac_abs_srcdir=$ac_abs_builddir;;
22860 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22861 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22862 esac;;
22863 esac
22864 case $ac_abs_builddir in
22865 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22866 *)
22867 case $ac_top_srcdir in
22868 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22869 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22870 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22871 esac;;
22872 esac
22873
22874
22875 case $srcdir in
22876 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22877 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22878 esac
22879
22880 # Try a symlink, then a hard link, then a copy.
22881 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22882 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22883 cp -p $srcdir/$ac_source $ac_dest ||
22884 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22885 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22886 { (exit 1); exit 1; }; }
22887 done
22888 _ACEOF
22889 cat >>$CONFIG_STATUS <<\_ACEOF
22890
22891 #
22892 # CONFIG_COMMANDS section.
22893 #
22894 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22895 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22896 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22897 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22898 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22899 X"$ac_dest" : 'X\(//\)[^/]' \| \
22900 X"$ac_dest" : 'X\(//\)$' \| \
22901 X"$ac_dest" : 'X\(/\)' \| \
22902 . : '\(.\)' 2>/dev/null ||
22903 echo X"$ac_dest" |
22904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22906 /^X\(\/\/\)$/{ s//\1/; q; }
22907 /^X\(\/\).*/{ s//\1/; q; }
22908 s/.*/./; q'`
22909 { if $as_mkdir_p; then
22910 mkdir -p "$ac_dir"
22911 else
22912 as_dir="$ac_dir"
22913 as_dirs=
22914 while test ! -d "$as_dir"; do
22915 as_dirs="$as_dir $as_dirs"
22916 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22918 X"$as_dir" : 'X\(//\)[^/]' \| \
22919 X"$as_dir" : 'X\(//\)$' \| \
22920 X"$as_dir" : 'X\(/\)' \| \
22921 . : '\(.\)' 2>/dev/null ||
22922 echo X"$as_dir" |
22923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22925 /^X\(\/\/\)$/{ s//\1/; q; }
22926 /^X\(\/\).*/{ s//\1/; q; }
22927 s/.*/./; q'`
22928 done
22929 test ! -n "$as_dirs" || mkdir $as_dirs
22930 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22931 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22932 { (exit 1); exit 1; }; }; }
22933
22934 ac_builddir=.
22935
22936 if test "$ac_dir" != .; then
22937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22938 # A "../" for each directory in $ac_dir_suffix.
22939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22940 else
22941 ac_dir_suffix= ac_top_builddir=
22942 fi
22943
22944 case $srcdir in
22945 .) # No --srcdir option. We are building in place.
22946 ac_srcdir=.
22947 if test -z "$ac_top_builddir"; then
22948 ac_top_srcdir=.
22949 else
22950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22951 fi ;;
22952 [\\/]* | ?:[\\/]* ) # Absolute path.
22953 ac_srcdir=$srcdir$ac_dir_suffix;
22954 ac_top_srcdir=$srcdir ;;
22955 *) # Relative path.
22956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22958 esac
22959
22960 # Do not use `cd foo && pwd` to compute absolute paths, because
22961 # the directories may not exist.
22962 case `pwd` in
22963 .) ac_abs_builddir="$ac_dir";;
22964 *)
22965 case "$ac_dir" in
22966 .) ac_abs_builddir=`pwd`;;
22967 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22968 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22969 esac;;
22970 esac
22971 case $ac_abs_builddir in
22972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22973 *)
22974 case ${ac_top_builddir}. in
22975 .) ac_abs_top_builddir=$ac_abs_builddir;;
22976 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22977 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22978 esac;;
22979 esac
22980 case $ac_abs_builddir in
22981 .) ac_abs_srcdir=$ac_srcdir;;
22982 *)
22983 case $ac_srcdir in
22984 .) ac_abs_srcdir=$ac_abs_builddir;;
22985 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22986 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22987 esac;;
22988 esac
22989 case $ac_abs_builddir in
22990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22991 *)
22992 case $ac_top_srcdir in
22993 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22994 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22995 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22996 esac;;
22997 esac
22998
22999
23000 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23001 echo "$as_me: executing $ac_dest commands" >&6;}
23002 case $ac_dest in
23003 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
23004 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23005 # Strip MF so we end up with the name of the file.
23006 mf=`echo "$mf" | sed -e 's/:.*$//'`
23007 # Check whether this is an Automake generated Makefile or not.
23008 # We used to match only the files named `Makefile.in', but
23009 # some people rename them; so instead we look at the file content.
23010 # Grep'ing the first line is not enough: some people post-process
23011 # each Makefile.in and add a new line on top of each file to say so.
23012 # So let's grep whole file.
23013 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23014 dirpart=`(dirname "$mf") 2>/dev/null ||
23015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016 X"$mf" : 'X\(//\)[^/]' \| \
23017 X"$mf" : 'X\(//\)$' \| \
23018 X"$mf" : 'X\(/\)' \| \
23019 . : '\(.\)' 2>/dev/null ||
23020 echo X"$mf" |
23021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23023 /^X\(\/\/\)$/{ s//\1/; q; }
23024 /^X\(\/\).*/{ s//\1/; q; }
23025 s/.*/./; q'`
23026 else
23027 continue
23028 fi
23029 # Extract the definition of DEPDIR, am__include, and am__quote
23030 # from the Makefile without running `make'.
23031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23032 test -z "$DEPDIR" && continue
23033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23034 test -z "am__include" && continue
23035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23036 # When using ansi2knr, U may be empty or an underscore; expand it
23037 U=`sed -n 's/^U = //p' < "$mf"`
23038 # Find all dependency output files, they are included files with
23039 # $(DEPDIR) in their names. We invoke sed twice because it is the
23040 # simplest approach to changing $(DEPDIR) to its actual value in the
23041 # expansion.
23042 for file in `sed -n "
23043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23045 # Make sure the directory exists.
23046 test -f "$dirpart/$file" && continue
23047 fdir=`(dirname "$file") 2>/dev/null ||
23048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23049 X"$file" : 'X\(//\)[^/]' \| \
23050 X"$file" : 'X\(//\)$' \| \
23051 X"$file" : 'X\(/\)' \| \
23052 . : '\(.\)' 2>/dev/null ||
23053 echo X"$file" |
23054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23056 /^X\(\/\/\)$/{ s//\1/; q; }
23057 /^X\(\/\).*/{ s//\1/; q; }
23058 s/.*/./; q'`
23059 { if $as_mkdir_p; then
23060 mkdir -p $dirpart/$fdir
23061 else
23062 as_dir=$dirpart/$fdir
23063 as_dirs=
23064 while test ! -d "$as_dir"; do
23065 as_dirs="$as_dir $as_dirs"
23066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23068 X"$as_dir" : 'X\(//\)[^/]' \| \
23069 X"$as_dir" : 'X\(//\)$' \| \
23070 X"$as_dir" : 'X\(/\)' \| \
23071 . : '\(.\)' 2>/dev/null ||
23072 echo X"$as_dir" |
23073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23075 /^X\(\/\/\)$/{ s//\1/; q; }
23076 /^X\(\/\).*/{ s//\1/; q; }
23077 s/.*/./; q'`
23078 done
23079 test ! -n "$as_dirs" || mkdir $as_dirs
23080 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23081 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23082 { (exit 1); exit 1; }; }; }
23083
23084 # echo "creating $dirpart/$file"
23085 echo '# dummy' > "$dirpart/$file"
23086 done
23087 done
23088 ;;
23089 default )
23090 case x$CONFIG_HEADERS in
23091 xconfig.h:config.in)
23092 echo > stamp-h ;;
23093 esac
23094 ;;
23095 esac
23096 done
23097 _ACEOF
23098
23099 cat >>$CONFIG_STATUS <<\_ACEOF
23100
23101 { (exit 0); exit 0; }
23102 _ACEOF
23103 chmod +x $CONFIG_STATUS
23104 ac_clean_files=$ac_clean_files_save
23105
23106
23107 # configure is writing to config.log, and then calls config.status.
23108 # config.status does its own redirection, appending to config.log.
23109 # Unfortunately, on DOS this fails, as config.log is still kept open
23110 # by configure, so config.status won't be able to write to it; its
23111 # output is simply discarded. So we exec the FD to /dev/null,
23112 # effectively closing config.log, so it can be properly (re)opened and
23113 # appended to by config.status. When coming back to configure, we
23114 # need to make the FD available again.
23115 if test "$no_create" != yes; then
23116 ac_cs_success=:
23117 ac_config_status_args=
23118 test "$silent" = yes &&
23119 ac_config_status_args="$ac_config_status_args --quiet"
23120 exec 5>/dev/null
23121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23122 exec 5>>config.log
23123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23124 # would make configure fail if this is the last instruction.
23125 $ac_cs_success || { (exit 1); exit 1; }
23126 fi
23127
23128 #
23129 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23130 #
23131 if test "$no_recursion" != yes; then
23132
23133 # Remove --cache-file and --srcdir arguments so they do not pile up.
23134 ac_sub_configure_args=
23135 ac_prev=
23136 eval "set x $ac_configure_args"
23137 shift
23138 for ac_arg
23139 do
23140 if test -n "$ac_prev"; then
23141 ac_prev=
23142 continue
23143 fi
23144 case $ac_arg in
23145 -cache-file | --cache-file | --cache-fil | --cache-fi \
23146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23147 ac_prev=cache_file ;;
23148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23150 | --c=*)
23151 ;;
23152 --config-cache | -C)
23153 ;;
23154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23155 ac_prev=srcdir ;;
23156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23157 ;;
23158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23159 ac_prev=prefix ;;
23160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23161 ;;
23162 *)
23163 case $ac_arg in
23164 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23165 esac
23166 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23167 esac
23168 done
23169
23170 # Always prepend --prefix to ensure using the same prefix
23171 # in subdir configurations.
23172 ac_arg="--prefix=$prefix"
23173 case $ac_arg in
23174 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23175 esac
23176 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23177
23178 ac_popdir=`pwd`
23179 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23180
23181 # Do not complain, so a configure script can configure whichever
23182 # parts of a large source tree are present.
23183 test -d "$srcdir/$ac_dir" || continue
23184
23185 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23186 echo "$as_me: configuring in $ac_dir" >&6;}
23187 { if $as_mkdir_p; then
23188 mkdir -p "$ac_dir"
23189 else
23190 as_dir="$ac_dir"
23191 as_dirs=
23192 while test ! -d "$as_dir"; do
23193 as_dirs="$as_dir $as_dirs"
23194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23196 X"$as_dir" : 'X\(//\)[^/]' \| \
23197 X"$as_dir" : 'X\(//\)$' \| \
23198 X"$as_dir" : 'X\(/\)' \| \
23199 . : '\(.\)' 2>/dev/null ||
23200 echo X"$as_dir" |
23201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23203 /^X\(\/\/\)$/{ s//\1/; q; }
23204 /^X\(\/\).*/{ s//\1/; q; }
23205 s/.*/./; q'`
23206 done
23207 test ! -n "$as_dirs" || mkdir $as_dirs
23208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23209 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23210 { (exit 1); exit 1; }; }; }
23211
23212 ac_builddir=.
23213
23214 if test "$ac_dir" != .; then
23215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23216 # A "../" for each directory in $ac_dir_suffix.
23217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23218 else
23219 ac_dir_suffix= ac_top_builddir=
23220 fi
23221
23222 case $srcdir in
23223 .) # No --srcdir option. We are building in place.
23224 ac_srcdir=.
23225 if test -z "$ac_top_builddir"; then
23226 ac_top_srcdir=.
23227 else
23228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23229 fi ;;
23230 [\\/]* | ?:[\\/]* ) # Absolute path.
23231 ac_srcdir=$srcdir$ac_dir_suffix;
23232 ac_top_srcdir=$srcdir ;;
23233 *) # Relative path.
23234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23236 esac
23237
23238 # Do not use `cd foo && pwd` to compute absolute paths, because
23239 # the directories may not exist.
23240 case `pwd` in
23241 .) ac_abs_builddir="$ac_dir";;
23242 *)
23243 case "$ac_dir" in
23244 .) ac_abs_builddir=`pwd`;;
23245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23246 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23247 esac;;
23248 esac
23249 case $ac_abs_builddir in
23250 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23251 *)
23252 case ${ac_top_builddir}. in
23253 .) ac_abs_top_builddir=$ac_abs_builddir;;
23254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23256 esac;;
23257 esac
23258 case $ac_abs_builddir in
23259 .) ac_abs_srcdir=$ac_srcdir;;
23260 *)
23261 case $ac_srcdir in
23262 .) ac_abs_srcdir=$ac_abs_builddir;;
23263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23265 esac;;
23266 esac
23267 case $ac_abs_builddir in
23268 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23269 *)
23270 case $ac_top_srcdir in
23271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23274 esac;;
23275 esac
23276
23277
23278 cd "$ac_dir"
23279
23280 # Check for guested configure; otherwise get Cygnus style configure.
23281 if test -f "$ac_srcdir/configure.gnu"; then
23282 ac_sub_configure=$ac_srcdir/configure.gnu
23283 elif test -f "$ac_srcdir/configure"; then
23284 ac_sub_configure=$ac_srcdir/configure
23285 elif test -f "$ac_srcdir/configure.in"; then
23286 # This should be Cygnus configure.
23287 ac_sub_configure=$ac_aux_dir/configure
23288 else
23289 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23290 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23291 ac_sub_configure=
23292 fi
23293
23294 # The recursion is here.
23295 if test -n "$ac_sub_configure"; then
23296 # Make the cache file name correct relative to the subdirectory.
23297 case $cache_file in
23298 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23299 *) # Relative path.
23300 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23301 esac
23302
23303 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23304 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23305 # The eval makes quoting arguments work.
23306 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23307 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23308 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23309 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23310 { (exit 1); exit 1; }; }
23311 fi
23312
23313 cd "$ac_popdir"
23314 done
23315 fi
23316
23317
23318 exit 0
This page took 1.07629 seconds and 5 git commands to generate.