]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
re PR libgcj/11801 (Problems with Process.waitFor() and exitValue())
[thirdparty/gcc.git] / libjava / 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="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all $DIRLTDL"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS EXTRA_CC_FILES PLATFORMOBJS PLATFORM_INNER_NAT_HDRS CPP EGREP SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCOBJS GCSPEC JC1GCSPEC GCTESTSPEC THREADLIBS THREADINCS THREADDEPS THREADOBJS THREADSPEC THREADLDFLAGS THREADCXXFLAGS HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS GCJH ZIP GCJ ac_ct_GCJ GCJFLAGS ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures this package to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
824
825 cat <<\_ACEOF
826
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844
845 cat <<\_ACEOF
846
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-version-specific-runtime-libs
851 specify that runtime libraries should be installed
852 in a compiler-specific directory
853 --enable-multilib build many library versions (default)
854 --enable-maintainer-mode enable make rules and dependencies not useful
855 (and sometimes confusing) to the casual installer
856 --enable-shared=PKGS build shared libraries default=yes
857 --enable-static=PKGS build static libraries default=yes
858 --enable-fast-install=PKGS optimize for fast installation default=yes
859 --disable-libtool-lock avoid locking (might break parallel builds)
860 --disable-getenv-properties
861 don't set system properties from GCJ_PROPERTIES
862 --enable-hash-synchronization
863 use global hash table for monitor locks
864 --enable-libgcj-multifile
865 allow compilation of several files at once
866
867 --enable-libgcj-debug enable runtime debugging code
868 --enable-interpreter enable interpreter
869 --enable-sjlj-exceptions
870 force use of builtin_setjmp for exceptions
871 --disable-java-net disable java.net
872 --disable-jvmpi disable JVMPI support
873 --enable-java-awt list of AWT peer implementations to be built
874 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
875 --enable-java-gc=TYPE choose garbage collector (default is boehm)
876
877 Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-target-subdir=SUBDIR
881 configure in a subdirectory
882 --with-cross-host=HOST configure with a cross compiler from HOST
883 --with-newlib configure with newlib
884 --with-gnu-ld assume the C compiler uses GNU ld default=no
885 --with-pic try to use only PIC/non-PIC objects default=use both
886 --with-win32-nlsapi=ansi or unicows or unicode
887 native MinGW libgcj Win32 OS API (default is ansi)
888 --without-libffi don't use libffi
889 --with-ecos enable runtime eCos target support
890 --with-system-zlib use installed libz
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CXX C++ compiler command
902 CXXFLAGS C++ compiler flags
903 CXXCPP C++ preprocessor
904 CPP C preprocessor
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
914 ac_popdir=`pwd`
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
917 ac_builddir=.
918
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924 ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928 .) # No --srcdir option. We are building in place.
929 ac_srcdir=.
930 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=.
932 else
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 fi ;;
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
938 *) # Relative path.
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942
943 # Do not use `cd foo && pwd` to compute absolute paths, because
944 # the directories may not exist.
945 case `pwd` in
946 .) ac_abs_builddir="$ac_dir";;
947 *)
948 case "$ac_dir" in
949 .) ac_abs_builddir=`pwd`;;
950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *)
957 case ${ac_top_builddir}. in
958 .) ac_abs_top_builddir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_srcdir=$ac_srcdir;;
965 *)
966 case $ac_srcdir in
967 .) ac_abs_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *)
975 case $ac_top_srcdir in
976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 esac;;
980 esac
981
982 cd $ac_dir
983 # Check for guested configure; otherwise get Cygnus style configure.
984 if test -f $ac_srcdir/configure.gnu; then
985 echo
986 $SHELL $ac_srcdir/configure.gnu --help=recursive
987 elif test -f $ac_srcdir/configure; then
988 echo
989 $SHELL $ac_srcdir/configure --help=recursive
990 elif test -f $ac_srcdir/configure.ac ||
991 test -f $ac_srcdir/configure.in; then
992 echo
993 $ac_configure --help
994 else
995 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996 fi
997 cd $ac_popdir
998 done
999 fi
1000
1001 test -n "$ac_init_help" && exit 0
1002 if $ac_init_version; then
1003 cat <<\_ACEOF
1004
1005 Copyright (C) 2003 Free Software Foundation, Inc.
1006 This configure script is free software; the Free Software Foundation
1007 gives unlimited permission to copy, distribute and modify it.
1008 _ACEOF
1009 exit 0
1010 fi
1011 exec 5>config.log
1012 cat >&5 <<_ACEOF
1013 This file contains any messages produced by compilers while
1014 running configure, to aid debugging if configure makes a mistake.
1015
1016 It was created by $as_me, which was
1017 generated by GNU Autoconf 2.59. Invocation command line was
1018
1019 $ $0 $@
1020
1021 _ACEOF
1022 {
1023 cat <<_ASUNAME
1024 ## --------- ##
1025 ## Platform. ##
1026 ## --------- ##
1027
1028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033
1034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036
1037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044
1045 _ASUNAME
1046
1047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 for as_dir in $PATH
1049 do
1050 IFS=$as_save_IFS
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1053 done
1054
1055 } >&5
1056
1057 cat >&5 <<_ACEOF
1058
1059
1060 ## ----------- ##
1061 ## Core tests. ##
1062 ## ----------- ##
1063
1064 _ACEOF
1065
1066
1067 # Keep a trace of the command line.
1068 # Strip out --no-create and --no-recursion so they do not pile up.
1069 # Strip out --silent because we don't want to record it for future runs.
1070 # Also quote any args containing shell meta-characters.
1071 # Make two passes to allow for proper duplicate-argument suppression.
1072 ac_configure_args=
1073 ac_configure_args0=
1074 ac_configure_args1=
1075 ac_sep=
1076 ac_must_keep_next=false
1077 for ac_pass in 1 2
1078 do
1079 for ac_arg
1080 do
1081 case $ac_arg in
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 continue ;;
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 esac
1089 case $ac_pass in
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 2)
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1095 else
1096 case $ac_arg in
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 esac
1104 ;;
1105 -* ) ac_must_keep_next=true ;;
1106 esac
1107 fi
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1110 ac_sep=" "
1111 ;;
1112 esac
1113 done
1114 done
1115 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117
1118 # When interrupted or exit'd, cleanup temporary files, and complete
1119 # config.log. We remove comments because anyway the quotes in there
1120 # would cause problems or look ugly.
1121 # WARNING: Be sure not to use single quotes in there, as some shells,
1122 # such as our DU 5.0 friend, will then `close' the trap.
1123 trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1125 {
1126 echo
1127
1128 cat <<\_ASBOX
1129 ## ---------------- ##
1130 ## Cache variables. ##
1131 ## ---------------- ##
1132 _ASBOX
1133 echo
1134 # The following way of writing the cache mishandles newlines in values,
1135 {
1136 (set) 2>&1 |
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 *ac_space=\ *)
1139 sed -n \
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 ;;
1143 *)
1144 sed -n \
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ;;
1147 esac;
1148 }
1149 echo
1150
1151 cat <<\_ASBOX
1152 ## ----------------- ##
1153 ## Output variables. ##
1154 ## ----------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_vars
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163
1164 if test -n "$ac_subst_files"; then
1165 cat <<\_ASBOX
1166 ## ------------- ##
1167 ## Output files. ##
1168 ## ------------- ##
1169 _ASBOX
1170 echo
1171 for ac_var in $ac_subst_files
1172 do
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1175 done | sort
1176 echo
1177 fi
1178
1179 if test -s confdefs.h; then
1180 cat <<\_ASBOX
1181 ## ----------- ##
1182 ## confdefs.h. ##
1183 ## ----------- ##
1184 _ASBOX
1185 echo
1186 sed "/^$/d" confdefs.h | sort
1187 echo
1188 fi
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1192 } >&5
1193 rm -f core *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 exit $exit_status
1196 ' 0
1197 for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 done
1200 ac_signal=0
1201
1202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1203 rm -rf conftest* confdefs.h
1204 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 echo >confdefs.h
1206
1207 # Predefined preprocessor variables.
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 _ACEOF
1232
1233
1234 # Let the site file select an alternate cache file if it wants to.
1235 # Prefer explicitly selected file to automatically selected ones.
1236 if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 else
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 fi
1242 fi
1243 for ac_site_file in $CONFIG_SITE; do
1244 if test -r "$ac_site_file"; then
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246 echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
1248 . "$ac_site_file"
1249 fi
1250 done
1251
1252 if test -r "$cache_file"; then
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257 echo "$as_me: loading cache $cache_file" >&6;}
1258 case $cache_file in
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1261 esac
1262 fi
1263 else
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265 echo "$as_me: creating cache $cache_file" >&6;}
1266 >$cache_file
1267 fi
1268
1269 # Check that the precious variables saved in the cache have kept the same
1270 # value.
1271 ac_cache_corrupted=false
1272 for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
1278 case $ac_old_set,$ac_new_set in
1279 set,)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,set)
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1287 ,);;
1288 *)
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293 echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295 echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1297 fi;;
1298 esac
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1301 case $ac_new_val in
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1305 esac
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 esac
1310 fi
1311 done
1312 if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
1318 fi
1319
1320 ac_ext=c
1321 ac_cpp='$CPP $CPPFLAGS'
1322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 # We use these options to decide which functions to include.
1346
1347 # Check whether --with-target-subdir or --without-target-subdir was given.
1348 if test "${with_target_subdir+set}" = set; then
1349 withval="$with_target_subdir"
1350
1351 fi;
1352
1353 # We may get other options which we don't document:
1354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1355
1356 # When building with srcdir == objdir, links to the source files will
1357 # be created in directories within the target_subdir. We have to
1358 # adjust toplevel_srcdir accordingly, so that configure finds
1359 # install-sh and other auxiliary files that live in the top-level
1360 # source directory.
1361 if test "${srcdir}" = "."; then
1362 if test -z "${with_target_subdir}"; then
1363 toprel=".."
1364 else
1365 if test "${with_target_subdir}" != "."; then
1366 toprel="${with_multisrctop}../.."
1367 else
1368 toprel="${with_multisrctop}.."
1369 fi
1370 fi
1371 else
1372 toprel=".."
1373 fi
1374
1375 libgcj_basedir=$srcdir/$toprel/./libjava
1376
1377
1378 ac_aux_dir=
1379 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1380 if test -f $ac_dir/install-sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1383 break
1384 elif test -f $ac_dir/install.sh; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/install.sh -c"
1387 break
1388 elif test -f $ac_dir/shtool; then
1389 ac_aux_dir=$ac_dir
1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 break
1392 fi
1393 done
1394 if test -z "$ac_aux_dir"; then
1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1397 { (exit 1); exit 1; }; }
1398 fi
1399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1402
1403 if :; then :; else
1404 # This overrides the previous occurrence for automake, but not for
1405 # autoconf, which is exactly what we want.
1406 ac_aux_dir=
1407 for ac_dir in .. $srcdir/..; do
1408 if test -f $ac_dir/install-sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 break
1412 elif test -f $ac_dir/install.sh; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 break
1416 elif test -f $ac_dir/shtool; then
1417 ac_aux_dir=$ac_dir
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 break
1420 fi
1421 done
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1425 { (exit 1); exit 1; }; }
1426 fi
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430
1431 fi
1432
1433 # Make sure we can run config.sub.
1434 $ac_config_sub sun4 >/dev/null 2>&1 ||
1435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1437 { (exit 1); exit 1; }; }
1438
1439 echo "$as_me:$LINENO: checking build system type" >&5
1440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1441 if test "${ac_cv_build+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 ac_cv_build_alias=$build_alias
1445 test -z "$ac_cv_build_alias" &&
1446 ac_cv_build_alias=`$ac_config_guess`
1447 test -z "$ac_cv_build_alias" &&
1448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1450 { (exit 1); exit 1; }; }
1451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1455
1456 fi
1457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1458 echo "${ECHO_T}$ac_cv_build" >&6
1459 build=$ac_cv_build
1460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463
1464
1465 echo "$as_me:$LINENO: checking host system type" >&5
1466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1467 if test "${ac_cv_host+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 ac_cv_host_alias=$host_alias
1471 test -z "$ac_cv_host_alias" &&
1472 ac_cv_host_alias=$ac_cv_build_alias
1473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1477
1478 fi
1479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1480 echo "${ECHO_T}$ac_cv_host" >&6
1481 host=$ac_cv_host
1482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485
1486
1487 echo "$as_me:$LINENO: checking target system type" >&5
1488 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1489 if test "${ac_cv_target+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 ac_cv_target_alias=$target_alias
1493 test "x$ac_cv_target_alias" = "x" &&
1494 ac_cv_target_alias=$ac_cv_host_alias
1495 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1497 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1498 { (exit 1); exit 1; }; }
1499
1500 fi
1501 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1502 echo "${ECHO_T}$ac_cv_target" >&6
1503 target=$ac_cv_target
1504 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507
1508
1509 # The aliases save the names the user supplied, while $host etc.
1510 # will get canonicalized.
1511 test -n "$target_alias" &&
1512 test "$program_prefix$program_suffix$program_transform_name" = \
1513 NONENONEs,x,x, &&
1514 program_prefix=${target_alias}-
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1518 esac
1519
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1523 esac
1524
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1528 esac
1529
1530
1531
1532
1533 # This works around the fact that libtool configuration may change LD
1534 # for this particular configuration, but some shells, instead of
1535 # keeping the changes in LD private, export them just because LD is
1536 # exported.
1537 ORIGINAL_LD_FOR_MULTILIBS=$LD
1538
1539 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1541 LN_S=$as_ln_s
1542 if test "$LN_S" = "ln -s"; then
1543 echo "$as_me:$LINENO: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1547 echo "${ECHO_T}no, using $LN_S" >&6
1548 fi
1549
1550
1551 # This works around an automake problem.
1552 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1553
1554
1555
1556 # Check whether --with-cross-host or --without-cross-host was given.
1557 if test "${with_cross_host+set}" = set; then
1558 withval="$with_cross_host"
1559
1560 fi;
1561
1562
1563 # Check whether --with-newlib or --without-newlib was given.
1564 if test "${with_newlib+set}" = set; then
1565 withval="$with_newlib"
1566
1567 fi;
1568
1569 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1570 if test "${enable_version_specific_runtime_libs+set}" = set; then
1571 enableval="$enable_version_specific_runtime_libs"
1572 case "$enableval" in
1573 yes) version_specific_libs=yes ;;
1574 no) version_specific_libs=no ;;
1575 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1576 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1577 { (exit 1); exit 1; }; };;
1578 esac
1579 else
1580 version_specific_libs=no
1581
1582 fi;
1583
1584 # Default to --enable-multilib
1585 # Check whether --enable-multilib or --disable-multilib was given.
1586 if test "${enable_multilib+set}" = set; then
1587 enableval="$enable_multilib"
1588 case "${enableval}" in
1589 yes) multilib=yes ;;
1590 no) multilib=no ;;
1591 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1592 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1593 { (exit 1); exit 1; }; } ;;
1594 esac
1595 else
1596 multilib=yes
1597 fi;
1598 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1599
1600
1601 # (1) We use an abnormal CXX (without library references), so we
1602 # must cache it under a different name.
1603 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1604 # the non-multilib-adjusted value will be used in multilibs.
1605 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1606 # (4) As another side effect, automake doesn't automatically include them
1607 # in Makefile.in.
1608 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1609 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1610 # used in later tests. This may not be necessary in libjava; I don't know.
1611
1612
1613
1614 save_CXXFLAGS="$CXXFLAGS"
1615 CXXFLAGS="$CXXFLAGS -fno-builtin"
1616 ac_ext=c
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 CC=$ac_cv_prog_CC
1649 if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657 fi
1658 if test -z "$ac_cv_prog_CC"; then
1659 ac_ct_CC=$CC
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695 CC=$ac_ct_CC
1696 else
1697 CC="$ac_cv_prog_CC"
1698 fi
1699
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_CC="${ac_tool_prefix}cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1722 fi
1723 done
1724 done
1725
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$ac_cv_prog_CC"; then
1739 ac_ct_CC=$CC
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 if test -n "$ac_ct_CC"; then
1748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1752 do
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_ac_ct_CC="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1760 fi
1761 done
1762 done
1763
1764 fi
1765 fi
1766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767 if test -n "$ac_ct_CC"; then
1768 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769 echo "${ECHO_T}$ac_ct_CC" >&6
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 fi
1774
1775 CC=$ac_ct_CC
1776 else
1777 CC="$ac_cv_prog_CC"
1778 fi
1779
1780 fi
1781 if test -z "$CC"; then
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792 ac_prog_rejected=no
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1801 ac_prog_rejected=yes
1802 continue
1803 fi
1804 ac_cv_prog_CC="cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1807 fi
1808 done
1809 done
1810
1811 if test $ac_prog_rejected = yes; then
1812 # We found a bogon in the path, so make sure we never use it.
1813 set dummy $ac_cv_prog_CC
1814 shift
1815 if test $# != 0; then
1816 # We chose a different compiler from the bogus one.
1817 # However, it has the same basename, so the bogon will be chosen
1818 # first if we set CC to just the basename; use the full file name.
1819 shift
1820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1821 fi
1822 fi
1823 fi
1824 fi
1825 CC=$ac_cv_prog_CC
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834 fi
1835 if test -z "$CC"; then
1836 if test -n "$ac_tool_prefix"; then
1837 for ac_prog in cl
1838 do
1839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1859 fi
1860 done
1861 done
1862
1863 fi
1864 fi
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874 test -n "$CC" && break
1875 done
1876 fi
1877 if test -z "$CC"; then
1878 ac_ct_CC=$CC
1879 for ac_prog in cl
1880 do
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_CC="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 test -n "$ac_ct_CC" && break
1917 done
1918
1919 CC=$ac_ct_CC
1920 fi
1921
1922 fi
1923
1924
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: no acceptable C compiler found in \$PATH
1928 See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1930
1931 # Provide some information about the compiler.
1932 echo "$as_me:$LINENO:" \
1933 "checking for C compiler version" >&5
1934 ac_compiler=`set X $ac_compile; echo $2`
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1936 (eval $ac_compiler --version </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1941 (eval $ac_compiler -v </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1946 (eval $ac_compiler -V </dev/null >&5) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }
1950
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h. */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1957
1958 int
1959 main ()
1960 {
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 # FIXME: Cleanup?
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 gcc_no_link=no
1973 else
1974 gcc_no_link=yes
1975 fi
1976
1977 if test x$gcc_no_link = xyes; then
1978 # Setting cross_compile will disable run tests; it will
1979 # also disable AC_CHECK_FILE but that's generally
1980 # correct if we can't link.
1981 cross_compiling=yes
1982 EXEEXT=
1983 else
1984 cat >conftest.$ac_ext <<_ACEOF
1985 /* confdefs.h. */
1986 _ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1990
1991 int
1992 main ()
1993 {
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2003 # of exeext.
2004 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2005 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # resort.
2015
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018 ac_cv_exeext=
2019 # b.out is created by i960 compilers.
2020 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2021 do
2022 test -f "$ac_file" || continue
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2025 ;;
2026 conftest.$ac_ext )
2027 # This is the source file.
2028 ;;
2029 [ab].out )
2030 # We found the default executable, but exeext='' is most
2031 # certainly right.
2032 break;;
2033 *.* )
2034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 # FIXME: I believe we export ac_cv_exeext for Libtool,
2036 # but it would be cool to find out if it's true. Does anybody
2037 # maintain Libtool? --akim.
2038 export ac_cv_exeext
2039 break;;
2040 * )
2041 break;;
2042 esac
2043 done
2044 else
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: C compiler cannot create executables
2051 See \`config.log' for more details." >&2;}
2052 { (exit 77); exit 77; }; }
2053 fi
2054
2055 ac_exeext=$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_file" >&5
2057 echo "${ECHO_T}$ac_file" >&6
2058
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2062 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2063 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2064 # If not cross compiling, check that we can run a simple program.
2065 if test "$cross_compiling" != yes; then
2066 if { ac_try='./$ac_file'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 cross_compiling=no
2073 else
2074 if test "$cross_compiling" = maybe; then
2075 cross_compiling=yes
2076 else
2077 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'.
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085 fi
2086 fi
2087 echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6
2089
2090 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2091 ac_clean_files=$ac_clean_files_save
2092 # Check the compiler produces executables we can run. If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2095 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2096 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2097 echo "${ECHO_T}$cross_compiling" >&6
2098
2099 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2100 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2102 (eval $ac_link) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2108 # work properly (i.e., refer to `conftest.exe'), while it won't with
2109 # `rm'.
2110 for ac_file in conftest.exe conftest conftest.*; do
2111 test -f "$ac_file" || continue
2112 case $ac_file in
2113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115 export ac_cv_exeext
2116 break;;
2117 * ) break;;
2118 esac
2119 done
2120 else
2121 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2126 fi
2127
2128 rm -f conftest$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2130 echo "${ECHO_T}$ac_cv_exeext" >&6
2131
2132 rm -f conftest.$ac_ext
2133 EXEEXT=$ac_cv_exeext
2134 ac_exeext=$EXEEXT
2135 fi
2136 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2138 if test "${ac_cv_objext+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h. */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2147
2148 int
2149 main ()
2150 {
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 rm -f conftest.o conftest.obj
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2163 case $ac_file in
2164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2166 break;;
2167 esac
2168 done
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi
2179
2180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2181 fi
2182 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2183 echo "${ECHO_T}$ac_cv_objext" >&6
2184 OBJEXT=$ac_cv_objext
2185 ac_objext=$OBJEXT
2186 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2197
2198 int
2199 main ()
2200 {
2201 #ifndef __GNUC__
2202 choke me
2203 #endif
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>conftest.er1
2212 ac_status=$?
2213 grep -v '^ *+' conftest.er1 >conftest.err
2214 rm -f conftest.er1
2215 cat conftest.err >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -z "$ac_c_werror_flag"
2219 || test ! -s conftest.err'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 ac_compiler_gnu=yes
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236 ac_compiler_gnu=no
2237 fi
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2240
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2244 GCC=`test $ac_compiler_gnu = yes && echo yes`
2245 ac_test_CFLAGS=${CFLAGS+set}
2246 ac_save_CFLAGS=$CFLAGS
2247 CFLAGS="-g"
2248 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2250 if test "${ac_cv_prog_cc_g+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259
2260 int
2261 main ()
2262 {
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_g=yes
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_cv_prog_cc_g=no
2296 fi
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2301 if test "$ac_test_CFLAGS" = set; then
2302 CFLAGS=$ac_save_CFLAGS
2303 elif test $ac_cv_prog_cc_g = yes; then
2304 if test "$GCC" = yes; then
2305 CFLAGS="-g -O2"
2306 else
2307 CFLAGS="-g"
2308 fi
2309 else
2310 if test "$GCC" = yes; then
2311 CFLAGS="-O2"
2312 else
2313 CFLAGS=
2314 fi
2315 fi
2316 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2317 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2318 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 ac_cv_prog_cc_stdc=no
2322 ac_save_CC=$CC
2323 cat >conftest.$ac_ext <<_ACEOF
2324 /* confdefs.h. */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2329 #include <stdarg.h>
2330 #include <stdio.h>
2331 #include <sys/types.h>
2332 #include <sys/stat.h>
2333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2334 struct buf { int x; };
2335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2336 static char *e (p, i)
2337 char **p;
2338 int i;
2339 {
2340 return p[i];
2341 }
2342 static char *f (char * (*g) (char **, int), char **p, ...)
2343 {
2344 char *s;
2345 va_list v;
2346 va_start (v,p);
2347 s = g (p, va_arg (v,int));
2348 va_end (v);
2349 return s;
2350 }
2351
2352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2353 function prototypes and stuff, but not '\xHH' hex character constants.
2354 These don't provoke an error unfortunately, instead are silently treated
2355 as 'x'. The following induces an error, until -std1 is added to get
2356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2357 array size at least. It's necessary to write '\x00'==0 to get something
2358 that's true only with -std1. */
2359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2360
2361 int test (int i, double x);
2362 struct s1 {int (*f) (int a);};
2363 struct s2 {int (*f) (double a);};
2364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2365 int argc;
2366 char **argv;
2367 int
2368 main ()
2369 {
2370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2371 ;
2372 return 0;
2373 }
2374 _ACEOF
2375 # Don't try gcc -ansi; that turns off useful extensions and
2376 # breaks some systems' header files.
2377 # AIX -qlanglvl=ansi
2378 # Ultrix and OSF/1 -std1
2379 # HP-UX 10.20 and later -Ae
2380 # HP-UX older versions -Aa -D_HPUX_SOURCE
2381 # SVR4 -Xc -D__EXTENSIONS__
2382 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2383 do
2384 CC="$ac_save_CC $ac_arg"
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_cv_prog_cc_stdc=$ac_arg
2408 break
2409 else
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 fi
2414 rm -f conftest.err conftest.$ac_objext
2415 done
2416 rm -f conftest.$ac_ext conftest.$ac_objext
2417 CC=$ac_save_CC
2418
2419 fi
2420
2421 case "x$ac_cv_prog_cc_stdc" in
2422 x|xno)
2423 echo "$as_me:$LINENO: result: none needed" >&5
2424 echo "${ECHO_T}none needed" >&6 ;;
2425 *)
2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2428 CC="$CC $ac_cv_prog_cc_stdc" ;;
2429 esac
2430
2431 # Some people use a C++ compiler to compile C. Since we use `exit',
2432 # in C++ we need to declare it. In case someone uses the same compiler
2433 # for both compiling C and C++ we need to have the C++ compiler decide
2434 # the declaration of exit, since it's the most demanding environment.
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #ifndef __cplusplus
2437 choke me
2438 #endif
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 for ac_declaration in \
2463 '' \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2468 'void exit (int);'
2469 do
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 $ac_declaration
2477 #include <stdlib.h>
2478 int
2479 main ()
2480 {
2481 exit (42);
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 :
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 continue
2514 fi
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 $ac_declaration
2523 int
2524 main ()
2525 {
2526 exit (42);
2527 ;
2528 return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_c_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 break
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2566 fi
2567
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580 ac_ext=cc
2581 ac_cpp='$CXXCPP $CPPFLAGS'
2582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2587 do
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CXX"; then
2596 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611
2612 fi
2613 fi
2614 CXX=$glibcxx_cv_prog_CXX
2615 if test -n "$CXX"; then
2616 echo "$as_me:$LINENO: result: $CXX" >&5
2617 echo "${ECHO_T}$CXX" >&6
2618 else
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2621 fi
2622
2623 test -n "$CXX" && break
2624 done
2625 fi
2626 if test -z "$CXX"; then
2627 ac_ct_CXX=$CXX
2628 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2629 do
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 if test -n "$ac_ct_CXX"; then
2638 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_ac_ct_CXX="$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653
2654 fi
2655 fi
2656 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2657 if test -n "$ac_ct_CXX"; then
2658 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2659 echo "${ECHO_T}$ac_ct_CXX" >&6
2660 else
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2663 fi
2664
2665 test -n "$ac_ct_CXX" && break
2666 done
2667 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2668
2669 CXX=$ac_ct_CXX
2670 fi
2671
2672
2673 # Provide some information about the compiler.
2674 echo "$as_me:$LINENO:" \
2675 "checking for C++ compiler version" >&5
2676 ac_compiler=`set X $ac_compile; echo $2`
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2678 (eval $ac_compiler --version </dev/null >&5) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2683 (eval $ac_compiler -v </dev/null >&5) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2688 (eval $ac_compiler -V </dev/null >&5) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692
2693 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2694 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2695 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h. */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704
2705 int
2706 main ()
2707 {
2708 #ifndef __GNUC__
2709 choke me
2710 #endif
2711
2712 ;
2713 return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2719 ac_status=$?
2720 grep -v '^ *+' conftest.er1 >conftest.err
2721 rm -f conftest.er1
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_cxx_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_compiler_gnu=yes
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_compiler_gnu=no
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2747
2748 fi
2749 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2751 GXX=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CXXFLAGS=${CXXFLAGS+set}
2753 ac_save_CXXFLAGS=$CXXFLAGS
2754 CXXFLAGS="-g"
2755 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2756 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2757 if test "${ac_cv_prog_cxx_g+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766
2767 int
2768 main ()
2769 {
2770
2771 ;
2772 return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_cxx_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_cv_prog_cxx_g=yes
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 ac_cv_prog_cxx_g=no
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2808 if test "$ac_test_CXXFLAGS" = set; then
2809 CXXFLAGS=$ac_save_CXXFLAGS
2810 elif test $ac_cv_prog_cxx_g = yes; then
2811 if test "$GXX" = yes; then
2812 CXXFLAGS="-g -O2"
2813 else
2814 CXXFLAGS="-g"
2815 fi
2816 else
2817 if test "$GXX" = yes; then
2818 CXXFLAGS="-O2"
2819 else
2820 CXXFLAGS=
2821 fi
2822 fi
2823 for ac_declaration in \
2824 '' \
2825 'extern "C" void std::exit (int) throw (); using std::exit;' \
2826 'extern "C" void std::exit (int); using std::exit;' \
2827 'extern "C" void exit (int) throw ();' \
2828 'extern "C" void exit (int);' \
2829 'void exit (int);'
2830 do
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 $ac_declaration
2838 #include <stdlib.h>
2839 int
2840 main ()
2841 {
2842 exit (42);
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_cxx_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 :
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 continue
2875 fi
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 $ac_declaration
2884 int
2885 main ()
2886 {
2887 exit (42);
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -z "$ac_cxx_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 break
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 done
2922 rm -f conftest*
2923 if test -n "$ac_declaration"; then
2924 echo '#ifdef __cplusplus' >>confdefs.h
2925 echo $ac_declaration >>confdefs.h
2926 echo '#endif' >>confdefs.h
2927 fi
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935 CXXFLAGS="$save_CXXFLAGS"
2936
2937
2938
2939
2940
2941 # version is pulled out to make it a bit easier to change using sed.
2942 version=0.0.7
2943 # Still use "libjava" here to placate dejagnu.
2944 # Find a good install program. We prefer a C program (faster),
2945 # so one script is as good as another. But avoid the broken or
2946 # incompatible versions:
2947 # SysV /etc/install, /usr/sbin/install
2948 # SunOS /usr/etc/install
2949 # IRIX /sbin/install
2950 # AIX /bin/install
2951 # AmigaOS /C/install, which installs bootblocks on floppy discs
2952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955 # OS/2's system install, which has a completely different semantic
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2959 if test -z "$INSTALL"; then
2960 if test "${ac_cv_path_install+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 # Account for people who put trailing slashes in PATH elements.
2969 case $as_dir/ in
2970 ./ | .// | /cC/* | \
2971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2973 /usr/ucb/* ) ;;
2974 *)
2975 # OSF1 and SCO ODT 3.0 have their own names for install.
2976 # Don't use installbsd from OSF since it installs stuff as root
2977 # by default.
2978 for ac_prog in ginstall scoinst install; do
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2981 if test $ac_prog = install &&
2982 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983 # AIX install. It has an incompatible calling convention.
2984 :
2985 elif test $ac_prog = install &&
2986 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # program-specific install script used by HP pwplus--don't use.
2988 :
2989 else
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 break 3
2992 fi
2993 fi
2994 done
2995 done
2996 ;;
2997 esac
2998 done
2999
3000
3001 fi
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3004 else
3005 # As a last resort, use the slow shell script. We don't cache a
3006 # path for INSTALL within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the path is relative.
3009 INSTALL=$ac_install_sh
3010 fi
3011 fi
3012 echo "$as_me:$LINENO: result: $INSTALL" >&5
3013 echo "${ECHO_T}$INSTALL" >&6
3014
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
3023 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3024 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3025 # Just in case
3026 sleep 1
3027 echo timestamp > conftestfile
3028 # Do `set' in a subshell so we don't clobber the current shell's
3029 # arguments. Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3032 # directory).
3033 if (
3034 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
3035 if test "$*" = "X"; then
3036 # -L didn't work.
3037 set X `ls -t $srcdir/configure conftestfile`
3038 fi
3039 if test "$*" != "X $srcdir/configure conftestfile" \
3040 && test "$*" != "X conftestfile $srcdir/configure"; then
3041
3042 # If neither matched, then we have a broken ls. This can happen
3043 # if, for instance, CONFIG_SHELL is bash and it inherits a
3044 # broken ls alias from the environment. This has actually
3045 # happened. Such a system could not be considered "sane".
3046 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3047 alias in your environment" >&5
3048 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3049 alias in your environment" >&2;}
3050 { (exit 1); exit 1; }; }
3051 fi
3052
3053 test "$2" = conftestfile
3054 )
3055 then
3056 # Ok.
3057 :
3058 else
3059 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3060 Check your system clock" >&5
3061 echo "$as_me: error: newly created file is older than distributed files!
3062 Check your system clock" >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3065 rm -f conftest*
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3068 test "$program_prefix" != NONE &&
3069 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3070 # Use a double $ so make ignores it.
3071 test "$program_suffix" != NONE &&
3072 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3073 # Double any \ or $. echo might interpret backslashes.
3074 # By default was `s,x,x', remove it if useless.
3075 cat <<\_ACEOF >conftest.sed
3076 s/[\\$]/&&/g;s/;s,x,x,$//
3077 _ACEOF
3078 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3079 rm conftest.sed
3080
3081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3083 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3084 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 cat >conftest.make <<\_ACEOF
3088 all:
3089 @echo 'ac_maketemp="$(MAKE)"'
3090 _ACEOF
3091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3092 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3093 if test -n "$ac_maketemp"; then
3094 eval ac_cv_prog_make_${ac_make}_set=yes
3095 else
3096 eval ac_cv_prog_make_${ac_make}_set=no
3097 fi
3098 rm -f conftest.make
3099 fi
3100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102 echo "${ECHO_T}yes" >&6
3103 SET_MAKE=
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3107 SET_MAKE="MAKE=${MAKE-make}"
3108 fi
3109
3110
3111 PACKAGE=libjava
3112
3113 VERSION=$version
3114
3115 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3116 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3117 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3118 { (exit 1); exit 1; }; }
3119 fi
3120
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE "$PACKAGE"
3123 _ACEOF
3124
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define VERSION "$VERSION"
3128 _ACEOF
3129
3130
3131
3132 missing_dir=`cd $ac_aux_dir && pwd`
3133 echo "$as_me:$LINENO: checking for working aclocal" >&5
3134 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
3135 # Run test in a subshell; some versions of sh will print an error if
3136 # an executable is not found, even if stderr is redirected.
3137 # Redirect stdin to placate older versions of autoconf. Sigh.
3138 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
3139 ACLOCAL=aclocal
3140 echo "$as_me:$LINENO: result: found" >&5
3141 echo "${ECHO_T}found" >&6
3142 else
3143 ACLOCAL="$missing_dir/missing aclocal"
3144 echo "$as_me:$LINENO: result: missing" >&5
3145 echo "${ECHO_T}missing" >&6
3146 fi
3147
3148 echo "$as_me:$LINENO: checking for working autoconf" >&5
3149 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
3150 # Run test in a subshell; some versions of sh will print an error if
3151 # an executable is not found, even if stderr is redirected.
3152 # Redirect stdin to placate older versions of autoconf. Sigh.
3153 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
3154 AUTOCONF=autoconf
3155 echo "$as_me:$LINENO: result: found" >&5
3156 echo "${ECHO_T}found" >&6
3157 else
3158 AUTOCONF="$missing_dir/missing autoconf"
3159 echo "$as_me:$LINENO: result: missing" >&5
3160 echo "${ECHO_T}missing" >&6
3161 fi
3162
3163 echo "$as_me:$LINENO: checking for working automake" >&5
3164 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
3165 # Run test in a subshell; some versions of sh will print an error if
3166 # an executable is not found, even if stderr is redirected.
3167 # Redirect stdin to placate older versions of autoconf. Sigh.
3168 if (automake --version) < /dev/null > /dev/null 2>&1; then
3169 AUTOMAKE=automake
3170 echo "$as_me:$LINENO: result: found" >&5
3171 echo "${ECHO_T}found" >&6
3172 else
3173 AUTOMAKE="$missing_dir/missing automake"
3174 echo "$as_me:$LINENO: result: missing" >&5
3175 echo "${ECHO_T}missing" >&6
3176 fi
3177
3178 echo "$as_me:$LINENO: checking for working autoheader" >&5
3179 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
3180 # Run test in a subshell; some versions of sh will print an error if
3181 # an executable is not found, even if stderr is redirected.
3182 # Redirect stdin to placate older versions of autoconf. Sigh.
3183 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
3184 AUTOHEADER=autoheader
3185 echo "$as_me:$LINENO: result: found" >&5
3186 echo "${ECHO_T}found" >&6
3187 else
3188 AUTOHEADER="$missing_dir/missing autoheader"
3189 echo "$as_me:$LINENO: result: missing" >&5
3190 echo "${ECHO_T}missing" >&6
3191 fi
3192
3193 echo "$as_me:$LINENO: checking for working makeinfo" >&5
3194 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
3195 # Run test in a subshell; some versions of sh will print an error if
3196 # an executable is not found, even if stderr is redirected.
3197 # Redirect stdin to placate older versions of autoconf. Sigh.
3198 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
3199 MAKEINFO=makeinfo
3200 echo "$as_me:$LINENO: result: found" >&5
3201 echo "${ECHO_T}found" >&6
3202 else
3203 MAKEINFO="$missing_dir/missing makeinfo"
3204 echo "$as_me:$LINENO: result: missing" >&5
3205 echo "${ECHO_T}missing" >&6
3206 fi
3207
3208
3209
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}as; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_AS+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 if test -n "$AS"; then
3219 ac_cv_prog_AS="$AS" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_AS="${ac_tool_prefix}as"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234
3235 fi
3236 fi
3237 AS=$ac_cv_prog_AS
3238 if test -n "$AS"; then
3239 echo "$as_me:$LINENO: result: $AS" >&5
3240 echo "${ECHO_T}$AS" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244 fi
3245
3246 fi
3247 if test -z "$ac_cv_prog_AS"; then
3248 ac_ct_AS=$AS
3249 # Extract the first word of "as", so it can be a program name with args.
3250 set dummy as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$ac_ct_AS"; then
3257 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_AS="as"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3276 if test -n "$ac_ct_AS"; then
3277 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3278 echo "${ECHO_T}$ac_ct_AS" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284 AS=$ac_ct_AS
3285 else
3286 AS="$ac_cv_prog_AS"
3287 fi
3288
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ar; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_AR+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if test -n "$AR"; then
3298 ac_cv_prog_AR="$AR" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_AR="${ac_tool_prefix}ar"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313
3314 fi
3315 fi
3316 AR=$ac_cv_prog_AR
3317 if test -n "$AR"; then
3318 echo "$as_me:$LINENO: result: $AR" >&5
3319 echo "${ECHO_T}$AR" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325 fi
3326 if test -z "$ac_cv_prog_AR"; then
3327 ac_ct_AR=$AR
3328 # Extract the first word of "ar", so it can be a program name with args.
3329 set dummy ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$ac_ct_AR"; then
3336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_AR="ar"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3355 if test -n "$ac_ct_AR"; then
3356 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3357 echo "${ECHO_T}$ac_ct_AR" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363 AR=$ac_ct_AR
3364 else
3365 AR="$ac_cv_prog_AR"
3366 fi
3367
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_RANLIB+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -n "$RANLIB"; then
3377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392
3393 fi
3394 fi
3395 RANLIB=$ac_cv_prog_RANLIB
3396 if test -n "$RANLIB"; then
3397 echo "$as_me:$LINENO: result: $RANLIB" >&5
3398 echo "${ECHO_T}$RANLIB" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404 fi
3405 if test -z "$ac_cv_prog_RANLIB"; then
3406 ac_ct_RANLIB=$RANLIB
3407 # Extract the first word of "ranlib", so it can be a program name with args.
3408 set dummy ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$ac_ct_RANLIB"; then
3415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_RANLIB="ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430
3431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3432 fi
3433 fi
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3438 else
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443 RANLIB=$ac_ct_RANLIB
3444 else
3445 RANLIB="$ac_cv_prog_RANLIB"
3446 fi
3447
3448
3449 # Find a good install program. We prefer a C program (faster),
3450 # so one script is as good as another. But avoid the broken or
3451 # incompatible versions:
3452 # SysV /etc/install, /usr/sbin/install
3453 # SunOS /usr/etc/install
3454 # IRIX /sbin/install
3455 # AIX /bin/install
3456 # AmigaOS /C/install, which installs bootblocks on floppy discs
3457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # OS/2's system install, which has a completely different semantic
3461 # ./install, which can be erroneously created by make from ./install.sh.
3462 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3463 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3464 if test -z "$INSTALL"; then
3465 if test "${ac_cv_path_install+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 # Account for people who put trailing slashes in PATH elements.
3474 case $as_dir/ in
3475 ./ | .// | /cC/* | \
3476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3478 /usr/ucb/* ) ;;
3479 *)
3480 # OSF1 and SCO ODT 3.0 have their own names for install.
3481 # Don't use installbsd from OSF since it installs stuff as root
3482 # by default.
3483 for ac_prog in ginstall scoinst install; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3486 if test $ac_prog = install &&
3487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # AIX install. It has an incompatible calling convention.
3489 :
3490 elif test $ac_prog = install &&
3491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492 # program-specific install script used by HP pwplus--don't use.
3493 :
3494 else
3495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3496 break 3
3497 fi
3498 fi
3499 done
3500 done
3501 ;;
3502 esac
3503 done
3504
3505
3506 fi
3507 if test "${ac_cv_path_install+set}" = set; then
3508 INSTALL=$ac_cv_path_install
3509 else
3510 # As a last resort, use the slow shell script. We don't cache a
3511 # path for INSTALL within a source directory, because that will
3512 # break other packages using the cache if that directory is
3513 # removed, or if the path is relative.
3514 INSTALL=$ac_install_sh
3515 fi
3516 fi
3517 echo "$as_me:$LINENO: result: $INSTALL" >&5
3518 echo "${ECHO_T}$INSTALL" >&6
3519
3520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3521 # It thinks the first close brace ends the variable substitution.
3522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3523
3524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3525
3526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3527
3528
3529 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3530 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3531 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3532 if test "${enable_maintainer_mode+set}" = set; then
3533 enableval="$enable_maintainer_mode"
3534 USE_MAINTAINER_MODE=$enableval
3535 else
3536 USE_MAINTAINER_MODE=no
3537 fi;
3538 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3539 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3540
3541
3542 if test $USE_MAINTAINER_MODE = yes; then
3543 MAINTAINER_MODE_TRUE=
3544 MAINTAINER_MODE_FALSE='#'
3545 else
3546 MAINTAINER_MODE_TRUE='#'
3547 MAINTAINER_MODE_FALSE=
3548 fi
3549 MAINT=$MAINTAINER_MODE_TRUE
3550
3551
3552
3553
3554
3555 # configure.host sets the following important variables
3556 # libgcj_cflags - host specific C compiler flags
3557 # libgcj_cxxflags - host specific C++ compiler flags
3558 # libgcj_javaflags - host specific Java compiler flags
3559
3560 libgcj_cflags=
3561 libgcj_cxxflags=
3562 libgcj_javaflags=
3563
3564 . ${srcdir}/configure.host
3565
3566 LIBGCJ_CFLAGS="${libgcj_cflags}"
3567 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3568 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3569
3570
3571
3572
3573
3574 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3575
3576 ac_config_commands="$ac_config_commands default-1"
3577
3578
3579 # Only use libltdl for non-newlib builds.
3580 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3581 case $enable_ltdl_convenience in
3582 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3583 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3584 { (exit 1); exit 1; }; } ;;
3585 "") enable_ltdl_convenience=yes
3586 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3587 esac
3588 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3589 INCLTDL='-I${top_srcdir}/''libltdl'
3590
3591
3592 DIRLTDL=libltdl
3593
3594 cat >>confdefs.h <<\_ACEOF
3595 #define USE_LTDL 1
3596 _ACEOF
3597
3598 # Sigh. Libtool's macro doesn't do the right thing.
3599 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
3600 # FIXME: this is a hack.
3601 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
3602 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
3603 fi
3604
3605
3606
3607 # Check whether --enable-shared or --disable-shared was given.
3608 if test "${enable_shared+set}" = set; then
3609 enableval="$enable_shared"
3610 p=${PACKAGE-default}
3611 case $enableval in
3612 yes) enable_shared=yes ;;
3613 no) enable_shared=no ;;
3614 *)
3615 enable_shared=no
3616 # Look at the argument we got. We use all the common list separators.
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3618 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$ac_save_ifs"
3624 ;;
3625 esac
3626 else
3627 enable_shared=yes
3628 fi;
3629 # Check whether --enable-static or --disable-static was given.
3630 if test "${enable_static+set}" = set; then
3631 enableval="$enable_static"
3632 p=${PACKAGE-default}
3633 case $enableval in
3634 yes) enable_static=yes ;;
3635 no) enable_static=no ;;
3636 *)
3637 enable_static=no
3638 # Look at the argument we got. We use all the common list separators.
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3640 for pkg in $enableval; do
3641 if test "X$pkg" = "X$p"; then
3642 enable_static=yes
3643 fi
3644 done
3645 IFS="$ac_save_ifs"
3646 ;;
3647 esac
3648 else
3649 enable_static=yes
3650 fi;
3651 # Check whether --enable-fast-install or --disable-fast-install was given.
3652 if test "${enable_fast_install+set}" = set; then
3653 enableval="$enable_fast_install"
3654 p=${PACKAGE-default}
3655 case $enableval in
3656 yes) enable_fast_install=yes ;;
3657 no) enable_fast_install=no ;;
3658 *)
3659 enable_fast_install=no
3660 # Look at the argument we got. We use all the common list separators.
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3662 for pkg in $enableval; do
3663 if test "X$pkg" = "X$p"; then
3664 enable_fast_install=yes
3665 fi
3666 done
3667 IFS="$ac_save_ifs"
3668 ;;
3669 esac
3670 else
3671 enable_fast_install=yes
3672 fi;
3673
3674 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3675 if test "${with_gnu_ld+set}" = set; then
3676 withval="$with_gnu_ld"
3677 test "$withval" = no || with_gnu_ld=yes
3678 else
3679 with_gnu_ld=no
3680 fi;
3681 ac_prog=ld
3682 if test "$GCC" = yes; then
3683 # Check if gcc -print-prog-name=ld gives a path.
3684 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3685 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3686 case $host in
3687 *-*-mingw*)
3688 # gcc leaves a trailing carriage return which upsets mingw
3689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3690 *)
3691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3692 esac
3693 case $ac_prog in
3694 # Accept absolute paths.
3695 [\\/]* | [A-Za-z]:[\\/]*)
3696 re_direlt='/[^/][^/]*/\.\./'
3697 # Canonicalize the path of ld
3698 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3699 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3700 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3701 done
3702 test -z "$LD" && LD="$ac_prog"
3703 ;;
3704 "")
3705 # If it fails, then pretend we aren't using GCC.
3706 ac_prog=ld
3707 ;;
3708 *)
3709 # If it is relative, then search for the first ld in PATH.
3710 with_gnu_ld=unknown
3711 ;;
3712 esac
3713 elif test "$with_gnu_ld" = yes; then
3714 echo "$as_me:$LINENO: checking for GNU ld" >&5
3715 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3716 else
3717 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3718 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3719 fi
3720 if test "${lt_cv_path_LD+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -z "$LD"; then
3724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3725 for ac_dir in $PATH; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3728 lt_cv_path_LD="$ac_dir/$ac_prog"
3729 # Check to see if the program is GNU ld. I'd rather use --version,
3730 # but apparently some GNU ld's only accept -v.
3731 # Break only if it was the GNU/non-GNU ld that we prefer.
3732 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3733 test "$with_gnu_ld" != no && break
3734 else
3735 test "$with_gnu_ld" != yes && break
3736 fi
3737 fi
3738 done
3739 IFS="$ac_save_ifs"
3740 else
3741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3742 fi
3743 fi
3744
3745 LD="$lt_cv_path_LD"
3746 if test -n "$LD"; then
3747 echo "$as_me:$LINENO: result: $LD" >&5
3748 echo "${ECHO_T}$LD" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3755 { (exit 1); exit 1; }; }
3756 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3762 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3763 lt_cv_prog_gnu_ld=yes
3764 else
3765 lt_cv_prog_gnu_ld=no
3766 fi
3767 fi
3768 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3769 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3770 with_gnu_ld=$lt_cv_prog_gnu_ld
3771
3772
3773 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3774 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3775 if test "${lt_cv_ld_reload_flag+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 lt_cv_ld_reload_flag='-r'
3779 fi
3780 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3781 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3782 reload_flag=$lt_cv_ld_reload_flag
3783 test -n "$reload_flag" && reload_flag=" $reload_flag"
3784
3785 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3786 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3787 if test "${lt_cv_path_NM+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 if test -n "$NM"; then
3791 # Let the user override the test.
3792 lt_cv_path_NM="$NM"
3793 else
3794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3795 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3796 test -z "$ac_dir" && ac_dir=.
3797 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3798 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3799 # Check to see if the nm accepts a BSD-compat flag.
3800 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3801 # nm: unknown option "B" ignored
3802 # Tru64's nm complains that /dev/null is an invalid object file
3803 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3804 lt_cv_path_NM="$tmp_nm -B"
3805 break
3806 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3807 lt_cv_path_NM="$tmp_nm -p"
3808 break
3809 else
3810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3811 continue # so that we can try to find one that supports BSD flags
3812 fi
3813 fi
3814 done
3815 IFS="$ac_save_ifs"
3816 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3817 fi
3818 fi
3819
3820 NM="$lt_cv_path_NM"
3821 echo "$as_me:$LINENO: result: $NM" >&5
3822 echo "${ECHO_T}$NM" >&6
3823
3824 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3825 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3826 if test "${lt_cv_deplibs_check_method+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 lt_cv_file_magic_cmd='$MAGIC_CMD'
3830 lt_cv_file_magic_test_file=
3831 lt_cv_deplibs_check_method='unknown'
3832 # Need to set the preceding variable on all platforms that support
3833 # interlibrary dependencies.
3834 # 'none' -- dependencies not supported.
3835 # `unknown' -- same as none, but documents that we really don't know.
3836 # 'pass_all' -- all dependencies passed with no checks.
3837 # 'test_compile' -- check by making test program.
3838 # 'file_magic [regex]' -- check by looking for files in library path
3839 # which responds to the $file_magic_cmd with a given egrep regex.
3840 # If you have `file' or equivalent on your system and you're not sure
3841 # whether `pass_all' will *always* work, you probably want this one.
3842
3843 case $host_os in
3844 aix*)
3845 lt_cv_deplibs_check_method=pass_all
3846 ;;
3847
3848 beos*)
3849 lt_cv_deplibs_check_method=pass_all
3850 ;;
3851
3852 bsdi4*)
3853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3854 lt_cv_file_magic_cmd='/usr/bin/file -L'
3855 lt_cv_file_magic_test_file=/shlib/libc.so
3856 ;;
3857
3858 cygwin* | mingw* |pw32*)
3859 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3860 lt_cv_file_magic_cmd='$OBJDUMP -f'
3861 ;;
3862
3863 darwin* | rhapsody*)
3864 # this will be overwritten by pass_all, but leave it in just in case
3865 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3866 lt_cv_file_magic_cmd='/usr/bin/file -L'
3867 case "$host_os" in
3868 rhapsody* | darwin1.012)
3869 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3870 ;;
3871 *) # Darwin 1.3 on
3872 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3873 ;;
3874 esac
3875 lt_cv_deplibs_check_method=pass_all
3876 ;;
3877
3878 freebsd* | kfreebsd*-gnu)
3879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3880 case $host_cpu in
3881 i*86 )
3882 # Not sure whether the presence of OpenBSD here was a mistake.
3883 # Let's accept both of them until this is cleared up.
3884 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3885 lt_cv_file_magic_cmd=/usr/bin/file
3886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3887 ;;
3888 esac
3889 else
3890 lt_cv_deplibs_check_method=pass_all
3891 fi
3892 ;;
3893
3894 gnu*)
3895 lt_cv_deplibs_check_method=pass_all
3896 ;;
3897
3898 hpux10.20*|hpux11*)
3899 case $host_cpu in
3900 hppa*)
3901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3902 lt_cv_file_magic_cmd=/usr/bin/file
3903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3904 ;;
3905 ia64*)
3906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3907 lt_cv_file_magic_cmd=/usr/bin/file
3908 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3909 ;;
3910 esac
3911 ;;
3912
3913 irix5* | irix6*)
3914 case $host_os in
3915 irix5*)
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3918 ;;
3919 *)
3920 case $LD in
3921 *-32|*"-32 ") libmagic=32-bit;;
3922 *-n32|*"-n32 ") libmagic=N32;;
3923 *-64|*"-64 ") libmagic=64-bit;;
3924 *) libmagic=never-match;;
3925 esac
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3928 ;;
3929 esac
3930 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931 lt_cv_deplibs_check_method=pass_all
3932 ;;
3933
3934 # This must be Linux ELF.
3935 linux-gnu*)
3936 case $host_cpu in
3937 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3938 lt_cv_deplibs_check_method=pass_all ;;
3939 *)
3940 # glibc up to 2.1.1 does not perform some relocations on ARM
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3942 esac
3943 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3944 ;;
3945
3946 netbsd* | knetbsd*-gnu)
3947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3949 else
3950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3951 fi
3952 ;;
3953
3954 newsos6)
3955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3958 ;;
3959
3960 osf3* | osf4* | osf5*)
3961 # this will be overridden with pass_all, but let us keep it just in case
3962 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963 lt_cv_file_magic_test_file=/shlib/libc.so
3964 lt_cv_deplibs_check_method=pass_all
3965 ;;
3966
3967 sco3.2v5*)
3968 lt_cv_deplibs_check_method=pass_all
3969 ;;
3970
3971 solaris*)
3972 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_file_magic_test_file=/lib/libc.so
3974 ;;
3975
3976 sysv5uw[78]* | sysv4*uw2*)
3977 lt_cv_deplibs_check_method=pass_all
3978 ;;
3979
3980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3981 case $host_vendor in
3982 ncr)
3983 lt_cv_deplibs_check_method=pass_all
3984 ;;
3985 motorola)
3986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3988 ;;
3989 esac
3990 ;;
3991 esac
3992
3993 fi
3994 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3995 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3996 file_magic_cmd=$lt_cv_file_magic_cmd
3997 deplibs_check_method=$lt_cv_deplibs_check_method
3998
3999
4000
4001
4002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4003
4004 # Only perform the check for file, if the check method requires it
4005 case $deplibs_check_method in
4006 file_magic*)
4007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4008 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 case $MAGIC_CMD in
4014 /*)
4015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4016 ;;
4017 ?:/*)
4018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4019 ;;
4020 *)
4021 ac_save_MAGIC_CMD="$MAGIC_CMD"
4022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4023 ac_dummy="/usr/bin:$PATH"
4024 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f $ac_dir/${ac_tool_prefix}file; then
4027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4028 if test -n "$file_magic_test_file"; then
4029 case $deplibs_check_method in
4030 "file_magic "*)
4031 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4034 egrep "$file_magic_regex" > /dev/null; then
4035 :
4036 else
4037 cat <<EOF 1>&2
4038
4039 *** Warning: the command libtool uses to detect shared libraries,
4040 *** $file_magic_cmd, produces output that libtool cannot recognize.
4041 *** The result is that libtool may fail to recognize shared libraries
4042 *** as such. This will affect the creation of libtool libraries that
4043 *** depend on shared libraries, but programs linked with such libtool
4044 *** libraries will work regardless of this problem. Nevertheless, you
4045 *** may want to report the problem to your system manager and/or to
4046 *** bug-libtool@gnu.org
4047
4048 EOF
4049 fi ;;
4050 esac
4051 fi
4052 break
4053 fi
4054 done
4055 IFS="$ac_save_ifs"
4056 MAGIC_CMD="$ac_save_MAGIC_CMD"
4057 ;;
4058 esac
4059 fi
4060
4061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4062 if test -n "$MAGIC_CMD"; then
4063 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4064 echo "${ECHO_T}$MAGIC_CMD" >&6
4065 else
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070 if test -z "$lt_cv_path_MAGIC_CMD"; then
4071 if test -n "$ac_tool_prefix"; then
4072 echo "$as_me:$LINENO: checking for file" >&5
4073 echo $ECHO_N "checking for file... $ECHO_C" >&6
4074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 case $MAGIC_CMD in
4078 /*)
4079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4080 ;;
4081 ?:/*)
4082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4083 ;;
4084 *)
4085 ac_save_MAGIC_CMD="$MAGIC_CMD"
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4087 ac_dummy="/usr/bin:$PATH"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/file; then
4091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4092 if test -n "$file_magic_test_file"; then
4093 case $deplibs_check_method in
4094 "file_magic "*)
4095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4098 egrep "$file_magic_regex" > /dev/null; then
4099 :
4100 else
4101 cat <<EOF 1>&2
4102
4103 *** Warning: the command libtool uses to detect shared libraries,
4104 *** $file_magic_cmd, produces output that libtool cannot recognize.
4105 *** The result is that libtool may fail to recognize shared libraries
4106 *** as such. This will affect the creation of libtool libraries that
4107 *** depend on shared libraries, but programs linked with such libtool
4108 *** libraries will work regardless of this problem. Nevertheless, you
4109 *** may want to report the problem to your system manager and/or to
4110 *** bug-libtool@gnu.org
4111
4112 EOF
4113 fi ;;
4114 esac
4115 fi
4116 break
4117 fi
4118 done
4119 IFS="$ac_save_ifs"
4120 MAGIC_CMD="$ac_save_MAGIC_CMD"
4121 ;;
4122 esac
4123 fi
4124
4125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4126 if test -n "$MAGIC_CMD"; then
4127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4128 echo "${ECHO_T}$MAGIC_CMD" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 else
4135 MAGIC_CMD=:
4136 fi
4137 fi
4138
4139 fi
4140 ;;
4141 esac
4142
4143 if test -n "$ac_tool_prefix"; then
4144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_RANLIB+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$RANLIB"; then
4152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4164 fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 RANLIB=$ac_cv_prog_RANLIB
4171 if test -n "$RANLIB"; then
4172 echo "$as_me:$LINENO: result: $RANLIB" >&5
4173 echo "${ECHO_T}$RANLIB" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179 fi
4180 if test -z "$ac_cv_prog_RANLIB"; then
4181 ac_ct_RANLIB=$RANLIB
4182 # Extract the first word of "ranlib", so it can be a program name with args.
4183 set dummy ranlib; ac_word=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 if test -n "$ac_ct_RANLIB"; then
4190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_RANLIB="ranlib"
4200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205
4206 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4207 fi
4208 fi
4209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4210 if test -n "$ac_ct_RANLIB"; then
4211 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4212 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218 RANLIB=$ac_ct_RANLIB
4219 else
4220 RANLIB="$ac_cv_prog_RANLIB"
4221 fi
4222
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}strip; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_STRIP+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 if test -n "$STRIP"; then
4232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247
4248 fi
4249 fi
4250 STRIP=$ac_cv_prog_STRIP
4251 if test -n "$STRIP"; then
4252 echo "$as_me:$LINENO: result: $STRIP" >&5
4253 echo "${ECHO_T}$STRIP" >&6
4254 else
4255 echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257 fi
4258
4259 fi
4260 if test -z "$ac_cv_prog_STRIP"; then
4261 ac_ct_STRIP=$STRIP
4262 # Extract the first word of "strip", so it can be a program name with args.
4263 set dummy strip; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 if test -n "$ac_ct_STRIP"; then
4270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_STRIP="strip"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285
4286 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4287 fi
4288 fi
4289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4290 if test -n "$ac_ct_STRIP"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4292 echo "${ECHO_T}$ac_ct_STRIP" >&6
4293 else
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4296 fi
4297
4298 STRIP=$ac_ct_STRIP
4299 else
4300 STRIP="$ac_cv_prog_STRIP"
4301 fi
4302
4303
4304 # Check for any special flags to pass to ltconfig.
4305 libtool_flags="--cache-file=$cache_file"
4306 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4307 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4308 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4309 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4310 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4311
4312
4313 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4314 if test "${enable_libtool_lock+set}" = set; then
4315 enableval="$enable_libtool_lock"
4316
4317 fi;
4318 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4319 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4320
4321
4322 # Check whether --with-pic or --without-pic was given.
4323 if test "${with_pic+set}" = set; then
4324 withval="$with_pic"
4325 pic_mode="$withval"
4326 else
4327 pic_mode=default
4328 fi;
4329 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4330 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4331
4332 # Some flags need to be propagated to the compiler or linker for good
4333 # libtool support.
4334 case $host in
4335 *-*-irix6*)
4336 # Find out which ABI we are using.
4337 echo '#line 4337 "configure"' > conftest.$ac_ext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; then
4343 if test "$lt_cv_prog_gnu_ld" = yes; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4345 *32-bit*)
4346 LD="${LD-ld} -melf32bsmip"
4347 ;;
4348 *N32*)
4349 LD="${LD-ld} -melf32bmipn32"
4350 ;;
4351 *64-bit*)
4352 LD="${LD-ld} -melf64bmip"
4353 ;;
4354 esac
4355 else
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *32-bit*)
4358 LD="${LD-ld} -32"
4359 ;;
4360 *N32*)
4361 LD="${LD-ld} -n32"
4362 ;;
4363 *64-bit*)
4364 LD="${LD-ld} -64"
4365 ;;
4366 esac
4367 fi
4368 fi
4369 rm -rf conftest*
4370 ;;
4371
4372 ia64-*-hpux*)
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.$ac_ext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
4380 case "`/usr/bin/file conftest.o`" in
4381 *ELF-32*)
4382 HPUX_IA64_MODE="32"
4383 ;;
4384 *ELF-64*)
4385 HPUX_IA64_MODE="64"
4386 ;;
4387 esac
4388 fi
4389 rm -rf conftest*
4390 ;;
4391
4392 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4393 # Find out which ABI we are using.
4394 echo 'int i;' > conftest.$ac_ext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 case "`/usr/bin/file conftest.o`" in
4401 *32-bit*)
4402 case $host in
4403 x86_64-*linux*)
4404 LD="${LD-ld} -m elf_i386"
4405 ;;
4406 ppc64-*linux*|powerpc64-*linux*)
4407 LD="${LD-ld} -m elf32ppclinux"
4408 ;;
4409 s390x-*linux*)
4410 LD="${LD-ld} -m elf_s390"
4411 ;;
4412 sparc64-*linux*)
4413 LD="${LD-ld} -m elf32_sparc"
4414 ;;
4415 esac
4416 ;;
4417 *64-bit*)
4418 case $host in
4419 x86_64-*linux*)
4420 LD="${LD-ld} -m elf_x86_64"
4421 ;;
4422 ppc*-*linux*|powerpc*-*linux*)
4423 LD="${LD-ld} -m elf64ppc"
4424 ;;
4425 s390*-*linux*)
4426 LD="${LD-ld} -m elf64_s390"
4427 ;;
4428 sparc*-*linux*)
4429 LD="${LD-ld} -m elf64_sparc"
4430 ;;
4431 esac
4432 ;;
4433 esac
4434 fi
4435 rm -rf conftest*
4436 ;;
4437
4438 *-*-sco3.2v5*)
4439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4440 SAVE_CFLAGS="$CFLAGS"
4441 CFLAGS="$CFLAGS -belf"
4442 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4443 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4444 if test "${lt_cv_cc_needs_belf+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455 if test x$gcc_no_link = xyes; then
4456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4458 { (exit 1); exit 1; }; }
4459 fi
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466
4467 int
4468 main ()
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 lt_cv_cc_needs_belf=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 lt_cv_cc_needs_belf=no
4503 fi
4504 rm -f conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511
4512 fi
4513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4515 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4516 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4517 CFLAGS="$SAVE_CFLAGS"
4518 fi
4519 ;;
4520
4521
4522 esac
4523
4524
4525 # Save cache, so that ltconfig can load it
4526 cat >confcache <<\_ACEOF
4527 # This file is a shell script that caches the results of configure
4528 # tests run on this system so they can be shared between configure
4529 # scripts and configure runs, see configure's option --config-cache.
4530 # It is not useful on other systems. If it contains results you don't
4531 # want to keep, you may remove or edit it.
4532 #
4533 # config.status only pays attention to the cache file if you give it
4534 # the --recheck option to rerun configure.
4535 #
4536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4538 # following values.
4539
4540 _ACEOF
4541
4542 # The following way of writing the cache mishandles newlines in values,
4543 # but we know of no workaround that is simple, portable, and efficient.
4544 # So, don't put newlines in cache variables' values.
4545 # Ultrix sh set writes to stderr and can't be redirected directly,
4546 # and sets the high bit in the cache file unless we assign to the vars.
4547 {
4548 (set) 2>&1 |
4549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4550 *ac_space=\ *)
4551 # `set' does not quote correctly, so add quotes (double-quote
4552 # substitution turns \\\\ into \\, and sed turns \\ into \).
4553 sed -n \
4554 "s/'/'\\\\''/g;
4555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4556 ;;
4557 *)
4558 # `set' quotes correctly as required by POSIX, so do not add quotes.
4559 sed -n \
4560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4561 ;;
4562 esac;
4563 } |
4564 sed '
4565 t clear
4566 : clear
4567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4568 t end
4569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4570 : end' >>confcache
4571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4572 if test -w $cache_file; then
4573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4574 cat confcache >$cache_file
4575 else
4576 echo "not updating unwritable cache $cache_file"
4577 fi
4578 fi
4579 rm -f confcache
4580
4581 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4582 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4583 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4584 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4585 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4586 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4587 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4588 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4589 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4590 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4591 echo "$as_me: error: libtool configure failed" >&2;}
4592 { (exit 1); exit 1; }; }
4593
4594 # Reload cache, that may have been modified by ltconfig
4595 if test -r "$cache_file"; then
4596 # Some versions of bash will fail to source /dev/null (special
4597 # files actually), so we avoid doing that.
4598 if test -f "$cache_file"; then
4599 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4600 echo "$as_me: loading cache $cache_file" >&6;}
4601 case $cache_file in
4602 [\\/]* | ?:[\\/]* ) . $cache_file;;
4603 *) . ./$cache_file;;
4604 esac
4605 fi
4606 else
4607 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4608 echo "$as_me: creating cache $cache_file" >&6;}
4609 >$cache_file
4610 fi
4611
4612
4613 # This can be used to rebuild libtool when needed
4614 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4615
4616 # Always use our own libtool.
4617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4618
4619 # Redirect the config.log output again, so that the ltconfig log is not
4620 # clobbered by the next message.
4621 exec 5>>./config.log
4622
4623 ac_ext=cc
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4629 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4630 if test -z "$CXXCPP"; then
4631 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 # Double quotes because CXXCPP needs to be expanded
4635 for CXXCPP in "$CXX -E" "/lib/cpp"
4636 do
4637 ac_preproc_ok=false
4638 for ac_cxx_preproc_warn_flag in '' yes
4639 do
4640 # Use a header file that comes with gcc, so configuring glibc
4641 # with a fresh cross-compiler works.
4642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643 # <limits.h> exists even on freestanding compilers.
4644 # On the NeXT, cc -E runs the code through the compiler's parser,
4645 # not just through cpp. "Syntax error" is here to catch this case.
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #ifdef __STDC__
4653 # include <limits.h>
4654 #else
4655 # include <assert.h>
4656 #endif
4657 Syntax error
4658 _ACEOF
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev/null; then
4667 if test -s conftest.err; then
4668 ac_cpp_err=$ac_cxx_preproc_warn_flag
4669 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4670 else
4671 ac_cpp_err=
4672 fi
4673 else
4674 ac_cpp_err=yes
4675 fi
4676 if test -z "$ac_cpp_err"; then
4677 :
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 # Broken: fails on valid input.
4683 continue
4684 fi
4685 rm -f conftest.err conftest.$ac_ext
4686
4687 # OK, works on sane cases. Now check whether non-existent headers
4688 # can be detected and how.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <ac_nonexistent.h>
4696 _ACEOF
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_cxx_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4708 else
4709 ac_cpp_err=
4710 fi
4711 else
4712 ac_cpp_err=yes
4713 fi
4714 if test -z "$ac_cpp_err"; then
4715 # Broken: success on invalid input.
4716 continue
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 # Passes both tests.
4722 ac_preproc_ok=:
4723 break
4724 fi
4725 rm -f conftest.err conftest.$ac_ext
4726
4727 done
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4731 break
4732 fi
4733
4734 done
4735 ac_cv_prog_CXXCPP=$CXXCPP
4736
4737 fi
4738 CXXCPP=$ac_cv_prog_CXXCPP
4739 else
4740 ac_cv_prog_CXXCPP=$CXXCPP
4741 fi
4742 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4743 echo "${ECHO_T}$CXXCPP" >&6
4744 ac_preproc_ok=false
4745 for ac_cxx_preproc_warn_flag in '' yes
4746 do
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764 Syntax error
4765 _ACEOF
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } >/dev/null; then
4774 if test -s conftest.err; then
4775 ac_cpp_err=$ac_cxx_preproc_warn_flag
4776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4777 else
4778 ac_cpp_err=
4779 fi
4780 else
4781 ac_cpp_err=yes
4782 fi
4783 if test -z "$ac_cpp_err"; then
4784 :
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 # Broken: fails on valid input.
4790 continue
4791 fi
4792 rm -f conftest.err conftest.$ac_ext
4793
4794 # OK, works on sane cases. Now check whether non-existent headers
4795 # can be detected and how.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4803 _ACEOF
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_cxx_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4815 else
4816 ac_cpp_err=
4817 fi
4818 else
4819 ac_cpp_err=yes
4820 fi
4821 if test -z "$ac_cpp_err"; then
4822 # Broken: success on invalid input.
4823 continue
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832 rm -f conftest.err conftest.$ac_ext
4833
4834 done
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4838 :
4839 else
4840 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4841 See \`config.log' for more details." >&5
4842 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4843 See \`config.log' for more details." >&2;}
4844 { (exit 1); exit 1; }; }
4845 fi
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853
4854
4855 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4856 lt_save_CC="$CC"
4857 lt_save_CFLAGS="$CFLAGS"
4858 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4859 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4860 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4861 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4862 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4863 deplibs_check_method="$deplibs_check_method" \
4864 file_magic_cmd="$file_magic_cmd" \
4865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4866 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4867 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4868 echo "$as_me: error: libtool tag configuration failed" >&2;}
4869 { (exit 1); exit 1; }; }
4870 CC="$lt_save_CC"
4871 CFLAGS="$lt_save_CFLAGS"
4872
4873 # Redirect the config.log output again, so that the ltconfig log is not
4874 # clobbered by the next message.
4875 exec 5>>./config.log
4876
4877
4878
4879
4880
4881
4882
4883
4884 subdirs="$subdirs $DIRLTDL"
4885
4886
4887 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
4888 COMPPATH=.
4889 else
4890 COMPPATH=..
4891 fi
4892
4893
4894 # The -no-testsuite modules omit the test subdir.
4895
4896
4897 if test -d $srcdir/testsuite; then
4898 TESTSUBDIR_TRUE=
4899 TESTSUBDIR_FALSE='#'
4900 else
4901 TESTSUBDIR_TRUE='#'
4902 TESTSUBDIR_FALSE=
4903 fi
4904
4905 # Should the runtime set system properties by examining the
4906 # environment variable GCJ_PROPERTIES?
4907 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
4908 if test "${enable_getenv_properties+set}" = set; then
4909 enableval="$enable_getenv_properties"
4910
4911 fi;
4912
4913 # Whether GCJ_PROPERTIES is used depends on the target.
4914 if test -z "$enable_getenv_properties"; then
4915 enable_getenv_properties=${enable_getenv_properties_default-yes}
4916 fi
4917 if test "$enable_getenv_properties" = no; then
4918
4919 cat >>confdefs.h <<\_ACEOF
4920 #define DISABLE_GETENV_PROPERTIES 1
4921 _ACEOF
4922
4923 fi
4924
4925 # Whether we should use arguments to main()
4926 if test -z "$enable_main_args"; then
4927 enable_main_args=${enable_main_args_default-yes}
4928 fi
4929 if test "$enable_main_args" = no; then
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define DISABLE_MAIN_ARGS 1
4933 _ACEOF
4934
4935 fi
4936
4937
4938 # Should we use hashtable-based synchronization?
4939 # Currently works only for Linux X86/ia64
4940 # Typically faster and more space-efficient
4941 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
4942 if test "${enable_hash_synchronization+set}" = set; then
4943 enableval="$enable_hash_synchronization"
4944
4945 fi;
4946
4947 if test -z "$enable_hash_synchronization"; then
4948 enable_hash_synchronization=$enable_hash_synchronization_default
4949 fi
4950
4951 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
4952 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
4953 if test "${enable_libgcj_multifile+set}" = set; then
4954 enableval="$enable_libgcj_multifile"
4955 case "${enableval}" in
4956 yes) enable_libgcj_multifile=yes ;;
4957 no) enable_libgcj_multifile=no ;;
4958 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
4959 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
4960 { (exit 1); exit 1; }; } ;;
4961 esac
4962 else
4963 enable_libgcj_multifile=no
4964 fi;
4965
4966
4967 if test "$enable_libgcj_multifile" = yes; then
4968 ONESTEP_TRUE=
4969 ONESTEP_FALSE='#'
4970 else
4971 ONESTEP_TRUE='#'
4972 ONESTEP_FALSE=
4973 fi
4974
4975 # What is the native OS API for MinGW?
4976
4977 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
4978 if test "${with_win32_nlsapi+set}" = set; then
4979 withval="$with_win32_nlsapi"
4980 case "${withval}" in
4981 ansi) with_win32_nlsapi=ansi ;;
4982 unicows) with_win32_nlsapi=unicows ;;
4983 unicode) with_win32_nlsapi=unicode ;;
4984 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
4985 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
4986 { (exit 1); exit 1; }; } ;;
4987 esac
4988 else
4989 with_win32_nlsapi=ansi
4990 fi;
4991
4992 case "${with_win32_nlsapi}" in
4993 unicows | unicode)
4994
4995 cat >>confdefs.h <<\_ACEOF
4996 #define MINGW_LIBGCJ_UNICODE 1
4997 _ACEOF
4998
4999 ;;
5000 esac
5001
5002 # configure.host sets slow_pthread_self if the synchronization code should
5003 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5004 if test "${slow_pthread_self}" = "yes"; then
5005
5006 cat >>confdefs.h <<\_ACEOF
5007 #define SLOW_PTHREAD_SELF 1
5008 _ACEOF
5009
5010 fi
5011
5012
5013 # See if the user has requested runtime debugging.
5014 LIBGCJDEBUG="false"
5015
5016 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5017 if test "${enable_libgcj_debug+set}" = set; then
5018 enableval="$enable_libgcj_debug"
5019 if test "$enable_libgcj_debug" = yes; then
5020
5021 cat >>confdefs.h <<\_ACEOF
5022 #define DEBUG 1
5023 _ACEOF
5024
5025 LIBGCJDEBUG="true"
5026 fi
5027 fi;
5028
5029 # See if the user has the interpreter included.
5030 # Check whether --enable-interpreter or --disable-interpreter was given.
5031 if test "${enable_interpreter+set}" = set; then
5032 enableval="$enable_interpreter"
5033 if test "$enable_interpreter" = yes; then
5034 # This can also be set in configure.host.
5035 libgcj_interpreter=yes
5036 elif test "$enable_interpreter" = no; then
5037 libgcj_interpreter=no
5038 fi
5039 fi;
5040
5041 if test "$libgcj_interpreter" = yes; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define INTERPRETER 1
5045 _ACEOF
5046
5047 fi
5048 INTERPRETER="$libgcj_interpreter"
5049
5050
5051 echo "$as_me:$LINENO: checking for exception model to use" >&5
5052 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5053
5054
5055 ac_ext=cc
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060
5061 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5062 if test "${enable_sjlj_exceptions+set}" = set; then
5063 enableval="$enable_sjlj_exceptions"
5064 :
5065 else
5066 cat > conftest.$ac_ext << EOF
5067 #line 5067 "configure"
5068 struct S { ~S(); };
5069 void bar();
5070 void foo()
5071 {
5072 S s;
5073 bar();
5074 }
5075 EOF
5076 old_CXXFLAGS="$CXXFLAGS"
5077 CXXFLAGS=-S
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; then
5083 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5084 enable_sjlj_exceptions=yes
5085 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5086 enable_sjlj_exceptions=no
5087 fi
5088 fi
5089 CXXFLAGS="$old_CXXFLAGS"
5090 rm -f conftest*
5091 fi;
5092 if test x$enable_sjlj_exceptions = xyes; then
5093
5094 cat >>confdefs.h <<\_ACEOF
5095 #define SJLJ_EXCEPTIONS 1
5096 _ACEOF
5097
5098 ac_exception_model_name=sjlj
5099 elif test x$enable_sjlj_exceptions = xno; then
5100 ac_exception_model_name="call frame"
5101 else
5102 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5103 echo "$as_me: error: unable to detect exception model" >&2;}
5104 { (exit 1); exit 1; }; }
5105 fi
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5113 echo "${ECHO_T}$ac_exception_model_name" >&6
5114
5115 # If we are non using SJLJ exceptions, and this host does not have support
5116 # for unwinding from a signal handler, enable checked dereferences and divides.
5117 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5118 CHECKREFSPEC=-fcheck-references
5119 DIVIDESPEC=-fuse-divide-subroutine
5120 EXCEPTIONSPEC=
5121 fi
5122
5123 # See if the user wants to disable java.net. This is the mildly
5124 # ugly way that we admit that target-side configuration sucks.
5125 # Check whether --enable-java-net or --disable-java-net was given.
5126 if test "${enable_java_net+set}" = set; then
5127 enableval="$enable_java_net"
5128
5129 fi;
5130
5131 # Whether java.net is built by default can depend on the target.
5132 if test -z "$enable_java_net"; then
5133 enable_java_net=${enable_java_net_default-yes}
5134 fi
5135 if test "$enable_java_net" = no; then
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define DISABLE_JAVA_NET 1
5139 _ACEOF
5140
5141 fi
5142
5143 # See if the user wants to configure without libffi. Some
5144 # architectures don't support it, and default values are set in
5145 # configure.host.
5146
5147 # Check whether --with-libffi or --without-libffi was given.
5148 if test "${with_libffi+set}" = set; then
5149 withval="$with_libffi"
5150 :
5151 else
5152 with_libffi=${with_libffi_default-yes}
5153 fi;
5154
5155 LIBFFI=
5156 LIBFFIINCS=
5157 if test "$with_libffi" != no; then
5158
5159 cat >>confdefs.h <<\_ACEOF
5160 #define USE_LIBFFI 1
5161 _ACEOF
5162
5163 LIBFFI=../libffi/libffi_convenience.la
5164 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5165 fi
5166
5167
5168
5169 # See if the user wants to disable JVMPI support.
5170 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5171 if test "${enable_jvmpi+set}" = set; then
5172 enableval="$enable_jvmpi"
5173
5174 fi;
5175
5176 if test "$enable_jvmpi" != no; then
5177
5178 cat >>confdefs.h <<\_ACEOF
5179 #define ENABLE_JVMPI 1
5180 _ACEOF
5181
5182 fi
5183
5184 # If the target is an eCos system, use the appropriate eCos
5185 # I/O routines.
5186 # FIXME: this should not be a local option but a global target
5187 # system; at present there is no eCos target.
5188 TARGET_ECOS=${PROCESS-"no"}
5189
5190 # Check whether --with-ecos or --without-ecos was given.
5191 if test "${with_ecos+set}" = set; then
5192 withval="$with_ecos"
5193 TARGET_ECOS="$with_ecos"
5194
5195 fi;
5196
5197 EXTRA_CC_FILES=
5198
5199
5200 PLATFORMOBJS=
5201 PLATFORM_INNER_NAT_HDRS=
5202 case "$TARGET_ECOS" in
5203 no) case "$host" in
5204 *mingw*)
5205 PLATFORM=Win32
5206 PLATFORMNET=Win32
5207 PLATFORMOBJS=win32.lo
5208 PLATFORMH=win32.h
5209
5210 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5211 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5212 LD_PROG=`$CC --print-prog-name=ld`
5213 LD_VERSION=`$LD_PROG --version`
5214 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5215 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5216 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5217 LD_OK="ok"
5218 else
5219 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5220 LD_OK="ok"
5221 fi
5222 fi
5223 if test "x$LD_OK" != x; then
5224 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5225 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5226 else
5227 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5228 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5229 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5230 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5231
5232 cat >>confdefs.h <<\_ACEOF
5233 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5234 _ACEOF
5235
5236 fi
5237 ;;
5238 *)
5239 PLATFORM=Posix
5240 PLATFORMNET=Posix
5241 PLATFORMOBJS=posix.lo
5242 PLATFORMH=posix.h
5243 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5244 ;;
5245 esac
5246 ;;
5247 *)
5248 PLATFORM=Ecos
5249 PLATFORMNET=NoNet
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define ECOS 1
5253 _ACEOF
5254
5255 PLATFORMOBJS=posix.lo
5256 PLATFORMH=posix.h
5257 ;;
5258 esac
5259
5260
5261 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5262
5263
5264 ac_ext=c
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5271 # On Suns, sometimes $CPP names a directory.
5272 if test -n "$CPP" && test -d "$CPP"; then
5273 CPP=
5274 fi
5275 if test -z "$CPP"; then
5276 if test "${ac_cv_prog_CPP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 # Double quotes because CPP needs to be expanded
5280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5281 do
5282 ac_preproc_ok=false
5283 for ac_c_preproc_warn_flag in '' yes
5284 do
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #ifdef __STDC__
5298 # include <limits.h>
5299 #else
5300 # include <assert.h>
5301 #endif
5302 Syntax error
5303 _ACEOF
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315 else
5316 ac_cpp_err=
5317 fi
5318 else
5319 ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322 :
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 # Broken: fails on valid input.
5328 continue
5329 fi
5330 rm -f conftest.err conftest.$ac_ext
5331
5332 # OK, works on sane cases. Now check whether non-existent headers
5333 # can be detected and how.
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5341 _ACEOF
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353 else
5354 ac_cpp_err=
5355 fi
5356 else
5357 ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360 # Broken: success on invalid input.
5361 continue
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371
5372 done
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5376 break
5377 fi
5378
5379 done
5380 ac_cv_prog_CPP=$CPP
5381
5382 fi
5383 CPP=$ac_cv_prog_CPP
5384 else
5385 ac_cv_prog_CPP=$CPP
5386 fi
5387 echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6
5389 ac_preproc_ok=false
5390 for ac_c_preproc_warn_flag in '' yes
5391 do
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409 Syntax error
5410 _ACEOF
5411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } >/dev/null; then
5419 if test -s conftest.err; then
5420 ac_cpp_err=$ac_c_preproc_warn_flag
5421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5422 else
5423 ac_cpp_err=
5424 fi
5425 else
5426 ac_cpp_err=yes
5427 fi
5428 if test -z "$ac_cpp_err"; then
5429 :
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 # Broken: fails on valid input.
5435 continue
5436 fi
5437 rm -f conftest.err conftest.$ac_ext
5438
5439 # OK, works on sane cases. Now check whether non-existent headers
5440 # can be detected and how.
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 #include <ac_nonexistent.h>
5448 _ACEOF
5449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } >/dev/null; then
5457 if test -s conftest.err; then
5458 ac_cpp_err=$ac_c_preproc_warn_flag
5459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5460 else
5461 ac_cpp_err=
5462 fi
5463 else
5464 ac_cpp_err=yes
5465 fi
5466 if test -z "$ac_cpp_err"; then
5467 # Broken: success on invalid input.
5468 continue
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then
5483 :
5484 else
5485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; }
5490 fi
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498
5499 echo "$as_me:$LINENO: checking for egrep" >&5
5500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5501 if test "${ac_cv_prog_egrep+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5505 then ac_cv_prog_egrep='grep -E'
5506 else ac_cv_prog_egrep='egrep'
5507 fi
5508 fi
5509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5511 EGREP=$ac_cv_prog_egrep
5512
5513
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <stdint.h>
5521
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "uint32_t" >/dev/null 2>&1; then
5525
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_INT32_DEFINED 1
5528 _ACEOF
5529
5530 fi
5531 rm -f conftest*
5532
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <inttypes.h>
5540
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "uint32_t" >/dev/null 2>&1; then
5544
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_INT32_DEFINED 1
5547 _ACEOF
5548
5549 fi
5550 rm -f conftest*
5551
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <sys/types.h>
5559
5560 _ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "u_int32_t" >/dev/null 2>&1; then
5563
5564 cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_BSD_INT32_DEFINED 1
5566 _ACEOF
5567
5568 fi
5569 rm -f conftest*
5570
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <sys/config.h>
5578
5579 _ACEOF
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "u_int32_t" >/dev/null 2>&1; then
5582
5583 cat >>confdefs.h <<\_ACEOF
5584 #define HAVE_BSD_INT32_DEFINED 1
5585 _ACEOF
5586
5587 fi
5588 rm -f conftest*
5589
5590
5591
5592 # These may not be defined in a non-ANS conformant embedded system.
5593 # FIXME: Should these case a runtime exception in that case?
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <time.h>
5601
5602 _ACEOF
5603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 $EGREP "mktime" >/dev/null 2>&1; then
5605
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_MKTIME 1
5608 _ACEOF
5609
5610 fi
5611 rm -f conftest*
5612
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <time.h>
5620
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "localtime" >/dev/null 2>&1; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define HAVE_LOCALTIME 1
5627 _ACEOF
5628
5629 fi
5630 rm -f conftest*
5631
5632
5633 # Create the subdirectory for natFile.cc, or the attempt
5634 # to create the link will fail.
5635 test -d java || mkdir java
5636 test -d java/io || mkdir java/io
5637 test -d gnu || mkdir gnu
5638 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
5639
5640
5641 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
5642 test -d java/lang || mkdir java/lang
5643 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
5644
5645 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
5646
5647
5648 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
5649 test -d java/net || mkdir java/net
5650 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
5651
5652 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
5653
5654
5655 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
5656 test -d gnu/java || mkdir gnu/java
5657 test -d gnu/java/net || mkdir gnu/java/net
5658 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
5659
5660 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
5661
5662
5663 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
5664 test -d gnu/java/nio || mkdir gnu/java/nio
5665 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
5666
5667 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
5668
5669 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5670 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
5671
5672
5673 case "${host}" in
5674 *mingw*)
5675 SYSTEMSPEC="-lgdi32 -lws2_32"
5676 if test "${with_win32_nlsapi}" = "unicows"; then
5677 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
5678 fi
5679 ;;
5680 *)
5681 SYSTEMSPEC=
5682 ;;
5683 esac
5684
5685
5686 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
5687
5688
5689
5690 # Check whether --with-system-zlib or --without-system-zlib was given.
5691 if test "${with_system_zlib+set}" = set; then
5692 withval="$with_system_zlib"
5693
5694 fi;
5695 ZLIBSPEC=
5696
5697 ZLIBTESTSPEC=
5698
5699
5700 echo "$as_me:$LINENO: checking for X" >&5
5701 echo $ECHO_N "checking for X... $ECHO_C" >&6
5702
5703
5704 # Check whether --with-x or --without-x was given.
5705 if test "${with_x+set}" = set; then
5706 withval="$with_x"
5707
5708 fi;
5709 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5710 if test "x$with_x" = xno; then
5711 # The user explicitly disabled X.
5712 have_x=disabled
5713 else
5714 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5715 # Both variables are already set.
5716 have_x=yes
5717 else
5718 if test "${ac_cv_have_x+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 # One or both of the vars are not set, and there is no cached value.
5722 ac_x_includes=no ac_x_libraries=no
5723 rm -fr conftest.dir
5724 if mkdir conftest.dir; then
5725 cd conftest.dir
5726 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5727 cat >Imakefile <<'_ACEOF'
5728 acfindx:
5729 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5730 _ACEOF
5731 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5733 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5734 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5735 for ac_extension in a so sl; do
5736 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5737 test -f $ac_im_libdir/libX11.$ac_extension; then
5738 ac_im_usrlibdir=$ac_im_libdir; break
5739 fi
5740 done
5741 # Screen out bogus values from the imake configuration. They are
5742 # bogus both because they are the default anyway, and because
5743 # using them would break gcc on systems where it needs fixed includes.
5744 case $ac_im_incroot in
5745 /usr/include) ;;
5746 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5747 esac
5748 case $ac_im_usrlibdir in
5749 /usr/lib | /lib) ;;
5750 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5751 esac
5752 fi
5753 cd ..
5754 rm -fr conftest.dir
5755 fi
5756
5757 # Standard set of common directories for X headers.
5758 # Check X11 before X11Rn because it is often a symlink to the current release.
5759 ac_x_header_dirs='
5760 /usr/X11/include
5761 /usr/X11R6/include
5762 /usr/X11R5/include
5763 /usr/X11R4/include
5764
5765 /usr/include/X11
5766 /usr/include/X11R6
5767 /usr/include/X11R5
5768 /usr/include/X11R4
5769
5770 /usr/local/X11/include
5771 /usr/local/X11R6/include
5772 /usr/local/X11R5/include
5773 /usr/local/X11R4/include
5774
5775 /usr/local/include/X11
5776 /usr/local/include/X11R6
5777 /usr/local/include/X11R5
5778 /usr/local/include/X11R4
5779
5780 /usr/X386/include
5781 /usr/x386/include
5782 /usr/XFree86/include/X11
5783
5784 /usr/include
5785 /usr/local/include
5786 /usr/unsupported/include
5787 /usr/athena/include
5788 /usr/local/x11r5/include
5789 /usr/lpp/Xamples/include
5790
5791 /usr/openwin/include
5792 /usr/openwin/share/include'
5793
5794 if test "$ac_x_includes" = no; then
5795 # Guess where to find include files, by looking for Intrinsic.h.
5796 # First, try using that file with no special directory specified.
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <X11/Intrinsic.h>
5804 _ACEOF
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null; then
5813 if test -s conftest.err; then
5814 ac_cpp_err=$ac_c_preproc_warn_flag
5815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5816 else
5817 ac_cpp_err=
5818 fi
5819 else
5820 ac_cpp_err=yes
5821 fi
5822 if test -z "$ac_cpp_err"; then
5823 # We can compile using X headers with no special include directory.
5824 ac_x_includes=
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 for ac_dir in $ac_x_header_dirs; do
5830 if test -r "$ac_dir/X11/Intrinsic.h"; then
5831 ac_x_includes=$ac_dir
5832 break
5833 fi
5834 done
5835 fi
5836 rm -f conftest.err conftest.$ac_ext
5837 fi # $ac_x_includes = no
5838
5839 if test "$ac_x_libraries" = no; then
5840 # Check for the libraries.
5841 # See if we find them without any special options.
5842 # Don't add to $LIBS permanently.
5843 ac_save_LIBS=$LIBS
5844 LIBS="-lXt $LIBS"
5845 if test x$gcc_no_link = xyes; then
5846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5848 { (exit 1); exit 1; }; }
5849 fi
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <X11/Intrinsic.h>
5857 int
5858 main ()
5859 {
5860 XtMalloc (0)
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867 (eval $ac_link) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 LIBS=$ac_save_LIBS
5888 # We can link X programs with no special library path.
5889 ac_x_libraries=
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 LIBS=$ac_save_LIBS
5895 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5896 do
5897 # Don't even attempt the hair of trying to link an X program!
5898 for ac_extension in a so sl; do
5899 if test -r $ac_dir/libXt.$ac_extension; then
5900 ac_x_libraries=$ac_dir
5901 break 2
5902 fi
5903 done
5904 done
5905 fi
5906 rm -f conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5908 fi # $ac_x_libraries = no
5909
5910 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5911 # Didn't find X anywhere. Cache the known absence of X.
5912 ac_cv_have_x="have_x=no"
5913 else
5914 # Record where we found X for the cache.
5915 ac_cv_have_x="have_x=yes \
5916 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5917 fi
5918 fi
5919
5920 fi
5921 eval "$ac_cv_have_x"
5922 fi # $with_x != no
5923
5924 if test "$have_x" != yes; then
5925 echo "$as_me:$LINENO: result: $have_x" >&5
5926 echo "${ECHO_T}$have_x" >&6
5927 no_x=yes
5928 else
5929 # If each of the values was on the command line, it overrides each guess.
5930 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5931 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5932 # Update the cache value to reflect the command line values.
5933 ac_cv_have_x="have_x=yes \
5934 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5935 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5936 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5937 fi
5938
5939 if test "$no_x" = yes; then
5940 # Not all programs may use this symbol, but it does not hurt to define it.
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define X_DISPLAY_MISSING 1
5944 _ACEOF
5945
5946 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5947 else
5948 if test -n "$x_includes"; then
5949 X_CFLAGS="$X_CFLAGS -I$x_includes"
5950 fi
5951
5952 # It would also be nice to do this for all -L options, not just this one.
5953 if test -n "$x_libraries"; then
5954 X_LIBS="$X_LIBS -L$x_libraries"
5955 # For Solaris; some versions of Sun CC require a space after -R and
5956 # others require no space. Words are not sufficient . . . .
5957 case `(uname -sr) 2>/dev/null` in
5958 "SunOS 5"*)
5959 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5960 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5961 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5962 if test x$gcc_no_link = xyes; then
5963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5965 { (exit 1); exit 1; }; }
5966 fi
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973
5974 int
5975 main ()
5976 {
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_R_nospace=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 ac_R_nospace=no
6010 fi
6011 rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013 if test $ac_R_nospace = yes; then
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 X_LIBS="$X_LIBS -R$x_libraries"
6017 else
6018 LIBS="$ac_xsave_LIBS -R $x_libraries"
6019 if test x$gcc_no_link = xyes; then
6020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6022 { (exit 1); exit 1; }; }
6023 fi
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030
6031 int
6032 main ()
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_c_werror_flag"
6049 || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_R_space=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_R_space=no
6067 fi
6068 rm -f conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 if test $ac_R_space = yes; then
6071 echo "$as_me:$LINENO: result: yes" >&5
6072 echo "${ECHO_T}yes" >&6
6073 X_LIBS="$X_LIBS -R $x_libraries"
6074 else
6075 echo "$as_me:$LINENO: result: neither works" >&5
6076 echo "${ECHO_T}neither works" >&6
6077 fi
6078 fi
6079 LIBS=$ac_xsave_LIBS
6080 esac
6081 fi
6082
6083 # Check for system-dependent libraries X programs must link with.
6084 # Do this before checking for the system-independent R6 libraries
6085 # (-lICE), since we may need -lsocket or whatever for X linking.
6086
6087 if test "$ISC" = yes; then
6088 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6089 else
6090 # Martyn Johnson says this is needed for Ultrix, if the X
6091 # libraries were built with DECnet support. And Karl Berry says
6092 # the Alpha needs dnet_stub (dnet does not exist).
6093 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6094 if test x$gcc_no_link = xyes; then
6095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6097 { (exit 1); exit 1; }; }
6098 fi
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105
6106 /* Override any gcc2 internal prototype to avoid an error. */
6107 #ifdef __cplusplus
6108 extern "C"
6109 #endif
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char XOpenDisplay ();
6113 int
6114 main ()
6115 {
6116 XOpenDisplay ();
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try='test -s conftest$ac_exeext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 :
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6149 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6150 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-ldnet $LIBS"
6155 if test x$gcc_no_link = xyes; then
6156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6158 { (exit 1); exit 1; }; }
6159 fi
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 /* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6173 char dnet_ntoa ();
6174 int
6175 main ()
6176 {
6177 dnet_ntoa ();
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_lib_dnet_dnet_ntoa=yes
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_lib_dnet_dnet_ntoa=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
6213 LIBS=$ac_check_lib_save_LIBS
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6216 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6217 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6218 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6219 fi
6220
6221 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6222 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6223 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6224 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-ldnet_stub $LIBS"
6229 if test x$gcc_no_link = xyes; then
6230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6232 { (exit 1); exit 1; }; }
6233 fi
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6247 char dnet_ntoa ();
6248 int
6249 main ()
6250 {
6251 dnet_ntoa ();
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258 (eval $ac_link) 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -z "$ac_c_werror_flag"
6266 || test ! -s conftest.err'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest$ac_exeext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 (eval $ac_try) 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_cv_lib_dnet_stub_dnet_ntoa=no
6284 fi
6285 rm -f conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6290 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6291 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6293 fi
6294
6295 fi
6296 fi
6297 rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 LIBS="$ac_xsave_LIBS"
6300
6301 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6302 # to get the SysV transport functions.
6303 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6304 # needs -lnsl.
6305 # The nsl library prevents programs from opening the X display
6306 # on Irix 5.2, according to T.E. Dickey.
6307 # The functions gethostbyname, getservbyname, and inet_addr are
6308 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6309 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6310 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6311 if test "${ac_cv_func_gethostbyname+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test x$gcc_no_link = xyes; then
6315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6317 { (exit 1); exit 1; }; }
6318 fi
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6327 #define gethostbyname innocuous_gethostbyname
6328
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char gethostbyname (); below.
6331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332 <limits.h> exists even on freestanding compilers. */
6333
6334 #ifdef __STDC__
6335 # include <limits.h>
6336 #else
6337 # include <assert.h>
6338 #endif
6339
6340 #undef gethostbyname
6341
6342 /* Override any gcc2 internal prototype to avoid an error. */
6343 #ifdef __cplusplus
6344 extern "C"
6345 {
6346 #endif
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char gethostbyname ();
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6354 choke me
6355 #else
6356 char (*f) () = gethostbyname;
6357 #endif
6358 #ifdef __cplusplus
6359 }
6360 #endif
6361
6362 int
6363 main ()
6364 {
6365 return f != gethostbyname;
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_func_gethostbyname=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_cv_func_gethostbyname=no
6398 fi
6399 rm -f conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6403 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6404
6405 if test $ac_cv_func_gethostbyname = no; then
6406 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-lnsl $LIBS"
6413 if test x$gcc_no_link = xyes; then
6414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6416 { (exit 1); exit 1; }; }
6417 fi
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6431 char gethostbyname ();
6432 int
6433 main ()
6434 {
6435 gethostbyname ();
6436 ;
6437 return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_lib_nsl_gethostbyname=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_cv_lib_nsl_gethostbyname=no
6468 fi
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6472 fi
6473 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6475 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6477 fi
6478
6479 if test $ac_cv_lib_nsl_gethostbyname = no; then
6480 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6481 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6482 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-lbsd $LIBS"
6487 if test x$gcc_no_link = xyes; then
6488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6490 { (exit 1); exit 1; }; }
6491 fi
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 #ifdef __cplusplus
6501 extern "C"
6502 #endif
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6505 char gethostbyname ();
6506 int
6507 main ()
6508 {
6509 gethostbyname ();
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag"
6524 || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_lib_bsd_gethostbyname=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_cv_lib_bsd_gethostbyname=no
6542 fi
6543 rm -f conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6546 fi
6547 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6551 fi
6552
6553 fi
6554 fi
6555
6556 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6557 # socket/setsockopt and other routines are undefined under SCO ODT
6558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6559 # on later versions), says Simon Leinen: it contains gethostby*
6560 # variants that don't use the name server (or something). -lsocket
6561 # must be given before -lnsl if both are needed. We assume that
6562 # if connect needs -lnsl, so does gethostbyname.
6563 echo "$as_me:$LINENO: checking for connect" >&5
6564 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6565 if test "${ac_cv_func_connect+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 if test x$gcc_no_link = xyes; then
6569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6571 { (exit 1); exit 1; }; }
6572 fi
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6581 #define connect innocuous_connect
6582
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char connect (); below.
6585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6586 <limits.h> exists even on freestanding compilers. */
6587
6588 #ifdef __STDC__
6589 # include <limits.h>
6590 #else
6591 # include <assert.h>
6592 #endif
6593
6594 #undef connect
6595
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 #ifdef __cplusplus
6598 extern "C"
6599 {
6600 #endif
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char connect ();
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_connect) || defined (__stub___connect)
6608 choke me
6609 #else
6610 char (*f) () = connect;
6611 #endif
6612 #ifdef __cplusplus
6613 }
6614 #endif
6615
6616 int
6617 main ()
6618 {
6619 return f != connect;
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626 (eval $ac_link) 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_func_connect=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_func_connect=no
6652 fi
6653 rm -f conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6657 echo "${ECHO_T}$ac_cv_func_connect" >&6
6658
6659 if test $ac_cv_func_connect = no; then
6660 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6661 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6662 if test "${ac_cv_lib_socket_connect+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 ac_check_lib_save_LIBS=$LIBS
6666 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6667 if test x$gcc_no_link = xyes; then
6668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6670 { (exit 1); exit 1; }; }
6671 fi
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char connect ();
6686 int
6687 main ()
6688 {
6689 connect ();
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_lib_socket_connect=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_cv_lib_socket_connect=no
6722 fi
6723 rm -f conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6726 fi
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6728 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6729 if test $ac_cv_lib_socket_connect = yes; then
6730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6731 fi
6732
6733 fi
6734
6735 # Guillermo Gomez says -lposix is necessary on A/UX.
6736 echo "$as_me:$LINENO: checking for remove" >&5
6737 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6738 if test "${ac_cv_func_remove+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 if test x$gcc_no_link = xyes; then
6742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6744 { (exit 1); exit 1; }; }
6745 fi
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6754 #define remove innocuous_remove
6755
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char remove (); below.
6758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759 <limits.h> exists even on freestanding compilers. */
6760
6761 #ifdef __STDC__
6762 # include <limits.h>
6763 #else
6764 # include <assert.h>
6765 #endif
6766
6767 #undef remove
6768
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 #ifdef __cplusplus
6771 extern "C"
6772 {
6773 #endif
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char remove ();
6777 /* The GNU C library defines this for functions which it implements
6778 to always fail with ENOSYS. Some functions are actually named
6779 something starting with __ and the normal name is an alias. */
6780 #if defined (__stub_remove) || defined (__stub___remove)
6781 choke me
6782 #else
6783 char (*f) () = remove;
6784 #endif
6785 #ifdef __cplusplus
6786 }
6787 #endif
6788
6789 int
6790 main ()
6791 {
6792 return f != remove;
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_func_remove=yes
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 ac_cv_func_remove=no
6825 fi
6826 rm -f conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 fi
6829 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6830 echo "${ECHO_T}$ac_cv_func_remove" >&6
6831
6832 if test $ac_cv_func_remove = no; then
6833 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6834 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6835 if test "${ac_cv_lib_posix_remove+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 ac_check_lib_save_LIBS=$LIBS
6839 LIBS="-lposix $LIBS"
6840 if test x$gcc_no_link = xyes; then
6841 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6843 { (exit 1); exit 1; }; }
6844 fi
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char remove ();
6859 int
6860 main ()
6861 {
6862 remove ();
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869 (eval $ac_link) 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -z "$ac_c_werror_flag"
6877 || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try='test -s conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 ac_cv_lib_posix_remove=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 ac_cv_lib_posix_remove=no
6895 fi
6896 rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6899 fi
6900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6901 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6902 if test $ac_cv_lib_posix_remove = yes; then
6903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6904 fi
6905
6906 fi
6907
6908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6909 echo "$as_me:$LINENO: checking for shmat" >&5
6910 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6911 if test "${ac_cv_func_shmat+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 if test x$gcc_no_link = xyes; then
6915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6917 { (exit 1); exit 1; }; }
6918 fi
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6927 #define shmat innocuous_shmat
6928
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char shmat (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6933
6934 #ifdef __STDC__
6935 # include <limits.h>
6936 #else
6937 # include <assert.h>
6938 #endif
6939
6940 #undef shmat
6941
6942 /* Override any gcc2 internal prototype to avoid an error. */
6943 #ifdef __cplusplus
6944 extern "C"
6945 {
6946 #endif
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char shmat ();
6950 /* The GNU C library defines this for functions which it implements
6951 to always fail with ENOSYS. Some functions are actually named
6952 something starting with __ and the normal name is an alias. */
6953 #if defined (__stub_shmat) || defined (__stub___shmat)
6954 choke me
6955 #else
6956 char (*f) () = shmat;
6957 #endif
6958 #ifdef __cplusplus
6959 }
6960 #endif
6961
6962 int
6963 main ()
6964 {
6965 return f != shmat;
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_func_shmat=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_cv_func_shmat=no
6998 fi
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7003 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7004
7005 if test $ac_cv_func_shmat = no; then
7006 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7007 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7008 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 ac_check_lib_save_LIBS=$LIBS
7012 LIBS="-lipc $LIBS"
7013 if test x$gcc_no_link = xyes; then
7014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7016 { (exit 1); exit 1; }; }
7017 fi
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024
7025 /* Override any gcc2 internal prototype to avoid an error. */
7026 #ifdef __cplusplus
7027 extern "C"
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7031 char shmat ();
7032 int
7033 main ()
7034 {
7035 shmat ();
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042 (eval $ac_link) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_lib_ipc_shmat=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_lib_ipc_shmat=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7074 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7075 if test $ac_cv_lib_ipc_shmat = yes; then
7076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7077 fi
7078
7079 fi
7080 fi
7081
7082 # Check for libraries that X11R6 Xt/Xaw programs need.
7083 ac_save_LDFLAGS=$LDFLAGS
7084 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7085 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7086 # check for ICE first), but we must link in the order -lSM -lICE or
7087 # we get undefined symbols. So assume we have SM if we have ICE.
7088 # These have to be linked with before -lX11, unlike the other
7089 # libraries we check for below, so use a different variable.
7090 # John Interrante, Karl Berry
7091 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7092 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7093 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7098 if test x$gcc_no_link = xyes; then
7099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7101 { (exit 1); exit 1; }; }
7102 fi
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 #ifdef __cplusplus
7112 extern "C"
7113 #endif
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char IceConnectionNumber ();
7117 int
7118 main ()
7119 {
7120 IceConnectionNumber ();
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_lib_ICE_IceConnectionNumber=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_lib_ICE_IceConnectionNumber=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7157 fi
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7159 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7160 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7161 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7162 fi
7163
7164 LDFLAGS=$ac_save_LDFLAGS
7165
7166 fi
7167
7168
7169 # Determine which AWT peer libraries to build
7170 # Check whether --enable-java-awt or --disable-java-awt was given.
7171 if test "${enable_java_awt+set}" = set; then
7172 enableval="$enable_java_awt"
7173
7174 fi;
7175
7176 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7177 use_xlib_awt=""
7178 use_gtk_awt=""
7179 # The default toolkit to use is the first one specified.
7180 TOOLKIT=
7181
7182
7183 for peer in $peerlibs ; do
7184 case $peer in
7185 xlib)
7186 if test "$no_x" = yes; then
7187 echo "*** xlib peers requested but no X library available" 1>&2
7188 exit 1
7189 else
7190 use_xlib_awt="yes"
7191 if test -z "$TOOLKIT"; then
7192 TOOLKIT=gnu.awt.xlib.XToolkit
7193 fi
7194 fi
7195 ;;
7196 gtk)
7197 if test "$no_x" = yes; then
7198 echo "*** xlib peers requested but no X library available" 1>&2
7199 exit 1
7200 else
7201 use_gtk_awt=yes
7202 if test -z "$TOOLKIT"; then
7203 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7204 fi
7205 test -d jniinclude || mkdir jniinclude
7206 fi
7207 ;;
7208 no)
7209 use_xlib_awt=
7210 use_gtk_awt=
7211 break
7212 ;;
7213 *)
7214 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7215 exit 1
7216 esac
7217 done
7218
7219
7220
7221 if test "$use_xlib_awt" = yes; then
7222 XLIB_AWT_TRUE=
7223 XLIB_AWT_FALSE='#'
7224 else
7225 XLIB_AWT_TRUE='#'
7226 XLIB_AWT_FALSE=
7227 fi
7228
7229
7230 if test "$use_gtk_awt" = yes; then
7231 GTK_AWT_TRUE=
7232 GTK_AWT_FALSE='#'
7233 else
7234 GTK_AWT_TRUE='#'
7235 GTK_AWT_FALSE=
7236 fi
7237
7238 # determine whether to enable the cairo GTK Graphics2D backend
7239 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7240 if test "${enable_gtk_cairo+set}" = set; then
7241 enableval="$enable_gtk_cairo"
7242
7243 fi;
7244
7245
7246 if test "x${enable_gtk_cairo}" = xyes; then
7247 GTK_CAIRO_TRUE=
7248 GTK_CAIRO_FALSE='#'
7249 else
7250 GTK_CAIRO_TRUE='#'
7251 GTK_CAIRO_FALSE=
7252 fi
7253 if test "x${enable_gtk_cairo}" = xyes
7254 then
7255
7256 succeeded=no
7257
7258 if test -z "$PKG_CONFIG"; then
7259 # Extract the first word of "pkg-config", so it can be a program name with args.
7260 set dummy pkg-config; ac_word=$2
7261 echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 case $PKG_CONFIG in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284
7285 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7286 ;;
7287 esac
7288 fi
7289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7290
7291 if test -n "$PKG_CONFIG"; then
7292 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7293 echo "${ECHO_T}$PKG_CONFIG" >&6
7294 else
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297 fi
7298
7299 fi
7300
7301 if test "$PKG_CONFIG" = "no" ; then
7302 echo "*** The pkg-config script could not be found. Make sure it is"
7303 echo "*** in your path, or set the PKG_CONFIG environment variable"
7304 echo "*** to the full path to pkg-config."
7305 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7306 else
7307 PKG_CONFIG_MIN_VERSION=0.9.0
7308 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7309 echo "$as_me:$LINENO: checking for cairo" >&5
7310 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
7311
7312 if $PKG_CONFIG --exists "cairo" ; then
7313 echo "$as_me:$LINENO: result: yes" >&5
7314 echo "${ECHO_T}yes" >&6
7315 succeeded=yes
7316
7317 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
7318 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
7319 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
7320 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
7321 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
7322
7323 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
7324 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
7325 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
7326 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
7327 echo "${ECHO_T}$CAIRO_LIBS" >&6
7328 else
7329 CAIRO_CFLAGS=""
7330 CAIRO_LIBS=""
7331 ## If we have a custom action on failure, don't print errors, but
7332 ## do set a variable so people can do so.
7333 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
7334 echo $CAIRO_PKG_ERRORS
7335 fi
7336
7337
7338
7339 else
7340 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7341 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7342 fi
7343 fi
7344
7345 if test $succeeded = yes; then
7346 :
7347 else
7348 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7349 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7350 { (exit 1); exit 1; }; }
7351 fi
7352
7353
7354 succeeded=no
7355
7356 if test -z "$PKG_CONFIG"; then
7357 # Extract the first word of "pkg-config", so it can be a program name with args.
7358 set dummy pkg-config; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 case $PKG_CONFIG in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382
7383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7384 ;;
7385 esac
7386 fi
7387 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7388
7389 if test -n "$PKG_CONFIG"; then
7390 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7391 echo "${ECHO_T}$PKG_CONFIG" >&6
7392 else
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7395 fi
7396
7397 fi
7398
7399 if test "$PKG_CONFIG" = "no" ; then
7400 echo "*** The pkg-config script could not be found. Make sure it is"
7401 echo "*** in your path, or set the PKG_CONFIG environment variable"
7402 echo "*** to the full path to pkg-config."
7403 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7404 else
7405 PKG_CONFIG_MIN_VERSION=0.9.0
7406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7407 echo "$as_me:$LINENO: checking for pangoft2" >&5
7408 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
7409
7410 if $PKG_CONFIG --exists "pangoft2" ; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7413 succeeded=yes
7414
7415 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
7416 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
7417 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
7418 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
7419 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
7420
7421 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
7422 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
7423 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
7424 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
7425 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
7426 else
7427 PANGOFT2_CFLAGS=""
7428 PANGOFT2_LIBS=""
7429 ## If we have a custom action on failure, don't print errors, but
7430 ## do set a variable so people can do so.
7431 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
7432 echo $PANGOFT2_PKG_ERRORS
7433 fi
7434
7435
7436
7437 else
7438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7440 fi
7441 fi
7442
7443 if test $succeeded = yes; then
7444 :
7445 else
7446 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7447 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7448 { (exit 1); exit 1; }; }
7449 fi
7450
7451 fi
7452
7453
7454
7455
7456
7457 # FIXME: this should be _libs on some hosts.
7458 libsubdir=.libs
7459
7460 # Allow the GC to be disabled. Can be useful when debugging.
7461 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
7462 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
7463 # Check whether --enable-java-gc or --disable-java-gc was given.
7464 if test "${enable_java_gc+set}" = set; then
7465 enableval="$enable_java_gc"
7466 GC=$enableval
7467 else
7468 GC=boehm
7469 fi;
7470 GCLIBS=
7471 GCINCS=
7472 GCDEPS=
7473 GCOBJS=
7474 GCSPEC=
7475 JC1GCSPEC=
7476 GCTESTSPEC=
7477 case "$GC" in
7478 boehm)
7479 echo "$as_me:$LINENO: result: boehm" >&5
7480 echo "${ECHO_T}boehm" >&6
7481 GCLIBS=../boehm-gc/libgcjgc_convenience.la
7482 JC1GCSPEC='-fuse-boehm-gc'
7483 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
7484
7485 # We also want to pick up some cpp flags required when including
7486 # boehm-config.h. Yuck.
7487 GCINCS="`cat ../boehm-gc/boehm-cflags`"
7488 GCOBJS=boehm.lo
7489 GCHDR=boehm-gc.h
7490 # The POSIX thread support needs to know this.
7491
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_BOEHM_GC 1
7494 _ACEOF
7495
7496 ;;
7497 no)
7498 echo "$as_me:$LINENO: result: none" >&5
7499 echo "${ECHO_T}none" >&6
7500 GCOBJS=nogc.lo
7501 GCHDR=no-gc.h
7502 ;;
7503 *)
7504 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
7505 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
7506 { (exit 1); exit 1; }; }
7507 ;;
7508 esac
7509
7510
7511
7512
7513
7514
7515
7516 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
7517
7518
7519
7520 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7521 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7522 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
7523 echo "$as_me:$LINENO: result: $THREADS" >&5
7524 echo "${ECHO_T}$THREADS" >&6
7525
7526 case "$THREADS" in
7527 no | none | single)
7528 THREADS=none
7529 ;;
7530 posix | pthreads)
7531 THREADS=posix
7532 case "$host" in
7533 *-*-linux*)
7534
7535 cat >>confdefs.h <<\_ACEOF
7536 #define LINUX_THREADS 1
7537 _ACEOF
7538
7539 ;;
7540 esac
7541 ;;
7542 win32)
7543 ;;
7544 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
7545 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
7546 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
7547 { (exit 1); exit 1; }; }
7548 ;;
7549 *)
7550 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
7551 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
7552 { (exit 1); exit 1; }; }
7553 ;;
7554 esac
7555
7556 THREADCXXFLAGS=
7557 THREADLDFLAGS=
7558 THREADLIBS=
7559 THREADINCS=
7560 THREADDEPS=
7561 THREADOBJS=
7562 THREADH=
7563 THREADSPEC=
7564 case "$THREADS" in
7565 posix)
7566 case "$host" in
7567 *-*-cygwin*)
7568 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
7569 ;;
7570 *-*-freebsd[1234]*)
7571 # Before FreeBSD 5, it didn't have -lpthread (or any library which
7572 # merely adds pthread_* functions) but it does have a -pthread switch
7573 # which is required at link-time to select -lc_r *instead* of -lc.
7574 THREADLDFLAGS=-pthread
7575 # Don't set THREADSPEC here as might be expected since -pthread is
7576 # not processed when found within a spec file, it must come from
7577 # the command line. For now, the user must provide the -pthread
7578 # switch to link code compiled with gcj. In future, consider adding
7579 # support for weak references to pthread_* functions ala gthr.h API.
7580 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
7581 ;;
7582 *-*-freebsd*)
7583 # FreeBSD 5 implements a model much closer to other modern UNIX
7584 # which support threads. However, it still does not support
7585 # -lpthread.
7586 THREADLDFLAGS=-pthread
7587 THREADSPEC=-lc_r
7588 ;;
7589 alpha*-dec-osf*)
7590 THREADCXXFLAGS=-pthread
7591 # boehm-gc needs some functions from librt, so link that too.
7592 THREADLIBS='-lpthread -lrt'
7593 THREADSPEC='-lpthread -lrt'
7594 ;;
7595 *)
7596 THREADLIBS=-lpthread
7597 THREADSPEC=-lpthread
7598 ;;
7599 esac
7600 THREADOBJS=posix-threads.lo
7601 THREADH=posix-threads.h
7602 # MIT pthreads doesn't seem to have the mutexattr functions.
7603 # But for now we don't check for it. We just assume you aren't
7604 # using MIT pthreads.
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7608 _ACEOF
7609
7610
7611 # If we're using the Boehm GC, then we happen to know that it
7612 # defines _REENTRANT, so we don't bother. Eww.
7613 if test "$GC" != boehm; then
7614
7615 cat >>confdefs.h <<\_ACEOF
7616 #define _REENTRANT 1
7617 _ACEOF
7618
7619 fi
7620
7621 cat >>confdefs.h <<\_ACEOF
7622 #define _POSIX_PTHREAD_SEMANTICS 1
7623 _ACEOF
7624
7625 ;;
7626
7627 win32)
7628 THREADOBJS=win32-threads.lo
7629 THREADH=win32-threads.h
7630 ;;
7631
7632 none)
7633 THREADOBJS=no-threads.lo
7634 THREADH=no-threads.h
7635 ;;
7636 esac
7637 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 if test -d sysdep; then true; else mkdir sysdep; fi
7648 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
7649
7650
7651 HASH_SYNC_SPEC=
7652 # Hash synchronization is only useful with posix threads right now.
7653 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
7654 HASH_SYNC_SPEC=-fhash-synchronization
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define JV_HASH_SYNCHRONIZATION 1
7658 _ACEOF
7659
7660 fi
7661
7662
7663
7664
7665
7666 if test "$GCC" = yes; then
7667 USING_GCC_TRUE=
7668 USING_GCC_FALSE='#'
7669 else
7670 USING_GCC_TRUE='#'
7671 USING_GCC_FALSE=
7672 fi
7673
7674 # We're in the tree with gcc, and need to include some of its headers.
7675 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
7676
7677 # Figure out where generated headers like libgcj-config.h get installed.
7678 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
7679 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7680 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7681 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
7682
7683
7684
7685 if test "x${with_newlib}" = "xyes"; then
7686 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
7687 # may not work correctly, because the compiler may not be able to
7688 # link executables.
7689
7690 # We assume newlib. This lets us hard-code the functions we know
7691 # we'll have.
7692
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_MEMMOVE 1
7695 _ACEOF
7696
7697
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_MEMCPY 1
7700 _ACEOF
7701
7702
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_STRERROR 1
7705 _ACEOF
7706
7707
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_TIME 1
7710 _ACEOF
7711
7712
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_GMTIME_R 1
7715 _ACEOF
7716
7717
7718 cat >>confdefs.h <<\_ACEOF
7719 #define HAVE_LOCALTIME_R 1
7720 _ACEOF
7721
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_USLEEP_DECL 1
7725 _ACEOF
7726
7727 # This is only for POSIX threads.
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7731 _ACEOF
7732
7733 # We also assume we are using gcc, which provides alloca.
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_ALLOCA 1
7736 _ACEOF
7737
7738
7739 # Assume we do not have getuid and friends.
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define NO_GETUID 1
7743 _ACEOF
7744
7745 PLATFORMNET=NoNet
7746 else
7747
7748
7749
7750
7751
7752
7753
7754
7755 for ac_func in strerror ioctl select fstat open fsync sleep opendir
7756 do
7757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7758 echo "$as_me:$LINENO: checking for $ac_func" >&5
7759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_var+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 if test x$gcc_no_link = xyes; then
7764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7765 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7766 { (exit 1); exit 1; }; }
7767 fi
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7776 #define $ac_func innocuous_$ac_func
7777
7778 /* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char $ac_func (); below.
7780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 <limits.h> exists even on freestanding compilers. */
7782
7783 #ifdef __STDC__
7784 # include <limits.h>
7785 #else
7786 # include <assert.h>
7787 #endif
7788
7789 #undef $ac_func
7790
7791 /* Override any gcc2 internal prototype to avoid an error. */
7792 #ifdef __cplusplus
7793 extern "C"
7794 {
7795 #endif
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7798 char $ac_func ();
7799 /* The GNU C library defines this for functions which it implements
7800 to always fail with ENOSYS. Some functions are actually named
7801 something starting with __ and the normal name is an alias. */
7802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803 choke me
7804 #else
7805 char (*f) () = $ac_func;
7806 #endif
7807 #ifdef __cplusplus
7808 }
7809 #endif
7810
7811 int
7812 main ()
7813 {
7814 return f != $ac_func;
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 eval "$as_ac_var=yes"
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 eval "$as_ac_var=no"
7847 fi
7848 rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 fi
7851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7853 if test `eval echo '${'$as_ac_var'}'` = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7856 _ACEOF
7857
7858 fi
7859 done
7860
7861
7862
7863
7864
7865
7866 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
7867 do
7868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7869 echo "$as_me:$LINENO: checking for $ac_func" >&5
7870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_var+set}\" = set"; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 if test x$gcc_no_link = xyes; then
7875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7877 { (exit 1); exit 1; }; }
7878 fi
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7887 #define $ac_func innocuous_$ac_func
7888
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char $ac_func (); below.
7891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892 <limits.h> exists even on freestanding compilers. */
7893
7894 #ifdef __STDC__
7895 # include <limits.h>
7896 #else
7897 # include <assert.h>
7898 #endif
7899
7900 #undef $ac_func
7901
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 #ifdef __cplusplus
7904 extern "C"
7905 {
7906 #endif
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7909 char $ac_func ();
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7914 choke me
7915 #else
7916 char (*f) () = $ac_func;
7917 #endif
7918 #ifdef __cplusplus
7919 }
7920 #endif
7921
7922 int
7923 main ()
7924 {
7925 return f != $ac_func;
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
7939 { ac_try='test -z "$ac_c_werror_flag"
7940 || test ! -s conftest.err'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 eval "$as_ac_var=yes"
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 eval "$as_ac_var=no"
7958 fi
7959 rm -f conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964 if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7967 _ACEOF
7968
7969 fi
7970 done
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
7982 do
7983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7984 echo "$as_me:$LINENO: checking for $ac_func" >&5
7985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7986 if eval "test \"\${$as_ac_var+set}\" = set"; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989 if test x$gcc_no_link = xyes; then
7990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7992 { (exit 1); exit 1; }; }
7993 fi
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8002 #define $ac_func innocuous_$ac_func
8003
8004 /* System header to define __stub macros and hopefully few prototypes,
8005 which can conflict with char $ac_func (); below.
8006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007 <limits.h> exists even on freestanding compilers. */
8008
8009 #ifdef __STDC__
8010 # include <limits.h>
8011 #else
8012 # include <assert.h>
8013 #endif
8014
8015 #undef $ac_func
8016
8017 /* Override any gcc2 internal prototype to avoid an error. */
8018 #ifdef __cplusplus
8019 extern "C"
8020 {
8021 #endif
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024 char $ac_func ();
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8029 choke me
8030 #else
8031 char (*f) () = $ac_func;
8032 #endif
8033 #ifdef __cplusplus
8034 }
8035 #endif
8036
8037 int
8038 main ()
8039 {
8040 return f != $ac_func;
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 eval "$as_ac_var=yes"
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 eval "$as_ac_var=no"
8073 fi
8074 rm -f conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076 fi
8077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8082 _ACEOF
8083
8084 fi
8085 done
8086
8087
8088
8089 for ac_func in nl_langinfo setlocale
8090 do
8091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8092 echo "$as_me:$LINENO: checking for $ac_func" >&5
8093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_var+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 if test x$gcc_no_link = xyes; then
8098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8100 { (exit 1); exit 1; }; }
8101 fi
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8110 #define $ac_func innocuous_$ac_func
8111
8112 /* System header to define __stub macros and hopefully few prototypes,
8113 which can conflict with char $ac_func (); below.
8114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8115 <limits.h> exists even on freestanding compilers. */
8116
8117 #ifdef __STDC__
8118 # include <limits.h>
8119 #else
8120 # include <assert.h>
8121 #endif
8122
8123 #undef $ac_func
8124
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 #ifdef __cplusplus
8127 extern "C"
8128 {
8129 #endif
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132 char $ac_func ();
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8137 choke me
8138 #else
8139 char (*f) () = $ac_func;
8140 #endif
8141 #ifdef __cplusplus
8142 }
8143 #endif
8144
8145 int
8146 main ()
8147 {
8148 return f != $ac_func;
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 eval "$as_ac_var=yes"
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 eval "$as_ac_var=no"
8181 fi
8182 rm -f conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 fi
8185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8187 if test `eval echo '${'$as_ac_var'}'` = yes; then
8188 cat >>confdefs.h <<_ACEOF
8189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193 done
8194
8195
8196
8197 for ac_func in inet_aton inet_addr
8198 do
8199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8200 echo "$as_me:$LINENO: checking for $ac_func" >&5
8201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8202 if eval "test \"\${$as_ac_var+set}\" = set"; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 if test x$gcc_no_link = xyes; then
8206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8208 { (exit 1); exit 1; }; }
8209 fi
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8218 #define $ac_func innocuous_$ac_func
8219
8220 /* System header to define __stub macros and hopefully few prototypes,
8221 which can conflict with char $ac_func (); below.
8222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8223 <limits.h> exists even on freestanding compilers. */
8224
8225 #ifdef __STDC__
8226 # include <limits.h>
8227 #else
8228 # include <assert.h>
8229 #endif
8230
8231 #undef $ac_func
8232
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 #ifdef __cplusplus
8235 extern "C"
8236 {
8237 #endif
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8240 char $ac_func ();
8241 /* The GNU C library defines this for functions which it implements
8242 to always fail with ENOSYS. Some functions are actually named
8243 something starting with __ and the normal name is an alias. */
8244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8245 choke me
8246 #else
8247 char (*f) () = $ac_func;
8248 #endif
8249 #ifdef __cplusplus
8250 }
8251 #endif
8252
8253 int
8254 main ()
8255 {
8256 return f != $ac_func;
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 eval "$as_ac_var=yes"
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 eval "$as_ac_var=no"
8289 fi
8290 rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 fi
8293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8295 if test `eval echo '${'$as_ac_var'}'` = yes; then
8296 cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8298 _ACEOF
8299 break
8300 fi
8301 done
8302
8303
8304
8305
8306 for ac_func in inet_pton uname inet_ntoa
8307 do
8308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8309 echo "$as_me:$LINENO: checking for $ac_func" >&5
8310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_var+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 if test x$gcc_no_link = xyes; then
8315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8317 { (exit 1); exit 1; }; }
8318 fi
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327 #define $ac_func innocuous_$ac_func
8328
8329 /* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char $ac_func (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8333
8334 #ifdef __STDC__
8335 # include <limits.h>
8336 #else
8337 # include <assert.h>
8338 #endif
8339
8340 #undef $ac_func
8341
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 #ifdef __cplusplus
8344 extern "C"
8345 {
8346 #endif
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8349 char $ac_func ();
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 choke me
8355 #else
8356 char (*f) () = $ac_func;
8357 #endif
8358 #ifdef __cplusplus
8359 }
8360 #endif
8361
8362 int
8363 main ()
8364 {
8365 return f != $ac_func;
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 eval "$as_ac_var=yes"
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 eval "$as_ac_var=no"
8398 fi
8399 rm -f conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 fi
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8404 if test `eval echo '${'$as_ac_var'}'` = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8407 _ACEOF
8408
8409 fi
8410 done
8411
8412
8413
8414
8415
8416
8417 for ac_func in fork execvp pipe sigaction ftruncate
8418 do
8419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8420 echo "$as_me:$LINENO: checking for $ac_func" >&5
8421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8422 if eval "test \"\${$as_ac_var+set}\" = set"; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 if test x$gcc_no_link = xyes; then
8426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8428 { (exit 1); exit 1; }; }
8429 fi
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8438 #define $ac_func innocuous_$ac_func
8439
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
8444
8445 #ifdef __STDC__
8446 # include <limits.h>
8447 #else
8448 # include <assert.h>
8449 #endif
8450
8451 #undef $ac_func
8452
8453 /* Override any gcc2 internal prototype to avoid an error. */
8454 #ifdef __cplusplus
8455 extern "C"
8456 {
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char $ac_func ();
8461 /* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 choke me
8466 #else
8467 char (*f) () = $ac_func;
8468 #endif
8469 #ifdef __cplusplus
8470 }
8471 #endif
8472
8473 int
8474 main ()
8475 {
8476 return f != $ac_func;
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 eval "$as_ac_var=yes"
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 eval "$as_ac_var=no"
8509 fi
8510 rm -f conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 fi
8513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8515 if test `eval echo '${'$as_ac_var'}'` = yes; then
8516 cat >>confdefs.h <<_ACEOF
8517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8518 _ACEOF
8519
8520 fi
8521 done
8522
8523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8525 if test "${ac_cv_header_stdc+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 #include <stdlib.h>
8535 #include <stdarg.h>
8536 #include <string.h>
8537 #include <float.h>
8538
8539 int
8540 main ()
8541 {
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549 (eval $ac_compile) 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_header_stdc=yes
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 ac_cv_header_stdc=no
8575 fi
8576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577
8578 if test $ac_cv_header_stdc = yes; then
8579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 #include <string.h>
8587
8588 _ACEOF
8589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8590 $EGREP "memchr" >/dev/null 2>&1; then
8591 :
8592 else
8593 ac_cv_header_stdc=no
8594 fi
8595 rm -f conftest*
8596
8597 fi
8598
8599 if test $ac_cv_header_stdc = yes; then
8600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 #include <stdlib.h>
8608
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "free" >/dev/null 2>&1; then
8612 :
8613 else
8614 ac_cv_header_stdc=no
8615 fi
8616 rm -f conftest*
8617
8618 fi
8619
8620 if test $ac_cv_header_stdc = yes; then
8621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8622 if test "$cross_compiling" = yes; then
8623 :
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 #include <ctype.h>
8632 #if ((' ' & 0x0FF) == 0x020)
8633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8635 #else
8636 # define ISLOWER(c) \
8637 (('a' <= (c) && (c) <= 'i') \
8638 || ('j' <= (c) && (c) <= 'r') \
8639 || ('s' <= (c) && (c) <= 'z'))
8640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8641 #endif
8642
8643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8644 int
8645 main ()
8646 {
8647 int i;
8648 for (i = 0; i < 256; i++)
8649 if (XOR (islower (i), ISLOWER (i))
8650 || toupper (i) != TOUPPER (i))
8651 exit(2);
8652 exit (0);
8653 }
8654 _ACEOF
8655 rm -f conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 :
8667 else
8668 echo "$as_me: program exited with status $ac_status" >&5
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ( exit $ac_status )
8673 ac_cv_header_stdc=no
8674 fi
8675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 fi
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8681 if test $ac_cv_header_stdc = yes; then
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define STDC_HEADERS 1
8685 _ACEOF
8686
8687 fi
8688
8689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8700 inttypes.h stdint.h unistd.h
8701 do
8702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 $ac_includes_default
8715
8716 #include <$ac_header>
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 eval "$as_ac_Header=yes"
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 eval "$as_ac_Header=no"
8746 fi
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8755
8756 fi
8757
8758 done
8759
8760
8761
8762
8763
8764 for ac_header in execinfo.h unistd.h dlfcn.h
8765 do
8766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 fi
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8775 else
8776 # Is the header compilable?
8777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 #include <$ac_header>
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler=yes
8811 else
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_header_compiler=no
8816 fi
8817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819 echo "${ECHO_T}$ac_header_compiler" >&6
8820
8821 # Is the header present?
8822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 #include <$ac_header>
8831 _ACEOF
8832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev/null; then
8840 if test -s conftest.err; then
8841 ac_cpp_err=$ac_c_preproc_warn_flag
8842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8843 else
8844 ac_cpp_err=
8845 fi
8846 else
8847 ac_cpp_err=yes
8848 fi
8849 if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_header_preproc=no
8856 fi
8857 rm -f conftest.err conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859 echo "${ECHO_T}$ac_header_preproc" >&6
8860
8861 # So? What about this header?
8862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 yes:no: )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc=yes
8869 ;;
8870 no:yes:* )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8883 (
8884 cat <<\_ASBOX
8885 ## ------------------------------------------ ##
8886 ## Report this to the AC_PACKAGE_NAME lists. ##
8887 ## ------------------------------------------ ##
8888 _ASBOX
8889 ) |
8890 sed "s/^/$as_me: WARNING: /" >&2
8891 ;;
8892 esac
8893 echo "$as_me:$LINENO: checking for $ac_header" >&5
8894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 eval "$as_ac_Header=\$ac_header_preproc"
8899 fi
8900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902
8903 fi
8904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907 _ACEOF
8908
8909 fi
8910
8911 done
8912
8913 echo "$as_me:$LINENO: checking for backtrace" >&5
8914 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
8915 if test "${ac_cv_func_backtrace+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918 if test x$gcc_no_link = xyes; then
8919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8921 { (exit 1); exit 1; }; }
8922 fi
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
8930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8931 #define backtrace innocuous_backtrace
8932
8933 /* System header to define __stub macros and hopefully few prototypes,
8934 which can conflict with char backtrace (); below.
8935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8936 <limits.h> exists even on freestanding compilers. */
8937
8938 #ifdef __STDC__
8939 # include <limits.h>
8940 #else
8941 # include <assert.h>
8942 #endif
8943
8944 #undef backtrace
8945
8946 /* Override any gcc2 internal prototype to avoid an error. */
8947 #ifdef __cplusplus
8948 extern "C"
8949 {
8950 #endif
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8953 char backtrace ();
8954 /* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957 #if defined (__stub_backtrace) || defined (__stub___backtrace)
8958 choke me
8959 #else
8960 char (*f) () = backtrace;
8961 #endif
8962 #ifdef __cplusplus
8963 }
8964 #endif
8965
8966 int
8967 main ()
8968 {
8969 return f != backtrace;
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_func_backtrace=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 ac_cv_func_backtrace=no
9002 fi
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 fi
9006 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9007 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9008 if test $ac_cv_func_backtrace = yes; then
9009
9010 case "$host" in
9011 ia64-*-linux*)
9012 # Has broken backtrace()
9013 ;;
9014 mips*-*-linux*)
9015 # Has broken backtrace(), but we supply our own.
9016 if test -d sysdep; then true; else mkdir -p sysdep; fi
9017 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
9018
9019 cat >>confdefs.h <<\_ACEOF
9020 #define HAVE_BACKTRACE 1
9021 _ACEOF
9022
9023 ;;
9024 *)
9025
9026 cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_BACKTRACE 1
9028 _ACEOF
9029
9030 ;;
9031 esac
9032
9033 else
9034
9035 case "$host" in
9036 *mingw*)
9037 # Has backtrace() defined in libgcj itself
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_BACKTRACE 1
9041 _ACEOF
9042
9043 ;;
9044 esac
9045
9046 fi
9047
9048
9049 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9050 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9051 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 ac_check_lib_save_LIBS=$LIBS
9055 LIBS="-ldl $LIBS"
9056 if test x$gcc_no_link = xyes; then
9057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9059 { (exit 1); exit 1; }; }
9060 fi
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9074 char dladdr ();
9075 int
9076 main ()
9077 {
9078 dladdr ();
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_cv_lib_dl_dladdr=yes
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 ac_cv_lib_dl_dladdr=no
9111 fi
9112 rm -f conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9114 LIBS=$ac_check_lib_save_LIBS
9115 fi
9116 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9117 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9118 if test $ac_cv_lib_dl_dladdr = yes; then
9119
9120 if test "x${disable_dladdr}" = "xyes"; then
9121 #Broken dladdr().
9122 true
9123 else
9124
9125 cat >>confdefs.h <<\_ACEOF
9126 #define HAVE_DLADDR 1
9127 _ACEOF
9128
9129 fi
9130
9131 fi
9132
9133 if test x"$build" = x"$host"; then
9134 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9135 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9136 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139 test "$cross_compiling" = yes &&
9140 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9141 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9142 { (exit 1); exit 1; }; }
9143 if test -r "/proc/self/exe"; then
9144 ac_cv_file__proc_self_exe=yes
9145 else
9146 ac_cv_file__proc_self_exe=no
9147 fi
9148 fi
9149 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9150 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9151 if test $ac_cv_file__proc_self_exe = yes; then
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define HAVE__PROC_SELF_EXE 1
9155 _ACEOF
9156
9157
9158
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_PROC_SELF_EXE 1
9161 _ACEOF
9162
9163 fi
9164
9165 else
9166 case $host in
9167 *-linux*)
9168
9169 cat >>confdefs.h <<\_ACEOF
9170 #define HAVE_PROC_SELF_EXE 1
9171 _ACEOF
9172
9173 ;;
9174 esac
9175 fi
9176
9177
9178
9179 am_cv_lib_iconv_ldpath=
9180
9181 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9182 if test "${with_libiconv_prefix+set}" = set; then
9183 withval="$with_libiconv_prefix"
9184
9185 for dir in `echo "$withval" | tr : ' '`; do
9186 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9187 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9188 done
9189
9190 fi;
9191
9192 echo "$as_me:$LINENO: checking for iconv" >&5
9193 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9194 if test "${am_cv_func_iconv+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197
9198 am_cv_func_iconv="no, consider installing GNU libiconv"
9199 am_cv_lib_iconv=no
9200 if test x$gcc_no_link = xyes; then
9201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9203 { (exit 1); exit 1; }; }
9204 fi
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 #include <stdlib.h>
9212 #include <iconv.h>
9213 int
9214 main ()
9215 {
9216 iconv_t cd = iconv_open("","");
9217 iconv(cd,NULL,NULL,NULL,NULL);
9218 iconv_close(cd);
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 am_cv_func_iconv=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 if test "$am_cv_func_iconv" != yes; then
9254 am_save_LIBS="$LIBS"
9255 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
9256 if test x$gcc_no_link = xyes; then
9257 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9259 { (exit 1); exit 1; }; }
9260 fi
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 #include <stdlib.h>
9268 #include <iconv.h>
9269 int
9270 main ()
9271 {
9272 iconv_t cd = iconv_open("","");
9273 iconv(cd,NULL,NULL,NULL,NULL);
9274 iconv_close(cd);
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 am_cv_lib_iconv=yes
9302 am_cv_func_iconv=yes
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 fi
9308 rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS="$am_save_LIBS"
9311 fi
9312
9313 fi
9314 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9315 echo "${ECHO_T}$am_cv_func_iconv" >&6
9316 if test "$am_cv_func_iconv" = yes; then
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_ICONV 1
9320 _ACEOF
9321
9322 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9323 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9324 if test "${am_cv_proto_iconv+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334
9335 #include <stdlib.h>
9336 #include <iconv.h>
9337 extern
9338 #ifdef __cplusplus
9339 "C"
9340 #endif
9341 #if defined(__STDC__) || defined(__cplusplus)
9342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9343 #else
9344 size_t iconv();
9345 #endif
9346
9347 int
9348 main ()
9349 {
9350
9351 ;
9352 return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 am_cv_proto_iconv_arg1=""
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 am_cv_proto_iconv_arg1="const"
9383 fi
9384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9385 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);"
9386 fi
9387
9388 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9389 echo "$as_me:$LINENO: result: ${ac_t:-
9390 }$am_cv_proto_iconv" >&5
9391 echo "${ECHO_T}${ac_t:-
9392 }$am_cv_proto_iconv" >&6
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define ICONV_CONST $am_cv_proto_iconv_arg1
9396 _ACEOF
9397
9398 fi
9399 LIBICONV=
9400 if test "$am_cv_lib_iconv" = yes; then
9401 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
9402 fi
9403
9404
9405
9406 for ac_header in locale.h
9407 do
9408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410 echo "$as_me:$LINENO: checking for $ac_header" >&5
9411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 fi
9415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9417 else
9418 # Is the header compilable?
9419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 #include <$ac_header>
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest.$ac_objext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_header_compiler=yes
9453 else
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ac_header_compiler=no
9458 fi
9459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9461 echo "${ECHO_T}$ac_header_compiler" >&6
9462
9463 # Is the header present?
9464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 #include <$ac_header>
9473 _ACEOF
9474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev/null; then
9482 if test -s conftest.err; then
9483 ac_cpp_err=$ac_c_preproc_warn_flag
9484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9485 else
9486 ac_cpp_err=
9487 fi
9488 else
9489 ac_cpp_err=yes
9490 fi
9491 if test -z "$ac_cpp_err"; then
9492 ac_header_preproc=yes
9493 else
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497 ac_header_preproc=no
9498 fi
9499 rm -f conftest.err conftest.$ac_ext
9500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9501 echo "${ECHO_T}$ac_header_preproc" >&6
9502
9503 # So? What about this header?
9504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9505 yes:no: )
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9510 ac_header_preproc=yes
9511 ;;
9512 no:yes:* )
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9525 (
9526 cat <<\_ASBOX
9527 ## ------------------------------------------ ##
9528 ## Report this to the AC_PACKAGE_NAME lists. ##
9529 ## ------------------------------------------ ##
9530 _ASBOX
9531 ) |
9532 sed "s/^/$as_me: WARNING: /" >&2
9533 ;;
9534 esac
9535 echo "$as_me:$LINENO: checking for $ac_header" >&5
9536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 eval "$as_ac_Header=\$ac_header_preproc"
9541 fi
9542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9544
9545 fi
9546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9547 cat >>confdefs.h <<_ACEOF
9548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9549 _ACEOF
9550
9551 fi
9552
9553 done
9554
9555 if test $ac_cv_header_locale_h = yes; then
9556 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9557 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9558 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 if test x$gcc_no_link = xyes; then
9562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9564 { (exit 1); exit 1; }; }
9565 fi
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <locale.h>
9573 int
9574 main ()
9575 {
9576 return LC_MESSAGES
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 am_cv_val_LC_MESSAGES=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 am_cv_val_LC_MESSAGES=no
9609 fi
9610 rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9614 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9615 if test $am_cv_val_LC_MESSAGES = yes; then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_LC_MESSAGES 1
9619 _ACEOF
9620
9621 fi
9622 fi
9623 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9624 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9625 if test "${ac_cv_struct_tm+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9635 #include <time.h>
9636
9637 int
9638 main ()
9639 {
9640 struct tm *tp; tp->tm_sec;
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 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_objext'
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_struct_tm=time.h
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ac_cv_struct_tm=sys/time.h
9673 fi
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9677 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9678 if test $ac_cv_struct_tm = sys/time.h; then
9679
9680 cat >>confdefs.h <<\_ACEOF
9681 #define TM_IN_SYS_TIME 1
9682 _ACEOF
9683
9684 fi
9685
9686 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9687 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9688 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <sys/types.h>
9698 #include <$ac_cv_struct_tm>
9699
9700
9701 int
9702 main ()
9703 {
9704 static struct tm ac_aggr;
9705 if (ac_aggr.tm_zone)
9706 return 0;
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_member_struct_tm_tm_zone=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 #include <sys/types.h>
9745 #include <$ac_cv_struct_tm>
9746
9747
9748 int
9749 main ()
9750 {
9751 static struct tm ac_aggr;
9752 if (sizeof ac_aggr.tm_zone)
9753 return 0;
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760 (eval $ac_compile) 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_member_struct_tm_tm_zone=yes
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_cv_member_struct_tm_tm_zone=no
9786 fi
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9790 fi
9791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9792 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9793 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9794
9795 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_STRUCT_TM_TM_ZONE 1
9797 _ACEOF
9798
9799
9800 fi
9801
9802 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9803
9804 cat >>confdefs.h <<\_ACEOF
9805 #define HAVE_TM_ZONE 1
9806 _ACEOF
9807
9808 else
9809 echo "$as_me:$LINENO: checking for tzname" >&5
9810 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9811 if test "${ac_cv_var_tzname+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 if test x$gcc_no_link = xyes; then
9815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9817 { (exit 1); exit 1; }; }
9818 fi
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <time.h>
9826 #ifndef tzname /* For SGI. */
9827 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9828 #endif
9829
9830 int
9831 main ()
9832 {
9833 atoi(*tzname);
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag"
9848 || test ! -s conftest.err'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_var_tzname=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_cv_var_tzname=no
9866 fi
9867 rm -f conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 fi
9870 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9871 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9872 if test $ac_cv_var_tzname = yes; then
9873
9874 cat >>confdefs.h <<\_ACEOF
9875 #define HAVE_TZNAME 1
9876 _ACEOF
9877
9878 fi
9879 fi
9880
9881
9882
9883
9884 for ac_func in gethostbyname_r
9885 do
9886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9887 echo "$as_me:$LINENO: checking for $ac_func" >&5
9888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_var+set}\" = set"; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 if test x$gcc_no_link = xyes; then
9893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9895 { (exit 1); exit 1; }; }
9896 fi
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9905 #define $ac_func innocuous_$ac_func
9906
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char $ac_func (); below.
9909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910 <limits.h> exists even on freestanding compilers. */
9911
9912 #ifdef __STDC__
9913 # include <limits.h>
9914 #else
9915 # include <assert.h>
9916 #endif
9917
9918 #undef $ac_func
9919
9920 /* Override any gcc2 internal prototype to avoid an error. */
9921 #ifdef __cplusplus
9922 extern "C"
9923 {
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char $ac_func ();
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 choke me
9933 #else
9934 char (*f) () = $ac_func;
9935 #endif
9936 #ifdef __cplusplus
9937 }
9938 #endif
9939
9940 int
9941 main ()
9942 {
9943 return f != $ac_func;
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 eval "$as_ac_var=yes"
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 eval "$as_ac_var=no"
9976 fi
9977 rm -f conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9982 if test `eval echo '${'$as_ac_var'}'` = yes; then
9983 cat >>confdefs.h <<_ACEOF
9984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9985 _ACEOF
9986
9987
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_GETHOSTBYNAME_R 1
9990 _ACEOF
9991
9992 # There are two different kinds of gethostbyname_r.
9993 # We look for the one that returns `int'.
9994 # Hopefully this check is robust enough.
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <netdb.h>
10002
10003 _ACEOF
10004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10005 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10006
10007
10008 cat >>confdefs.h <<\_ACEOF
10009 #define GETHOSTBYNAME_R_RETURNS_INT 1
10010 _ACEOF
10011
10012 fi
10013 rm -f conftest*
10014
10015
10016 case " $GCINCS " in
10017 *" -D_REENTRANT "*) ;;
10018 *)
10019 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10020 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10021 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024
10025
10026 ac_ext=cc
10027 ac_cpp='$CXXCPP $CPPFLAGS'
10028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10031
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <netdb.h>
10039 int
10040 main ()
10041 {
10042 gethostbyname_r("", 0, 0);
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_cxx_werror_flag"
10057 || test ! -s conftest.err'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest.$ac_objext'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 libjava_cv_gethostbyname_r_needs_reentrant=no
10070 else
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074 CPPFLAGS_SAVE="$CPPFLAGS"
10075 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <netdb.h>
10083 int
10084 main ()
10085 {
10086 gethostbyname_r("", 0, 0);
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_cxx_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 libjava_cv_gethostbyname_r_needs_reentrant=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 libjava_cv_gethostbyname_r_needs_reentrant=fail
10119 fi
10120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121 CPPFLAGS="$CPPFLAGS_SAVE"
10122
10123 fi
10124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10125 ac_ext=c
10126 ac_cpp='$CPP $CPPFLAGS'
10127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130
10131
10132 fi
10133 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10134 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10135 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10136
10137 cat >>confdefs.h <<\_ACEOF
10138 #define _REENTRANT 1
10139 _ACEOF
10140
10141 fi
10142 ;;
10143 esac
10144
10145 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10146 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10147 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156
10157 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10158 # define _REENTRANT 1
10159 #endif
10160 #include <netdb.h>
10161 int
10162 main ()
10163 {
10164 struct hostent_data data;
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 libjava_cv_struct_hostent_data=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 libjava_cv_struct_hostent_data=no
10197 fi
10198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10201 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10202 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10203
10204 cat >>confdefs.h <<\_ACEOF
10205 #define HAVE_STRUCT_HOSTENT_DATA 1
10206 _ACEOF
10207
10208 fi
10209
10210 fi
10211 done
10212
10213
10214 # FIXME: libjava source code expects to find a prototype for
10215 # gethostbyaddr_r in netdb.h. The outer check ensures that
10216 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10217 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10218 # linkage check is enough, yet C++ code requires proper prototypes.)
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <netdb.h>
10226
10227 _ACEOF
10228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10229 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10230
10231
10232 for ac_func in gethostbyaddr_r
10233 do
10234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10235 echo "$as_me:$LINENO: checking for $ac_func" >&5
10236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10237 if eval "test \"\${$as_ac_var+set}\" = set"; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 if test x$gcc_no_link = xyes; then
10241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10243 { (exit 1); exit 1; }; }
10244 fi
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10253 #define $ac_func innocuous_$ac_func
10254
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char $ac_func (); below.
10257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10258 <limits.h> exists even on freestanding compilers. */
10259
10260 #ifdef __STDC__
10261 # include <limits.h>
10262 #else
10263 # include <assert.h>
10264 #endif
10265
10266 #undef $ac_func
10267
10268 /* Override any gcc2 internal prototype to avoid an error. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 {
10272 #endif
10273 /* We use char because int might match the return type of a gcc2
10274 builtin and then its argument prototype would still apply. */
10275 char $ac_func ();
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10280 choke me
10281 #else
10282 char (*f) () = $ac_func;
10283 #endif
10284 #ifdef __cplusplus
10285 }
10286 #endif
10287
10288 int
10289 main ()
10290 {
10291 return f != $ac_func;
10292 ;
10293 return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 eval "$as_ac_var=no"
10324 fi
10325 rm -f conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 fi
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10330 if test `eval echo '${'$as_ac_var'}'` = yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10333 _ACEOF
10334
10335
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_GETHOSTBYADDR_R 1
10338 _ACEOF
10339
10340 # There are two different kinds of gethostbyaddr_r.
10341 # We look for the one that returns `int'.
10342 # Hopefully this check is robust enough.
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <netdb.h>
10350
10351 _ACEOF
10352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10353 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
10354
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define GETHOSTBYADDR_R_RETURNS_INT 1
10358 _ACEOF
10359
10360 fi
10361 rm -f conftest*
10362
10363 fi
10364 done
10365
10366 fi
10367 rm -f conftest*
10368
10369
10370
10371 for ac_func in gethostname
10372 do
10373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374 echo "$as_me:$LINENO: checking for $ac_func" >&5
10375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_var+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 if test x$gcc_no_link = xyes; then
10380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10382 { (exit 1); exit 1; }; }
10383 fi
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10392 #define $ac_func innocuous_$ac_func
10393
10394 /* System header to define __stub macros and hopefully few prototypes,
10395 which can conflict with char $ac_func (); below.
10396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10397 <limits.h> exists even on freestanding compilers. */
10398
10399 #ifdef __STDC__
10400 # include <limits.h>
10401 #else
10402 # include <assert.h>
10403 #endif
10404
10405 #undef $ac_func
10406
10407 /* Override any gcc2 internal prototype to avoid an error. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 {
10411 #endif
10412 /* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10414 char $ac_func ();
10415 /* The GNU C library defines this for functions which it implements
10416 to always fail with ENOSYS. Some functions are actually named
10417 something starting with __ and the normal name is an alias. */
10418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10419 choke me
10420 #else
10421 char (*f) () = $ac_func;
10422 #endif
10423 #ifdef __cplusplus
10424 }
10425 #endif
10426
10427 int
10428 main ()
10429 {
10430 return f != $ac_func;
10431 ;
10432 return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437 (eval $ac_link) 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag"
10445 || test ! -s conftest.err'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 eval "$as_ac_var=yes"
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 eval "$as_ac_var=no"
10463 fi
10464 rm -f conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 fi
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10469 if test `eval echo '${'$as_ac_var'}'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10472 _ACEOF
10473
10474
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_GETHOSTNAME 1
10477 _ACEOF
10478
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <unistd.h>
10486
10487 _ACEOF
10488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10489 $EGREP "gethostname" >/dev/null 2>&1; then
10490
10491
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_GETHOSTNAME_DECL 1
10494 _ACEOF
10495
10496 fi
10497 rm -f conftest*
10498
10499 fi
10500 done
10501
10502
10503
10504 for ac_func in usleep
10505 do
10506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10507 echo "$as_me:$LINENO: checking for $ac_func" >&5
10508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10509 if eval "test \"\${$as_ac_var+set}\" = set"; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 if test x$gcc_no_link = xyes; then
10513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10515 { (exit 1); exit 1; }; }
10516 fi
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10525 #define $ac_func innocuous_$ac_func
10526
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func (); below.
10529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530 <limits.h> exists even on freestanding compilers. */
10531
10532 #ifdef __STDC__
10533 # include <limits.h>
10534 #else
10535 # include <assert.h>
10536 #endif
10537
10538 #undef $ac_func
10539
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 {
10544 #endif
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547 char $ac_func ();
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10552 choke me
10553 #else
10554 char (*f) () = $ac_func;
10555 #endif
10556 #ifdef __cplusplus
10557 }
10558 #endif
10559
10560 int
10561 main ()
10562 {
10563 return f != $ac_func;
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 eval "$as_ac_var=yes"
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 eval "$as_ac_var=no"
10596 fi
10597 rm -f conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 fi
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10602 if test `eval echo '${'$as_ac_var'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10605 _ACEOF
10606
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <unistd.h>
10614
10615 _ACEOF
10616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10617 $EGREP "usleep" >/dev/null 2>&1; then
10618
10619
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_USLEEP_DECL 1
10622 _ACEOF
10623
10624 fi
10625 rm -f conftest*
10626
10627 fi
10628 done
10629
10630
10631 # Look for these functions in the thread library, but only bother
10632 # if using POSIX threads.
10633 if test "$THREADS" = posix; then
10634 save_LIBS="$LIBS"
10635 LIBS="$LIBS $THREADLIBS"
10636 # Some POSIX thread systems don't have pthread_mutexattr_settype.
10637 # E.g., Solaris.
10638
10639
10640 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
10641 do
10642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 if test x$gcc_no_link = xyes; then
10649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10651 { (exit 1); exit 1; }; }
10652 fi
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10661 #define $ac_func innocuous_$ac_func
10662
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char $ac_func (); below.
10665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10666 <limits.h> exists even on freestanding compilers. */
10667
10668 #ifdef __STDC__
10669 # include <limits.h>
10670 #else
10671 # include <assert.h>
10672 #endif
10673
10674 #undef $ac_func
10675
10676 /* Override any gcc2 internal prototype to avoid an error. */
10677 #ifdef __cplusplus
10678 extern "C"
10679 {
10680 #endif
10681 /* We use char because int might match the return type of a gcc2
10682 builtin and then its argument prototype would still apply. */
10683 char $ac_func ();
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10688 choke me
10689 #else
10690 char (*f) () = $ac_func;
10691 #endif
10692 #ifdef __cplusplus
10693 }
10694 #endif
10695
10696 int
10697 main ()
10698 {
10699 return f != $ac_func;
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 eval "$as_ac_var=yes"
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 eval "$as_ac_var=no"
10732 fi
10733 rm -f conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 fi
10736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10738 if test `eval echo '${'$as_ac_var'}'` = yes; then
10739 cat >>confdefs.h <<_ACEOF
10740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10741 _ACEOF
10742
10743 fi
10744 done
10745
10746
10747 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
10748 # Solaris 7 the name librt is preferred.
10749
10750 for ac_func in sched_yield
10751 do
10752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753 echo "$as_me:$LINENO: checking for $ac_func" >&5
10754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_var+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 if test x$gcc_no_link = xyes; then
10759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10761 { (exit 1); exit 1; }; }
10762 fi
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10772
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10777
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10783
10784 #undef $ac_func
10785
10786 /* Override any gcc2 internal prototype to avoid an error. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 {
10790 #endif
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10793 char $ac_func ();
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798 choke me
10799 #else
10800 char (*f) () = $ac_func;
10801 #endif
10802 #ifdef __cplusplus
10803 }
10804 #endif
10805
10806 int
10807 main ()
10808 {
10809 return f != $ac_func;
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10837 else
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 eval "$as_ac_var=no"
10842 fi
10843 rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 fi
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10848 if test `eval echo '${'$as_ac_var'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10851 _ACEOF
10852
10853 else
10854
10855 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
10856 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
10857 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 ac_check_lib_save_LIBS=$LIBS
10861 LIBS="-lrt $LIBS"
10862 if test x$gcc_no_link = xyes; then
10863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10865 { (exit 1); exit 1; }; }
10866 fi
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873
10874 /* Override any gcc2 internal prototype to avoid an error. */
10875 #ifdef __cplusplus
10876 extern "C"
10877 #endif
10878 /* We use char because int might match the return type of a gcc2
10879 builtin and then its argument prototype would still apply. */
10880 char sched_yield ();
10881 int
10882 main ()
10883 {
10884 sched_yield ();
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_lib_rt_sched_yield=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 ac_cv_lib_rt_sched_yield=no
10917 fi
10918 rm -f conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
10923 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
10924 if test $ac_cv_lib_rt_sched_yield = yes; then
10925
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_SCHED_YIELD 1
10928 _ACEOF
10929
10930 THREADLIBS="$THREADLIBS -lrt"
10931 THREADSPEC="$THREADSPEC -lrt"
10932 else
10933
10934 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
10935 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
10936 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lposix4 $LIBS"
10941 if test x$gcc_no_link = xyes; then
10942 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10943 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10944 { (exit 1); exit 1; }; }
10945 fi
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952
10953 /* Override any gcc2 internal prototype to avoid an error. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char sched_yield ();
10960 int
10961 main ()
10962 {
10963 sched_yield ();
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_lib_posix4_sched_yield=yes
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 ac_cv_lib_posix4_sched_yield=no
10996 fi
10997 rm -f conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LIBS=$ac_check_lib_save_LIBS
11000 fi
11001 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11002 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11003 if test $ac_cv_lib_posix4_sched_yield = yes; then
11004
11005 cat >>confdefs.h <<\_ACEOF
11006 #define HAVE_SCHED_YIELD 1
11007 _ACEOF
11008
11009 THREADLIBS="$THREADLIBS -lposix4"
11010 THREADSPEC="$THREADSPEC -lposix4"
11011 fi
11012
11013 fi
11014
11015 fi
11016 done
11017
11018 LIBS="$save_LIBS"
11019
11020 # We can save a little space at runtime if the mutex has m_count
11021 # or __m_count. This is a nice hack for Linux.
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <pthread.h>
11029 int
11030 main ()
11031 {
11032
11033 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11034
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -z "$ac_c_werror_flag"
11049 || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061
11062 cat >>confdefs.h <<\_ACEOF
11063 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11064 _ACEOF
11065
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <pthread.h>
11078 int
11079 main ()
11080 {
11081
11082 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11083
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11113 _ACEOF
11114
11115 else
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 fi
11120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121 fi
11122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11123 fi
11124
11125 # We require a way to get the time.
11126 time_found=no
11127
11128
11129
11130 for ac_func in gettimeofday time ftime
11131 do
11132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11133 echo "$as_me:$LINENO: checking for $ac_func" >&5
11134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_var+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 if test x$gcc_no_link = xyes; then
11139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11141 { (exit 1); exit 1; }; }
11142 fi
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11152
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11157
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11163
11164 #undef $ac_func
11165
11166 /* Override any gcc2 internal prototype to avoid an error. */
11167 #ifdef __cplusplus
11168 extern "C"
11169 {
11170 #endif
11171 /* We use char because int might match the return type of a gcc2
11172 builtin and then its argument prototype would still apply. */
11173 char $ac_func ();
11174 /* The GNU C library defines this for functions which it implements
11175 to always fail with ENOSYS. Some functions are actually named
11176 something starting with __ and the normal name is an alias. */
11177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11178 choke me
11179 #else
11180 char (*f) () = $ac_func;
11181 #endif
11182 #ifdef __cplusplus
11183 }
11184 #endif
11185
11186 int
11187 main ()
11188 {
11189 return f != $ac_func;
11190 ;
11191 return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag"
11204 || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 eval "$as_ac_var=yes"
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 eval "$as_ac_var=no"
11222 fi
11223 rm -f conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 fi
11226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11228 if test `eval echo '${'$as_ac_var'}'` = yes; then
11229 cat >>confdefs.h <<_ACEOF
11230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 _ACEOF
11232 time_found=yes
11233 fi
11234 done
11235
11236 if test "$time_found" = no; then
11237 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11238 echo "$as_me: error: no function found to get the time" >&2;}
11239 { (exit 1); exit 1; }; }
11240 fi
11241
11242
11243 for ac_func in memmove
11244 do
11245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11248 if eval "test \"\${$as_ac_var+set}\" = set"; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 if test x$gcc_no_link = xyes; then
11252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11254 { (exit 1); exit 1; }; }
11255 fi
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11265
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11270
11271 #ifdef __STDC__
11272 # include <limits.h>
11273 #else
11274 # include <assert.h>
11275 #endif
11276
11277 #undef $ac_func
11278
11279 /* Override any gcc2 internal prototype to avoid an error. */
11280 #ifdef __cplusplus
11281 extern "C"
11282 {
11283 #endif
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286 char $ac_func ();
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291 choke me
11292 #else
11293 char (*f) () = $ac_func;
11294 #endif
11295 #ifdef __cplusplus
11296 }
11297 #endif
11298
11299 int
11300 main ()
11301 {
11302 return f != $ac_func;
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 eval "$as_ac_var=yes"
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 eval "$as_ac_var=no"
11335 fi
11336 rm -f conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 fi
11347 done
11348
11349
11350 # We require memcpy.
11351 memcpy_found=no
11352
11353 for ac_func in memcpy
11354 do
11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 if test x$gcc_no_link = xyes; then
11362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11364 { (exit 1); exit 1; }; }
11365 fi
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11374 #define $ac_func innocuous_$ac_func
11375
11376 /* System header to define __stub macros and hopefully few prototypes,
11377 which can conflict with char $ac_func (); below.
11378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11379 <limits.h> exists even on freestanding compilers. */
11380
11381 #ifdef __STDC__
11382 # include <limits.h>
11383 #else
11384 # include <assert.h>
11385 #endif
11386
11387 #undef $ac_func
11388
11389 /* Override any gcc2 internal prototype to avoid an error. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 {
11393 #endif
11394 /* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11396 char $ac_func ();
11397 /* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
11400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11401 choke me
11402 #else
11403 char (*f) () = $ac_func;
11404 #endif
11405 #ifdef __cplusplus
11406 }
11407 #endif
11408
11409 int
11410 main ()
11411 {
11412 return f != $ac_func;
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419 (eval $ac_link) 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag"
11427 || test ! -s conftest.err'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 eval "$as_ac_var=no"
11445 fi
11446 rm -f conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11454 _ACEOF
11455 memcpy_found=yes
11456 fi
11457 done
11458
11459 if test "$memcpy_found" = no; then
11460 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
11461 echo "$as_me: error: memcpy is required" >&2;}
11462 { (exit 1); exit 1; }; }
11463 fi
11464
11465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldl $LIBS"
11472 if test x$gcc_no_link = xyes; then
11473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11475 { (exit 1); exit 1; }; }
11476 fi
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483
11484 /* Override any gcc2 internal prototype to avoid an error. */
11485 #ifdef __cplusplus
11486 extern "C"
11487 #endif
11488 /* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11490 char dlopen ();
11491 int
11492 main ()
11493 {
11494 dlopen ();
11495 ;
11496 return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest$ac_exeext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_cv_lib_dl_dlopen=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_cv_lib_dl_dlopen=no
11527 fi
11528 rm -f conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530 LIBS=$ac_check_lib_save_LIBS
11531 fi
11532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11534 if test $ac_cv_lib_dl_dlopen = yes; then
11535
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_DLOPEN 1
11539 _ACEOF
11540
11541 fi
11542
11543
11544 # Some library-finding code we stole from Tcl.
11545 #--------------------------------------------------------------------
11546 # Check for the existence of the -lsocket and -lnsl libraries.
11547 # The order here is important, so that they end up in the right
11548 # order in the command line generated by make. Here are some
11549 # special considerations:
11550 # 1. Use "connect" and "accept" to check for -lsocket, and
11551 # "gethostbyname" to check for -lnsl.
11552 # 2. Use each function name only once: can't redo a check because
11553 # autoconf caches the results of the last check and won't redo it.
11554 # 3. Use -lnsl and -lsocket only if they supply procedures that
11555 # aren't already present in the normal libraries. This is because
11556 # IRIX 5.2 has libraries, but they aren't needed and they're
11557 # bogus: they goof up name resolution if used.
11558 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
11559 # To get around this problem, check for both libraries together
11560 # if -lsocket doesn't work by itself.
11561 #--------------------------------------------------------------------
11562
11563 echo "$as_me:$LINENO: checking for socket libraries" >&5
11564 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
11565 if test "${gcj_cv_lib_sockets+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 gcj_cv_lib_sockets=
11569 gcj_checkBoth=0
11570 unset ac_cv_func_connect
11571 echo "$as_me:$LINENO: checking for connect" >&5
11572 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11573 if test "${ac_cv_func_connect+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 if test x$gcc_no_link = xyes; then
11577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11579 { (exit 1); exit 1; }; }
11580 fi
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11589 #define connect innocuous_connect
11590
11591 /* System header to define __stub macros and hopefully few prototypes,
11592 which can conflict with char connect (); below.
11593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594 <limits.h> exists even on freestanding compilers. */
11595
11596 #ifdef __STDC__
11597 # include <limits.h>
11598 #else
11599 # include <assert.h>
11600 #endif
11601
11602 #undef connect
11603
11604 /* Override any gcc2 internal prototype to avoid an error. */
11605 #ifdef __cplusplus
11606 extern "C"
11607 {
11608 #endif
11609 /* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11611 char connect ();
11612 /* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615 #if defined (__stub_connect) || defined (__stub___connect)
11616 choke me
11617 #else
11618 char (*f) () = connect;
11619 #endif
11620 #ifdef __cplusplus
11621 }
11622 #endif
11623
11624 int
11625 main ()
11626 {
11627 return f != connect;
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag"
11642 || test ! -s conftest.err'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_cv_func_connect=yes
11655 else
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 ac_cv_func_connect=no
11660 fi
11661 rm -f conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 fi
11664 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11665 echo "${ECHO_T}$ac_cv_func_connect" >&6
11666 if test $ac_cv_func_connect = yes; then
11667 gcj_checkSocket=0
11668 else
11669 gcj_checkSocket=1
11670 fi
11671
11672 if test "$gcj_checkSocket" = 1; then
11673 unset ac_cv_func_connect
11674 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11675 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11676 if test "${ac_cv_lib_socket_main+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lsocket $LIBS"
11681 if test x$gcc_no_link = xyes; then
11682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11684 { (exit 1); exit 1; }; }
11685 fi
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692
11693
11694 int
11695 main ()
11696 {
11697 main ();
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag"
11712 || test ! -s conftest.err'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_cv_lib_socket_main=yes
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 ac_cv_lib_socket_main=no
11730 fi
11731 rm -f conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11734 fi
11735 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11736 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11737 if test $ac_cv_lib_socket_main = yes; then
11738 gcj_cv_lib_sockets="-lsocket"
11739 else
11740 gcj_checkBoth=1
11741 fi
11742
11743 fi
11744 if test "$gcj_checkBoth" = 1; then
11745 gcj_oldLibs=$LIBS
11746 LIBS="$LIBS -lsocket -lnsl"
11747 unset ac_cv_func_accept
11748 echo "$as_me:$LINENO: checking for accept" >&5
11749 echo $ECHO_N "checking for accept... $ECHO_C" >&6
11750 if test "${ac_cv_func_accept+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 if test x$gcc_no_link = xyes; then
11754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11756 { (exit 1); exit 1; }; }
11757 fi
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
11765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11766 #define accept innocuous_accept
11767
11768 /* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char accept (); below.
11770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 <limits.h> exists even on freestanding compilers. */
11772
11773 #ifdef __STDC__
11774 # include <limits.h>
11775 #else
11776 # include <assert.h>
11777 #endif
11778
11779 #undef accept
11780
11781 /* Override any gcc2 internal prototype to avoid an error. */
11782 #ifdef __cplusplus
11783 extern "C"
11784 {
11785 #endif
11786 /* We use char because int might match the return type of a gcc2
11787 builtin and then its argument prototype would still apply. */
11788 char accept ();
11789 /* The GNU C library defines this for functions which it implements
11790 to always fail with ENOSYS. Some functions are actually named
11791 something starting with __ and the normal name is an alias. */
11792 #if defined (__stub_accept) || defined (__stub___accept)
11793 choke me
11794 #else
11795 char (*f) () = accept;
11796 #endif
11797 #ifdef __cplusplus
11798 }
11799 #endif
11800
11801 int
11802 main ()
11803 {
11804 return f != accept;
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_func_accept=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_cv_func_accept=no
11837 fi
11838 rm -f conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
11842 echo "${ECHO_T}$ac_cv_func_accept" >&6
11843 if test $ac_cv_func_accept = yes; then
11844 gcj_checkNsl=0
11845 gcj_cv_lib_sockets="-lsocket -lnsl"
11846 fi
11847
11848 unset ac_cv_func_accept
11849 LIBS=$gcj_oldLibs
11850 fi
11851 unset ac_cv_func_gethostbyname
11852 gcj_oldLibs=$LIBS
11853 LIBS="$LIBS $gcj_cv_lib_sockets"
11854 echo "$as_me:$LINENO: checking for gethostbyname" >&5
11855 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11856 if test "${ac_cv_func_gethostbyname+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 if test x$gcc_no_link = xyes; then
11860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11862 { (exit 1); exit 1; }; }
11863 fi
11864 cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11872 #define gethostbyname innocuous_gethostbyname
11873
11874 /* System header to define __stub macros and hopefully few prototypes,
11875 which can conflict with char gethostbyname (); below.
11876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877 <limits.h> exists even on freestanding compilers. */
11878
11879 #ifdef __STDC__
11880 # include <limits.h>
11881 #else
11882 # include <assert.h>
11883 #endif
11884
11885 #undef gethostbyname
11886
11887 /* Override any gcc2 internal prototype to avoid an error. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 {
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11894 char gethostbyname ();
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11899 choke me
11900 #else
11901 char (*f) () = gethostbyname;
11902 #endif
11903 #ifdef __cplusplus
11904 }
11905 #endif
11906
11907 int
11908 main ()
11909 {
11910 return f != gethostbyname;
11911 ;
11912 return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_func_gethostbyname=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 ac_cv_func_gethostbyname=no
11943 fi
11944 rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11948 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11949 if test $ac_cv_func_gethostbyname = yes; then
11950 :
11951 else
11952 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11953 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11954 if test "${ac_cv_lib_nsl_main+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957 ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-lnsl $LIBS"
11959 if test x$gcc_no_link = xyes; then
11960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11962 { (exit 1); exit 1; }; }
11963 fi
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970
11971
11972 int
11973 main ()
11974 {
11975 main ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_nsl_main=yes
12003 else
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ac_cv_lib_nsl_main=no
12008 fi
12009 rm -f conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12014 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12015 if test $ac_cv_lib_nsl_main = yes; then
12016 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12017 fi
12018
12019 fi
12020
12021 unset ac_cv_func_gethostbyname
12022 LIBS=$gcj_oldLIBS
12023
12024 fi
12025 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12026 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12027 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12028
12029 if test "$with_system_zlib" = yes; then
12030 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12031 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12032 if test "${ac_cv_lib_z_deflate+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-lz $LIBS"
12037 if test x$gcc_no_link = xyes; then
12038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12040 { (exit 1); exit 1; }; }
12041 fi
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 /* We use char because int might match the return type of a gcc2
12054 builtin and then its argument prototype would still apply. */
12055 char deflate ();
12056 int
12057 main ()
12058 {
12059 deflate ();
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 rm -f conftest.$ac_objext conftest$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_cv_lib_z_deflate=yes
12087 else
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_cv_lib_z_deflate=no
12092 fi
12093 rm -f conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12096 fi
12097 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12098 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12099 if test $ac_cv_lib_z_deflate = yes; then
12100 ZLIBSPEC=-lz
12101 else
12102 ZLIBSPEC=
12103 fi
12104
12105 fi
12106
12107 # Test for Gtk stuff, if asked for.
12108 if test "$use_gtk_awt" = yes; then
12109
12110 succeeded=no
12111
12112 if test -z "$PKG_CONFIG"; then
12113 # Extract the first word of "pkg-config", so it can be a program name with args.
12114 set dummy pkg-config; ac_word=$2
12115 echo "$as_me:$LINENO: checking for $ac_word" >&5
12116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 case $PKG_CONFIG in
12121 [\\/]* | ?:[\\/]*)
12122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12123 ;;
12124 *)
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12127 do
12128 IFS=$as_save_IFS
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 break 2
12135 fi
12136 done
12137 done
12138
12139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12140 ;;
12141 esac
12142 fi
12143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12144
12145 if test -n "$PKG_CONFIG"; then
12146 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12147 echo "${ECHO_T}$PKG_CONFIG" >&6
12148 else
12149 echo "$as_me:$LINENO: result: no" >&5
12150 echo "${ECHO_T}no" >&6
12151 fi
12152
12153 fi
12154
12155 if test "$PKG_CONFIG" = "no" ; then
12156 echo "*** The pkg-config script could not be found. Make sure it is"
12157 echo "*** in your path, or set the PKG_CONFIG environment variable"
12158 echo "*** to the full path to pkg-config."
12159 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12160 else
12161 PKG_CONFIG_MIN_VERSION=0.9.0
12162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12163 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12164 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12165
12166 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12169 succeeded=yes
12170
12171 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12172 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12173 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12174 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12175 echo "${ECHO_T}$GTK_CFLAGS" >&6
12176
12177 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12178 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12179 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12180 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12181 echo "${ECHO_T}$GTK_LIBS" >&6
12182 else
12183 GTK_CFLAGS=""
12184 GTK_LIBS=""
12185 ## If we have a custom action on failure, don't print errors, but
12186 ## do set a variable so people can do so.
12187 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12188 echo $GTK_PKG_ERRORS
12189 fi
12190
12191
12192
12193 else
12194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12196 fi
12197 fi
12198
12199 if test $succeeded = yes; then
12200 :
12201 else
12202 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
12203 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
12204 { (exit 1); exit 1; }; }
12205 fi
12206
12207
12208
12209
12210
12211 succeeded=no
12212
12213 if test -z "$PKG_CONFIG"; then
12214 # Extract the first word of "pkg-config", so it can be a program name with args.
12215 set dummy pkg-config; ac_word=$2
12216 echo "$as_me:$LINENO: checking for $ac_word" >&5
12217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 case $PKG_CONFIG in
12222 [\\/]* | ?:[\\/]*)
12223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12224 ;;
12225 *)
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12228 do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12236 fi
12237 done
12238 done
12239
12240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12241 ;;
12242 esac
12243 fi
12244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12245
12246 if test -n "$PKG_CONFIG"; then
12247 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12248 echo "${ECHO_T}$PKG_CONFIG" >&6
12249 else
12250 echo "$as_me:$LINENO: result: no" >&5
12251 echo "${ECHO_T}no" >&6
12252 fi
12253
12254 fi
12255
12256 if test "$PKG_CONFIG" = "no" ; then
12257 echo "*** The pkg-config script could not be found. Make sure it is"
12258 echo "*** in your path, or set the PKG_CONFIG environment variable"
12259 echo "*** to the full path to pkg-config."
12260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12261 else
12262 PKG_CONFIG_MIN_VERSION=0.9.0
12263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12264 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12265 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12266
12267 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12268 echo "$as_me:$LINENO: result: yes" >&5
12269 echo "${ECHO_T}yes" >&6
12270 succeeded=yes
12271
12272 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12273 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12274 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12275 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12276 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12277
12278 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12279 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12280 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12281 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12282 echo "${ECHO_T}$GLIB_LIBS" >&6
12283 else
12284 GLIB_CFLAGS=""
12285 GLIB_LIBS=""
12286 ## If we have a custom action on failure, don't print errors, but
12287 ## do set a variable so people can do so.
12288 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12289 echo $GLIB_PKG_ERRORS
12290 fi
12291
12292
12293
12294 else
12295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12297 fi
12298 fi
12299
12300 if test $succeeded = yes; then
12301 :
12302 else
12303 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
12304 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
12305 { (exit 1); exit 1; }; }
12306 fi
12307
12308
12309
12310
12311
12312 succeeded=no
12313
12314 if test -z "$PKG_CONFIG"; then
12315 # Extract the first word of "pkg-config", so it can be a program name with args.
12316 set dummy pkg-config; ac_word=$2
12317 echo "$as_me:$LINENO: checking for $ac_word" >&5
12318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322 case $PKG_CONFIG in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12325 ;;
12326 *)
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12337 fi
12338 done
12339 done
12340
12341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12342 ;;
12343 esac
12344 fi
12345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12346
12347 if test -n "$PKG_CONFIG"; then
12348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12349 echo "${ECHO_T}$PKG_CONFIG" >&6
12350 else
12351 echo "$as_me:$LINENO: result: no" >&5
12352 echo "${ECHO_T}no" >&6
12353 fi
12354
12355 fi
12356
12357 if test "$PKG_CONFIG" = "no" ; then
12358 echo "*** The pkg-config script could not be found. Make sure it is"
12359 echo "*** in your path, or set the PKG_CONFIG environment variable"
12360 echo "*** to the full path to pkg-config."
12361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12362 else
12363 PKG_CONFIG_MIN_VERSION=0.9.0
12364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12365 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
12366 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
12367
12368 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
12369 echo "$as_me:$LINENO: result: yes" >&5
12370 echo "${ECHO_T}yes" >&6
12371 succeeded=yes
12372
12373 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
12374 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
12375 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
12376 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
12377 echo "${ECHO_T}$LIBART_CFLAGS" >&6
12378
12379 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
12380 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
12381 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
12382 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
12383 echo "${ECHO_T}$LIBART_LIBS" >&6
12384 else
12385 LIBART_CFLAGS=""
12386 LIBART_LIBS=""
12387 ## If we have a custom action on failure, don't print errors, but
12388 ## do set a variable so people can do so.
12389 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
12390 echo $LIBART_PKG_ERRORS
12391 fi
12392
12393
12394
12395 else
12396 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12397 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12398 fi
12399 fi
12400
12401 if test $succeeded = yes; then
12402 :
12403 else
12404 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
12405 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
12406 { (exit 1); exit 1; }; }
12407 fi
12408
12409
12410
12411 fi
12412
12413 # On Solaris, and maybe other architectures, the Boehm collector
12414 # requires -ldl.
12415 if test "$GC" = boehm; then
12416 echo "$as_me:$LINENO: checking for main in -ldl" >&5
12417 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
12418 if test "${ac_cv_lib_dl_main+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 ac_check_lib_save_LIBS=$LIBS
12422 LIBS="-ldl $LIBS"
12423 if test x$gcc_no_link = xyes; then
12424 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12425 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12426 { (exit 1); exit 1; }; }
12427 fi
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434
12435
12436 int
12437 main ()
12438 {
12439 main ();
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_lib_dl_main=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471 ac_cv_lib_dl_main=no
12472 fi
12473 rm -f conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
12478 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
12479 if test $ac_cv_lib_dl_main = yes; then
12480 SYSTEMSPEC="$SYSTEMSPEC -ldl"
12481 fi
12482
12483 fi
12484 fi
12485
12486 if test -z "${with_multisubdir}"; then
12487 builddotdot=.
12488 else
12489 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
12490 fi
12491
12492 NATIVE=yes
12493
12494 # Which gcj do we use?
12495 which_gcj=default
12496 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
12497 if test -n "${with_cross_host}"; then
12498 # We are being configured with a cross compiler. We can't
12499 # use ac_exeext, because that is for the target platform.
12500 NATIVE=no
12501 cross_host_exeext=
12502 case "${with_cross_host}" in
12503 *mingw* | *cygwin*)
12504 cross_host_exeext=.exe
12505 ;;
12506 esac
12507 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
12508 if test x"$build_noncanonical" = x"$with_cross_host"; then
12509 # Ordinary cross (host!=target and host=build)
12510 which_gcj=built
12511 else
12512 # Canadian cross (host!=target and host!=build)
12513 which_gcj=cross
12514 fi
12515 else
12516 which_gcj=cross
12517 fi
12518 else
12519 # We are being configured with a native or crossed-native compiler
12520 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
12521 if test x"$build" = x"$host"; then
12522 # True native build (host=target and host=build)
12523 which_gcj=built
12524 else
12525 # Crossed-native build (host=target and host!=build)
12526 which_gcj=cross
12527 fi
12528 else
12529 which_gcj=path
12530 fi
12531 fi
12532 case "${which_gcj}" in
12533 built)
12534 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
12535 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
12536 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12537 ;;
12538 cross)
12539 if test "x${with_newlib}" = "xyes"; then
12540 # FIXME (comment): Why is this needed?
12541 GCC_UNWIND_INCLUDE=
12542 GCJ="${target_noncanonical}-gcj"
12543 else
12544 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
12545 fi
12546 ZIP=jar
12547 GCJH='$(target_noncanonical)-gcjh'
12548 ;;
12549 path)
12550 GCJ="gcj -B`${PWDCMD-pwd}`/"
12551 ## In this case, gcj is found outside the build tree. However, zip is
12552 ## found in the build tree.
12553 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12554 GCJH=gcjh
12555 ;;
12556 esac
12557
12558
12559
12560
12561 # Create it, so that compile/link tests don't fail
12562 test -f libgcj.spec || touch libgcj.spec
12563
12564 # We must search the source tree for java.lang, since we still don't
12565 # have libgcj.jar nor java/lang/*.class
12566 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
12567 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
12568
12569 # Since some classes depend on this one, we need its source available
12570 # before we can do any GCJ compilation test :-(
12571 if test ! -f gnu/classpath/Configuration.java; then
12572 test -d gnu || mkdir gnu
12573 test -d gnu/classpath || mkdir gnu/classpath
12574 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
12575 -e 's,@TOOLKIT@,$TOOLKIT,' \
12576 < $srcdir/gnu/classpath/Configuration.java.in \
12577 > gnu/classpath/Configuration.java
12578 # We do not want to redirect the output of the grep below to /dev/null,
12579 # but we add /dev/null to the input list so that grep will print the
12580 # filename of Configuration.java in case it finds any matches.
12581 if grep @ gnu/classpath/Configuration.java /dev/null; then
12582 { { echo "$as_me:$LINENO: error: configure.in is missing the substitutions above" >&5
12583 echo "$as_me: error: configure.in is missing the substitutions above" >&2;}
12584 { (exit 1); exit 1; }; }
12585 fi
12586 fi
12587
12588 if test -n "$ac_tool_prefix"; then
12589 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
12590 set dummy ${ac_tool_prefix}gcj; ac_word=$2
12591 echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12593 if test "${ac_cv_prog_GCJ+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 if test -n "$GCJ"; then
12597 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
12598 else
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12601 do
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
12605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12606 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
12607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 break 2
12609 fi
12610 done
12611 done
12612
12613 fi
12614 fi
12615 GCJ=$ac_cv_prog_GCJ
12616 if test -n "$GCJ"; then
12617 echo "$as_me:$LINENO: result: $GCJ" >&5
12618 echo "${ECHO_T}$GCJ" >&6
12619 else
12620 echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12622 fi
12623
12624 fi
12625 if test -z "$ac_cv_prog_GCJ"; then
12626 ac_ct_GCJ=$GCJ
12627 # Extract the first word of "gcj", so it can be a program name with args.
12628 set dummy gcj; ac_word=$2
12629 echo "$as_me:$LINENO: checking for $ac_word" >&5
12630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12631 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634 if test -n "$ac_ct_GCJ"; then
12635 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
12636 else
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12639 do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644 ac_cv_prog_ac_ct_GCJ="gcj"
12645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12647 fi
12648 done
12649 done
12650
12651 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
12652 fi
12653 fi
12654 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
12655 if test -n "$ac_ct_GCJ"; then
12656 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
12657 echo "${ECHO_T}$ac_ct_GCJ" >&6
12658 else
12659 echo "$as_me:$LINENO: result: no" >&5
12660 echo "${ECHO_T}no" >&6
12661 fi
12662
12663 GCJ=$ac_ct_GCJ
12664 else
12665 GCJ="$ac_cv_prog_GCJ"
12666 fi
12667
12668 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12669
12670
12671
12672 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
12673 lt_save_CC="$CC"
12674 lt_save_CFLAGS="$CFLAGS"
12675 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
12676 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
12677 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
12678 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
12679 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
12680 deplibs_check_method="$deplibs_check_method" \
12681 file_magic_cmd="$file_magic_cmd" \
12682 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
12683 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
12684 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
12685 echo "$as_me: error: libtool tag configuration failed" >&2;}
12686 { (exit 1); exit 1; }; }
12687 CC="$lt_save_CC"
12688 CFLAGS="$lt_save_CFLAGS"
12689
12690 # Redirect the config.log output again, so that the ltconfig log is not
12691 # clobbered by the next message.
12692 exec 5>>./config.log
12693
12694
12695
12696
12697 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
12698
12699 echo "$as_me:$LINENO: checking size of void *" >&5
12700 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12701 if test "${ac_cv_sizeof_void_p+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12713
12714
12715 int
12716 main ()
12717 {
12718 switch (0) case 0: case (sizeof (void *) == $ac_size):;
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_sizeof_void_p=$ac_size
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 fi
12751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12752 if test x$ac_cv_sizeof_void_p != x ; then break; fi
12753 done
12754
12755 fi
12756
12757 if test x$ac_cv_sizeof_void_p = x ; then
12758 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
12759 echo "$as_me: error: cannot determine a size for void *" >&2;}
12760 { (exit 1); exit 1; }; }
12761 fi
12762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12763 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12764
12765 cat >>confdefs.h <<_ACEOF
12766 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12767 _ACEOF
12768
12769
12770
12771 ZLIBS=
12772 SYS_ZLIBS=
12773 ZINCS=
12774
12775 if test -z "$ZLIBSPEC"; then
12776 # Use zlib from the GCC tree.
12777 ZINCS='-I$(top_srcdir)/../zlib'
12778 ZLIBS=../zlib/libzgcj_convenience.la
12779 else
12780 # System's zlib.
12781 SYS_ZLIBS="$ZLIBSPEC"
12782 fi
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793 if test "$NATIVE" = yes; then
12794 NATIVE_TRUE=
12795 NATIVE_FALSE='#'
12796 else
12797 NATIVE_TRUE='#'
12798 NATIVE_FALSE=
12799 fi
12800
12801
12802 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
12803 NEEDS_DATA_START_TRUE=
12804 NEEDS_DATA_START_FALSE='#'
12805 else
12806 NEEDS_DATA_START_TRUE='#'
12807 NEEDS_DATA_START_FALSE=
12808 fi
12809
12810
12811 # Process the option "--enable-version-specific-runtime-libs"
12812 # Calculate toolexeclibdir
12813 case ${version_specific_libs} in
12814 yes)
12815 # Need the gcc compiler version to know where to install libraries
12816 # and header files if --enable-version-specific-runtime-libs option
12817 # is selected.
12818 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
12819 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
12820 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
12821 toolexeclibdir=$toolexecmainlibdir
12822 ;;
12823 no)
12824 if test -n "$with_cross_host" &&
12825 test x"$with_cross_host" != x"no"; then
12826 # Install a library built with a cross compiler in tooldir, not libdir.
12827 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
12828 toolexecmainlibdir='$(toolexecdir)/lib'
12829 else
12830 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
12831 toolexecmainlibdir='$(libdir)'
12832 fi
12833 multi_os_directory=`$CC -print-multi-os-directory`
12834 case $multi_os_directory in
12835 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
12836 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
12837 esac
12838 ;;
12839 esac
12840
12841
12842
12843
12844 # Determine gcj version number.
12845 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
12846 GCJVERSION=$gcjversion
12847
12848
12849 cat >>confdefs.h <<_ACEOF
12850 #define GCJVERSION "$GCJVERSION"
12851 _ACEOF
12852
12853
12854 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
12855 # On that system, sys/ioctl.h will not include sys/filio.h unless
12856 # BSD_COMP is defined; just including sys/filio.h is simpler.
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
12877 do
12878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo "$as_me:$LINENO: checking for $ac_header" >&5
12881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 fi
12885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12887 else
12888 # Is the header compilable?
12889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 $ac_includes_default
12898 #include <$ac_header>
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_header_compiler=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 ac_header_compiler=no
12928 fi
12929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931 echo "${ECHO_T}$ac_header_compiler" >&6
12932
12933 # Is the header present?
12934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <$ac_header>
12943 _ACEOF
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
12954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12955 else
12956 ac_cpp_err=
12957 fi
12958 else
12959 ac_cpp_err=yes
12960 fi
12961 if test -z "$ac_cpp_err"; then
12962 ac_header_preproc=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_header_preproc=no
12968 fi
12969 rm -f conftest.err conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6
12972
12973 # So? What about this header?
12974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975 yes:no: )
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980 ac_header_preproc=yes
12981 ;;
12982 no:yes:* )
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12995 (
12996 cat <<\_ASBOX
12997 ## ------------------------------------------ ##
12998 ## Report this to the AC_PACKAGE_NAME lists. ##
12999 ## ------------------------------------------ ##
13000 _ASBOX
13001 ) |
13002 sed "s/^/$as_me: WARNING: /" >&2
13003 ;;
13004 esac
13005 echo "$as_me:$LINENO: checking for $ac_header" >&5
13006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 eval "$as_ac_Header=\$ac_header_preproc"
13011 fi
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014
13015 fi
13016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019 _ACEOF
13020
13021 fi
13022
13023 done
13024
13025 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13026 # for now. If you change this, you also must update natFile.cc.
13027
13028 for ac_header in dirent.h
13029 do
13030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo "$as_me:$LINENO: checking for $ac_header" >&5
13033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 fi
13037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13039 else
13040 # Is the header compilable?
13041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 $ac_includes_default
13050 #include <$ac_header>
13051 _ACEOF
13052 rm -f conftest.$ac_objext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13054 (eval $ac_compile) 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest.$ac_objext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_header_compiler=yes
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_header_compiler=no
13080 fi
13081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13083 echo "${ECHO_T}$ac_header_compiler" >&6
13084
13085 # Is the header present?
13086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <$ac_header>
13095 _ACEOF
13096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev/null; then
13104 if test -s conftest.err; then
13105 ac_cpp_err=$ac_c_preproc_warn_flag
13106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13107 else
13108 ac_cpp_err=
13109 fi
13110 else
13111 ac_cpp_err=yes
13112 fi
13113 if test -z "$ac_cpp_err"; then
13114 ac_header_preproc=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ac_header_preproc=no
13120 fi
13121 rm -f conftest.err conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13123 echo "${ECHO_T}$ac_header_preproc" >&6
13124
13125 # So? What about this header?
13126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13127 yes:no: )
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13132 ac_header_preproc=yes
13133 ;;
13134 no:yes:* )
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13147 (
13148 cat <<\_ASBOX
13149 ## ------------------------------------------ ##
13150 ## Report this to the AC_PACKAGE_NAME lists. ##
13151 ## ------------------------------------------ ##
13152 _ASBOX
13153 ) |
13154 sed "s/^/$as_me: WARNING: /" >&2
13155 ;;
13156 esac
13157 echo "$as_me:$LINENO: checking for $ac_header" >&5
13158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 eval "$as_ac_Header=\$ac_header_preproc"
13163 fi
13164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13166
13167 fi
13168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13171 _ACEOF
13172
13173 fi
13174
13175 done
13176
13177
13178 for ac_header in inttypes.h
13179 do
13180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 fi
13187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13189 else
13190 # Is the header compilable?
13191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 $ac_includes_default
13200 #include <$ac_header>
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204 (eval $ac_compile) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_header_compiler=no
13230 fi
13231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233 echo "${ECHO_T}$ac_header_compiler" >&6
13234
13235 # Is the header present?
13236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <$ac_header>
13245 _ACEOF
13246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } >/dev/null; then
13254 if test -s conftest.err; then
13255 ac_cpp_err=$ac_c_preproc_warn_flag
13256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13257 else
13258 ac_cpp_err=
13259 fi
13260 else
13261 ac_cpp_err=yes
13262 fi
13263 if test -z "$ac_cpp_err"; then
13264 ac_header_preproc=yes
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_header_preproc=no
13270 fi
13271 rm -f conftest.err conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273 echo "${ECHO_T}$ac_header_preproc" >&6
13274
13275 # So? What about this header?
13276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13277 yes:no: )
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13282 ac_header_preproc=yes
13283 ;;
13284 no:yes:* )
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13297 (
13298 cat <<\_ASBOX
13299 ## ------------------------------------------ ##
13300 ## Report this to the AC_PACKAGE_NAME lists. ##
13301 ## ------------------------------------------ ##
13302 _ASBOX
13303 ) |
13304 sed "s/^/$as_me: WARNING: /" >&2
13305 ;;
13306 esac
13307 echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 eval "$as_ac_Header=\$ac_header_preproc"
13313 fi
13314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316
13317 fi
13318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13321 _ACEOF
13322
13323
13324 cat >>confdefs.h <<\_ACEOF
13325 #define HAVE_INTTYPES_H 1
13326 _ACEOF
13327
13328
13329 cat >>confdefs.h <<\_ACEOF
13330 #define JV_HAVE_INTTYPES_H 1
13331 _ACEOF
13332
13333
13334 fi
13335
13336 done
13337
13338 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 #include <sys/wait.h>
13351 #ifndef WEXITSTATUS
13352 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13353 #endif
13354 #ifndef WIFEXITED
13355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13356 #endif
13357
13358 int
13359 main ()
13360 {
13361 int s;
13362 wait (&s);
13363 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag"
13378 || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_header_sys_wait_h=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ac_cv_header_sys_wait_h=no
13396 fi
13397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13400 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13401 if test $ac_cv_header_sys_wait_h = yes; then
13402
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_SYS_WAIT_H 1
13405 _ACEOF
13406
13407 fi
13408
13409
13410 echo "$as_me:$LINENO: checking for ssize_t" >&5
13411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13412 if test "${ac_cv_type_ssize_t+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 int
13423 main ()
13424 {
13425 if ((ssize_t *) 0)
13426 return 0;
13427 if (sizeof (ssize_t))
13428 return 0;
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest.$ac_objext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 ac_cv_type_ssize_t=yes
13456 else
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 ac_cv_type_ssize_t=no
13461 fi
13462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13465 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13466 if test $ac_cv_type_ssize_t = yes; then
13467 :
13468 else
13469
13470 cat >>confdefs.h <<_ACEOF
13471 #define ssize_t int
13472 _ACEOF
13473
13474 fi
13475
13476
13477 echo "$as_me:$LINENO: checking for in_addr_t" >&5
13478 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13486 #if STDC_HEADERS
13487 #include <stdlib.h>
13488 #include <stddef.h>
13489 #endif
13490 #if HAVE_NETINET_IN_H
13491 #include <netinet/in.h>
13492 #endif
13493 int
13494 main ()
13495 {
13496 in_addr_t foo;
13497 ;
13498 return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_IN_ADDR_T 1
13526 _ACEOF
13527
13528 echo "$as_me:$LINENO: result: yes" >&5
13529 echo "${ECHO_T}yes" >&6
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13536 fi
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538
13539 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
13540 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #include <netinet/in.h>
13548 int
13549 main ()
13550 {
13551 struct ip_mreq mreq;
13552 ;
13553 return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578
13579 cat >>confdefs.h <<\_ACEOF
13580 #define HAVE_STRUCT_IP_MREQ 1
13581 _ACEOF
13582
13583 echo "$as_me:$LINENO: result: yes" >&5
13584 echo "${ECHO_T}yes" >&6
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6
13591 fi
13592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13593
13594 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
13595 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
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 #include <netinet/in.h>
13603 int
13604 main ()
13605 {
13606 struct ipv6_mreq mreq6;
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633
13634 cat >>confdefs.h <<\_ACEOF
13635 #define HAVE_STRUCT_IPV6_MREQ 1
13636 _ACEOF
13637
13638 echo "$as_me:$LINENO: result: yes" >&5
13639 echo "${ECHO_T}yes" >&6
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6
13646 fi
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648
13649 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
13650 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <netinet/in.h>
13658 int
13659 main ()
13660 {
13661 struct sockaddr_in6 addr6;
13662 ;
13663 return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688
13689 cat >>confdefs.h <<\_ACEOF
13690 #define HAVE_INET6 1
13691 _ACEOF
13692
13693 echo "$as_me:$LINENO: result: yes" >&5
13694 echo "${ECHO_T}yes" >&6
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6
13701 fi
13702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703
13704 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
13705 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #define _POSIX_PII_SOCKET
13713 #include <sys/types.h>
13714 #include <sys/socket.h>
13715 int
13716 main ()
13717 {
13718 socklen_t x = 5;
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_SOCKLEN_T 1
13748 _ACEOF
13749
13750 echo "$as_me:$LINENO: result: yes" >&5
13751 echo "${ECHO_T}yes" >&6
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 echo "$as_me:$LINENO: result: no" >&5
13757 echo "${ECHO_T}no" >&6
13758 fi
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760
13761 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
13762 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <time.h>
13770 int
13771 main ()
13772 {
13773 struct tm tim; tim.tm_gmtoff = 0;
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>conftest.er1
13781 ac_status=$?
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag"
13788 || test ! -s conftest.err'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest.$ac_objext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800
13801 cat >>confdefs.h <<\_ACEOF
13802 #define STRUCT_TM_HAS_GMTOFF 1
13803 _ACEOF
13804
13805 echo "$as_me:$LINENO: result: yes" >&5
13806 echo "${ECHO_T}yes" >&6
13807 else
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 echo "$as_me:$LINENO: result: no" >&5
13812 echo "${ECHO_T}no" >&6
13813 echo "$as_me:$LINENO: checking for global timezone variable" >&5
13814 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
13815 cat >conftest.$ac_ext <<_ACEOF
13816 /* confdefs.h. */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13821 #include <time.h>
13822 int
13823 main ()
13824 {
13825 void i(){long z2 = 2*timezone;}
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852
13853 cat >>confdefs.h <<\_ACEOF
13854 #define HAVE_TIMEZONE 1
13855 _ACEOF
13856
13857 echo "$as_me:$LINENO: result: yes" >&5
13858 echo "${ECHO_T}yes" >&6
13859 else
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6
13865 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
13866 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h. */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <time.h>
13874 int
13875 main ()
13876 {
13877 long z2 = _timezone;
13878 ;
13879 return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag"
13892 || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_UNDERSCORE_TIMEZONE 1
13907 _ACEOF
13908
13909 echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6
13917 fi
13918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13919 fi
13920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921 fi
13922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923
13924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13925 # for constant arguments. Useless!
13926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13928 if test "${ac_cv_working_alloca_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931 if test x$gcc_no_link = xyes; then
13932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13934 { (exit 1); exit 1; }; }
13935 fi
13936 cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h. */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <alloca.h>
13943 int
13944 main ()
13945 {
13946 char *p = (char *) alloca (2 * sizeof (int));
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_c_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_working_alloca_h=yes
13974 else
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 ac_cv_working_alloca_h=no
13979 fi
13980 rm -f conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 fi
13983 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13984 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13985 if test $ac_cv_working_alloca_h = yes; then
13986
13987 cat >>confdefs.h <<\_ACEOF
13988 #define HAVE_ALLOCA_H 1
13989 _ACEOF
13990
13991 fi
13992
13993 echo "$as_me:$LINENO: checking for alloca" >&5
13994 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13995 if test "${ac_cv_func_alloca_works+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998 if test x$gcc_no_link = xyes; then
13999 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14001 { (exit 1); exit 1; }; }
14002 fi
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #ifdef __GNUC__
14010 # define alloca __builtin_alloca
14011 #else
14012 # ifdef _MSC_VER
14013 # include <malloc.h>
14014 # define alloca _alloca
14015 # else
14016 # if HAVE_ALLOCA_H
14017 # include <alloca.h>
14018 # else
14019 # ifdef _AIX
14020 #pragma alloca
14021 # else
14022 # ifndef alloca /* predefined by HP cc +Olibcalls */
14023 char *alloca ();
14024 # endif
14025 # endif
14026 # endif
14027 # endif
14028 #endif
14029
14030 int
14031 main ()
14032 {
14033 char *p = (char *) alloca (1);
14034 ;
14035 return 0;
14036 }
14037 _ACEOF
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14040 (eval $ac_link) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_func_alloca_works=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 ac_cv_func_alloca_works=no
14066 fi
14067 rm -f conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 fi
14070 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14071 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14072
14073 if test $ac_cv_func_alloca_works = yes; then
14074
14075 cat >>confdefs.h <<\_ACEOF
14076 #define HAVE_ALLOCA 1
14077 _ACEOF
14078
14079 else
14080 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14081 # that cause trouble. Some versions do not even contain alloca or
14082 # contain a buggy version. If you still want to use their alloca,
14083 # use ar to extract alloca.o from them instead of compiling alloca.c.
14084
14085 ALLOCA=alloca.$ac_objext
14086
14087 cat >>confdefs.h <<\_ACEOF
14088 #define C_ALLOCA 1
14089 _ACEOF
14090
14091
14092 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14093 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14094 if test "${ac_cv_os_cray+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097 cat >conftest.$ac_ext <<_ACEOF
14098 /* confdefs.h. */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 #if defined(CRAY) && ! defined(CRAY2)
14104 webecray
14105 #else
14106 wenotbecray
14107 #endif
14108
14109 _ACEOF
14110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14111 $EGREP "webecray" >/dev/null 2>&1; then
14112 ac_cv_os_cray=yes
14113 else
14114 ac_cv_os_cray=no
14115 fi
14116 rm -f conftest*
14117
14118 fi
14119 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14120 echo "${ECHO_T}$ac_cv_os_cray" >&6
14121 if test $ac_cv_os_cray = yes; then
14122 for ac_func in _getb67 GETB67 getb67; do
14123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14124 echo "$as_me:$LINENO: checking for $ac_func" >&5
14125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_var+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129 if test x$gcc_no_link = xyes; then
14130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14131 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14132 { (exit 1); exit 1; }; }
14133 fi
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14142 #define $ac_func innocuous_$ac_func
14143
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char $ac_func (); below.
14146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14147 <limits.h> exists even on freestanding compilers. */
14148
14149 #ifdef __STDC__
14150 # include <limits.h>
14151 #else
14152 # include <assert.h>
14153 #endif
14154
14155 #undef $ac_func
14156
14157 /* Override any gcc2 internal prototype to avoid an error. */
14158 #ifdef __cplusplus
14159 extern "C"
14160 {
14161 #endif
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14164 char $ac_func ();
14165 /* The GNU C library defines this for functions which it implements
14166 to always fail with ENOSYS. Some functions are actually named
14167 something starting with __ and the normal name is an alias. */
14168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14169 choke me
14170 #else
14171 char (*f) () = $ac_func;
14172 #endif
14173 #ifdef __cplusplus
14174 }
14175 #endif
14176
14177 int
14178 main ()
14179 {
14180 return f != $ac_func;
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187 (eval $ac_link) 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 eval "$as_ac_var=yes"
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212 eval "$as_ac_var=no"
14213 fi
14214 rm -f conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 fi
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14219 if test `eval echo '${'$as_ac_var'}'` = yes; then
14220
14221 cat >>confdefs.h <<_ACEOF
14222 #define CRAY_STACKSEG_END $ac_func
14223 _ACEOF
14224
14225 break
14226 fi
14227
14228 done
14229 fi
14230
14231 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14233 if test "${ac_cv_c_stack_direction+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 if test "$cross_compiling" = yes; then
14237 ac_cv_c_stack_direction=0
14238 else
14239 cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h. */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 int
14246 find_stack_direction ()
14247 {
14248 static char *addr = 0;
14249 auto char dummy;
14250 if (addr == 0)
14251 {
14252 addr = &dummy;
14253 return find_stack_direction ();
14254 }
14255 else
14256 return (&dummy > addr) ? 1 : -1;
14257 }
14258
14259 int
14260 main ()
14261 {
14262 exit (find_stack_direction () < 0);
14263 }
14264 _ACEOF
14265 rm -f conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_c_stack_direction=1
14277 else
14278 echo "$as_me: program exited with status $ac_status" >&5
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 ( exit $ac_status )
14283 ac_cv_c_stack_direction=-1
14284 fi
14285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14286 fi
14287 fi
14288 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14289 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define STACK_DIRECTION $ac_cv_c_stack_direction
14293 _ACEOF
14294
14295
14296 fi
14297
14298 if test x$gcc_no_link = xyes; then
14299 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14300 ac_cv_func_mmap_fixed_mapped=no
14301 fi
14302 fi
14303 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14304
14305
14306 for ac_header in stdlib.h unistd.h
14307 do
14308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 fi
14315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14317 else
14318 # Is the header compilable?
14319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14321 cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h. */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 $ac_includes_default
14328 #include <$ac_header>
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -z "$ac_c_werror_flag"
14340 || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try='test -s conftest.$ac_objext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_header_compiler=yes
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 ac_header_compiler=no
14358 fi
14359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 echo "${ECHO_T}$ac_header_compiler" >&6
14362
14363 # Is the header present?
14364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h. */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <$ac_header>
14373 _ACEOF
14374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } >/dev/null; then
14382 if test -s conftest.err; then
14383 ac_cpp_err=$ac_c_preproc_warn_flag
14384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14385 else
14386 ac_cpp_err=
14387 fi
14388 else
14389 ac_cpp_err=yes
14390 fi
14391 if test -z "$ac_cpp_err"; then
14392 ac_header_preproc=yes
14393 else
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_header_preproc=no
14398 fi
14399 rm -f conftest.err conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 echo "${ECHO_T}$ac_header_preproc" >&6
14402
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14405 yes:no: )
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc=yes
14411 ;;
14412 no:yes:* )
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14425 (
14426 cat <<\_ASBOX
14427 ## ------------------------------------------ ##
14428 ## Report this to the AC_PACKAGE_NAME lists. ##
14429 ## ------------------------------------------ ##
14430 _ASBOX
14431 ) |
14432 sed "s/^/$as_me: WARNING: /" >&2
14433 ;;
14434 esac
14435 echo "$as_me:$LINENO: checking for $ac_header" >&5
14436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 eval "$as_ac_Header=\$ac_header_preproc"
14441 fi
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444
14445 fi
14446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14447 cat >>confdefs.h <<_ACEOF
14448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14449 _ACEOF
14450
14451 fi
14452
14453 done
14454
14455
14456 for ac_func in getpagesize
14457 do
14458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_var+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 if test x$gcc_no_link = xyes; then
14465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14467 { (exit 1); exit 1; }; }
14468 fi
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h. */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14477 #define $ac_func innocuous_$ac_func
14478
14479 /* System header to define __stub macros and hopefully few prototypes,
14480 which can conflict with char $ac_func (); below.
14481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14482 <limits.h> exists even on freestanding compilers. */
14483
14484 #ifdef __STDC__
14485 # include <limits.h>
14486 #else
14487 # include <assert.h>
14488 #endif
14489
14490 #undef $ac_func
14491
14492 /* Override any gcc2 internal prototype to avoid an error. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 {
14496 #endif
14497 /* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14499 char $ac_func ();
14500 /* The GNU C library defines this for functions which it implements
14501 to always fail with ENOSYS. Some functions are actually named
14502 something starting with __ and the normal name is an alias. */
14503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14504 choke me
14505 #else
14506 char (*f) () = $ac_func;
14507 #endif
14508 #ifdef __cplusplus
14509 }
14510 #endif
14511
14512 int
14513 main ()
14514 {
14515 return f != $ac_func;
14516 ;
14517 return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14522 (eval $ac_link) 2>conftest.er1
14523 ac_status=$?
14524 grep -v '^ *+' conftest.er1 >conftest.err
14525 rm -f conftest.er1
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try='test -z "$ac_c_werror_flag"
14530 || test ! -s conftest.err'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 eval "$as_ac_var=yes"
14543 else
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 eval "$as_ac_var=no"
14548 fi
14549 rm -f conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 fi
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 _ACEOF
14558
14559 fi
14560 done
14561
14562 echo "$as_me:$LINENO: checking for working mmap" >&5
14563 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14564 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 if test "$cross_compiling" = yes; then
14568 ac_cv_func_mmap_fixed_mapped=no
14569 else
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 $ac_includes_default
14577 /* malloc might have been renamed as rpl_malloc. */
14578 #undef malloc
14579
14580 /* Thanks to Mike Haertel and Jim Avera for this test.
14581 Here is a matrix of mmap possibilities:
14582 mmap private not fixed
14583 mmap private fixed at somewhere currently unmapped
14584 mmap private fixed at somewhere already mapped
14585 mmap shared not fixed
14586 mmap shared fixed at somewhere currently unmapped
14587 mmap shared fixed at somewhere already mapped
14588 For private mappings, we should verify that changes cannot be read()
14589 back from the file, nor mmap's back from the file at a different
14590 address. (There have been systems where private was not correctly
14591 implemented like the infamous i386 svr4.0, and systems where the
14592 VM page cache was not coherent with the file system buffer cache
14593 like early versions of FreeBSD and possibly contemporary NetBSD.)
14594 For shared mappings, we should conversely verify that changes get
14595 propagated back to all the places they're supposed to be.
14596
14597 Grep wants private fixed already mapped.
14598 The main things grep needs to know about mmap are:
14599 * does it exist and is it safe to write into the mmap'd area
14600 * how to use it (BSD variants) */
14601
14602 #include <fcntl.h>
14603 #include <sys/mman.h>
14604
14605 #if !STDC_HEADERS && !HAVE_STDLIB_H
14606 char *malloc ();
14607 #endif
14608
14609 /* This mess was copied from the GNU getpagesize.h. */
14610 #if !HAVE_GETPAGESIZE
14611 /* Assume that all systems that can run configure have sys/param.h. */
14612 # if !HAVE_SYS_PARAM_H
14613 # define HAVE_SYS_PARAM_H 1
14614 # endif
14615
14616 # ifdef _SC_PAGESIZE
14617 # define getpagesize() sysconf(_SC_PAGESIZE)
14618 # else /* no _SC_PAGESIZE */
14619 # if HAVE_SYS_PARAM_H
14620 # include <sys/param.h>
14621 # ifdef EXEC_PAGESIZE
14622 # define getpagesize() EXEC_PAGESIZE
14623 # else /* no EXEC_PAGESIZE */
14624 # ifdef NBPG
14625 # define getpagesize() NBPG * CLSIZE
14626 # ifndef CLSIZE
14627 # define CLSIZE 1
14628 # endif /* no CLSIZE */
14629 # else /* no NBPG */
14630 # ifdef NBPC
14631 # define getpagesize() NBPC
14632 # else /* no NBPC */
14633 # ifdef PAGESIZE
14634 # define getpagesize() PAGESIZE
14635 # endif /* PAGESIZE */
14636 # endif /* no NBPC */
14637 # endif /* no NBPG */
14638 # endif /* no EXEC_PAGESIZE */
14639 # else /* no HAVE_SYS_PARAM_H */
14640 # define getpagesize() 8192 /* punt totally */
14641 # endif /* no HAVE_SYS_PARAM_H */
14642 # endif /* no _SC_PAGESIZE */
14643
14644 #endif /* no HAVE_GETPAGESIZE */
14645
14646 int
14647 main ()
14648 {
14649 char *data, *data2, *data3;
14650 int i, pagesize;
14651 int fd;
14652
14653 pagesize = getpagesize ();
14654
14655 /* First, make a file with some known garbage in it. */
14656 data = (char *) malloc (pagesize);
14657 if (!data)
14658 exit (1);
14659 for (i = 0; i < pagesize; ++i)
14660 *(data + i) = rand ();
14661 umask (0);
14662 fd = creat ("conftest.mmap", 0600);
14663 if (fd < 0)
14664 exit (1);
14665 if (write (fd, data, pagesize) != pagesize)
14666 exit (1);
14667 close (fd);
14668
14669 /* Next, try to mmap the file at a fixed address which already has
14670 something else allocated at it. If we can, also make sure that
14671 we see the same garbage. */
14672 fd = open ("conftest.mmap", O_RDWR);
14673 if (fd < 0)
14674 exit (1);
14675 data2 = (char *) malloc (2 * pagesize);
14676 if (!data2)
14677 exit (1);
14678 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14679 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14680 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14681 exit (1);
14682 for (i = 0; i < pagesize; ++i)
14683 if (*(data + i) != *(data2 + i))
14684 exit (1);
14685
14686 /* Finally, make sure that changes to the mapped area do not
14687 percolate back to the file as seen by read(). (This is a bug on
14688 some variants of i386 svr4.0.) */
14689 for (i = 0; i < pagesize; ++i)
14690 *(data2 + i) = *(data2 + i) + 1;
14691 data3 = (char *) malloc (pagesize);
14692 if (!data3)
14693 exit (1);
14694 if (read (fd, data3, pagesize) != pagesize)
14695 exit (1);
14696 for (i = 0; i < pagesize; ++i)
14697 if (*(data + i) != *(data3 + i))
14698 exit (1);
14699 close (fd);
14700 exit (0);
14701 }
14702 _ACEOF
14703 rm -f conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_func_mmap_fixed_mapped=yes
14715 else
14716 echo "$as_me: program exited with status $ac_status" >&5
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ( exit $ac_status )
14721 ac_cv_func_mmap_fixed_mapped=no
14722 fi
14723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14724 fi
14725 fi
14726 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14727 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14728 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14729
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_MMAP 1
14732 _ACEOF
14733
14734 fi
14735 rm -f conftest.mmap
14736
14737 fi
14738
14739 for ac_prog in perl
14740 do
14741 # Extract the first word of "$ac_prog", so it can be a program name with args.
14742 set dummy $ac_prog; ac_word=$2
14743 echo "$as_me:$LINENO: checking for $ac_word" >&5
14744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14745 if test "${ac_cv_prog_PERL+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 if test -n "$PERL"; then
14749 ac_cv_prog_PERL="$PERL" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14753 do
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_PERL="$ac_prog"
14759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 break 2
14761 fi
14762 done
14763 done
14764
14765 fi
14766 fi
14767 PERL=$ac_cv_prog_PERL
14768 if test -n "$PERL"; then
14769 echo "$as_me:$LINENO: result: $PERL" >&5
14770 echo "${ECHO_T}$PERL" >&6
14771 else
14772 echo "$as_me:$LINENO: result: no" >&5
14773 echo "${ECHO_T}no" >&6
14774 fi
14775
14776 test -n "$PERL" && break
14777 done
14778 test -n "$PERL" || PERL="false"
14779
14780
14781 SYSDEP_SOURCES=
14782 SIGNAL_HANDLER_AUX=
14783
14784 case "${host}" in
14785 i?86-*-linux*)
14786 SIGNAL_HANDLER=include/i386-signal.h
14787 ;;
14788 sparc*-sun-solaris*)
14789 SIGNAL_HANDLER=include/sparc-signal.h
14790 ;;
14791 # ia64-*)
14792 # SYSDEP_SOURCES=sysdep/ia64.c
14793 # test -d sysdep || mkdir sysdep
14794 # ;;
14795 hppa*-*-linux*)
14796 SIGNAL_HANDLER=include/pa-signal.h
14797 ;;
14798 ia64-*-linux*)
14799 SIGNAL_HANDLER=include/dwarf2-signal.h
14800 ;;
14801 powerpc*-*-linux*)
14802 SIGNAL_HANDLER=include/powerpc-signal.h
14803 ;;
14804 alpha*-*-linux*)
14805 SIGNAL_HANDLER=include/dwarf2-signal.h
14806 ;;
14807 s390*-*-linux*)
14808 SIGNAL_HANDLER=include/s390-signal.h
14809 ;;
14810 x86_64*-*-linux*)
14811 SIGNAL_HANDLER=include/x86_64-signal.h
14812 SIGNAL_HANDLER_AUX=include/i386-signal.h
14813 ;;
14814 sparc*-*-linux*)
14815 SIGNAL_HANDLER=include/dwarf2-signal.h
14816 ;;
14817 sh-*-linux* | sh[34]*-*-linux*)
14818 SIGNAL_HANDLER=include/dwarf2-signal.h
14819 ;;
14820 *mingw*)
14821 SIGNAL_HANDLER=include/win32-signal.h
14822 ;;
14823 mips*-*-linux*)
14824 SIGNAL_HANDLER=include/mips-signal.h
14825 ;;
14826 *-*-darwin*)
14827 SIGNAL_HANDLER=include/darwin-signal.h
14828 ;;
14829 *)
14830 SIGNAL_HANDLER=include/default-signal.h
14831 ;;
14832 esac
14833
14834 # If we're using sjlj exceptions, forget what we just learned.
14835 if test "$enable_sjlj_exceptions" = yes; then
14836 SIGNAL_HANDLER=include/default-signal.h
14837 SIGNAL_HANDLER_AUX=
14838 fi
14839
14840 # Define here any compiler flags that you need in order to make backtrace() work.
14841 BACKTRACESPEC=
14842 case "${host}" in
14843 x86_64*-*-linux*|i?86-*)
14844 BACKTRACESPEC=-fno-omit-frame-pointer
14845 ;;
14846 esac
14847
14848
14849
14850
14851 if test -z "$SIGNAL_HANDLER_AUX"; then
14852 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
14853 fi
14854
14855 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
14856
14857
14858 if test "${multilib}" = "yes"; then
14859 multilib_arg="--enable-multilib"
14860 else
14861 multilib_arg=
14862 fi
14863
14864
14865
14866 here=`${PWDCMD-pwd}`
14867
14868
14869 # We get this from the environment.
14870
14871
14872 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
14873 ac_config_commands="$ac_config_commands default"
14874 cat >confcache <<\_ACEOF
14875 # This file is a shell script that caches the results of configure
14876 # tests run on this system so they can be shared between configure
14877 # scripts and configure runs, see configure's option --config-cache.
14878 # It is not useful on other systems. If it contains results you don't
14879 # want to keep, you may remove or edit it.
14880 #
14881 # config.status only pays attention to the cache file if you give it
14882 # the --recheck option to rerun configure.
14883 #
14884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14886 # following values.
14887
14888 _ACEOF
14889
14890 # The following way of writing the cache mishandles newlines in values,
14891 # but we know of no workaround that is simple, portable, and efficient.
14892 # So, don't put newlines in cache variables' values.
14893 # Ultrix sh set writes to stderr and can't be redirected directly,
14894 # and sets the high bit in the cache file unless we assign to the vars.
14895 {
14896 (set) 2>&1 |
14897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14898 *ac_space=\ *)
14899 # `set' does not quote correctly, so add quotes (double-quote
14900 # substitution turns \\\\ into \\, and sed turns \\ into \).
14901 sed -n \
14902 "s/'/'\\\\''/g;
14903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14904 ;;
14905 *)
14906 # `set' quotes correctly as required by POSIX, so do not add quotes.
14907 sed -n \
14908 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14909 ;;
14910 esac;
14911 } |
14912 sed '
14913 t clear
14914 : clear
14915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14916 t end
14917 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14918 : end' >>confcache
14919 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14920 if test -w $cache_file; then
14921 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14922 cat confcache >$cache_file
14923 else
14924 echo "not updating unwritable cache $cache_file"
14925 fi
14926 fi
14927 rm -f confcache
14928
14929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14930 # Let make expand exec_prefix.
14931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14932
14933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14935 # trailing colons and then remove the whole line if VPATH becomes empty
14936 # (actually we leave an empty line to preserve line numbers).
14937 if test "x$srcdir" = x.; then
14938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14939 s/:*\$(srcdir):*/:/;
14940 s/:*\${srcdir}:*/:/;
14941 s/:*@srcdir@:*/:/;
14942 s/^\([^=]*=[ ]*\):*/\1/;
14943 s/:*$//;
14944 s/^[^=]*=[ ]*$//;
14945 }'
14946 fi
14947
14948 DEFS=-DHAVE_CONFIG_H
14949
14950 ac_libobjs=
14951 ac_ltlibobjs=
14952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14953 # 1. Remove the extension, and $U if already installed.
14954 ac_i=`echo "$ac_i" |
14955 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14956 # 2. Add them.
14957 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14958 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14959 done
14960 LIBOBJS=$ac_libobjs
14961
14962 LTLIBOBJS=$ac_ltlibobjs
14963
14964
14965
14966 : ${CONFIG_STATUS=./config.status}
14967 ac_clean_files_save=$ac_clean_files
14968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14971 cat >$CONFIG_STATUS <<_ACEOF
14972 #! $SHELL
14973 # Generated by $as_me.
14974 # Run this file to recreate the current configuration.
14975 # Compiler output produced by configure, useful for debugging
14976 # configure, is in config.log if it exists.
14977
14978 debug=false
14979 ac_cs_recheck=false
14980 ac_cs_silent=false
14981 SHELL=\${CONFIG_SHELL-$SHELL}
14982 _ACEOF
14983
14984 cat >>$CONFIG_STATUS <<\_ACEOF
14985 ## --------------------- ##
14986 ## M4sh Initialization. ##
14987 ## --------------------- ##
14988
14989 # Be Bourne compatible
14990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14991 emulate sh
14992 NULLCMD=:
14993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14994 # is contrary to our usage. Disable this feature.
14995 alias -g '${1+"$@"}'='"$@"'
14996 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14997 set -o posix
14998 fi
14999 DUALCASE=1; export DUALCASE # for MKS sh
15000
15001 # Support unset when possible.
15002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15003 as_unset=unset
15004 else
15005 as_unset=false
15006 fi
15007
15008
15009 # Work around bugs in pre-3.0 UWIN ksh.
15010 $as_unset ENV MAIL MAILPATH
15011 PS1='$ '
15012 PS2='> '
15013 PS4='+ '
15014
15015 # NLS nuisances.
15016 for as_var in \
15017 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15018 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15019 LC_TELEPHONE LC_TIME
15020 do
15021 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15022 eval $as_var=C; export $as_var
15023 else
15024 $as_unset $as_var
15025 fi
15026 done
15027
15028 # Required to use basename.
15029 if expr a : '\(a\)' >/dev/null 2>&1; then
15030 as_expr=expr
15031 else
15032 as_expr=false
15033 fi
15034
15035 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15036 as_basename=basename
15037 else
15038 as_basename=false
15039 fi
15040
15041
15042 # Name of the executable.
15043 as_me=`$as_basename "$0" ||
15044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15045 X"$0" : 'X\(//\)$' \| \
15046 X"$0" : 'X\(/\)$' \| \
15047 . : '\(.\)' 2>/dev/null ||
15048 echo X/"$0" |
15049 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15050 /^X\/\(\/\/\)$/{ s//\1/; q; }
15051 /^X\/\(\/\).*/{ s//\1/; q; }
15052 s/.*/./; q'`
15053
15054
15055 # PATH needs CR, and LINENO needs CR and PATH.
15056 # Avoid depending upon Character Ranges.
15057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15060 as_cr_digits='0123456789'
15061 as_cr_alnum=$as_cr_Letters$as_cr_digits
15062
15063 # The user is always right.
15064 if test "${PATH_SEPARATOR+set}" != set; then
15065 echo "#! /bin/sh" >conf$$.sh
15066 echo "exit 0" >>conf$$.sh
15067 chmod +x conf$$.sh
15068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15069 PATH_SEPARATOR=';'
15070 else
15071 PATH_SEPARATOR=:
15072 fi
15073 rm -f conf$$.sh
15074 fi
15075
15076
15077 as_lineno_1=$LINENO
15078 as_lineno_2=$LINENO
15079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15080 test "x$as_lineno_1" != "x$as_lineno_2" &&
15081 test "x$as_lineno_3" = "x$as_lineno_2" || {
15082 # Find who we are. Look in the path if we contain no path at all
15083 # relative or not.
15084 case $0 in
15085 *[\\/]* ) as_myself=$0 ;;
15086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15092 done
15093
15094 ;;
15095 esac
15096 # We did not find ourselves, most probably we were run as `sh COMMAND'
15097 # in which case we are not to be found in the path.
15098 if test "x$as_myself" = x; then
15099 as_myself=$0
15100 fi
15101 if test ! -f "$as_myself"; then
15102 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15103 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15104 { (exit 1); exit 1; }; }
15105 fi
15106 case $CONFIG_SHELL in
15107 '')
15108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15109 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15110 do
15111 IFS=$as_save_IFS
15112 test -z "$as_dir" && as_dir=.
15113 for as_base in sh bash ksh sh5; do
15114 case $as_dir in
15115 /*)
15116 if ("$as_dir/$as_base" -c '
15117 as_lineno_1=$LINENO
15118 as_lineno_2=$LINENO
15119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15120 test "x$as_lineno_1" != "x$as_lineno_2" &&
15121 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15122 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15123 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15124 CONFIG_SHELL=$as_dir/$as_base
15125 export CONFIG_SHELL
15126 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15127 fi;;
15128 esac
15129 done
15130 done
15131 ;;
15132 esac
15133
15134 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15135 # uniformly replaced by the line number. The first 'sed' inserts a
15136 # line-number line before each line; the second 'sed' does the real
15137 # work. The second script uses 'N' to pair each line-number line
15138 # with the numbered line, and appends trailing '-' during
15139 # substitution so that $LINENO is not a special case at line end.
15140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15141 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15142 sed '=' <$as_myself |
15143 sed '
15144 N
15145 s,$,-,
15146 : loop
15147 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15148 t loop
15149 s,-$,,
15150 s,^['$as_cr_digits']*\n,,
15151 ' >$as_me.lineno &&
15152 chmod +x $as_me.lineno ||
15153 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15154 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15155 { (exit 1); exit 1; }; }
15156
15157 # Don't try to exec as it changes $[0], causing all sort of problems
15158 # (the dirname of $[0] is not the place where we might find the
15159 # original and so on. Autoconf is especially sensible to this).
15160 . ./$as_me.lineno
15161 # Exit status is that of the last command.
15162 exit
15163 }
15164
15165
15166 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15167 *c*,-n*) ECHO_N= ECHO_C='
15168 ' ECHO_T=' ' ;;
15169 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15170 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15171 esac
15172
15173 if expr a : '\(a\)' >/dev/null 2>&1; then
15174 as_expr=expr
15175 else
15176 as_expr=false
15177 fi
15178
15179 rm -f conf$$ conf$$.exe conf$$.file
15180 echo >conf$$.file
15181 if ln -s conf$$.file conf$$ 2>/dev/null; then
15182 # We could just check for DJGPP; but this test a) works b) is more generic
15183 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15184 if test -f conf$$.exe; then
15185 # Don't use ln at all; we don't have any links
15186 as_ln_s='cp -p'
15187 else
15188 as_ln_s='ln -s'
15189 fi
15190 elif ln conf$$.file conf$$ 2>/dev/null; then
15191 as_ln_s=ln
15192 else
15193 as_ln_s='cp -p'
15194 fi
15195 rm -f conf$$ conf$$.exe conf$$.file
15196
15197 if mkdir -p . 2>/dev/null; then
15198 as_mkdir_p=:
15199 else
15200 test -d ./-p && rmdir ./-p
15201 as_mkdir_p=false
15202 fi
15203
15204 as_executable_p="test -f"
15205
15206 # Sed expression to map a string onto a valid CPP name.
15207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15208
15209 # Sed expression to map a string onto a valid variable name.
15210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15211
15212
15213 # IFS
15214 # We need space, tab and new line, in precisely that order.
15215 as_nl='
15216 '
15217 IFS=" $as_nl"
15218
15219 # CDPATH.
15220 $as_unset CDPATH
15221
15222 exec 6>&1
15223
15224 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15225 # report actual input values of CONFIG_FILES etc. instead of their
15226 # values after options handling. Logging --version etc. is OK.
15227 exec 5>>config.log
15228 {
15229 echo
15230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15231 ## Running $as_me. ##
15232 _ASBOX
15233 } >&5
15234 cat >&5 <<_CSEOF
15235
15236 This file was extended by $as_me, which was
15237 generated by GNU Autoconf 2.59. Invocation command line was
15238
15239 CONFIG_FILES = $CONFIG_FILES
15240 CONFIG_HEADERS = $CONFIG_HEADERS
15241 CONFIG_LINKS = $CONFIG_LINKS
15242 CONFIG_COMMANDS = $CONFIG_COMMANDS
15243 $ $0 $@
15244
15245 _CSEOF
15246 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15247 echo >&5
15248 _ACEOF
15249
15250 # Files that config.status was made for.
15251 if test -n "$ac_config_files"; then
15252 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15253 fi
15254
15255 if test -n "$ac_config_headers"; then
15256 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15257 fi
15258
15259 if test -n "$ac_config_links"; then
15260 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15261 fi
15262
15263 if test -n "$ac_config_commands"; then
15264 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15265 fi
15266
15267 cat >>$CONFIG_STATUS <<\_ACEOF
15268
15269 ac_cs_usage="\
15270 \`$as_me' instantiates files from templates according to the
15271 current configuration.
15272
15273 Usage: $0 [OPTIONS] [FILE]...
15274
15275 -h, --help print this help, then exit
15276 -V, --version print version number, then exit
15277 -q, --quiet do not print progress messages
15278 -d, --debug don't remove temporary files
15279 --recheck update $as_me by reconfiguring in the same conditions
15280 --file=FILE[:TEMPLATE]
15281 instantiate the configuration file FILE
15282 --header=FILE[:TEMPLATE]
15283 instantiate the configuration header FILE
15284
15285 Configuration files:
15286 $config_files
15287
15288 Configuration headers:
15289 $config_headers
15290
15291 Configuration links:
15292 $config_links
15293
15294 Configuration commands:
15295 $config_commands
15296
15297 Report bugs to <bug-autoconf@gnu.org>."
15298 _ACEOF
15299
15300 cat >>$CONFIG_STATUS <<_ACEOF
15301 ac_cs_version="\\
15302 config.status
15303 configured by $0, generated by GNU Autoconf 2.59,
15304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15305
15306 Copyright (C) 2003 Free Software Foundation, Inc.
15307 This config.status script is free software; the Free Software Foundation
15308 gives unlimited permission to copy, distribute and modify it."
15309 srcdir=$srcdir
15310 INSTALL="$INSTALL"
15311 _ACEOF
15312
15313 cat >>$CONFIG_STATUS <<\_ACEOF
15314 # If no file are specified by the user, then we need to provide default
15315 # value. By we need to know if files were specified by the user.
15316 ac_need_defaults=:
15317 while test $# != 0
15318 do
15319 case $1 in
15320 --*=*)
15321 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15322 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15323 ac_shift=:
15324 ;;
15325 -*)
15326 ac_option=$1
15327 ac_optarg=$2
15328 ac_shift=shift
15329 ;;
15330 *) # This is not an option, so the user has probably given explicit
15331 # arguments.
15332 ac_option=$1
15333 ac_need_defaults=false;;
15334 esac
15335
15336 case $ac_option in
15337 # Handling of the options.
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<\_ACEOF
15340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15341 ac_cs_recheck=: ;;
15342 --version | --vers* | -V )
15343 echo "$ac_cs_version"; exit 0 ;;
15344 --he | --h)
15345 # Conflict between --help and --header
15346 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15347 Try \`$0 --help' for more information." >&5
15348 echo "$as_me: error: ambiguous option: $1
15349 Try \`$0 --help' for more information." >&2;}
15350 { (exit 1); exit 1; }; };;
15351 --help | --hel | -h )
15352 echo "$ac_cs_usage"; exit 0 ;;
15353 --debug | --d* | -d )
15354 debug=: ;;
15355 --file | --fil | --fi | --f )
15356 $ac_shift
15357 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15358 ac_need_defaults=false;;
15359 --header | --heade | --head | --hea )
15360 $ac_shift
15361 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15362 ac_need_defaults=false;;
15363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15365 ac_cs_silent=: ;;
15366
15367 # This is an error.
15368 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15369 Try \`$0 --help' for more information." >&5
15370 echo "$as_me: error: unrecognized option: $1
15371 Try \`$0 --help' for more information." >&2;}
15372 { (exit 1); exit 1; }; } ;;
15373
15374 *) ac_config_targets="$ac_config_targets $1" ;;
15375
15376 esac
15377 shift
15378 done
15379
15380 ac_configure_extra_args=
15381
15382 if $ac_cs_silent; then
15383 exec 6>/dev/null
15384 ac_configure_extra_args="$ac_configure_extra_args --silent"
15385 fi
15386
15387 _ACEOF
15388 cat >>$CONFIG_STATUS <<_ACEOF
15389 if \$ac_cs_recheck; then
15390 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15391 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15392 fi
15393
15394 _ACEOF
15395
15396 cat >>$CONFIG_STATUS <<_ACEOF
15397 #
15398 # INIT-COMMANDS section.
15399 #
15400
15401
15402 srcdir=${srcdir}
15403 host=${host}
15404 target=${target}
15405 with_multisubdir=${with_multisubdir}
15406 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15407 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15408 libgcj_basedir=${libgcj_basedir}
15409 CC="${CC}"
15410 CXX="${CXX}"
15411 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
15412
15413
15414 _ACEOF
15415
15416
15417
15418 cat >>$CONFIG_STATUS <<\_ACEOF
15419 for ac_config_target in $ac_config_targets
15420 do
15421 case "$ac_config_target" in
15422 # Handling of arguments.
15423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15424 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
15425 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
15426 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
15427 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15428 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
15429 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15430 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15431 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
15432 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
15433 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
15434 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
15435 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
15436 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
15437 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
15438 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
15439 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
15440 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
15441 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
15442 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
15443 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
15444 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
15445 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
15446 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
15447 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15448 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15449 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15450 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
15451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15453 { (exit 1); exit 1; }; };;
15454 esac
15455 done
15456
15457 # If the user did not use the arguments to specify the items to instantiate,
15458 # then the envvar interface is used. Set only those that are not.
15459 # We use the long form for the default assignment because of an extremely
15460 # bizarre bug on SunOS 4.1.3.
15461 if $ac_need_defaults; then
15462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15464 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15465 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15466 fi
15467
15468 # Have a temporary directory for convenience. Make it in the build tree
15469 # simply because there is no reason to put it here, and in addition,
15470 # creating and moving files from /tmp can sometimes cause problems.
15471 # Create a temporary directory, and hook for its removal unless debugging.
15472 $debug ||
15473 {
15474 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15475 trap '{ (exit 1); exit 1; }' 1 2 13 15
15476 }
15477
15478 # Create a (secure) tmp directory for tmp files.
15479
15480 {
15481 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15482 test -n "$tmp" && test -d "$tmp"
15483 } ||
15484 {
15485 tmp=./confstat$$-$RANDOM
15486 (umask 077 && mkdir $tmp)
15487 } ||
15488 {
15489 echo "$me: cannot create a temporary directory in ." >&2
15490 { (exit 1); exit 1; }
15491 }
15492
15493 _ACEOF
15494
15495 cat >>$CONFIG_STATUS <<_ACEOF
15496
15497 #
15498 # CONFIG_FILES section.
15499 #
15500
15501 # No need to generate the scripts if there are no CONFIG_FILES.
15502 # This happens for instance when ./config.status config.h
15503 if test -n "\$CONFIG_FILES"; then
15504 # Protect against being on the right side of a sed subst in config.status.
15505 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15506 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15507 s,@SHELL@,$SHELL,;t t
15508 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15509 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15510 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15511 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15512 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15513 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15514 s,@exec_prefix@,$exec_prefix,;t t
15515 s,@prefix@,$prefix,;t t
15516 s,@program_transform_name@,$program_transform_name,;t t
15517 s,@bindir@,$bindir,;t t
15518 s,@sbindir@,$sbindir,;t t
15519 s,@libexecdir@,$libexecdir,;t t
15520 s,@datadir@,$datadir,;t t
15521 s,@sysconfdir@,$sysconfdir,;t t
15522 s,@sharedstatedir@,$sharedstatedir,;t t
15523 s,@localstatedir@,$localstatedir,;t t
15524 s,@libdir@,$libdir,;t t
15525 s,@includedir@,$includedir,;t t
15526 s,@oldincludedir@,$oldincludedir,;t t
15527 s,@infodir@,$infodir,;t t
15528 s,@mandir@,$mandir,;t t
15529 s,@build_alias@,$build_alias,;t t
15530 s,@host_alias@,$host_alias,;t t
15531 s,@target_alias@,$target_alias,;t t
15532 s,@DEFS@,$DEFS,;t t
15533 s,@ECHO_C@,$ECHO_C,;t t
15534 s,@ECHO_N@,$ECHO_N,;t t
15535 s,@ECHO_T@,$ECHO_T,;t t
15536 s,@LIBS@,$LIBS,;t t
15537 s,@libgcj_basedir@,$libgcj_basedir,;t t
15538 s,@build@,$build,;t t
15539 s,@build_cpu@,$build_cpu,;t t
15540 s,@build_vendor@,$build_vendor,;t t
15541 s,@build_os@,$build_os,;t t
15542 s,@host@,$host,;t t
15543 s,@host_cpu@,$host_cpu,;t t
15544 s,@host_vendor@,$host_vendor,;t t
15545 s,@host_os@,$host_os,;t t
15546 s,@target@,$target,;t t
15547 s,@target_cpu@,$target_cpu,;t t
15548 s,@target_vendor@,$target_vendor,;t t
15549 s,@target_os@,$target_os,;t t
15550 s,@target_noncanonical@,$target_noncanonical,;t t
15551 s,@LN_S@,$LN_S,;t t
15552 s,@mkinstalldirs@,$mkinstalldirs,;t t
15553 s,@CC@,$CC,;t t
15554 s,@ac_ct_CC@,$ac_ct_CC,;t t
15555 s,@EXEEXT@,$EXEEXT,;t t
15556 s,@OBJEXT@,$OBJEXT,;t t
15557 s,@CXX@,$CXX,;t t
15558 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15559 s,@CFLAGS@,$CFLAGS,;t t
15560 s,@CXXFLAGS@,$CXXFLAGS,;t t
15561 s,@LDFLAGS@,$LDFLAGS,;t t
15562 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15563 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15564 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15565 s,@PACKAGE@,$PACKAGE,;t t
15566 s,@VERSION@,$VERSION,;t t
15567 s,@ACLOCAL@,$ACLOCAL,;t t
15568 s,@AUTOCONF@,$AUTOCONF,;t t
15569 s,@AUTOMAKE@,$AUTOMAKE,;t t
15570 s,@AUTOHEADER@,$AUTOHEADER,;t t
15571 s,@MAKEINFO@,$MAKEINFO,;t t
15572 s,@SET_MAKE@,$SET_MAKE,;t t
15573 s,@AS@,$AS,;t t
15574 s,@ac_ct_AS@,$ac_ct_AS,;t t
15575 s,@AR@,$AR,;t t
15576 s,@ac_ct_AR@,$ac_ct_AR,;t t
15577 s,@RANLIB@,$RANLIB,;t t
15578 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15579 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15580 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15581 s,@MAINT@,$MAINT,;t t
15582 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
15583 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
15584 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
15585 s,@INCLTDL@,$INCLTDL,;t t
15586 s,@LIBLTDL@,$LIBLTDL,;t t
15587 s,@DIRLTDL@,$DIRLTDL,;t t
15588 s,@STRIP@,$STRIP,;t t
15589 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15590 s,@LIBTOOL@,$LIBTOOL,;t t
15591 s,@CXXCPP@,$CXXCPP,;t t
15592 s,@CPPFLAGS@,$CPPFLAGS,;t t
15593 s,@subdirs@,$subdirs,;t t
15594 s,@COMPPATH@,$COMPPATH,;t t
15595 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
15596 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
15597 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
15598 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
15599 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
15600 s,@INTERPRETER@,$INTERPRETER,;t t
15601 s,@LIBFFI@,$LIBFFI,;t t
15602 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
15603 s,@EXTRA_CC_FILES@,$EXTRA_CC_FILES,;t t
15604 s,@PLATFORMOBJS@,$PLATFORMOBJS,;t t
15605 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
15606 s,@CPP@,$CPP,;t t
15607 s,@EGREP@,$EGREP,;t t
15608 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
15609 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
15610 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
15611 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
15612 s,@X_CFLAGS@,$X_CFLAGS,;t t
15613 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15614 s,@X_LIBS@,$X_LIBS,;t t
15615 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15616 s,@TOOLKIT@,$TOOLKIT,;t t
15617 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
15618 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
15619 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
15620 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
15621 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15622 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15623 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15624 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15625 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15626 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15627 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15628 s,@GCLIBS@,$GCLIBS,;t t
15629 s,@GCINCS@,$GCINCS,;t t
15630 s,@GCDEPS@,$GCDEPS,;t t
15631 s,@GCOBJS@,$GCOBJS,;t t
15632 s,@GCSPEC@,$GCSPEC,;t t
15633 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
15634 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
15635 s,@THREADLIBS@,$THREADLIBS,;t t
15636 s,@THREADINCS@,$THREADINCS,;t t
15637 s,@THREADDEPS@,$THREADDEPS,;t t
15638 s,@THREADOBJS@,$THREADOBJS,;t t
15639 s,@THREADSPEC@,$THREADSPEC,;t t
15640 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
15641 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
15642 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
15643 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
15644 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
15645 s,@tool_include_dir@,$tool_include_dir,;t t
15646 s,@gcc_version@,$gcc_version,;t t
15647 s,@LIBICONV@,$LIBICONV,;t t
15648 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15649 s,@GTK_LIBS@,$GTK_LIBS,;t t
15650 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
15651 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
15652 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
15653 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
15654 s,@GCJH@,$GCJH,;t t
15655 s,@ZIP@,$ZIP,;t t
15656 s,@GCJ@,$GCJ,;t t
15657 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
15658 s,@GCJFLAGS@,$GCJFLAGS,;t t
15659 s,@ZLIBS@,$ZLIBS,;t t
15660 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
15661 s,@ZINCS@,$ZINCS,;t t
15662 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
15663 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
15664 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
15665 s,@IEEESPEC@,$IEEESPEC,;t t
15666 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
15667 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
15668 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
15669 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
15670 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
15671 s,@toolexecdir@,$toolexecdir,;t t
15672 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
15673 s,@toolexeclibdir@,$toolexeclibdir,;t t
15674 s,@GCJVERSION@,$GCJVERSION,;t t
15675 s,@ALLOCA@,$ALLOCA,;t t
15676 s,@PERL@,$PERL,;t t
15677 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
15678 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
15679 s,@here@,$here,;t t
15680 s,@LIBOBJS@,$LIBOBJS,;t t
15681 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15682 CEOF
15683
15684 _ACEOF
15685
15686 cat >>$CONFIG_STATUS <<\_ACEOF
15687 # Split the substitutions into bite-sized pieces for seds with
15688 # small command number limits, like on Digital OSF/1 and HP-UX.
15689 ac_max_sed_lines=48
15690 ac_sed_frag=1 # Number of current file.
15691 ac_beg=1 # First line for current file.
15692 ac_end=$ac_max_sed_lines # Line after last line for current file.
15693 ac_more_lines=:
15694 ac_sed_cmds=
15695 while $ac_more_lines; do
15696 if test $ac_beg -gt 1; then
15697 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15698 else
15699 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15700 fi
15701 if test ! -s $tmp/subs.frag; then
15702 ac_more_lines=false
15703 else
15704 # The purpose of the label and of the branching condition is to
15705 # speed up the sed processing (if there are no `@' at all, there
15706 # is no need to browse any of the substitutions).
15707 # These are the two extra sed commands mentioned above.
15708 (echo ':t
15709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15710 if test -z "$ac_sed_cmds"; then
15711 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15712 else
15713 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15714 fi
15715 ac_sed_frag=`expr $ac_sed_frag + 1`
15716 ac_beg=$ac_end
15717 ac_end=`expr $ac_end + $ac_max_sed_lines`
15718 fi
15719 done
15720 if test -z "$ac_sed_cmds"; then
15721 ac_sed_cmds=cat
15722 fi
15723 fi # test -n "$CONFIG_FILES"
15724
15725 _ACEOF
15726 cat >>$CONFIG_STATUS <<\_ACEOF
15727 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15729 case $ac_file in
15730 - | *:- | *:-:* ) # input from stdin
15731 cat >$tmp/stdin
15732 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15734 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15736 * ) ac_file_in=$ac_file.in ;;
15737 esac
15738
15739 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15740 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742 X"$ac_file" : 'X\(//\)[^/]' \| \
15743 X"$ac_file" : 'X\(//\)$' \| \
15744 X"$ac_file" : 'X\(/\)' \| \
15745 . : '\(.\)' 2>/dev/null ||
15746 echo X"$ac_file" |
15747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15749 /^X\(\/\/\)$/{ s//\1/; q; }
15750 /^X\(\/\).*/{ s//\1/; q; }
15751 s/.*/./; q'`
15752 { if $as_mkdir_p; then
15753 mkdir -p "$ac_dir"
15754 else
15755 as_dir="$ac_dir"
15756 as_dirs=
15757 while test ! -d "$as_dir"; do
15758 as_dirs="$as_dir $as_dirs"
15759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15761 X"$as_dir" : 'X\(//\)[^/]' \| \
15762 X"$as_dir" : 'X\(//\)$' \| \
15763 X"$as_dir" : 'X\(/\)' \| \
15764 . : '\(.\)' 2>/dev/null ||
15765 echo X"$as_dir" |
15766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15768 /^X\(\/\/\)$/{ s//\1/; q; }
15769 /^X\(\/\).*/{ s//\1/; q; }
15770 s/.*/./; q'`
15771 done
15772 test ! -n "$as_dirs" || mkdir $as_dirs
15773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15775 { (exit 1); exit 1; }; }; }
15776
15777 ac_builddir=.
15778
15779 if test "$ac_dir" != .; then
15780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15781 # A "../" for each directory in $ac_dir_suffix.
15782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15783 else
15784 ac_dir_suffix= ac_top_builddir=
15785 fi
15786
15787 case $srcdir in
15788 .) # No --srcdir option. We are building in place.
15789 ac_srcdir=.
15790 if test -z "$ac_top_builddir"; then
15791 ac_top_srcdir=.
15792 else
15793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15794 fi ;;
15795 [\\/]* | ?:[\\/]* ) # Absolute path.
15796 ac_srcdir=$srcdir$ac_dir_suffix;
15797 ac_top_srcdir=$srcdir ;;
15798 *) # Relative path.
15799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15801 esac
15802
15803 # Do not use `cd foo && pwd` to compute absolute paths, because
15804 # the directories may not exist.
15805 case `pwd` in
15806 .) ac_abs_builddir="$ac_dir";;
15807 *)
15808 case "$ac_dir" in
15809 .) ac_abs_builddir=`pwd`;;
15810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15811 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15812 esac;;
15813 esac
15814 case $ac_abs_builddir in
15815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15816 *)
15817 case ${ac_top_builddir}. in
15818 .) ac_abs_top_builddir=$ac_abs_builddir;;
15819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15821 esac;;
15822 esac
15823 case $ac_abs_builddir in
15824 .) ac_abs_srcdir=$ac_srcdir;;
15825 *)
15826 case $ac_srcdir in
15827 .) ac_abs_srcdir=$ac_abs_builddir;;
15828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15830 esac;;
15831 esac
15832 case $ac_abs_builddir in
15833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15834 *)
15835 case $ac_top_srcdir in
15836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15839 esac;;
15840 esac
15841
15842
15843 case $INSTALL in
15844 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15845 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15846 esac
15847
15848 if test x"$ac_file" != x-; then
15849 { echo "$as_me:$LINENO: creating $ac_file" >&5
15850 echo "$as_me: creating $ac_file" >&6;}
15851 rm -f "$ac_file"
15852 fi
15853 # Let's still pretend it is `configure' which instantiates (i.e., don't
15854 # use $as_me), people would be surprised to read:
15855 # /* config.h. Generated by config.status. */
15856 if test x"$ac_file" = x-; then
15857 configure_input=
15858 else
15859 configure_input="$ac_file. "
15860 fi
15861 configure_input=$configure_input"Generated from `echo $ac_file_in |
15862 sed 's,.*/,,'` by configure."
15863
15864 # First look for the input files in the build tree, otherwise in the
15865 # src tree.
15866 ac_file_inputs=`IFS=:
15867 for f in $ac_file_in; do
15868 case $f in
15869 -) echo $tmp/stdin ;;
15870 [\\/$]*)
15871 # Absolute (can't be DOS-style, as IFS=:)
15872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15873 echo "$as_me: error: cannot find input file: $f" >&2;}
15874 { (exit 1); exit 1; }; }
15875 echo "$f";;
15876 *) # Relative
15877 if test -f "$f"; then
15878 # Build tree
15879 echo "$f"
15880 elif test -f "$srcdir/$f"; then
15881 # Source tree
15882 echo "$srcdir/$f"
15883 else
15884 # /dev/null tree
15885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15886 echo "$as_me: error: cannot find input file: $f" >&2;}
15887 { (exit 1); exit 1; }; }
15888 fi;;
15889 esac
15890 done` || { (exit 1); exit 1; }
15891 _ACEOF
15892 cat >>$CONFIG_STATUS <<_ACEOF
15893 sed "$ac_vpsub
15894 $extrasub
15895 _ACEOF
15896 cat >>$CONFIG_STATUS <<\_ACEOF
15897 :t
15898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15899 s,@configure_input@,$configure_input,;t t
15900 s,@srcdir@,$ac_srcdir,;t t
15901 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15902 s,@top_srcdir@,$ac_top_srcdir,;t t
15903 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15904 s,@builddir@,$ac_builddir,;t t
15905 s,@abs_builddir@,$ac_abs_builddir,;t t
15906 s,@top_builddir@,$ac_top_builddir,;t t
15907 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15908 s,@INSTALL@,$ac_INSTALL,;t t
15909 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15910 rm -f $tmp/stdin
15911 if test x"$ac_file" != x-; then
15912 mv $tmp/out $ac_file
15913 else
15914 cat $tmp/out
15915 rm -f $tmp/out
15916 fi
15917
15918 done
15919 _ACEOF
15920 cat >>$CONFIG_STATUS <<\_ACEOF
15921
15922 #
15923 # CONFIG_HEADER section.
15924 #
15925
15926 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15927 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15928 #
15929 # ac_d sets the value in "#define NAME VALUE" lines.
15930 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15931 ac_dB='[ ].*$,\1#\2'
15932 ac_dC=' '
15933 ac_dD=',;t'
15934 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15935 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15936 ac_uB='$,\1#\2define\3'
15937 ac_uC=' '
15938 ac_uD=',;t'
15939
15940 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15942 case $ac_file in
15943 - | *:- | *:-:* ) # input from stdin
15944 cat >$tmp/stdin
15945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15949 * ) ac_file_in=$ac_file.in ;;
15950 esac
15951
15952 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15953 echo "$as_me: creating $ac_file" >&6;}
15954
15955 # First look for the input files in the build tree, otherwise in the
15956 # src tree.
15957 ac_file_inputs=`IFS=:
15958 for f in $ac_file_in; do
15959 case $f in
15960 -) echo $tmp/stdin ;;
15961 [\\/$]*)
15962 # Absolute (can't be DOS-style, as IFS=:)
15963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15964 echo "$as_me: error: cannot find input file: $f" >&2;}
15965 { (exit 1); exit 1; }; }
15966 # Do quote $f, to prevent DOS paths from being IFS'd.
15967 echo "$f";;
15968 *) # Relative
15969 if test -f "$f"; then
15970 # Build tree
15971 echo "$f"
15972 elif test -f "$srcdir/$f"; then
15973 # Source tree
15974 echo "$srcdir/$f"
15975 else
15976 # /dev/null tree
15977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15978 echo "$as_me: error: cannot find input file: $f" >&2;}
15979 { (exit 1); exit 1; }; }
15980 fi;;
15981 esac
15982 done` || { (exit 1); exit 1; }
15983 # Remove the trailing spaces.
15984 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15985
15986 _ACEOF
15987
15988 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15989 # `conftest.undefs', that substitutes the proper values into
15990 # config.h.in to produce config.h. The first handles `#define'
15991 # templates, and the second `#undef' templates.
15992 # And first: Protect against being on the right side of a sed subst in
15993 # config.status. Protect against being in an unquoted here document
15994 # in config.status.
15995 rm -f conftest.defines conftest.undefs
15996 # Using a here document instead of a string reduces the quoting nightmare.
15997 # Putting comments in sed scripts is not portable.
15998 #
15999 # `end' is used to avoid that the second main sed command (meant for
16000 # 0-ary CPP macros) applies to n-ary macro definitions.
16001 # See the Autoconf documentation for `clear'.
16002 cat >confdef2sed.sed <<\_ACEOF
16003 s/[\\&,]/\\&/g
16004 s,[\\$`],\\&,g
16005 t clear
16006 : clear
16007 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16008 t end
16009 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16010 : end
16011 _ACEOF
16012 # If some macros were called several times there might be several times
16013 # the same #defines, which is useless. Nevertheless, we may not want to
16014 # sort them, since we want the *last* AC-DEFINE to be honored.
16015 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16016 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16017 rm -f confdef2sed.sed
16018
16019 # This sed command replaces #undef with comments. This is necessary, for
16020 # example, in the case of _POSIX_SOURCE, which is predefined and required
16021 # on some systems where configure will not decide to define it.
16022 cat >>conftest.undefs <<\_ACEOF
16023 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16024 _ACEOF
16025
16026 # Break up conftest.defines because some shells have a limit on the size
16027 # of here documents, and old seds have small limits too (100 cmds).
16028 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16029 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16030 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16031 echo ' :' >>$CONFIG_STATUS
16032 rm -f conftest.tail
16033 while grep . conftest.defines >/dev/null
16034 do
16035 # Write a limited-size here document to $tmp/defines.sed.
16036 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16037 # Speed up: don't consider the non `#define' lines.
16038 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16039 # Work around the forget-to-reset-the-flag bug.
16040 echo 't clr' >>$CONFIG_STATUS
16041 echo ': clr' >>$CONFIG_STATUS
16042 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16043 echo 'CEOF
16044 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16045 rm -f $tmp/in
16046 mv $tmp/out $tmp/in
16047 ' >>$CONFIG_STATUS
16048 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16049 rm -f conftest.defines
16050 mv conftest.tail conftest.defines
16051 done
16052 rm -f conftest.defines
16053 echo ' fi # grep' >>$CONFIG_STATUS
16054 echo >>$CONFIG_STATUS
16055
16056 # Break up conftest.undefs because some shells have a limit on the size
16057 # of here documents, and old seds have small limits too (100 cmds).
16058 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16059 rm -f conftest.tail
16060 while grep . conftest.undefs >/dev/null
16061 do
16062 # Write a limited-size here document to $tmp/undefs.sed.
16063 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16064 # Speed up: don't consider the non `#undef'
16065 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16066 # Work around the forget-to-reset-the-flag bug.
16067 echo 't clr' >>$CONFIG_STATUS
16068 echo ': clr' >>$CONFIG_STATUS
16069 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16070 echo 'CEOF
16071 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16072 rm -f $tmp/in
16073 mv $tmp/out $tmp/in
16074 ' >>$CONFIG_STATUS
16075 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16076 rm -f conftest.undefs
16077 mv conftest.tail conftest.undefs
16078 done
16079 rm -f conftest.undefs
16080
16081 cat >>$CONFIG_STATUS <<\_ACEOF
16082 # Let's still pretend it is `configure' which instantiates (i.e., don't
16083 # use $as_me), people would be surprised to read:
16084 # /* config.h. Generated by config.status. */
16085 if test x"$ac_file" = x-; then
16086 echo "/* Generated by configure. */" >$tmp/config.h
16087 else
16088 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16089 fi
16090 cat $tmp/in >>$tmp/config.h
16091 rm -f $tmp/in
16092 if test x"$ac_file" != x-; then
16093 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16094 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16095 echo "$as_me: $ac_file is unchanged" >&6;}
16096 else
16097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099 X"$ac_file" : 'X\(//\)[^/]' \| \
16100 X"$ac_file" : 'X\(//\)$' \| \
16101 X"$ac_file" : 'X\(/\)' \| \
16102 . : '\(.\)' 2>/dev/null ||
16103 echo X"$ac_file" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16106 /^X\(\/\/\)$/{ s//\1/; q; }
16107 /^X\(\/\).*/{ s//\1/; q; }
16108 s/.*/./; q'`
16109 { if $as_mkdir_p; then
16110 mkdir -p "$ac_dir"
16111 else
16112 as_dir="$ac_dir"
16113 as_dirs=
16114 while test ! -d "$as_dir"; do
16115 as_dirs="$as_dir $as_dirs"
16116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118 X"$as_dir" : 'X\(//\)[^/]' \| \
16119 X"$as_dir" : 'X\(//\)$' \| \
16120 X"$as_dir" : 'X\(/\)' \| \
16121 . : '\(.\)' 2>/dev/null ||
16122 echo X"$as_dir" |
16123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16125 /^X\(\/\/\)$/{ s//\1/; q; }
16126 /^X\(\/\).*/{ s//\1/; q; }
16127 s/.*/./; q'`
16128 done
16129 test ! -n "$as_dirs" || mkdir $as_dirs
16130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16132 { (exit 1); exit 1; }; }; }
16133
16134 rm -f $ac_file
16135 mv $tmp/config.h $ac_file
16136 fi
16137 else
16138 cat $tmp/config.h
16139 rm -f $tmp/config.h
16140 fi
16141 done
16142 _ACEOF
16143 cat >>$CONFIG_STATUS <<\_ACEOF
16144
16145 #
16146 # CONFIG_LINKS section.
16147 #
16148
16149 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16150 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16151 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16152
16153 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16154 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16155
16156 if test ! -r $srcdir/$ac_source; then
16157 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16158 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16159 { (exit 1); exit 1; }; }
16160 fi
16161 rm -f $ac_dest
16162
16163 # Make relative symlinks.
16164 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$ac_dest" : 'X\(//\)[^/]' \| \
16167 X"$ac_dest" : 'X\(//\)$' \| \
16168 X"$ac_dest" : 'X\(/\)' \| \
16169 . : '\(.\)' 2>/dev/null ||
16170 echo X"$ac_dest" |
16171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16173 /^X\(\/\/\)$/{ s//\1/; q; }
16174 /^X\(\/\).*/{ s//\1/; q; }
16175 s/.*/./; q'`
16176 { if $as_mkdir_p; then
16177 mkdir -p "$ac_dest_dir"
16178 else
16179 as_dir="$ac_dest_dir"
16180 as_dirs=
16181 while test ! -d "$as_dir"; do
16182 as_dirs="$as_dir $as_dirs"
16183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16185 X"$as_dir" : 'X\(//\)[^/]' \| \
16186 X"$as_dir" : 'X\(//\)$' \| \
16187 X"$as_dir" : 'X\(/\)' \| \
16188 . : '\(.\)' 2>/dev/null ||
16189 echo X"$as_dir" |
16190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16192 /^X\(\/\/\)$/{ s//\1/; q; }
16193 /^X\(\/\).*/{ s//\1/; q; }
16194 s/.*/./; q'`
16195 done
16196 test ! -n "$as_dirs" || mkdir $as_dirs
16197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16198 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16199 { (exit 1); exit 1; }; }; }
16200
16201 ac_builddir=.
16202
16203 if test "$ac_dest_dir" != .; then
16204 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16205 # A "../" for each directory in $ac_dir_suffix.
16206 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16207 else
16208 ac_dir_suffix= ac_top_builddir=
16209 fi
16210
16211 case $srcdir in
16212 .) # No --srcdir option. We are building in place.
16213 ac_srcdir=.
16214 if test -z "$ac_top_builddir"; then
16215 ac_top_srcdir=.
16216 else
16217 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16218 fi ;;
16219 [\\/]* | ?:[\\/]* ) # Absolute path.
16220 ac_srcdir=$srcdir$ac_dir_suffix;
16221 ac_top_srcdir=$srcdir ;;
16222 *) # Relative path.
16223 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16224 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16225 esac
16226
16227 # Do not use `cd foo && pwd` to compute absolute paths, because
16228 # the directories may not exist.
16229 case `pwd` in
16230 .) ac_abs_builddir="$ac_dest_dir";;
16231 *)
16232 case "$ac_dest_dir" in
16233 .) ac_abs_builddir=`pwd`;;
16234 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
16235 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
16236 esac;;
16237 esac
16238 case $ac_abs_builddir in
16239 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16240 *)
16241 case ${ac_top_builddir}. in
16242 .) ac_abs_top_builddir=$ac_abs_builddir;;
16243 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16244 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16245 esac;;
16246 esac
16247 case $ac_abs_builddir in
16248 .) ac_abs_srcdir=$ac_srcdir;;
16249 *)
16250 case $ac_srcdir in
16251 .) ac_abs_srcdir=$ac_abs_builddir;;
16252 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16253 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16254 esac;;
16255 esac
16256 case $ac_abs_builddir in
16257 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16258 *)
16259 case $ac_top_srcdir in
16260 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16261 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16262 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16263 esac;;
16264 esac
16265
16266
16267 case $srcdir in
16268 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16269 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16270 esac
16271
16272 # Try a symlink, then a hard link, then a copy.
16273 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16274 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16275 cp -p $srcdir/$ac_source $ac_dest ||
16276 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16277 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16278 { (exit 1); exit 1; }; }
16279 done
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<\_ACEOF
16282
16283 #
16284 # CONFIG_COMMANDS section.
16285 #
16286 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16287 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16288 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16289 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16290 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291 X"$ac_dest" : 'X\(//\)[^/]' \| \
16292 X"$ac_dest" : 'X\(//\)$' \| \
16293 X"$ac_dest" : 'X\(/\)' \| \
16294 . : '\(.\)' 2>/dev/null ||
16295 echo X"$ac_dest" |
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16298 /^X\(\/\/\)$/{ s//\1/; q; }
16299 /^X\(\/\).*/{ s//\1/; q; }
16300 s/.*/./; q'`
16301 { if $as_mkdir_p; then
16302 mkdir -p "$ac_dir"
16303 else
16304 as_dir="$ac_dir"
16305 as_dirs=
16306 while test ! -d "$as_dir"; do
16307 as_dirs="$as_dir $as_dirs"
16308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310 X"$as_dir" : 'X\(//\)[^/]' \| \
16311 X"$as_dir" : 'X\(//\)$' \| \
16312 X"$as_dir" : 'X\(/\)' \| \
16313 . : '\(.\)' 2>/dev/null ||
16314 echo X"$as_dir" |
16315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16317 /^X\(\/\/\)$/{ s//\1/; q; }
16318 /^X\(\/\).*/{ s//\1/; q; }
16319 s/.*/./; q'`
16320 done
16321 test ! -n "$as_dirs" || mkdir $as_dirs
16322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16324 { (exit 1); exit 1; }; }; }
16325
16326 ac_builddir=.
16327
16328 if test "$ac_dir" != .; then
16329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16330 # A "../" for each directory in $ac_dir_suffix.
16331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16332 else
16333 ac_dir_suffix= ac_top_builddir=
16334 fi
16335
16336 case $srcdir in
16337 .) # No --srcdir option. We are building in place.
16338 ac_srcdir=.
16339 if test -z "$ac_top_builddir"; then
16340 ac_top_srcdir=.
16341 else
16342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16343 fi ;;
16344 [\\/]* | ?:[\\/]* ) # Absolute path.
16345 ac_srcdir=$srcdir$ac_dir_suffix;
16346 ac_top_srcdir=$srcdir ;;
16347 *) # Relative path.
16348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16350 esac
16351
16352 # Do not use `cd foo && pwd` to compute absolute paths, because
16353 # the directories may not exist.
16354 case `pwd` in
16355 .) ac_abs_builddir="$ac_dir";;
16356 *)
16357 case "$ac_dir" in
16358 .) ac_abs_builddir=`pwd`;;
16359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16361 esac;;
16362 esac
16363 case $ac_abs_builddir in
16364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16365 *)
16366 case ${ac_top_builddir}. in
16367 .) ac_abs_top_builddir=$ac_abs_builddir;;
16368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16370 esac;;
16371 esac
16372 case $ac_abs_builddir in
16373 .) ac_abs_srcdir=$ac_srcdir;;
16374 *)
16375 case $ac_srcdir in
16376 .) ac_abs_srcdir=$ac_abs_builddir;;
16377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16379 esac;;
16380 esac
16381 case $ac_abs_builddir in
16382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16383 *)
16384 case $ac_top_srcdir in
16385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16388 esac;;
16389 esac
16390
16391
16392 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16393 echo "$as_me: executing $ac_dest commands" >&6;}
16394 case $ac_dest in
16395 default-1 ) am_indx=1
16396 for am_file in include/config.h gcj/libgcj-config.h; do
16397 case " $CONFIG_HEADERS " in
16398 *" $am_file "*)
16399 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
16400 ;;
16401 esac
16402 am_indx=`expr "$am_indx" + 1`
16403 done ;;
16404 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
16405 case " $CONFIG_FILES " in
16406 *" Makefile "*)
16407 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
16408 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
16409 ;;
16410 esac
16411
16412 # Make subdirectories and `.d' files. Look in both srcdir and
16413 # builddir for the .java files.
16414 h=`${PWDCMD-pwd}`
16415 : > deps.mk
16416 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
16417 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
16418 fgrep -v testsuite | \
16419 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
16420 while read f; do
16421 echo "include $f" >> deps.mk
16422 test -f $f || {
16423 d=`echo $f | sed -e 's,/[^/]*$,,'`
16424 if test ! -d $d; then
16425 $libgcj_basedir/../mkinstalldirs $d
16426 fi;
16427 echo > $f
16428 }
16429 done
16430 ;;
16431 esac
16432 done
16433 _ACEOF
16434
16435 cat >>$CONFIG_STATUS <<\_ACEOF
16436
16437 { (exit 0); exit 0; }
16438 _ACEOF
16439 chmod +x $CONFIG_STATUS
16440 ac_clean_files=$ac_clean_files_save
16441
16442
16443 # configure is writing to config.log, and then calls config.status.
16444 # config.status does its own redirection, appending to config.log.
16445 # Unfortunately, on DOS this fails, as config.log is still kept open
16446 # by configure, so config.status won't be able to write to it; its
16447 # output is simply discarded. So we exec the FD to /dev/null,
16448 # effectively closing config.log, so it can be properly (re)opened and
16449 # appended to by config.status. When coming back to configure, we
16450 # need to make the FD available again.
16451 if test "$no_create" != yes; then
16452 ac_cs_success=:
16453 ac_config_status_args=
16454 test "$silent" = yes &&
16455 ac_config_status_args="$ac_config_status_args --quiet"
16456 exec 5>/dev/null
16457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16458 exec 5>>config.log
16459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16460 # would make configure fail if this is the last instruction.
16461 $ac_cs_success || { (exit 1); exit 1; }
16462 fi
16463
16464 #
16465 # CONFIG_SUBDIRS section.
16466 #
16467 if test "$no_recursion" != yes; then
16468
16469 # Remove --cache-file and --srcdir arguments so they do not pile up.
16470 ac_sub_configure_args=
16471 ac_prev=
16472 for ac_arg in $ac_configure_args; do
16473 if test -n "$ac_prev"; then
16474 ac_prev=
16475 continue
16476 fi
16477 case $ac_arg in
16478 -cache-file | --cache-file | --cache-fil | --cache-fi \
16479 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16480 ac_prev=cache_file ;;
16481 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16482 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16483 | --c=*)
16484 ;;
16485 --config-cache | -C)
16486 ;;
16487 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16488 ac_prev=srcdir ;;
16489 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16490 ;;
16491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16492 ac_prev=prefix ;;
16493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16494 ;;
16495 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16496 esac
16497 done
16498
16499 # Always prepend --prefix to ensure using the same prefix
16500 # in subdir configurations.
16501 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16502
16503 ac_popdir=`pwd`
16504 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16505
16506 # Do not complain, so a configure script can configure whichever
16507 # parts of a large source tree are present.
16508 test -d $srcdir/$ac_dir || continue
16509
16510 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16511 echo "$as_me: configuring in $ac_dir" >&6;}
16512 { if $as_mkdir_p; then
16513 mkdir -p "$ac_dir"
16514 else
16515 as_dir="$ac_dir"
16516 as_dirs=
16517 while test ! -d "$as_dir"; do
16518 as_dirs="$as_dir $as_dirs"
16519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16521 X"$as_dir" : 'X\(//\)[^/]' \| \
16522 X"$as_dir" : 'X\(//\)$' \| \
16523 X"$as_dir" : 'X\(/\)' \| \
16524 . : '\(.\)' 2>/dev/null ||
16525 echo X"$as_dir" |
16526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16528 /^X\(\/\/\)$/{ s//\1/; q; }
16529 /^X\(\/\).*/{ s//\1/; q; }
16530 s/.*/./; q'`
16531 done
16532 test ! -n "$as_dirs" || mkdir $as_dirs
16533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16535 { (exit 1); exit 1; }; }; }
16536
16537 ac_builddir=.
16538
16539 if test "$ac_dir" != .; then
16540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16541 # A "../" for each directory in $ac_dir_suffix.
16542 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16543 else
16544 ac_dir_suffix= ac_top_builddir=
16545 fi
16546
16547 case $srcdir in
16548 .) # No --srcdir option. We are building in place.
16549 ac_srcdir=.
16550 if test -z "$ac_top_builddir"; then
16551 ac_top_srcdir=.
16552 else
16553 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16554 fi ;;
16555 [\\/]* | ?:[\\/]* ) # Absolute path.
16556 ac_srcdir=$srcdir$ac_dir_suffix;
16557 ac_top_srcdir=$srcdir ;;
16558 *) # Relative path.
16559 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16560 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16561 esac
16562
16563 # Do not use `cd foo && pwd` to compute absolute paths, because
16564 # the directories may not exist.
16565 case `pwd` in
16566 .) ac_abs_builddir="$ac_dir";;
16567 *)
16568 case "$ac_dir" in
16569 .) ac_abs_builddir=`pwd`;;
16570 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16571 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16572 esac;;
16573 esac
16574 case $ac_abs_builddir in
16575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16576 *)
16577 case ${ac_top_builddir}. in
16578 .) ac_abs_top_builddir=$ac_abs_builddir;;
16579 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16580 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16581 esac;;
16582 esac
16583 case $ac_abs_builddir in
16584 .) ac_abs_srcdir=$ac_srcdir;;
16585 *)
16586 case $ac_srcdir in
16587 .) ac_abs_srcdir=$ac_abs_builddir;;
16588 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16589 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16590 esac;;
16591 esac
16592 case $ac_abs_builddir in
16593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16594 *)
16595 case $ac_top_srcdir in
16596 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16597 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16598 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16599 esac;;
16600 esac
16601
16602
16603 cd $ac_dir
16604
16605 # Check for guested configure; otherwise get Cygnus style configure.
16606 if test -f $ac_srcdir/configure.gnu; then
16607 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16608 elif test -f $ac_srcdir/configure; then
16609 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16610 elif test -f $ac_srcdir/configure.in; then
16611 ac_sub_configure=$ac_configure
16612 else
16613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16615 ac_sub_configure=
16616 fi
16617
16618 # The recursion is here.
16619 if test -n "$ac_sub_configure"; then
16620 # Make the cache file name correct relative to the subdirectory.
16621 case $cache_file in
16622 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16623 *) # Relative path.
16624 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16625 esac
16626
16627 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16628 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16629 # The eval makes quoting arguments work.
16630 eval $ac_sub_configure $ac_sub_configure_args \
16631 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16634 { (exit 1); exit 1; }; }
16635 fi
16636
16637 cd $ac_popdir
16638 done
16639 fi
16640