Merge from mainline
[official-gcc.git] / libjava / classpath / configure
bloba07c29846eea68dc81934b34bd5b47f7ab9bea41
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.20.
5 # Report bugs to <classpath@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.20'
273 PACKAGE_STRING='GNU Classpath 0.20'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
276 ac_unique_file="java/lang/System.java"
277 ac_default_prefix=/usr/local/classpath
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBVERSION CLASSPATH_MODULE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE GTK_CAIRO_ENABLED GTK_CAIRO_TRUE GTK_CAIRO_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE nativelibdir glibjdir CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS QT_CFLAGS QT_LIBS MOC USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
790 # Report the --help message.
792 if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796 \`configure' configures GNU Classpath 0.20 to adapt to many kinds of systems.
798 Usage: $0 [OPTION]... [VAR=VALUE]...
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE. See below for descriptions of some of the useful variables.
803 Defaults for the options are specified in brackets.
805 Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 _ACEOF
818 cat <<_ACEOF
819 Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
830 For better control, use the options below.
832 Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845 _ACEOF
847 cat <<\_ACEOF
849 Program names:
850 --program-prefix=PREFIX prepend PREFIX to installed program names
851 --program-suffix=SUFFIX append SUFFIX to installed program names
852 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
854 X features:
855 --x-includes=DIR X include files are in DIR
856 --x-libraries=DIR X library files are in DIR
858 System types:
859 --build=BUILD configure for building on BUILD [guessed]
860 --host=HOST cross-compile to build programs to run on HOST [BUILD]
861 --target=TARGET configure for building compilers for TARGET [HOST]
862 _ACEOF
865 if test -n "$ac_init_help"; then
866 case $ac_init_help in
867 short | recursive ) echo "Configuration of GNU Classpath 0.20:";;
868 esac
869 cat <<\_ACEOF
871 Optional Features:
872 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
873 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
874 --enable-jni compile JNI source default=yes
875 --enable-core-jni compile JNI sources for core default=yes
876 --enable-Werror whether to compile C code with -Werror which turns
877 any compiler warning into a compilation failure
878 default=no
879 --enable-default-toolkit
880 fully qualified class name of default AWT toolkit
881 --enable-xmlj compile native libxml/xslt library default=no
882 --disable-alsa compile ALSA providers (enable by --enable-alsa)
883 default=yes
884 --disable-dependency-tracking speeds up one-time build
885 --enable-dependency-tracking do not reject slow dependency extractors
886 --disable-dssi compile DSSI providers (enable by --enable-dssi)
887 default=yes
888 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
889 default=yes
891 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
892 default=no
893 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
894 default=no
895 --enable-regen-headers automatically regenerate JNI headers default=no
896 --enable-static=PKGS build static libraries default=no
897 --enable-shared=PKGS build shared libraries default=yes
898 --enable-fast-install=PKGS optimize for fast installation default=yes
899 --disable-libtool-lock avoid locking (might break parallel builds)
900 --disable-rpath do not hardcode runtime library paths
901 --enable-maintainer-mode enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-debug enable runtime debugging code
904 --enable-load-library enable to use JNI native methods default=yes
905 --enable-java-lang-system-explicit-initialization
906 will the VM explicitly invoke java.lang.System's
907 static initialization methods default=no
908 --enable-examples enable build of the examples default=yes
909 --enable-portable-native-sync
910 synchronize VM threads portably
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-native-libdir sets the installation directore for native libraries
916 default='${libdir}/${PACKAGE}'
917 --with-glibj-dir sets the installation directory for glibj.zip
918 default='${libdir}/${PACKAGE}'
919 --with-gnu-ld assume the C compiler uses GNU ld default=no
920 --with-pic try to use only PIC/non-PIC objects default=use both
921 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
922 --without-libiconv-prefix don't search for libiconv in includedir and libdir
923 --with-x use the X Window System
924 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
925 systems use pkg-config.
926 --with-javah specify path or name of a javah-like program
927 --with-gcj bytecode compilation with gcj
928 --with-jikes bytecode compilation with jikes
929 --with-kjc bytecode compilation with kjc
930 --with-gcjx bytecode compilation with gcjx
931 --with-ecj bytecode compilation with ecj
932 --with-classpath specify path to a classes.zip like file
933 --with-vm-classes specify path to VM override source files
934 --with-glibj define what to install (zip|flat|both|none|build)
935 [default=zip]
936 --with-gjdoc generate documentation using gjdoc (default is NO)
937 --with-jay Regenerate the parsers with jay must be given the
938 path to the jay executable
940 Some influential environment variables:
941 CC C compiler command
942 CFLAGS C compiler flags
943 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
944 nonstandard directory <lib dir>
945 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
946 headers in a nonstandard directory <include dir>
947 CPP C preprocessor
948 CXX C++ compiler command
949 CXXFLAGS C++ compiler flags
950 CXXCPP C++ preprocessor
952 Use these variables to override the choices made by `configure' or to help
953 it to find libraries and programs with nonstandard names/locations.
955 Report bugs to <classpath@gnu.org>.
956 _ACEOF
959 if test "$ac_init_help" = "recursive"; then
960 # If there are subdirs, report their specific --help.
961 ac_popdir=`pwd`
962 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
963 test -d $ac_dir || continue
964 ac_builddir=.
966 if test "$ac_dir" != .; then
967 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
968 # A "../" for each directory in $ac_dir_suffix.
969 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
970 else
971 ac_dir_suffix= ac_top_builddir=
974 case $srcdir in
975 .) # No --srcdir option. We are building in place.
976 ac_srcdir=.
977 if test -z "$ac_top_builddir"; then
978 ac_top_srcdir=.
979 else
980 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
981 fi ;;
982 [\\/]* | ?:[\\/]* ) # Absolute path.
983 ac_srcdir=$srcdir$ac_dir_suffix;
984 ac_top_srcdir=$srcdir ;;
985 *) # Relative path.
986 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
987 ac_top_srcdir=$ac_top_builddir$srcdir ;;
988 esac
990 # Do not use `cd foo && pwd` to compute absolute paths, because
991 # the directories may not exist.
992 case `pwd` in
993 .) ac_abs_builddir="$ac_dir";;
995 case "$ac_dir" in
996 .) ac_abs_builddir=`pwd`;;
997 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
998 *) ac_abs_builddir=`pwd`/"$ac_dir";;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1004 case ${ac_top_builddir}. in
1005 .) ac_abs_top_builddir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1007 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_srcdir=$ac_srcdir;;
1013 case $ac_srcdir in
1014 .) ac_abs_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1016 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1017 esac;;
1018 esac
1019 case $ac_abs_builddir in
1020 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1022 case $ac_top_srcdir in
1023 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1024 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1025 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 esac;;
1027 esac
1029 cd $ac_dir
1030 # Check for guested configure; otherwise get Cygnus style configure.
1031 if test -f $ac_srcdir/configure.gnu; then
1032 echo
1033 $SHELL $ac_srcdir/configure.gnu --help=recursive
1034 elif test -f $ac_srcdir/configure; then
1035 echo
1036 $SHELL $ac_srcdir/configure --help=recursive
1037 elif test -f $ac_srcdir/configure.ac ||
1038 test -f $ac_srcdir/configure.in; then
1039 echo
1040 $ac_configure --help
1041 else
1042 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 cd "$ac_popdir"
1045 done
1048 test -n "$ac_init_help" && exit 0
1049 if $ac_init_version; then
1050 cat <<\_ACEOF
1051 GNU Classpath configure 0.20
1052 generated by GNU Autoconf 2.59
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by GNU Classpath $as_me 0.20, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1068 $ $0 $@
1070 _ACEOF
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1094 _ASUNAME
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1104 } >&5
1106 cat >&5 <<_ACEOF
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1113 _ACEOF
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1128 for ac_arg
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1175 echo
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196 esac;
1198 echo
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1299 done
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1511 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1513 LIBVERSION="0:0:0"
1515 case "$host_os" in
1516 darwin*)
1517 cp_module=""
1520 cp_module="-module"
1522 esac
1524 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1528 am__api_version="1.9"
1529 # Find a good install program. We prefer a C program (faster),
1530 # so one script is as good as another. But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1535 # AIX /bin/install
1536 # AmigaOS /C/install, which installs bootblocks on floppy discs
1537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540 # OS/2's system install, which has a completely different semantic
1541 # ./install, which can be erroneously created by make from ./install.sh.
1542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544 if test -z "$INSTALL"; then
1545 if test "${ac_cv_path_install+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 # Account for people who put trailing slashes in PATH elements.
1554 case $as_dir/ in
1555 ./ | .// | /cC/* | \
1556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558 /usr/ucb/* ) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1562 # by default.
1563 for ac_prog in ginstall scoinst install; do
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566 if test $ac_prog = install &&
1567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # AIX install. It has an incompatible calling convention.
1570 elif test $ac_prog = install &&
1571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572 # program-specific install script used by HP pwplus--don't use.
1574 else
1575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1576 break 3
1579 done
1580 done
1582 esac
1583 done
1587 if test "${ac_cv_path_install+set}" = set; then
1588 INSTALL=$ac_cv_path_install
1589 else
1590 # As a last resort, use the slow shell script. We don't cache a
1591 # path for INSTALL within a source directory, because that will
1592 # break other packages using the cache if that directory is
1593 # removed, or if the path is relative.
1594 INSTALL=$ac_install_sh
1597 echo "$as_me:$LINENO: result: $INSTALL" >&5
1598 echo "${ECHO_T}$INSTALL" >&6
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 # Just in case
1611 sleep 1
1612 echo timestamp > conftest.file
1613 # Do `set' in a subshell so we don't clobber the current shell's
1614 # arguments. Must try -L first in case configure is actually a
1615 # symlink; some systems play weird games with the mod time of symlinks
1616 # (eg FreeBSD returns the mod time of the symlink's containing
1617 # directory).
1618 if (
1619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620 if test "$*" = "X"; then
1621 # -L didn't work.
1622 set X `ls -t $srcdir/configure conftest.file`
1624 rm -f conftest.file
1625 if test "$*" != "X $srcdir/configure conftest.file" \
1626 && test "$*" != "X conftest.file $srcdir/configure"; then
1628 # If neither matched, then we have a broken ls. This can happen
1629 # if, for instance, CONFIG_SHELL is bash and it inherits a
1630 # broken ls alias from the environment. This has actually
1631 # happened. Such a system could not be considered "sane".
1632 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&5
1634 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1635 alias in your environment" >&2;}
1636 { (exit 1); exit 1; }; }
1639 test "$2" = conftest.file
1641 then
1642 # Ok.
1644 else
1645 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646 Check your system clock" >&5
1647 echo "$as_me: error: newly created file is older than distributed files!
1648 Check your system clock" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: yes" >&5
1652 echo "${ECHO_T}yes" >&6
1653 test "$program_prefix" != NONE &&
1654 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655 # Use a double $ so make ignores it.
1656 test "$program_suffix" != NONE &&
1657 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658 # Double any \ or $. echo might interpret backslashes.
1659 # By default was `s,x,x', remove it if useless.
1660 cat <<\_ACEOF >conftest.sed
1661 s/[\\$]/&&/g;s/;s,x,x,$//
1662 _ACEOF
1663 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 rm conftest.sed
1666 # expand $ac_aux_dir to an absolute path
1667 am_aux_dir=`cd $ac_aux_dir && pwd`
1669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670 # Use eval to expand $SHELL
1671 if eval "$MISSING --run true"; then
1672 am_missing_run="$MISSING --run "
1673 else
1674 am_missing_run=
1675 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1679 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680 # We used to keeping the `.' as first argument, in order to
1681 # allow $(mkdir_p) to be used without argument. As in
1682 # $(mkdir_p) $(somedir)
1683 # where $(somedir) is conditionally defined. However this is wrong
1684 # for two reasons:
1685 # 1. if the package is installed by a user who cannot write `.'
1686 # make install will fail,
1687 # 2. the above comment should most certainly read
1688 # $(mkdir_p) $(DESTDIR)$(somedir)
1689 # so it does not work when $(somedir) is undefined and
1690 # $(DESTDIR) is not.
1691 # To support the latter case, we have to write
1692 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693 # so the `.' trick is pointless.
1694 mkdir_p='mkdir -p --'
1695 else
1696 # On NextStep and OpenStep, the `mkdir' command does not
1697 # recognize any option. It will interpret all options as
1698 # directories to create, and then abort because `.' already
1699 # exists.
1700 for d in ./-p ./--version;
1702 test -d $d && rmdir $d
1703 done
1704 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705 if test -f "$ac_aux_dir/mkinstalldirs"; then
1706 mkdir_p='$(mkinstalldirs)'
1707 else
1708 mkdir_p='$(install_sh) -d'
1712 for ac_prog in gawk mawk nawk awk
1714 # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_AWK+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$AWK"; then
1722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_AWK="$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1735 done
1736 done
1740 AWK=$ac_cv_prog_AWK
1741 if test -n "$AWK"; then
1742 echo "$as_me:$LINENO: result: $AWK" >&5
1743 echo "${ECHO_T}$AWK" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 test -n "$AWK" && break
1750 done
1752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 cat >conftest.make <<\_ACEOF
1759 all:
1760 @echo 'ac_maketemp="$(MAKE)"'
1761 _ACEOF
1762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764 if test -n "$ac_maketemp"; then
1765 eval ac_cv_prog_make_${ac_make}_set=yes
1766 else
1767 eval ac_cv_prog_make_${ac_make}_set=no
1769 rm -f conftest.make
1771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774 SET_MAKE=
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 SET_MAKE="MAKE=${MAKE-make}"
1781 rm -rf .tst 2>/dev/null
1782 mkdir .tst 2>/dev/null
1783 if test -d .tst; then
1784 am__leading_dot=.
1785 else
1786 am__leading_dot=_
1788 rmdir .tst 2>/dev/null
1790 # test to see if srcdir already configured
1791 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792 test -f $srcdir/config.status; then
1793 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795 { (exit 1); exit 1; }; }
1798 # test whether we have cygpath
1799 if test -z "$CYGPATH_W"; then
1800 if (cygpath --version) >/dev/null 2>/dev/null; then
1801 CYGPATH_W='cygpath -w'
1802 else
1803 CYGPATH_W=echo
1808 # Define the identity of the package.
1809 PACKAGE='classpath'
1810 VERSION='0.20'
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE "$PACKAGE"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define VERSION "$VERSION"
1820 _ACEOF
1822 # Some tools Automake needs.
1824 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840 # Installed binaries are usually stripped using `strip' when the user
1841 # run `make install-strip'. However `strip' might not be the right
1842 # tool to use in cross-compilation environments, therefore Automake
1843 # will honor the `STRIP' environment variable to overrule this program.
1844 if test "$cross_compiling" != no; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}strip; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_STRIP+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$STRIP"; then
1854 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1867 done
1868 done
1872 STRIP=$ac_cv_prog_STRIP
1873 if test -n "$STRIP"; then
1874 echo "$as_me:$LINENO: result: $STRIP" >&5
1875 echo "${ECHO_T}$STRIP" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$ac_cv_prog_STRIP"; then
1883 ac_ct_STRIP=$STRIP
1884 # Extract the first word of "strip", so it can be a program name with args.
1885 set dummy strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_STRIP"; then
1892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_STRIP="strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1908 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1912 if test -n "$ac_ct_STRIP"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1914 echo "${ECHO_T}$ac_ct_STRIP" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 STRIP=$ac_ct_STRIP
1921 else
1922 STRIP="$ac_cv_prog_STRIP"
1926 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928 # We need awk for the "check" target. The system "awk" is bad on
1929 # some platforms.
1930 # Always define AMTAR for backward compatibility.
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1935 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1936 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1937 # Loop over all known methods to create a tar archive until one works.
1938 _am_tools='gnutar plaintar pax cpio none'
1939 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1940 # Do not fold the above two line into one, because Tru64 sh and
1941 # Solaris sh will not grok spaces in the rhs of `-'.
1942 for _am_tool in $_am_tools
1944 case $_am_tool in
1945 gnutar)
1946 for _am_tar in tar gnutar gtar;
1948 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1949 ($_am_tar --version) >&5 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); } && break
1953 done
1954 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1955 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1956 am__untar="$_am_tar -xf -"
1958 plaintar)
1959 # Must skip GNU tar: if it does not support --format= it doesn't create
1960 # ustar tarball either.
1961 (tar --version) >/dev/null 2>&1 && continue
1962 am__tar='tar chf - "$$tardir"'
1963 am__tar_='tar chf - "$tardir"'
1964 am__untar='tar xf -'
1966 pax)
1967 am__tar='pax -L -x ustar -w "$$tardir"'
1968 am__tar_='pax -L -x ustar -w "$tardir"'
1969 am__untar='pax -r'
1971 cpio)
1972 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1973 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1974 am__untar='cpio -i -H ustar -d'
1976 none)
1977 am__tar=false
1978 am__tar_=false
1979 am__untar=false
1981 esac
1983 # If the value was cached, stop now. We just wanted to have am__tar
1984 # and am__untar set.
1985 test -n "${am_cv_prog_tar_ustar}" && break
1987 # tar/untar a dummy directory, and stop if the command works
1988 rm -rf conftest.dir
1989 mkdir conftest.dir
1990 echo GrepMe > conftest.dir/file
1991 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
1992 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }
1996 rm -rf conftest.dir
1997 if test -s conftest.tar; then
1998 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
1999 ($am__untar <conftest.tar) >&5 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2005 done
2006 rm -rf conftest.dir
2008 if test "${am_cv_prog_tar_ustar+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 am_cv_prog_tar_ustar=$_am_tool
2014 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2015 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2021 ac_config_headers="$ac_config_headers include/config.h"
2025 # Check whether --enable-jni or --disable-jni was given.
2026 if test "${enable_jni+set}" = set; then
2027 enableval="$enable_jni"
2028 case "${enableval}" in
2029 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2030 no) COMPILE_JNI=no ;;
2031 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2032 esac
2033 else
2034 COMPILE_JNI=yes
2038 if test "x${COMPILE_JNI}" = xyes; then
2039 CREATE_JNI_LIBRARIES_TRUE=
2040 CREATE_JNI_LIBRARIES_FALSE='#'
2041 else
2042 CREATE_JNI_LIBRARIES_TRUE='#'
2043 CREATE_JNI_LIBRARIES_FALSE=
2047 # Check whether --enable-core-jni or --disable-core-jni was given.
2048 if test "${enable_core_jni+set}" = set; then
2049 enableval="$enable_core_jni"
2050 case "${enableval}" in
2051 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2052 no) COMPILE_CORE_JNI=no ;;
2053 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2054 esac
2055 else
2056 COMPILE_CORE_JNI=yes
2060 if test "x${COMPILE_CORE_JNI}" = xyes; then
2061 CREATE_CORE_JNI_LIBRARIES_TRUE=
2062 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2063 else
2064 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2065 CREATE_CORE_JNI_LIBRARIES_FALSE=
2069 # Check whether --enable-Werror or --disable-Werror was given.
2070 if test "${enable_Werror+set}" = set; then
2071 enableval="$enable_Werror"
2072 case "${enableval}" in
2073 yes) ENABLE_WERROR=yes ;;
2074 no) ENABLE_WERROR=no ;;
2075 *) ENABLE_WERROR=no ;;
2076 esac
2077 else
2078 ENABLE_WERROR=no
2081 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2082 if test "${enable_default_toolkit+set}" = set; then
2083 enableval="$enable_default_toolkit"
2086 default_toolkit=$enable_default_toolkit
2087 if test "$default_toolkit" = ""; then
2088 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2092 # Check whether --enable-xmlj or --disable-xmlj was given.
2093 if test "${enable_xmlj+set}" = set; then
2094 enableval="$enable_xmlj"
2095 case "${enableval}" in
2096 yes) COMPILE_XMLJ=yes ;;
2097 no) COMPILE_XMLJ=no ;;
2098 *) COMPILE_XMLJ=no ;;
2099 esac
2100 else
2101 COMPILE_XMLJ=no
2105 if test "x${COMPILE_XMLJ}" = xyes; then
2106 CREATE_XMLJ_LIBRARY_TRUE=
2107 CREATE_XMLJ_LIBRARY_FALSE='#'
2108 else
2109 CREATE_XMLJ_LIBRARY_TRUE='#'
2110 CREATE_XMLJ_LIBRARY_FALSE=
2114 DEPDIR="${am__leading_dot}deps"
2116 ac_config_commands="$ac_config_commands depfiles"
2119 am_make=${MAKE-make}
2120 cat > confinc << 'END'
2121 am__doit:
2122 @echo done
2123 .PHONY: am__doit
2125 # If we don't find an include directive, just comment out the code.
2126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2128 am__include="#"
2129 am__quote=
2130 _am_result=none
2131 # First try GNU make style include.
2132 echo "include confinc" > confmf
2133 # We grep out `Entering directory' and `Leaving directory'
2134 # messages which can occur if `w' ends up in MAKEFLAGS.
2135 # In particular we don't look at `^make:' because GNU make might
2136 # be invoked under some other name (usually "gmake"), in which
2137 # case it prints its new name instead of `make'.
2138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2139 am__include=include
2140 am__quote=
2141 _am_result=GNU
2143 # Now try BSD make style include.
2144 if test "$am__include" = "#"; then
2145 echo '.include "confinc"' > confmf
2146 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2147 am__include=.include
2148 am__quote="\""
2149 _am_result=BSD
2154 echo "$as_me:$LINENO: result: $_am_result" >&5
2155 echo "${ECHO_T}$_am_result" >&6
2156 rm -f confinc confmf
2158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2159 if test "${enable_dependency_tracking+set}" = set; then
2160 enableval="$enable_dependency_tracking"
2163 if test "x$enable_dependency_tracking" != xno; then
2164 am_depcomp="$ac_aux_dir/depcomp"
2165 AMDEPBACKSLASH='\'
2169 if test "x$enable_dependency_tracking" != xno; then
2170 AMDEP_TRUE=
2171 AMDEP_FALSE='#'
2172 else
2173 AMDEP_TRUE='#'
2174 AMDEP_FALSE=
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2206 done
2207 done
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213 echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2215 else
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2221 if test -z "$ac_cv_prog_CC"; then
2222 ac_ct_CC=$CC
2223 # Extract the first word of "gcc", so it can be a program name with args.
2224 set dummy gcc; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$ac_ct_CC"; then
2231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_ac_ct_CC="gcc"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2250 if test -n "$ac_ct_CC"; then
2251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2252 echo "${ECHO_T}$ac_ct_CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2258 CC=$ac_ct_CC
2259 else
2260 CC="$ac_cv_prog_CC"
2263 if test -z "$CC"; then
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}cc; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="${ac_tool_prefix}cc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2301 if test -z "$ac_cv_prog_CC"; then
2302 ac_ct_CC=$CC
2303 # Extract the first word of "cc", so it can be a program name with args.
2304 set dummy cc; ac_word=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_ac_ct_CC="cc"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2324 done
2325 done
2329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 echo "${ECHO_T}$ac_ct_CC" >&6
2333 else
2334 echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2338 CC=$ac_ct_CC
2339 else
2340 CC="$ac_cv_prog_CC"
2344 if test -z "$CC"; then
2345 # Extract the first word of "cc", so it can be a program name with args.
2346 set dummy cc; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 else
2355 ac_prog_rejected=no
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2364 ac_prog_rejected=yes
2365 continue
2367 ac_cv_prog_CC="cc"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2371 done
2372 done
2374 if test $ac_prog_rejected = yes; then
2375 # We found a bogon in the path, so make sure we never use it.
2376 set dummy $ac_cv_prog_CC
2377 shift
2378 if test $# != 0; then
2379 # We chose a different compiler from the bogus one.
2380 # However, it has the same basename, so the bogon will be chosen
2381 # first if we set CC to just the basename; use the full file name.
2382 shift
2383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390 echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2392 else
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2398 if test -z "$CC"; then
2399 if test -n "$ac_tool_prefix"; then
2400 for ac_prog in cl
2402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2404 echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2423 done
2424 done
2428 CC=$ac_cv_prog_CC
2429 if test -n "$CC"; then
2430 echo "$as_me:$LINENO: result: $CC" >&5
2431 echo "${ECHO_T}$CC" >&6
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2437 test -n "$CC" && break
2438 done
2440 if test -z "$CC"; then
2441 ac_ct_CC=$CC
2442 for ac_prog in cl
2444 # Extract the first word of "$ac_prog", so it can be a program name with args.
2445 set dummy $ac_prog; ac_word=$2
2446 echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 ac_cv_prog_ac_ct_CC="$ac_prog"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2465 done
2466 done
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6
2479 test -n "$ac_ct_CC" && break
2480 done
2482 CC=$ac_ct_CC
2488 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2489 See \`config.log' for more details." >&5
2490 echo "$as_me: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&2;}
2492 { (exit 1); exit 1; }; }
2494 # Provide some information about the compiler.
2495 echo "$as_me:$LINENO:" \
2496 "checking for C compiler version" >&5
2497 ac_compiler=`set X $ac_compile; echo $2`
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2499 (eval $ac_compiler --version </dev/null >&5) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2504 (eval $ac_compiler -v </dev/null >&5) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2509 (eval $ac_compiler -V </dev/null >&5) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }
2514 cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h. */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2522 main ()
2526 return 0;
2528 _ACEOF
2529 ac_clean_files_save=$ac_clean_files
2530 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2531 # Try to create an executable without -o first, disregard a.out.
2532 # It will help us diagnose broken compilers, and finding out an intuition
2533 # of exeext.
2534 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2535 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2536 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2537 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2538 (eval $ac_link_default) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; then
2542 # Find the output, starting from the most likely. This scheme is
2543 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2544 # resort.
2546 # Be careful to initialize this variable, since it used to be cached.
2547 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2548 ac_cv_exeext=
2549 # b.out is created by i960 compilers.
2550 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2552 test -f "$ac_file" || continue
2553 case $ac_file in
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2556 conftest.$ac_ext )
2557 # This is the source file.
2559 [ab].out )
2560 # We found the default executable, but exeext='' is most
2561 # certainly right.
2562 break;;
2563 *.* )
2564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565 # FIXME: I believe we export ac_cv_exeext for Libtool,
2566 # but it would be cool to find out if it's true. Does anybody
2567 # maintain Libtool? --akim.
2568 export ac_cv_exeext
2569 break;;
2571 break;;
2572 esac
2573 done
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&2;}
2582 { (exit 77); exit 77; }; }
2585 ac_exeext=$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_file" >&5
2587 echo "${ECHO_T}$ac_file" >&6
2589 # Check the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='./$ac_file'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 cross_compiling=no
2603 else
2604 if test "$cross_compiling" = maybe; then
2605 cross_compiling=yes
2606 else
2607 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2608 If you meant to cross compile, use \`--host'.
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot run C compiled programs.
2611 If you meant to cross compile, use \`--host'.
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2620 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2621 ac_clean_files=$ac_clean_files_save
2622 # Check the compiler produces executables we can run. If not, either
2623 # the compiler is broken, or we cross compile.
2624 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2626 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2627 echo "${ECHO_T}$cross_compiling" >&6
2629 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2630 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2632 (eval $ac_link) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; then
2636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2638 # work properly (i.e., refer to `conftest.exe'), while it won't with
2639 # `rm'.
2640 for ac_file in conftest.exe conftest conftest.*; do
2641 test -f "$ac_file" || continue
2642 case $ac_file in
2643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 export ac_cv_exeext
2646 break;;
2647 * ) break;;
2648 esac
2649 done
2650 else
2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2658 rm -f conftest$ac_cv_exeext
2659 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660 echo "${ECHO_T}$ac_cv_exeext" >&6
2662 rm -f conftest.$ac_ext
2663 EXEEXT=$ac_cv_exeext
2664 ac_exeext=$EXEEXT
2665 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2667 if test "${ac_cv_objext+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 main ()
2682 return 0;
2684 _ACEOF
2685 rm -f conftest.o conftest.obj
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; then
2691 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2692 case $ac_file in
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2695 break;;
2696 esac
2697 done
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2702 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2711 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712 echo "${ECHO_T}$ac_cv_objext" >&6
2713 OBJEXT=$ac_cv_objext
2714 ac_objext=$OBJEXT
2715 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2716 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2728 main ()
2730 #ifndef __GNUC__
2731 choke me
2732 #endif
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2741 ac_status=$?
2742 grep -v '^ *+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_compiler_gnu=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 ac_compiler_gnu=no
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2770 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2772 GCC=`test $ac_compiler_gnu = yes && echo yes`
2773 ac_test_CFLAGS=${CFLAGS+set}
2774 ac_save_CFLAGS=$CFLAGS
2775 CFLAGS="-g"
2776 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2778 if test "${ac_cv_prog_cc_g+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2789 main ()
2793 return 0;
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>conftest.er1
2799 ac_status=$?
2800 grep -v '^ *+' conftest.er1 >conftest.err
2801 rm -f conftest.er1
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_g=yes
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2822 ac_cv_prog_cc_g=no
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2827 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2828 if test "$ac_test_CFLAGS" = set; then
2829 CFLAGS=$ac_save_CFLAGS
2830 elif test $ac_cv_prog_cc_g = yes; then
2831 if test "$GCC" = yes; then
2832 CFLAGS="-g -O2"
2833 else
2834 CFLAGS="-g"
2836 else
2837 if test "$GCC" = yes; then
2838 CFLAGS="-O2"
2839 else
2840 CFLAGS=
2843 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 ac_cv_prog_cc_stdc=no
2849 ac_save_CC=$CC
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856 #include <stdarg.h>
2857 #include <stdio.h>
2858 #include <sys/types.h>
2859 #include <sys/stat.h>
2860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2861 struct buf { int x; };
2862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863 static char *e (p, i)
2864 char **p;
2865 int i;
2867 return p[i];
2869 static char *f (char * (*g) (char **, int), char **p, ...)
2871 char *s;
2872 va_list v;
2873 va_start (v,p);
2874 s = g (p, va_arg (v,int));
2875 va_end (v);
2876 return s;
2879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2880 function prototypes and stuff, but not '\xHH' hex character constants.
2881 These don't provoke an error unfortunately, instead are silently treated
2882 as 'x'. The following induces an error, until -std1 is added to get
2883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2884 array size at least. It's necessary to write '\x00'==0 to get something
2885 that's true only with -std1. */
2886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2888 int test (int i, double x);
2889 struct s1 {int (*f) (int a);};
2890 struct s2 {int (*f) (double a);};
2891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2892 int argc;
2893 char **argv;
2895 main ()
2897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2899 return 0;
2901 _ACEOF
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX -qlanglvl=ansi
2905 # Ultrix and OSF/1 -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions -Aa -D_HPUX_SOURCE
2908 # SVR4 -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2911 CC="$ac_save_CC $ac_arg"
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest.$ac_objext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 ac_cv_prog_cc_stdc=$ac_arg
2934 break
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2940 rm -f conftest.err conftest.$ac_objext
2941 done
2942 rm -f conftest.$ac_ext conftest.$ac_objext
2943 CC=$ac_save_CC
2947 case "x$ac_cv_prog_cc_stdc" in
2948 x|xno)
2949 echo "$as_me:$LINENO: result: none needed" >&5
2950 echo "${ECHO_T}none needed" >&6 ;;
2952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2954 CC="$CC $ac_cv_prog_cc_stdc" ;;
2955 esac
2957 # Some people use a C++ compiler to compile C. Since we use `exit',
2958 # in C++ we need to declare it. In case someone uses the same compiler
2959 # for both compiling C and C++ we need to have the C++ compiler decide
2960 # the declaration of exit, since it's the most demanding environment.
2961 cat >conftest.$ac_ext <<_ACEOF
2962 #ifndef __cplusplus
2963 choke me
2964 #endif
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
2988 '' \
2989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 $ac_declaration
3002 #include <stdlib.h>
3004 main ()
3006 exit (42);
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 continue
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 $ac_declaration
3048 main ()
3050 exit (42);
3052 return 0;
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 break
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083 done
3084 rm -f conftest*
3085 if test -n "$ac_declaration"; then
3086 echo '#ifdef __cplusplus' >>confdefs.h
3087 echo $ac_declaration >>confdefs.h
3088 echo '#endif' >>confdefs.h
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 depcc="$CC" am_compiler_list=
3105 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3106 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3107 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3111 # We make a subdir and do the tests there. Otherwise we can end up
3112 # making bogus files that we don't know about and never remove. For
3113 # instance it was reported that on HP-UX the gcc test will end up
3114 # making a dummy file named `D' -- because `-MD' means `put the output
3115 # in D'.
3116 mkdir conftest.dir
3117 # Copy depcomp to subdir because otherwise we won't find it if we're
3118 # using a relative directory.
3119 cp "$am_depcomp" conftest.dir
3120 cd conftest.dir
3121 # We will build objects and dependencies in a subdirectory because
3122 # it helps to detect inapplicable dependency modes. For instance
3123 # both Tru64's cc and ICC support -MD to output dependencies as a
3124 # side effect of compilation, but ICC will put the dependencies in
3125 # the current directory while Tru64 will put them in the object
3126 # directory.
3127 mkdir sub
3129 am_cv_CC_dependencies_compiler_type=none
3130 if test "$am_compiler_list" = ""; then
3131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3133 for depmode in $am_compiler_list; do
3134 # Setup a source with many dependencies, because some compilers
3135 # like to wrap large dependency lists on column 80 (with \), and
3136 # we should not choose a depcomp mode which is confused by this.
3138 # We need to recreate these files for each test, as the compiler may
3139 # overwrite some of them when testing with obscure command lines.
3140 # This happens at least with the AIX C compiler.
3141 : > sub/conftest.c
3142 for i in 1 2 3 4 5 6; do
3143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3145 # Solaris 8's {/usr,}/bin/sh.
3146 touch sub/conftst$i.h
3147 done
3148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3150 case $depmode in
3151 nosideeffect)
3152 # after this tag, mechanisms are not by side-effect, so they'll
3153 # only be used when explicitly requested
3154 if test "x$enable_dependency_tracking" = xyes; then
3155 continue
3156 else
3157 break
3160 none) break ;;
3161 esac
3162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3163 # mode. It turns out that the SunPro C++ compiler does not properly
3164 # handle `-M -o', and we need to detect this.
3165 if depmode=$depmode \
3166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3169 >/dev/null 2>conftest.err &&
3170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3173 # icc doesn't choke on unknown options, it will just issue warnings
3174 # or remarks (even with -Werror). So we grep stderr for any message
3175 # that says an option was ignored or not supported.
3176 # When given -MP, icc 7.0 and 7.1 complain thusly:
3177 # icc: Command line warning: ignoring option '-M'; no argument required
3178 # The diagnosis changed in icc 8.0:
3179 # icc: Command line remark: option '-MP' not supported
3180 if (grep 'ignoring option' conftest.err ||
3181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3182 am_cv_CC_dependencies_compiler_type=$depmode
3183 break
3186 done
3188 cd ..
3189 rm -rf conftest.dir
3190 else
3191 am_cv_CC_dependencies_compiler_type=none
3195 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3196 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3202 test "x$enable_dependency_tracking" != xno \
3203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204 am__fastdepCC_TRUE=
3205 am__fastdepCC_FALSE='#'
3206 else
3207 am__fastdepCC_TRUE='#'
3208 am__fastdepCC_FALSE=
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3219 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3220 # On Suns, sometimes $CPP names a directory.
3221 if test -n "$CPP" && test -d "$CPP"; then
3222 CPP=
3224 if test -z "$CPP"; then
3225 if test "${ac_cv_prog_CPP+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 # Double quotes because CPP needs to be expanded
3229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 ac_preproc_ok=false
3232 for ac_c_preproc_warn_flag in '' yes
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 #ifdef __STDC__
3247 # include <limits.h>
3248 #else
3249 # include <assert.h>
3250 #endif
3251 Syntax error
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264 else
3265 ac_cpp_err=
3267 else
3268 ac_cpp_err=yes
3270 if test -z "$ac_cpp_err"; then
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Broken: fails on valid input.
3277 continue
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether non-existent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3290 _ACEOF
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3305 else
3306 ac_cpp_err=yes
3308 if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3310 continue
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3316 ac_preproc_ok=:
3317 break
3319 rm -f conftest.err conftest.$ac_ext
3321 done
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3325 break
3328 done
3329 ac_cv_prog_CPP=$CPP
3332 CPP=$ac_cv_prog_CPP
3333 else
3334 ac_cv_prog_CPP=$CPP
3336 echo "$as_me:$LINENO: result: $CPP" >&5
3337 echo "${ECHO_T}$CPP" >&6
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 else
3372 ac_cpp_err=
3374 else
3375 ac_cpp_err=yes
3377 if test -z "$ac_cpp_err"; then
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3384 continue
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3412 else
3413 ac_cpp_err=yes
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3417 continue
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3426 rm -f conftest.err conftest.$ac_ext
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3433 else
3434 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&5
3436 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 echo "$as_me:$LINENO: checking for egrep" >&5
3449 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3450 if test "${ac_cv_prog_egrep+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3454 then ac_cv_prog_egrep='grep -E'
3455 else ac_cv_prog_egrep='egrep'
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3459 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3460 EGREP=$ac_cv_prog_egrep
3463 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3465 if test "${ac_cv_header_stdc+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <stdlib.h>
3475 #include <stdarg.h>
3476 #include <string.h>
3477 #include <float.h>
3480 main ()
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489 (eval $ac_compile) 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; } &&
3502 { ac_try='test -s conftest.$ac_objext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 ac_cv_header_stdc=yes
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 ac_cv_header_stdc=no
3515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 if test $ac_cv_header_stdc = yes; then
3518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <string.h>
3527 _ACEOF
3528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 $EGREP "memchr" >/dev/null 2>&1; then
3531 else
3532 ac_cv_header_stdc=no
3534 rm -f conftest*
3538 if test $ac_cv_header_stdc = yes; then
3539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <stdlib.h>
3548 _ACEOF
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 $EGREP "free" >/dev/null 2>&1; then
3552 else
3553 ac_cv_header_stdc=no
3555 rm -f conftest*
3559 if test $ac_cv_header_stdc = yes; then
3560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3561 if test "$cross_compiling" = yes; then
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ctype.h>
3571 #if ((' ' & 0x0FF) == 0x020)
3572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3574 #else
3575 # define ISLOWER(c) \
3576 (('a' <= (c) && (c) <= 'i') \
3577 || ('j' <= (c) && (c) <= 'r') \
3578 || ('s' <= (c) && (c) <= 'z'))
3579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3580 #endif
3582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3584 main ()
3586 int i;
3587 for (i = 0; i < 256; i++)
3588 if (XOR (islower (i), ISLOWER (i))
3589 || toupper (i) != TOUPPER (i))
3590 exit(2);
3591 exit (0);
3593 _ACEOF
3594 rm -f conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3606 else
3607 echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ( exit $ac_status )
3612 ac_cv_header_stdc=no
3614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3620 if test $ac_cv_header_stdc = yes; then
3622 cat >>confdefs.h <<\_ACEOF
3623 #define STDC_HEADERS 1
3624 _ACEOF
3628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3639 inttypes.h stdint.h unistd.h
3641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3642 echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 $ac_includes_default
3655 #include <$ac_header>
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 eval "$as_ac_Header=yes"
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 eval "$as_ac_Header=no"
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3690 cat >>confdefs.h <<_ACEOF
3691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 _ACEOF
3696 done
3699 # Check whether --enable-alsa or --disable-alsa was given.
3700 if test "${enable_alsa+set}" = set; then
3701 enableval="$enable_alsa"
3702 case "${enableval}" in
3703 yes) COMPILE_ALSA=yes ;;
3704 no) COMPILE_ALSA=no ;;
3705 *) COMPILE_ALSA=yes ;;
3706 esac
3707 else
3709 for ac_header in alsa/asoundlib.h
3711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713 echo "$as_me:$LINENO: checking for $ac_header" >&5
3714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3720 else
3721 # Is the header compilable?
3722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h. */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 $ac_includes_default
3731 #include <$ac_header>
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 ac_header_compiler=yes
3755 else
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 ac_header_compiler=no
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3763 echo "${ECHO_T}$ac_header_compiler" >&6
3765 # Is the header present?
3766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <$ac_header>
3775 _ACEOF
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null; then
3784 if test -s conftest.err; then
3785 ac_cpp_err=$ac_c_preproc_warn_flag
3786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3787 else
3788 ac_cpp_err=
3790 else
3791 ac_cpp_err=yes
3793 if test -z "$ac_cpp_err"; then
3794 ac_header_preproc=yes
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_header_preproc=no
3801 rm -f conftest.err conftest.$ac_ext
3802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3803 echo "${ECHO_T}$ac_header_preproc" >&6
3805 # So? What about this header?
3806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3807 yes:no: )
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3812 ac_header_preproc=yes
3814 no:yes:* )
3815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3828 cat <<\_ASBOX
3829 ## -------------------------------- ##
3830 ## Report this to classpath@gnu.org ##
3831 ## -------------------------------- ##
3832 _ASBOX
3834 sed "s/^/$as_me: WARNING: /" >&2
3836 esac
3837 echo "$as_me:$LINENO: checking for $ac_header" >&5
3838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 eval "$as_ac_Header=\$ac_header_preproc"
3844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3849 cat >>confdefs.h <<_ACEOF
3850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3851 _ACEOF
3852 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3853 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3854 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 ac_check_lib_save_LIBS=$LIBS
3858 LIBS="-lasound $LIBS"
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 #ifdef __cplusplus
3868 extern "C"
3869 #endif
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872 char snd_seq_open ();
3874 main ()
3876 snd_seq_open ();
3878 return 0;
3880 _ACEOF
3881 rm -f conftest.$ac_objext conftest$ac_exeext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883 (eval $ac_link) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_cv_lib_asound_snd_seq_open=yes
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 ac_cv_lib_asound_snd_seq_open=no
3909 rm -f conftest.err conftest.$ac_objext \
3910 conftest$ac_exeext conftest.$ac_ext
3911 LIBS=$ac_check_lib_save_LIBS
3913 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
3914 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
3915 if test $ac_cv_lib_asound_snd_seq_open = yes; then
3916 COMPILE_ALSA=yes
3917 else
3918 COMPILE_ALSA=no
3921 else
3922 COMPILE_ALSA=no
3925 done
3930 if test "x${COMPILE_ALSA}" = xyes; then
3931 CREATE_ALSA_LIBRARIES_TRUE=
3932 CREATE_ALSA_LIBRARIES_FALSE='#'
3933 else
3934 CREATE_ALSA_LIBRARIES_TRUE='#'
3935 CREATE_ALSA_LIBRARIES_FALSE=
3939 # Check whether --enable-dssi or --disable-dssi was given.
3940 if test "${enable_dssi+set}" = set; then
3941 enableval="$enable_dssi"
3942 case "${enableval}" in
3943 yes) COMPILE_DSSI=yes ;;
3944 no) COMPILE_DSSI=no ;;
3945 *) COMPILE_DSSI=yes ;;
3946 esac
3947 else
3949 for ac_header in dssi.h
3951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953 echo "$as_me:$LINENO: checking for $ac_header" >&5
3954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3960 else
3961 # Is the header compilable?
3962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 $ac_includes_default
3971 #include <$ac_header>
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_header_compiler=yes
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 ac_header_compiler=no
4001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4003 echo "${ECHO_T}$ac_header_compiler" >&6
4005 # Is the header present?
4006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <$ac_header>
4015 _ACEOF
4016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null; then
4024 if test -s conftest.err; then
4025 ac_cpp_err=$ac_c_preproc_warn_flag
4026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4027 else
4028 ac_cpp_err=
4030 else
4031 ac_cpp_err=yes
4033 if test -z "$ac_cpp_err"; then
4034 ac_header_preproc=yes
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 ac_header_preproc=no
4041 rm -f conftest.err conftest.$ac_ext
4042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4043 echo "${ECHO_T}$ac_header_preproc" >&6
4045 # So? What about this header?
4046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4047 yes:no: )
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4052 ac_header_preproc=yes
4054 no:yes:* )
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4068 cat <<\_ASBOX
4069 ## -------------------------------- ##
4070 ## Report this to classpath@gnu.org ##
4071 ## -------------------------------- ##
4072 _ASBOX
4074 sed "s/^/$as_me: WARNING: /" >&2
4076 esac
4077 echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 eval "$as_ac_Header=\$ac_header_preproc"
4084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4089 cat >>confdefs.h <<_ACEOF
4090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 _ACEOF
4092 COMPILE_DSSI=yes
4093 else
4094 COMPILE_DSSI=no
4097 done
4102 if test "x${COMPILE_DSSI}" = xyes; then
4103 CREATE_DSSI_LIBRARIES_TRUE=
4104 CREATE_DSSI_LIBRARIES_FALSE='#'
4105 else
4106 CREATE_DSSI_LIBRARIES_TRUE='#'
4107 CREATE_DSSI_LIBRARIES_FALSE=
4111 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4112 if test "${enable_gtk_peer+set}" = set; then
4113 enableval="$enable_gtk_peer"
4114 case "${enableval}" in
4115 yes) COMPILE_GTK_PEER=yes ;;
4116 no) COMPILE_GTK_PEER=no ;;
4117 *) COMPILE_GTK_PEER=yes ;;
4118 esac
4119 else
4120 COMPILE_GTK_PEER=yes
4124 if test "x${COMPILE_GTK_PEER}" = xyes; then
4125 CREATE_GTK_PEER_LIBRARIES_TRUE=
4126 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4127 else
4128 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4129 CREATE_GTK_PEER_LIBRARIES_FALSE=
4133 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4134 if test "${enable_gtk_peers+set}" = set; then
4135 enableval="$enable_gtk_peers"
4136 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4137 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4138 { (exit 1); exit 1; }; }
4141 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4142 if test "${enable_gtk_cairo+set}" = set; then
4143 enableval="$enable_gtk_cairo"
4144 case "${enableval}" in
4145 yes) GTK_CAIRO_ENABLED=true ;;
4146 no) GTK_CAIRO_ENABLED=false ;;
4147 *) GTK_CAIRO_ENABLED=true ;;
4148 esac
4149 else
4150 GTK_CAIRO_ENABLED=false
4153 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4155 cat >>confdefs.h <<\_ACEOF
4156 #define GTK_CAIRO 1
4157 _ACEOF
4162 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4163 GTK_CAIRO_TRUE=
4164 GTK_CAIRO_FALSE='#'
4165 else
4166 GTK_CAIRO_TRUE='#'
4167 GTK_CAIRO_FALSE=
4171 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4172 if test "${enable_qt_peer+set}" = set; then
4173 enableval="$enable_qt_peer"
4174 case "${enableval}" in
4175 yes) COMPILE_QT_PEER=yes ;;
4176 no) COMPILE_QT_PEER=no ;;
4177 *) COMPILE_QT_PEER=yes ;;
4178 esac
4179 else
4180 COMPILE_QT_PEER=no
4184 if test "x${COMPILE_QT_PEER}" = xyes; then
4185 CREATE_QT_PEER_LIBRARIES_TRUE=
4186 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4187 else
4188 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4189 CREATE_QT_PEER_LIBRARIES_FALSE=
4195 # Check whether --with-native-libdir or --without-native-libdir was given.
4196 if test "${with_native_libdir+set}" = set; then
4197 withval="$with_native_libdir"
4199 nativelibdir=${withval}
4201 else
4203 nativelibdir='${libdir}/${PACKAGE}'
4210 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4211 if test "${with_glibj_dir+set}" = set; then
4212 withval="$with_glibj_dir"
4214 glibjdir=${withval}
4216 else
4218 glibjdir='${datadir}/${PACKAGE}'
4224 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4225 if test "${enable_regen_headers+set}" = set; then
4226 enableval="$enable_regen_headers"
4227 case "${enableval}" in
4228 yes) REGENERATE_JNI_HEADERS=yes ;;
4229 no) REGENERATE_JNI_HEADERS=no ;;
4230 *) REGENERATE_JNI_HEADERS=no ;;
4231 esac
4232 else
4233 REGENERATE_JNI_HEADERS=no
4237 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4238 CREATE_JNI_HEADERS_TRUE=
4239 CREATE_JNI_HEADERS_FALSE='#'
4240 else
4241 CREATE_JNI_HEADERS_TRUE='#'
4242 CREATE_JNI_HEADERS_FALSE=
4246 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4247 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4248 LN_S=$as_ln_s
4249 if test "$LN_S" = "ln -s"; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251 echo "${ECHO_T}yes" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4254 echo "${ECHO_T}no, using $LN_S" >&6
4257 # Find a good install program. We prefer a C program (faster),
4258 # so one script is as good as another. But avoid the broken or
4259 # incompatible versions:
4260 # SysV /etc/install, /usr/sbin/install
4261 # SunOS /usr/etc/install
4262 # IRIX /sbin/install
4263 # AIX /bin/install
4264 # AmigaOS /C/install, which installs bootblocks on floppy discs
4265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4268 # OS/2's system install, which has a completely different semantic
4269 # ./install, which can be erroneously created by make from ./install.sh.
4270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4272 if test -z "$INSTALL"; then
4273 if test "${ac_cv_path_install+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 # Account for people who put trailing slashes in PATH elements.
4282 case $as_dir/ in
4283 ./ | .// | /cC/* | \
4284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4286 /usr/ucb/* ) ;;
4288 # OSF1 and SCO ODT 3.0 have their own names for install.
4289 # Don't use installbsd from OSF since it installs stuff as root
4290 # by default.
4291 for ac_prog in ginstall scoinst install; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4294 if test $ac_prog = install &&
4295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4296 # AIX install. It has an incompatible calling convention.
4298 elif test $ac_prog = install &&
4299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4300 # program-specific install script used by HP pwplus--don't use.
4302 else
4303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4304 break 3
4307 done
4308 done
4310 esac
4311 done
4315 if test "${ac_cv_path_install+set}" = set; then
4316 INSTALL=$ac_cv_path_install
4317 else
4318 # As a last resort, use the slow shell script. We don't cache a
4319 # path for INSTALL within a source directory, because that will
4320 # break other packages using the cache if that directory is
4321 # removed, or if the path is relative.
4322 INSTALL=$ac_install_sh
4325 echo "$as_me:$LINENO: result: $INSTALL" >&5
4326 echo "${ECHO_T}$INSTALL" >&6
4328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4329 # It thinks the first close brace ends the variable substitution.
4330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4338 GCC_NO_EXECUTABLES
4340 # Check whether --enable-static or --disable-static was given.
4341 if test "${enable_static+set}" = set; then
4342 enableval="$enable_static"
4343 p=${PACKAGE-default}
4344 case $enableval in
4345 yes) enable_static=yes ;;
4346 no) enable_static=no ;;
4348 enable_static=no
4349 # Look at the argument we got. We use all the common list separators.
4350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4351 for pkg in $enableval; do
4352 if test "X$pkg" = "X$p"; then
4353 enable_static=yes
4355 done
4356 IFS="$ac_save_ifs"
4358 esac
4359 else
4360 enable_static=no
4362 # Check whether --enable-shared or --disable-shared was given.
4363 if test "${enable_shared+set}" = set; then
4364 enableval="$enable_shared"
4365 p=${PACKAGE-default}
4366 case $enableval in
4367 yes) enable_shared=yes ;;
4368 no) enable_shared=no ;;
4370 enable_shared=no
4371 # Look at the argument we got. We use all the common list separators.
4372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4373 for pkg in $enableval; do
4374 if test "X$pkg" = "X$p"; then
4375 enable_shared=yes
4377 done
4378 IFS="$ac_save_ifs"
4380 esac
4381 else
4382 enable_shared=yes
4384 # Check whether --enable-fast-install or --disable-fast-install was given.
4385 if test "${enable_fast_install+set}" = set; then
4386 enableval="$enable_fast_install"
4387 p=${PACKAGE-default}
4388 case $enableval in
4389 yes) enable_fast_install=yes ;;
4390 no) enable_fast_install=no ;;
4392 enable_fast_install=no
4393 # Look at the argument we got. We use all the common list separators.
4394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4395 for pkg in $enableval; do
4396 if test "X$pkg" = "X$p"; then
4397 enable_fast_install=yes
4399 done
4400 IFS="$ac_save_ifs"
4402 esac
4403 else
4404 enable_fast_install=yes
4407 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4408 if test "${with_gnu_ld+set}" = set; then
4409 withval="$with_gnu_ld"
4410 test "$withval" = no || with_gnu_ld=yes
4411 else
4412 with_gnu_ld=no
4414 ac_prog=ld
4415 if test "$GCC" = yes; then
4416 # Check if gcc -print-prog-name=ld gives a path.
4417 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4418 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4419 case $host in
4420 *-*-mingw*)
4421 # gcc leaves a trailing carriage return which upsets mingw
4422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4425 esac
4426 case $ac_prog in
4427 # Accept absolute paths.
4428 [\\/]* | [A-Za-z]:[\\/]*)
4429 re_direlt='/[^/][^/]*/\.\./'
4430 # Canonicalize the path of ld
4431 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4432 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4433 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4434 done
4435 test -z "$LD" && LD="$ac_prog"
4438 # If it fails, then pretend we aren't using GCC.
4439 ac_prog=ld
4442 # If it is relative, then search for the first ld in PATH.
4443 with_gnu_ld=unknown
4445 esac
4446 elif test "$with_gnu_ld" = yes; then
4447 echo "$as_me:$LINENO: checking for GNU ld" >&5
4448 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4449 else
4450 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4451 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4453 if test "${lt_cv_path_LD+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 if test -z "$LD"; then
4457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4458 for ac_dir in $PATH; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4461 lt_cv_path_LD="$ac_dir/$ac_prog"
4462 # Check to see if the program is GNU ld. I'd rather use --version,
4463 # but apparently some GNU ld's only accept -v.
4464 # Break only if it was the GNU/non-GNU ld that we prefer.
4465 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4466 test "$with_gnu_ld" != no && break
4467 else
4468 test "$with_gnu_ld" != yes && break
4471 done
4472 IFS="$ac_save_ifs"
4473 else
4474 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4478 LD="$lt_cv_path_LD"
4479 if test -n "$LD"; then
4480 echo "$as_me:$LINENO: result: $LD" >&5
4481 echo "${ECHO_T}$LD" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4486 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
4489 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4490 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4491 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4495 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4496 lt_cv_prog_gnu_ld=yes
4497 else
4498 lt_cv_prog_gnu_ld=no
4501 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4502 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4503 with_gnu_ld=$lt_cv_prog_gnu_ld
4506 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4507 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4508 if test "${lt_cv_ld_reload_flag+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 lt_cv_ld_reload_flag='-r'
4513 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4514 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4515 reload_flag=$lt_cv_ld_reload_flag
4516 test -n "$reload_flag" && reload_flag=" $reload_flag"
4518 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4519 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4520 if test "${lt_cv_path_NM+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$NM"; then
4524 # Let the user override the test.
4525 lt_cv_path_NM="$NM"
4526 else
4527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4528 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4529 test -z "$ac_dir" && ac_dir=.
4530 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4531 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4532 # Check to see if the nm accepts a BSD-compat flag.
4533 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4534 # nm: unknown option "B" ignored
4535 # Tru64's nm complains that /dev/null is an invalid object file
4536 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4537 lt_cv_path_NM="$tmp_nm -B"
4538 break
4539 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4540 lt_cv_path_NM="$tmp_nm -p"
4541 break
4542 else
4543 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4544 continue # so that we can try to find one that supports BSD flags
4547 done
4548 IFS="$ac_save_ifs"
4549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4553 NM="$lt_cv_path_NM"
4554 echo "$as_me:$LINENO: result: $NM" >&5
4555 echo "${ECHO_T}$NM" >&6
4557 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4558 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4559 if test "${lt_cv_deplibs_check_method+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 lt_cv_file_magic_cmd='$MAGIC_CMD'
4563 lt_cv_file_magic_test_file=
4564 lt_cv_deplibs_check_method='unknown'
4565 # Need to set the preceding variable on all platforms that support
4566 # interlibrary dependencies.
4567 # 'none' -- dependencies not supported.
4568 # `unknown' -- same as none, but documents that we really don't know.
4569 # 'pass_all' -- all dependencies passed with no checks.
4570 # 'test_compile' -- check by making test program.
4571 # 'file_magic [regex]' -- check by looking for files in library path
4572 # which responds to the $file_magic_cmd with a given egrep regex.
4573 # If you have `file' or equivalent on your system and you're not sure
4574 # whether `pass_all' will *always* work, you probably want this one.
4576 case $host_os in
4577 aix*)
4578 lt_cv_deplibs_check_method=pass_all
4581 beos*)
4582 lt_cv_deplibs_check_method=pass_all
4585 bsdi4*)
4586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4587 lt_cv_file_magic_cmd='/usr/bin/file -L'
4588 lt_cv_file_magic_test_file=/shlib/libc.so
4591 cygwin* | mingw* |pw32*)
4592 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4593 lt_cv_file_magic_cmd='$OBJDUMP -f'
4596 darwin* | rhapsody*)
4597 # this will be overwritten by pass_all, but leave it in just in case
4598 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4599 lt_cv_file_magic_cmd='/usr/bin/file -L'
4600 case "$host_os" in
4601 rhapsody* | darwin1.012)
4602 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4604 *) # Darwin 1.3 on
4605 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4607 esac
4608 lt_cv_deplibs_check_method=pass_all
4611 freebsd* | kfreebsd*-gnu)
4612 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4613 case $host_cpu in
4614 i*86 )
4615 # Not sure whether the presence of OpenBSD here was a mistake.
4616 # Let's accept both of them until this is cleared up.
4617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4618 lt_cv_file_magic_cmd=/usr/bin/file
4619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4621 esac
4622 else
4623 lt_cv_deplibs_check_method=pass_all
4627 gnu*)
4628 lt_cv_deplibs_check_method=pass_all
4631 hpux10.20*|hpux11*)
4632 case $host_cpu in
4633 hppa*)
4634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4635 lt_cv_file_magic_cmd=/usr/bin/file
4636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4638 ia64*)
4639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4640 lt_cv_file_magic_cmd=/usr/bin/file
4641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4643 esac
4646 irix5* | irix6*)
4647 case $host_os in
4648 irix5*)
4649 # this will be overridden with pass_all, but let us keep it just in case
4650 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4653 case $LD in
4654 *-32|*"-32 ") libmagic=32-bit;;
4655 *-n32|*"-n32 ") libmagic=N32;;
4656 *-64|*"-64 ") libmagic=64-bit;;
4657 *) libmagic=never-match;;
4658 esac
4659 # this will be overridden with pass_all, but let us keep it just in case
4660 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4662 esac
4663 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4664 lt_cv_deplibs_check_method=pass_all
4667 # This must be Linux ELF.
4668 linux-gnu*)
4669 lt_cv_deplibs_check_method=pass_all
4672 netbsd* | knetbsd*-gnu)
4673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4674 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4675 else
4676 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4680 newsos6)
4681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4682 lt_cv_file_magic_cmd=/usr/bin/file
4683 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4686 osf3* | osf4* | osf5*)
4687 # this will be overridden with pass_all, but let us keep it just in case
4688 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4689 lt_cv_file_magic_test_file=/shlib/libc.so
4690 lt_cv_deplibs_check_method=pass_all
4693 sco3.2v5*)
4694 lt_cv_deplibs_check_method=pass_all
4697 solaris*)
4698 lt_cv_deplibs_check_method=pass_all
4699 lt_cv_file_magic_test_file=/lib/libc.so
4702 sysv5uw[78]* | sysv4*uw2*)
4703 lt_cv_deplibs_check_method=pass_all
4706 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4707 case $host_vendor in
4708 ncr)
4709 lt_cv_deplibs_check_method=pass_all
4711 motorola)
4712 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]'
4713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4715 esac
4717 esac
4720 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4721 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4722 file_magic_cmd=$lt_cv_file_magic_cmd
4723 deplibs_check_method=$lt_cv_deplibs_check_method
4728 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4730 # find the maximum length of command line arguments
4731 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4732 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4733 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4737 teststring="ABCD"
4739 case $build_os in
4740 msdosdjgpp*)
4741 # On DJGPP, this test can blow up pretty badly due to problems in libc
4742 # (any single argument exceeding 2000 bytes causes a buffer overrun
4743 # during glob expansion). Even if it were fixed, the result of this
4744 # check would be larger than it should be.
4745 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4748 cygwin* | mingw*)
4749 # On Win9x/ME, this test blows up -- it succeeds, but takes
4750 # about 5 minutes as the teststring grows exponentially.
4751 # Worse, since 9x/ME are not pre-emptively multitasking,
4752 # you end up with a "frozen" computer, even though with patience
4753 # the test eventually succeeds (with a max line length of 256k).
4754 # Instead, let's just punt: use the minimum linelength reported by
4755 # all of the supported platforms: 8192 (on NT/2K/XP).
4756 lt_cv_sys_max_cmd_len=8192;
4759 amigaos*)
4760 # On AmigaOS with pdksh, this test takes hours, literally.
4761 # So we just punt and use a minimum line length of 8192.
4762 lt_cv_sys_max_cmd_len=8192;
4765 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4766 # This has been around since 386BSD, at least. Likely further.
4767 if test -x /sbin/sysctl; then
4768 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4769 elif test -x /usr/sbin/sysctl; then
4770 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4771 else
4772 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4774 # And add a safety zone
4775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4778 esac
4782 if test -n "$lt_cv_sys_max_cmd_len" ; then
4783 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4784 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4785 else
4786 echo "$as_me:$LINENO: result: none" >&5
4787 echo "${ECHO_T}none" >&6
4791 # Only perform the check for file, if the check method requires it
4792 case $deplibs_check_method in
4793 file_magic*)
4794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4795 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4796 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4797 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800 case $MAGIC_CMD in
4802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4804 ?:/*)
4805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4808 ac_save_MAGIC_CMD="$MAGIC_CMD"
4809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4810 ac_dummy="/usr/bin:$PATH"
4811 for ac_dir in $ac_dummy; do
4812 test -z "$ac_dir" && ac_dir=.
4813 if test -f $ac_dir/${ac_tool_prefix}file; then
4814 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4815 if test -n "$file_magic_test_file"; then
4816 case $deplibs_check_method in
4817 "file_magic "*)
4818 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4821 egrep "$file_magic_regex" > /dev/null; then
4823 else
4824 cat <<EOF 1>&2
4826 *** Warning: the command libtool uses to detect shared libraries,
4827 *** $file_magic_cmd, produces output that libtool cannot recognize.
4828 *** The result is that libtool may fail to recognize shared libraries
4829 *** as such. This will affect the creation of libtool libraries that
4830 *** depend on shared libraries, but programs linked with such libtool
4831 *** libraries will work regardless of this problem. Nevertheless, you
4832 *** may want to report the problem to your system manager and/or to
4833 *** bug-libtool@gnu.org
4836 fi ;;
4837 esac
4839 break
4841 done
4842 IFS="$ac_save_ifs"
4843 MAGIC_CMD="$ac_save_MAGIC_CMD"
4845 esac
4848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4849 if test -n "$MAGIC_CMD"; then
4850 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4851 echo "${ECHO_T}$MAGIC_CMD" >&6
4852 else
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 if test -z "$lt_cv_path_MAGIC_CMD"; then
4858 if test -n "$ac_tool_prefix"; then
4859 echo "$as_me:$LINENO: checking for file" >&5
4860 echo $ECHO_N "checking for file... $ECHO_C" >&6
4861 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 case $MAGIC_CMD in
4866 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4868 ?:/*)
4869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4872 ac_save_MAGIC_CMD="$MAGIC_CMD"
4873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4874 ac_dummy="/usr/bin:$PATH"
4875 for ac_dir in $ac_dummy; do
4876 test -z "$ac_dir" && ac_dir=.
4877 if test -f $ac_dir/file; then
4878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4879 if test -n "$file_magic_test_file"; then
4880 case $deplibs_check_method in
4881 "file_magic "*)
4882 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4885 egrep "$file_magic_regex" > /dev/null; then
4887 else
4888 cat <<EOF 1>&2
4890 *** Warning: the command libtool uses to detect shared libraries,
4891 *** $file_magic_cmd, produces output that libtool cannot recognize.
4892 *** The result is that libtool may fail to recognize shared libraries
4893 *** as such. This will affect the creation of libtool libraries that
4894 *** depend on shared libraries, but programs linked with such libtool
4895 *** libraries will work regardless of this problem. Nevertheless, you
4896 *** may want to report the problem to your system manager and/or to
4897 *** bug-libtool@gnu.org
4900 fi ;;
4901 esac
4903 break
4905 done
4906 IFS="$ac_save_ifs"
4907 MAGIC_CMD="$ac_save_MAGIC_CMD"
4909 esac
4912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4913 if test -n "$MAGIC_CMD"; then
4914 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4915 echo "${ECHO_T}$MAGIC_CMD" >&6
4916 else
4917 echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4921 else
4922 MAGIC_CMD=:
4928 esac
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_prog_RANLIB+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 if test -n "$RANLIB"; then
4939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4957 RANLIB=$ac_cv_prog_RANLIB
4958 if test -n "$RANLIB"; then
4959 echo "$as_me:$LINENO: result: $RANLIB" >&5
4960 echo "${ECHO_T}$RANLIB" >&6
4961 else
4962 echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6
4967 if test -z "$ac_cv_prog_RANLIB"; then
4968 ac_ct_RANLIB=$RANLIB
4969 # Extract the first word of "ranlib", so it can be a program name with args.
4970 set dummy ranlib; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 if test -n "$ac_ct_RANLIB"; then
4977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_RANLIB="ranlib"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4993 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4997 if test -n "$ac_ct_RANLIB"; then
4998 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5005 RANLIB=$ac_ct_RANLIB
5006 else
5007 RANLIB="$ac_cv_prog_RANLIB"
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}strip; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_STRIP+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 if test -n "$STRIP"; then
5019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5037 STRIP=$ac_cv_prog_STRIP
5038 if test -n "$STRIP"; then
5039 echo "$as_me:$LINENO: result: $STRIP" >&5
5040 echo "${ECHO_T}$STRIP" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5047 if test -z "$ac_cv_prog_STRIP"; then
5048 ac_ct_STRIP=$STRIP
5049 # Extract the first word of "strip", so it can be a program name with args.
5050 set dummy strip; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 if test -n "$ac_ct_STRIP"; then
5057 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_STRIP="strip"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5073 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5076 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5077 if test -n "$ac_ct_STRIP"; then
5078 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5079 echo "${ECHO_T}$ac_ct_STRIP" >&6
5080 else
5081 echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5085 STRIP=$ac_ct_STRIP
5086 else
5087 STRIP="$ac_cv_prog_STRIP"
5091 # Check for any special flags to pass to ltconfig.
5092 libtool_flags="--cache-file=$cache_file"
5093 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5094 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5095 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5096 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5097 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5100 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5101 if test "${enable_libtool_lock+set}" = set; then
5102 enableval="$enable_libtool_lock"
5105 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5106 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5109 # Check whether --with-pic or --without-pic was given.
5110 if test "${with_pic+set}" = set; then
5111 withval="$with_pic"
5112 pic_mode="$withval"
5113 else
5114 pic_mode=default
5116 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5117 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5119 # Some flags need to be propagated to the compiler or linker for good
5120 # libtool support.
5121 case $host in
5122 *-*-irix6*)
5123 # Find out which ABI we are using.
5124 echo '#line 5124 "configure"' > conftest.$ac_ext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; then
5130 if test "$lt_cv_prog_gnu_ld" = yes; then
5131 case `/usr/bin/file conftest.$ac_objext` in
5132 *32-bit*)
5133 LD="${LD-ld} -melf32bsmip"
5135 *N32*)
5136 LD="${LD-ld} -melf32bmipn32"
5138 *64-bit*)
5139 LD="${LD-ld} -melf64bmip"
5141 esac
5142 else
5143 case `/usr/bin/file conftest.$ac_objext` in
5144 *32-bit*)
5145 LD="${LD-ld} -32"
5147 *N32*)
5148 LD="${LD-ld} -n32"
5150 *64-bit*)
5151 LD="${LD-ld} -64"
5153 esac
5156 rm -rf conftest*
5159 ia64-*-hpux*)
5160 # Find out which ABI we are using.
5161 echo 'int i;' > conftest.$ac_ext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; then
5167 case "`/usr/bin/file conftest.o`" in
5168 *ELF-32*)
5169 HPUX_IA64_MODE="32"
5171 *ELF-64*)
5172 HPUX_IA64_MODE="64"
5174 esac
5176 rm -rf conftest*
5179 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5180 # Find out which ABI we are using.
5181 echo 'int i;' > conftest.$ac_ext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; then
5187 case "`/usr/bin/file conftest.o`" in
5188 *32-bit*)
5189 case $host in
5190 x86_64-*linux*)
5191 LD="${LD-ld} -m elf_i386"
5193 ppc64-*linux*|powerpc64-*linux*)
5194 LD="${LD-ld} -m elf32ppclinux"
5196 s390x-*linux*)
5197 LD="${LD-ld} -m elf_s390"
5199 sparc64-*linux*)
5200 LD="${LD-ld} -m elf32_sparc"
5202 esac
5204 *64-bit*)
5205 case $host in
5206 x86_64-*linux*)
5207 LD="${LD-ld} -m elf_x86_64"
5209 ppc*-*linux*|powerpc*-*linux*)
5210 LD="${LD-ld} -m elf64ppc"
5212 s390*-*linux*)
5213 LD="${LD-ld} -m elf64_s390"
5215 sparc*-*linux*)
5216 LD="${LD-ld} -m elf64_sparc"
5218 esac
5220 esac
5222 rm -rf conftest*
5225 *-*-sco3.2v5*)
5226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5227 SAVE_CFLAGS="$CFLAGS"
5228 CFLAGS="$CFLAGS -belf"
5229 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5230 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5231 if test "${lt_cv_cc_needs_belf+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5250 main ()
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259 (eval $ac_link) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest$ac_exeext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 lt_cv_cc_needs_belf=yes
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 lt_cv_cc_needs_belf=no
5285 rm -f conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 ac_ext=c
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5294 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5295 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5296 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5298 CFLAGS="$SAVE_CFLAGS"
5303 esac
5306 # Save cache, so that ltconfig can load it
5307 cat >confcache <<\_ACEOF
5308 # This file is a shell script that caches the results of configure
5309 # tests run on this system so they can be shared between configure
5310 # scripts and configure runs, see configure's option --config-cache.
5311 # It is not useful on other systems. If it contains results you don't
5312 # want to keep, you may remove or edit it.
5314 # config.status only pays attention to the cache file if you give it
5315 # the --recheck option to rerun configure.
5317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5319 # following values.
5321 _ACEOF
5323 # The following way of writing the cache mishandles newlines in values,
5324 # but we know of no workaround that is simple, portable, and efficient.
5325 # So, don't put newlines in cache variables' values.
5326 # Ultrix sh set writes to stderr and can't be redirected directly,
5327 # and sets the high bit in the cache file unless we assign to the vars.
5329 (set) 2>&1 |
5330 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5331 *ac_space=\ *)
5332 # `set' does not quote correctly, so add quotes (double-quote
5333 # substitution turns \\\\ into \\, and sed turns \\ into \).
5334 sed -n \
5335 "s/'/'\\\\''/g;
5336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5339 # `set' quotes correctly as required by POSIX, so do not add quotes.
5340 sed -n \
5341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5343 esac;
5345 sed '
5346 t clear
5347 : clear
5348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5349 t end
5350 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5351 : end' >>confcache
5352 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5353 if test -w $cache_file; then
5354 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5355 cat confcache >$cache_file
5356 else
5357 echo "not updating unwritable cache $cache_file"
5360 rm -f confcache
5362 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5363 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5364 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5365 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5366 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5367 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5368 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5369 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5370 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5371 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5372 echo "$as_me: error: libtool configure failed" >&2;}
5373 { (exit 1); exit 1; }; }
5375 # Reload cache, that may have been modified by ltconfig
5376 if test -r "$cache_file"; then
5377 # Some versions of bash will fail to source /dev/null (special
5378 # files actually), so we avoid doing that.
5379 if test -f "$cache_file"; then
5380 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5381 echo "$as_me: loading cache $cache_file" >&6;}
5382 case $cache_file in
5383 [\\/]* | ?:[\\/]* ) . $cache_file;;
5384 *) . ./$cache_file;;
5385 esac
5387 else
5388 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5389 echo "$as_me: creating cache $cache_file" >&6;}
5390 >$cache_file
5394 # This can be used to rebuild libtool when needed
5395 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5397 # Always use our own libtool.
5398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5400 # Redirect the config.log output again, so that the ltconfig log is not
5401 # clobbered by the next message.
5402 exec 5>>./config.log
5409 ac_ext=c
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_prog_CC+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 if test -n "$CC"; then
5423 ac_cv_prog_CC="$CC" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5441 CC=$ac_cv_prog_CC
5442 if test -n "$CC"; then
5443 echo "$as_me:$LINENO: result: $CC" >&5
5444 echo "${ECHO_T}$CC" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5451 if test -z "$ac_cv_prog_CC"; then
5452 ac_ct_CC=$CC
5453 # Extract the first word of "gcc", so it can be a program name with args.
5454 set dummy gcc; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 if test -n "$ac_ct_CC"; then
5461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_CC="gcc"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5480 if test -n "$ac_ct_CC"; then
5481 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5482 echo "${ECHO_T}$ac_ct_CC" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5488 CC=$ac_ct_CC
5489 else
5490 CC="$ac_cv_prog_CC"
5493 if test -z "$CC"; then
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}cc; ac_word=$2
5497 echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499 if test "${ac_cv_prog_CC+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_CC="${ac_tool_prefix}cc"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5521 CC=$ac_cv_prog_CC
5522 if test -n "$CC"; then
5523 echo "$as_me:$LINENO: result: $CC" >&5
5524 echo "${ECHO_T}$CC" >&6
5525 else
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5531 if test -z "$ac_cv_prog_CC"; then
5532 ac_ct_CC=$CC
5533 # Extract the first word of "cc", so it can be a program name with args.
5534 set dummy cc; ac_word=$2
5535 echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 if test -n "$ac_ct_CC"; then
5541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_CC="cc"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5554 done
5555 done
5559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5560 if test -n "$ac_ct_CC"; then
5561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5562 echo "${ECHO_T}$ac_ct_CC" >&6
5563 else
5564 echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5568 CC=$ac_ct_CC
5569 else
5570 CC="$ac_cv_prog_CC"
5574 if test -z "$CC"; then
5575 # Extract the first word of "cc", so it can be a program name with args.
5576 set dummy cc; ac_word=$2
5577 echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579 if test "${ac_cv_prog_CC+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -n "$CC"; then
5583 ac_cv_prog_CC="$CC" # Let the user override the test.
5584 else
5585 ac_prog_rejected=no
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5594 ac_prog_rejected=yes
5595 continue
5597 ac_cv_prog_CC="cc"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5604 if test $ac_prog_rejected = yes; then
5605 # We found a bogon in the path, so make sure we never use it.
5606 set dummy $ac_cv_prog_CC
5607 shift
5608 if test $# != 0; then
5609 # We chose a different compiler from the bogus one.
5610 # However, it has the same basename, so the bogon will be chosen
5611 # first if we set CC to just the basename; use the full file name.
5612 shift
5613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5618 CC=$ac_cv_prog_CC
5619 if test -n "$CC"; then
5620 echo "$as_me:$LINENO: result: $CC" >&5
5621 echo "${ECHO_T}$CC" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5628 if test -z "$CC"; then
5629 if test -n "$ac_tool_prefix"; then
5630 for ac_prog in cl
5632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_prog_CC+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 if test -n "$CC"; then
5640 ac_cv_prog_CC="$CC" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5653 done
5654 done
5658 CC=$ac_cv_prog_CC
5659 if test -n "$CC"; then
5660 echo "$as_me:$LINENO: result: $CC" >&5
5661 echo "${ECHO_T}$CC" >&6
5662 else
5663 echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5667 test -n "$CC" && break
5668 done
5670 if test -z "$CC"; then
5671 ac_ct_CC=$CC
5672 for ac_prog in cl
5674 # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 if test -n "$ac_ct_CC"; then
5682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_ac_ct_CC="$ac_prog"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5701 if test -n "$ac_ct_CC"; then
5702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5703 echo "${ECHO_T}$ac_ct_CC" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5709 test -n "$ac_ct_CC" && break
5710 done
5712 CC=$ac_ct_CC
5718 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5719 See \`config.log' for more details." >&5
5720 echo "$as_me: error: no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." >&2;}
5722 { (exit 1); exit 1; }; }
5724 # Provide some information about the compiler.
5725 echo "$as_me:$LINENO:" \
5726 "checking for C compiler version" >&5
5727 ac_compiler=`set X $ac_compile; echo $2`
5728 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5729 (eval $ac_compiler --version </dev/null >&5) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5733 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5734 (eval $ac_compiler -v </dev/null >&5) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }
5738 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5739 (eval $ac_compiler -V </dev/null >&5) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5744 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5745 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5746 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5757 main ()
5759 #ifndef __GNUC__
5760 choke me
5761 #endif
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_compiler_gnu=yes
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 ac_compiler_gnu=no
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5799 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5800 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5801 GCC=`test $ac_compiler_gnu = yes && echo yes`
5802 ac_test_CFLAGS=${CFLAGS+set}
5803 ac_save_CFLAGS=$CFLAGS
5804 CFLAGS="-g"
5805 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5806 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5807 if test "${ac_cv_prog_cc_g+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5818 main ()
5822 return 0;
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_prog_cc_g=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_cv_prog_cc_g=no
5853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5857 if test "$ac_test_CFLAGS" = set; then
5858 CFLAGS=$ac_save_CFLAGS
5859 elif test $ac_cv_prog_cc_g = yes; then
5860 if test "$GCC" = yes; then
5861 CFLAGS="-g -O2"
5862 else
5863 CFLAGS="-g"
5865 else
5866 if test "$GCC" = yes; then
5867 CFLAGS="-O2"
5868 else
5869 CFLAGS=
5872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 ac_cv_prog_cc_stdc=no
5878 ac_save_CC=$CC
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <stdarg.h>
5886 #include <stdio.h>
5887 #include <sys/types.h>
5888 #include <sys/stat.h>
5889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5890 struct buf { int x; };
5891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5892 static char *e (p, i)
5893 char **p;
5894 int i;
5896 return p[i];
5898 static char *f (char * (*g) (char **, int), char **p, ...)
5900 char *s;
5901 va_list v;
5902 va_start (v,p);
5903 s = g (p, va_arg (v,int));
5904 va_end (v);
5905 return s;
5908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5909 function prototypes and stuff, but not '\xHH' hex character constants.
5910 These don't provoke an error unfortunately, instead are silently treated
5911 as 'x'. The following induces an error, until -std1 is added to get
5912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5913 array size at least. It's necessary to write '\x00'==0 to get something
5914 that's true only with -std1. */
5915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5917 int test (int i, double x);
5918 struct s1 {int (*f) (int a);};
5919 struct s2 {int (*f) (double a);};
5920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5921 int argc;
5922 char **argv;
5924 main ()
5926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5928 return 0;
5930 _ACEOF
5931 # Don't try gcc -ansi; that turns off useful extensions and
5932 # breaks some systems' header files.
5933 # AIX -qlanglvl=ansi
5934 # Ultrix and OSF/1 -std1
5935 # HP-UX 10.20 and later -Ae
5936 # HP-UX older versions -Aa -D_HPUX_SOURCE
5937 # SVR4 -Xc -D__EXTENSIONS__
5938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5940 CC="$ac_save_CC $ac_arg"
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_prog_cc_stdc=$ac_arg
5963 break
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5969 rm -f conftest.err conftest.$ac_objext
5970 done
5971 rm -f conftest.$ac_ext conftest.$ac_objext
5972 CC=$ac_save_CC
5976 case "x$ac_cv_prog_cc_stdc" in
5977 x|xno)
5978 echo "$as_me:$LINENO: result: none needed" >&5
5979 echo "${ECHO_T}none needed" >&6 ;;
5981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5982 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5983 CC="$CC $ac_cv_prog_cc_stdc" ;;
5984 esac
5986 # Some people use a C++ compiler to compile C. Since we use `exit',
5987 # in C++ we need to declare it. In case someone uses the same compiler
5988 # for both compiling C and C++ we need to have the C++ compiler decide
5989 # the declaration of exit, since it's the most demanding environment.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #ifndef __cplusplus
5992 choke me
5993 #endif
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 for ac_declaration in \
6017 '' \
6018 'extern "C" void std::exit (int) throw (); using std::exit;' \
6019 'extern "C" void std::exit (int); using std::exit;' \
6020 'extern "C" void exit (int) throw ();' \
6021 'extern "C" void exit (int);' \
6022 'void exit (int);'
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 $ac_declaration
6031 #include <stdlib.h>
6033 main ()
6035 exit (42);
6037 return 0;
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 continue
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_declaration
6077 main ()
6079 exit (42);
6081 return 0;
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 break
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 done
6113 rm -f conftest*
6114 if test -n "$ac_declaration"; then
6115 echo '#ifdef __cplusplus' >>confdefs.h
6116 echo $ac_declaration >>confdefs.h
6117 echo '#endif' >>confdefs.h
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126 ac_ext=c
6127 ac_cpp='$CPP $CPPFLAGS'
6128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132 depcc="$CC" am_compiler_list=
6134 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6140 # We make a subdir and do the tests there. Otherwise we can end up
6141 # making bogus files that we don't know about and never remove. For
6142 # instance it was reported that on HP-UX the gcc test will end up
6143 # making a dummy file named `D' -- because `-MD' means `put the output
6144 # in D'.
6145 mkdir conftest.dir
6146 # Copy depcomp to subdir because otherwise we won't find it if we're
6147 # using a relative directory.
6148 cp "$am_depcomp" conftest.dir
6149 cd conftest.dir
6150 # We will build objects and dependencies in a subdirectory because
6151 # it helps to detect inapplicable dependency modes. For instance
6152 # both Tru64's cc and ICC support -MD to output dependencies as a
6153 # side effect of compilation, but ICC will put the dependencies in
6154 # the current directory while Tru64 will put them in the object
6155 # directory.
6156 mkdir sub
6158 am_cv_CC_dependencies_compiler_type=none
6159 if test "$am_compiler_list" = ""; then
6160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6162 for depmode in $am_compiler_list; do
6163 # Setup a source with many dependencies, because some compilers
6164 # like to wrap large dependency lists on column 80 (with \), and
6165 # we should not choose a depcomp mode which is confused by this.
6167 # We need to recreate these files for each test, as the compiler may
6168 # overwrite some of them when testing with obscure command lines.
6169 # This happens at least with the AIX C compiler.
6170 : > sub/conftest.c
6171 for i in 1 2 3 4 5 6; do
6172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6174 # Solaris 8's {/usr,}/bin/sh.
6175 touch sub/conftst$i.h
6176 done
6177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6179 case $depmode in
6180 nosideeffect)
6181 # after this tag, mechanisms are not by side-effect, so they'll
6182 # only be used when explicitly requested
6183 if test "x$enable_dependency_tracking" = xyes; then
6184 continue
6185 else
6186 break
6189 none) break ;;
6190 esac
6191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6192 # mode. It turns out that the SunPro C++ compiler does not properly
6193 # handle `-M -o', and we need to detect this.
6194 if depmode=$depmode \
6195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6198 >/dev/null 2>conftest.err &&
6199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6202 # icc doesn't choke on unknown options, it will just issue warnings
6203 # or remarks (even with -Werror). So we grep stderr for any message
6204 # that says an option was ignored or not supported.
6205 # When given -MP, icc 7.0 and 7.1 complain thusly:
6206 # icc: Command line warning: ignoring option '-M'; no argument required
6207 # The diagnosis changed in icc 8.0:
6208 # icc: Command line remark: option '-MP' not supported
6209 if (grep 'ignoring option' conftest.err ||
6210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6211 am_cv_CC_dependencies_compiler_type=$depmode
6212 break
6215 done
6217 cd ..
6218 rm -rf conftest.dir
6219 else
6220 am_cv_CC_dependencies_compiler_type=none
6224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6231 test "x$enable_dependency_tracking" != xno \
6232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6233 am__fastdepCC_TRUE=
6234 am__fastdepCC_FALSE='#'
6235 else
6236 am__fastdepCC_TRUE='#'
6237 am__fastdepCC_FALSE=
6241 ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6248 # On Suns, sometimes $CPP names a directory.
6249 if test -n "$CPP" && test -d "$CPP"; then
6250 CPP=
6252 if test -z "$CPP"; then
6253 if test "${ac_cv_prog_CPP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 # Double quotes because CPP needs to be expanded
6257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6259 ac_preproc_ok=false
6260 for ac_c_preproc_warn_flag in '' yes
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #ifdef __STDC__
6275 # include <limits.h>
6276 #else
6277 # include <assert.h>
6278 #endif
6279 Syntax error
6280 _ACEOF
6281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } >/dev/null; then
6289 if test -s conftest.err; then
6290 ac_cpp_err=$ac_c_preproc_warn_flag
6291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6292 else
6293 ac_cpp_err=
6295 else
6296 ac_cpp_err=yes
6298 if test -z "$ac_cpp_err"; then
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 # Broken: fails on valid input.
6305 continue
6307 rm -f conftest.err conftest.$ac_ext
6309 # OK, works on sane cases. Now check whether non-existent headers
6310 # can be detected and how.
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <ac_nonexistent.h>
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_c_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330 else
6331 ac_cpp_err=
6333 else
6334 ac_cpp_err=yes
6336 if test -z "$ac_cpp_err"; then
6337 # Broken: success on invalid input.
6338 continue
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 # Passes both tests.
6344 ac_preproc_ok=:
6345 break
6347 rm -f conftest.err conftest.$ac_ext
6349 done
6350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6351 rm -f conftest.err conftest.$ac_ext
6352 if $ac_preproc_ok; then
6353 break
6356 done
6357 ac_cv_prog_CPP=$CPP
6360 CPP=$ac_cv_prog_CPP
6361 else
6362 ac_cv_prog_CPP=$CPP
6364 echo "$as_me:$LINENO: result: $CPP" >&5
6365 echo "${ECHO_T}$CPP" >&6
6366 ac_preproc_ok=false
6367 for ac_c_preproc_warn_flag in '' yes
6369 # Use a header file that comes with gcc, so configuring glibc
6370 # with a fresh cross-compiler works.
6371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6372 # <limits.h> exists even on freestanding compilers.
6373 # On the NeXT, cc -E runs the code through the compiler's parser,
6374 # not just through cpp. "Syntax error" is here to catch this case.
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #ifdef __STDC__
6382 # include <limits.h>
6383 #else
6384 # include <assert.h>
6385 #endif
6386 Syntax error
6387 _ACEOF
6388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } >/dev/null; then
6396 if test -s conftest.err; then
6397 ac_cpp_err=$ac_c_preproc_warn_flag
6398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6399 else
6400 ac_cpp_err=
6402 else
6403 ac_cpp_err=yes
6405 if test -z "$ac_cpp_err"; then
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 # Broken: fails on valid input.
6412 continue
6414 rm -f conftest.err conftest.$ac_ext
6416 # OK, works on sane cases. Now check whether non-existent headers
6417 # can be detected and how.
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 #include <ac_nonexistent.h>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437 else
6438 ac_cpp_err=
6440 else
6441 ac_cpp_err=yes
6443 if test -z "$ac_cpp_err"; then
6444 # Broken: success on invalid input.
6445 continue
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 # Passes both tests.
6451 ac_preproc_ok=:
6452 break
6454 rm -f conftest.err conftest.$ac_ext
6456 done
6457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6458 rm -f conftest.err conftest.$ac_ext
6459 if $ac_preproc_ok; then
6461 else
6462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6463 See \`config.log' for more details." >&5
6464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6465 See \`config.log' for more details." >&2;}
6466 { (exit 1); exit 1; }; }
6469 ac_ext=c
6470 ac_cpp='$CPP $CPPFLAGS'
6471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 ac_ext=cc
6476 ac_cpp='$CXXCPP $CPPFLAGS'
6477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480 if test -n "$ac_tool_prefix"; then
6481 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6485 echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487 if test "${ac_cv_prog_CXX+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 if test -n "$CXX"; then
6491 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6504 done
6505 done
6509 CXX=$ac_cv_prog_CXX
6510 if test -n "$CXX"; then
6511 echo "$as_me:$LINENO: result: $CXX" >&5
6512 echo "${ECHO_T}$CXX" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6518 test -n "$CXX" && break
6519 done
6521 if test -z "$CXX"; then
6522 ac_ct_CXX=$CXX
6523 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6525 # Extract the first word of "$ac_prog", so it can be a program name with args.
6526 set dummy $ac_prog; ac_word=$2
6527 echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 if test -n "$ac_ct_CXX"; then
6533 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_CXX="$ac_prog"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6546 done
6547 done
6551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6552 if test -n "$ac_ct_CXX"; then
6553 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6554 echo "${ECHO_T}$ac_ct_CXX" >&6
6555 else
6556 echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6560 test -n "$ac_ct_CXX" && break
6561 done
6562 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6564 CXX=$ac_ct_CXX
6568 # Provide some information about the compiler.
6569 echo "$as_me:$LINENO:" \
6570 "checking for C++ compiler version" >&5
6571 ac_compiler=`set X $ac_compile; echo $2`
6572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6573 (eval $ac_compiler --version </dev/null >&5) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }
6577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6578 (eval $ac_compiler -v </dev/null >&5) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }
6582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6583 (eval $ac_compiler -V </dev/null >&5) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }
6588 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6589 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6590 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6601 main ()
6603 #ifndef __GNUC__
6604 choke me
6605 #endif
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_compiler_gnu=yes
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 ac_compiler_gnu=no
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6643 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6644 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6645 GXX=`test $ac_compiler_gnu = yes && echo yes`
6646 ac_test_CXXFLAGS=${CXXFLAGS+set}
6647 ac_save_CXXFLAGS=$CXXFLAGS
6648 CXXFLAGS="-g"
6649 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6650 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6651 if test "${ac_cv_prog_cxx_g+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6662 main ()
6666 return 0;
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_prog_cxx_g=yes
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_cv_prog_cxx_g=no
6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6700 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6701 if test "$ac_test_CXXFLAGS" = set; then
6702 CXXFLAGS=$ac_save_CXXFLAGS
6703 elif test $ac_cv_prog_cxx_g = yes; then
6704 if test "$GXX" = yes; then
6705 CXXFLAGS="-g -O2"
6706 else
6707 CXXFLAGS="-g"
6709 else
6710 if test "$GXX" = yes; then
6711 CXXFLAGS="-O2"
6712 else
6713 CXXFLAGS=
6716 for ac_declaration in \
6717 '' \
6718 'extern "C" void std::exit (int) throw (); using std::exit;' \
6719 'extern "C" void std::exit (int); using std::exit;' \
6720 'extern "C" void exit (int) throw ();' \
6721 'extern "C" void exit (int);' \
6722 'void exit (int);'
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_declaration
6731 #include <stdlib.h>
6733 main ()
6735 exit (42);
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 continue
6768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_declaration
6777 main ()
6779 exit (42);
6781 return 0;
6783 _ACEOF
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 break
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812 done
6813 rm -f conftest*
6814 if test -n "$ac_declaration"; then
6815 echo '#ifdef __cplusplus' >>confdefs.h
6816 echo $ac_declaration >>confdefs.h
6817 echo '#endif' >>confdefs.h
6820 ac_ext=c
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826 depcc="$CXX" am_compiler_list=
6828 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6829 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6830 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6834 # We make a subdir and do the tests there. Otherwise we can end up
6835 # making bogus files that we don't know about and never remove. For
6836 # instance it was reported that on HP-UX the gcc test will end up
6837 # making a dummy file named `D' -- because `-MD' means `put the output
6838 # in D'.
6839 mkdir conftest.dir
6840 # Copy depcomp to subdir because otherwise we won't find it if we're
6841 # using a relative directory.
6842 cp "$am_depcomp" conftest.dir
6843 cd conftest.dir
6844 # We will build objects and dependencies in a subdirectory because
6845 # it helps to detect inapplicable dependency modes. For instance
6846 # both Tru64's cc and ICC support -MD to output dependencies as a
6847 # side effect of compilation, but ICC will put the dependencies in
6848 # the current directory while Tru64 will put them in the object
6849 # directory.
6850 mkdir sub
6852 am_cv_CXX_dependencies_compiler_type=none
6853 if test "$am_compiler_list" = ""; then
6854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6856 for depmode in $am_compiler_list; do
6857 # Setup a source with many dependencies, because some compilers
6858 # like to wrap large dependency lists on column 80 (with \), and
6859 # we should not choose a depcomp mode which is confused by this.
6861 # We need to recreate these files for each test, as the compiler may
6862 # overwrite some of them when testing with obscure command lines.
6863 # This happens at least with the AIX C compiler.
6864 : > sub/conftest.c
6865 for i in 1 2 3 4 5 6; do
6866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6867 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6868 # Solaris 8's {/usr,}/bin/sh.
6869 touch sub/conftst$i.h
6870 done
6871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6873 case $depmode in
6874 nosideeffect)
6875 # after this tag, mechanisms are not by side-effect, so they'll
6876 # only be used when explicitly requested
6877 if test "x$enable_dependency_tracking" = xyes; then
6878 continue
6879 else
6880 break
6883 none) break ;;
6884 esac
6885 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6886 # mode. It turns out that the SunPro C++ compiler does not properly
6887 # handle `-M -o', and we need to detect this.
6888 if depmode=$depmode \
6889 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6891 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6892 >/dev/null 2>conftest.err &&
6893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6894 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6896 # icc doesn't choke on unknown options, it will just issue warnings
6897 # or remarks (even with -Werror). So we grep stderr for any message
6898 # that says an option was ignored or not supported.
6899 # When given -MP, icc 7.0 and 7.1 complain thusly:
6900 # icc: Command line warning: ignoring option '-M'; no argument required
6901 # The diagnosis changed in icc 8.0:
6902 # icc: Command line remark: option '-MP' not supported
6903 if (grep 'ignoring option' conftest.err ||
6904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6905 am_cv_CXX_dependencies_compiler_type=$depmode
6906 break
6909 done
6911 cd ..
6912 rm -rf conftest.dir
6913 else
6914 am_cv_CXX_dependencies_compiler_type=none
6918 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6919 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6920 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6925 test "x$enable_dependency_tracking" != xno \
6926 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6927 am__fastdepCXX_TRUE=
6928 am__fastdepCXX_FALSE='#'
6929 else
6930 am__fastdepCXX_TRUE='#'
6931 am__fastdepCXX_FALSE=
6934 ac_ext=cc
6935 ac_cpp='$CXXCPP $CPPFLAGS'
6936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6939 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6940 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6941 if test -z "$CXXCPP"; then
6942 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 # Double quotes because CXXCPP needs to be expanded
6946 for CXXCPP in "$CXX -E" "/lib/cpp"
6948 ac_preproc_ok=false
6949 for ac_cxx_preproc_warn_flag in '' yes
6951 # Use a header file that comes with gcc, so configuring glibc
6952 # with a fresh cross-compiler works.
6953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6954 # <limits.h> exists even on freestanding compilers.
6955 # On the NeXT, cc -E runs the code through the compiler's parser,
6956 # not just through cpp. "Syntax error" is here to catch this case.
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #ifdef __STDC__
6964 # include <limits.h>
6965 #else
6966 # include <assert.h>
6967 #endif
6968 Syntax error
6969 _ACEOF
6970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } >/dev/null; then
6978 if test -s conftest.err; then
6979 ac_cpp_err=$ac_cxx_preproc_warn_flag
6980 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6981 else
6982 ac_cpp_err=
6984 else
6985 ac_cpp_err=yes
6987 if test -z "$ac_cpp_err"; then
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 # Broken: fails on valid input.
6994 continue
6996 rm -f conftest.err conftest.$ac_ext
6998 # OK, works on sane cases. Now check whether non-existent headers
6999 # can be detected and how.
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <ac_nonexistent.h>
7007 _ACEOF
7008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null; then
7016 if test -s conftest.err; then
7017 ac_cpp_err=$ac_cxx_preproc_warn_flag
7018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7019 else
7020 ac_cpp_err=
7022 else
7023 ac_cpp_err=yes
7025 if test -z "$ac_cpp_err"; then
7026 # Broken: success on invalid input.
7027 continue
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 # Passes both tests.
7033 ac_preproc_ok=:
7034 break
7036 rm -f conftest.err conftest.$ac_ext
7038 done
7039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7040 rm -f conftest.err conftest.$ac_ext
7041 if $ac_preproc_ok; then
7042 break
7045 done
7046 ac_cv_prog_CXXCPP=$CXXCPP
7049 CXXCPP=$ac_cv_prog_CXXCPP
7050 else
7051 ac_cv_prog_CXXCPP=$CXXCPP
7053 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7054 echo "${ECHO_T}$CXXCPP" >&6
7055 ac_preproc_ok=false
7056 for ac_cxx_preproc_warn_flag in '' yes
7058 # Use a header file that comes with gcc, so configuring glibc
7059 # with a fresh cross-compiler works.
7060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7061 # <limits.h> exists even on freestanding compilers.
7062 # On the NeXT, cc -E runs the code through the compiler's parser,
7063 # not just through cpp. "Syntax error" is here to catch this case.
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 #ifdef __STDC__
7071 # include <limits.h>
7072 #else
7073 # include <assert.h>
7074 #endif
7075 Syntax error
7076 _ACEOF
7077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null; then
7085 if test -s conftest.err; then
7086 ac_cpp_err=$ac_cxx_preproc_warn_flag
7087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7088 else
7089 ac_cpp_err=
7091 else
7092 ac_cpp_err=yes
7094 if test -z "$ac_cpp_err"; then
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 # Broken: fails on valid input.
7101 continue
7103 rm -f conftest.err conftest.$ac_ext
7105 # OK, works on sane cases. Now check whether non-existent headers
7106 # can be detected and how.
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } >/dev/null; then
7123 if test -s conftest.err; then
7124 ac_cpp_err=$ac_cxx_preproc_warn_flag
7125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7126 else
7127 ac_cpp_err=
7129 else
7130 ac_cpp_err=yes
7132 if test -z "$ac_cpp_err"; then
7133 # Broken: success on invalid input.
7134 continue
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 # Passes both tests.
7140 ac_preproc_ok=:
7141 break
7143 rm -f conftest.err conftest.$ac_ext
7145 done
7146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7147 rm -f conftest.err conftest.$ac_ext
7148 if $ac_preproc_ok; then
7150 else
7151 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7152 See \`config.log' for more details." >&5
7153 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7154 See \`config.log' for more details." >&2;}
7155 { (exit 1); exit 1; }; }
7158 ac_ext=c
7159 ac_cpp='$CPP $CPPFLAGS'
7160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7166 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7167 lt_save_CC="$CC"
7168 lt_save_CFLAGS="$CFLAGS"
7169 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7170 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7171 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7172 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7173 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7174 deplibs_check_method="$deplibs_check_method" \
7175 file_magic_cmd="$file_magic_cmd" \
7176 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7177 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7178 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7179 echo "$as_me: error: libtool tag configuration failed" >&2;}
7180 { (exit 1); exit 1; }; }
7181 CC="$lt_save_CC"
7182 CFLAGS="$lt_save_CFLAGS"
7184 # Redirect the config.log output again, so that the ltconfig log is not
7185 # clobbered by the next message.
7186 exec 5>>./config.log
7191 if test "x${COMPILE_JNI}" = xyes; then
7192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7194 if test "${ac_cv_header_stdc+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <stdlib.h>
7204 #include <stdarg.h>
7205 #include <string.h>
7206 #include <float.h>
7209 main ()
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_header_stdc=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 ac_cv_header_stdc=no
7244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 if test $ac_cv_header_stdc = yes; then
7247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 #include <string.h>
7256 _ACEOF
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "memchr" >/dev/null 2>&1; then
7260 else
7261 ac_cv_header_stdc=no
7263 rm -f conftest*
7267 if test $ac_cv_header_stdc = yes; then
7268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h. */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 #include <stdlib.h>
7277 _ACEOF
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279 $EGREP "free" >/dev/null 2>&1; then
7281 else
7282 ac_cv_header_stdc=no
7284 rm -f conftest*
7288 if test $ac_cv_header_stdc = yes; then
7289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7290 if test "$cross_compiling" = yes; then
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <ctype.h>
7300 #if ((' ' & 0x0FF) == 0x020)
7301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7303 #else
7304 # define ISLOWER(c) \
7305 (('a' <= (c) && (c) <= 'i') \
7306 || ('j' <= (c) && (c) <= 'r') \
7307 || ('s' <= (c) && (c) <= 'z'))
7308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7309 #endif
7311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313 main ()
7315 int i;
7316 for (i = 0; i < 256; i++)
7317 if (XOR (islower (i), ISLOWER (i))
7318 || toupper (i) != TOUPPER (i))
7319 exit(2);
7320 exit (0);
7322 _ACEOF
7323 rm -f conftest$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325 (eval $ac_link) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7335 else
7336 echo "$as_me: program exited with status $ac_status" >&5
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ( exit $ac_status )
7341 ac_cv_header_stdc=no
7343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7349 if test $ac_cv_header_stdc = yes; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define STDC_HEADERS 1
7353 _ACEOF
7358 echo "$as_me:$LINENO: checking size of void *" >&5
7359 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7360 if test "${ac_cv_sizeof_void_p+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 #include "confdefs.h"
7371 #include <sys/types.h>
7375 main ()
7377 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7379 return 0;
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>conftest.er1
7385 ac_status=$?
7386 grep -v '^ *+' conftest.er1 >conftest.err
7387 rm -f conftest.er1
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_cv_sizeof_void_p=$ac_size
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7411 done
7415 if test x$ac_cv_sizeof_void_p = x ; then
7416 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
7417 echo "$as_me: error: cannot determine a size for void *" >&2;}
7418 { (exit 1); exit 1; }; }
7420 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7421 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7423 cat >>confdefs.h <<_ACEOF
7424 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7425 _ACEOF
7429 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7430 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7431 if test "${ac_cv_c_bigendian+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 ac_cv_c_bigendian=unknown
7435 # See if sys/param.h defines the BYTE_ORDER macro.
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 #include <sys/types.h>
7443 #include <sys/param.h>
7445 main ()
7448 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7449 bogus endian macros
7450 #endif
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 # It does; now see whether it defined to BIG_ENDIAN or not.
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <sys/types.h>
7484 #include <sys/param.h>
7486 main ()
7489 #if BYTE_ORDER != BIG_ENDIAN
7490 not big endian
7491 #endif
7493 return 0;
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } &&
7505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; } &&
7511 { ac_try='test -s conftest.$ac_objext'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; }; then
7517 ac_cv_c_bigendian=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 ac_cv_c_bigendian=no
7524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525 else
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 if test $ac_cv_c_bigendian = unknown; then
7532 if test "$cross_compiling" = yes; then
7533 echo $ac_n "cross-compiling... " 2>&6
7534 else
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 main () {
7542 /* Are we little or big endian? From Harbison&Steele. */
7543 union
7545 long l;
7546 char c[sizeof (long)];
7547 } u;
7548 u.l = 1;
7549 exit (u.c[sizeof (long) - 1] == 1);
7551 _ACEOF
7552 rm -f conftest$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_c_bigendian=no
7564 else
7565 echo "$as_me: program exited with status $ac_status" >&5
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ( exit $ac_status )
7570 ac_cv_c_bigendian=yes
7572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7577 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7578 if test $ac_cv_c_bigendian = unknown; then
7579 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
7580 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
7582 cat >conftest.c <<EOF
7583 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7584 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7585 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7586 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7587 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7588 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7589 int main() { _ascii (); _ebcdic (); return 0; }
7591 if test -f conftest.c ; then
7592 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7593 if test `grep -l BIGenDianSyS conftest.o` ; then
7594 echo $ac_n ' big endian probe OK, ' 1>&6
7595 ac_cv_c_bigendian=yes
7597 if test `grep -l LiTTleEnDian conftest.o` ; then
7598 echo $ac_n ' little endian probe OK, ' 1>&6
7599 if test $ac_cv_c_bigendian = yes ; then
7600 ac_cv_c_bigendian=unknown;
7601 else
7602 ac_cv_c_bigendian=no
7605 echo $ac_n 'guessing bigendian ... ' >&6
7608 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7609 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7611 if test $ac_cv_c_bigendian = yes; then
7613 cat >>confdefs.h <<\_ACEOF
7614 #define WORDS_BIGENDIAN 1
7615 _ACEOF
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HOST_WORDS_BIG_ENDIAN 1
7620 _ACEOF
7622 BYTEORDER=4321
7623 else
7624 BYTEORDER=1234
7627 cat >>confdefs.h <<_ACEOF
7628 #define BYTEORDER $BYTEORDER
7629 _ACEOF
7631 if test $ac_cv_c_bigendian = unknown; then
7632 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
7633 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
7634 { (exit 1); exit 1; }; }
7653 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7654 asm/ioctls.h \
7655 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7656 sys/time.h \
7657 sys/select.h \
7658 crt_externs.h \
7659 fcntl.h \
7660 sys/mman.h
7662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664 echo "$as_me:$LINENO: checking for $ac_header" >&5
7665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7671 else
7672 # Is the header compilable?
7673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 #include <$ac_header>
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_header_compiler=yes
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_header_compiler=no
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7714 echo "${ECHO_T}$ac_header_compiler" >&6
7716 # Is the header present?
7717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 #include <$ac_header>
7726 _ACEOF
7727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } >/dev/null; then
7735 if test -s conftest.err; then
7736 ac_cpp_err=$ac_c_preproc_warn_flag
7737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7738 else
7739 ac_cpp_err=
7741 else
7742 ac_cpp_err=yes
7744 if test -z "$ac_cpp_err"; then
7745 ac_header_preproc=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_header_preproc=no
7752 rm -f conftest.err conftest.$ac_ext
7753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7754 echo "${ECHO_T}$ac_header_preproc" >&6
7756 # So? What about this header?
7757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7758 yes:no: )
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7763 ac_header_preproc=yes
7765 no:yes:* )
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7779 cat <<\_ASBOX
7780 ## -------------------------------- ##
7781 ## Report this to classpath@gnu.org ##
7782 ## -------------------------------- ##
7783 _ASBOX
7785 sed "s/^/$as_me: WARNING: /" >&2
7787 esac
7788 echo "$as_me:$LINENO: checking for $ac_header" >&5
7789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 eval "$as_ac_Header=\$ac_header_preproc"
7795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7800 cat >>confdefs.h <<_ACEOF
7801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7802 _ACEOF
7806 done
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <stdint.h>
7817 _ACEOF
7818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7819 $EGREP "uint32_t" >/dev/null 2>&1; then
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_INT32_DEFINED 1
7823 _ACEOF
7826 rm -f conftest*
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <inttypes.h>
7836 _ACEOF
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 $EGREP "uint32_t" >/dev/null 2>&1; then
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_INT32_DEFINED 1
7842 _ACEOF
7845 rm -f conftest*
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <sys/types.h>
7855 _ACEOF
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857 $EGREP "u_int32_t" >/dev/null 2>&1; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_BSD_INT32_DEFINED 1
7861 _ACEOF
7864 rm -f conftest*
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <sys/config.h>
7874 _ACEOF
7875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7876 $EGREP "u_int32_t" >/dev/null 2>&1; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_BSD_INT32_DEFINED 1
7880 _ACEOF
7883 rm -f conftest*
7928 for ac_func in ftruncate fsync select \
7929 gethostname socket strerror fork pipe execve open close \
7930 lseek fstat read write htonl memset htons connect \
7931 getsockname getpeername bind listen accept \
7932 recvfrom send sendto setsockopt getsockopt time mktime \
7933 localtime_r \
7934 strerror_r \
7935 fcntl \
7936 mmap munmap mincore msync madvise getpagesize sysconf \
7937 isnan
7939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7940 echo "$as_me:$LINENO: checking for $ac_func" >&5
7941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7942 if eval "test \"\${$as_ac_var+set}\" = set"; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7953 #define $ac_func innocuous_$ac_func
7955 /* System header to define __stub macros and hopefully few prototypes,
7956 which can conflict with char $ac_func (); below.
7957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7958 <limits.h> exists even on freestanding compilers. */
7960 #ifdef __STDC__
7961 # include <limits.h>
7962 #else
7963 # include <assert.h>
7964 #endif
7966 #undef $ac_func
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 #ifdef __cplusplus
7970 extern "C"
7972 #endif
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7975 char $ac_func ();
7976 /* The GNU C library defines this for functions which it implements
7977 to always fail with ENOSYS. Some functions are actually named
7978 something starting with __ and the normal name is an alias. */
7979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7980 choke me
7981 #else
7982 char (*f) () = $ac_func;
7983 #endif
7984 #ifdef __cplusplus
7986 #endif
7989 main ()
7991 return f != $ac_func;
7993 return 0;
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 eval "$as_ac_var=yes"
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 eval "$as_ac_var=no"
8024 rm -f conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8029 if test `eval echo '${'$as_ac_var'}'` = yes; then
8030 cat >>confdefs.h <<_ACEOF
8031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8032 _ACEOF
8035 done
8038 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8039 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8040 if test "${ac_cv_header_time+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 #include <sys/types.h>
8050 #include <sys/time.h>
8051 #include <time.h>
8054 main ()
8056 if ((struct tm *) 0)
8057 return 0;
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest.$ac_objext'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_cv_header_time=yes
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_header_time=no
8090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8092 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8093 echo "${ECHO_T}$ac_cv_header_time" >&6
8094 if test $ac_cv_header_time = yes; then
8096 cat >>confdefs.h <<\_ACEOF
8097 #define TIME_WITH_SYS_TIME 1
8098 _ACEOF
8102 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8103 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8104 if test "${ac_cv_struct_tm+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 #include <sys/types.h>
8114 #include <time.h>
8117 main ()
8119 struct tm *tp; tp->tm_sec;
8121 return 0;
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_struct_tm=time.h
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_struct_tm=sys/time.h
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8155 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8156 if test $ac_cv_struct_tm = sys/time.h; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define TM_IN_SYS_TIME 1
8160 _ACEOF
8164 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8165 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8166 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8176 #include <$ac_cv_struct_tm>
8180 main ()
8182 static struct tm ac_aggr;
8183 if (ac_aggr.tm_zone)
8184 return 0;
8186 return 0;
8188 _ACEOF
8189 rm -f conftest.$ac_objext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8191 (eval $ac_compile) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_member_struct_tm_tm_zone=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 #include <sys/types.h>
8222 #include <$ac_cv_struct_tm>
8226 main ()
8228 static struct tm ac_aggr;
8229 if (sizeof ac_aggr.tm_zone)
8230 return 0;
8232 return 0;
8234 _ACEOF
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest.$ac_objext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_member_struct_tm_tm_zone=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_cv_member_struct_tm_tm_zone=no
8263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8268 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8269 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define HAVE_STRUCT_TM_TM_ZONE 1
8273 _ACEOF
8278 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_TM_ZONE 1
8282 _ACEOF
8284 else
8285 echo "$as_me:$LINENO: checking for tzname" >&5
8286 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8287 if test "${ac_cv_var_tzname+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 #include <time.h>
8297 #ifndef tzname /* For SGI. */
8298 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8299 #endif
8302 main ()
8304 atoi(*tzname);
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_var_tzname=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_var_tzname=no
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8341 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8342 if test $ac_cv_var_tzname = yes; then
8344 cat >>confdefs.h <<\_ACEOF
8345 #define HAVE_TZNAME 1
8346 _ACEOF
8352 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8353 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <time.h>
8362 main ()
8364 struct tm tim; tim.tm_gmtoff = 0;
8366 return 0;
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371 (eval $ac_compile) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8391 cat >>confdefs.h <<\_ACEOF
8392 #define STRUCT_TM_HAS_GMTOFF 1
8393 _ACEOF
8395 echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8403 echo "$as_me:$LINENO: checking for global timezone variable" >&5
8404 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include <time.h>
8413 main ()
8415 void i(){long z2 = 2*timezone;}
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8422 (eval $ac_compile) 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 (eval $ac_try) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_TIMEZONE 1
8444 _ACEOF
8446 echo "$as_me:$LINENO: result: yes" >&5
8447 echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8454 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8455 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 #include <time.h>
8464 main ()
8466 long z2 = _timezone;
8468 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_UNDERSCORE_TIMEZONE 1
8495 _ACEOF
8497 echo "$as_me:$LINENO: result: yes" >&5
8498 echo "${ECHO_T}yes" >&6
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 echo "$as_me:$LINENO: result: no" >&5
8504 echo "${ECHO_T}no" >&6
8506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8513 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8514 if test "${ac_cv_c_const+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8525 main ()
8527 /* FIXME: Include the comments suggested by Paul. */
8528 #ifndef __cplusplus
8529 /* Ultrix mips cc rejects this. */
8530 typedef int charset[2];
8531 const charset x;
8532 /* SunOS 4.1.1 cc rejects this. */
8533 char const *const *ccp;
8534 char **p;
8535 /* NEC SVR4.0.2 mips cc rejects this. */
8536 struct point {int x, y;};
8537 static struct point const zero = {0,0};
8538 /* AIX XL C 1.02.0.0 rejects this.
8539 It does not let you subtract one const X* pointer from another in
8540 an arm of an if-expression whose if-part is not a constant
8541 expression */
8542 const char *g = "string";
8543 ccp = &g + (g ? g-g : 0);
8544 /* HPUX 7.0 cc rejects these. */
8545 ++ccp;
8546 p = (char**) ccp;
8547 ccp = (char const *const *) p;
8548 { /* SCO 3.2v4 cc rejects this. */
8549 char *t;
8550 char const *s = 0 ? (char *) 0 : (char const *) 0;
8552 *t++ = 0;
8554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8555 int x[] = {25, 17};
8556 const int *foo = &x[0];
8557 ++foo;
8559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8560 typedef const int *iptr;
8561 iptr p = 0;
8562 ++p;
8564 { /* AIX XL C 1.02.0.0 rejects this saying
8565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8566 struct s { int j; const int *ap[3]; };
8567 struct s *b; b->j = 5;
8569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8570 const int foo = 10;
8572 #endif
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_c_const=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_c_const=no
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8609 echo "${ECHO_T}$ac_cv_c_const" >&6
8610 if test $ac_cv_c_const = no; then
8612 cat >>confdefs.h <<\_ACEOF
8613 #define const
8614 _ACEOF
8618 echo "$as_me:$LINENO: checking for __attribute__" >&5
8619 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8620 if test "${ac_cv_c_attribute+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 void foo(void) __attribute__ ((__noreturn__));
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_c_attribute=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_c_attribute=no
8662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8666 echo "${ECHO_T}$ac_cv_c_attribute" >&6
8669 case $ac_cv_c_attribute in
8670 yes) ;;
8672 cat >>confdefs.h <<_ACEOF
8673 #define __attribute__(x) /* nothing */
8674 _ACEOF
8676 esac
8680 if test "X$prefix" = "XNONE"; then
8681 acl_final_prefix="$ac_default_prefix"
8682 else
8683 acl_final_prefix="$prefix"
8685 if test "X$exec_prefix" = "XNONE"; then
8686 acl_final_exec_prefix='${prefix}'
8687 else
8688 acl_final_exec_prefix="$exec_prefix"
8690 acl_save_prefix="$prefix"
8691 prefix="$acl_final_prefix"
8692 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8693 prefix="$acl_save_prefix"
8696 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8697 if test "${with_gnu_ld+set}" = set; then
8698 withval="$with_gnu_ld"
8699 test "$withval" = no || with_gnu_ld=yes
8700 else
8701 with_gnu_ld=no
8703 # Prepare PATH_SEPARATOR.
8704 # The user is always right.
8705 if test "${PATH_SEPARATOR+set}" != set; then
8706 echo "#! /bin/sh" >conf$$.sh
8707 echo "exit 0" >>conf$$.sh
8708 chmod +x conf$$.sh
8709 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8710 PATH_SEPARATOR=';'
8711 else
8712 PATH_SEPARATOR=:
8714 rm -f conf$$.sh
8716 ac_prog=ld
8717 if test "$GCC" = yes; then
8718 # Check if gcc -print-prog-name=ld gives a path.
8719 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8720 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8721 case $host in
8722 *-*-mingw*)
8723 # gcc leaves a trailing carriage return which upsets mingw
8724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8727 esac
8728 case $ac_prog in
8729 # Accept absolute paths.
8730 [\\/]* | [A-Za-z]:[\\/]*)
8731 re_direlt='/[^/][^/]*/\.\./'
8732 # Canonicalize the path of ld
8733 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8734 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8735 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8736 done
8737 test -z "$LD" && LD="$ac_prog"
8740 # If it fails, then pretend we aren't using GCC.
8741 ac_prog=ld
8744 # If it is relative, then search for the first ld in PATH.
8745 with_gnu_ld=unknown
8747 esac
8748 elif test "$with_gnu_ld" = yes; then
8749 echo "$as_me:$LINENO: checking for GNU ld" >&5
8750 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8751 else
8752 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8753 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8755 if test "${acl_cv_path_LD+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 if test -z "$LD"; then
8759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8760 for ac_dir in $PATH; do
8761 test -z "$ac_dir" && ac_dir=.
8762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8763 acl_cv_path_LD="$ac_dir/$ac_prog"
8764 # Check to see if the program is GNU ld. I'd rather use --version,
8765 # but apparently some GNU ld's only accept -v.
8766 # Break only if it was the GNU/non-GNU ld that we prefer.
8767 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8768 test "$with_gnu_ld" != no && break
8769 else
8770 test "$with_gnu_ld" != yes && break
8773 done
8774 IFS="$ac_save_ifs"
8775 else
8776 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8780 LD="$acl_cv_path_LD"
8781 if test -n "$LD"; then
8782 echo "$as_me:$LINENO: result: $LD" >&5
8783 echo "${ECHO_T}$LD" >&6
8784 else
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8788 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8789 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8790 { (exit 1); exit 1; }; }
8791 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8792 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8793 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8797 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8798 acl_cv_prog_gnu_ld=yes
8799 else
8800 acl_cv_prog_gnu_ld=no
8803 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8804 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8805 with_gnu_ld=$acl_cv_prog_gnu_ld
8809 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8810 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8811 if test "${acl_cv_rpath+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8815 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8816 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8817 . ./conftest.sh
8818 rm -f ./conftest.sh
8819 acl_cv_rpath=done
8822 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8823 echo "${ECHO_T}$acl_cv_rpath" >&6
8824 wl="$acl_cv_wl"
8825 libext="$acl_cv_libext"
8826 shlibext="$acl_cv_shlibext"
8827 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8828 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8829 hardcode_direct="$acl_cv_hardcode_direct"
8830 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8831 # Check whether --enable-rpath or --disable-rpath was given.
8832 if test "${enable_rpath+set}" = set; then
8833 enableval="$enable_rpath"
8835 else
8836 enable_rpath=yes
8845 use_additional=yes
8847 acl_save_prefix="$prefix"
8848 prefix="$acl_final_prefix"
8849 acl_save_exec_prefix="$exec_prefix"
8850 exec_prefix="$acl_final_exec_prefix"
8852 eval additional_includedir=\"$includedir\"
8853 eval additional_libdir=\"$libdir\"
8855 exec_prefix="$acl_save_exec_prefix"
8856 prefix="$acl_save_prefix"
8859 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8860 if test "${with_libiconv_prefix+set}" = set; then
8861 withval="$with_libiconv_prefix"
8863 if test "X$withval" = "Xno"; then
8864 use_additional=no
8865 else
8866 if test "X$withval" = "X"; then
8868 acl_save_prefix="$prefix"
8869 prefix="$acl_final_prefix"
8870 acl_save_exec_prefix="$exec_prefix"
8871 exec_prefix="$acl_final_exec_prefix"
8873 eval additional_includedir=\"$includedir\"
8874 eval additional_libdir=\"$libdir\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8879 else
8880 additional_includedir="$withval/include"
8881 additional_libdir="$withval/lib"
8886 LIBICONV=
8887 LTLIBICONV=
8888 INCICONV=
8889 rpathdirs=
8890 ltrpathdirs=
8891 names_already_handled=
8892 names_next_round='iconv '
8893 while test -n "$names_next_round"; do
8894 names_this_round="$names_next_round"
8895 names_next_round=
8896 for name in $names_this_round; do
8897 already_handled=
8898 for n in $names_already_handled; do
8899 if test "$n" = "$name"; then
8900 already_handled=yes
8901 break
8903 done
8904 if test -z "$already_handled"; then
8905 names_already_handled="$names_already_handled $name"
8906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8907 eval value=\"\$HAVE_LIB$uppername\"
8908 if test -n "$value"; then
8909 if test "$value" = yes; then
8910 eval value=\"\$LIB$uppername\"
8911 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8912 eval value=\"\$LTLIB$uppername\"
8913 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8914 else
8917 else
8918 found_dir=
8919 found_la=
8920 found_so=
8921 found_a=
8922 if test $use_additional = yes; then
8923 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8924 found_dir="$additional_libdir"
8925 found_so="$additional_libdir/lib$name.$shlibext"
8926 if test -f "$additional_libdir/lib$name.la"; then
8927 found_la="$additional_libdir/lib$name.la"
8929 else
8930 if test -f "$additional_libdir/lib$name.$libext"; then
8931 found_dir="$additional_libdir"
8932 found_a="$additional_libdir/lib$name.$libext"
8933 if test -f "$additional_libdir/lib$name.la"; then
8934 found_la="$additional_libdir/lib$name.la"
8939 if test "X$found_dir" = "X"; then
8940 for x in $LDFLAGS $LTLIBICONV; do
8942 acl_save_prefix="$prefix"
8943 prefix="$acl_final_prefix"
8944 acl_save_exec_prefix="$exec_prefix"
8945 exec_prefix="$acl_final_exec_prefix"
8946 eval x=\"$x\"
8947 exec_prefix="$acl_save_exec_prefix"
8948 prefix="$acl_save_prefix"
8950 case "$x" in
8951 -L*)
8952 dir=`echo "X$x" | sed -e 's/^X-L//'`
8953 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8954 found_dir="$dir"
8955 found_so="$dir/lib$name.$shlibext"
8956 if test -f "$dir/lib$name.la"; then
8957 found_la="$dir/lib$name.la"
8959 else
8960 if test -f "$dir/lib$name.$libext"; then
8961 found_dir="$dir"
8962 found_a="$dir/lib$name.$libext"
8963 if test -f "$dir/lib$name.la"; then
8964 found_la="$dir/lib$name.la"
8969 esac
8970 if test "X$found_dir" != "X"; then
8971 break
8973 done
8975 if test "X$found_dir" != "X"; then
8976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8977 if test "X$found_so" != "X"; then
8978 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8980 else
8981 haveit=
8982 for x in $ltrpathdirs; do
8983 if test "X$x" = "X$found_dir"; then
8984 haveit=yes
8985 break
8987 done
8988 if test -z "$haveit"; then
8989 ltrpathdirs="$ltrpathdirs $found_dir"
8991 if test "$hardcode_direct" = yes; then
8992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8993 else
8994 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8995 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8996 haveit=
8997 for x in $rpathdirs; do
8998 if test "X$x" = "X$found_dir"; then
8999 haveit=yes
9000 break
9002 done
9003 if test -z "$haveit"; then
9004 rpathdirs="$rpathdirs $found_dir"
9006 else
9007 haveit=
9008 for x in $LDFLAGS $LIBICONV; do
9010 acl_save_prefix="$prefix"
9011 prefix="$acl_final_prefix"
9012 acl_save_exec_prefix="$exec_prefix"
9013 exec_prefix="$acl_final_exec_prefix"
9014 eval x=\"$x\"
9015 exec_prefix="$acl_save_exec_prefix"
9016 prefix="$acl_save_prefix"
9018 if test "X$x" = "X-L$found_dir"; then
9019 haveit=yes
9020 break
9022 done
9023 if test -z "$haveit"; then
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9026 if test "$hardcode_minus_L" != no; then
9027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9028 else
9029 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9034 else
9035 if test "X$found_a" != "X"; then
9036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9037 else
9038 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9041 additional_includedir=
9042 case "$found_dir" in
9043 */lib | */lib/)
9044 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9045 additional_includedir="$basedir/include"
9047 esac
9048 if test "X$additional_includedir" != "X"; then
9049 if test "X$additional_includedir" != "X/usr/include"; then
9050 haveit=
9051 if test "X$additional_includedir" = "X/usr/local/include"; then
9052 if test -n "$GCC"; then
9053 case $host_os in
9054 linux*) haveit=yes;;
9055 esac
9058 if test -z "$haveit"; then
9059 for x in $CPPFLAGS $INCICONV; do
9061 acl_save_prefix="$prefix"
9062 prefix="$acl_final_prefix"
9063 acl_save_exec_prefix="$exec_prefix"
9064 exec_prefix="$acl_final_exec_prefix"
9065 eval x=\"$x\"
9066 exec_prefix="$acl_save_exec_prefix"
9067 prefix="$acl_save_prefix"
9069 if test "X$x" = "X-I$additional_includedir"; then
9070 haveit=yes
9071 break
9073 done
9074 if test -z "$haveit"; then
9075 if test -d "$additional_includedir"; then
9076 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9082 if test -n "$found_la"; then
9083 save_libdir="$libdir"
9084 case "$found_la" in
9085 */* | *\\*) . "$found_la" ;;
9086 *) . "./$found_la" ;;
9087 esac
9088 libdir="$save_libdir"
9089 for dep in $dependency_libs; do
9090 case "$dep" in
9091 -L*)
9092 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9093 if test "X$additional_libdir" != "X/usr/lib"; then
9094 haveit=
9095 if test "X$additional_libdir" = "X/usr/local/lib"; then
9096 if test -n "$GCC"; then
9097 case $host_os in
9098 linux*) haveit=yes;;
9099 esac
9102 if test -z "$haveit"; then
9103 haveit=
9104 for x in $LDFLAGS $LIBICONV; do
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110 eval x=\"$x\"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9114 if test "X$x" = "X-L$additional_libdir"; then
9115 haveit=yes
9116 break
9118 done
9119 if test -z "$haveit"; then
9120 if test -d "$additional_libdir"; then
9121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9124 haveit=
9125 for x in $LDFLAGS $LTLIBICONV; do
9127 acl_save_prefix="$prefix"
9128 prefix="$acl_final_prefix"
9129 acl_save_exec_prefix="$exec_prefix"
9130 exec_prefix="$acl_final_exec_prefix"
9131 eval x=\"$x\"
9132 exec_prefix="$acl_save_exec_prefix"
9133 prefix="$acl_save_prefix"
9135 if test "X$x" = "X-L$additional_libdir"; then
9136 haveit=yes
9137 break
9139 done
9140 if test -z "$haveit"; then
9141 if test -d "$additional_libdir"; then
9142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9148 -R*)
9149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9150 if test "$enable_rpath" != no; then
9151 haveit=
9152 for x in $rpathdirs; do
9153 if test "X$x" = "X$dir"; then
9154 haveit=yes
9155 break
9157 done
9158 if test -z "$haveit"; then
9159 rpathdirs="$rpathdirs $dir"
9161 haveit=
9162 for x in $ltrpathdirs; do
9163 if test "X$x" = "X$dir"; then
9164 haveit=yes
9165 break
9167 done
9168 if test -z "$haveit"; then
9169 ltrpathdirs="$ltrpathdirs $dir"
9173 -l*)
9174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9176 *.la)
9177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9180 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9183 esac
9184 done
9186 else
9187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9192 done
9193 done
9194 if test "X$rpathdirs" != "X"; then
9195 if test -n "$hardcode_libdir_separator"; then
9196 alldirs=
9197 for found_dir in $rpathdirs; do
9198 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9199 done
9200 acl_save_libdir="$libdir"
9201 libdir="$alldirs"
9202 eval flag=\"$hardcode_libdir_flag_spec\"
9203 libdir="$acl_save_libdir"
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9205 else
9206 for found_dir in $rpathdirs; do
9207 acl_save_libdir="$libdir"
9208 libdir="$found_dir"
9209 eval flag=\"$hardcode_libdir_flag_spec\"
9210 libdir="$acl_save_libdir"
9211 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9212 done
9215 if test "X$ltrpathdirs" != "X"; then
9216 for found_dir in $ltrpathdirs; do
9217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9218 done
9227 am_save_CPPFLAGS="$CPPFLAGS"
9229 for element in $INCICONV; do
9230 haveit=
9231 for x in $CPPFLAGS; do
9233 acl_save_prefix="$prefix"
9234 prefix="$acl_final_prefix"
9235 acl_save_exec_prefix="$exec_prefix"
9236 exec_prefix="$acl_final_exec_prefix"
9237 eval x=\"$x\"
9238 exec_prefix="$acl_save_exec_prefix"
9239 prefix="$acl_save_prefix"
9241 if test "X$x" = "X$element"; then
9242 haveit=yes
9243 break
9245 done
9246 if test -z "$haveit"; then
9247 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9249 done
9252 echo "$as_me:$LINENO: checking for iconv" >&5
9253 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9254 if test "${am_cv_func_iconv+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9258 am_cv_func_iconv="no, consider installing GNU libiconv"
9259 am_cv_lib_iconv=no
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <stdlib.h>
9267 #include <iconv.h>
9269 main ()
9271 iconv_t cd = iconv_open("","");
9272 iconv(cd,NULL,NULL,NULL,NULL);
9273 iconv_close(cd);
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 am_cv_func_iconv=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9305 rm -f conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 if test "$am_cv_func_iconv" != yes; then
9308 am_save_LIBS="$LIBS"
9309 LIBS="$LIBS $LIBICONV"
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 #include <stdlib.h>
9317 #include <iconv.h>
9319 main ()
9321 iconv_t cd = iconv_open("","");
9322 iconv(cd,NULL,NULL,NULL,NULL);
9323 iconv_close(cd);
9325 return 0;
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 am_cv_lib_iconv=yes
9350 am_cv_func_iconv=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9356 rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LIBS="$am_save_LIBS"
9362 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9363 echo "${ECHO_T}$am_cv_func_iconv" >&6
9364 if test "$am_cv_func_iconv" = yes; then
9366 cat >>confdefs.h <<\_ACEOF
9367 #define HAVE_ICONV 1
9368 _ACEOF
9371 if test "$am_cv_lib_iconv" = yes; then
9372 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9373 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9374 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9375 echo "${ECHO_T}$LIBICONV" >&6
9376 else
9377 CPPFLAGS="$am_save_CPPFLAGS"
9378 LIBICONV=
9379 LTLIBICONV=
9384 if test "$am_cv_func_iconv" = yes; then
9385 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9386 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9387 if test "${am_cv_proto_iconv+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 #include <stdlib.h>
9399 #include <iconv.h>
9400 extern
9401 #ifdef __cplusplus
9403 #endif
9404 #if defined(__STDC__) || defined(__cplusplus)
9405 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9406 #else
9407 size_t iconv();
9408 #endif
9411 main ()
9415 return 0;
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; } &&
9433 { ac_try='test -s conftest.$ac_objext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 am_cv_proto_iconv_arg1=""
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 am_cv_proto_iconv_arg1="const"
9446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9447 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);"
9450 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9451 echo "$as_me:$LINENO: result: ${ac_t:-
9452 }$am_cv_proto_iconv" >&5
9453 echo "${ECHO_T}${ac_t:-
9454 }$am_cv_proto_iconv" >&6
9456 cat >>confdefs.h <<_ACEOF
9457 #define ICONV_CONST $am_cv_proto_iconv_arg1
9458 _ACEOF
9463 if test "x${GCC}" = xyes; then
9465 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9468 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9471 ERROR_CFLAGS=
9472 if test "x${ENABLE_WERROR}" = xyes; then
9473 ERROR_CFLAGS='-Werror'
9478 if test "x${COMPILE_XMLJ}" = xyes; then
9480 succeeded=no
9482 if test -z "$PKG_CONFIG"; then
9483 # Extract the first word of "pkg-config", so it can be a program name with args.
9484 set dummy pkg-config; ac_word=$2
9485 echo "$as_me:$LINENO: checking for $ac_word" >&5
9486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 case $PKG_CONFIG in
9491 [\\/]* | ?:[\\/]*)
9492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9511 esac
9513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9515 if test -n "$PKG_CONFIG"; then
9516 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9517 echo "${ECHO_T}$PKG_CONFIG" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6
9525 if test "$PKG_CONFIG" = "no" ; then
9526 echo "*** The pkg-config script could not be found. Make sure it is"
9527 echo "*** in your path, or set the PKG_CONFIG environment variable"
9528 echo "*** to the full path to pkg-config."
9529 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9530 else
9531 PKG_CONFIG_MIN_VERSION=0.9.0
9532 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9533 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9534 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9536 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9537 echo "$as_me:$LINENO: result: yes" >&5
9538 echo "${ECHO_T}yes" >&6
9539 succeeded=yes
9541 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9542 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9543 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9544 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9545 echo "${ECHO_T}$XML_CFLAGS" >&6
9547 echo "$as_me:$LINENO: checking XML_LIBS" >&5
9548 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9549 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9550 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9551 echo "${ECHO_T}$XML_LIBS" >&6
9552 else
9553 XML_CFLAGS=""
9554 XML_LIBS=""
9555 ## If we have a custom action on failure, don't print errors, but
9556 ## do set a variable so people can do so.
9557 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9558 echo $XML_PKG_ERRORS
9563 else
9564 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9565 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9569 if test $succeeded = yes; then
9571 else
9572 { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.6.8) 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
9573 echo "$as_me: error: Library requirements (libxml-2.0 >= 2.6.8) 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;}
9574 { (exit 1); exit 1; }; }
9578 succeeded=no
9580 if test -z "$PKG_CONFIG"; then
9581 # Extract the first word of "pkg-config", so it can be a program name with args.
9582 set dummy pkg-config; ac_word=$2
9583 echo "$as_me:$LINENO: checking for $ac_word" >&5
9584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9585 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 case $PKG_CONFIG in
9589 [\\/]* | ?:[\\/]*)
9590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9604 done
9605 done
9607 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9609 esac
9611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9613 if test -n "$PKG_CONFIG"; then
9614 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9615 echo "${ECHO_T}$PKG_CONFIG" >&6
9616 else
9617 echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6
9623 if test "$PKG_CONFIG" = "no" ; then
9624 echo "*** The pkg-config script could not be found. Make sure it is"
9625 echo "*** in your path, or set the PKG_CONFIG environment variable"
9626 echo "*** to the full path to pkg-config."
9627 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9628 else
9629 PKG_CONFIG_MIN_VERSION=0.9.0
9630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9631 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9632 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9634 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9635 echo "$as_me:$LINENO: result: yes" >&5
9636 echo "${ECHO_T}yes" >&6
9637 succeeded=yes
9639 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9640 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9641 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9642 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9643 echo "${ECHO_T}$XSLT_CFLAGS" >&6
9645 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9646 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9647 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9648 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9649 echo "${ECHO_T}$XSLT_LIBS" >&6
9650 else
9651 XSLT_CFLAGS=""
9652 XSLT_LIBS=""
9653 ## If we have a custom action on failure, don't print errors, but
9654 ## do set a variable so people can do so.
9655 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9656 echo $XSLT_PKG_ERRORS
9661 else
9662 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9663 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9667 if test $succeeded = yes; then
9669 else
9670 { { echo "$as_me:$LINENO: error: Library requirements (libxslt >= 1.1.11) 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
9671 echo "$as_me: error: Library requirements (libxslt >= 1.1.11) 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;}
9672 { (exit 1); exit 1; }; }
9681 if test "x${COMPILE_GTK_PEER}" = xyes; then
9683 if test "x$ac_path_x_has_been_run" != xyes; then
9684 echo "$as_me:$LINENO: checking for X" >&5
9685 echo $ECHO_N "checking for X... $ECHO_C" >&6
9687 ac_path_x_has_been_run=yes
9689 # Check whether --with-x or --without-x was given.
9690 if test "${with_x+set}" = set; then
9691 withval="$with_x"
9694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9695 if test "x$with_x" = xno; then
9696 # The user explicitly disabled X.
9697 have_x=disabled
9698 else
9699 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9700 # Both variables are already set.
9701 have_x=yes
9702 else
9703 if test "${ac_cv_have_x+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 # One or both of the vars are not set, and there is no cached value.
9707 ac_x_includes=no ac_x_libraries=no
9708 rm -fr conftest.dir
9709 if mkdir conftest.dir; then
9710 cd conftest.dir
9711 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9712 cat >Imakefile <<'_ACEOF'
9713 acfindx:
9714 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9715 _ACEOF
9716 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9718 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9720 for ac_extension in a so sl; do
9721 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9722 test -f $ac_im_libdir/libX11.$ac_extension; then
9723 ac_im_usrlibdir=$ac_im_libdir; break
9725 done
9726 # Screen out bogus values from the imake configuration. They are
9727 # bogus both because they are the default anyway, and because
9728 # using them would break gcc on systems where it needs fixed includes.
9729 case $ac_im_incroot in
9730 /usr/include) ;;
9731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9732 esac
9733 case $ac_im_usrlibdir in
9734 /usr/lib | /lib) ;;
9735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9736 esac
9738 cd ..
9739 rm -fr conftest.dir
9742 # Standard set of common directories for X headers.
9743 # Check X11 before X11Rn because it is often a symlink to the current release.
9744 ac_x_header_dirs='
9745 /usr/X11/include
9746 /usr/X11R6/include
9747 /usr/X11R5/include
9748 /usr/X11R4/include
9750 /usr/include/X11
9751 /usr/include/X11R6
9752 /usr/include/X11R5
9753 /usr/include/X11R4
9755 /usr/local/X11/include
9756 /usr/local/X11R6/include
9757 /usr/local/X11R5/include
9758 /usr/local/X11R4/include
9760 /usr/local/include/X11
9761 /usr/local/include/X11R6
9762 /usr/local/include/X11R5
9763 /usr/local/include/X11R4
9765 /usr/X386/include
9766 /usr/x386/include
9767 /usr/XFree86/include/X11
9769 /usr/include
9770 /usr/local/include
9771 /usr/unsupported/include
9772 /usr/athena/include
9773 /usr/local/x11r5/include
9774 /usr/lpp/Xamples/include
9776 /usr/openwin/include
9777 /usr/openwin/share/include'
9779 if test "$ac_x_includes" = no; then
9780 # Guess where to find include files, by looking for a specified header file.
9781 # First, try using that file with no special directory specified.
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 #include <X11/Xlib.h>
9789 _ACEOF
9790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } >/dev/null; then
9798 if test -s conftest.err; then
9799 ac_cpp_err=$ac_c_preproc_warn_flag
9800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9801 else
9802 ac_cpp_err=
9804 else
9805 ac_cpp_err=yes
9807 if test -z "$ac_cpp_err"; then
9808 # We can compile using X headers with no special include directory.
9809 ac_x_includes=
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 for ac_dir in $ac_x_header_dirs; do
9815 if test -r "$ac_dir/X11/Xlib.h"; then
9816 ac_x_includes=$ac_dir
9817 break
9819 done
9821 rm -f conftest.err conftest.$ac_ext
9822 fi # $ac_x_includes = no
9824 if test "$ac_x_libraries" = no; then
9825 # Check for the libraries.
9826 # See if we find them without any special options.
9827 # Don't add to $LIBS permanently.
9828 ac_save_LIBS=$LIBS
9829 LIBS="-lX11 $LIBS"
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <X11/Xlib.h>
9838 main ()
9840 XrmInitialize ()
9842 return 0;
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 LIBS=$ac_save_LIBS
9867 # We can link X programs with no special library path.
9868 ac_x_libraries=
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 LIBS=$ac_save_LIBS
9874 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9876 # Don't even attempt the hair of trying to link an X program!
9877 for ac_extension in a so sl; do
9878 if test -r $ac_dir/libX11.$ac_extension; then
9879 ac_x_libraries=$ac_dir
9880 break 2
9882 done
9883 done
9885 rm -f conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 fi # $ac_x_libraries = no
9889 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9890 # Didn't find X anywhere. Cache the known absence of X.
9891 ac_cv_have_x="have_x=no"
9892 else
9893 # Record where we found X for the cache.
9894 ac_cv_have_x="have_x=yes \
9895 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9900 eval "$ac_cv_have_x"
9901 fi # $with_x != no
9903 if test "$have_x" != yes; then
9904 echo "$as_me:$LINENO: result: $have_x" >&5
9905 echo "${ECHO_T}$have_x" >&6
9906 no_x=yes
9907 else
9908 # If each of the values was on the command line, it overrides each guess.
9909 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9910 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9911 # Update the cache value to reflect the command line values.
9912 ac_cv_have_x="have_x=yes \
9913 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9914 # It might be that x_includes is empty (headers are found in the
9915 # standard search path. Then output the corresponding message
9916 ac_out_x_includes=$x_includes
9917 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9918 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9919 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9923 if test "$no_x" = yes; then
9924 # Not all programs may use this symbol, but it does not hurt to define it.
9926 cat >>confdefs.h <<\_ACEOF
9927 #define X_DISPLAY_MISSING 1
9928 _ACEOF
9930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9931 else
9932 if test -n "$x_includes"; then
9933 X_CFLAGS="$X_CFLAGS -I$x_includes"
9936 # It would also be nice to do this for all -L options, not just this one.
9937 if test -n "$x_libraries"; then
9938 X_LIBS="$X_LIBS -L$x_libraries"
9939 # For Solaris; some versions of Sun CC require a space after -R and
9940 # others require no space. Words are not sufficient . . . .
9941 case `(uname -sr) 2>/dev/null` in
9942 "SunOS 5"*)
9943 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9944 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9945 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9954 main ()
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_R_nospace=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_R_nospace=no
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 if test $ac_R_nospace = yes; then
9992 echo "$as_me:$LINENO: result: no" >&5
9993 echo "${ECHO_T}no" >&6
9994 X_LIBS="$X_LIBS -R$x_libraries"
9995 else
9996 LIBS="$ac_xsave_LIBS -R $x_libraries"
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10005 main ()
10009 return 0;
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_R_space=yes
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_R_space=no
10040 rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 if test $ac_R_space = yes; then
10043 echo "$as_me:$LINENO: result: yes" >&5
10044 echo "${ECHO_T}yes" >&6
10045 X_LIBS="$X_LIBS -R $x_libraries"
10046 else
10047 echo "$as_me:$LINENO: result: neither works" >&5
10048 echo "${ECHO_T}neither works" >&6
10051 LIBS=$ac_xsave_LIBS
10052 esac
10055 # Check for system-dependent libraries X programs must link with.
10056 # Do this before checking for the system-independent R6 libraries
10057 # (-lICE), since we may need -lsocket or whatever for X linking.
10059 if test "$ISC" = yes; then
10060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10061 else
10062 # Martyn Johnson says this is needed for Ultrix, if the X
10063 # libraries were built with DECnet support. And Karl Berry says
10064 # the Alpha needs dnet_stub (dnet does not exist).
10065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10073 /* Override any gcc2 internal prototype to avoid an error. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char XOpenDisplay ();
10081 main ()
10083 XOpenDisplay ();
10085 return 0;
10087 _ACEOF
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090 (eval $ac_link) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10115 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-ldnet $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10128 /* Override any gcc2 internal prototype to avoid an error. */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10134 char dnet_ntoa ();
10136 main ()
10138 dnet_ntoa ();
10140 return 0;
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_lib_dnet_dnet_ntoa=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_cv_lib_dnet_dnet_ntoa=no
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10176 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10177 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10181 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10182 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10183 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10184 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187 ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-ldnet_stub $LIBS"
10189 cat >conftest.$ac_ext <<_ACEOF
10190 /* confdefs.h. */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10196 /* Override any gcc2 internal prototype to avoid an error. */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10202 char dnet_ntoa ();
10204 main ()
10206 dnet_ntoa ();
10208 return 0;
10210 _ACEOF
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213 (eval $ac_link) 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_lib_dnet_stub_dnet_ntoa=no
10239 rm -f conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 LIBS=$ac_check_lib_save_LIBS
10243 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10244 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10245 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10251 rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LIBS="$ac_xsave_LIBS"
10255 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10256 # to get the SysV transport functions.
10257 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10258 # needs -lnsl.
10259 # The nsl library prevents programs from opening the X display
10260 # on Irix 5.2, according to T.E. Dickey.
10261 # The functions gethostbyname, getservbyname, and inet_addr are
10262 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10263 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10264 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10265 if test "${ac_cv_func_gethostbyname+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10276 #define gethostbyname innocuous_gethostbyname
10278 /* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char gethostbyname (); below.
10280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10281 <limits.h> exists even on freestanding compilers. */
10283 #ifdef __STDC__
10284 # include <limits.h>
10285 #else
10286 # include <assert.h>
10287 #endif
10289 #undef gethostbyname
10291 /* Override any gcc2 internal prototype to avoid an error. */
10292 #ifdef __cplusplus
10293 extern "C"
10295 #endif
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10298 char gethostbyname ();
10299 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named
10301 something starting with __ and the normal name is an alias. */
10302 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10303 choke me
10304 #else
10305 char (*f) () = gethostbyname;
10306 #endif
10307 #ifdef __cplusplus
10309 #endif
10312 main ()
10314 return f != gethostbyname;
10316 return 0;
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321 (eval $ac_link) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_func_gethostbyname=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_func_gethostbyname=no
10347 rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10350 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10351 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10353 if test $ac_cv_func_gethostbyname = no; then
10354 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10355 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10356 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lnsl $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any gcc2 internal prototype to avoid an error. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10374 char gethostbyname ();
10376 main ()
10378 gethostbyname ();
10380 return 0;
10382 _ACEOF
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 ac_cv_lib_nsl_gethostbyname=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_lib_nsl_gethostbyname=no
10411 rm -f conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_lib_save_LIBS
10415 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10416 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10417 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10421 if test $ac_cv_lib_nsl_gethostbyname = no; then
10422 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10423 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10424 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lbsd $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any gcc2 internal prototype to avoid an error. */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 /* We use char because int might match the return type of a gcc2
10441 builtin and then its argument prototype would still apply. */
10442 char gethostbyname ();
10444 main ()
10446 gethostbyname ();
10448 return 0;
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_lib_bsd_gethostbyname=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_bsd_gethostbyname=no
10479 rm -f conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10484 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10485 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10493 # socket/setsockopt and other routines are undefined under SCO ODT
10494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10495 # on later versions), says Simon Leinen: it contains gethostby*
10496 # variants that don't use the name server (or something). -lsocket
10497 # must be given before -lnsl if both are needed. We assume that
10498 # if connect needs -lnsl, so does gethostbyname.
10499 echo "$as_me:$LINENO: checking for connect" >&5
10500 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10501 if test "${ac_cv_func_connect+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10512 #define connect innocuous_connect
10514 /* System header to define __stub macros and hopefully few prototypes,
10515 which can conflict with char connect (); below.
10516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517 <limits.h> exists even on freestanding compilers. */
10519 #ifdef __STDC__
10520 # include <limits.h>
10521 #else
10522 # include <assert.h>
10523 #endif
10525 #undef connect
10527 /* Override any gcc2 internal prototype to avoid an error. */
10528 #ifdef __cplusplus
10529 extern "C"
10531 #endif
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char connect ();
10535 /* The GNU C library defines this for functions which it implements
10536 to always fail with ENOSYS. Some functions are actually named
10537 something starting with __ and the normal name is an alias. */
10538 #if defined (__stub_connect) || defined (__stub___connect)
10539 choke me
10540 #else
10541 char (*f) () = connect;
10542 #endif
10543 #ifdef __cplusplus
10545 #endif
10548 main ()
10550 return f != connect;
10552 return 0;
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest$ac_exeext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_func_connect=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_cv_func_connect=no
10583 rm -f conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10587 echo "${ECHO_T}$ac_cv_func_connect" >&6
10589 if test $ac_cv_func_connect = no; then
10590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10591 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10592 if test "${ac_cv_lib_socket_connect+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10604 /* Override any gcc2 internal prototype to avoid an error. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 /* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10610 char connect ();
10612 main ()
10614 connect ();
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_lib_socket_connect=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_socket_connect=no
10647 rm -f conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10652 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10653 if test $ac_cv_lib_socket_connect = yes; then
10654 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10659 # Guillermo Gomez says -lposix is necessary on A/UX.
10660 echo "$as_me:$LINENO: checking for remove" >&5
10661 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10662 if test "${ac_cv_func_remove+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define remove innocuous_remove
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char remove (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10680 #ifdef __STDC__
10681 # include <limits.h>
10682 #else
10683 # include <assert.h>
10684 #endif
10686 #undef remove
10688 /* Override any gcc2 internal prototype to avoid an error. */
10689 #ifdef __cplusplus
10690 extern "C"
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694 builtin and then its argument prototype would still apply. */
10695 char remove ();
10696 /* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
10699 #if defined (__stub_remove) || defined (__stub___remove)
10700 choke me
10701 #else
10702 char (*f) () = remove;
10703 #endif
10704 #ifdef __cplusplus
10706 #endif
10709 main ()
10711 return f != remove;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718 (eval $ac_link) 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_func_remove=yes
10738 else
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ac_cv_func_remove=no
10744 rm -f conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10747 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10748 echo "${ECHO_T}$ac_cv_func_remove" >&6
10750 if test $ac_cv_func_remove = no; then
10751 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10752 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10753 if test "${ac_cv_lib_posix_remove+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-lposix $LIBS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10765 /* Override any gcc2 internal prototype to avoid an error. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771 char remove ();
10773 main ()
10775 remove ();
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_posix_remove=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_posix_remove=no
10808 rm -f conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10813 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10814 if test $ac_cv_lib_posix_remove = yes; then
10815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10820 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10821 echo "$as_me:$LINENO: checking for shmat" >&5
10822 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10823 if test "${ac_cv_func_shmat+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10834 #define shmat innocuous_shmat
10836 /* System header to define __stub macros and hopefully few prototypes,
10837 which can conflict with char shmat (); below.
10838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839 <limits.h> exists even on freestanding compilers. */
10841 #ifdef __STDC__
10842 # include <limits.h>
10843 #else
10844 # include <assert.h>
10845 #endif
10847 #undef shmat
10849 /* Override any gcc2 internal prototype to avoid an error. */
10850 #ifdef __cplusplus
10851 extern "C"
10853 #endif
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10856 char shmat ();
10857 /* The GNU C library defines this for functions which it implements
10858 to always fail with ENOSYS. Some functions are actually named
10859 something starting with __ and the normal name is an alias. */
10860 #if defined (__stub_shmat) || defined (__stub___shmat)
10861 choke me
10862 #else
10863 char (*f) () = shmat;
10864 #endif
10865 #ifdef __cplusplus
10867 #endif
10870 main ()
10872 return f != shmat;
10874 return 0;
10876 _ACEOF
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879 (eval $ac_link) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 ac_cv_func_shmat=yes
10899 else
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 ac_cv_func_shmat=no
10905 rm -f conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10909 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10911 if test $ac_cv_func_shmat = no; then
10912 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10913 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10914 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917 ac_check_lib_save_LIBS=$LIBS
10918 LIBS="-lipc $LIBS"
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10926 /* Override any gcc2 internal prototype to avoid an error. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932 char shmat ();
10934 main ()
10936 shmat ();
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943 (eval $ac_link) 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_lib_ipc_shmat=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_cv_lib_ipc_shmat=no
10969 rm -f conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10974 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10975 if test $ac_cv_lib_ipc_shmat = yes; then
10976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10982 # Check for libraries that X11R6 Xt/Xaw programs need.
10983 ac_save_LDFLAGS=$LDFLAGS
10984 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10985 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10986 # check for ICE first), but we must link in the order -lSM -lICE or
10987 # we get undefined symbols. So assume we have SM if we have ICE.
10988 # These have to be linked with before -lX11, unlike the other
10989 # libraries we check for below, so use a different variable.
10990 # John Interrante, Karl Berry
10991 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10992 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10993 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11005 /* Override any gcc2 internal prototype to avoid an error. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 /* We use char because int might match the return type of a gcc2
11010 builtin and then its argument prototype would still apply. */
11011 char IceConnectionNumber ();
11013 main ()
11015 IceConnectionNumber ();
11017 return 0;
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest$ac_exeext'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 ac_cv_lib_ICE_IceConnectionNumber=yes
11042 else
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ac_cv_lib_ICE_IceConnectionNumber=no
11048 rm -f conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11053 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11054 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11058 LDFLAGS=$ac_save_LDFLAGS
11062 if test "$no_x" = yes; then
11063 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11064 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11065 { (exit 1); exit 1; }; }
11067 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11068 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11069 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 ac_check_lib_save_LIBS=$LIBS
11073 LIBS="-lXtst ${X_LIBS} $LIBS"
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11081 /* Override any gcc2 internal prototype to avoid an error. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 /* We use char because int might match the return type of a gcc2
11086 builtin and then its argument prototype would still apply. */
11087 char XTestQueryExtension ();
11089 main ()
11091 XTestQueryExtension ();
11093 return 0;
11095 _ACEOF
11096 rm -f conftest.$ac_objext conftest$ac_exeext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098 (eval $ac_link) 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_lib_Xtst_XTestQueryExtension=yes
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_cv_lib_Xtst_XTestQueryExtension=no
11124 rm -f conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11128 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11129 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11130 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11131 true
11132 else
11133 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11134 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11135 { (exit 1); exit 1; }; }
11139 succeeded=no
11141 if test -z "$PKG_CONFIG"; then
11142 # Extract the first word of "pkg-config", so it can be a program name with args.
11143 set dummy pkg-config; ac_word=$2
11144 echo "$as_me:$LINENO: checking for $ac_word" >&5
11145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11146 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149 case $PKG_CONFIG in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11165 done
11166 done
11168 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11170 esac
11172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11174 if test -n "$PKG_CONFIG"; then
11175 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11176 echo "${ECHO_T}$PKG_CONFIG" >&6
11177 else
11178 echo "$as_me:$LINENO: result: no" >&5
11179 echo "${ECHO_T}no" >&6
11184 if test "$PKG_CONFIG" = "no" ; then
11185 echo "*** The pkg-config script could not be found. Make sure it is"
11186 echo "*** in your path, or set the PKG_CONFIG environment variable"
11187 echo "*** to the full path to pkg-config."
11188 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11189 else
11190 PKG_CONFIG_MIN_VERSION=0.9.0
11191 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11192 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11193 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11195 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11196 echo "$as_me:$LINENO: result: yes" >&5
11197 echo "${ECHO_T}yes" >&6
11198 succeeded=yes
11200 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11201 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11202 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11203 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11204 echo "${ECHO_T}$GTK_CFLAGS" >&6
11206 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11207 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11208 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11209 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11210 echo "${ECHO_T}$GTK_LIBS" >&6
11211 else
11212 GTK_CFLAGS=""
11213 GTK_LIBS=""
11214 ## If we have a custom action on failure, don't print errors, but
11215 ## do set a variable so people can do so.
11216 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11217 echo $GTK_PKG_ERRORS
11222 else
11223 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11224 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11228 if test $succeeded = yes; then
11230 else
11231 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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
11232 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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;}
11233 { (exit 1); exit 1; }; }
11237 if test "x${enable_gtk_cairo}" = xyes; then
11239 succeeded=no
11241 if test -z "$PKG_CONFIG"; then
11242 # Extract the first word of "pkg-config", so it can be a program name with args.
11243 set dummy pkg-config; ac_word=$2
11244 echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249 case $PKG_CONFIG in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11270 esac
11272 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11274 if test -n "$PKG_CONFIG"; then
11275 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11276 echo "${ECHO_T}$PKG_CONFIG" >&6
11277 else
11278 echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6
11284 if test "$PKG_CONFIG" = "no" ; then
11285 echo "*** The pkg-config script could not be found. Make sure it is"
11286 echo "*** in your path, or set the PKG_CONFIG environment variable"
11287 echo "*** to the full path to pkg-config."
11288 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11289 else
11290 PKG_CONFIG_MIN_VERSION=0.9.0
11291 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11292 echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
11293 echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6
11295 if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
11296 echo "$as_me:$LINENO: result: yes" >&5
11297 echo "${ECHO_T}yes" >&6
11298 succeeded=yes
11300 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
11301 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
11302 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
11303 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
11304 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
11306 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
11307 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
11308 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
11309 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
11310 echo "${ECHO_T}$CAIRO_LIBS" >&6
11311 else
11312 CAIRO_CFLAGS=""
11313 CAIRO_LIBS=""
11314 ## If we have a custom action on failure, don't print errors, but
11315 ## do set a variable so people can do so.
11316 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
11317 echo $CAIRO_PKG_ERRORS
11322 else
11323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11328 if test $succeeded = yes; then
11330 else
11331 { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 0.5.0) 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
11332 echo "$as_me: error: Library requirements (cairo >= 0.5.0) 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;}
11333 { (exit 1); exit 1; }; }
11339 succeeded=no
11341 if test -z "$PKG_CONFIG"; then
11342 # Extract the first word of "pkg-config", so it can be a program name with args.
11343 set dummy pkg-config; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 case $PKG_CONFIG in
11350 [\\/]* | ?:[\\/]*)
11351 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11365 done
11366 done
11368 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11370 esac
11372 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11374 if test -n "$PKG_CONFIG"; then
11375 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11376 echo "${ECHO_T}$PKG_CONFIG" >&6
11377 else
11378 echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11384 if test "$PKG_CONFIG" = "no" ; then
11385 echo "*** The pkg-config script could not be found. Make sure it is"
11386 echo "*** in your path, or set the PKG_CONFIG environment variable"
11387 echo "*** to the full path to pkg-config."
11388 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11389 else
11390 PKG_CONFIG_MIN_VERSION=0.9.0
11391 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11392 echo "$as_me:$LINENO: checking for pangoft2" >&5
11393 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11395 if $PKG_CONFIG --exists "pangoft2" ; then
11396 echo "$as_me:$LINENO: result: yes" >&5
11397 echo "${ECHO_T}yes" >&6
11398 succeeded=yes
11400 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11401 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11402 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11403 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11404 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11406 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11407 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11408 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11409 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11410 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11411 else
11412 PANGOFT2_CFLAGS=""
11413 PANGOFT2_LIBS=""
11414 ## If we have a custom action on failure, don't print errors, but
11415 ## do set a variable so people can do so.
11416 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11417 echo $PANGOFT2_PKG_ERRORS
11422 else
11423 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11424 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11428 if test $succeeded = yes; then
11430 else
11431 { { 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
11432 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;}
11433 { (exit 1); exit 1; }; }
11445 if test "x${COMPILE_QT_PEER}" = xyes; then
11447 succeeded=no
11449 if test -z "$PKG_CONFIG"; then
11450 # Extract the first word of "pkg-config", so it can be a program name with args.
11451 set dummy pkg-config; ac_word=$2
11452 echo "$as_me:$LINENO: checking for $ac_word" >&5
11453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457 case $PKG_CONFIG in
11458 [\\/]* | ?:[\\/]*)
11459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11473 done
11474 done
11476 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11478 esac
11480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11482 if test -n "$PKG_CONFIG"; then
11483 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11484 echo "${ECHO_T}$PKG_CONFIG" >&6
11485 else
11486 echo "$as_me:$LINENO: result: no" >&5
11487 echo "${ECHO_T}no" >&6
11492 if test "$PKG_CONFIG" = "no" ; then
11493 echo "*** The pkg-config script could not be found. Make sure it is"
11494 echo "*** in your path, or set the PKG_CONFIG environment variable"
11495 echo "*** to the full path to pkg-config."
11496 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11497 else
11498 PKG_CONFIG_MIN_VERSION=0.9.0
11499 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11500 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
11501 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
11503 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
11504 echo "$as_me:$LINENO: result: yes" >&5
11505 echo "${ECHO_T}yes" >&6
11506 succeeded=yes
11508 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
11509 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
11510 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
11511 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
11512 echo "${ECHO_T}$QT_CFLAGS" >&6
11514 echo "$as_me:$LINENO: checking QT_LIBS" >&5
11515 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
11516 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
11517 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
11518 echo "${ECHO_T}$QT_LIBS" >&6
11519 else
11520 QT_CFLAGS=""
11521 QT_LIBS=""
11522 ## If we have a custom action on failure, don't print errors, but
11523 ## do set a variable so people can do so.
11524 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
11530 else
11531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11536 if test $succeeded = yes; then
11537 HAVE_QT4="yes"
11538 else
11539 HAVE_QT4="no"
11542 if test "x$HAVE_QT4" = "xyes"; then
11543 QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
11544 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
11545 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11546 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
11547 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11548 if eval "test \"\${$as_ac_File+set}\" = set"; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 test "$cross_compiling" = yes &&
11552 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11553 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11554 { (exit 1); exit 1; }; }
11555 if test -r "$QT_INCLUDE_DIR/QWidget"; then
11556 eval "$as_ac_File=yes"
11557 else
11558 eval "$as_ac_File=no"
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11563 if test `eval echo '${'$as_ac_File'}'` = yes; then
11564 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
11565 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
11566 else
11567 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11568 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
11569 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11570 if eval "test \"\${$as_ac_File+set}\" = set"; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 test "$cross_compiling" = yes &&
11574 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11575 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11576 { (exit 1); exit 1; }; }
11577 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
11578 eval "$as_ac_File=yes"
11579 else
11580 eval "$as_ac_File=no"
11583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11584 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11585 if test `eval echo '${'$as_ac_File'}'` = yes; then
11586 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
11587 else
11588 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
11589 echo "$as_me: WARNING: QWidget not found" >&2;}
11594 # Extract the first word of "moc", so it can be a program name with args.
11595 set dummy moc; ac_word=$2
11596 echo "$as_me:$LINENO: checking for $ac_word" >&5
11597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11598 if test "${ac_cv_prog_MOC+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 if test -n "$MOC"; then
11602 ac_cv_prog_MOC="$MOC" # Let the user override the test.
11603 else
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_MOC="moc"
11612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11615 done
11616 done
11620 MOC=$ac_cv_prog_MOC
11621 if test -n "$MOC"; then
11622 echo "$as_me:$LINENO: result: $MOC" >&5
11623 echo "${ECHO_T}$MOC" >&6
11624 else
11625 echo "$as_me:$LINENO: result: no" >&5
11626 echo "${ECHO_T}no" >&6
11630 if test "x$HAVE_QT4" = "xno"; then
11631 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
11632 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
11633 case "$host_os" in
11634 darwin*)
11636 # Check whether --with-qt4dir or --without-qt4dir was given.
11637 if test "${with_qt4dir+set}" = set; then
11638 withval="$with_qt4dir"
11639 QT4DIR=$withval
11642 if test x"$QT4DIR" = x ; then
11643 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
11644 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
11645 { (exit 1); exit 1; }; }
11647 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
11648 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
11649 # Extract the first word of "moc", so it can be a program name with args.
11650 set dummy moc; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_MOC+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 if test -n "$MOC"; then
11657 ac_cv_prog_MOC="$MOC" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $QT4DIR/bin
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_MOC="$QT4DIR/bin/moc"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11675 MOC=$ac_cv_prog_MOC
11676 if test -n "$MOC"; then
11677 echo "$as_me:$LINENO: result: $MOC" >&5
11678 echo "${ECHO_T}$MOC" >&6
11679 else
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11684 if test x"$MOC" = x; then
11685 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
11686 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
11687 { (exit 1); exit 1; }; }
11689 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
11690 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
11691 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
11692 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
11695 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
11696 of your installed Qt4 installation." >&5
11697 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
11698 of your installed Qt4 installation." >&2;}
11699 { (exit 1); exit 1; }; }
11701 esac
11703 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
11704 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
11712 # Check whether --with-javah or --without-javah was given.
11713 if test "${with_javah+set}" = set; then
11714 withval="$with_javah"
11716 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11718 if test "x${withval}" != x; then
11719 if test -f "${withval}"; then
11720 USER_JAVAH="${withval}"
11721 else
11722 # Extract the first word of ""${withval}"", so it can be a program name with args.
11723 set dummy "${withval}"; ac_word=$2
11724 echo "$as_me:$LINENO: checking for $ac_word" >&5
11725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11726 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 case $USER_JAVAH in
11730 [\\/]* | ?:[\\/]*)
11731 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11745 done
11746 done
11749 esac
11751 USER_JAVAH=$ac_cv_path_USER_JAVAH
11753 if test -n "$USER_JAVAH"; then
11754 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11755 echo "${ECHO_T}$USER_JAVAH" >&6
11756 else
11757 echo "$as_me:$LINENO: result: no" >&5
11758 echo "${ECHO_T}no" >&6
11762 else
11763 for javah_name in gcjh javah; do
11764 # Extract the first word of ""$javah_name"", so it can be a program name with args.
11765 set dummy "$javah_name"; ac_word=$2
11766 echo "$as_me:$LINENO: checking for $ac_word" >&5
11767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11768 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 case $USER_JAVAH in
11772 [\\/]* | ?:[\\/]*)
11773 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11787 done
11788 done
11791 esac
11793 USER_JAVAH=$ac_cv_path_USER_JAVAH
11795 if test -n "$USER_JAVAH"; then
11796 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11797 echo "${ECHO_T}$USER_JAVAH" >&6
11798 else
11799 echo "$as_me:$LINENO: result: no" >&5
11800 echo "${ECHO_T}no" >&6
11803 if test "x${USER_JAVAH}" != x; then
11804 break
11806 done
11809 # if test "x${USER_JAVAH}" = x; then
11810 # echo "configure: cannot find javah" 1>&2
11811 # exit 1
11812 # fi
11814 else
11816 if test "x" != x; then
11817 if test -f ""; then
11818 USER_JAVAH=""
11819 else
11820 # Extract the first word of """", so it can be a program name with args.
11821 set dummy ""; ac_word=$2
11822 echo "$as_me:$LINENO: checking for $ac_word" >&5
11823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11824 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 case $USER_JAVAH in
11828 [\\/]* | ?:[\\/]*)
11829 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11847 esac
11849 USER_JAVAH=$ac_cv_path_USER_JAVAH
11851 if test -n "$USER_JAVAH"; then
11852 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11853 echo "${ECHO_T}$USER_JAVAH" >&6
11854 else
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 else
11861 for javah_name in gcjh javah; do
11862 # Extract the first word of ""$javah_name"", so it can be a program name with args.
11863 set dummy "$javah_name"; ac_word=$2
11864 echo "$as_me:$LINENO: checking for $ac_word" >&5
11865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11866 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869 case $USER_JAVAH in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11889 esac
11891 USER_JAVAH=$ac_cv_path_USER_JAVAH
11893 if test -n "$USER_JAVAH"; then
11894 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11895 echo "${ECHO_T}$USER_JAVAH" >&6
11896 else
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11901 if test "x${USER_JAVAH}" != x; then
11902 break
11904 done
11907 # if test "x${USER_JAVAH}" = x; then
11908 # echo "configure: cannot find javah" 1>&2
11909 # exit 1
11910 # fi
11914 else
11917 if test "x" != x; then
11918 if test -f ""; then
11919 USER_JAVAH=""
11920 else
11921 # Extract the first word of """", so it can be a program name with args.
11922 set dummy ""; ac_word=$2
11923 echo "$as_me:$LINENO: checking for $ac_word" >&5
11924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11925 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 case $USER_JAVAH in
11929 [\\/]* | ?:[\\/]*)
11930 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11948 esac
11950 USER_JAVAH=$ac_cv_path_USER_JAVAH
11952 if test -n "$USER_JAVAH"; then
11953 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11954 echo "${ECHO_T}$USER_JAVAH" >&6
11955 else
11956 echo "$as_me:$LINENO: result: no" >&5
11957 echo "${ECHO_T}no" >&6
11961 else
11962 for javah_name in gcjh javah; do
11963 # Extract the first word of ""$javah_name"", so it can be a program name with args.
11964 set dummy "$javah_name"; ac_word=$2
11965 echo "$as_me:$LINENO: checking for $ac_word" >&5
11966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11967 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 case $USER_JAVAH in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11986 done
11987 done
11990 esac
11992 USER_JAVAH=$ac_cv_path_USER_JAVAH
11994 if test -n "$USER_JAVAH"; then
11995 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11996 echo "${ECHO_T}$USER_JAVAH" >&6
11997 else
11998 echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6
12002 if test "x${USER_JAVAH}" != x; then
12003 break
12005 done
12008 # if test "x${USER_JAVAH}" = x; then
12009 # echo "configure: cannot find javah" 1>&2
12010 # exit 1
12011 # fi
12017 if test "x${USER_JAVAH}" != x; then
12018 USER_SPECIFIED_JAVAH_TRUE=
12019 USER_SPECIFIED_JAVAH_FALSE='#'
12020 else
12021 USER_SPECIFIED_JAVAH_TRUE='#'
12022 USER_SPECIFIED_JAVAH_FALSE=
12028 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
12031 if test "x${COMPILE_JNI}" = xyes; then
12032 echo "$as_me:$LINENO: checking jni_md.h support" >&5
12033 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
12034 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
12035 echo "$as_me:$LINENO: result: yes" >&5
12036 echo "${ECHO_T}yes" >&6
12037 else
12038 target_cpu=x86
12039 target_os=linux-gnu
12040 { echo "$as_me:$LINENO: WARNING: no" >&5
12041 echo "$as_me: WARNING: no" >&2;}
12043 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
12044 ac_dests="include/jni_md.h"
12045 while test -n "$ac_sources"; do
12046 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
12047 set $ac_sources; ac_source=$1; shift; ac_sources=$*
12048 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
12049 done
12050 ac_config_links="$ac_config_links $ac_config_links_1"
12055 user_specified_javac=
12059 # Check whether --with-gcj or --without-gcj was given.
12060 if test "${with_gcj+set}" = set; then
12061 withval="$with_gcj"
12063 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12065 if test "x${withval}" != x; then
12066 if test -f "${withval}"; then
12067 GCJ="${withval}"
12068 else
12069 # Extract the first word of ""${withval}"", so it can be a program name with args.
12070 set dummy "${withval}"; ac_word=$2
12071 echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073 if test "${ac_cv_path_GCJ+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 case $GCJ in
12077 [\\/]* | ?:[\\/]*)
12078 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12096 esac
12098 GCJ=$ac_cv_path_GCJ
12100 if test -n "$GCJ"; then
12101 echo "$as_me:$LINENO: result: $GCJ" >&5
12102 echo "${ECHO_T}$GCJ" >&6
12103 else
12104 echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12109 else
12110 # Extract the first word of ""gcj"", so it can be a program name with args.
12111 set dummy "gcj"; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_path_GCJ+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 case $GCJ in
12118 [\\/]* | ?:[\\/]*)
12119 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12133 done
12134 done
12137 esac
12139 GCJ=$ac_cv_path_GCJ
12141 if test -n "$GCJ"; then
12142 echo "$as_me:$LINENO: result: $GCJ" >&5
12143 echo "${ECHO_T}$GCJ" >&6
12144 else
12145 echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6
12150 if test "x$GCJ" != x; then
12151 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12152 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12153 ac_ext=c
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #if __GNUC__ <= 3
12161 #error GCJ 4.0.0 or higher is required
12162 #endif
12164 _ACEOF
12165 $GCJ -E conftest.c > /dev/null
12166 gcj_4_result=$?
12167 if test "x$gcj_4_result" = "x0"; then
12168 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12169 echo "${ECHO_T}4.0 or higher found" >&6
12170 else
12171 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12172 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12174 ac_ext=c
12175 ac_cpp='$CPP $CPPFLAGS'
12176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12182 else
12183 if test "x${withval}" != xno; then
12185 if test "x" != x; then
12186 if test -f ""; then
12187 GCJ=""
12188 else
12189 # Extract the first word of """", so it can be a program name with args.
12190 set dummy ""; ac_word=$2
12191 echo "$as_me:$LINENO: checking for $ac_word" >&5
12192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12193 if test "${ac_cv_path_GCJ+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 case $GCJ in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12212 done
12213 done
12216 esac
12218 GCJ=$ac_cv_path_GCJ
12220 if test -n "$GCJ"; then
12221 echo "$as_me:$LINENO: result: $GCJ" >&5
12222 echo "${ECHO_T}$GCJ" >&6
12223 else
12224 echo "$as_me:$LINENO: result: no" >&5
12225 echo "${ECHO_T}no" >&6
12229 else
12230 # Extract the first word of ""gcj"", so it can be a program name with args.
12231 set dummy "gcj"; ac_word=$2
12232 echo "$as_me:$LINENO: checking for $ac_word" >&5
12233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12234 if test "${ac_cv_path_GCJ+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 case $GCJ in
12238 [\\/]* | ?:[\\/]*)
12239 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12253 done
12254 done
12257 esac
12259 GCJ=$ac_cv_path_GCJ
12261 if test -n "$GCJ"; then
12262 echo "$as_me:$LINENO: result: $GCJ" >&5
12263 echo "${ECHO_T}$GCJ" >&6
12264 else
12265 echo "$as_me:$LINENO: result: no" >&5
12266 echo "${ECHO_T}no" >&6
12270 if test "x$GCJ" != x; then
12271 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12272 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12273 ac_ext=c
12274 ac_cpp='$CPP $CPPFLAGS'
12275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #if __GNUC__ <= 3
12281 #error GCJ 4.0.0 or higher is required
12282 #endif
12284 _ACEOF
12285 $GCJ -E conftest.c > /dev/null
12286 gcj_4_result=$?
12287 if test "x$gcj_4_result" = "x0"; then
12288 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12289 echo "${ECHO_T}4.0 or higher found" >&6
12290 else
12291 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12292 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12294 ac_ext=c
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12304 user_specified_javac=gcj
12306 else
12309 if test "x" != x; then
12310 if test -f ""; then
12311 GCJ=""
12312 else
12313 # Extract the first word of """", so it can be a program name with args.
12314 set dummy ""; ac_word=$2
12315 echo "$as_me:$LINENO: checking for $ac_word" >&5
12316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12317 if test "${ac_cv_path_GCJ+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320 case $GCJ in
12321 [\\/]* | ?:[\\/]*)
12322 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12336 done
12337 done
12340 esac
12342 GCJ=$ac_cv_path_GCJ
12344 if test -n "$GCJ"; then
12345 echo "$as_me:$LINENO: result: $GCJ" >&5
12346 echo "${ECHO_T}$GCJ" >&6
12347 else
12348 echo "$as_me:$LINENO: result: no" >&5
12349 echo "${ECHO_T}no" >&6
12353 else
12354 # Extract the first word of ""gcj"", so it can be a program name with args.
12355 set dummy "gcj"; ac_word=$2
12356 echo "$as_me:$LINENO: checking for $ac_word" >&5
12357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12358 if test "${ac_cv_path_GCJ+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 case $GCJ in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12377 done
12378 done
12381 esac
12383 GCJ=$ac_cv_path_GCJ
12385 if test -n "$GCJ"; then
12386 echo "$as_me:$LINENO: result: $GCJ" >&5
12387 echo "${ECHO_T}$GCJ" >&6
12388 else
12389 echo "$as_me:$LINENO: result: no" >&5
12390 echo "${ECHO_T}no" >&6
12394 if test "x$GCJ" != x; then
12395 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12396 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12397 ac_ext=c
12398 ac_cpp='$CPP $CPPFLAGS'
12399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #if __GNUC__ <= 3
12405 #error GCJ 4.0.0 or higher is required
12406 #endif
12408 _ACEOF
12409 $GCJ -E conftest.c > /dev/null
12410 gcj_4_result=$?
12411 if test "x$gcj_4_result" = "x0"; then
12412 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12413 echo "${ECHO_T}4.0 or higher found" >&6
12414 else
12415 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12416 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12418 ac_ext=c
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 # Check whether --with-jikes or --without-jikes was given.
12433 if test "${with_jikes+set}" = set; then
12434 withval="$with_jikes"
12436 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12438 if test "x${withval}" != x; then
12439 if test -f "${withval}"; then
12440 JIKES="${withval}"
12441 else
12442 # Extract the first word of ""${withval}"", so it can be a program name with args.
12443 set dummy "${withval}"; ac_word=$2
12444 echo "$as_me:$LINENO: checking for $ac_word" >&5
12445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12446 if test "${ac_cv_path_JIKES+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 case $JIKES in
12450 [\\/]* | ?:[\\/]*)
12451 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12465 done
12466 done
12469 esac
12471 JIKES=$ac_cv_path_JIKES
12473 if test -n "$JIKES"; then
12474 echo "$as_me:$LINENO: result: $JIKES" >&5
12475 echo "${ECHO_T}$JIKES" >&6
12476 else
12477 echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6
12482 else
12483 # Extract the first word of ""jikes"", so it can be a program name with args.
12484 set dummy "jikes"; ac_word=$2
12485 echo "$as_me:$LINENO: checking for $ac_word" >&5
12486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12487 if test "${ac_cv_path_JIKES+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 case $JIKES in
12491 [\\/]* | ?:[\\/]*)
12492 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12506 done
12507 done
12510 esac
12512 JIKES=$ac_cv_path_JIKES
12514 if test -n "$JIKES"; then
12515 echo "$as_me:$LINENO: result: $JIKES" >&5
12516 echo "${ECHO_T}$JIKES" >&6
12517 else
12518 echo "$as_me:$LINENO: result: no" >&5
12519 echo "${ECHO_T}no" >&6
12523 if test "x$JIKES" != "x"; then
12524 echo "$as_me:$LINENO: checking jikes version" >&5
12525 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12526 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12527 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12528 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12529 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12530 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12531 JIKES=""
12534 if test "x$JIKES" != "x"; then
12535 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12536 echo "${ECHO_T}$JIKES_VERSION" >&6
12537 else
12538 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12539 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12542 JIKESENCODING=
12543 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12544 JIKESENCODING='-encoding UTF-8'
12548 JIKESWARNINGS="+Pno-switchcheck"
12549 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
12550 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
12551 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
12558 else
12559 if test "x${withval}" != xno; then
12561 if test "x" != x; then
12562 if test -f ""; then
12563 JIKES=""
12564 else
12565 # Extract the first word of """", so it can be a program name with args.
12566 set dummy ""; ac_word=$2
12567 echo "$as_me:$LINENO: checking for $ac_word" >&5
12568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12569 if test "${ac_cv_path_JIKES+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 case $JIKES in
12573 [\\/]* | ?:[\\/]*)
12574 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12588 done
12589 done
12592 esac
12594 JIKES=$ac_cv_path_JIKES
12596 if test -n "$JIKES"; then
12597 echo "$as_me:$LINENO: result: $JIKES" >&5
12598 echo "${ECHO_T}$JIKES" >&6
12599 else
12600 echo "$as_me:$LINENO: result: no" >&5
12601 echo "${ECHO_T}no" >&6
12605 else
12606 # Extract the first word of ""jikes"", so it can be a program name with args.
12607 set dummy "jikes"; ac_word=$2
12608 echo "$as_me:$LINENO: checking for $ac_word" >&5
12609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12610 if test "${ac_cv_path_JIKES+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613 case $JIKES in
12614 [\\/]* | ?:[\\/]*)
12615 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12619 for as_dir in $PATH
12621 IFS=$as_save_IFS
12622 test -z "$as_dir" && as_dir=.
12623 for ac_exec_ext in '' $ac_executable_extensions; do
12624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12625 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12627 break 2
12629 done
12630 done
12633 esac
12635 JIKES=$ac_cv_path_JIKES
12637 if test -n "$JIKES"; then
12638 echo "$as_me:$LINENO: result: $JIKES" >&5
12639 echo "${ECHO_T}$JIKES" >&6
12640 else
12641 echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6
12646 if test "x$JIKES" != "x"; then
12647 echo "$as_me:$LINENO: checking jikes version" >&5
12648 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12649 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12650 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12651 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12652 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12653 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12654 JIKES=""
12657 if test "x$JIKES" != "x"; then
12658 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12659 echo "${ECHO_T}$JIKES_VERSION" >&6
12660 else
12661 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12662 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12665 JIKESENCODING=
12666 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12667 JIKESENCODING='-encoding UTF-8'
12671 JIKESWARNINGS="+Pno-switchcheck"
12672 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
12673 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
12674 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
12683 user_specified_javac=jikes
12685 else
12688 if test "x" != x; then
12689 if test -f ""; then
12690 JIKES=""
12691 else
12692 # Extract the first word of """", so it can be a program name with args.
12693 set dummy ""; ac_word=$2
12694 echo "$as_me:$LINENO: checking for $ac_word" >&5
12695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12696 if test "${ac_cv_path_JIKES+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 case $JIKES in
12700 [\\/]* | ?:[\\/]*)
12701 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12715 done
12716 done
12719 esac
12721 JIKES=$ac_cv_path_JIKES
12723 if test -n "$JIKES"; then
12724 echo "$as_me:$LINENO: result: $JIKES" >&5
12725 echo "${ECHO_T}$JIKES" >&6
12726 else
12727 echo "$as_me:$LINENO: result: no" >&5
12728 echo "${ECHO_T}no" >&6
12732 else
12733 # Extract the first word of ""jikes"", so it can be a program name with args.
12734 set dummy "jikes"; ac_word=$2
12735 echo "$as_me:$LINENO: checking for $ac_word" >&5
12736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12737 if test "${ac_cv_path_JIKES+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740 case $JIKES in
12741 [\\/]* | ?:[\\/]*)
12742 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12756 done
12757 done
12760 esac
12762 JIKES=$ac_cv_path_JIKES
12764 if test -n "$JIKES"; then
12765 echo "$as_me:$LINENO: result: $JIKES" >&5
12766 echo "${ECHO_T}$JIKES" >&6
12767 else
12768 echo "$as_me:$LINENO: result: no" >&5
12769 echo "${ECHO_T}no" >&6
12773 if test "x$JIKES" != "x"; then
12774 echo "$as_me:$LINENO: checking jikes version" >&5
12775 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12776 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12777 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12778 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12779 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12780 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12781 JIKES=""
12784 if test "x$JIKES" != "x"; then
12785 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12786 echo "${ECHO_T}$JIKES_VERSION" >&6
12787 else
12788 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12789 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12792 JIKESENCODING=
12793 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12794 JIKESENCODING='-encoding UTF-8'
12798 JIKESWARNINGS="+Pno-switchcheck"
12799 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
12800 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
12801 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
12814 # Check whether --with-kjc or --without-kjc was given.
12815 if test "${with_kjc+set}" = set; then
12816 withval="$with_kjc"
12818 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12820 if test "x${withval}" != x; then
12821 if test -f "${withval}"; then
12822 KJC="${withval}"
12823 else
12824 # Extract the first word of ""${withval}"", so it can be a program name with args.
12825 set dummy "${withval}"; ac_word=$2
12826 echo "$as_me:$LINENO: checking for $ac_word" >&5
12827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12828 if test "${ac_cv_path_KJC+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 case $KJC in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12847 done
12848 done
12851 esac
12853 KJC=$ac_cv_path_KJC
12855 if test -n "$KJC"; then
12856 echo "$as_me:$LINENO: result: $KJC" >&5
12857 echo "${ECHO_T}$KJC" >&6
12858 else
12859 echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6
12864 else
12865 # Extract the first word of ""kJC"", so it can be a program name with args.
12866 set dummy "kJC"; ac_word=$2
12867 echo "$as_me:$LINENO: checking for $ac_word" >&5
12868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12869 if test "${ac_cv_path_KJC+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 case $KJC in
12873 [\\/]* | ?:[\\/]*)
12874 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12888 done
12889 done
12892 esac
12894 KJC=$ac_cv_path_KJC
12896 if test -n "$KJC"; then
12897 echo "$as_me:$LINENO: result: $KJC" >&5
12898 echo "${ECHO_T}$KJC" >&6
12899 else
12900 echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6
12906 else
12907 if test "x${withval}" != xno; then
12909 if test "x" != x; then
12910 if test -f ""; then
12911 KJC=""
12912 else
12913 # Extract the first word of """", so it can be a program name with args.
12914 set dummy ""; ac_word=$2
12915 echo "$as_me:$LINENO: checking for $ac_word" >&5
12916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12917 if test "${ac_cv_path_KJC+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920 case $KJC in
12921 [\\/]* | ?:[\\/]*)
12922 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12936 done
12937 done
12940 esac
12942 KJC=$ac_cv_path_KJC
12944 if test -n "$KJC"; then
12945 echo "$as_me:$LINENO: result: $KJC" >&5
12946 echo "${ECHO_T}$KJC" >&6
12947 else
12948 echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6
12953 else
12954 # Extract the first word of ""kJC"", so it can be a program name with args.
12955 set dummy "kJC"; ac_word=$2
12956 echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12958 if test "${ac_cv_path_KJC+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 case $KJC in
12962 [\\/]* | ?:[\\/]*)
12963 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12973 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 break 2
12977 done
12978 done
12981 esac
12983 KJC=$ac_cv_path_KJC
12985 if test -n "$KJC"; then
12986 echo "$as_me:$LINENO: result: $KJC" >&5
12987 echo "${ECHO_T}$KJC" >&6
12988 else
12989 echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6
12997 user_specified_javac=kjc
12999 else
13002 if test "x" != x; then
13003 if test -f ""; then
13004 KJC=""
13005 else
13006 # Extract the first word of """", so it can be a program name with args.
13007 set dummy ""; ac_word=$2
13008 echo "$as_me:$LINENO: checking for $ac_word" >&5
13009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13010 if test "${ac_cv_path_KJC+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 case $KJC in
13014 [\\/]* | ?:[\\/]*)
13015 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13029 done
13030 done
13033 esac
13035 KJC=$ac_cv_path_KJC
13037 if test -n "$KJC"; then
13038 echo "$as_me:$LINENO: result: $KJC" >&5
13039 echo "${ECHO_T}$KJC" >&6
13040 else
13041 echo "$as_me:$LINENO: result: no" >&5
13042 echo "${ECHO_T}no" >&6
13046 else
13047 # Extract the first word of ""kJC"", so it can be a program name with args.
13048 set dummy "kJC"; ac_word=$2
13049 echo "$as_me:$LINENO: checking for $ac_word" >&5
13050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13051 if test "${ac_cv_path_KJC+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054 case $KJC in
13055 [\\/]* | ?:[\\/]*)
13056 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13070 done
13071 done
13074 esac
13076 KJC=$ac_cv_path_KJC
13078 if test -n "$KJC"; then
13079 echo "$as_me:$LINENO: result: $KJC" >&5
13080 echo "${ECHO_T}$KJC" >&6
13081 else
13082 echo "$as_me:$LINENO: result: no" >&5
13083 echo "${ECHO_T}no" >&6
13094 # Check whether --with-gcjx or --without-gcjx was given.
13095 if test "${with_gcjx+set}" = set; then
13096 withval="$with_gcjx"
13098 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13100 if test "x${withval}" != x; then
13101 if test -f "${withval}"; then
13102 GCJX="${withval}"
13103 else
13104 # Extract the first word of ""${withval}"", so it can be a program name with args.
13105 set dummy "${withval}"; ac_word=$2
13106 echo "$as_me:$LINENO: checking for $ac_word" >&5
13107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13108 if test "${ac_cv_path_GCJX+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111 case $GCJX in
13112 [\\/]* | ?:[\\/]*)
13113 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13127 done
13128 done
13131 esac
13133 GCJX=$ac_cv_path_GCJX
13135 if test -n "$GCJX"; then
13136 echo "$as_me:$LINENO: result: $GCJX" >&5
13137 echo "${ECHO_T}$GCJX" >&6
13138 else
13139 echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6
13144 else
13145 # Extract the first word of ""gcjx"", so it can be a program name with args.
13146 set dummy "gcjx"; ac_word=$2
13147 echo "$as_me:$LINENO: checking for $ac_word" >&5
13148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13149 if test "${ac_cv_path_GCJX+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 case $GCJX in
13153 [\\/]* | ?:[\\/]*)
13154 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13168 done
13169 done
13172 esac
13174 GCJX=$ac_cv_path_GCJX
13176 if test -n "$GCJX"; then
13177 echo "$as_me:$LINENO: result: $GCJX" >&5
13178 echo "${ECHO_T}$GCJX" >&6
13179 else
13180 echo "$as_me:$LINENO: result: no" >&5
13181 echo "${ECHO_T}no" >&6
13186 else
13187 if test "x${withval}" != xno; then
13189 if test "x" != x; then
13190 if test -f ""; then
13191 GCJX=""
13192 else
13193 # Extract the first word of """", so it can be a program name with args.
13194 set dummy ""; ac_word=$2
13195 echo "$as_me:$LINENO: checking for $ac_word" >&5
13196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13197 if test "${ac_cv_path_GCJX+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 case $GCJX in
13201 [\\/]* | ?:[\\/]*)
13202 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13220 esac
13222 GCJX=$ac_cv_path_GCJX
13224 if test -n "$GCJX"; then
13225 echo "$as_me:$LINENO: result: $GCJX" >&5
13226 echo "${ECHO_T}$GCJX" >&6
13227 else
13228 echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13233 else
13234 # Extract the first word of ""gcjx"", so it can be a program name with args.
13235 set dummy "gcjx"; ac_word=$2
13236 echo "$as_me:$LINENO: checking for $ac_word" >&5
13237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13238 if test "${ac_cv_path_GCJX+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 case $GCJX in
13242 [\\/]* | ?:[\\/]*)
13243 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13257 done
13258 done
13261 esac
13263 GCJX=$ac_cv_path_GCJX
13265 if test -n "$GCJX"; then
13266 echo "$as_me:$LINENO: result: $GCJX" >&5
13267 echo "${ECHO_T}$GCJX" >&6
13268 else
13269 echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6
13277 user_specified_javac=gcjx
13279 else
13282 if test "x" != x; then
13283 if test -f ""; then
13284 GCJX=""
13285 else
13286 # Extract the first word of """", so it can be a program name with args.
13287 set dummy ""; ac_word=$2
13288 echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13290 if test "${ac_cv_path_GCJX+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 case $GCJX in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13309 done
13310 done
13313 esac
13315 GCJX=$ac_cv_path_GCJX
13317 if test -n "$GCJX"; then
13318 echo "$as_me:$LINENO: result: $GCJX" >&5
13319 echo "${ECHO_T}$GCJX" >&6
13320 else
13321 echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6
13326 else
13327 # Extract the first word of ""gcjx"", so it can be a program name with args.
13328 set dummy "gcjx"; ac_word=$2
13329 echo "$as_me:$LINENO: checking for $ac_word" >&5
13330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13331 if test "${ac_cv_path_GCJX+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334 case $GCJX in
13335 [\\/]* | ?:[\\/]*)
13336 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
13345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13346 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13350 done
13351 done
13354 esac
13356 GCJX=$ac_cv_path_GCJX
13358 if test -n "$GCJX"; then
13359 echo "$as_me:$LINENO: result: $GCJX" >&5
13360 echo "${ECHO_T}$GCJX" >&6
13361 else
13362 echo "$as_me:$LINENO: result: no" >&5
13363 echo "${ECHO_T}no" >&6
13374 # Check whether --with-ecj or --without-ecj was given.
13375 if test "${with_ecj+set}" = set; then
13376 withval="$with_ecj"
13378 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13380 if test "x${withval}" != x; then
13381 if test -f "${withval}"; then
13382 ECJ="${withval}"
13383 else
13384 # Extract the first word of ""${withval}"", so it can be a program name with args.
13385 set dummy "${withval}"; ac_word=$2
13386 echo "$as_me:$LINENO: checking for $ac_word" >&5
13387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13388 if test "${ac_cv_path_ECJ+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 case $ECJ in
13392 [\\/]* | ?:[\\/]*)
13393 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13399 IFS=$as_save_IFS
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 break 2
13407 done
13408 done
13411 esac
13413 ECJ=$ac_cv_path_ECJ
13415 if test -n "$ECJ"; then
13416 echo "$as_me:$LINENO: result: $ECJ" >&5
13417 echo "${ECHO_T}$ECJ" >&6
13418 else
13419 echo "$as_me:$LINENO: result: no" >&5
13420 echo "${ECHO_T}no" >&6
13424 else
13425 # Extract the first word of ""ecj"", so it can be a program name with args.
13426 set dummy "ecj"; ac_word=$2
13427 echo "$as_me:$LINENO: checking for $ac_word" >&5
13428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13429 if test "${ac_cv_path_ECJ+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 case $ECJ in
13433 [\\/]* | ?:[\\/]*)
13434 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13452 esac
13454 ECJ=$ac_cv_path_ECJ
13456 if test -n "$ECJ"; then
13457 echo "$as_me:$LINENO: result: $ECJ" >&5
13458 echo "${ECHO_T}$ECJ" >&6
13459 else
13460 echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6
13466 else
13467 if test "x${withval}" != xno; then
13469 if test "x" != x; then
13470 if test -f ""; then
13471 ECJ=""
13472 else
13473 # Extract the first word of """", so it can be a program name with args.
13474 set dummy ""; ac_word=$2
13475 echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13477 if test "${ac_cv_path_ECJ+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 case $ECJ in
13481 [\\/]* | ?:[\\/]*)
13482 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13496 done
13497 done
13500 esac
13502 ECJ=$ac_cv_path_ECJ
13504 if test -n "$ECJ"; then
13505 echo "$as_me:$LINENO: result: $ECJ" >&5
13506 echo "${ECHO_T}$ECJ" >&6
13507 else
13508 echo "$as_me:$LINENO: result: no" >&5
13509 echo "${ECHO_T}no" >&6
13513 else
13514 # Extract the first word of ""ecj"", so it can be a program name with args.
13515 set dummy "ecj"; ac_word=$2
13516 echo "$as_me:$LINENO: checking for $ac_word" >&5
13517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13518 if test "${ac_cv_path_ECJ+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521 case $ECJ in
13522 [\\/]* | ?:[\\/]*)
13523 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13537 done
13538 done
13541 esac
13543 ECJ=$ac_cv_path_ECJ
13545 if test -n "$ECJ"; then
13546 echo "$as_me:$LINENO: result: $ECJ" >&5
13547 echo "${ECHO_T}$ECJ" >&6
13548 else
13549 echo "$as_me:$LINENO: result: no" >&5
13550 echo "${ECHO_T}no" >&6
13557 user_specified_javac=ecj
13559 else
13562 if test "x" != x; then
13563 if test -f ""; then
13564 ECJ=""
13565 else
13566 # Extract the first word of """", so it can be a program name with args.
13567 set dummy ""; ac_word=$2
13568 echo "$as_me:$LINENO: checking for $ac_word" >&5
13569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13570 if test "${ac_cv_path_ECJ+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 case $ECJ in
13574 [\\/]* | ?:[\\/]*)
13575 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13593 esac
13595 ECJ=$ac_cv_path_ECJ
13597 if test -n "$ECJ"; then
13598 echo "$as_me:$LINENO: result: $ECJ" >&5
13599 echo "${ECHO_T}$ECJ" >&6
13600 else
13601 echo "$as_me:$LINENO: result: no" >&5
13602 echo "${ECHO_T}no" >&6
13606 else
13607 # Extract the first word of ""ecj"", so it can be a program name with args.
13608 set dummy "ecj"; ac_word=$2
13609 echo "$as_me:$LINENO: checking for $ac_word" >&5
13610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13611 if test "${ac_cv_path_ECJ+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 case $ECJ in
13615 [\\/]* | ?:[\\/]*)
13616 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13622 IFS=$as_save_IFS
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 break 2
13630 done
13631 done
13634 esac
13636 ECJ=$ac_cv_path_ECJ
13638 if test -n "$ECJ"; then
13639 echo "$as_me:$LINENO: result: $ECJ" >&5
13640 echo "${ECHO_T}$ECJ" >&6
13641 else
13642 echo "$as_me:$LINENO: result: no" >&5
13643 echo "${ECHO_T}no" >&6
13653 if test "x${user_specified_javac}" = x; then
13656 if test "x${GCJ}" != x; then
13657 FOUND_GCJ_TRUE=
13658 FOUND_GCJ_FALSE='#'
13659 else
13660 FOUND_GCJ_TRUE='#'
13661 FOUND_GCJ_FALSE=
13666 if test "x${JIKES}" != x; then
13667 FOUND_JIKES_TRUE=
13668 FOUND_JIKES_FALSE='#'
13669 else
13670 FOUND_JIKES_TRUE='#'
13671 FOUND_JIKES_FALSE=
13676 if test "x${ECJ}" != x; then
13677 FOUND_ECJ_TRUE=
13678 FOUND_ECJ_FALSE='#'
13679 else
13680 FOUND_ECJ_TRUE='#'
13681 FOUND_ECJ_FALSE=
13684 else
13687 if test "x${user_specified_javac}" = xgcj; then
13688 FOUND_GCJ_TRUE=
13689 FOUND_GCJ_FALSE='#'
13690 else
13691 FOUND_GCJ_TRUE='#'
13692 FOUND_GCJ_FALSE=
13697 if test "x${user_specified_javac}" = xjikes; then
13698 FOUND_JIKES_TRUE=
13699 FOUND_JIKES_FALSE='#'
13700 else
13701 FOUND_JIKES_TRUE='#'
13702 FOUND_JIKES_FALSE=
13707 if test "x${user_specified_javac}" = xecj; then
13708 FOUND_ECJ_TRUE=
13709 FOUND_ECJ_FALSE='#'
13710 else
13711 FOUND_ECJ_TRUE='#'
13712 FOUND_ECJ_FALSE=
13718 if test "x${user_specified_javac}" = xkjc; then
13719 FOUND_KJC_TRUE=
13720 FOUND_KJC_FALSE='#'
13721 else
13722 FOUND_KJC_TRUE='#'
13723 FOUND_KJC_FALSE=
13728 if test "x${user_specified_javac}" = xgcjx; then
13729 FOUND_GCJX_TRUE=
13730 FOUND_GCJX_FALSE='#'
13731 else
13732 FOUND_GCJX_TRUE='#'
13733 FOUND_GCJX_FALSE=
13737 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx; then
13738 # FIXME: use autoconf error function
13739 echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or --with-gcjx" 1>&2
13740 exit 1
13746 # Check whether --with-classpath or --without-classpath was given.
13747 if test "${with_classpath+set}" = set; then
13748 withval="$with_classpath"
13750 if test "x${withval}" = xyes; then
13751 # set user classpath to CLASSPATH from env
13752 echo "$as_me:$LINENO: checking for classlib" >&5
13753 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
13754 USER_CLASSLIB=${CLASSPATH}
13756 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
13757 echo "${ECHO_T}${USER_CLASSLIB}" >&6
13758 conditional_with_classlib=true
13759 elif test "x${withval}" != x && test "x${withval}" != xno; then
13760 # set user classpath to specified value
13761 echo "$as_me:$LINENO: checking for classlib" >&5
13762 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
13763 USER_CLASSLIB=${withval}
13765 echo "$as_me:$LINENO: result: ${withval}" >&5
13766 echo "${ECHO_T}${withval}" >&6
13767 conditional_with_classlib=true
13770 else
13771 conditional_with_classlib=false
13775 if test "x${conditional_with_classlib}" = xtrue; then
13776 USER_SPECIFIED_CLASSLIB_TRUE=
13777 USER_SPECIFIED_CLASSLIB_FALSE='#'
13778 else
13779 USER_SPECIFIED_CLASSLIB_TRUE='#'
13780 USER_SPECIFIED_CLASSLIB_FALSE=
13785 # Check whether --with-vm-classes or --without-vm-classes was given.
13786 if test "${with_vm_classes+set}" = set; then
13787 withval="$with_vm_classes"
13788 vm_classes="$with_vm_classes"
13789 else
13790 vm_classes='${top_srcdir}/vm/reference'
13795 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13796 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13797 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13798 if test "${enable_maintainer_mode+set}" = set; then
13799 enableval="$enable_maintainer_mode"
13800 USE_MAINTAINER_MODE=$enableval
13801 else
13802 USE_MAINTAINER_MODE=no
13804 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13805 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13808 if test $USE_MAINTAINER_MODE = yes; then
13809 MAINTAINER_MODE_TRUE=
13810 MAINTAINER_MODE_FALSE='#'
13811 else
13812 MAINTAINER_MODE_TRUE='#'
13813 MAINTAINER_MODE_FALSE=
13816 MAINT=$MAINTAINER_MODE_TRUE
13820 # Check whether --enable-debug or --disable-debug was given.
13821 if test "${enable_debug+set}" = set; then
13822 enableval="$enable_debug"
13823 case "${enableval}" in
13824 yes)
13825 LIBDEBUG="true"
13827 cat >>confdefs.h <<\_ACEOF
13828 #define DEBUG 1
13829 _ACEOF
13832 no) LIBDEBUG="false" ;;
13833 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
13834 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
13835 { (exit 1); exit 1; }; } ;;
13836 esac
13837 else
13838 LIBDEBUG="false"
13842 # Check whether --enable-load-library or --disable-load-library was given.
13843 if test "${enable_load_library+set}" = set; then
13844 enableval="$enable_load_library"
13845 case "${enableval}" in
13846 yes) INIT_LOAD_LIBRARY="true" ;;
13847 no) INIT_LOAD_LIBRARY="false" ;;
13848 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
13849 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
13850 { (exit 1); exit 1; }; } ;;
13851 esac
13852 else
13853 INIT_LOAD_LIBRARY="true"
13858 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
13859 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
13860 enableval="$enable_java_lang_system_explicit_initialization"
13861 case "${enableval}" in
13862 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
13863 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
13864 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
13865 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
13866 { (exit 1); exit 1; }; } ;;
13867 esac
13868 else
13869 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
13874 REMOVE=""
13877 # Extract the first word of "mkdir", so it can be a program name with args.
13878 set dummy mkdir; ac_word=$2
13879 echo "$as_me:$LINENO: checking for $ac_word" >&5
13880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13881 if test "${ac_cv_path_MKDIR+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 case $MKDIR in
13885 [\\/]* | ?:[\\/]*)
13886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
13897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13900 done
13901 done
13904 esac
13906 MKDIR=$ac_cv_path_MKDIR
13908 if test -n "$MKDIR"; then
13909 echo "$as_me:$LINENO: result: $MKDIR" >&5
13910 echo "${ECHO_T}$MKDIR" >&6
13911 else
13912 echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6
13916 # Extract the first word of "cp", so it can be a program name with args.
13917 set dummy cp; ac_word=$2
13918 echo "$as_me:$LINENO: checking for $ac_word" >&5
13919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13920 if test "${ac_cv_path_CP+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 case $CP in
13924 [\\/]* | ?:[\\/]*)
13925 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in $PATH
13931 IFS=$as_save_IFS
13932 test -z "$as_dir" && as_dir=.
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13935 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 break 2
13939 done
13940 done
13943 esac
13945 CP=$ac_cv_path_CP
13947 if test -n "$CP"; then
13948 echo "$as_me:$LINENO: result: $CP" >&5
13949 echo "${ECHO_T}$CP" >&6
13950 else
13951 echo "$as_me:$LINENO: result: no" >&5
13952 echo "${ECHO_T}no" >&6
13955 # Extract the first word of "date", so it can be a program name with args.
13956 set dummy date; ac_word=$2
13957 echo "$as_me:$LINENO: checking for $ac_word" >&5
13958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13959 if test "${ac_cv_path_DATE+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 case $DATE in
13963 [\\/]* | ?:[\\/]*)
13964 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13974 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
13975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13978 done
13979 done
13982 esac
13984 DATE=$ac_cv_path_DATE
13986 if test -n "$DATE"; then
13987 echo "$as_me:$LINENO: result: $DATE" >&5
13988 echo "${ECHO_T}$DATE" >&6
13989 else
13990 echo "$as_me:$LINENO: result: no" >&5
13991 echo "${ECHO_T}no" >&6
13995 # Extract the first word of "find", so it can be a program name with args.
13996 set dummy find; ac_word=$2
13997 echo "$as_me:$LINENO: checking for $ac_word" >&5
13998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13999 if test "${ac_cv_path_FIND+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002 case $FIND in
14003 [\\/]* | ?:[\\/]*)
14004 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
14007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14008 for as_dir in $PATH
14010 IFS=$as_save_IFS
14011 test -z "$as_dir" && as_dir=.
14012 for ac_exec_ext in '' $ac_executable_extensions; do
14013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14014 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
14015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 break 2
14018 done
14019 done
14022 esac
14024 FIND=$ac_cv_path_FIND
14026 if test -n "$FIND"; then
14027 echo "$as_me:$LINENO: result: $FIND" >&5
14028 echo "${ECHO_T}$FIND" >&6
14029 else
14030 echo "$as_me:$LINENO: result: no" >&5
14031 echo "${ECHO_T}no" >&6
14036 # Extract the first word of "zip", so it can be a program name with args.
14037 set dummy zip; ac_word=$2
14038 echo "$as_me:$LINENO: checking for $ac_word" >&5
14039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14040 if test "${ac_cv_path_ZIP+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 case $ZIP in
14044 [\\/]* | ?:[\\/]*)
14045 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
14056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14059 done
14060 done
14063 esac
14065 ZIP=$ac_cv_path_ZIP
14067 if test -n "$ZIP"; then
14068 echo "$as_me:$LINENO: result: $ZIP" >&5
14069 echo "${ECHO_T}$ZIP" >&6
14070 else
14071 echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6
14076 # Check whether --with-glibj or --without-glibj was given.
14077 if test "${with_glibj+set}" = set; then
14078 withval="$with_glibj"
14080 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
14081 install_class_files=no
14082 build_class_files=yes
14083 use_zip=yes
14084 elif test "x${withval}" = xboth; then
14085 install_class_files=yes
14086 build_class_files=yes
14087 use_zip=yes
14088 elif test "x${withval}" = xflat; then
14089 install_class_files=yes
14090 build_class_files=yes
14091 use_zip=no
14092 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
14093 install_class_files=no
14094 build_class_files=no
14095 use_zip=no
14096 elif test "x${withval}" = xbuild; then
14097 install_class_files=no
14098 build_class_files=yes
14099 use_zip=no
14100 else
14101 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
14102 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
14103 { (exit 1); exit 1; }; }
14106 else
14108 install_class_files=no
14109 use_zip=yes
14114 if test "x${use_zip}" = xyes; then
14115 INSTALL_GLIBJ_ZIP_TRUE=
14116 INSTALL_GLIBJ_ZIP_FALSE='#'
14117 else
14118 INSTALL_GLIBJ_ZIP_TRUE='#'
14119 INSTALL_GLIBJ_ZIP_FALSE=
14124 if test "x${install_class_files}" = xyes; then
14125 INSTALL_CLASS_FILES_TRUE=
14126 INSTALL_CLASS_FILES_FALSE='#'
14127 else
14128 INSTALL_CLASS_FILES_TRUE='#'
14129 INSTALL_CLASS_FILES_FALSE=
14134 if test "x${build_class_files}" = xyes; then
14135 BUILD_CLASS_FILES_TRUE=
14136 BUILD_CLASS_FILES_FALSE='#'
14137 else
14138 BUILD_CLASS_FILES_TRUE='#'
14139 BUILD_CLASS_FILES_FALSE=
14143 # Check whether --enable-examples or --disable-examples was given.
14144 if test "${enable_examples+set}" = set; then
14145 enableval="$enable_examples"
14146 case "${enableval}" in
14147 yes) EXAMPLESDIR="examples" ;;
14148 no) EXAMPLESDIR="" ;;
14149 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
14150 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
14151 { (exit 1); exit 1; }; } ;;
14152 esac
14153 else
14154 EXAMPLESDIR="examples"
14156 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
14157 EXAMPLESDIR=""
14164 # Check whether --with-gjdoc or --without-gjdoc was given.
14165 if test "${with_gjdoc+set}" = set; then
14166 withval="$with_gjdoc"
14167 if test "x${withval}" = xno; then
14168 WITH_GJDOC=no;
14169 elif test "x${withval}" = xyes -o "x{withval}" = x; then
14170 WITH_GJDOC=yes;
14171 # Extract the first word of "gjdoc", so it can be a program name with args.
14172 set dummy gjdoc; ac_word=$2
14173 echo "$as_me:$LINENO: checking for $ac_word" >&5
14174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14175 if test "${ac_cv_path_GJDOC+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178 case $GJDOC in
14179 [\\/]* | ?:[\\/]*)
14180 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14194 done
14195 done
14197 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
14199 esac
14201 GJDOC=$ac_cv_path_GJDOC
14203 if test -n "$GJDOC"; then
14204 echo "$as_me:$LINENO: result: $GJDOC" >&5
14205 echo "${ECHO_T}$GJDOC" >&6
14206 else
14207 echo "$as_me:$LINENO: result: no" >&5
14208 echo "${ECHO_T}no" >&6
14211 if test "x${GJDOC}" = xno; then
14212 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
14213 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
14214 { (exit 1); exit 1; }; };
14216 else
14217 WITH_GJDOC=yes
14218 GJDOC="${withval}"
14219 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
14220 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
14221 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
14222 if eval "test \"\${$as_ac_File+set}\" = set"; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 test "$cross_compiling" = yes &&
14226 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14227 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14228 { (exit 1); exit 1; }; }
14229 if test -r "${GJDOC}"; then
14230 eval "$as_ac_File=yes"
14231 else
14232 eval "$as_ac_File=no"
14235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14236 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14237 if test `eval echo '${'$as_ac_File'}'` = yes; then
14239 else
14240 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
14241 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
14242 { (exit 1); exit 1; }; }
14246 else
14247 WITH_GJDOC=no
14252 if test "x${WITH_GJDOC}" = xyes; then
14253 CREATE_API_DOCS_TRUE=
14254 CREATE_API_DOCS_FALSE='#'
14255 else
14256 CREATE_API_DOCS_TRUE='#'
14257 CREATE_API_DOCS_FALSE=
14264 # Check whether --with-jay or --without-jay was given.
14265 if test "${with_jay+set}" = set; then
14266 withval="$with_jay"
14268 if test -d "${withval}"; then
14269 JAY_DIR_PATH="${withval}"
14270 # Extract the first word of "jay", so it can be a program name with args.
14271 set dummy jay; ac_word=$2
14272 echo "$as_me:$LINENO: checking for $ac_word" >&5
14273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14274 if test "${ac_cv_path_JAY+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 case $JAY in
14278 [\\/]* | ?:[\\/]*)
14279 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in ${JAY_DIR_PATH}
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14289 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
14290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14293 done
14294 done
14296 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
14298 esac
14300 JAY=$ac_cv_path_JAY
14302 if test -n "$JAY"; then
14303 echo "$as_me:$LINENO: result: $JAY" >&5
14304 echo "${ECHO_T}$JAY" >&6
14305 else
14306 echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6
14310 if test "x${JAY}" = xno; then
14311 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
14312 echo "$as_me: error: \"jay executable not found\"" >&2;}
14313 { (exit 1); exit 1; }; };
14315 else
14316 JAY_DIR_PATH=$(dirname "${withval}")
14317 JAY="${withval}"
14320 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
14321 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
14322 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
14323 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_File+set}\" = set"; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 test "$cross_compiling" = yes &&
14328 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14329 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14330 { (exit 1); exit 1; }; }
14331 if test -r "${JAY_SKELETON}"; then
14332 eval "$as_ac_File=yes"
14333 else
14334 eval "$as_ac_File=no"
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14339 if test `eval echo '${'$as_ac_File'}'` = yes; then
14341 else
14342 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
14343 echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
14344 { (exit 1); exit 1; }; }
14347 JAY_FOUND=yes
14349 else
14351 JAY_FOUND=no
14356 if test "x${JAY_FOUND}" = xyes; then
14357 REGEN_PARSERS_TRUE=
14358 REGEN_PARSERS_FALSE='#'
14359 else
14360 REGEN_PARSERS_TRUE='#'
14361 REGEN_PARSERS_FALSE=
14366 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
14367 if test "${enable_portable_native_sync+set}" = set; then
14368 enableval="$enable_portable_native_sync"
14369 case "${enableval}" in
14370 yes)
14372 cat >>confdefs.h <<\_ACEOF
14373 #define PORTABLE_NATIVE_SYNC 1
14374 _ACEOF
14377 no) ;;
14379 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
14380 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
14381 { (exit 1); exit 1; }; }
14383 esac
14386 # ------ AX CREATE STDINT H -------------------------------------
14387 echo "$as_me:$LINENO: checking for stdint types" >&5
14388 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
14389 ac_stdint_h=`echo include/config-int.h`
14390 # try to shortcircuit - if the default include path of the compiler
14391 # can find a "stdint.h" header then we assume that all compilers can.
14392 if test "${ac_cv_header_stdint_t+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14396 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
14397 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
14398 old_CFLAGS="$CFLAGS" ; CFLAGS=""
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <stdint.h>
14407 main ()
14409 int_least32_t v = 0;
14411 return 0;
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>conftest.er1
14417 ac_status=$?
14418 grep -v '^ *+' conftest.er1 >conftest.err
14419 rm -f conftest.er1
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_cv_stdint_result="(assuming C99 compatible system)"
14436 ac_cv_header_stdint_t="stdint.h";
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_cv_header_stdint_t=""
14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14444 CXXFLAGS="$old_CXXFLAGS"
14445 CPPFLAGS="$old_CPPFLAGS"
14446 CFLAGS="$old_CFLAGS"
14450 v="... $ac_cv_header_stdint_h"
14451 if test "$ac_stdint_h" = "stdint.h" ; then
14452 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
14453 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
14454 elif test "$ac_stdint_h" = "inttypes.h" ; then
14455 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
14456 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
14457 elif test "_$ac_cv_header_stdint_t" = "_" ; then
14458 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
14459 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
14460 else
14461 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14462 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
14463 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
14466 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14469 inttype_headers=`echo | sed -e 's/,/ /g'`
14471 ac_cv_stdint_result="(no helpful system typedefs seen)"
14473 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14474 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14475 if test "${ac_cv_header_stdint_x+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14479 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14480 echo "$as_me:$LINENO: result: (..)" >&5
14481 echo "${ECHO_T}(..)" >&6
14482 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
14483 unset ac_cv_type_uintptr_t
14484 unset ac_cv_type_uint64_t
14485 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14486 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14487 if test "${ac_cv_type_uintptr_t+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <$i>
14499 main ()
14501 if ((uintptr_t *) 0)
14502 return 0;
14503 if (sizeof (uintptr_t))
14504 return 0;
14506 return 0;
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_type_uintptr_t=yes
14531 else
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_type_uintptr_t=no
14537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14540 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14541 if test $ac_cv_type_uintptr_t = yes; then
14542 ac_cv_header_stdint_x=$i
14543 else
14544 continue
14547 echo "$as_me:$LINENO: checking for uint64_t" >&5
14548 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14549 if test "${ac_cv_type_uint64_t+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h. */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 #include<$i>
14561 main ()
14563 if ((uint64_t *) 0)
14564 return 0;
14565 if (sizeof (uint64_t))
14566 return 0;
14568 return 0;
14570 _ACEOF
14571 rm -f conftest.$ac_objext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573 (eval $ac_compile) 2>conftest.er1
14574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_type_uint64_t=yes
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_cv_type_uint64_t=no
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14602 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14603 if test $ac_cv_type_uint64_t = yes; then
14604 and64="/uint64_t"
14605 else
14606 and64=""
14609 stdint.h inttypes.h sys/inttypes.h $inttype_headers
14610 break
14611 done
14612 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14613 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14616 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
14617 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
14620 if test "_$ac_cv_header_stdint_x" = "_" ; then
14622 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14623 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14624 if test "${ac_cv_header_stdint_o+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14628 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14629 echo "$as_me:$LINENO: result: (..)" >&5
14630 echo "${ECHO_T}(..)" >&6
14631 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
14632 unset ac_cv_type_uint32_t
14633 unset ac_cv_type_uint64_t
14634 echo "$as_me:$LINENO: checking for uint32_t" >&5
14635 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14636 if test "${ac_cv_type_uint32_t+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14645 #include <$i>
14648 main ()
14650 if ((uint32_t *) 0)
14651 return 0;
14652 if (sizeof (uint32_t))
14653 return 0;
14655 return 0;
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660 (eval $ac_compile) 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_type_uint32_t=yes
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_cv_type_uint32_t=no
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14688 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14689 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14690 if test $ac_cv_type_uint32_t = yes; then
14691 ac_cv_header_stdint_o=$i
14692 else
14693 continue
14696 echo "$as_me:$LINENO: checking for uint64_t" >&5
14697 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14698 if test "${ac_cv_type_uint64_t+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 #include<$i>
14710 main ()
14712 if ((uint64_t *) 0)
14713 return 0;
14714 if (sizeof (uint64_t))
14715 return 0;
14717 return 0;
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_type_uint64_t=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_type_uint64_t=no
14748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14751 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14752 if test $ac_cv_type_uint64_t = yes; then
14753 and64="/uint64_t"
14754 else
14755 and64=""
14758 inttypes.h sys/inttypes.h stdint.h $inttype_headers
14759 break
14760 break;
14761 done
14762 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14763 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14766 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
14767 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
14771 if test "_$ac_cv_header_stdint_x" = "_" ; then
14772 if test "_$ac_cv_header_stdint_o" = "_" ; then
14774 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
14775 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
14776 if test "${ac_cv_header_stdint_u+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14780 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14781 echo "$as_me:$LINENO: result: (..)" >&5
14782 echo "${ECHO_T}(..)" >&6
14783 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14784 unset ac_cv_type_u_int32_t
14785 unset ac_cv_type_u_int64_t
14786 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14787 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14788 if test "${ac_cv_type_u_int32_t+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 #include <$i>
14800 main ()
14802 if ((u_int32_t *) 0)
14803 return 0;
14804 if (sizeof (u_int32_t))
14805 return 0;
14807 return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_type_u_int32_t=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_cv_type_u_int32_t=no
14838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14841 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14842 if test $ac_cv_type_u_int32_t = yes; then
14843 ac_cv_header_stdint_u=$i
14844 else
14845 continue
14848 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14849 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14850 if test "${ac_cv_type_u_int64_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include<$i>
14862 main ()
14864 if ((u_int64_t *) 0)
14865 return 0;
14866 if (sizeof (u_int64_t))
14867 return 0;
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_cv_type_u_int64_t=yes
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 ac_cv_type_u_int64_t=no
14900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14902 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14903 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14904 if test $ac_cv_type_u_int64_t = yes; then
14905 and64="/u_int64_t"
14906 else
14907 and64=""
14910 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
14911 break
14912 break;
14913 done
14914 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
14915 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
14918 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
14919 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
14921 fi fi
14923 if test "_$ac_cv_header_stdint_x" = "_" ; then
14924 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
14925 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
14926 echo "$as_me:$LINENO: result: (..)" >&5
14927 echo "${ECHO_T}(..)" >&6
14929 echo "$as_me:$LINENO: checking for char" >&5
14930 echo $ECHO_N "checking for char... $ECHO_C" >&6
14931 if test "${ac_cv_type_char+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14942 main ()
14944 if ((char *) 0)
14945 return 0;
14946 if (sizeof (char))
14947 return 0;
14949 return 0;
14951 _ACEOF
14952 rm -f conftest.$ac_objext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954 (eval $ac_compile) 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_type_char=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_cv_type_char=no
14980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14982 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14983 echo "${ECHO_T}$ac_cv_type_char" >&6
14985 echo "$as_me:$LINENO: checking size of char" >&5
14986 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14987 if test "${ac_cv_sizeof_char+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990 if test "$ac_cv_type_char" = yes; then
14991 # The cast to unsigned long works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 if test "$cross_compiling" = yes; then
14996 # Depending upon the size, compute the lo and hi bounds.
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 $ac_includes_default
15005 main ()
15007 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15008 test_array [0] = 0
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_lo=0 ac_mid=0
15036 while :; do
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 $ac_includes_default
15045 main ()
15047 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15048 test_array [0] = 0
15051 return 0;
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056 (eval $ac_compile) 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest.$ac_objext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_hi=$ac_mid; break
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_lo=`expr $ac_mid + 1`
15081 if test $ac_lo -le $ac_mid; then
15082 ac_lo= ac_hi=
15083 break
15085 ac_mid=`expr 2 '*' $ac_mid + 1`
15087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15088 done
15089 else
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 $ac_includes_default
15101 main ()
15103 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15104 test_array [0] = 0
15107 return 0;
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112 (eval $ac_compile) 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_hi=-1 ac_mid=-1
15132 while :; do
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 $ac_includes_default
15141 main ()
15143 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15144 test_array [0] = 0
15147 return 0;
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_lo=$ac_mid; break
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_hi=`expr '(' $ac_mid ')' - 1`
15177 if test $ac_mid -le $ac_hi; then
15178 ac_lo= ac_hi=
15179 break
15181 ac_mid=`expr 2 '*' $ac_mid`
15183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15184 done
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_lo= ac_hi=
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15194 # Binary search between lo and hi bounds.
15195 while test "x$ac_lo" != "x$ac_hi"; do
15196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15197 cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15205 main ()
15207 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15208 test_array [0] = 0
15211 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15216 (eval $ac_compile) 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_hi=$ac_mid
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_lo=`expr '(' $ac_mid ')' + 1`
15242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15243 done
15244 case $ac_lo in
15245 ?*) ac_cv_sizeof_char=$ac_lo;;
15246 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15247 See \`config.log' for more details." >&5
15248 echo "$as_me: error: cannot compute sizeof (char), 77
15249 See \`config.log' for more details." >&2;}
15250 { (exit 1); exit 1; }; } ;;
15251 esac
15252 else
15253 if test "$cross_compiling" = yes; then
15254 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15255 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15256 { (exit 1); exit 1; }; }
15257 else
15258 cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h. */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 $ac_includes_default
15265 long longval () { return (long) (sizeof (char)); }
15266 unsigned long ulongval () { return (long) (sizeof (char)); }
15267 #include <stdio.h>
15268 #include <stdlib.h>
15270 main ()
15273 FILE *f = fopen ("conftest.val", "w");
15274 if (! f)
15275 exit (1);
15276 if (((long) (sizeof (char))) < 0)
15278 long i = longval ();
15279 if (i != ((long) (sizeof (char))))
15280 exit (1);
15281 fprintf (f, "%ld\n", i);
15283 else
15285 unsigned long i = ulongval ();
15286 if (i != ((long) (sizeof (char))))
15287 exit (1);
15288 fprintf (f, "%lu\n", i);
15290 exit (ferror (f) || fclose (f) != 0);
15293 return 0;
15295 _ACEOF
15296 rm -f conftest$ac_exeext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15298 (eval $ac_link) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_sizeof_char=`cat conftest.val`
15308 else
15309 echo "$as_me: program exited with status $ac_status" >&5
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ( exit $ac_status )
15314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15315 See \`config.log' for more details." >&5
15316 echo "$as_me: error: cannot compute sizeof (char), 77
15317 See \`config.log' for more details." >&2;}
15318 { (exit 1); exit 1; }; }
15320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15323 rm -f conftest.val
15324 else
15325 ac_cv_sizeof_char=0
15328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15329 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15330 cat >>confdefs.h <<_ACEOF
15331 #define SIZEOF_CHAR $ac_cv_sizeof_char
15332 _ACEOF
15335 echo "$as_me:$LINENO: checking for short" >&5
15336 echo $ECHO_N "checking for short... $ECHO_C" >&6
15337 if test "${ac_cv_type_short+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 $ac_includes_default
15348 main ()
15350 if ((short *) 0)
15351 return 0;
15352 if (sizeof (short))
15353 return 0;
15355 return 0;
15357 _ACEOF
15358 rm -f conftest.$ac_objext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360 (eval $ac_compile) 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_type_short=yes
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_cv_type_short=no
15386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15389 echo "${ECHO_T}$ac_cv_type_short" >&6
15391 echo "$as_me:$LINENO: checking size of short" >&5
15392 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15393 if test "${ac_cv_sizeof_short+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 if test "$ac_cv_type_short" = yes; then
15397 # The cast to unsigned long works around a bug in the HP C Compiler
15398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15400 # This bug is HP SR number 8606223364.
15401 if test "$cross_compiling" = yes; then
15402 # Depending upon the size, compute the lo and hi bounds.
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h. */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 $ac_includes_default
15411 main ()
15413 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15414 test_array [0] = 0
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_lo=0 ac_mid=0
15442 while :; do
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 $ac_includes_default
15451 main ()
15453 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15454 test_array [0] = 0
15457 return 0;
15459 _ACEOF
15460 rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462 (eval $ac_compile) 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_hi=$ac_mid; break
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_lo=`expr $ac_mid + 1`
15487 if test $ac_lo -le $ac_mid; then
15488 ac_lo= ac_hi=
15489 break
15491 ac_mid=`expr 2 '*' $ac_mid + 1`
15493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15494 done
15495 else
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 $ac_includes_default
15507 main ()
15509 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15510 test_array [0] = 0
15513 return 0;
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_hi=-1 ac_mid=-1
15538 while :; do
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 $ac_includes_default
15547 main ()
15549 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15550 test_array [0] = 0
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558 (eval $ac_compile) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_lo=$ac_mid; break
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_hi=`expr '(' $ac_mid ')' - 1`
15583 if test $ac_mid -le $ac_hi; then
15584 ac_lo= ac_hi=
15585 break
15587 ac_mid=`expr 2 '*' $ac_mid`
15589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590 done
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_lo= ac_hi=
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15600 # Binary search between lo and hi bounds.
15601 while test "x$ac_lo" != "x$ac_hi"; do
15602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 $ac_includes_default
15611 main ()
15613 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15614 test_array [0] = 0
15617 return 0;
15619 _ACEOF
15620 rm -f conftest.$ac_objext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>conftest.er1
15623 ac_status=$?
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_hi=$ac_mid
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_lo=`expr '(' $ac_mid ')' + 1`
15648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 done
15650 case $ac_lo in
15651 ?*) ac_cv_sizeof_short=$ac_lo;;
15652 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15653 See \`config.log' for more details." >&5
15654 echo "$as_me: error: cannot compute sizeof (short), 77
15655 See \`config.log' for more details." >&2;}
15656 { (exit 1); exit 1; }; } ;;
15657 esac
15658 else
15659 if test "$cross_compiling" = yes; then
15660 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15661 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15662 { (exit 1); exit 1; }; }
15663 else
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15671 long longval () { return (long) (sizeof (short)); }
15672 unsigned long ulongval () { return (long) (sizeof (short)); }
15673 #include <stdio.h>
15674 #include <stdlib.h>
15676 main ()
15679 FILE *f = fopen ("conftest.val", "w");
15680 if (! f)
15681 exit (1);
15682 if (((long) (sizeof (short))) < 0)
15684 long i = longval ();
15685 if (i != ((long) (sizeof (short))))
15686 exit (1);
15687 fprintf (f, "%ld\n", i);
15689 else
15691 unsigned long i = ulongval ();
15692 if (i != ((long) (sizeof (short))))
15693 exit (1);
15694 fprintf (f, "%lu\n", i);
15696 exit (ferror (f) || fclose (f) != 0);
15699 return 0;
15701 _ACEOF
15702 rm -f conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_cv_sizeof_short=`cat conftest.val`
15714 else
15715 echo "$as_me: program exited with status $ac_status" >&5
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ( exit $ac_status )
15720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15721 See \`config.log' for more details." >&5
15722 echo "$as_me: error: cannot compute sizeof (short), 77
15723 See \`config.log' for more details." >&2;}
15724 { (exit 1); exit 1; }; }
15726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15729 rm -f conftest.val
15730 else
15731 ac_cv_sizeof_short=0
15734 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15735 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15736 cat >>confdefs.h <<_ACEOF
15737 #define SIZEOF_SHORT $ac_cv_sizeof_short
15738 _ACEOF
15741 echo "$as_me:$LINENO: checking for int" >&5
15742 echo $ECHO_N "checking for int... $ECHO_C" >&6
15743 if test "${ac_cv_type_int+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 $ac_includes_default
15754 main ()
15756 if ((int *) 0)
15757 return 0;
15758 if (sizeof (int))
15759 return 0;
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766 (eval $ac_compile) 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15785 ac_cv_type_int=yes
15786 else
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 ac_cv_type_int=no
15792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15794 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15795 echo "${ECHO_T}$ac_cv_type_int" >&6
15797 echo "$as_me:$LINENO: checking size of int" >&5
15798 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15799 if test "${ac_cv_sizeof_int+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 if test "$ac_cv_type_int" = yes; then
15803 # The cast to unsigned long works around a bug in the HP C Compiler
15804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15806 # This bug is HP SR number 8606223364.
15807 if test "$cross_compiling" = yes; then
15808 # Depending upon the size, compute the lo and hi bounds.
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h. */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15817 main ()
15819 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15820 test_array [0] = 0
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_lo=0 ac_mid=0
15848 while :; do
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h. */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 $ac_includes_default
15857 main ()
15859 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15860 test_array [0] = 0
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15868 (eval $ac_compile) 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_hi=$ac_mid; break
15888 else
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_lo=`expr $ac_mid + 1`
15893 if test $ac_lo -le $ac_mid; then
15894 ac_lo= ac_hi=
15895 break
15897 ac_mid=`expr 2 '*' $ac_mid + 1`
15899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15900 done
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h. */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 $ac_includes_default
15913 main ()
15915 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15916 test_array [0] = 0
15919 return 0;
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924 (eval $ac_compile) 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_hi=-1 ac_mid=-1
15944 while :; do
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15953 main ()
15955 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15956 test_array [0] = 0
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964 (eval $ac_compile) 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_lo=$ac_mid; break
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_hi=`expr '(' $ac_mid ')' - 1`
15989 if test $ac_mid -le $ac_hi; then
15990 ac_lo= ac_hi=
15991 break
15993 ac_mid=`expr 2 '*' $ac_mid`
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 done
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_lo= ac_hi=
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16006 # Binary search between lo and hi bounds.
16007 while test "x$ac_lo" != "x$ac_hi"; do
16008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16017 main ()
16019 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16020 test_array [0] = 0
16023 return 0;
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_hi=$ac_mid
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_lo=`expr '(' $ac_mid ')' + 1`
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16055 done
16056 case $ac_lo in
16057 ?*) ac_cv_sizeof_int=$ac_lo;;
16058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16059 See \`config.log' for more details." >&5
16060 echo "$as_me: error: cannot compute sizeof (int), 77
16061 See \`config.log' for more details." >&2;}
16062 { (exit 1); exit 1; }; } ;;
16063 esac
16064 else
16065 if test "$cross_compiling" = yes; then
16066 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16067 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16068 { (exit 1); exit 1; }; }
16069 else
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16077 long longval () { return (long) (sizeof (int)); }
16078 unsigned long ulongval () { return (long) (sizeof (int)); }
16079 #include <stdio.h>
16080 #include <stdlib.h>
16082 main ()
16085 FILE *f = fopen ("conftest.val", "w");
16086 if (! f)
16087 exit (1);
16088 if (((long) (sizeof (int))) < 0)
16090 long i = longval ();
16091 if (i != ((long) (sizeof (int))))
16092 exit (1);
16093 fprintf (f, "%ld\n", i);
16095 else
16097 unsigned long i = ulongval ();
16098 if (i != ((long) (sizeof (int))))
16099 exit (1);
16100 fprintf (f, "%lu\n", i);
16102 exit (ferror (f) || fclose (f) != 0);
16105 return 0;
16107 _ACEOF
16108 rm -f conftest$ac_exeext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110 (eval $ac_link) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 ac_cv_sizeof_int=`cat conftest.val`
16120 else
16121 echo "$as_me: program exited with status $ac_status" >&5
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ( exit $ac_status )
16126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16127 See \`config.log' for more details." >&5
16128 echo "$as_me: error: cannot compute sizeof (int), 77
16129 See \`config.log' for more details." >&2;}
16130 { (exit 1); exit 1; }; }
16132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16135 rm -f conftest.val
16136 else
16137 ac_cv_sizeof_int=0
16140 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16141 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16142 cat >>confdefs.h <<_ACEOF
16143 #define SIZEOF_INT $ac_cv_sizeof_int
16144 _ACEOF
16147 echo "$as_me:$LINENO: checking for long" >&5
16148 echo $ECHO_N "checking for long... $ECHO_C" >&6
16149 if test "${ac_cv_type_long+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 $ac_includes_default
16160 main ()
16162 if ((long *) 0)
16163 return 0;
16164 if (sizeof (long))
16165 return 0;
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16172 (eval $ac_compile) 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_type_long=yes
16192 else
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_type_long=no
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16200 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16201 echo "${ECHO_T}$ac_cv_type_long" >&6
16203 echo "$as_me:$LINENO: checking size of long" >&5
16204 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16205 if test "${ac_cv_sizeof_long+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208 if test "$ac_cv_type_long" = yes; then
16209 # The cast to unsigned long works around a bug in the HP C Compiler
16210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16212 # This bug is HP SR number 8606223364.
16213 if test "$cross_compiling" = yes; then
16214 # Depending upon the size, compute the lo and hi bounds.
16215 cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h. */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16221 $ac_includes_default
16223 main ()
16225 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16226 test_array [0] = 0
16229 return 0;
16231 _ACEOF
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_lo=0 ac_mid=0
16254 while :; do
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 $ac_includes_default
16263 main ()
16265 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16266 test_array [0] = 0
16269 return 0;
16271 _ACEOF
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest.$ac_objext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_hi=$ac_mid; break
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_lo=`expr $ac_mid + 1`
16299 if test $ac_lo -le $ac_mid; then
16300 ac_lo= ac_hi=
16301 break
16303 ac_mid=`expr 2 '*' $ac_mid + 1`
16305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 done
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 $ac_includes_default
16319 main ()
16321 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16322 test_array [0] = 0
16325 return 0;
16327 _ACEOF
16328 rm -f conftest.$ac_objext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_hi=-1 ac_mid=-1
16350 while :; do
16351 cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h. */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16359 main ()
16361 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16362 test_array [0] = 0
16365 return 0;
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370 (eval $ac_compile) 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest.$ac_objext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_lo=$ac_mid; break
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_hi=`expr '(' $ac_mid ')' - 1`
16395 if test $ac_mid -le $ac_hi; then
16396 ac_lo= ac_hi=
16397 break
16399 ac_mid=`expr 2 '*' $ac_mid`
16401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16402 done
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_lo= ac_hi=
16409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16412 # Binary search between lo and hi bounds.
16413 while test "x$ac_lo" != "x$ac_hi"; do
16414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 $ac_includes_default
16423 main ()
16425 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16426 test_array [0] = 0
16429 return 0;
16431 _ACEOF
16432 rm -f conftest.$ac_objext
16433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16434 (eval $ac_compile) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_hi=$ac_mid
16454 else
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_lo=`expr '(' $ac_mid ')' + 1`
16460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16461 done
16462 case $ac_lo in
16463 ?*) ac_cv_sizeof_long=$ac_lo;;
16464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16465 See \`config.log' for more details." >&5
16466 echo "$as_me: error: cannot compute sizeof (long), 77
16467 See \`config.log' for more details." >&2;}
16468 { (exit 1); exit 1; }; } ;;
16469 esac
16470 else
16471 if test "$cross_compiling" = yes; then
16472 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16473 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16474 { (exit 1); exit 1; }; }
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 $ac_includes_default
16483 long longval () { return (long) (sizeof (long)); }
16484 unsigned long ulongval () { return (long) (sizeof (long)); }
16485 #include <stdio.h>
16486 #include <stdlib.h>
16488 main ()
16491 FILE *f = fopen ("conftest.val", "w");
16492 if (! f)
16493 exit (1);
16494 if (((long) (sizeof (long))) < 0)
16496 long i = longval ();
16497 if (i != ((long) (sizeof (long))))
16498 exit (1);
16499 fprintf (f, "%ld\n", i);
16501 else
16503 unsigned long i = ulongval ();
16504 if (i != ((long) (sizeof (long))))
16505 exit (1);
16506 fprintf (f, "%lu\n", i);
16508 exit (ferror (f) || fclose (f) != 0);
16511 return 0;
16513 _ACEOF
16514 rm -f conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_sizeof_long=`cat conftest.val`
16526 else
16527 echo "$as_me: program exited with status $ac_status" >&5
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ( exit $ac_status )
16532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16533 See \`config.log' for more details." >&5
16534 echo "$as_me: error: cannot compute sizeof (long), 77
16535 See \`config.log' for more details." >&2;}
16536 { (exit 1); exit 1; }; }
16538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16541 rm -f conftest.val
16542 else
16543 ac_cv_sizeof_long=0
16546 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16547 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16548 cat >>confdefs.h <<_ACEOF
16549 #define SIZEOF_LONG $ac_cv_sizeof_long
16550 _ACEOF
16553 echo "$as_me:$LINENO: checking for void*" >&5
16554 echo $ECHO_N "checking for void*... $ECHO_C" >&6
16555 if test "${ac_cv_type_voidp+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 $ac_includes_default
16566 main ()
16568 if ((void* *) 0)
16569 return 0;
16570 if (sizeof (void*))
16571 return 0;
16573 return 0;
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578 (eval $ac_compile) 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_type_voidp=yes
16598 else
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_type_voidp=no
16604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16606 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
16607 echo "${ECHO_T}$ac_cv_type_voidp" >&6
16609 echo "$as_me:$LINENO: checking size of void*" >&5
16610 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
16611 if test "${ac_cv_sizeof_voidp+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 if test "$ac_cv_type_voidp" = yes; then
16615 # The cast to unsigned long works around a bug in the HP C Compiler
16616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16618 # This bug is HP SR number 8606223364.
16619 if test "$cross_compiling" = yes; then
16620 # Depending upon the size, compute the lo and hi bounds.
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 $ac_includes_default
16629 main ()
16631 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
16632 test_array [0] = 0
16635 return 0;
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16640 (eval $ac_compile) 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_lo=0 ac_mid=0
16660 while :; do
16661 cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h. */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 $ac_includes_default
16669 main ()
16671 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
16672 test_array [0] = 0
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest.$ac_objext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_hi=$ac_mid; break
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_lo=`expr $ac_mid + 1`
16705 if test $ac_lo -le $ac_mid; then
16706 ac_lo= ac_hi=
16707 break
16709 ac_mid=`expr 2 '*' $ac_mid + 1`
16711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 done
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 $ac_includes_default
16725 main ()
16727 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
16728 test_array [0] = 0
16731 return 0;
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_hi=-1 ac_mid=-1
16756 while :; do
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 $ac_includes_default
16765 main ()
16767 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
16768 test_array [0] = 0
16771 return 0;
16773 _ACEOF
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest.$ac_objext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_lo=$ac_mid; break
16796 else
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_hi=`expr '(' $ac_mid ')' - 1`
16801 if test $ac_mid -le $ac_hi; then
16802 ac_lo= ac_hi=
16803 break
16805 ac_mid=`expr 2 '*' $ac_mid`
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16808 done
16809 else
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_lo= ac_hi=
16815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16818 # Binary search between lo and hi bounds.
16819 while test "x$ac_lo" != "x$ac_hi"; do
16820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16829 main ()
16831 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
16832 test_array [0] = 0
16835 return 0;
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16840 (eval $ac_compile) 2>conftest.er1
16841 ac_status=$?
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_hi=$ac_mid
16860 else
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_lo=`expr '(' $ac_mid ')' + 1`
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16867 done
16868 case $ac_lo in
16869 ?*) ac_cv_sizeof_voidp=$ac_lo;;
16870 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
16871 See \`config.log' for more details." >&5
16872 echo "$as_me: error: cannot compute sizeof (void*), 77
16873 See \`config.log' for more details." >&2;}
16874 { (exit 1); exit 1; }; } ;;
16875 esac
16876 else
16877 if test "$cross_compiling" = yes; then
16878 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16879 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16880 { (exit 1); exit 1; }; }
16881 else
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 long longval () { return (long) (sizeof (void*)); }
16890 unsigned long ulongval () { return (long) (sizeof (void*)); }
16891 #include <stdio.h>
16892 #include <stdlib.h>
16894 main ()
16897 FILE *f = fopen ("conftest.val", "w");
16898 if (! f)
16899 exit (1);
16900 if (((long) (sizeof (void*))) < 0)
16902 long i = longval ();
16903 if (i != ((long) (sizeof (void*))))
16904 exit (1);
16905 fprintf (f, "%ld\n", i);
16907 else
16909 unsigned long i = ulongval ();
16910 if (i != ((long) (sizeof (void*))))
16911 exit (1);
16912 fprintf (f, "%lu\n", i);
16914 exit (ferror (f) || fclose (f) != 0);
16917 return 0;
16919 _ACEOF
16920 rm -f conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_sizeof_voidp=`cat conftest.val`
16932 else
16933 echo "$as_me: program exited with status $ac_status" >&5
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ( exit $ac_status )
16938 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
16939 See \`config.log' for more details." >&5
16940 echo "$as_me: error: cannot compute sizeof (void*), 77
16941 See \`config.log' for more details." >&2;}
16942 { (exit 1); exit 1; }; }
16944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16947 rm -f conftest.val
16948 else
16949 ac_cv_sizeof_voidp=0
16952 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
16953 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
16954 cat >>confdefs.h <<_ACEOF
16955 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16956 _ACEOF
16959 ac_cv_char_data_model=""
16960 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16961 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16962 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16963 ac_cv_long_data_model=""
16964 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16965 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16966 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16967 echo "$as_me:$LINENO: checking data model" >&5
16968 echo $ECHO_N "checking data model... $ECHO_C" >&6
16969 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16970 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16971 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16972 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16973 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16974 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16975 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16976 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16977 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16978 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16979 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16980 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16981 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16982 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16983 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16984 222/*|333/*|444/*|666/*|888/*) :
16985 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16986 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16987 esac
16988 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16989 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
16993 if test "_$ac_cv_header_stdint_x" != "_" ; then
16994 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16995 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16996 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16997 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16998 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16999 else
17000 ac_cv_header_stdint="stddef.h"
17003 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
17004 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
17005 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
17006 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
17007 unset ac_cv_type_int_least32_t
17008 unset ac_cv_type_int_fast32_t
17009 echo "$as_me:$LINENO: checking for int_least32_t" >&5
17010 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
17011 if test "${ac_cv_type_int_least32_t+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h. */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <$ac_cv_header_stdint>
17023 main ()
17025 if ((int_least32_t *) 0)
17026 return 0;
17027 if (sizeof (int_least32_t))
17028 return 0;
17030 return 0;
17032 _ACEOF
17033 rm -f conftest.$ac_objext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035 (eval $ac_compile) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_cv_type_int_least32_t=yes
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 ac_cv_type_int_least32_t=no
17061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17063 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
17064 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
17066 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
17067 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
17068 if test "${ac_cv_type_int_fast32_t+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include<$ac_cv_header_stdint>
17080 main ()
17082 if ((int_fast32_t *) 0)
17083 return 0;
17084 if (sizeof (int_fast32_t))
17085 return 0;
17087 return 0;
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17092 (eval $ac_compile) 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_type_int_fast32_t=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_type_int_fast32_t=no
17118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17120 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
17121 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
17123 echo "$as_me:$LINENO: checking for intmax_t" >&5
17124 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
17125 if test "${ac_cv_type_intmax_t+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 #include <$ac_cv_header_stdint>
17137 main ()
17139 if ((intmax_t *) 0)
17140 return 0;
17141 if (sizeof (intmax_t))
17142 return 0;
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_type_intmax_t=yes
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_type_intmax_t=no
17175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17177 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
17178 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
17181 fi # shortcircut to system "stdint.h"
17182 # ------------------ PREPARE VARIABLES ------------------------------
17183 if test "$GCC" = "yes" ; then
17184 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17185 else
17186 ac_cv_stdint_message="using $CC"
17189 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17190 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
17192 # ----------------- DONE inttypes.h checks START header -------------
17193 ac_config_commands="$ac_config_commands $ac_stdint_h"
17197 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile gnu/classpath/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh examples/Makefile examples/Makefile.jawt"
17199 ac_config_commands="$ac_config_commands gen-classlist"
17201 ac_config_commands="$ac_config_commands copy-vmresources"
17203 cat >confcache <<\_ACEOF
17204 # This file is a shell script that caches the results of configure
17205 # tests run on this system so they can be shared between configure
17206 # scripts and configure runs, see configure's option --config-cache.
17207 # It is not useful on other systems. If it contains results you don't
17208 # want to keep, you may remove or edit it.
17210 # config.status only pays attention to the cache file if you give it
17211 # the --recheck option to rerun configure.
17213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17215 # following values.
17217 _ACEOF
17219 # The following way of writing the cache mishandles newlines in values,
17220 # but we know of no workaround that is simple, portable, and efficient.
17221 # So, don't put newlines in cache variables' values.
17222 # Ultrix sh set writes to stderr and can't be redirected directly,
17223 # and sets the high bit in the cache file unless we assign to the vars.
17225 (set) 2>&1 |
17226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17227 *ac_space=\ *)
17228 # `set' does not quote correctly, so add quotes (double-quote
17229 # substitution turns \\\\ into \\, and sed turns \\ into \).
17230 sed -n \
17231 "s/'/'\\\\''/g;
17232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17235 # `set' quotes correctly as required by POSIX, so do not add quotes.
17236 sed -n \
17237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17239 esac;
17241 sed '
17242 t clear
17243 : clear
17244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17245 t end
17246 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17247 : end' >>confcache
17248 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17249 if test -w $cache_file; then
17250 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17251 cat confcache >$cache_file
17252 else
17253 echo "not updating unwritable cache $cache_file"
17256 rm -f confcache
17258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17259 # Let make expand exec_prefix.
17260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17264 # trailing colons and then remove the whole line if VPATH becomes empty
17265 # (actually we leave an empty line to preserve line numbers).
17266 if test "x$srcdir" = x.; then
17267 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17268 s/:*\$(srcdir):*/:/;
17269 s/:*\${srcdir}:*/:/;
17270 s/:*@srcdir@:*/:/;
17271 s/^\([^=]*=[ ]*\):*/\1/;
17272 s/:*$//;
17273 s/^[^=]*=[ ]*$//;
17277 DEFS=-DHAVE_CONFIG_H
17279 ac_libobjs=
17280 ac_ltlibobjs=
17281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17282 # 1. Remove the extension, and $U if already installed.
17283 ac_i=`echo "$ac_i" |
17284 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17285 # 2. Add them.
17286 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17287 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17288 done
17289 LIBOBJS=$ac_libobjs
17291 LTLIBOBJS=$ac_ltlibobjs
17294 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
17295 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
17296 Usually this means the macro was only invoked conditionally." >&5
17297 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
17298 Usually this means the macro was only invoked conditionally." >&2;}
17299 { (exit 1); exit 1; }; }
17301 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
17302 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
17303 Usually this means the macro was only invoked conditionally." >&5
17304 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
17305 Usually this means the macro was only invoked conditionally." >&2;}
17306 { (exit 1); exit 1; }; }
17308 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
17309 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
17310 Usually this means the macro was only invoked conditionally." >&5
17311 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
17312 Usually this means the macro was only invoked conditionally." >&2;}
17313 { (exit 1); exit 1; }; }
17315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17316 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17317 Usually this means the macro was only invoked conditionally." >&5
17318 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17319 Usually this means the macro was only invoked conditionally." >&2;}
17320 { (exit 1); exit 1; }; }
17322 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17323 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17324 Usually this means the macro was only invoked conditionally." >&5
17325 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17326 Usually this means the macro was only invoked conditionally." >&2;}
17327 { (exit 1); exit 1; }; }
17329 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
17330 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
17331 Usually this means the macro was only invoked conditionally." >&5
17332 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
17333 Usually this means the macro was only invoked conditionally." >&2;}
17334 { (exit 1); exit 1; }; }
17336 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
17337 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
17338 Usually this means the macro was only invoked conditionally." >&5
17339 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
17340 Usually this means the macro was only invoked conditionally." >&2;}
17341 { (exit 1); exit 1; }; }
17343 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
17344 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
17345 Usually this means the macro was only invoked conditionally." >&5
17346 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
17347 Usually this means the macro was only invoked conditionally." >&2;}
17348 { (exit 1); exit 1; }; }
17350 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17351 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17352 Usually this means the macro was only invoked conditionally." >&5
17353 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17354 Usually this means the macro was only invoked conditionally." >&2;}
17355 { (exit 1); exit 1; }; }
17357 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
17358 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
17359 Usually this means the macro was only invoked conditionally." >&5
17360 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
17361 Usually this means the macro was only invoked conditionally." >&2;}
17362 { (exit 1); exit 1; }; }
17364 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
17365 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
17366 Usually this means the macro was only invoked conditionally." >&5
17367 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
17368 Usually this means the macro was only invoked conditionally." >&2;}
17369 { (exit 1); exit 1; }; }
17371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17372 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17373 Usually this means the macro was only invoked conditionally." >&5
17374 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17375 Usually this means the macro was only invoked conditionally." >&2;}
17376 { (exit 1); exit 1; }; }
17378 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17380 Usually this means the macro was only invoked conditionally." >&5
17381 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17382 Usually this means the macro was only invoked conditionally." >&2;}
17383 { (exit 1); exit 1; }; }
17385 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
17386 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
17387 Usually this means the macro was only invoked conditionally." >&5
17388 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
17389 Usually this means the macro was only invoked conditionally." >&2;}
17390 { (exit 1); exit 1; }; }
17392 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
17393 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
17394 Usually this means the macro was only invoked conditionally." >&5
17395 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
17396 Usually this means the macro was only invoked conditionally." >&2;}
17397 { (exit 1); exit 1; }; }
17399 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
17400 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
17401 Usually this means the macro was only invoked conditionally." >&5
17402 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
17403 Usually this means the macro was only invoked conditionally." >&2;}
17404 { (exit 1); exit 1; }; }
17406 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
17407 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
17408 Usually this means the macro was only invoked conditionally." >&5
17409 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
17410 Usually this means the macro was only invoked conditionally." >&2;}
17411 { (exit 1); exit 1; }; }
17413 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
17414 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
17415 Usually this means the macro was only invoked conditionally." >&5
17416 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
17417 Usually this means the macro was only invoked conditionally." >&2;}
17418 { (exit 1); exit 1; }; }
17420 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
17421 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
17422 Usually this means the macro was only invoked conditionally." >&5
17423 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
17424 Usually this means the macro was only invoked conditionally." >&2;}
17425 { (exit 1); exit 1; }; }
17427 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
17428 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
17429 Usually this means the macro was only invoked conditionally." >&5
17430 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
17431 Usually this means the macro was only invoked conditionally." >&2;}
17432 { (exit 1); exit 1; }; }
17434 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
17435 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
17436 Usually this means the macro was only invoked conditionally." >&5
17437 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
17438 Usually this means the macro was only invoked conditionally." >&2;}
17439 { (exit 1); exit 1; }; }
17441 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
17442 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
17443 Usually this means the macro was only invoked conditionally." >&5
17444 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
17445 Usually this means the macro was only invoked conditionally." >&2;}
17446 { (exit 1); exit 1; }; }
17448 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
17449 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
17450 Usually this means the macro was only invoked conditionally." >&5
17451 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
17452 Usually this means the macro was only invoked conditionally." >&2;}
17453 { (exit 1); exit 1; }; }
17455 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17456 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17457 Usually this means the macro was only invoked conditionally." >&5
17458 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17459 Usually this means the macro was only invoked conditionally." >&2;}
17460 { (exit 1); exit 1; }; }
17462 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
17463 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
17464 Usually this means the macro was only invoked conditionally." >&5
17465 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
17466 Usually this means the macro was only invoked conditionally." >&2;}
17467 { (exit 1); exit 1; }; }
17469 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
17470 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
17471 Usually this means the macro was only invoked conditionally." >&5
17472 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
17473 Usually this means the macro was only invoked conditionally." >&2;}
17474 { (exit 1); exit 1; }; }
17476 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
17477 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
17478 Usually this means the macro was only invoked conditionally." >&5
17479 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
17480 Usually this means the macro was only invoked conditionally." >&2;}
17481 { (exit 1); exit 1; }; }
17483 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
17484 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
17485 Usually this means the macro was only invoked conditionally." >&5
17486 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
17487 Usually this means the macro was only invoked conditionally." >&2;}
17488 { (exit 1); exit 1; }; }
17490 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
17491 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
17492 Usually this means the macro was only invoked conditionally." >&5
17493 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
17494 Usually this means the macro was only invoked conditionally." >&2;}
17495 { (exit 1); exit 1; }; }
17498 : ${CONFIG_STATUS=./config.status}
17499 ac_clean_files_save=$ac_clean_files
17500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17501 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17502 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17503 cat >$CONFIG_STATUS <<_ACEOF
17504 #! $SHELL
17505 # Generated by $as_me.
17506 # Run this file to recreate the current configuration.
17507 # Compiler output produced by configure, useful for debugging
17508 # configure, is in config.log if it exists.
17510 debug=false
17511 ac_cs_recheck=false
17512 ac_cs_silent=false
17513 SHELL=\${CONFIG_SHELL-$SHELL}
17514 _ACEOF
17516 cat >>$CONFIG_STATUS <<\_ACEOF
17517 ## --------------------- ##
17518 ## M4sh Initialization. ##
17519 ## --------------------- ##
17521 # Be Bourne compatible
17522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17523 emulate sh
17524 NULLCMD=:
17525 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17526 # is contrary to our usage. Disable this feature.
17527 alias -g '${1+"$@"}'='"$@"'
17528 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17529 set -o posix
17531 DUALCASE=1; export DUALCASE # for MKS sh
17533 # Support unset when possible.
17534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17535 as_unset=unset
17536 else
17537 as_unset=false
17541 # Work around bugs in pre-3.0 UWIN ksh.
17542 $as_unset ENV MAIL MAILPATH
17543 PS1='$ '
17544 PS2='> '
17545 PS4='+ '
17547 # NLS nuisances.
17548 for as_var in \
17549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17551 LC_TELEPHONE LC_TIME
17553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17554 eval $as_var=C; export $as_var
17555 else
17556 $as_unset $as_var
17558 done
17560 # Required to use basename.
17561 if expr a : '\(a\)' >/dev/null 2>&1; then
17562 as_expr=expr
17563 else
17564 as_expr=false
17567 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17568 as_basename=basename
17569 else
17570 as_basename=false
17574 # Name of the executable.
17575 as_me=`$as_basename "$0" ||
17576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17577 X"$0" : 'X\(//\)$' \| \
17578 X"$0" : 'X\(/\)$' \| \
17579 . : '\(.\)' 2>/dev/null ||
17580 echo X/"$0" |
17581 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17582 /^X\/\(\/\/\)$/{ s//\1/; q; }
17583 /^X\/\(\/\).*/{ s//\1/; q; }
17584 s/.*/./; q'`
17587 # PATH needs CR, and LINENO needs CR and PATH.
17588 # Avoid depending upon Character Ranges.
17589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17592 as_cr_digits='0123456789'
17593 as_cr_alnum=$as_cr_Letters$as_cr_digits
17595 # The user is always right.
17596 if test "${PATH_SEPARATOR+set}" != set; then
17597 echo "#! /bin/sh" >conf$$.sh
17598 echo "exit 0" >>conf$$.sh
17599 chmod +x conf$$.sh
17600 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17601 PATH_SEPARATOR=';'
17602 else
17603 PATH_SEPARATOR=:
17605 rm -f conf$$.sh
17609 as_lineno_1=$LINENO
17610 as_lineno_2=$LINENO
17611 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17612 test "x$as_lineno_1" != "x$as_lineno_2" &&
17613 test "x$as_lineno_3" = "x$as_lineno_2" || {
17614 # Find who we are. Look in the path if we contain no path at all
17615 # relative or not.
17616 case $0 in
17617 *[\\/]* ) as_myself=$0 ;;
17618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17619 for as_dir in $PATH
17621 IFS=$as_save_IFS
17622 test -z "$as_dir" && as_dir=.
17623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17624 done
17627 esac
17628 # We did not find ourselves, most probably we were run as `sh COMMAND'
17629 # in which case we are not to be found in the path.
17630 if test "x$as_myself" = x; then
17631 as_myself=$0
17633 if test ! -f "$as_myself"; then
17634 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17635 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17636 { (exit 1); exit 1; }; }
17638 case $CONFIG_SHELL in
17640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17641 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17643 IFS=$as_save_IFS
17644 test -z "$as_dir" && as_dir=.
17645 for as_base in sh bash ksh sh5; do
17646 case $as_dir in
17648 if ("$as_dir/$as_base" -c '
17649 as_lineno_1=$LINENO
17650 as_lineno_2=$LINENO
17651 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17652 test "x$as_lineno_1" != "x$as_lineno_2" &&
17653 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17654 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17655 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17656 CONFIG_SHELL=$as_dir/$as_base
17657 export CONFIG_SHELL
17658 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17659 fi;;
17660 esac
17661 done
17662 done
17664 esac
17666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17667 # uniformly replaced by the line number. The first 'sed' inserts a
17668 # line-number line before each line; the second 'sed' does the real
17669 # work. The second script uses 'N' to pair each line-number line
17670 # with the numbered line, and appends trailing '-' during
17671 # substitution so that $LINENO is not a special case at line end.
17672 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17673 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17674 sed '=' <$as_myself |
17675 sed '
17677 s,$,-,
17678 : loop
17679 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17680 t loop
17681 s,-$,,
17682 s,^['$as_cr_digits']*\n,,
17683 ' >$as_me.lineno &&
17684 chmod +x $as_me.lineno ||
17685 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17686 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17687 { (exit 1); exit 1; }; }
17689 # Don't try to exec as it changes $[0], causing all sort of problems
17690 # (the dirname of $[0] is not the place where we might find the
17691 # original and so on. Autoconf is especially sensible to this).
17692 . ./$as_me.lineno
17693 # Exit status is that of the last command.
17694 exit
17698 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17699 *c*,-n*) ECHO_N= ECHO_C='
17700 ' ECHO_T=' ' ;;
17701 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17702 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17703 esac
17705 if expr a : '\(a\)' >/dev/null 2>&1; then
17706 as_expr=expr
17707 else
17708 as_expr=false
17711 rm -f conf$$ conf$$.exe conf$$.file
17712 echo >conf$$.file
17713 if ln -s conf$$.file conf$$ 2>/dev/null; then
17714 # We could just check for DJGPP; but this test a) works b) is more generic
17715 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17716 if test -f conf$$.exe; then
17717 # Don't use ln at all; we don't have any links
17718 as_ln_s='cp -p'
17719 else
17720 as_ln_s='ln -s'
17722 elif ln conf$$.file conf$$ 2>/dev/null; then
17723 as_ln_s=ln
17724 else
17725 as_ln_s='cp -p'
17727 rm -f conf$$ conf$$.exe conf$$.file
17729 if mkdir -p . 2>/dev/null; then
17730 as_mkdir_p=:
17731 else
17732 test -d ./-p && rmdir ./-p
17733 as_mkdir_p=false
17736 as_executable_p="test -f"
17738 # Sed expression to map a string onto a valid CPP name.
17739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17741 # Sed expression to map a string onto a valid variable name.
17742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17745 # IFS
17746 # We need space, tab and new line, in precisely that order.
17747 as_nl='
17749 IFS=" $as_nl"
17751 # CDPATH.
17752 $as_unset CDPATH
17754 exec 6>&1
17756 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17757 # report actual input values of CONFIG_FILES etc. instead of their
17758 # values after options handling. Logging --version etc. is OK.
17759 exec 5>>config.log
17761 echo
17762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17763 ## Running $as_me. ##
17764 _ASBOX
17765 } >&5
17766 cat >&5 <<_CSEOF
17768 This file was extended by GNU Classpath $as_me 0.20, which was
17769 generated by GNU Autoconf 2.59. Invocation command line was
17771 CONFIG_FILES = $CONFIG_FILES
17772 CONFIG_HEADERS = $CONFIG_HEADERS
17773 CONFIG_LINKS = $CONFIG_LINKS
17774 CONFIG_COMMANDS = $CONFIG_COMMANDS
17775 $ $0 $@
17777 _CSEOF
17778 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17779 echo >&5
17780 _ACEOF
17782 # Files that config.status was made for.
17783 if test -n "$ac_config_files"; then
17784 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17787 if test -n "$ac_config_headers"; then
17788 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17791 if test -n "$ac_config_links"; then
17792 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17795 if test -n "$ac_config_commands"; then
17796 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17799 cat >>$CONFIG_STATUS <<\_ACEOF
17801 ac_cs_usage="\
17802 \`$as_me' instantiates files from templates according to the
17803 current configuration.
17805 Usage: $0 [OPTIONS] [FILE]...
17807 -h, --help print this help, then exit
17808 -V, --version print version number, then exit
17809 -q, --quiet do not print progress messages
17810 -d, --debug don't remove temporary files
17811 --recheck update $as_me by reconfiguring in the same conditions
17812 --file=FILE[:TEMPLATE]
17813 instantiate the configuration file FILE
17814 --header=FILE[:TEMPLATE]
17815 instantiate the configuration header FILE
17817 Configuration files:
17818 $config_files
17820 Configuration headers:
17821 $config_headers
17823 Configuration links:
17824 $config_links
17826 Configuration commands:
17827 $config_commands
17829 Report bugs to <bug-autoconf@gnu.org>."
17830 _ACEOF
17832 cat >>$CONFIG_STATUS <<_ACEOF
17833 ac_cs_version="\\
17834 GNU Classpath config.status 0.20
17835 configured by $0, generated by GNU Autoconf 2.59,
17836 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17838 Copyright (C) 2003 Free Software Foundation, Inc.
17839 This config.status script is free software; the Free Software Foundation
17840 gives unlimited permission to copy, distribute and modify it."
17841 srcdir=$srcdir
17842 INSTALL="$INSTALL"
17843 _ACEOF
17845 cat >>$CONFIG_STATUS <<\_ACEOF
17846 # If no file are specified by the user, then we need to provide default
17847 # value. By we need to know if files were specified by the user.
17848 ac_need_defaults=:
17849 while test $# != 0
17851 case $1 in
17852 --*=*)
17853 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17854 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17855 ac_shift=:
17858 ac_option=$1
17859 ac_optarg=$2
17860 ac_shift=shift
17862 *) # This is not an option, so the user has probably given explicit
17863 # arguments.
17864 ac_option=$1
17865 ac_need_defaults=false;;
17866 esac
17868 case $ac_option in
17869 # Handling of the options.
17870 _ACEOF
17871 cat >>$CONFIG_STATUS <<\_ACEOF
17872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17873 ac_cs_recheck=: ;;
17874 --version | --vers* | -V )
17875 echo "$ac_cs_version"; exit 0 ;;
17876 --he | --h)
17877 # Conflict between --help and --header
17878 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17879 Try \`$0 --help' for more information." >&5
17880 echo "$as_me: error: ambiguous option: $1
17881 Try \`$0 --help' for more information." >&2;}
17882 { (exit 1); exit 1; }; };;
17883 --help | --hel | -h )
17884 echo "$ac_cs_usage"; exit 0 ;;
17885 --debug | --d* | -d )
17886 debug=: ;;
17887 --file | --fil | --fi | --f )
17888 $ac_shift
17889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17890 ac_need_defaults=false;;
17891 --header | --heade | --head | --hea )
17892 $ac_shift
17893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17894 ac_need_defaults=false;;
17895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17897 ac_cs_silent=: ;;
17899 # This is an error.
17900 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17901 Try \`$0 --help' for more information." >&5
17902 echo "$as_me: error: unrecognized option: $1
17903 Try \`$0 --help' for more information." >&2;}
17904 { (exit 1); exit 1; }; } ;;
17906 *) ac_config_targets="$ac_config_targets $1" ;;
17908 esac
17909 shift
17910 done
17912 ac_configure_extra_args=
17914 if $ac_cs_silent; then
17915 exec 6>/dev/null
17916 ac_configure_extra_args="$ac_configure_extra_args --silent"
17919 _ACEOF
17920 cat >>$CONFIG_STATUS <<_ACEOF
17921 if \$ac_cs_recheck; then
17922 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17923 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17926 _ACEOF
17928 cat >>$CONFIG_STATUS <<_ACEOF
17930 # INIT-COMMANDS section.
17933 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17934 # variables for create stdint.h replacement
17935 PACKAGE="$PACKAGE"
17936 VERSION="$VERSION"
17937 ac_stdint_h="$ac_stdint_h"
17938 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17939 ac_cv_stdint_message="$ac_cv_stdint_message"
17940 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17941 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17942 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17943 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17944 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17945 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17946 ac_cv_char_data_model="$ac_cv_char_data_model"
17947 ac_cv_long_data_model="$ac_cv_long_data_model"
17948 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17949 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17950 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
17953 _ACEOF
17957 cat >>$CONFIG_STATUS <<\_ACEOF
17958 for ac_config_target in $ac_config_targets
17960 case "$ac_config_target" in
17961 # Handling of arguments.
17962 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17963 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17964 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
17965 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
17966 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
17967 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
17968 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
17969 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17970 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
17971 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
17972 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
17973 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
17974 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
17975 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
17976 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
17977 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
17978 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
17979 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
17980 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
17981 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
17982 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
17983 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
17984 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
17985 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
17986 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
17987 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
17988 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
17989 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17990 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
17991 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17992 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
17993 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
17994 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17995 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
17996 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17997 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17998 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
17999 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
18000 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
18001 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18002 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18003 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18004 { (exit 1); exit 1; }; };;
18005 esac
18006 done
18008 # If the user did not use the arguments to specify the items to instantiate,
18009 # then the envvar interface is used. Set only those that are not.
18010 # We use the long form for the default assignment because of an extremely
18011 # bizarre bug on SunOS 4.1.3.
18012 if $ac_need_defaults; then
18013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18015 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18019 # Have a temporary directory for convenience. Make it in the build tree
18020 # simply because there is no reason to put it here, and in addition,
18021 # creating and moving files from /tmp can sometimes cause problems.
18022 # Create a temporary directory, and hook for its removal unless debugging.
18023 $debug ||
18025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18026 trap '{ (exit 1); exit 1; }' 1 2 13 15
18029 # Create a (secure) tmp directory for tmp files.
18032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18033 test -n "$tmp" && test -d "$tmp"
18034 } ||
18036 tmp=./confstat$$-$RANDOM
18037 (umask 077 && mkdir $tmp)
18038 } ||
18040 echo "$me: cannot create a temporary directory in ." >&2
18041 { (exit 1); exit 1; }
18044 _ACEOF
18046 cat >>$CONFIG_STATUS <<_ACEOF
18049 # CONFIG_FILES section.
18052 # No need to generate the scripts if there are no CONFIG_FILES.
18053 # This happens for instance when ./config.status config.h
18054 if test -n "\$CONFIG_FILES"; then
18055 # Protect against being on the right side of a sed subst in config.status.
18056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18058 s,@SHELL@,$SHELL,;t t
18059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18065 s,@exec_prefix@,$exec_prefix,;t t
18066 s,@prefix@,$prefix,;t t
18067 s,@program_transform_name@,$program_transform_name,;t t
18068 s,@bindir@,$bindir,;t t
18069 s,@sbindir@,$sbindir,;t t
18070 s,@libexecdir@,$libexecdir,;t t
18071 s,@datadir@,$datadir,;t t
18072 s,@sysconfdir@,$sysconfdir,;t t
18073 s,@sharedstatedir@,$sharedstatedir,;t t
18074 s,@localstatedir@,$localstatedir,;t t
18075 s,@libdir@,$libdir,;t t
18076 s,@includedir@,$includedir,;t t
18077 s,@oldincludedir@,$oldincludedir,;t t
18078 s,@infodir@,$infodir,;t t
18079 s,@mandir@,$mandir,;t t
18080 s,@build_alias@,$build_alias,;t t
18081 s,@host_alias@,$host_alias,;t t
18082 s,@target_alias@,$target_alias,;t t
18083 s,@DEFS@,$DEFS,;t t
18084 s,@ECHO_C@,$ECHO_C,;t t
18085 s,@ECHO_N@,$ECHO_N,;t t
18086 s,@ECHO_T@,$ECHO_T,;t t
18087 s,@LIBS@,$LIBS,;t t
18088 s,@build@,$build,;t t
18089 s,@build_cpu@,$build_cpu,;t t
18090 s,@build_vendor@,$build_vendor,;t t
18091 s,@build_os@,$build_os,;t t
18092 s,@host@,$host,;t t
18093 s,@host_cpu@,$host_cpu,;t t
18094 s,@host_vendor@,$host_vendor,;t t
18095 s,@host_os@,$host_os,;t t
18096 s,@target@,$target,;t t
18097 s,@target_cpu@,$target_cpu,;t t
18098 s,@target_vendor@,$target_vendor,;t t
18099 s,@target_os@,$target_os,;t t
18100 s,@LIBVERSION@,$LIBVERSION,;t t
18101 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
18102 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18103 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18104 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18105 s,@CYGPATH_W@,$CYGPATH_W,;t t
18106 s,@PACKAGE@,$PACKAGE,;t t
18107 s,@VERSION@,$VERSION,;t t
18108 s,@ACLOCAL@,$ACLOCAL,;t t
18109 s,@AUTOCONF@,$AUTOCONF,;t t
18110 s,@AUTOMAKE@,$AUTOMAKE,;t t
18111 s,@AUTOHEADER@,$AUTOHEADER,;t t
18112 s,@MAKEINFO@,$MAKEINFO,;t t
18113 s,@install_sh@,$install_sh,;t t
18114 s,@STRIP@,$STRIP,;t t
18115 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18116 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18117 s,@mkdir_p@,$mkdir_p,;t t
18118 s,@AWK@,$AWK,;t t
18119 s,@SET_MAKE@,$SET_MAKE,;t t
18120 s,@am__leading_dot@,$am__leading_dot,;t t
18121 s,@AMTAR@,$AMTAR,;t t
18122 s,@am__tar@,$am__tar,;t t
18123 s,@am__untar@,$am__untar,;t t
18124 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
18125 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
18126 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
18127 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
18128 s,@default_toolkit@,$default_toolkit,;t t
18129 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
18130 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
18131 s,@CC@,$CC,;t t
18132 s,@CFLAGS@,$CFLAGS,;t t
18133 s,@LDFLAGS@,$LDFLAGS,;t t
18134 s,@CPPFLAGS@,$CPPFLAGS,;t t
18135 s,@ac_ct_CC@,$ac_ct_CC,;t t
18136 s,@EXEEXT@,$EXEEXT,;t t
18137 s,@OBJEXT@,$OBJEXT,;t t
18138 s,@DEPDIR@,$DEPDIR,;t t
18139 s,@am__include@,$am__include,;t t
18140 s,@am__quote@,$am__quote,;t t
18141 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18142 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18143 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18144 s,@CCDEPMODE@,$CCDEPMODE,;t t
18145 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18146 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18147 s,@CPP@,$CPP,;t t
18148 s,@EGREP@,$EGREP,;t t
18149 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
18150 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
18151 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
18152 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
18153 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
18154 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
18155 s,@GTK_CAIRO_ENABLED@,$GTK_CAIRO_ENABLED,;t t
18156 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
18157 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
18158 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
18159 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
18160 s,@nativelibdir@,$nativelibdir,;t t
18161 s,@glibjdir@,$glibjdir,;t t
18162 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
18163 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
18164 s,@LN_S@,$LN_S,;t t
18165 s,@RANLIB@,$RANLIB,;t t
18166 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18167 s,@LIBTOOL@,$LIBTOOL,;t t
18168 s,@CXX@,$CXX,;t t
18169 s,@CXXFLAGS@,$CXXFLAGS,;t t
18170 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18171 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18172 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18173 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18174 s,@CXXCPP@,$CXXCPP,;t t
18175 s,@LIBICONV@,$LIBICONV,;t t
18176 s,@LTLIBICONV@,$LTLIBICONV,;t t
18177 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
18178 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
18179 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
18180 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18181 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
18182 s,@XML_LIBS@,$XML_LIBS,;t t
18183 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
18184 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
18185 s,@X_CFLAGS@,$X_CFLAGS,;t t
18186 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18187 s,@X_LIBS@,$X_LIBS,;t t
18188 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18189 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18190 s,@GTK_LIBS@,$GTK_LIBS,;t t
18191 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
18192 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
18193 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
18194 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
18195 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
18196 s,@QT_LIBS@,$QT_LIBS,;t t
18197 s,@MOC@,$MOC,;t t
18198 s,@USER_JAVAH@,$USER_JAVAH,;t t
18199 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
18200 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
18201 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
18202 s,@GCJ@,$GCJ,;t t
18203 s,@JIKES@,$JIKES,;t t
18204 s,@JIKESENCODING@,$JIKESENCODING,;t t
18205 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
18206 s,@KJC@,$KJC,;t t
18207 s,@GCJX@,$GCJX,;t t
18208 s,@ECJ@,$ECJ,;t t
18209 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
18210 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
18211 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
18212 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
18213 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
18214 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
18215 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
18216 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
18217 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
18218 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
18219 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
18220 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
18221 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
18222 s,@vm_classes@,$vm_classes,;t t
18223 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18224 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18225 s,@MAINT@,$MAINT,;t t
18226 s,@LIBDEBUG@,$LIBDEBUG,;t t
18227 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
18228 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
18229 s,@REMOVE@,$REMOVE,;t t
18230 s,@MKDIR@,$MKDIR,;t t
18231 s,@CP@,$CP,;t t
18232 s,@DATE@,$DATE,;t t
18233 s,@FIND@,$FIND,;t t
18234 s,@ZIP@,$ZIP,;t t
18235 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
18236 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
18237 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
18238 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
18239 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
18240 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
18241 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
18242 s,@GJDOC@,$GJDOC,;t t
18243 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
18244 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
18245 s,@JAY@,$JAY,;t t
18246 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
18247 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
18248 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
18249 s,@LIBOBJS@,$LIBOBJS,;t t
18250 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18251 CEOF
18253 _ACEOF
18255 cat >>$CONFIG_STATUS <<\_ACEOF
18256 # Split the substitutions into bite-sized pieces for seds with
18257 # small command number limits, like on Digital OSF/1 and HP-UX.
18258 ac_max_sed_lines=48
18259 ac_sed_frag=1 # Number of current file.
18260 ac_beg=1 # First line for current file.
18261 ac_end=$ac_max_sed_lines # Line after last line for current file.
18262 ac_more_lines=:
18263 ac_sed_cmds=
18264 while $ac_more_lines; do
18265 if test $ac_beg -gt 1; then
18266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18267 else
18268 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18270 if test ! -s $tmp/subs.frag; then
18271 ac_more_lines=false
18272 else
18273 # The purpose of the label and of the branching condition is to
18274 # speed up the sed processing (if there are no `@' at all, there
18275 # is no need to browse any of the substitutions).
18276 # These are the two extra sed commands mentioned above.
18277 (echo ':t
18278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18279 if test -z "$ac_sed_cmds"; then
18280 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18281 else
18282 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18284 ac_sed_frag=`expr $ac_sed_frag + 1`
18285 ac_beg=$ac_end
18286 ac_end=`expr $ac_end + $ac_max_sed_lines`
18288 done
18289 if test -z "$ac_sed_cmds"; then
18290 ac_sed_cmds=cat
18292 fi # test -n "$CONFIG_FILES"
18294 _ACEOF
18295 cat >>$CONFIG_STATUS <<\_ACEOF
18296 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18298 case $ac_file in
18299 - | *:- | *:-:* ) # input from stdin
18300 cat >$tmp/stdin
18301 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18303 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18305 * ) ac_file_in=$ac_file.in ;;
18306 esac
18308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18311 X"$ac_file" : 'X\(//\)[^/]' \| \
18312 X"$ac_file" : 'X\(//\)$' \| \
18313 X"$ac_file" : 'X\(/\)' \| \
18314 . : '\(.\)' 2>/dev/null ||
18315 echo X"$ac_file" |
18316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18318 /^X\(\/\/\)$/{ s//\1/; q; }
18319 /^X\(\/\).*/{ s//\1/; q; }
18320 s/.*/./; q'`
18321 { if $as_mkdir_p; then
18322 mkdir -p "$ac_dir"
18323 else
18324 as_dir="$ac_dir"
18325 as_dirs=
18326 while test ! -d "$as_dir"; do
18327 as_dirs="$as_dir $as_dirs"
18328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330 X"$as_dir" : 'X\(//\)[^/]' \| \
18331 X"$as_dir" : 'X\(//\)$' \| \
18332 X"$as_dir" : 'X\(/\)' \| \
18333 . : '\(.\)' 2>/dev/null ||
18334 echo X"$as_dir" |
18335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18337 /^X\(\/\/\)$/{ s//\1/; q; }
18338 /^X\(\/\).*/{ s//\1/; q; }
18339 s/.*/./; q'`
18340 done
18341 test ! -n "$as_dirs" || mkdir $as_dirs
18342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18344 { (exit 1); exit 1; }; }; }
18346 ac_builddir=.
18348 if test "$ac_dir" != .; then
18349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18350 # A "../" for each directory in $ac_dir_suffix.
18351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18352 else
18353 ac_dir_suffix= ac_top_builddir=
18356 case $srcdir in
18357 .) # No --srcdir option. We are building in place.
18358 ac_srcdir=.
18359 if test -z "$ac_top_builddir"; then
18360 ac_top_srcdir=.
18361 else
18362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18363 fi ;;
18364 [\\/]* | ?:[\\/]* ) # Absolute path.
18365 ac_srcdir=$srcdir$ac_dir_suffix;
18366 ac_top_srcdir=$srcdir ;;
18367 *) # Relative path.
18368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18370 esac
18372 # Do not use `cd foo && pwd` to compute absolute paths, because
18373 # the directories may not exist.
18374 case `pwd` in
18375 .) ac_abs_builddir="$ac_dir";;
18377 case "$ac_dir" in
18378 .) ac_abs_builddir=`pwd`;;
18379 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18380 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18381 esac;;
18382 esac
18383 case $ac_abs_builddir in
18384 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18386 case ${ac_top_builddir}. in
18387 .) ac_abs_top_builddir=$ac_abs_builddir;;
18388 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18389 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18390 esac;;
18391 esac
18392 case $ac_abs_builddir in
18393 .) ac_abs_srcdir=$ac_srcdir;;
18395 case $ac_srcdir in
18396 .) ac_abs_srcdir=$ac_abs_builddir;;
18397 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18398 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18399 esac;;
18400 esac
18401 case $ac_abs_builddir in
18402 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18404 case $ac_top_srcdir in
18405 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18406 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18407 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18408 esac;;
18409 esac
18412 case $INSTALL in
18413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18414 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18415 esac
18417 # Let's still pretend it is `configure' which instantiates (i.e., don't
18418 # use $as_me), people would be surprised to read:
18419 # /* config.h. Generated by config.status. */
18420 if test x"$ac_file" = x-; then
18421 configure_input=
18422 else
18423 configure_input="$ac_file. "
18425 configure_input=$configure_input"Generated from `echo $ac_file_in |
18426 sed 's,.*/,,'` by configure."
18428 # First look for the input files in the build tree, otherwise in the
18429 # src tree.
18430 ac_file_inputs=`IFS=:
18431 for f in $ac_file_in; do
18432 case $f in
18433 -) echo $tmp/stdin ;;
18434 [\\/$]*)
18435 # Absolute (can't be DOS-style, as IFS=:)
18436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18437 echo "$as_me: error: cannot find input file: $f" >&2;}
18438 { (exit 1); exit 1; }; }
18439 echo "$f";;
18440 *) # Relative
18441 if test -f "$f"; then
18442 # Build tree
18443 echo "$f"
18444 elif test -f "$srcdir/$f"; then
18445 # Source tree
18446 echo "$srcdir/$f"
18447 else
18448 # /dev/null tree
18449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18450 echo "$as_me: error: cannot find input file: $f" >&2;}
18451 { (exit 1); exit 1; }; }
18452 fi;;
18453 esac
18454 done` || { (exit 1); exit 1; }
18456 if test x"$ac_file" != x-; then
18457 { echo "$as_me:$LINENO: creating $ac_file" >&5
18458 echo "$as_me: creating $ac_file" >&6;}
18459 rm -f "$ac_file"
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<_ACEOF
18463 sed "$ac_vpsub
18464 $extrasub
18465 _ACEOF
18466 cat >>$CONFIG_STATUS <<\_ACEOF
18468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18469 s,@configure_input@,$configure_input,;t t
18470 s,@srcdir@,$ac_srcdir,;t t
18471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18472 s,@top_srcdir@,$ac_top_srcdir,;t t
18473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18474 s,@builddir@,$ac_builddir,;t t
18475 s,@abs_builddir@,$ac_abs_builddir,;t t
18476 s,@top_builddir@,$ac_top_builddir,;t t
18477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18478 s,@INSTALL@,$ac_INSTALL,;t t
18479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18480 rm -f $tmp/stdin
18481 if test x"$ac_file" != x-; then
18482 mv $tmp/out $ac_file
18483 else
18484 cat $tmp/out
18485 rm -f $tmp/out
18488 done
18489 _ACEOF
18490 cat >>$CONFIG_STATUS <<\_ACEOF
18493 # CONFIG_HEADER section.
18496 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18497 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18499 # ac_d sets the value in "#define NAME VALUE" lines.
18500 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18501 ac_dB='[ ].*$,\1#\2'
18502 ac_dC=' '
18503 ac_dD=',;t'
18504 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18505 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18506 ac_uB='$,\1#\2define\3'
18507 ac_uC=' '
18508 ac_uD=',;t'
18510 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18512 case $ac_file in
18513 - | *:- | *:-:* ) # input from stdin
18514 cat >$tmp/stdin
18515 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18517 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18519 * ) ac_file_in=$ac_file.in ;;
18520 esac
18522 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18523 echo "$as_me: creating $ac_file" >&6;}
18525 # First look for the input files in the build tree, otherwise in the
18526 # src tree.
18527 ac_file_inputs=`IFS=:
18528 for f in $ac_file_in; do
18529 case $f in
18530 -) echo $tmp/stdin ;;
18531 [\\/$]*)
18532 # Absolute (can't be DOS-style, as IFS=:)
18533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18534 echo "$as_me: error: cannot find input file: $f" >&2;}
18535 { (exit 1); exit 1; }; }
18536 # Do quote $f, to prevent DOS paths from being IFS'd.
18537 echo "$f";;
18538 *) # Relative
18539 if test -f "$f"; then
18540 # Build tree
18541 echo "$f"
18542 elif test -f "$srcdir/$f"; then
18543 # Source tree
18544 echo "$srcdir/$f"
18545 else
18546 # /dev/null tree
18547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18548 echo "$as_me: error: cannot find input file: $f" >&2;}
18549 { (exit 1); exit 1; }; }
18550 fi;;
18551 esac
18552 done` || { (exit 1); exit 1; }
18553 # Remove the trailing spaces.
18554 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18556 _ACEOF
18558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18559 # `conftest.undefs', that substitutes the proper values into
18560 # config.h.in to produce config.h. The first handles `#define'
18561 # templates, and the second `#undef' templates.
18562 # And first: Protect against being on the right side of a sed subst in
18563 # config.status. Protect against being in an unquoted here document
18564 # in config.status.
18565 rm -f conftest.defines conftest.undefs
18566 # Using a here document instead of a string reduces the quoting nightmare.
18567 # Putting comments in sed scripts is not portable.
18569 # `end' is used to avoid that the second main sed command (meant for
18570 # 0-ary CPP macros) applies to n-ary macro definitions.
18571 # See the Autoconf documentation for `clear'.
18572 cat >confdef2sed.sed <<\_ACEOF
18573 s/[\\&,]/\\&/g
18574 s,[\\$`],\\&,g
18575 t clear
18576 : clear
18577 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18578 t end
18579 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18580 : end
18581 _ACEOF
18582 # If some macros were called several times there might be several times
18583 # the same #defines, which is useless. Nevertheless, we may not want to
18584 # sort them, since we want the *last* AC-DEFINE to be honored.
18585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18587 rm -f confdef2sed.sed
18589 # This sed command replaces #undef with comments. This is necessary, for
18590 # example, in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 cat >>conftest.undefs <<\_ACEOF
18593 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18594 _ACEOF
18596 # Break up conftest.defines because some shells have a limit on the size
18597 # of here documents, and old seds have small limits too (100 cmds).
18598 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18599 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18600 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18601 echo ' :' >>$CONFIG_STATUS
18602 rm -f conftest.tail
18603 while grep . conftest.defines >/dev/null
18605 # Write a limited-size here document to $tmp/defines.sed.
18606 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18607 # Speed up: don't consider the non `#define' lines.
18608 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18609 # Work around the forget-to-reset-the-flag bug.
18610 echo 't clr' >>$CONFIG_STATUS
18611 echo ': clr' >>$CONFIG_STATUS
18612 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18613 echo 'CEOF
18614 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18615 rm -f $tmp/in
18616 mv $tmp/out $tmp/in
18617 ' >>$CONFIG_STATUS
18618 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18619 rm -f conftest.defines
18620 mv conftest.tail conftest.defines
18621 done
18622 rm -f conftest.defines
18623 echo ' fi # grep' >>$CONFIG_STATUS
18624 echo >>$CONFIG_STATUS
18626 # Break up conftest.undefs because some shells have a limit on the size
18627 # of here documents, and old seds have small limits too (100 cmds).
18628 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18629 rm -f conftest.tail
18630 while grep . conftest.undefs >/dev/null
18632 # Write a limited-size here document to $tmp/undefs.sed.
18633 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18634 # Speed up: don't consider the non `#undef'
18635 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18636 # Work around the forget-to-reset-the-flag bug.
18637 echo 't clr' >>$CONFIG_STATUS
18638 echo ': clr' >>$CONFIG_STATUS
18639 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18640 echo 'CEOF
18641 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18642 rm -f $tmp/in
18643 mv $tmp/out $tmp/in
18644 ' >>$CONFIG_STATUS
18645 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18646 rm -f conftest.undefs
18647 mv conftest.tail conftest.undefs
18648 done
18649 rm -f conftest.undefs
18651 cat >>$CONFIG_STATUS <<\_ACEOF
18652 # Let's still pretend it is `configure' which instantiates (i.e., don't
18653 # use $as_me), people would be surprised to read:
18654 # /* config.h. Generated by config.status. */
18655 if test x"$ac_file" = x-; then
18656 echo "/* Generated by configure. */" >$tmp/config.h
18657 else
18658 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18660 cat $tmp/in >>$tmp/config.h
18661 rm -f $tmp/in
18662 if test x"$ac_file" != x-; then
18663 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18665 echo "$as_me: $ac_file is unchanged" >&6;}
18666 else
18667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18669 X"$ac_file" : 'X\(//\)[^/]' \| \
18670 X"$ac_file" : 'X\(//\)$' \| \
18671 X"$ac_file" : 'X\(/\)' \| \
18672 . : '\(.\)' 2>/dev/null ||
18673 echo X"$ac_file" |
18674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18676 /^X\(\/\/\)$/{ s//\1/; q; }
18677 /^X\(\/\).*/{ s//\1/; q; }
18678 s/.*/./; q'`
18679 { if $as_mkdir_p; then
18680 mkdir -p "$ac_dir"
18681 else
18682 as_dir="$ac_dir"
18683 as_dirs=
18684 while test ! -d "$as_dir"; do
18685 as_dirs="$as_dir $as_dirs"
18686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688 X"$as_dir" : 'X\(//\)[^/]' \| \
18689 X"$as_dir" : 'X\(//\)$' \| \
18690 X"$as_dir" : 'X\(/\)' \| \
18691 . : '\(.\)' 2>/dev/null ||
18692 echo X"$as_dir" |
18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18695 /^X\(\/\/\)$/{ s//\1/; q; }
18696 /^X\(\/\).*/{ s//\1/; q; }
18697 s/.*/./; q'`
18698 done
18699 test ! -n "$as_dirs" || mkdir $as_dirs
18700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18702 { (exit 1); exit 1; }; }; }
18704 rm -f $ac_file
18705 mv $tmp/config.h $ac_file
18707 else
18708 cat $tmp/config.h
18709 rm -f $tmp/config.h
18711 # Compute $ac_file's index in $config_headers.
18712 _am_stamp_count=1
18713 for _am_header in $config_headers :; do
18714 case $_am_header in
18715 $ac_file | $ac_file:* )
18716 break ;;
18718 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18719 esac
18720 done
18721 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18722 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18723 X$ac_file : 'X\(//\)[^/]' \| \
18724 X$ac_file : 'X\(//\)$' \| \
18725 X$ac_file : 'X\(/\)' \| \
18726 . : '\(.\)' 2>/dev/null ||
18727 echo X$ac_file |
18728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18730 /^X\(\/\/\)$/{ s//\1/; q; }
18731 /^X\(\/\).*/{ s//\1/; q; }
18732 s/.*/./; q'`/stamp-h$_am_stamp_count
18733 done
18734 _ACEOF
18735 cat >>$CONFIG_STATUS <<\_ACEOF
18738 # CONFIG_LINKS section.
18741 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18742 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18743 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18745 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18746 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18748 if test ! -r $srcdir/$ac_source; then
18749 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18750 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18751 { (exit 1); exit 1; }; }
18753 rm -f $ac_dest
18755 # Make relative symlinks.
18756 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18757 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18758 X"$ac_dest" : 'X\(//\)[^/]' \| \
18759 X"$ac_dest" : 'X\(//\)$' \| \
18760 X"$ac_dest" : 'X\(/\)' \| \
18761 . : '\(.\)' 2>/dev/null ||
18762 echo X"$ac_dest" |
18763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18765 /^X\(\/\/\)$/{ s//\1/; q; }
18766 /^X\(\/\).*/{ s//\1/; q; }
18767 s/.*/./; q'`
18768 { if $as_mkdir_p; then
18769 mkdir -p "$ac_dest_dir"
18770 else
18771 as_dir="$ac_dest_dir"
18772 as_dirs=
18773 while test ! -d "$as_dir"; do
18774 as_dirs="$as_dir $as_dirs"
18775 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18777 X"$as_dir" : 'X\(//\)[^/]' \| \
18778 X"$as_dir" : 'X\(//\)$' \| \
18779 X"$as_dir" : 'X\(/\)' \| \
18780 . : '\(.\)' 2>/dev/null ||
18781 echo X"$as_dir" |
18782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18784 /^X\(\/\/\)$/{ s//\1/; q; }
18785 /^X\(\/\).*/{ s//\1/; q; }
18786 s/.*/./; q'`
18787 done
18788 test ! -n "$as_dirs" || mkdir $as_dirs
18789 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18790 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18791 { (exit 1); exit 1; }; }; }
18793 ac_builddir=.
18795 if test "$ac_dest_dir" != .; then
18796 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18797 # A "../" for each directory in $ac_dir_suffix.
18798 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18799 else
18800 ac_dir_suffix= ac_top_builddir=
18803 case $srcdir in
18804 .) # No --srcdir option. We are building in place.
18805 ac_srcdir=.
18806 if test -z "$ac_top_builddir"; then
18807 ac_top_srcdir=.
18808 else
18809 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18810 fi ;;
18811 [\\/]* | ?:[\\/]* ) # Absolute path.
18812 ac_srcdir=$srcdir$ac_dir_suffix;
18813 ac_top_srcdir=$srcdir ;;
18814 *) # Relative path.
18815 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18816 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18817 esac
18819 # Do not use `cd foo && pwd` to compute absolute paths, because
18820 # the directories may not exist.
18821 case `pwd` in
18822 .) ac_abs_builddir="$ac_dest_dir";;
18824 case "$ac_dest_dir" in
18825 .) ac_abs_builddir=`pwd`;;
18826 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18827 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18828 esac;;
18829 esac
18830 case $ac_abs_builddir in
18831 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18833 case ${ac_top_builddir}. in
18834 .) ac_abs_top_builddir=$ac_abs_builddir;;
18835 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18836 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18837 esac;;
18838 esac
18839 case $ac_abs_builddir in
18840 .) ac_abs_srcdir=$ac_srcdir;;
18842 case $ac_srcdir in
18843 .) ac_abs_srcdir=$ac_abs_builddir;;
18844 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18845 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18846 esac;;
18847 esac
18848 case $ac_abs_builddir in
18849 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18851 case $ac_top_srcdir in
18852 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18853 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18854 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18855 esac;;
18856 esac
18859 case $srcdir in
18860 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18861 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18862 esac
18864 # Try a symlink, then a hard link, then a copy.
18865 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18866 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18867 cp -p $srcdir/$ac_source $ac_dest ||
18868 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18869 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18870 { (exit 1); exit 1; }; }
18871 done
18872 _ACEOF
18873 cat >>$CONFIG_STATUS <<\_ACEOF
18876 # CONFIG_COMMANDS section.
18878 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18879 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18880 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18881 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18882 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18883 X"$ac_dest" : 'X\(//\)[^/]' \| \
18884 X"$ac_dest" : 'X\(//\)$' \| \
18885 X"$ac_dest" : 'X\(/\)' \| \
18886 . : '\(.\)' 2>/dev/null ||
18887 echo X"$ac_dest" |
18888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18890 /^X\(\/\/\)$/{ s//\1/; q; }
18891 /^X\(\/\).*/{ s//\1/; q; }
18892 s/.*/./; q'`
18893 { if $as_mkdir_p; then
18894 mkdir -p "$ac_dir"
18895 else
18896 as_dir="$ac_dir"
18897 as_dirs=
18898 while test ! -d "$as_dir"; do
18899 as_dirs="$as_dir $as_dirs"
18900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18902 X"$as_dir" : 'X\(//\)[^/]' \| \
18903 X"$as_dir" : 'X\(//\)$' \| \
18904 X"$as_dir" : 'X\(/\)' \| \
18905 . : '\(.\)' 2>/dev/null ||
18906 echo X"$as_dir" |
18907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18909 /^X\(\/\/\)$/{ s//\1/; q; }
18910 /^X\(\/\).*/{ s//\1/; q; }
18911 s/.*/./; q'`
18912 done
18913 test ! -n "$as_dirs" || mkdir $as_dirs
18914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18915 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18916 { (exit 1); exit 1; }; }; }
18918 ac_builddir=.
18920 if test "$ac_dir" != .; then
18921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18922 # A "../" for each directory in $ac_dir_suffix.
18923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18924 else
18925 ac_dir_suffix= ac_top_builddir=
18928 case $srcdir in
18929 .) # No --srcdir option. We are building in place.
18930 ac_srcdir=.
18931 if test -z "$ac_top_builddir"; then
18932 ac_top_srcdir=.
18933 else
18934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18935 fi ;;
18936 [\\/]* | ?:[\\/]* ) # Absolute path.
18937 ac_srcdir=$srcdir$ac_dir_suffix;
18938 ac_top_srcdir=$srcdir ;;
18939 *) # Relative path.
18940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18942 esac
18944 # Do not use `cd foo && pwd` to compute absolute paths, because
18945 # the directories may not exist.
18946 case `pwd` in
18947 .) ac_abs_builddir="$ac_dir";;
18949 case "$ac_dir" in
18950 .) ac_abs_builddir=`pwd`;;
18951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18953 esac;;
18954 esac
18955 case $ac_abs_builddir in
18956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18958 case ${ac_top_builddir}. in
18959 .) ac_abs_top_builddir=$ac_abs_builddir;;
18960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18962 esac;;
18963 esac
18964 case $ac_abs_builddir in
18965 .) ac_abs_srcdir=$ac_srcdir;;
18967 case $ac_srcdir in
18968 .) ac_abs_srcdir=$ac_abs_builddir;;
18969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18971 esac;;
18972 esac
18973 case $ac_abs_builddir in
18974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18976 case $ac_top_srcdir in
18977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18980 esac;;
18981 esac
18984 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18985 echo "$as_me: executing $ac_dest commands" >&6;}
18986 case $ac_dest in
18987 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18988 # Strip MF so we end up with the name of the file.
18989 mf=`echo "$mf" | sed -e 's/:.*$//'`
18990 # Check whether this is an Automake generated Makefile or not.
18991 # We used to match only the files named `Makefile.in', but
18992 # some people rename them; so instead we look at the file content.
18993 # Grep'ing the first line is not enough: some people post-process
18994 # each Makefile.in and add a new line on top of each file to say so.
18995 # So let's grep whole file.
18996 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18997 dirpart=`(dirname "$mf") 2>/dev/null ||
18998 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18999 X"$mf" : 'X\(//\)[^/]' \| \
19000 X"$mf" : 'X\(//\)$' \| \
19001 X"$mf" : 'X\(/\)' \| \
19002 . : '\(.\)' 2>/dev/null ||
19003 echo X"$mf" |
19004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19006 /^X\(\/\/\)$/{ s//\1/; q; }
19007 /^X\(\/\).*/{ s//\1/; q; }
19008 s/.*/./; q'`
19009 else
19010 continue
19012 # Extract the definition of DEPDIR, am__include, and am__quote
19013 # from the Makefile without running `make'.
19014 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19015 test -z "$DEPDIR" && continue
19016 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19017 test -z "am__include" && continue
19018 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19019 # When using ansi2knr, U may be empty or an underscore; expand it
19020 U=`sed -n 's/^U = //p' < "$mf"`
19021 # Find all dependency output files, they are included files with
19022 # $(DEPDIR) in their names. We invoke sed twice because it is the
19023 # simplest approach to changing $(DEPDIR) to its actual value in the
19024 # expansion.
19025 for file in `sed -n "
19026 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19028 # Make sure the directory exists.
19029 test -f "$dirpart/$file" && continue
19030 fdir=`(dirname "$file") 2>/dev/null ||
19031 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19032 X"$file" : 'X\(//\)[^/]' \| \
19033 X"$file" : 'X\(//\)$' \| \
19034 X"$file" : 'X\(/\)' \| \
19035 . : '\(.\)' 2>/dev/null ||
19036 echo X"$file" |
19037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19039 /^X\(\/\/\)$/{ s//\1/; q; }
19040 /^X\(\/\).*/{ s//\1/; q; }
19041 s/.*/./; q'`
19042 { if $as_mkdir_p; then
19043 mkdir -p $dirpart/$fdir
19044 else
19045 as_dir=$dirpart/$fdir
19046 as_dirs=
19047 while test ! -d "$as_dir"; do
19048 as_dirs="$as_dir $as_dirs"
19049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$as_dir" : 'X\(//\)[^/]' \| \
19052 X"$as_dir" : 'X\(//\)$' \| \
19053 X"$as_dir" : 'X\(/\)' \| \
19054 . : '\(.\)' 2>/dev/null ||
19055 echo X"$as_dir" |
19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19058 /^X\(\/\/\)$/{ s//\1/; q; }
19059 /^X\(\/\).*/{ s//\1/; q; }
19060 s/.*/./; q'`
19061 done
19062 test ! -n "$as_dirs" || mkdir $as_dirs
19063 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19064 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19065 { (exit 1); exit 1; }; }; }
19067 # echo "creating $dirpart/$file"
19068 echo '# dummy' > "$dirpart/$file"
19069 done
19070 done
19072 $ac_stdint_h )
19073 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
19074 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19075 ac_stdint=$tmp/_stdint.h
19077 echo "#ifndef" $_ac_stdint_h >$ac_stdint
19078 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19079 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19080 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19081 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19082 if test "_$ac_cv_header_stdint_t" != "_" ; then
19083 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19084 echo "#include <stdint.h>" >>$ac_stdint
19085 echo "#endif" >>$ac_stdint
19086 echo "#endif" >>$ac_stdint
19087 else
19089 cat >>$ac_stdint <<STDINT_EOF
19091 /* ................... shortcircuit part ........................... */
19093 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19094 #include <stdint.h>
19095 #else
19096 #include <stddef.h>
19098 /* .................... configured part ............................ */
19100 STDINT_EOF
19102 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19103 if test "_$ac_cv_header_stdint_x" != "_" ; then
19104 ac_header="$ac_cv_header_stdint_x"
19105 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19106 else
19107 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19110 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19111 if test "_$ac_cv_header_stdint_o" != "_" ; then
19112 ac_header="$ac_cv_header_stdint_o"
19113 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19114 else
19115 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19118 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19119 if test "_$ac_cv_header_stdint_u" != "_" ; then
19120 ac_header="$ac_cv_header_stdint_u"
19121 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19122 else
19123 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19126 echo "" >>$ac_stdint
19128 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19129 echo "#include <$ac_header>" >>$ac_stdint
19130 echo "" >>$ac_stdint
19131 fi fi
19133 echo "/* which 64bit typedef has been found */" >>$ac_stdint
19134 if test "$ac_cv_type_uint64_t" = "yes" ; then
19135 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
19136 else
19137 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19139 if test "$ac_cv_type_u_int64_t" = "yes" ; then
19140 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
19141 else
19142 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19144 echo "" >>$ac_stdint
19146 echo "/* which type model has been detected */" >>$ac_stdint
19147 if test "_$ac_cv_char_data_model" != "_" ; then
19148 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19149 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19150 else
19151 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19152 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19154 echo "" >>$ac_stdint
19156 echo "/* whether int_least types were detected */" >>$ac_stdint
19157 if test "$ac_cv_type_int_least32_t" = "yes"; then
19158 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
19159 else
19160 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19162 echo "/* whether int_fast types were detected */" >>$ac_stdint
19163 if test "$ac_cv_type_int_fast32_t" = "yes"; then
19164 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19165 else
19166 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19168 echo "/* whether intmax_t type was detected */" >>$ac_stdint
19169 if test "$ac_cv_type_intmax_t" = "yes"; then
19170 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19171 else
19172 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19174 echo "" >>$ac_stdint
19176 cat >>$ac_stdint <<STDINT_EOF
19177 /* .................... detections part ............................ */
19179 /* whether we need to define bitspecific types from compiler base types */
19180 #ifndef _STDINT_HEADER_INTPTR
19181 #ifndef _STDINT_HEADER_UINT32
19182 #ifndef _STDINT_HEADER_U_INT32
19183 #define _STDINT_NEED_INT_MODEL_T
19184 #else
19185 #define _STDINT_HAVE_U_INT_TYPES
19186 #endif
19187 #endif
19188 #endif
19190 #ifdef _STDINT_HAVE_U_INT_TYPES
19191 #undef _STDINT_NEED_INT_MODEL_T
19192 #endif
19194 #ifdef _STDINT_CHAR_MODEL
19195 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19196 #ifndef _STDINT_BYTE_MODEL
19197 #define _STDINT_BYTE_MODEL 12
19198 #endif
19199 #endif
19200 #endif
19202 #ifndef _STDINT_HAVE_INT_LEAST32_T
19203 #define _STDINT_NEED_INT_LEAST_T
19204 #endif
19206 #ifndef _STDINT_HAVE_INT_FAST32_T
19207 #define _STDINT_NEED_INT_FAST_T
19208 #endif
19210 #ifndef _STDINT_HEADER_INTPTR
19211 #define _STDINT_NEED_INTPTR_T
19212 #ifndef _STDINT_HAVE_INTMAX_T
19213 #define _STDINT_NEED_INTMAX_T
19214 #endif
19215 #endif
19218 /* .................... definition part ............................ */
19220 /* some system headers have good uint64_t */
19221 #ifndef _HAVE_UINT64_T
19222 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
19223 #define _HAVE_UINT64_T
19224 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19225 #define _HAVE_UINT64_T
19226 typedef u_int64_t uint64_t;
19227 #endif
19228 #endif
19230 #ifndef _HAVE_UINT64_T
19231 /* .. here are some common heuristics using compiler runtime specifics */
19232 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19233 #define _HAVE_UINT64_T
19234 #define _HAVE_LONGLONG_UINT64_T
19235 typedef long long int64_t;
19236 typedef unsigned long long uint64_t;
19238 #elif !defined __STRICT_ANSI__
19239 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19240 #define _HAVE_UINT64_T
19241 typedef __int64 int64_t;
19242 typedef unsigned __int64 uint64_t;
19244 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19245 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
19246 #if !defined _NO_LONGLONG
19247 #define _HAVE_UINT64_T
19248 #define _HAVE_LONGLONG_UINT64_T
19249 typedef long long int64_t;
19250 typedef unsigned long long uint64_t;
19251 #endif
19253 #elif defined __alpha || (defined __mips && defined _ABIN32)
19254 #if !defined _NO_LONGLONG
19255 typedef long int64_t;
19256 typedef unsigned long uint64_t;
19257 #endif
19258 /* compiler/cpu type to define int64_t */
19259 #endif
19260 #endif
19261 #endif
19263 #if defined _STDINT_HAVE_U_INT_TYPES
19264 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19265 typedef u_int8_t uint8_t;
19266 typedef u_int16_t uint16_t;
19267 typedef u_int32_t uint32_t;
19269 /* glibc compatibility */
19270 #ifndef __int8_t_defined
19271 #define __int8_t_defined
19272 #endif
19273 #endif
19275 #ifdef _STDINT_NEED_INT_MODEL_T
19276 /* we must guess all the basic types. Apart from byte-adressable system, */
19277 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19278 /* (btw, those nibble-addressable systems are way off, or so we assume) */
19281 #if defined _STDINT_BYTE_MODEL
19282 #if _STDINT_LONG_MODEL+0 == 242
19283 /* 2:4:2 = IP16 = a normal 16-bit system */
19284 typedef unsigned char uint8_t;
19285 typedef unsigned short uint16_t;
19286 typedef unsigned long uint32_t;
19287 #ifndef __int8_t_defined
19288 #define __int8_t_defined
19289 typedef char int8_t;
19290 typedef short int16_t;
19291 typedef long int32_t;
19292 #endif
19293 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19294 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
19295 /* 4:4:4 = ILP32 = a normal 32-bit system */
19296 typedef unsigned char uint8_t;
19297 typedef unsigned short uint16_t;
19298 typedef unsigned int uint32_t;
19299 #ifndef __int8_t_defined
19300 #define __int8_t_defined
19301 typedef char int8_t;
19302 typedef short int16_t;
19303 typedef int int32_t;
19304 #endif
19305 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19306 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
19307 /* 4:8:8 = LP64 = a normal 64-bit system */
19308 typedef unsigned char uint8_t;
19309 typedef unsigned short uint16_t;
19310 typedef unsigned int uint32_t;
19311 #ifndef __int8_t_defined
19312 #define __int8_t_defined
19313 typedef char int8_t;
19314 typedef short int16_t;
19315 typedef int int32_t;
19316 #endif
19317 /* this system has a "long" of 64bit */
19318 #ifndef _HAVE_UINT64_T
19319 #define _HAVE_UINT64_T
19320 typedef unsigned long uint64_t;
19321 typedef long int64_t;
19322 #endif
19323 #elif _STDINT_LONG_MODEL+0 == 448
19324 /* LLP64 a 64-bit system derived from a 32-bit system */
19325 typedef unsigned char uint8_t;
19326 typedef unsigned short uint16_t;
19327 typedef unsigned int uint32_t;
19328 #ifndef __int8_t_defined
19329 #define __int8_t_defined
19330 typedef char int8_t;
19331 typedef short int16_t;
19332 typedef int int32_t;
19333 #endif
19334 /* assuming the system has a "long long" */
19335 #ifndef _HAVE_UINT64_T
19336 #define _HAVE_UINT64_T
19337 #define _HAVE_LONGLONG_UINT64_T
19338 typedef unsigned long long uint64_t;
19339 typedef long long int64_t;
19340 #endif
19341 #else
19342 #define _STDINT_NO_INT32_T
19343 #endif
19344 #else
19345 #define _STDINT_NO_INT8_T
19346 #define _STDINT_NO_INT32_T
19347 #endif
19348 #endif
19351 * quote from SunOS-5.8 sys/inttypes.h:
19352 * Use at your own risk. As of February 1996, the committee is squarely
19353 * behind the fixed sized types; the "least" and "fast" types are still being
19354 * discussed. The probability that the "fast" types may be removed before
19355 * the standard is finalized is high enough that they are not currently
19356 * implemented.
19359 #if defined _STDINT_NEED_INT_LEAST_T
19360 typedef int8_t int_least8_t;
19361 typedef int16_t int_least16_t;
19362 typedef int32_t int_least32_t;
19363 #ifdef _HAVE_UINT64_T
19364 typedef int64_t int_least64_t;
19365 #endif
19367 typedef uint8_t uint_least8_t;
19368 typedef uint16_t uint_least16_t;
19369 typedef uint32_t uint_least32_t;
19370 #ifdef _HAVE_UINT64_T
19371 typedef uint64_t uint_least64_t;
19372 #endif
19373 /* least types */
19374 #endif
19376 #if defined _STDINT_NEED_INT_FAST_T
19377 typedef int8_t int_fast8_t;
19378 typedef int int_fast16_t;
19379 typedef int32_t int_fast32_t;
19380 #ifdef _HAVE_UINT64_T
19381 typedef int64_t int_fast64_t;
19382 #endif
19384 typedef uint8_t uint_fast8_t;
19385 typedef unsigned uint_fast16_t;
19386 typedef uint32_t uint_fast32_t;
19387 #ifdef _HAVE_UINT64_T
19388 typedef uint64_t uint_fast64_t;
19389 #endif
19390 /* fast types */
19391 #endif
19393 #ifdef _STDINT_NEED_INTMAX_T
19394 #ifdef _HAVE_UINT64_T
19395 typedef int64_t intmax_t;
19396 typedef uint64_t uintmax_t;
19397 #else
19398 typedef long intmax_t;
19399 typedef unsigned long uintmax_t;
19400 #endif
19401 #endif
19403 #ifdef _STDINT_NEED_INTPTR_T
19404 #ifndef __intptr_t_defined
19405 #define __intptr_t_defined
19406 /* we encourage using "long" to store pointer values, never use "int" ! */
19407 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19408 typedef unsigned int uintptr_t;
19409 typedef int intptr_t;
19410 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19411 typedef unsigned long uintptr_t;
19412 typedef long intptr_t;
19413 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19414 typedef uint64_t uintptr_t;
19415 typedef int64_t intptr_t;
19416 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19417 typedef unsigned long uintptr_t;
19418 typedef long intptr_t;
19419 #endif
19420 #endif
19421 #endif
19423 /* The ISO C99 standard specifies that in C++ implementations these
19424 should only be defined if explicitly requested. */
19425 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19426 #ifndef UINT32_C
19428 /* Signed. */
19429 # define INT8_C(c) c
19430 # define INT16_C(c) c
19431 # define INT32_C(c) c
19432 # ifdef _HAVE_LONGLONG_UINT64_T
19433 # define INT64_C(c) c ## L
19434 # else
19435 # define INT64_C(c) c ## LL
19436 # endif
19438 /* Unsigned. */
19439 # define UINT8_C(c) c ## U
19440 # define UINT16_C(c) c ## U
19441 # define UINT32_C(c) c ## U
19442 # ifdef _HAVE_LONGLONG_UINT64_T
19443 # define UINT64_C(c) c ## UL
19444 # else
19445 # define UINT64_C(c) c ## ULL
19446 # endif
19448 /* Maximal type. */
19449 # ifdef _HAVE_LONGLONG_UINT64_T
19450 # define INTMAX_C(c) c ## L
19451 # define UINTMAX_C(c) c ## UL
19452 # else
19453 # define INTMAX_C(c) c ## LL
19454 # define UINTMAX_C(c) c ## ULL
19455 # endif
19457 /* literalnumbers */
19458 #endif
19459 #endif
19461 /* These limits are merily those of a two complement byte-oriented system */
19463 /* Minimum of signed integral types. */
19464 # define INT8_MIN (-128)
19465 # define INT16_MIN (-32767-1)
19466 # define INT32_MIN (-2147483647-1)
19467 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
19468 /* Maximum of signed integral types. */
19469 # define INT8_MAX (127)
19470 # define INT16_MAX (32767)
19471 # define INT32_MAX (2147483647)
19472 # define INT64_MAX (__INT64_C(9223372036854775807))
19474 /* Maximum of unsigned integral types. */
19475 # define UINT8_MAX (255)
19476 # define UINT16_MAX (65535)
19477 # define UINT32_MAX (4294967295U)
19478 # define UINT64_MAX (__UINT64_C(18446744073709551615))
19480 /* Minimum of signed integral types having a minimum size. */
19481 # define INT_LEAST8_MIN INT8_MIN
19482 # define INT_LEAST16_MIN INT16_MIN
19483 # define INT_LEAST32_MIN INT32_MIN
19484 # define INT_LEAST64_MIN INT64_MIN
19485 /* Maximum of signed integral types having a minimum size. */
19486 # define INT_LEAST8_MAX INT8_MAX
19487 # define INT_LEAST16_MAX INT16_MAX
19488 # define INT_LEAST32_MAX INT32_MAX
19489 # define INT_LEAST64_MAX INT64_MAX
19491 /* Maximum of unsigned integral types having a minimum size. */
19492 # define UINT_LEAST8_MAX UINT8_MAX
19493 # define UINT_LEAST16_MAX UINT16_MAX
19494 # define UINT_LEAST32_MAX UINT32_MAX
19495 # define UINT_LEAST64_MAX UINT64_MAX
19497 /* shortcircuit*/
19498 #endif
19499 /* once */
19500 #endif
19501 #endif
19502 STDINT_EOF
19504 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19505 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
19506 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19507 else
19508 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
19509 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19510 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19511 X"$ac_stdint_h" : 'X\(//\)$' \| \
19512 X"$ac_stdint_h" : 'X\(/\)' \| \
19513 . : '\(.\)' 2>/dev/null ||
19514 echo X"$ac_stdint_h" |
19515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19517 /^X\(\/\/\)$/{ s//\1/; q; }
19518 /^X\(\/\).*/{ s//\1/; q; }
19519 s/.*/./; q'`
19520 { if $as_mkdir_p; then
19521 mkdir -p "$ac_dir"
19522 else
19523 as_dir="$ac_dir"
19524 as_dirs=
19525 while test ! -d "$as_dir"; do
19526 as_dirs="$as_dir $as_dirs"
19527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19529 X"$as_dir" : 'X\(//\)[^/]' \| \
19530 X"$as_dir" : 'X\(//\)$' \| \
19531 X"$as_dir" : 'X\(/\)' \| \
19532 . : '\(.\)' 2>/dev/null ||
19533 echo X"$as_dir" |
19534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19536 /^X\(\/\/\)$/{ s//\1/; q; }
19537 /^X\(\/\).*/{ s//\1/; q; }
19538 s/.*/./; q'`
19539 done
19540 test ! -n "$as_dirs" || mkdir $as_dirs
19541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19543 { (exit 1); exit 1; }; }; }
19545 rm -f $ac_stdint_h
19546 mv $ac_stdint $ac_stdint_h
19549 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
19550 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
19551 esac
19552 done
19553 _ACEOF
19555 cat >>$CONFIG_STATUS <<\_ACEOF
19557 { (exit 0); exit 0; }
19558 _ACEOF
19559 chmod +x $CONFIG_STATUS
19560 ac_clean_files=$ac_clean_files_save
19563 # configure is writing to config.log, and then calls config.status.
19564 # config.status does its own redirection, appending to config.log.
19565 # Unfortunately, on DOS this fails, as config.log is still kept open
19566 # by configure, so config.status won't be able to write to it; its
19567 # output is simply discarded. So we exec the FD to /dev/null,
19568 # effectively closing config.log, so it can be properly (re)opened and
19569 # appended to by config.status. When coming back to configure, we
19570 # need to make the FD available again.
19571 if test "$no_create" != yes; then
19572 ac_cs_success=:
19573 ac_config_status_args=
19574 test "$silent" = yes &&
19575 ac_config_status_args="$ac_config_status_args --quiet"
19576 exec 5>/dev/null
19577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19578 exec 5>>config.log
19579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19580 # would make configure fail if this is the last instruction.
19581 $ac_cs_success || { (exit 1); exit 1; }