re PR libgcj/24051 (libjava failed to configure)
[gcc.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.18.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
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 ## --------------------- ##
13
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
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
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
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
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
45 do
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
50 fi
51 done
52
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
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
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'`
78
79
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
87
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=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
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
113 do
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
118
119 ;;
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
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
139 /*)
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
155 ;;
156 esac
157
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 '
168 N
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; }; }
179
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
186 }
187
188
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
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
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'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
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
225 fi
226
227 as_executable_p="test -f"
228
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'"
231
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'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
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`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
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}
263
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}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.18'
273 PACKAGE_STRING='GNU Classpath 0.18'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
275
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"
314
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 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 CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE LN_S 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 RANLIB ac_ct_RANLIB LIBTOOL CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP 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 QT_CFLAGS QT_LIBS MOC CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING 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=''
317
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
337
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'
355
356 ac_prev=
357 for ac_option
358 do
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
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
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 ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
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 ;;
397
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" ;;
406
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'" ;;
419
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 ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
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 ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
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 ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
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 ;;
468
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 ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
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 ;;
494
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 ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
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 ;;
515
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 ;;
522
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 ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
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 ;;
549
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 ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
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 ;;
577
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 ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
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'" ;;
601
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" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
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 ;;
621
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 ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
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 ;;
643
644 *)
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}
650 ;;
651
652 esac
653 done
654
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; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
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
671
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
675 do
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
683
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
690
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
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
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=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
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; }; }
738 fi
739 fi
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
788
789 #
790 # Report the --help message.
791 #
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.18 to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
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.
802
803 Defaults for the options are specified in brackets.
804
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 \`..']
815
816 _ACEOF
817
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]
824
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'.
829
830 For better control, use the options below.
831
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
846
847 cat <<\_ACEOF
848
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
853
854 X features:
855 --x-includes=DIR X include files are in DIR
856 --x-libraries=DIR X library files are in DIR
857
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
863 fi
864
865 if test -n "$ac_init_help"; then
866 case $ac_init_help in
867 short | recursive ) echo "Configuration of GNU Classpath 0.18:";;
868 esac
869 cat <<\_ACEOF
870
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 --disable-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-gtk-peer compile GTK native peers (disabled by --disable-jni)
883 default=yes
884
885 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
886 default=no
887 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
888 default=no
889 --enable-regen-headers automatically regenerate JNI headers default=no
890 --enable-static=PKGS build static libraries default=no
891 --enable-shared=PKGS build shared libraries default=yes
892 --enable-fast-install=PKGS optimize for fast installation default=yes
893 --disable-dependency-tracking speeds up one-time build
894 --enable-dependency-tracking do not reject slow dependency extractors
895 --disable-libtool-lock avoid locking (might break parallel builds)
896 --disable-rpath do not hardcode runtime library paths
897 --enable-maintainer-mode enable make rules and dependencies not useful
898 (and sometimes confusing) to the casual installer
899 --enable-debug enable runtime debugging code
900 --enable-load-library enable to use JNI native methods default=yes
901 --enable-java-lang-system-explicit-initialization
902 will the VM explicitly invoke java.lang.System's
903 static initialization methods default=no
904 --enable-examples enable build of the examples default=yes
905 --enable-portable-native-sync
906 synchronize VM threads portably
907
908 Optional Packages:
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-gnu-ld assume the C compiler uses GNU ld default=no
912 --with-pic try to use only PIC/non-PIC objects default=use both
913 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
914 --without-libiconv-prefix don't search for libiconv in includedir and libdir
915 --with-x use the X Window System
916 --with-javah specify path or name of a javah-like program
917 --with-gcj bytecode compilation with gcj
918 --with-jikes bytecode compilation with jikes
919 --with-kjc bytecode compilation with kjc
920 --with-gcjx bytecode compilation with gcjx
921 --with-ecj bytecode compilation with ecj
922 --with-classpath specify path to a classes.zip like file
923 --with-vm-classes specify path to VM override source files
924 --with-glibj define what to install (zip|flat|both|none|build)
925 [default=zip]
926 --with-gjdoc generate documentation using gjdoc (default is NO)
927 --with-jay Regenerate the parsers with jay must be given the
928 path to the jay executable
929
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CPP C preprocessor
938 CXX C++ compiler command
939 CXXFLAGS C++ compiler flags
940 CXXCPP C++ preprocessor
941
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
944
945 Report bugs to <classpath@gnu.org>.
946 _ACEOF
947 fi
948
949 if test "$ac_init_help" = "recursive"; then
950 # If there are subdirs, report their specific --help.
951 ac_popdir=`pwd`
952 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
953 test -d $ac_dir || continue
954 ac_builddir=.
955
956 if test "$ac_dir" != .; then
957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
958 # A "../" for each directory in $ac_dir_suffix.
959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 else
961 ac_dir_suffix= ac_top_builddir=
962 fi
963
964 case $srcdir in
965 .) # No --srcdir option. We are building in place.
966 ac_srcdir=.
967 if test -z "$ac_top_builddir"; then
968 ac_top_srcdir=.
969 else
970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971 fi ;;
972 [\\/]* | ?:[\\/]* ) # Absolute path.
973 ac_srcdir=$srcdir$ac_dir_suffix;
974 ac_top_srcdir=$srcdir ;;
975 *) # Relative path.
976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
978 esac
979
980 # Do not use `cd foo && pwd` to compute absolute paths, because
981 # the directories may not exist.
982 case `pwd` in
983 .) ac_abs_builddir="$ac_dir";;
984 *)
985 case "$ac_dir" in
986 .) ac_abs_builddir=`pwd`;;
987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
989 esac;;
990 esac
991 case $ac_abs_builddir in
992 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 *)
994 case ${ac_top_builddir}. in
995 .) ac_abs_top_builddir=$ac_abs_builddir;;
996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998 esac;;
999 esac
1000 case $ac_abs_builddir in
1001 .) ac_abs_srcdir=$ac_srcdir;;
1002 *)
1003 case $ac_srcdir in
1004 .) ac_abs_srcdir=$ac_abs_builddir;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007 esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 *)
1012 case $ac_top_srcdir in
1013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1016 esac;;
1017 esac
1018
1019 cd $ac_dir
1020 # Check for guested configure; otherwise get Cygnus style configure.
1021 if test -f $ac_srcdir/configure.gnu; then
1022 echo
1023 $SHELL $ac_srcdir/configure.gnu --help=recursive
1024 elif test -f $ac_srcdir/configure; then
1025 echo
1026 $SHELL $ac_srcdir/configure --help=recursive
1027 elif test -f $ac_srcdir/configure.ac ||
1028 test -f $ac_srcdir/configure.in; then
1029 echo
1030 $ac_configure --help
1031 else
1032 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 fi
1034 cd $ac_popdir
1035 done
1036 fi
1037
1038 test -n "$ac_init_help" && exit 0
1039 if $ac_init_version; then
1040 cat <<\_ACEOF
1041 GNU Classpath configure 0.18
1042 generated by GNU Autoconf 2.59
1043
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048 exit 0
1049 fi
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1054
1055 It was created by GNU Classpath $as_me 0.18, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1057
1058 $ $0 $@
1059
1060 _ACEOF
1061 {
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1066
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083
1084 _ASUNAME
1085
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1088 do
1089 IFS=$as_save_IFS
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1092 done
1093
1094 } >&5
1095
1096 cat >&5 <<_ACEOF
1097
1098
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1102
1103 _ACEOF
1104
1105
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1117 do
1118 for ac_arg
1119 do
1120 case $ac_arg in
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 continue ;;
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127 esac
1128 case $ac_pass in
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 2)
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1134 else
1135 case $ac_arg in
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142 esac
1143 ;;
1144 -* ) ac_must_keep_next=true ;;
1145 esac
1146 fi
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1149 ac_sep=" "
1150 ;;
1151 esac
1152 done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1164 {
1165 echo
1166
1167 cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172 echo
1173 # The following way of writing the cache mishandles newlines in values,
1174 {
1175 (set) 2>&1 |
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177 *ac_space=\ *)
1178 sed -n \
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 ;;
1182 *)
1183 sed -n \
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 ;;
1186 esac;
1187 }
1188 echo
1189
1190 cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195 echo
1196 for ac_var in $ac_subst_vars
1197 do
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1200 done | sort
1201 echo
1202
1203 if test -n "$ac_subst_files"; then
1204 cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209 echo
1210 for ac_var in $ac_subst_files
1211 do
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1214 done | sort
1215 echo
1216 fi
1217
1218 if test -s confdefs.h; then
1219 cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224 echo
1225 sed "/^$/d" confdefs.h | sort
1226 echo
1227 fi
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1231 } >&5
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 exit $exit_status
1235 ' 0
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1240
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1245
1246 # Predefined preprocessor variables.
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1271
1272
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 else
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280 fi
1281 fi
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1287 . "$ac_site_file"
1288 fi
1289 done
1290
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297 case $cache_file in
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1300 esac
1301 fi
1302 else
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305 >$cache_file
1306 fi
1307
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1318 set,)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,set)
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1326 ,);;
1327 *)
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1336 fi;;
1337 esac
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1340 case $ac_new_val in
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1344 esac
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 esac
1349 fi
1350 done
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1357 fi
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 ac_aux_dir=
1394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1395 if test -f $ac_dir/install-sh; then
1396 ac_aux_dir=$ac_dir
1397 ac_install_sh="$ac_aux_dir/install-sh -c"
1398 break
1399 elif test -f $ac_dir/install.sh; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/install.sh -c"
1402 break
1403 elif test -f $ac_dir/shtool; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 break
1407 fi
1408 done
1409 if test -z "$ac_aux_dir"; then
1410 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1412 { (exit 1); exit 1; }; }
1413 fi
1414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422 { (exit 1); exit 1; }; }
1423
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429 ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431 ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435 { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1444 build=$ac_cv_build
1445 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457 ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1466 host=$ac_cv_host
1467 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 echo "$as_me:$LINENO: checking target system type" >&5
1473 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1474 if test "${ac_cv_target+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 ac_cv_target_alias=$target_alias
1478 test "x$ac_cv_target_alias" = "x" &&
1479 ac_cv_target_alias=$ac_cv_host_alias
1480 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1484
1485 fi
1486 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1487 echo "${ECHO_T}$ac_cv_target" >&6
1488 target=$ac_cv_target
1489 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494 # The aliases save the names the user supplied, while $host etc.
1495 # will get canonicalized.
1496 test -n "$target_alias" &&
1497 test "$program_prefix$program_suffix$program_transform_name" = \
1498 NONENONEs,x,x, &&
1499 program_prefix=${target_alias}-
1500
1501 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1502
1503 LIBVERSION="0:0:0"
1504
1505 case "$host_os" in
1506 darwin*)
1507 cp_module=""
1508 ;;
1509 *)
1510 cp_module="-module"
1511 ;;
1512 esac
1513
1514 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1515
1516
1517
1518 am__api_version="1.9"
1519 # Find a good install program. We prefer a C program (faster),
1520 # so one script is as good as another. But avoid the broken or
1521 # incompatible versions:
1522 # SysV /etc/install, /usr/sbin/install
1523 # SunOS /usr/etc/install
1524 # IRIX /sbin/install
1525 # AIX /bin/install
1526 # AmigaOS /C/install, which installs bootblocks on floppy discs
1527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1530 # OS/2's system install, which has a completely different semantic
1531 # ./install, which can be erroneously created by make from ./install.sh.
1532 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1533 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1534 if test -z "$INSTALL"; then
1535 if test "${ac_cv_path_install+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 # Account for people who put trailing slashes in PATH elements.
1544 case $as_dir/ in
1545 ./ | .// | /cC/* | \
1546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1547 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1548 /usr/ucb/* ) ;;
1549 *)
1550 # OSF1 and SCO ODT 3.0 have their own names for install.
1551 # Don't use installbsd from OSF since it installs stuff as root
1552 # by default.
1553 for ac_prog in ginstall scoinst install; do
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1556 if test $ac_prog = install &&
1557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558 # AIX install. It has an incompatible calling convention.
1559 :
1560 elif test $ac_prog = install &&
1561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562 # program-specific install script used by HP pwplus--don't use.
1563 :
1564 else
1565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1566 break 3
1567 fi
1568 fi
1569 done
1570 done
1571 ;;
1572 esac
1573 done
1574
1575
1576 fi
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL=$ac_cv_path_install
1579 else
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL=$ac_install_sh
1585 fi
1586 fi
1587 echo "$as_me:$LINENO: result: $INSTALL" >&5
1588 echo "${ECHO_T}$INSTALL" >&6
1589
1590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1591 # It thinks the first close brace ends the variable substitution.
1592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593
1594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1595
1596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1597
1598 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1599 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1600 # Just in case
1601 sleep 1
1602 echo timestamp > conftest.file
1603 # Do `set' in a subshell so we don't clobber the current shell's
1604 # arguments. Must try -L first in case configure is actually a
1605 # symlink; some systems play weird games with the mod time of symlinks
1606 # (eg FreeBSD returns the mod time of the symlink's containing
1607 # directory).
1608 if (
1609 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1610 if test "$*" = "X"; then
1611 # -L didn't work.
1612 set X `ls -t $srcdir/configure conftest.file`
1613 fi
1614 rm -f conftest.file
1615 if test "$*" != "X $srcdir/configure conftest.file" \
1616 && test "$*" != "X conftest.file $srcdir/configure"; then
1617
1618 # If neither matched, then we have a broken ls. This can happen
1619 # if, for instance, CONFIG_SHELL is bash and it inherits a
1620 # broken ls alias from the environment. This has actually
1621 # happened. Such a system could not be considered "sane".
1622 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1623 alias in your environment" >&5
1624 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1625 alias in your environment" >&2;}
1626 { (exit 1); exit 1; }; }
1627 fi
1628
1629 test "$2" = conftest.file
1630 )
1631 then
1632 # Ok.
1633 :
1634 else
1635 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1636 Check your system clock" >&5
1637 echo "$as_me: error: newly created file is older than distributed files!
1638 Check your system clock" >&2;}
1639 { (exit 1); exit 1; }; }
1640 fi
1641 echo "$as_me:$LINENO: result: yes" >&5
1642 echo "${ECHO_T}yes" >&6
1643 test "$program_prefix" != NONE &&
1644 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1645 # Use a double $ so make ignores it.
1646 test "$program_suffix" != NONE &&
1647 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1648 # Double any \ or $. echo might interpret backslashes.
1649 # By default was `s,x,x', remove it if useless.
1650 cat <<\_ACEOF >conftest.sed
1651 s/[\\$]/&&/g;s/;s,x,x,$//
1652 _ACEOF
1653 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1654 rm conftest.sed
1655
1656 # expand $ac_aux_dir to an absolute path
1657 am_aux_dir=`cd $ac_aux_dir && pwd`
1658
1659 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1660 # Use eval to expand $SHELL
1661 if eval "$MISSING --run true"; then
1662 am_missing_run="$MISSING --run "
1663 else
1664 am_missing_run=
1665 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1666 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1667 fi
1668
1669 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1670 # We used to keeping the `.' as first argument, in order to
1671 # allow $(mkdir_p) to be used without argument. As in
1672 # $(mkdir_p) $(somedir)
1673 # where $(somedir) is conditionally defined. However this is wrong
1674 # for two reasons:
1675 # 1. if the package is installed by a user who cannot write `.'
1676 # make install will fail,
1677 # 2. the above comment should most certainly read
1678 # $(mkdir_p) $(DESTDIR)$(somedir)
1679 # so it does not work when $(somedir) is undefined and
1680 # $(DESTDIR) is not.
1681 # To support the latter case, we have to write
1682 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1683 # so the `.' trick is pointless.
1684 mkdir_p='mkdir -p --'
1685 else
1686 # On NextStep and OpenStep, the `mkdir' command does not
1687 # recognize any option. It will interpret all options as
1688 # directories to create, and then abort because `.' already
1689 # exists.
1690 for d in ./-p ./--version;
1691 do
1692 test -d $d && rmdir $d
1693 done
1694 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1695 if test -f "$ac_aux_dir/mkinstalldirs"; then
1696 mkdir_p='$(mkinstalldirs)'
1697 else
1698 mkdir_p='$(install_sh) -d'
1699 fi
1700 fi
1701
1702 for ac_prog in gawk mawk nawk awk
1703 do
1704 # Extract the first word of "$ac_prog", so it can be a program name with args.
1705 set dummy $ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_AWK+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$AWK"; then
1712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_AWK="$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 AWK=$ac_cv_prog_AWK
1731 if test -n "$AWK"; then
1732 echo "$as_me:$LINENO: result: $AWK" >&5
1733 echo "${ECHO_T}$AWK" >&6
1734 else
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739 test -n "$AWK" && break
1740 done
1741
1742 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1743 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1745 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748 cat >conftest.make <<\_ACEOF
1749 all:
1750 @echo 'ac_maketemp="$(MAKE)"'
1751 _ACEOF
1752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1753 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1754 if test -n "$ac_maketemp"; then
1755 eval ac_cv_prog_make_${ac_make}_set=yes
1756 else
1757 eval ac_cv_prog_make_${ac_make}_set=no
1758 fi
1759 rm -f conftest.make
1760 fi
1761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1762 echo "$as_me:$LINENO: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1764 SET_MAKE=
1765 else
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 SET_MAKE="MAKE=${MAKE-make}"
1769 fi
1770
1771 rm -rf .tst 2>/dev/null
1772 mkdir .tst 2>/dev/null
1773 if test -d .tst; then
1774 am__leading_dot=.
1775 else
1776 am__leading_dot=_
1777 fi
1778 rmdir .tst 2>/dev/null
1779
1780 # test to see if srcdir already configured
1781 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1782 test -f $srcdir/config.status; then
1783 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1784 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1785 { (exit 1); exit 1; }; }
1786 fi
1787
1788 # test whether we have cygpath
1789 if test -z "$CYGPATH_W"; then
1790 if (cygpath --version) >/dev/null 2>/dev/null; then
1791 CYGPATH_W='cygpath -w'
1792 else
1793 CYGPATH_W=echo
1794 fi
1795 fi
1796
1797
1798 # Define the identity of the package.
1799 PACKAGE='classpath'
1800 VERSION='0.18'
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE "$PACKAGE"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define VERSION "$VERSION"
1810 _ACEOF
1811
1812 # Some tools Automake needs.
1813
1814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1815
1816
1817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1818
1819
1820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1821
1822
1823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1824
1825
1826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1827
1828 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1829
1830 # Installed binaries are usually stripped using `strip' when the user
1831 # run `make install-strip'. However `strip' might not be the right
1832 # tool to use in cross-compilation environments, therefore Automake
1833 # will honor the `STRIP' environment variable to overrule this program.
1834 if test "$cross_compiling" != no; then
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}strip; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$STRIP"; then
1844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 STRIP=$ac_cv_prog_STRIP
1863 if test -n "$STRIP"; then
1864 echo "$as_me:$LINENO: result: $STRIP" >&5
1865 echo "${ECHO_T}$STRIP" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_STRIP"; then
1873 ac_ct_STRIP=$STRIP
1874 # Extract the first word of "strip", so it can be a program name with args.
1875 set dummy strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_STRIP"; then
1882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_STRIP="strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895 done
1896 done
1897
1898 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1899 fi
1900 fi
1901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1902 if test -n "$ac_ct_STRIP"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1904 echo "${ECHO_T}$ac_ct_STRIP" >&6
1905 else
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 STRIP=$ac_ct_STRIP
1911 else
1912 STRIP="$ac_cv_prog_STRIP"
1913 fi
1914
1915 fi
1916 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1917
1918 # We need awk for the "check" target. The system "awk" is bad on
1919 # some platforms.
1920 # Always define AMTAR for backward compatibility.
1921
1922 AMTAR=${AMTAR-"${am_missing_run}tar"}
1923
1924
1925 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1926 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1927 # Loop over all known methods to create a tar archive until one works.
1928 _am_tools='gnutar plaintar pax cpio none'
1929 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1930 # Do not fold the above two line into one, because Tru64 sh and
1931 # Solaris sh will not grok spaces in the rhs of `-'.
1932 for _am_tool in $_am_tools
1933 do
1934 case $_am_tool in
1935 gnutar)
1936 for _am_tar in tar gnutar gtar;
1937 do
1938 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1939 ($_am_tar --version) >&5 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); } && break
1943 done
1944 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1945 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1946 am__untar="$_am_tar -xf -"
1947 ;;
1948 plaintar)
1949 # Must skip GNU tar: if it does not support --format= it doesn't create
1950 # ustar tarball either.
1951 (tar --version) >/dev/null 2>&1 && continue
1952 am__tar='tar chf - "$$tardir"'
1953 am__tar_='tar chf - "$tardir"'
1954 am__untar='tar xf -'
1955 ;;
1956 pax)
1957 am__tar='pax -L -x ustar -w "$$tardir"'
1958 am__tar_='pax -L -x ustar -w "$tardir"'
1959 am__untar='pax -r'
1960 ;;
1961 cpio)
1962 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1963 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1964 am__untar='cpio -i -H ustar -d'
1965 ;;
1966 none)
1967 am__tar=false
1968 am__tar_=false
1969 am__untar=false
1970 ;;
1971 esac
1972
1973 # If the value was cached, stop now. We just wanted to have am__tar
1974 # and am__untar set.
1975 test -n "${am_cv_prog_tar_ustar}" && break
1976
1977 # tar/untar a dummy directory, and stop if the command works
1978 rm -rf conftest.dir
1979 mkdir conftest.dir
1980 echo GrepMe > conftest.dir/file
1981 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
1982 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }
1986 rm -rf conftest.dir
1987 if test -s conftest.tar; then
1988 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
1989 ($am__untar <conftest.tar) >&5 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }
1993 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1994 fi
1995 done
1996 rm -rf conftest.dir
1997
1998 if test "${am_cv_prog_tar_ustar+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 am_cv_prog_tar_ustar=$_am_tool
2002 fi
2003
2004 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2005 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2006
2007
2008
2009
2010
2011 ac_config_headers="$ac_config_headers include/config.h"
2012
2013
2014
2015 # Check whether --enable-jni or --disable-jni was given.
2016 if test "${enable_jni+set}" = set; then
2017 enableval="$enable_jni"
2018 case "${enableval}" in
2019 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2020 no) COMPILE_JNI=no ;;
2021 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2022 esac
2023 else
2024 COMPILE_JNI=yes
2025 fi;
2026
2027
2028 if test "x${COMPILE_JNI}" = xyes; then
2029 CREATE_JNI_LIBRARIES_TRUE=
2030 CREATE_JNI_LIBRARIES_FALSE='#'
2031 else
2032 CREATE_JNI_LIBRARIES_TRUE='#'
2033 CREATE_JNI_LIBRARIES_FALSE=
2034 fi
2035
2036
2037 # Check whether --enable-core-jni or --disable-core-jni was given.
2038 if test "${enable_core_jni+set}" = set; then
2039 enableval="$enable_core_jni"
2040 case "${enableval}" in
2041 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2042 no) COMPILE_CORE_JNI=no ;;
2043 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2044 esac
2045 else
2046 COMPILE_CORE_JNI=yes
2047 fi;
2048
2049
2050 if test "x${COMPILE_CORE_JNI}" = xyes; then
2051 CREATE_CORE_JNI_LIBRARIES_TRUE=
2052 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2053 else
2054 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2055 CREATE_CORE_JNI_LIBRARIES_FALSE=
2056 fi
2057
2058
2059 # Check whether --enable-Werror or --disable-Werror was given.
2060 if test "${enable_Werror+set}" = set; then
2061 enableval="$enable_Werror"
2062 case "${enableval}" in
2063 yes) ENABLE_WERROR=yes ;;
2064 no) ENABLE_WERROR=no ;;
2065 *) ENABLE_WERROR=yes ;;
2066 esac
2067 else
2068 ENABLE_WERROR=no
2069 fi;
2070
2071 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2072 if test "${enable_default_toolkit+set}" = set; then
2073 enableval="$enable_default_toolkit"
2074
2075 fi;
2076 default_toolkit=$enable_default_toolkit
2077 if test "$default_toolkit" = ""; then
2078 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2079 fi
2080
2081
2082 # Check whether --enable-xmlj or --disable-xmlj was given.
2083 if test "${enable_xmlj+set}" = set; then
2084 enableval="$enable_xmlj"
2085 case "${enableval}" in
2086 yes) COMPILE_XMLJ=yes ;;
2087 no) COMPILE_XMLJ=no ;;
2088 *) COMPILE_XMLJ=no ;;
2089 esac
2090 else
2091 COMPILE_XMLJ=no
2092 fi;
2093
2094
2095 if test "x${COMPILE_XMLJ}" = xyes; then
2096 CREATE_XMLJ_LIBRARY_TRUE=
2097 CREATE_XMLJ_LIBRARY_FALSE='#'
2098 else
2099 CREATE_XMLJ_LIBRARY_TRUE='#'
2100 CREATE_XMLJ_LIBRARY_FALSE=
2101 fi
2102
2103
2104 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
2105 if test "${enable_gtk_peer+set}" = set; then
2106 enableval="$enable_gtk_peer"
2107 case "${enableval}" in
2108 yes) COMPILE_GTK_PEER=yes ;;
2109 no) COMPILE_GTK_PEER=no ;;
2110 *) COMPILE_GTK_PEER=yes ;;
2111 esac
2112 else
2113 COMPILE_GTK_PEER=yes
2114 fi;
2115
2116
2117 if test "x${COMPILE_GTK_PEER}" = xyes; then
2118 CREATE_GTK_PEER_LIBRARIES_TRUE=
2119 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
2120 else
2121 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
2122 CREATE_GTK_PEER_LIBRARIES_FALSE=
2123 fi
2124
2125
2126 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
2127 if test "${enable_gtk_peers+set}" = set; then
2128 enableval="$enable_gtk_peers"
2129 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
2130 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
2131 { (exit 1); exit 1; }; }
2132 fi;
2133
2134 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
2135 if test "${enable_gtk_cairo+set}" = set; then
2136 enableval="$enable_gtk_cairo"
2137 case "${enableval}" in
2138 yes) GTK_CAIRO_ENABLED=true ;;
2139 no) GTK_CAIRO_ENABLED=false ;;
2140 *) GTK_CAIRO_ENABLED=true ;;
2141 esac
2142 else
2143 GTK_CAIRO_ENABLED=false
2144 fi;
2145
2146 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
2147
2148 cat >>confdefs.h <<\_ACEOF
2149 #define GTK_CAIRO 1
2150 _ACEOF
2151
2152 fi
2153
2154
2155 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
2156 GTK_CAIRO_TRUE=
2157 GTK_CAIRO_FALSE='#'
2158 else
2159 GTK_CAIRO_TRUE='#'
2160 GTK_CAIRO_FALSE=
2161 fi
2162
2163
2164 # Check whether --enable-qt-peer or --disable-qt-peer was given.
2165 if test "${enable_qt_peer+set}" = set; then
2166 enableval="$enable_qt_peer"
2167 case "${enableval}" in
2168 yes) COMPILE_QT_PEER=yes ;;
2169 no) COMPILE_QT_PEER=no ;;
2170 *) COMPILE_QT_PEER=yes ;;
2171 esac
2172 else
2173 COMPILE_QT_PEER=no
2174 fi;
2175
2176
2177 if test "x${COMPILE_QT_PEER}" = xyes; then
2178 CREATE_QT_PEER_LIBRARIES_TRUE=
2179 CREATE_QT_PEER_LIBRARIES_FALSE='#'
2180 else
2181 CREATE_QT_PEER_LIBRARIES_TRUE='#'
2182 CREATE_QT_PEER_LIBRARIES_FALSE=
2183 fi
2184
2185
2186 # Check whether --enable-regen-headers or --disable-regen-headers was given.
2187 if test "${enable_regen_headers+set}" = set; then
2188 enableval="$enable_regen_headers"
2189 case "${enableval}" in
2190 yes) REGENERATE_JNI_HEADERS=yes ;;
2191 no) REGENERATE_JNI_HEADERS=no ;;
2192 *) REGENERATE_JNI_HEADERS=no ;;
2193 esac
2194 else
2195 REGENERATE_JNI_HEADERS=no
2196 fi;
2197
2198
2199 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
2200 CREATE_JNI_HEADERS_TRUE=
2201 CREATE_JNI_HEADERS_FALSE='#'
2202 else
2203 CREATE_JNI_HEADERS_TRUE='#'
2204 CREATE_JNI_HEADERS_FALSE=
2205 fi
2206
2207
2208 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2209 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2210 LN_S=$as_ln_s
2211 if test "$LN_S" = "ln -s"; then
2212 echo "$as_me:$LINENO: result: yes" >&5
2213 echo "${ECHO_T}yes" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2216 echo "${ECHO_T}no, using $LN_S" >&6
2217 fi
2218
2219 # Find a good install program. We prefer a C program (faster),
2220 # so one script is as good as another. But avoid the broken or
2221 # incompatible versions:
2222 # SysV /etc/install, /usr/sbin/install
2223 # SunOS /usr/etc/install
2224 # IRIX /sbin/install
2225 # AIX /bin/install
2226 # AmigaOS /C/install, which installs bootblocks on floppy discs
2227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230 # OS/2's system install, which has a completely different semantic
2231 # ./install, which can be erroneously created by make from ./install.sh.
2232 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2234 if test -z "$INSTALL"; then
2235 if test "${ac_cv_path_install+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 # Account for people who put trailing slashes in PATH elements.
2244 case $as_dir/ in
2245 ./ | .// | /cC/* | \
2246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2248 /usr/ucb/* ) ;;
2249 *)
2250 # OSF1 and SCO ODT 3.0 have their own names for install.
2251 # Don't use installbsd from OSF since it installs stuff as root
2252 # by default.
2253 for ac_prog in ginstall scoinst install; do
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2256 if test $ac_prog = install &&
2257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258 # AIX install. It has an incompatible calling convention.
2259 :
2260 elif test $ac_prog = install &&
2261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262 # program-specific install script used by HP pwplus--don't use.
2263 :
2264 else
2265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266 break 3
2267 fi
2268 fi
2269 done
2270 done
2271 ;;
2272 esac
2273 done
2274
2275
2276 fi
2277 if test "${ac_cv_path_install+set}" = set; then
2278 INSTALL=$ac_cv_path_install
2279 else
2280 # As a last resort, use the slow shell script. We don't cache a
2281 # path for INSTALL within a source directory, because that will
2282 # break other packages using the cache if that directory is
2283 # removed, or if the path is relative.
2284 INSTALL=$ac_install_sh
2285 fi
2286 fi
2287 echo "$as_me:$LINENO: result: $INSTALL" >&5
2288 echo "${ECHO_T}$INSTALL" >&6
2289
2290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2291 # It thinks the first close brace ends the variable substitution.
2292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2293
2294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2295
2296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2297
2298
2299
2300
2301
2302 # Check whether --enable-static or --disable-static was given.
2303 if test "${enable_static+set}" = set; then
2304 enableval="$enable_static"
2305 p=${PACKAGE-default}
2306 case $enableval in
2307 yes) enable_static=yes ;;
2308 no) enable_static=no ;;
2309 *)
2310 enable_static=no
2311 # Look at the argument we got. We use all the common list separators.
2312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2313 for pkg in $enableval; do
2314 if test "X$pkg" = "X$p"; then
2315 enable_static=yes
2316 fi
2317 done
2318 IFS="$ac_save_ifs"
2319 ;;
2320 esac
2321 else
2322 enable_static=no
2323 fi;
2324 # Check whether --enable-shared or --disable-shared was given.
2325 if test "${enable_shared+set}" = set; then
2326 enableval="$enable_shared"
2327 p=${PACKAGE-default}
2328 case $enableval in
2329 yes) enable_shared=yes ;;
2330 no) enable_shared=no ;;
2331 *)
2332 enable_shared=no
2333 # Look at the argument we got. We use all the common list separators.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2335 for pkg in $enableval; do
2336 if test "X$pkg" = "X$p"; then
2337 enable_shared=yes
2338 fi
2339 done
2340 IFS="$ac_save_ifs"
2341 ;;
2342 esac
2343 else
2344 enable_shared=yes
2345 fi;
2346 # Check whether --enable-fast-install or --disable-fast-install was given.
2347 if test "${enable_fast_install+set}" = set; then
2348 enableval="$enable_fast_install"
2349 p=${PACKAGE-default}
2350 case $enableval in
2351 yes) enable_fast_install=yes ;;
2352 no) enable_fast_install=no ;;
2353 *)
2354 enable_fast_install=no
2355 # Look at the argument we got. We use all the common list separators.
2356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2357 for pkg in $enableval; do
2358 if test "X$pkg" = "X$p"; then
2359 enable_fast_install=yes
2360 fi
2361 done
2362 IFS="$ac_save_ifs"
2363 ;;
2364 esac
2365 else
2366 enable_fast_install=yes
2367 fi;
2368 DEPDIR="${am__leading_dot}deps"
2369
2370 ac_config_commands="$ac_config_commands depfiles"
2371
2372
2373 am_make=${MAKE-make}
2374 cat > confinc << 'END'
2375 am__doit:
2376 @echo done
2377 .PHONY: am__doit
2378 END
2379 # If we don't find an include directive, just comment out the code.
2380 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2381 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2382 am__include="#"
2383 am__quote=
2384 _am_result=none
2385 # First try GNU make style include.
2386 echo "include confinc" > confmf
2387 # We grep out `Entering directory' and `Leaving directory'
2388 # messages which can occur if `w' ends up in MAKEFLAGS.
2389 # In particular we don't look at `^make:' because GNU make might
2390 # be invoked under some other name (usually "gmake"), in which
2391 # case it prints its new name instead of `make'.
2392 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2393 am__include=include
2394 am__quote=
2395 _am_result=GNU
2396 fi
2397 # Now try BSD make style include.
2398 if test "$am__include" = "#"; then
2399 echo '.include "confinc"' > confmf
2400 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2401 am__include=.include
2402 am__quote="\""
2403 _am_result=BSD
2404 fi
2405 fi
2406
2407
2408 echo "$as_me:$LINENO: result: $_am_result" >&5
2409 echo "${ECHO_T}$_am_result" >&6
2410 rm -f confinc confmf
2411
2412 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2413 if test "${enable_dependency_tracking+set}" = set; then
2414 enableval="$enable_dependency_tracking"
2415
2416 fi;
2417 if test "x$enable_dependency_tracking" != xno; then
2418 am_depcomp="$ac_aux_dir/depcomp"
2419 AMDEPBACKSLASH='\'
2420 fi
2421
2422
2423 if test "x$enable_dependency_tracking" != xno; then
2424 AMDEP_TRUE=
2425 AMDEP_FALSE='#'
2426 else
2427 AMDEP_TRUE='#'
2428 AMDEP_FALSE=
2429 fi
2430
2431
2432
2433 ac_ext=c
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6
2469 else
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2473
2474 fi
2475 if test -z "$ac_cv_prog_CC"; then
2476 ac_ct_CC=$CC
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478 set dummy gcc; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512 CC=$ac_ct_CC
2513 else
2514 CC="$ac_cv_prog_CC"
2515 fi
2516
2517 if test -z "$CC"; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}cc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6
2549 else
2550 echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6
2552 fi
2553
2554 fi
2555 if test -z "$ac_cv_prog_CC"; then
2556 ac_ct_CC=$CC
2557 # Extract the first word of "cc", so it can be a program name with args.
2558 set dummy cc; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_CC="cc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580
2581 fi
2582 fi
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6
2587 else
2588 echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2590 fi
2591
2592 CC=$ac_ct_CC
2593 else
2594 CC="$ac_cv_prog_CC"
2595 fi
2596
2597 fi
2598 if test -z "$CC"; then
2599 # Extract the first word of "cc", so it can be a program name with args.
2600 set dummy cc; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608 else
2609 ac_prog_rejected=no
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618 ac_prog_rejected=yes
2619 continue
2620 fi
2621 ac_cv_prog_CC="cc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627
2628 if test $ac_prog_rejected = yes; then
2629 # We found a bogon in the path, so make sure we never use it.
2630 set dummy $ac_cv_prog_CC
2631 shift
2632 if test $# != 0; then
2633 # We chose a different compiler from the bogus one.
2634 # However, it has the same basename, so the bogon will be chosen
2635 # first if we set CC to just the basename; use the full file name.
2636 shift
2637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2638 fi
2639 fi
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 echo "$as_me:$LINENO: result: $CC" >&5
2645 echo "${ECHO_T}$CC" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 fi
2650
2651 fi
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 for ac_prog in cl
2655 do
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658 echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 echo "$as_me:$LINENO: result: $CC" >&5
2685 echo "${ECHO_T}$CC" >&6
2686 else
2687 echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6
2689 fi
2690
2691 test -n "$CC" && break
2692 done
2693 fi
2694 if test -z "$CC"; then
2695 ac_ct_CC=$CC
2696 for ac_prog in cl
2697 do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721
2722 fi
2723 fi
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6
2728 else
2729 echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731 fi
2732
2733 test -n "$ac_ct_CC" && break
2734 done
2735
2736 CC=$ac_ct_CC
2737 fi
2738
2739 fi
2740
2741
2742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2747
2748 # Provide some information about the compiler.
2749 echo "$as_me:$LINENO:" \
2750 "checking for C compiler version" >&5
2751 ac_compiler=`set X $ac_compile; echo $2`
2752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2753 (eval $ac_compiler --version </dev/null >&5) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2758 (eval $ac_compiler -v </dev/null >&5) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2763 (eval $ac_compiler -V </dev/null >&5) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774
2775 int
2776 main ()
2777 {
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 # FIXME: Cleanup?
2784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2785 (eval $ac_link) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 gcc_no_link=no
2790 else
2791 gcc_no_link=yes
2792 fi
2793
2794 if test x$gcc_no_link = xyes; then
2795 # Setting cross_compile will disable run tests; it will
2796 # also disable AC_CHECK_FILE but that's generally
2797 # correct if we can't link.
2798 cross_compiling=yes
2799 EXEEXT=
2800 else
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h. */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807
2808 int
2809 main ()
2810 {
2811
2812 ;
2813 return 0;
2814 }
2815 _ACEOF
2816 ac_clean_files_save=$ac_clean_files
2817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2818 # Try to create an executable without -o first, disregard a.out.
2819 # It will help us diagnose broken compilers, and finding out an intuition
2820 # of exeext.
2821 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2822 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2825 (eval $ac_link_default) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 # Find the output, starting from the most likely. This scheme is
2830 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2831 # resort.
2832
2833 # Be careful to initialize this variable, since it used to be cached.
2834 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2835 ac_cv_exeext=
2836 # b.out is created by i960 compilers.
2837 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2838 do
2839 test -f "$ac_file" || continue
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2842 ;;
2843 conftest.$ac_ext )
2844 # This is the source file.
2845 ;;
2846 [ab].out )
2847 # We found the default executable, but exeext='' is most
2848 # certainly right.
2849 break;;
2850 *.* )
2851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 # FIXME: I believe we export ac_cv_exeext for Libtool,
2853 # but it would be cool to find out if it's true. Does anybody
2854 # maintain Libtool? --akim.
2855 export ac_cv_exeext
2856 break;;
2857 * )
2858 break;;
2859 esac
2860 done
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: C compiler cannot create executables
2868 See \`config.log' for more details." >&2;}
2869 { (exit 77); exit 77; }; }
2870 fi
2871
2872 ac_exeext=$ac_cv_exeext
2873 echo "$as_me:$LINENO: result: $ac_file" >&5
2874 echo "${ECHO_T}$ac_file" >&6
2875
2876 # Check the compiler produces executables we can run. If not, either
2877 # the compiler is broken, or we cross compile.
2878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881 # If not cross compiling, check that we can run a simple program.
2882 if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902 fi
2903 fi
2904 echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check the compiler produces executables we can run. If not, either
2910 # the compiler is broken, or we cross compile.
2911 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2913 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6
2915
2916 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
2923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2925 # work properly (i.e., refer to `conftest.exe'), while it won't with
2926 # `rm'.
2927 for ac_file in conftest.exe conftest conftest.*; do
2928 test -f "$ac_file" || continue
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 export ac_cv_exeext
2933 break;;
2934 * ) break;;
2935 esac
2936 done
2937 else
2938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&5
2940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944
2945 rm -f conftest$ac_cv_exeext
2946 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947 echo "${ECHO_T}$ac_cv_exeext" >&6
2948
2949 rm -f conftest.$ac_ext
2950 EXEEXT=$ac_cv_exeext
2951 ac_exeext=$EXEEXT
2952 fi
2953 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2954 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2955 if test "${ac_cv_objext+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964
2965 int
2966 main ()
2967 {
2968
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.o conftest.obj
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2983 break;;
2984 esac
2985 done
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998 fi
2999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 echo "${ECHO_T}$ac_cv_objext" >&6
3001 OBJEXT=$ac_cv_objext
3002 ac_objext=$OBJEXT
3003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014
3015 int
3016 main ()
3017 {
3018 #ifndef __GNUC__
3019 choke me
3020 #endif
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_compiler_gnu=yes
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 ac_compiler_gnu=no
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3061 GCC=`test $ac_compiler_gnu = yes && echo yes`
3062 ac_test_CFLAGS=${CFLAGS+set}
3063 ac_save_CFLAGS=$CFLAGS
3064 CFLAGS="-g"
3065 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3067 if test "${ac_cv_prog_cc_g+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3076
3077 int
3078 main ()
3079 {
3080
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag"
3095 || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_cv_prog_cc_g=yes
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 ac_cv_prog_cc_g=no
3113 fi
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 fi
3116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3122 CFLAGS="-g -O2"
3123 else
3124 CFLAGS="-g"
3125 fi
3126 else
3127 if test "$GCC" = yes; then
3128 CFLAGS="-O2"
3129 else
3130 CFLAGS=
3131 fi
3132 fi
3133 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3134 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3135 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 ac_cv_prog_cc_stdc=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146 #include <stdarg.h>
3147 #include <stdio.h>
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154 char **p;
3155 int i;
3156 {
3157 return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161 char *s;
3162 va_list v;
3163 va_start (v,p);
3164 s = g (p, va_arg (v,int));
3165 va_end (v);
3166 return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3170 function prototypes and stuff, but not '\xHH' hex character constants.
3171 These don't provoke an error unfortunately, instead are silently treated
3172 as 'x'. The following induces an error, until -std1 is added to get
3173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3174 array size at least. It's necessary to write '\x00'==0 to get something
3175 that's true only with -std1. */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 int test (int i, double x);
3179 struct s1 {int (*f) (int a);};
3180 struct s2 {int (*f) (double a);};
3181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3182 int argc;
3183 char **argv;
3184 int
3185 main ()
3186 {
3187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 # Don't try gcc -ansi; that turns off useful extensions and
3193 # breaks some systems' header files.
3194 # AIX -qlanglvl=ansi
3195 # Ultrix and OSF/1 -std1
3196 # HP-UX 10.20 and later -Ae
3197 # HP-UX older versions -Aa -D_HPUX_SOURCE
3198 # SVR4 -Xc -D__EXTENSIONS__
3199 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 do
3201 CC="$ac_save_CC $ac_arg"
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag"
3212 || test ! -s conftest.err'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_cv_prog_cc_stdc=$ac_arg
3225 break
3226 else
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 fi
3231 rm -f conftest.err conftest.$ac_objext
3232 done
3233 rm -f conftest.$ac_ext conftest.$ac_objext
3234 CC=$ac_save_CC
3235
3236 fi
3237
3238 case "x$ac_cv_prog_cc_stdc" in
3239 x|xno)
3240 echo "$as_me:$LINENO: result: none needed" >&5
3241 echo "${ECHO_T}none needed" >&6 ;;
3242 *)
3243 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3245 CC="$CC $ac_cv_prog_cc_stdc" ;;
3246 esac
3247
3248 # Some people use a C++ compiler to compile C. Since we use `exit',
3249 # in C++ we need to declare it. In case someone uses the same compiler
3250 # for both compiling C and C++ we need to have the C++ compiler decide
3251 # the declaration of exit, since it's the most demanding environment.
3252 cat >conftest.$ac_ext <<_ACEOF
3253 #ifndef __cplusplus
3254 choke me
3255 #endif
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_c_werror_flag"
3267 || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 for ac_declaration in \
3280 '' \
3281 'extern "C" void std::exit (int) throw (); using std::exit;' \
3282 'extern "C" void std::exit (int); using std::exit;' \
3283 'extern "C" void exit (int) throw ();' \
3284 'extern "C" void exit (int);' \
3285 'void exit (int);'
3286 do
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 $ac_declaration
3294 #include <stdlib.h>
3295 int
3296 main ()
3297 {
3298 exit (42);
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 :
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 continue
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 $ac_declaration
3340 int
3341 main ()
3342 {
3343 exit (42);
3344 ;
3345 return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 break
3371 else
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 fi
3376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377 done
3378 rm -f conftest*
3379 if test -n "$ac_declaration"; then
3380 echo '#ifdef __cplusplus' >>confdefs.h
3381 echo $ac_declaration >>confdefs.h
3382 echo '#endif' >>confdefs.h
3383 fi
3384
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 fi
3390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397 depcc="$CC" am_compiler_list=
3398
3399 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3400 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3401 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3405 # We make a subdir and do the tests there. Otherwise we can end up
3406 # making bogus files that we don't know about and never remove. For
3407 # instance it was reported that on HP-UX the gcc test will end up
3408 # making a dummy file named `D' -- because `-MD' means `put the output
3409 # in D'.
3410 mkdir conftest.dir
3411 # Copy depcomp to subdir because otherwise we won't find it if we're
3412 # using a relative directory.
3413 cp "$am_depcomp" conftest.dir
3414 cd conftest.dir
3415 # We will build objects and dependencies in a subdirectory because
3416 # it helps to detect inapplicable dependency modes. For instance
3417 # both Tru64's cc and ICC support -MD to output dependencies as a
3418 # side effect of compilation, but ICC will put the dependencies in
3419 # the current directory while Tru64 will put them in the object
3420 # directory.
3421 mkdir sub
3422
3423 am_cv_CC_dependencies_compiler_type=none
3424 if test "$am_compiler_list" = ""; then
3425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3426 fi
3427 for depmode in $am_compiler_list; do
3428 # Setup a source with many dependencies, because some compilers
3429 # like to wrap large dependency lists on column 80 (with \), and
3430 # we should not choose a depcomp mode which is confused by this.
3431 #
3432 # We need to recreate these files for each test, as the compiler may
3433 # overwrite some of them when testing with obscure command lines.
3434 # This happens at least with the AIX C compiler.
3435 : > sub/conftest.c
3436 for i in 1 2 3 4 5 6; do
3437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3439 # Solaris 8's {/usr,}/bin/sh.
3440 touch sub/conftst$i.h
3441 done
3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3443
3444 case $depmode in
3445 nosideeffect)
3446 # after this tag, mechanisms are not by side-effect, so they'll
3447 # only be used when explicitly requested
3448 if test "x$enable_dependency_tracking" = xyes; then
3449 continue
3450 else
3451 break
3452 fi
3453 ;;
3454 none) break ;;
3455 esac
3456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3457 # mode. It turns out that the SunPro C++ compiler does not properly
3458 # handle `-M -o', and we need to detect this.
3459 if depmode=$depmode \
3460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3463 >/dev/null 2>conftest.err &&
3464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3467 # icc doesn't choke on unknown options, it will just issue warnings
3468 # or remarks (even with -Werror). So we grep stderr for any message
3469 # that says an option was ignored or not supported.
3470 # When given -MP, icc 7.0 and 7.1 complain thusly:
3471 # icc: Command line warning: ignoring option '-M'; no argument required
3472 # The diagnosis changed in icc 8.0:
3473 # icc: Command line remark: option '-MP' not supported
3474 if (grep 'ignoring option' conftest.err ||
3475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3476 am_cv_CC_dependencies_compiler_type=$depmode
3477 break
3478 fi
3479 fi
3480 done
3481
3482 cd ..
3483 rm -rf conftest.dir
3484 else
3485 am_cv_CC_dependencies_compiler_type=none
3486 fi
3487
3488 fi
3489 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3490 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3492
3493
3494
3495 if
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCC_TRUE=
3499 am__fastdepCC_FALSE='#'
3500 else
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3503 fi
3504
3505
3506
3507 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3508 if test "${with_gnu_ld+set}" = set; then
3509 withval="$with_gnu_ld"
3510 test "$withval" = no || with_gnu_ld=yes
3511 else
3512 with_gnu_ld=no
3513 fi;
3514 ac_prog=ld
3515 if test "$GCC" = yes; then
3516 # Check if gcc -print-prog-name=ld gives a path.
3517 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3518 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3519 case $host in
3520 *-*-mingw*)
3521 # gcc leaves a trailing carriage return which upsets mingw
3522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3523 *)
3524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3525 esac
3526 case $ac_prog in
3527 # Accept absolute paths.
3528 [\\/]* | [A-Za-z]:[\\/]*)
3529 re_direlt='/[^/][^/]*/\.\./'
3530 # Canonicalize the path of ld
3531 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3533 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3534 done
3535 test -z "$LD" && LD="$ac_prog"
3536 ;;
3537 "")
3538 # If it fails, then pretend we aren't using GCC.
3539 ac_prog=ld
3540 ;;
3541 *)
3542 # If it is relative, then search for the first ld in PATH.
3543 with_gnu_ld=unknown
3544 ;;
3545 esac
3546 elif test "$with_gnu_ld" = yes; then
3547 echo "$as_me:$LINENO: checking for GNU ld" >&5
3548 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3549 else
3550 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3551 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3552 fi
3553 if test "${lt_cv_path_LD+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -z "$LD"; then
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3558 for ac_dir in $PATH; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3561 lt_cv_path_LD="$ac_dir/$ac_prog"
3562 # Check to see if the program is GNU ld. I'd rather use --version,
3563 # but apparently some GNU ld's only accept -v.
3564 # Break only if it was the GNU/non-GNU ld that we prefer.
3565 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3566 test "$with_gnu_ld" != no && break
3567 else
3568 test "$with_gnu_ld" != yes && break
3569 fi
3570 fi
3571 done
3572 IFS="$ac_save_ifs"
3573 else
3574 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3575 fi
3576 fi
3577
3578 LD="$lt_cv_path_LD"
3579 if test -n "$LD"; then
3580 echo "$as_me:$LINENO: result: $LD" >&5
3581 echo "${ECHO_T}$LD" >&6
3582 else
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3585 fi
3586 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3587 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3588 { (exit 1); exit 1; }; }
3589 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3590 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3591 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3595 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3596 lt_cv_prog_gnu_ld=yes
3597 else
3598 lt_cv_prog_gnu_ld=no
3599 fi
3600 fi
3601 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3602 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3603 with_gnu_ld=$lt_cv_prog_gnu_ld
3604
3605
3606 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3607 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3608 if test "${lt_cv_ld_reload_flag+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 lt_cv_ld_reload_flag='-r'
3612 fi
3613 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3614 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3615 reload_flag=$lt_cv_ld_reload_flag
3616 test -n "$reload_flag" && reload_flag=" $reload_flag"
3617
3618 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3619 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3620 if test "${lt_cv_path_NM+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 if test -n "$NM"; then
3624 # Let the user override the test.
3625 lt_cv_path_NM="$NM"
3626 else
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3628 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3629 test -z "$ac_dir" && ac_dir=.
3630 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3631 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3632 # Check to see if the nm accepts a BSD-compat flag.
3633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3634 # nm: unknown option "B" ignored
3635 # Tru64's nm complains that /dev/null is an invalid object file
3636 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3637 lt_cv_path_NM="$tmp_nm -B"
3638 break
3639 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3640 lt_cv_path_NM="$tmp_nm -p"
3641 break
3642 else
3643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3644 continue # so that we can try to find one that supports BSD flags
3645 fi
3646 fi
3647 done
3648 IFS="$ac_save_ifs"
3649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3650 fi
3651 fi
3652
3653 NM="$lt_cv_path_NM"
3654 echo "$as_me:$LINENO: result: $NM" >&5
3655 echo "${ECHO_T}$NM" >&6
3656
3657 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3658 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3659 if test "${lt_cv_deplibs_check_method+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 lt_cv_file_magic_cmd='$MAGIC_CMD'
3663 lt_cv_file_magic_test_file=
3664 lt_cv_deplibs_check_method='unknown'
3665 # Need to set the preceding variable on all platforms that support
3666 # interlibrary dependencies.
3667 # 'none' -- dependencies not supported.
3668 # `unknown' -- same as none, but documents that we really don't know.
3669 # 'pass_all' -- all dependencies passed with no checks.
3670 # 'test_compile' -- check by making test program.
3671 # 'file_magic [regex]' -- check by looking for files in library path
3672 # which responds to the $file_magic_cmd with a given egrep regex.
3673 # If you have `file' or equivalent on your system and you're not sure
3674 # whether `pass_all' will *always* work, you probably want this one.
3675
3676 case $host_os in
3677 aix*)
3678 lt_cv_deplibs_check_method=pass_all
3679 ;;
3680
3681 beos*)
3682 lt_cv_deplibs_check_method=pass_all
3683 ;;
3684
3685 bsdi4*)
3686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3687 lt_cv_file_magic_cmd='/usr/bin/file -L'
3688 lt_cv_file_magic_test_file=/shlib/libc.so
3689 ;;
3690
3691 cygwin* | mingw* |pw32*)
3692 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3693 lt_cv_file_magic_cmd='$OBJDUMP -f'
3694 ;;
3695
3696 darwin* | rhapsody*)
3697 # this will be overwritten by pass_all, but leave it in just in case
3698 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3699 lt_cv_file_magic_cmd='/usr/bin/file -L'
3700 case "$host_os" in
3701 rhapsody* | darwin1.012)
3702 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3703 ;;
3704 *) # Darwin 1.3 on
3705 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3706 ;;
3707 esac
3708 lt_cv_deplibs_check_method=pass_all
3709 ;;
3710
3711 freebsd* | kfreebsd*-gnu)
3712 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3713 case $host_cpu in
3714 i*86 )
3715 # Not sure whether the presence of OpenBSD here was a mistake.
3716 # Let's accept both of them until this is cleared up.
3717 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3718 lt_cv_file_magic_cmd=/usr/bin/file
3719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720 ;;
3721 esac
3722 else
3723 lt_cv_deplibs_check_method=pass_all
3724 fi
3725 ;;
3726
3727 gnu*)
3728 lt_cv_deplibs_check_method=pass_all
3729 ;;
3730
3731 hpux10.20*|hpux11*)
3732 case $host_cpu in
3733 hppa*)
3734 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3737 ;;
3738 ia64*)
3739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3740 lt_cv_file_magic_cmd=/usr/bin/file
3741 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3742 ;;
3743 esac
3744 ;;
3745
3746 irix5* | irix6*)
3747 case $host_os in
3748 irix5*)
3749 # this will be overridden with pass_all, but let us keep it just in case
3750 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3751 ;;
3752 *)
3753 case $LD in
3754 *-32|*"-32 ") libmagic=32-bit;;
3755 *-n32|*"-n32 ") libmagic=N32;;
3756 *-64|*"-64 ") libmagic=64-bit;;
3757 *) libmagic=never-match;;
3758 esac
3759 # this will be overridden with pass_all, but let us keep it just in case
3760 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3761 ;;
3762 esac
3763 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3764 lt_cv_deplibs_check_method=pass_all
3765 ;;
3766
3767 # This must be Linux ELF.
3768 linux-gnu*)
3769 lt_cv_deplibs_check_method=pass_all
3770 ;;
3771
3772 netbsd* | knetbsd*-gnu)
3773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3774 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3775 else
3776 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3777 fi
3778 ;;
3779
3780 newsos6)
3781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3782 lt_cv_file_magic_cmd=/usr/bin/file
3783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3784 ;;
3785
3786 osf3* | osf4* | osf5*)
3787 # this will be overridden with pass_all, but let us keep it just in case
3788 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3790 lt_cv_deplibs_check_method=pass_all
3791 ;;
3792
3793 sco3.2v5*)
3794 lt_cv_deplibs_check_method=pass_all
3795 ;;
3796
3797 solaris*)
3798 lt_cv_deplibs_check_method=pass_all
3799 lt_cv_file_magic_test_file=/lib/libc.so
3800 ;;
3801
3802 sysv5uw[78]* | sysv4*uw2*)
3803 lt_cv_deplibs_check_method=pass_all
3804 ;;
3805
3806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 case $host_vendor in
3808 ncr)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811 motorola)
3812 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]'
3813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3814 ;;
3815 esac
3816 ;;
3817 esac
3818
3819 fi
3820 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3821 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3822 file_magic_cmd=$lt_cv_file_magic_cmd
3823 deplibs_check_method=$lt_cv_deplibs_check_method
3824
3825
3826
3827
3828
3829 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3830
3831 # find the maximum length of command line arguments
3832 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3833 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3834 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 i=0
3838 teststring="ABCD"
3839
3840 case $build_os in
3841 msdosdjgpp*)
3842 # On DJGPP, this test can blow up pretty badly due to problems in libc
3843 # (any single argument exceeding 2000 bytes causes a buffer overrun
3844 # during glob expansion). Even if it were fixed, the result of this
3845 # check would be larger than it should be.
3846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3847 ;;
3848
3849 cygwin* | mingw*)
3850 # On Win9x/ME, this test blows up -- it succeeds, but takes
3851 # about 5 minutes as the teststring grows exponentially.
3852 # Worse, since 9x/ME are not pre-emptively multitasking,
3853 # you end up with a "frozen" computer, even though with patience
3854 # the test eventually succeeds (with a max line length of 256k).
3855 # Instead, let's just punt: use the minimum linelength reported by
3856 # all of the supported platforms: 8192 (on NT/2K/XP).
3857 lt_cv_sys_max_cmd_len=8192;
3858 ;;
3859
3860 amigaos*)
3861 # On AmigaOS with pdksh, this test takes hours, literally.
3862 # So we just punt and use a minimum line length of 8192.
3863 lt_cv_sys_max_cmd_len=8192;
3864 ;;
3865
3866 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3867 # This has been around since 386BSD, at least. Likely further.
3868 if test -x /sbin/sysctl; then
3869 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3870 elif test -x /usr/sbin/sysctl; then
3871 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3872 else
3873 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3874 fi
3875 # And add a safety zone
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3878 ;;
3879 esac
3880
3881 fi
3882
3883 if test -n "$lt_cv_sys_max_cmd_len" ; then
3884 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3885 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3886 else
3887 echo "$as_me:$LINENO: result: none" >&5
3888 echo "${ECHO_T}none" >&6
3889 fi
3890
3891
3892 # Only perform the check for file, if the check method requires it
3893 case $deplibs_check_method in
3894 file_magic*)
3895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3896 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 case $MAGIC_CMD in
3902 /*)
3903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3904 ;;
3905 ?:/*)
3906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3907 ;;
3908 *)
3909 ac_save_MAGIC_CMD="$MAGIC_CMD"
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="/usr/bin:$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/${ac_tool_prefix}file; then
3915 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3916 if test -n "$file_magic_test_file"; then
3917 case $deplibs_check_method in
3918 "file_magic "*)
3919 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3922 egrep "$file_magic_regex" > /dev/null; then
3923 :
3924 else
3925 cat <<EOF 1>&2
3926
3927 *** Warning: the command libtool uses to detect shared libraries,
3928 *** $file_magic_cmd, produces output that libtool cannot recognize.
3929 *** The result is that libtool may fail to recognize shared libraries
3930 *** as such. This will affect the creation of libtool libraries that
3931 *** depend on shared libraries, but programs linked with such libtool
3932 *** libraries will work regardless of this problem. Nevertheless, you
3933 *** may want to report the problem to your system manager and/or to
3934 *** bug-libtool@gnu.org
3935
3936 EOF
3937 fi ;;
3938 esac
3939 fi
3940 break
3941 fi
3942 done
3943 IFS="$ac_save_ifs"
3944 MAGIC_CMD="$ac_save_MAGIC_CMD"
3945 ;;
3946 esac
3947 fi
3948
3949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3950 if test -n "$MAGIC_CMD"; then
3951 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3952 echo "${ECHO_T}$MAGIC_CMD" >&6
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3956 fi
3957
3958 if test -z "$lt_cv_path_MAGIC_CMD"; then
3959 if test -n "$ac_tool_prefix"; then
3960 echo "$as_me:$LINENO: checking for file" >&5
3961 echo $ECHO_N "checking for file... $ECHO_C" >&6
3962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 case $MAGIC_CMD in
3966 /*)
3967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3968 ;;
3969 ?:/*)
3970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3971 ;;
3972 *)
3973 ac_save_MAGIC_CMD="$MAGIC_CMD"
3974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3975 ac_dummy="/usr/bin:$PATH"
3976 for ac_dir in $ac_dummy; do
3977 test -z "$ac_dir" && ac_dir=.
3978 if test -f $ac_dir/file; then
3979 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3980 if test -n "$file_magic_test_file"; then
3981 case $deplibs_check_method in
3982 "file_magic "*)
3983 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3986 egrep "$file_magic_regex" > /dev/null; then
3987 :
3988 else
3989 cat <<EOF 1>&2
3990
3991 *** Warning: the command libtool uses to detect shared libraries,
3992 *** $file_magic_cmd, produces output that libtool cannot recognize.
3993 *** The result is that libtool may fail to recognize shared libraries
3994 *** as such. This will affect the creation of libtool libraries that
3995 *** depend on shared libraries, but programs linked with such libtool
3996 *** libraries will work regardless of this problem. Nevertheless, you
3997 *** may want to report the problem to your system manager and/or to
3998 *** bug-libtool@gnu.org
3999
4000 EOF
4001 fi ;;
4002 esac
4003 fi
4004 break
4005 fi
4006 done
4007 IFS="$ac_save_ifs"
4008 MAGIC_CMD="$ac_save_MAGIC_CMD"
4009 ;;
4010 esac
4011 fi
4012
4013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014 if test -n "$MAGIC_CMD"; then
4015 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4016 echo "${ECHO_T}$MAGIC_CMD" >&6
4017 else
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4020 fi
4021
4022 else
4023 MAGIC_CMD=:
4024 fi
4025 fi
4026
4027 fi
4028 ;;
4029 esac
4030
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_RANLIB+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 if test -n "$RANLIB"; then
4040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055
4056 fi
4057 fi
4058 RANLIB=$ac_cv_prog_RANLIB
4059 if test -n "$RANLIB"; then
4060 echo "$as_me:$LINENO: result: $RANLIB" >&5
4061 echo "${ECHO_T}$RANLIB" >&6
4062 else
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067 fi
4068 if test -z "$ac_cv_prog_RANLIB"; then
4069 ac_ct_RANLIB=$RANLIB
4070 # Extract the first word of "ranlib", so it can be a program name with args.
4071 set dummy ranlib; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 if test -n "$ac_ct_RANLIB"; then
4078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_ac_ct_RANLIB="ranlib"
4088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091 done
4092 done
4093
4094 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4095 fi
4096 fi
4097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4098 if test -n "$ac_ct_RANLIB"; then
4099 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4100 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106 RANLIB=$ac_ct_RANLIB
4107 else
4108 RANLIB="$ac_cv_prog_RANLIB"
4109 fi
4110
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}strip; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_STRIP+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 if test -n "$STRIP"; then
4120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4132 fi
4133 done
4134 done
4135
4136 fi
4137 fi
4138 STRIP=$ac_cv_prog_STRIP
4139 if test -n "$STRIP"; then
4140 echo "$as_me:$LINENO: result: $STRIP" >&5
4141 echo "${ECHO_T}$STRIP" >&6
4142 else
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147 fi
4148 if test -z "$ac_cv_prog_STRIP"; then
4149 ac_ct_STRIP=$STRIP
4150 # Extract the first word of "strip", so it can be a program name with args.
4151 set dummy strip; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test -n "$ac_ct_STRIP"; then
4158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_ac_ct_STRIP="strip"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4170 fi
4171 done
4172 done
4173
4174 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4175 fi
4176 fi
4177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4178 if test -n "$ac_ct_STRIP"; then
4179 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4180 echo "${ECHO_T}$ac_ct_STRIP" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 fi
4185
4186 STRIP=$ac_ct_STRIP
4187 else
4188 STRIP="$ac_cv_prog_STRIP"
4189 fi
4190
4191
4192 # Check for any special flags to pass to ltconfig.
4193 libtool_flags="--cache-file=$cache_file"
4194 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4195 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4196 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4197 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4198 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4199
4200
4201 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4202 if test "${enable_libtool_lock+set}" = set; then
4203 enableval="$enable_libtool_lock"
4204
4205 fi;
4206 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4207 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4208
4209
4210 # Check whether --with-pic or --without-pic was given.
4211 if test "${with_pic+set}" = set; then
4212 withval="$with_pic"
4213 pic_mode="$withval"
4214 else
4215 pic_mode=default
4216 fi;
4217 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4218 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4219
4220 # Some flags need to be propagated to the compiler or linker for good
4221 # libtool support.
4222 case $host in
4223 *-*-irix6*)
4224 # Find out which ABI we are using.
4225 echo '#line 4225 "configure"' > conftest.$ac_ext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; then
4231 if test "$lt_cv_prog_gnu_ld" = yes; then
4232 case `/usr/bin/file conftest.$ac_objext` in
4233 *32-bit*)
4234 LD="${LD-ld} -melf32bsmip"
4235 ;;
4236 *N32*)
4237 LD="${LD-ld} -melf32bmipn32"
4238 ;;
4239 *64-bit*)
4240 LD="${LD-ld} -melf64bmip"
4241 ;;
4242 esac
4243 else
4244 case `/usr/bin/file conftest.$ac_objext` in
4245 *32-bit*)
4246 LD="${LD-ld} -32"
4247 ;;
4248 *N32*)
4249 LD="${LD-ld} -n32"
4250 ;;
4251 *64-bit*)
4252 LD="${LD-ld} -64"
4253 ;;
4254 esac
4255 fi
4256 fi
4257 rm -rf conftest*
4258 ;;
4259
4260 ia64-*-hpux*)
4261 # Find out which ABI we are using.
4262 echo 'int i;' > conftest.$ac_ext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4268 case "`/usr/bin/file conftest.o`" in
4269 *ELF-32*)
4270 HPUX_IA64_MODE="32"
4271 ;;
4272 *ELF-64*)
4273 HPUX_IA64_MODE="64"
4274 ;;
4275 esac
4276 fi
4277 rm -rf conftest*
4278 ;;
4279
4280 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4281 # Find out which ABI we are using.
4282 echo 'int i;' > conftest.$ac_ext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; then
4288 case "`/usr/bin/file conftest.o`" in
4289 *32-bit*)
4290 case $host in
4291 x86_64-*linux*)
4292 LD="${LD-ld} -m elf_i386"
4293 ;;
4294 ppc64-*linux*|powerpc64-*linux*)
4295 LD="${LD-ld} -m elf32ppclinux"
4296 ;;
4297 s390x-*linux*)
4298 LD="${LD-ld} -m elf_s390"
4299 ;;
4300 sparc64-*linux*)
4301 LD="${LD-ld} -m elf32_sparc"
4302 ;;
4303 esac
4304 ;;
4305 *64-bit*)
4306 case $host in
4307 x86_64-*linux*)
4308 LD="${LD-ld} -m elf_x86_64"
4309 ;;
4310 ppc*-*linux*|powerpc*-*linux*)
4311 LD="${LD-ld} -m elf64ppc"
4312 ;;
4313 s390*-*linux*)
4314 LD="${LD-ld} -m elf64_s390"
4315 ;;
4316 sparc*-*linux*)
4317 LD="${LD-ld} -m elf64_sparc"
4318 ;;
4319 esac
4320 ;;
4321 esac
4322 fi
4323 rm -rf conftest*
4324 ;;
4325
4326 *-*-sco3.2v5*)
4327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4328 SAVE_CFLAGS="$CFLAGS"
4329 CFLAGS="$CFLAGS -belf"
4330 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4331 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4332 if test "${lt_cv_cc_needs_belf+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343 if test x$gcc_no_link = xyes; then
4344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4346 { (exit 1); exit 1; }; }
4347 fi
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354
4355 int
4356 main ()
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 lt_cv_cc_needs_belf=yes
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 lt_cv_cc_needs_belf=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext \
4393 conftest$ac_exeext conftest.$ac_ext
4394 ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400 fi
4401 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4402 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4405 CFLAGS="$SAVE_CFLAGS"
4406 fi
4407 ;;
4408
4409
4410 esac
4411
4412
4413 # Save cache, so that ltconfig can load it
4414 cat >confcache <<\_ACEOF
4415 # This file is a shell script that caches the results of configure
4416 # tests run on this system so they can be shared between configure
4417 # scripts and configure runs, see configure's option --config-cache.
4418 # It is not useful on other systems. If it contains results you don't
4419 # want to keep, you may remove or edit it.
4420 #
4421 # config.status only pays attention to the cache file if you give it
4422 # the --recheck option to rerun configure.
4423 #
4424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4426 # following values.
4427
4428 _ACEOF
4429
4430 # The following way of writing the cache mishandles newlines in values,
4431 # but we know of no workaround that is simple, portable, and efficient.
4432 # So, don't put newlines in cache variables' values.
4433 # Ultrix sh set writes to stderr and can't be redirected directly,
4434 # and sets the high bit in the cache file unless we assign to the vars.
4435 {
4436 (set) 2>&1 |
4437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4438 *ac_space=\ *)
4439 # `set' does not quote correctly, so add quotes (double-quote
4440 # substitution turns \\\\ into \\, and sed turns \\ into \).
4441 sed -n \
4442 "s/'/'\\\\''/g;
4443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4444 ;;
4445 *)
4446 # `set' quotes correctly as required by POSIX, so do not add quotes.
4447 sed -n \
4448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4449 ;;
4450 esac;
4451 } |
4452 sed '
4453 t clear
4454 : clear
4455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4456 t end
4457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4458 : end' >>confcache
4459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4460 if test -w $cache_file; then
4461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4462 cat confcache >$cache_file
4463 else
4464 echo "not updating unwritable cache $cache_file"
4465 fi
4466 fi
4467 rm -f confcache
4468
4469 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4470 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4471 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4472 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4473 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4474 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4475 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4476 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4477 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4478 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4479 echo "$as_me: error: libtool configure failed" >&2;}
4480 { (exit 1); exit 1; }; }
4481
4482 # Reload cache, that may have been modified by ltconfig
4483 if test -r "$cache_file"; then
4484 # Some versions of bash will fail to source /dev/null (special
4485 # files actually), so we avoid doing that.
4486 if test -f "$cache_file"; then
4487 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4488 echo "$as_me: loading cache $cache_file" >&6;}
4489 case $cache_file in
4490 [\\/]* | ?:[\\/]* ) . $cache_file;;
4491 *) . ./$cache_file;;
4492 esac
4493 fi
4494 else
4495 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4496 echo "$as_me: creating cache $cache_file" >&6;}
4497 >$cache_file
4498 fi
4499
4500
4501 # This can be used to rebuild libtool when needed
4502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4503
4504 # Always use our own libtool.
4505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4506
4507 # Redirect the config.log output again, so that the ltconfig log is not
4508 # clobbered by the next message.
4509 exec 5>>./config.log
4510
4511
4512
4513
4514
4515
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543 done
4544 done
4545
4546 fi
4547 fi
4548 CC=$ac_cv_prog_CC
4549 if test -n "$CC"; then
4550 echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557 fi
4558 if test -z "$ac_cv_prog_CC"; then
4559 ac_ct_CC=$CC
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_ac_ct_CC="gcc"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583
4584 fi
4585 fi
4586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4587 if test -n "$ac_ct_CC"; then
4588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4589 echo "${ECHO_T}$ac_ct_CC" >&6
4590 else
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595 CC=$ac_ct_CC
4596 else
4597 CC="$ac_cv_prog_CC"
4598 fi
4599
4600 if test -z "$CC"; then
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}cc; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_CC="${ac_tool_prefix}cc"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625
4626 fi
4627 fi
4628 CC=$ac_cv_prog_CC
4629 if test -n "$CC"; then
4630 echo "$as_me:$LINENO: result: $CC" >&5
4631 echo "${ECHO_T}$CC" >&6
4632 else
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637 fi
4638 if test -z "$ac_cv_prog_CC"; then
4639 ac_ct_CC=$CC
4640 # Extract the first word of "cc", so it can be a program name with args.
4641 set dummy cc; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CC="cc"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663
4664 fi
4665 fi
4666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667 if test -n "$ac_ct_CC"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4669 echo "${ECHO_T}$ac_ct_CC" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4673 fi
4674
4675 CC=$ac_ct_CC
4676 else
4677 CC="$ac_cv_prog_CC"
4678 fi
4679
4680 fi
4681 if test -z "$CC"; then
4682 # Extract the first word of "cc", so it can be a program name with args.
4683 set dummy cc; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_CC+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 if test -n "$CC"; then
4690 ac_cv_prog_CC="$CC" # Let the user override the test.
4691 else
4692 ac_prog_rejected=no
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4701 ac_prog_rejected=yes
4702 continue
4703 fi
4704 ac_cv_prog_CC="cc"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710
4711 if test $ac_prog_rejected = yes; then
4712 # We found a bogon in the path, so make sure we never use it.
4713 set dummy $ac_cv_prog_CC
4714 shift
4715 if test $# != 0; then
4716 # We chose a different compiler from the bogus one.
4717 # However, it has the same basename, so the bogon will be chosen
4718 # first if we set CC to just the basename; use the full file name.
4719 shift
4720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 fi
4722 fi
4723 fi
4724 fi
4725 CC=$ac_cv_prog_CC
4726 if test -n "$CC"; then
4727 echo "$as_me:$LINENO: result: $CC" >&5
4728 echo "${ECHO_T}$CC" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734 fi
4735 if test -z "$CC"; then
4736 if test -n "$ac_tool_prefix"; then
4737 for ac_prog in cl
4738 do
4739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_CC+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 if test -n "$CC"; then
4747 ac_cv_prog_CC="$CC" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762
4763 fi
4764 fi
4765 CC=$ac_cv_prog_CC
4766 if test -n "$CC"; then
4767 echo "$as_me:$LINENO: result: $CC" >&5
4768 echo "${ECHO_T}$CC" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 test -n "$CC" && break
4775 done
4776 fi
4777 if test -z "$CC"; then
4778 ac_ct_CC=$CC
4779 for ac_prog in cl
4780 do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782 set dummy $ac_prog; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 if test -n "$ac_ct_CC"; then
4789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_ac_ct_CC="$ac_prog"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802 done
4803 done
4804
4805 fi
4806 fi
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4810 echo "${ECHO_T}$ac_ct_CC" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6
4814 fi
4815
4816 test -n "$ac_ct_CC" && break
4817 done
4818
4819 CC=$ac_ct_CC
4820 fi
4821
4822 fi
4823
4824
4825 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4826 See \`config.log' for more details." >&5
4827 echo "$as_me: error: no acceptable C compiler found in \$PATH
4828 See \`config.log' for more details." >&2;}
4829 { (exit 1); exit 1; }; }
4830
4831 # Provide some information about the compiler.
4832 echo "$as_me:$LINENO:" \
4833 "checking for C compiler version" >&5
4834 ac_compiler=`set X $ac_compile; echo $2`
4835 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4836 (eval $ac_compiler --version </dev/null >&5) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }
4840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4841 (eval $ac_compiler -v </dev/null >&5) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }
4845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4846 (eval $ac_compiler -V </dev/null >&5) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }
4850
4851 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866 #ifndef __GNUC__
4867 choke me
4868 #endif
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_compiler_gnu=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_compiler_gnu=no
4902 fi
4903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905
4906 fi
4907 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4909 GCC=`test $ac_compiler_gnu = yes && echo yes`
4910 ac_test_CFLAGS=${CFLAGS+set}
4911 ac_save_CFLAGS=$CFLAGS
4912 CFLAGS="-g"
4913 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4915 if test "${ac_cv_prog_cc_g+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924
4925 int
4926 main ()
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_prog_cc_g=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_cv_prog_cc_g=no
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974 else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980 fi
4981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 ac_cv_prog_cc_stdc=no
4987 ac_save_CC=$CC
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <stdarg.h>
4995 #include <stdio.h>
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5002 char **p;
5003 int i;
5004 {
5005 return p[i];
5006 }
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5008 {
5009 char *s;
5010 va_list v;
5011 va_start (v,p);
5012 s = g (p, va_arg (v,int));
5013 va_end (v);
5014 return s;
5015 }
5016
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std1 is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std1. */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026 int test (int i, double x);
5027 struct s1 {int (*f) (int a);};
5028 struct s2 {int (*f) (double a);};
5029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030 int argc;
5031 char **argv;
5032 int
5033 main ()
5034 {
5035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 # Don't try gcc -ansi; that turns off useful extensions and
5041 # breaks some systems' header files.
5042 # AIX -qlanglvl=ansi
5043 # Ultrix and OSF/1 -std1
5044 # HP-UX 10.20 and later -Ae
5045 # HP-UX older versions -Aa -D_HPUX_SOURCE
5046 # SVR4 -Xc -D__EXTENSIONS__
5047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 do
5049 CC="$ac_save_CC $ac_arg"
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag"
5060 || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_prog_cc_stdc=$ac_arg
5073 break
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext
5080 done
5081 rm -f conftest.$ac_ext conftest.$ac_objext
5082 CC=$ac_save_CC
5083
5084 fi
5085
5086 case "x$ac_cv_prog_cc_stdc" in
5087 x|xno)
5088 echo "$as_me:$LINENO: result: none needed" >&5
5089 echo "${ECHO_T}none needed" >&6 ;;
5090 *)
5091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5092 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5093 CC="$CC $ac_cv_prog_cc_stdc" ;;
5094 esac
5095
5096 # Some people use a C++ compiler to compile C. Since we use `exit',
5097 # in C++ we need to declare it. In case someone uses the same compiler
5098 # for both compiling C and C++ we need to have the C++ compiler decide
5099 # the declaration of exit, since it's the most demanding environment.
5100 cat >conftest.$ac_ext <<_ACEOF
5101 #ifndef __cplusplus
5102 choke me
5103 #endif
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -z "$ac_c_werror_flag"
5115 || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 for ac_declaration in \
5128 '' \
5129 'extern "C" void std::exit (int) throw (); using std::exit;' \
5130 'extern "C" void std::exit (int); using std::exit;' \
5131 'extern "C" void exit (int) throw ();' \
5132 'extern "C" void exit (int);' \
5133 'void exit (int);'
5134 do
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_declaration
5142 #include <stdlib.h>
5143 int
5144 main ()
5145 {
5146 exit (42);
5147 ;
5148 return 0;
5149 }
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 :
5174 else
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 continue
5179 fi
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_declaration
5188 int
5189 main ()
5190 {
5191 exit (42);
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 break
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 fi
5224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5225 done
5226 rm -f conftest*
5227 if test -n "$ac_declaration"; then
5228 echo '#ifdef __cplusplus' >>confdefs.h
5229 echo $ac_declaration >>confdefs.h
5230 echo '#endif' >>confdefs.h
5231 fi
5232
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 fi
5238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244
5245 depcc="$CC" am_compiler_list=
5246
5247 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5248 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5249 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5253 # We make a subdir and do the tests there. Otherwise we can end up
5254 # making bogus files that we don't know about and never remove. For
5255 # instance it was reported that on HP-UX the gcc test will end up
5256 # making a dummy file named `D' -- because `-MD' means `put the output
5257 # in D'.
5258 mkdir conftest.dir
5259 # Copy depcomp to subdir because otherwise we won't find it if we're
5260 # using a relative directory.
5261 cp "$am_depcomp" conftest.dir
5262 cd conftest.dir
5263 # We will build objects and dependencies in a subdirectory because
5264 # it helps to detect inapplicable dependency modes. For instance
5265 # both Tru64's cc and ICC support -MD to output dependencies as a
5266 # side effect of compilation, but ICC will put the dependencies in
5267 # the current directory while Tru64 will put them in the object
5268 # directory.
5269 mkdir sub
5270
5271 am_cv_CC_dependencies_compiler_type=none
5272 if test "$am_compiler_list" = ""; then
5273 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5274 fi
5275 for depmode in $am_compiler_list; do
5276 # Setup a source with many dependencies, because some compilers
5277 # like to wrap large dependency lists on column 80 (with \), and
5278 # we should not choose a depcomp mode which is confused by this.
5279 #
5280 # We need to recreate these files for each test, as the compiler may
5281 # overwrite some of them when testing with obscure command lines.
5282 # This happens at least with the AIX C compiler.
5283 : > sub/conftest.c
5284 for i in 1 2 3 4 5 6; do
5285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5286 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5287 # Solaris 8's {/usr,}/bin/sh.
5288 touch sub/conftst$i.h
5289 done
5290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5291
5292 case $depmode in
5293 nosideeffect)
5294 # after this tag, mechanisms are not by side-effect, so they'll
5295 # only be used when explicitly requested
5296 if test "x$enable_dependency_tracking" = xyes; then
5297 continue
5298 else
5299 break
5300 fi
5301 ;;
5302 none) break ;;
5303 esac
5304 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle `-M -o', and we need to detect this.
5307 if depmode=$depmode \
5308 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5310 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5311 >/dev/null 2>conftest.err &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CC_dependencies_compiler_type=$depmode
5325 break
5326 fi
5327 fi
5328 done
5329
5330 cd ..
5331 rm -rf conftest.dir
5332 else
5333 am_cv_CC_dependencies_compiler_type=none
5334 fi
5335
5336 fi
5337 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5338 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5340
5341
5342
5343 if
5344 test "x$enable_dependency_tracking" != xno \
5345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5346 am__fastdepCC_TRUE=
5347 am__fastdepCC_FALSE='#'
5348 else
5349 am__fastdepCC_TRUE='#'
5350 am__fastdepCC_FALSE=
5351 fi
5352
5353
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5360 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5361 # On Suns, sometimes $CPP names a directory.
5362 if test -n "$CPP" && test -d "$CPP"; then
5363 CPP=
5364 fi
5365 if test -z "$CPP"; then
5366 if test "${ac_cv_prog_CPP+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 # Double quotes because CPP needs to be expanded
5370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5371 do
5372 ac_preproc_ok=false
5373 for ac_c_preproc_warn_flag in '' yes
5374 do
5375 # Use a header file that comes with gcc, so configuring glibc
5376 # with a fresh cross-compiler works.
5377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5378 # <limits.h> exists even on freestanding compilers.
5379 # On the NeXT, cc -E runs the code through the compiler's parser,
5380 # not just through cpp. "Syntax error" is here to catch this case.
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #ifdef __STDC__
5388 # include <limits.h>
5389 #else
5390 # include <assert.h>
5391 #endif
5392 Syntax error
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 else
5406 ac_cpp_err=
5407 fi
5408 else
5409 ac_cpp_err=yes
5410 fi
5411 if test -z "$ac_cpp_err"; then
5412 :
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 # Broken: fails on valid input.
5418 continue
5419 fi
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 # OK, works on sane cases. Now check whether non-existent headers
5423 # can be detected and how.
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5431 _ACEOF
5432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5445 fi
5446 else
5447 ac_cpp_err=yes
5448 fi
5449 if test -z "$ac_cpp_err"; then
5450 # Broken: success on invalid input.
5451 continue
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 # Passes both tests.
5457 ac_preproc_ok=:
5458 break
5459 fi
5460 rm -f conftest.err conftest.$ac_ext
5461
5462 done
5463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5464 rm -f conftest.err conftest.$ac_ext
5465 if $ac_preproc_ok; then
5466 break
5467 fi
5468
5469 done
5470 ac_cv_prog_CPP=$CPP
5471
5472 fi
5473 CPP=$ac_cv_prog_CPP
5474 else
5475 ac_cv_prog_CPP=$CPP
5476 fi
5477 echo "$as_me:$LINENO: result: $CPP" >&5
5478 echo "${ECHO_T}$CPP" >&6
5479 ac_preproc_ok=false
5480 for ac_c_preproc_warn_flag in '' yes
5481 do
5482 # Use a header file that comes with gcc, so configuring glibc
5483 # with a fresh cross-compiler works.
5484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5485 # <limits.h> exists even on freestanding compilers.
5486 # On the NeXT, cc -E runs the code through the compiler's parser,
5487 # not just through cpp. "Syntax error" is here to catch this case.
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 #ifdef __STDC__
5495 # include <limits.h>
5496 #else
5497 # include <assert.h>
5498 #endif
5499 Syntax error
5500 _ACEOF
5501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev/null; then
5509 if test -s conftest.err; then
5510 ac_cpp_err=$ac_c_preproc_warn_flag
5511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5512 else
5513 ac_cpp_err=
5514 fi
5515 else
5516 ac_cpp_err=yes
5517 fi
5518 if test -z "$ac_cpp_err"; then
5519 :
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 # Broken: fails on valid input.
5525 continue
5526 fi
5527 rm -f conftest.err conftest.$ac_ext
5528
5529 # OK, works on sane cases. Now check whether non-existent headers
5530 # can be detected and how.
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <ac_nonexistent.h>
5538 _ACEOF
5539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } >/dev/null; then
5547 if test -s conftest.err; then
5548 ac_cpp_err=$ac_c_preproc_warn_flag
5549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5550 else
5551 ac_cpp_err=
5552 fi
5553 else
5554 ac_cpp_err=yes
5555 fi
5556 if test -z "$ac_cpp_err"; then
5557 # Broken: success on invalid input.
5558 continue
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 # Passes both tests.
5564 ac_preproc_ok=:
5565 break
5566 fi
5567 rm -f conftest.err conftest.$ac_ext
5568
5569 done
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.err conftest.$ac_ext
5572 if $ac_preproc_ok; then
5573 :
5574 else
5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5576 See \`config.log' for more details." >&5
5577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5578 See \`config.log' for more details." >&2;}
5579 { (exit 1); exit 1; }; }
5580 fi
5581
5582 ac_ext=c
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587
5588 ac_ext=cc
5589 ac_cpp='$CXXCPP $CPPFLAGS'
5590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5593 if test -n "$ac_tool_prefix"; then
5594 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5595 do
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5600 if test "${ac_cv_prog_CXX+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 if test -n "$CXX"; then
5604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619
5620 fi
5621 fi
5622 CXX=$ac_cv_prog_CXX
5623 if test -n "$CXX"; then
5624 echo "$as_me:$LINENO: result: $CXX" >&5
5625 echo "${ECHO_T}$CXX" >&6
5626 else
5627 echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6
5629 fi
5630
5631 test -n "$CXX" && break
5632 done
5633 fi
5634 if test -z "$CXX"; then
5635 ac_ct_CXX=$CXX
5636 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5637 do
5638 # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5642 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 if test -n "$ac_ct_CXX"; then
5646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_CXX="$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661
5662 fi
5663 fi
5664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5665 if test -n "$ac_ct_CXX"; then
5666 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5667 echo "${ECHO_T}$ac_ct_CXX" >&6
5668 else
5669 echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5671 fi
5672
5673 test -n "$ac_ct_CXX" && break
5674 done
5675 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5676
5677 CXX=$ac_ct_CXX
5678 fi
5679
5680
5681 # Provide some information about the compiler.
5682 echo "$as_me:$LINENO:" \
5683 "checking for C++ compiler version" >&5
5684 ac_compiler=`set X $ac_compile; echo $2`
5685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5686 (eval $ac_compiler --version </dev/null >&5) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }
5690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5691 (eval $ac_compiler -v </dev/null >&5) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }
5695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5696 (eval $ac_compiler -V </dev/null >&5) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }
5700
5701 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5702 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5703 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712
5713 int
5714 main ()
5715 {
5716 #ifndef __GNUC__
5717 choke me
5718 #endif
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_cxx_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_compiler_gnu=yes
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751 ac_compiler_gnu=no
5752 fi
5753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5755
5756 fi
5757 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5758 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5759 GXX=`test $ac_compiler_gnu = yes && echo yes`
5760 ac_test_CXXFLAGS=${CXXFLAGS+set}
5761 ac_save_CXXFLAGS=$CXXFLAGS
5762 CXXFLAGS="-g"
5763 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5764 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5765 if test "${ac_cv_prog_cxx_g+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774
5775 int
5776 main ()
5777 {
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_cxx_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_prog_cxx_g=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_cv_prog_cxx_g=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5815 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5816 if test "$ac_test_CXXFLAGS" = set; then
5817 CXXFLAGS=$ac_save_CXXFLAGS
5818 elif test $ac_cv_prog_cxx_g = yes; then
5819 if test "$GXX" = yes; then
5820 CXXFLAGS="-g -O2"
5821 else
5822 CXXFLAGS="-g"
5823 fi
5824 else
5825 if test "$GXX" = yes; then
5826 CXXFLAGS="-O2"
5827 else
5828 CXXFLAGS=
5829 fi
5830 fi
5831 for ac_declaration in \
5832 '' \
5833 'extern "C" void std::exit (int) throw (); using std::exit;' \
5834 'extern "C" void std::exit (int); using std::exit;' \
5835 'extern "C" void exit (int) throw ();' \
5836 'extern "C" void exit (int);' \
5837 'void exit (int);'
5838 do
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_declaration
5846 #include <stdlib.h>
5847 int
5848 main ()
5849 {
5850 exit (42);
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_cxx_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 :
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 continue
5883 fi
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 $ac_declaration
5892 int
5893 main ()
5894 {
5895 exit (42);
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_cxx_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 break
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 fi
5928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929 done
5930 rm -f conftest*
5931 if test -n "$ac_declaration"; then
5932 echo '#ifdef __cplusplus' >>confdefs.h
5933 echo $ac_declaration >>confdefs.h
5934 echo '#endif' >>confdefs.h
5935 fi
5936
5937 ac_ext=c
5938 ac_cpp='$CPP $CPPFLAGS'
5939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
5943 depcc="$CXX" am_compiler_list=
5944
5945 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5946 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5947 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5955 # in D'.
5956 mkdir conftest.dir
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5960 cd conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5966 # directory.
5967 mkdir sub
5968
5969 am_cv_CXX_dependencies_compiler_type=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5972 fi
5973 for depmode in $am_compiler_list; do
5974 # Setup a source with many dependencies, because some compilers
5975 # like to wrap large dependency lists on column 80 (with \), and
5976 # we should not choose a depcomp mode which is confused by this.
5977 #
5978 # We need to recreate these files for each test, as the compiler may
5979 # overwrite some of them when testing with obscure command lines.
5980 # This happens at least with the AIX C compiler.
5981 : > sub/conftest.c
5982 for i in 1 2 3 4 5 6; do
5983 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5984 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5985 # Solaris 8's {/usr,}/bin/sh.
5986 touch sub/conftst$i.h
5987 done
5988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5989
5990 case $depmode in
5991 nosideeffect)
5992 # after this tag, mechanisms are not by side-effect, so they'll
5993 # only be used when explicitly requested
5994 if test "x$enable_dependency_tracking" = xyes; then
5995 continue
5996 else
5997 break
5998 fi
5999 ;;
6000 none) break ;;
6001 esac
6002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6003 # mode. It turns out that the SunPro C++ compiler does not properly
6004 # handle `-M -o', and we need to detect this.
6005 if depmode=$depmode \
6006 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6008 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6009 >/dev/null 2>conftest.err &&
6010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6013 # icc doesn't choke on unknown options, it will just issue warnings
6014 # or remarks (even with -Werror). So we grep stderr for any message
6015 # that says an option was ignored or not supported.
6016 # When given -MP, icc 7.0 and 7.1 complain thusly:
6017 # icc: Command line warning: ignoring option '-M'; no argument required
6018 # The diagnosis changed in icc 8.0:
6019 # icc: Command line remark: option '-MP' not supported
6020 if (grep 'ignoring option' conftest.err ||
6021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6022 am_cv_CXX_dependencies_compiler_type=$depmode
6023 break
6024 fi
6025 fi
6026 done
6027
6028 cd ..
6029 rm -rf conftest.dir
6030 else
6031 am_cv_CXX_dependencies_compiler_type=none
6032 fi
6033
6034 fi
6035 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6036 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6037 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6038
6039
6040
6041 if
6042 test "x$enable_dependency_tracking" != xno \
6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6044 am__fastdepCXX_TRUE=
6045 am__fastdepCXX_FALSE='#'
6046 else
6047 am__fastdepCXX_TRUE='#'
6048 am__fastdepCXX_FALSE=
6049 fi
6050
6051 ac_ext=cc
6052 ac_cpp='$CXXCPP $CPPFLAGS'
6053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6056 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6057 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6058 if test -z "$CXXCPP"; then
6059 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 # Double quotes because CXXCPP needs to be expanded
6063 for CXXCPP in "$CXX -E" "/lib/cpp"
6064 do
6065 ac_preproc_ok=false
6066 for ac_cxx_preproc_warn_flag in '' yes
6067 do
6068 # Use a header file that comes with gcc, so configuring glibc
6069 # with a fresh cross-compiler works.
6070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6071 # <limits.h> exists even on freestanding compilers.
6072 # On the NeXT, cc -E runs the code through the compiler's parser,
6073 # not just through cpp. "Syntax error" is here to catch this case.
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #ifdef __STDC__
6081 # include <limits.h>
6082 #else
6083 # include <assert.h>
6084 #endif
6085 Syntax error
6086 _ACEOF
6087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } >/dev/null; then
6095 if test -s conftest.err; then
6096 ac_cpp_err=$ac_cxx_preproc_warn_flag
6097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6098 else
6099 ac_cpp_err=
6100 fi
6101 else
6102 ac_cpp_err=yes
6103 fi
6104 if test -z "$ac_cpp_err"; then
6105 :
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 # Broken: fails on valid input.
6111 continue
6112 fi
6113 rm -f conftest.err conftest.$ac_ext
6114
6115 # OK, works on sane cases. Now check whether non-existent headers
6116 # can be detected and how.
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <ac_nonexistent.h>
6124 _ACEOF
6125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } >/dev/null; then
6133 if test -s conftest.err; then
6134 ac_cpp_err=$ac_cxx_preproc_warn_flag
6135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6136 else
6137 ac_cpp_err=
6138 fi
6139 else
6140 ac_cpp_err=yes
6141 fi
6142 if test -z "$ac_cpp_err"; then
6143 # Broken: success on invalid input.
6144 continue
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 # Passes both tests.
6150 ac_preproc_ok=:
6151 break
6152 fi
6153 rm -f conftest.err conftest.$ac_ext
6154
6155 done
6156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6157 rm -f conftest.err conftest.$ac_ext
6158 if $ac_preproc_ok; then
6159 break
6160 fi
6161
6162 done
6163 ac_cv_prog_CXXCPP=$CXXCPP
6164
6165 fi
6166 CXXCPP=$ac_cv_prog_CXXCPP
6167 else
6168 ac_cv_prog_CXXCPP=$CXXCPP
6169 fi
6170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6171 echo "${ECHO_T}$CXXCPP" >&6
6172 ac_preproc_ok=false
6173 for ac_cxx_preproc_warn_flag in '' yes
6174 do
6175 # Use a header file that comes with gcc, so configuring glibc
6176 # with a fresh cross-compiler works.
6177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 # <limits.h> exists even on freestanding compilers.
6179 # On the NeXT, cc -E runs the code through the compiler's parser,
6180 # not just through cpp. "Syntax error" is here to catch this case.
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #ifdef __STDC__
6188 # include <limits.h>
6189 #else
6190 # include <assert.h>
6191 #endif
6192 Syntax error
6193 _ACEOF
6194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } >/dev/null; then
6202 if test -s conftest.err; then
6203 ac_cpp_err=$ac_cxx_preproc_warn_flag
6204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6205 else
6206 ac_cpp_err=
6207 fi
6208 else
6209 ac_cpp_err=yes
6210 fi
6211 if test -z "$ac_cpp_err"; then
6212 :
6213 else
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 # Broken: fails on valid input.
6218 continue
6219 fi
6220 rm -f conftest.err conftest.$ac_ext
6221
6222 # OK, works on sane cases. Now check whether non-existent headers
6223 # can be detected and how.
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <ac_nonexistent.h>
6231 _ACEOF
6232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null; then
6240 if test -s conftest.err; then
6241 ac_cpp_err=$ac_cxx_preproc_warn_flag
6242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6243 else
6244 ac_cpp_err=
6245 fi
6246 else
6247 ac_cpp_err=yes
6248 fi
6249 if test -z "$ac_cpp_err"; then
6250 # Broken: success on invalid input.
6251 continue
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 # Passes both tests.
6257 ac_preproc_ok=:
6258 break
6259 fi
6260 rm -f conftest.err conftest.$ac_ext
6261
6262 done
6263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6264 rm -f conftest.err conftest.$ac_ext
6265 if $ac_preproc_ok; then
6266 :
6267 else
6268 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6269 See \`config.log' for more details." >&5
6270 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6271 See \`config.log' for more details." >&2;}
6272 { (exit 1); exit 1; }; }
6273 fi
6274
6275 ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281
6282
6283 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6284 lt_save_CC="$CC"
6285 lt_save_CFLAGS="$CFLAGS"
6286 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6287 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6288 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6289 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6290 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6291 deplibs_check_method="$deplibs_check_method" \
6292 file_magic_cmd="$file_magic_cmd" \
6293 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6294 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6295 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6296 echo "$as_me: error: libtool tag configuration failed" >&2;}
6297 { (exit 1); exit 1; }; }
6298 CC="$lt_save_CC"
6299 CFLAGS="$lt_save_CFLAGS"
6300
6301 # Redirect the config.log output again, so that the ltconfig log is not
6302 # clobbered by the next message.
6303 exec 5>>./config.log
6304
6305
6306
6307
6308 if test "x${COMPILE_JNI}" = xyes; then
6309
6310 echo "$as_me:$LINENO: checking for egrep" >&5
6311 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6312 if test "${ac_cv_prog_egrep+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6316 then ac_cv_prog_egrep='grep -E'
6317 else ac_cv_prog_egrep='egrep'
6318 fi
6319 fi
6320 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6321 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6322 EGREP=$ac_cv_prog_egrep
6323
6324
6325 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6327 if test "${ac_cv_header_stdc+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #include <stdlib.h>
6337 #include <stdarg.h>
6338 #include <string.h>
6339 #include <float.h>
6340
6341 int
6342 main ()
6343 {
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -z "$ac_c_werror_flag"
6359 || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_header_stdc=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 ac_cv_header_stdc=no
6377 fi
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379
6380 if test $ac_cv_header_stdc = yes; then
6381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h. */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 #include <string.h>
6389
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "memchr" >/dev/null 2>&1; then
6393 :
6394 else
6395 ac_cv_header_stdc=no
6396 fi
6397 rm -f conftest*
6398
6399 fi
6400
6401 if test $ac_cv_header_stdc = yes; then
6402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 #include <stdlib.h>
6410
6411 _ACEOF
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "free" >/dev/null 2>&1; then
6414 :
6415 else
6416 ac_cv_header_stdc=no
6417 fi
6418 rm -f conftest*
6419
6420 fi
6421
6422 if test $ac_cv_header_stdc = yes; then
6423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6424 if test "$cross_compiling" = yes; then
6425 :
6426 else
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 #include <ctype.h>
6434 #if ((' ' & 0x0FF) == 0x020)
6435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6437 #else
6438 # define ISLOWER(c) \
6439 (('a' <= (c) && (c) <= 'i') \
6440 || ('j' <= (c) && (c) <= 'r') \
6441 || ('s' <= (c) && (c) <= 'z'))
6442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6443 #endif
6444
6445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6446 int
6447 main ()
6448 {
6449 int i;
6450 for (i = 0; i < 256; i++)
6451 if (XOR (islower (i), ISLOWER (i))
6452 || toupper (i) != TOUPPER (i))
6453 exit(2);
6454 exit (0);
6455 }
6456 _ACEOF
6457 rm -f conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 :
6469 else
6470 echo "$as_me: program exited with status $ac_status" >&5
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ( exit $ac_status )
6475 ac_cv_header_stdc=no
6476 fi
6477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 fi
6480 fi
6481 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6482 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6483 if test $ac_cv_header_stdc = yes; then
6484
6485 cat >>confdefs.h <<\_ACEOF
6486 #define STDC_HEADERS 1
6487 _ACEOF
6488
6489 fi
6490
6491
6492 echo "$as_me:$LINENO: checking size of void *" >&5
6493 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6494 if test "${ac_cv_sizeof_void_p+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 #include "confdefs.h"
6505 #include <sys/types.h>
6506
6507
6508 int
6509 main ()
6510 {
6511 switch (0) case 0: case (sizeof (void *) == $ac_size):;
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518 (eval $ac_compile) 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -z "$ac_c_werror_flag"
6526 || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_sizeof_void_p=$ac_size
6539 else
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 fi
6544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545 if test x$ac_cv_sizeof_void_p != x ; then break; fi
6546 done
6547
6548 fi
6549
6550 if test x$ac_cv_sizeof_void_p = x ; then
6551 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
6552 echo "$as_me: error: cannot determine a size for void *" >&2;}
6553 { (exit 1); exit 1; }; }
6554 fi
6555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6556 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6557
6558 cat >>confdefs.h <<_ACEOF
6559 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6560 _ACEOF
6561
6562
6563
6564 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6565 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6566 if test "${ac_cv_c_bigendian+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 ac_cv_c_bigendian=unknown
6570 # See if sys/param.h defines the BYTE_ORDER macro.
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 #include <sys/param.h>
6579 int
6580 main ()
6581 {
6582
6583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6584 bogus endian macros
6585 #endif
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest.$ac_objext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 # It does; now see whether it defined to BIG_ENDIAN or not.
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <sys/types.h>
6620 #include <sys/param.h>
6621 int
6622 main ()
6623 {
6624
6625 #if BYTE_ORDER != BIG_ENDIAN
6626 not big endian
6627 #endif
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_c_bigendian=yes
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 ac_cv_c_bigendian=no
6660 fi
6661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 fi
6667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668 if test $ac_cv_c_bigendian = unknown; then
6669 if test "$cross_compiling" = yes; then
6670 echo $ac_n "cross-compiling... " 2>&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 main () {
6679 /* Are we little or big endian? From Harbison&Steele. */
6680 union
6681 {
6682 long l;
6683 char c[sizeof (long)];
6684 } u;
6685 u.l = 1;
6686 exit (u.c[sizeof (long) - 1] == 1);
6687 }
6688 _ACEOF
6689 rm -f conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_c_bigendian=no
6701 else
6702 echo "$as_me: program exited with status $ac_status" >&5
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ( exit $ac_status )
6707 ac_cv_c_bigendian=yes
6708 fi
6709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6710 fi
6711 fi
6712 fi
6713 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6714 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6715 if test $ac_cv_c_bigendian = unknown; then
6716 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6717 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6718
6719 cat >conftest.c <<EOF
6720 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6721 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6722 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6723 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6724 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6725 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6726 int main() { _ascii (); _ebcdic (); return 0; }
6727 EOF
6728 if test -f conftest.c ; then
6729 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6730 if test `grep -l BIGenDianSyS conftest.o` ; then
6731 echo $ac_n ' big endian probe OK, ' 1>&6
6732 ac_cv_c_bigendian=yes
6733 fi
6734 if test `grep -l LiTTleEnDian conftest.o` ; then
6735 echo $ac_n ' little endian probe OK, ' 1>&6
6736 if test $ac_cv_c_bigendian = yes ; then
6737 ac_cv_c_bigendian=unknown;
6738 else
6739 ac_cv_c_bigendian=no
6740 fi
6741 fi
6742 echo $ac_n 'guessing bigendian ... ' >&6
6743 fi
6744 fi
6745 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6746 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6747 fi
6748 if test $ac_cv_c_bigendian = yes; then
6749
6750 cat >>confdefs.h <<\_ACEOF
6751 #define WORDS_BIGENDIAN 1
6752 _ACEOF
6753
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HOST_WORDS_BIG_ENDIAN 1
6757 _ACEOF
6758
6759 BYTEORDER=4321
6760 else
6761 BYTEORDER=1234
6762 fi
6763
6764 cat >>confdefs.h <<_ACEOF
6765 #define BYTEORDER $BYTEORDER
6766 _ACEOF
6767
6768 if test $ac_cv_c_bigendian = unknown; then
6769 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6770 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6771 { (exit 1); exit 1; }; }
6772 fi
6773
6774
6775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6786 inttypes.h stdint.h unistd.h
6787 do
6788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 $ac_includes_default
6801
6802 #include <$ac_header>
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 (eval $ac_compile) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest.$ac_objext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 eval "$as_ac_Header=yes"
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 eval "$as_ac_Header=no"
6832 fi
6833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6834 fi
6835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6838 cat >>confdefs.h <<_ACEOF
6839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6840 _ACEOF
6841
6842 fi
6843
6844 done
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
6863 asm/ioctls.h \
6864 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
6865 sys/time.h \
6866 sys/select.h \
6867 crt_externs.h \
6868 fcntl.h \
6869 sys/mman.h
6870 do
6871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873 echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 fi
6878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6880 else
6881 # Is the header compilable?
6882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 $ac_includes_default
6891 #include <$ac_header>
6892 _ACEOF
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_header_compiler=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_header_compiler=no
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6924 echo "${ECHO_T}$ac_header_compiler" >&6
6925
6926 # Is the header present?
6927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <$ac_header>
6936 _ACEOF
6937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } >/dev/null; then
6945 if test -s conftest.err; then
6946 ac_cpp_err=$ac_c_preproc_warn_flag
6947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6948 else
6949 ac_cpp_err=
6950 fi
6951 else
6952 ac_cpp_err=yes
6953 fi
6954 if test -z "$ac_cpp_err"; then
6955 ac_header_preproc=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_header_preproc=no
6961 fi
6962 rm -f conftest.err conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6964 echo "${ECHO_T}$ac_header_preproc" >&6
6965
6966 # So? What about this header?
6967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6968 yes:no: )
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6973 ac_header_preproc=yes
6974 ;;
6975 no:yes:* )
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6988 (
6989 cat <<\_ASBOX
6990 ## -------------------------------- ##
6991 ## Report this to classpath@gnu.org ##
6992 ## -------------------------------- ##
6993 _ASBOX
6994 ) |
6995 sed "s/^/$as_me: WARNING: /" >&2
6996 ;;
6997 esac
6998 echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 eval "$as_ac_Header=\$ac_header_preproc"
7004 fi
7005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007
7008 fi
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015
7016 done
7017
7018
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <stdint.h>
7026
7027 _ACEOF
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "uint32_t" >/dev/null 2>&1; then
7030
7031 cat >>confdefs.h <<\_ACEOF
7032 #define HAVE_INT32_DEFINED 1
7033 _ACEOF
7034
7035 fi
7036 rm -f conftest*
7037
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <inttypes.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "uint32_t" >/dev/null 2>&1; then
7049
7050 cat >>confdefs.h <<\_ACEOF
7051 #define HAVE_INT32_DEFINED 1
7052 _ACEOF
7053
7054 fi
7055 rm -f conftest*
7056
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #include <sys/types.h>
7064
7065 _ACEOF
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 $EGREP "u_int32_t" >/dev/null 2>&1; then
7068
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_BSD_INT32_DEFINED 1
7071 _ACEOF
7072
7073 fi
7074 rm -f conftest*
7075
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 #include <sys/config.h>
7083
7084 _ACEOF
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 $EGREP "u_int32_t" >/dev/null 2>&1; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_BSD_INT32_DEFINED 1
7090 _ACEOF
7091
7092 fi
7093 rm -f conftest*
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 for ac_func in ftruncate fsync select \
7138 gethostname socket strerror fork pipe execve open close \
7139 lseek fstat read write htonl memset htons connect \
7140 getsockname getpeername bind listen accept \
7141 recvfrom send sendto setsockopt getsockopt time mktime \
7142 localtime_r \
7143 strerror_r \
7144 fcntl \
7145 mmap munmap mincore msync madvise getpagesize sysconf
7146 do
7147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7148 echo "$as_me:$LINENO: checking for $ac_func" >&5
7149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7150 if eval "test \"\${$as_ac_var+set}\" = set"; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 if test x$gcc_no_link = xyes; then
7154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7156 { (exit 1); exit 1; }; }
7157 fi
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h. */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7166 #define $ac_func innocuous_$ac_func
7167
7168 /* System header to define __stub macros and hopefully few prototypes,
7169 which can conflict with char $ac_func (); below.
7170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171 <limits.h> exists even on freestanding compilers. */
7172
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178
7179 #undef $ac_func
7180
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 #ifdef __cplusplus
7183 extern "C"
7184 {
7185 #endif
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7188 char $ac_func ();
7189 /* The GNU C library defines this for functions which it implements
7190 to always fail with ENOSYS. Some functions are actually named
7191 something starting with __ and the normal name is an alias. */
7192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 choke me
7194 #else
7195 char (*f) () = $ac_func;
7196 #endif
7197 #ifdef __cplusplus
7198 }
7199 #endif
7200
7201 int
7202 main ()
7203 {
7204 return f != $ac_func;
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7231 eval "$as_ac_var=yes"
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 eval "$as_ac_var=no"
7237 fi
7238 rm -f conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7240 fi
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7243 if test `eval echo '${'$as_ac_var'}'` = yes; then
7244 cat >>confdefs.h <<_ACEOF
7245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7246 _ACEOF
7247
7248 fi
7249 done
7250
7251
7252 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7253 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7254 if test "${ac_cv_header_time+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 #include <sys/types.h>
7264 #include <sys/time.h>
7265 #include <time.h>
7266
7267 int
7268 main ()
7269 {
7270 if ((struct tm *) 0)
7271 return 0;
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest.$ac_objext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_header_time=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7302
7303 ac_cv_header_time=no
7304 fi
7305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 fi
7307 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7308 echo "${ECHO_T}$ac_cv_header_time" >&6
7309 if test $ac_cv_header_time = yes; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define TIME_WITH_SYS_TIME 1
7313 _ACEOF
7314
7315 fi
7316
7317 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7318 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7319 if test "${ac_cv_struct_tm+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <sys/types.h>
7329 #include <time.h>
7330
7331 int
7332 main ()
7333 {
7334 struct tm *tp; tp->tm_sec;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_struct_tm=time.h
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 ac_cv_struct_tm=sys/time.h
7367 fi
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7371 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7372 if test $ac_cv_struct_tm = sys/time.h; then
7373
7374 cat >>confdefs.h <<\_ACEOF
7375 #define TM_IN_SYS_TIME 1
7376 _ACEOF
7377
7378 fi
7379
7380 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7381 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7382 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #include <sys/types.h>
7392 #include <$ac_cv_struct_tm>
7393
7394
7395 int
7396 main ()
7397 {
7398 static struct tm ac_aggr;
7399 if (ac_aggr.tm_zone)
7400 return 0;
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -z "$ac_c_werror_flag"
7415 || test ! -s conftest.err'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest.$ac_objext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_cv_member_struct_tm_tm_zone=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <sys/types.h>
7439 #include <$ac_cv_struct_tm>
7440
7441
7442 int
7443 main ()
7444 {
7445 static struct tm ac_aggr;
7446 if (sizeof ac_aggr.tm_zone)
7447 return 0;
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } &&
7461 { ac_try='test -z "$ac_c_werror_flag"
7462 || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_cv_member_struct_tm_tm_zone=yes
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_cv_member_struct_tm_tm_zone=no
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7486 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7487 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_STRUCT_TM_TM_ZONE 1
7491 _ACEOF
7492
7493
7494 fi
7495
7496 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7497
7498 cat >>confdefs.h <<\_ACEOF
7499 #define HAVE_TM_ZONE 1
7500 _ACEOF
7501
7502 else
7503 echo "$as_me:$LINENO: checking for tzname" >&5
7504 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7505 if test "${ac_cv_var_tzname+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 if test x$gcc_no_link = xyes; then
7509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7511 { (exit 1); exit 1; }; }
7512 fi
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <time.h>
7520 #ifndef tzname /* For SGI. */
7521 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7522 #endif
7523
7524 int
7525 main ()
7526 {
7527 atoi(*tzname);
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7534 (eval $ac_link) 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try='test -s conftest$ac_exeext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_var_tzname=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_cv_var_tzname=no
7560 fi
7561 rm -f conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 fi
7564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7566 if test $ac_cv_var_tzname = yes; then
7567
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_TZNAME 1
7570 _ACEOF
7571
7572 fi
7573 fi
7574
7575
7576 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
7577 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7579 /* confdefs.h. */
7580 _ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 #include <time.h>
7585 int
7586 main ()
7587 {
7588 struct tm tim; tim.tm_gmtoff = 0;
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define STRUCT_TM_HAS_GMTOFF 1
7618 _ACEOF
7619
7620 echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6
7628 echo "$as_me:$LINENO: checking for global timezone variable" >&5
7629 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <time.h>
7637 int
7638 main ()
7639 {
7640 void i(){long z2 = 2*timezone;}
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_TIMEZONE 1
7670 _ACEOF
7671
7672 echo "$as_me:$LINENO: result: yes" >&5
7673 echo "${ECHO_T}yes" >&6
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7680 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
7681 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #include <time.h>
7689 int
7690 main ()
7691 {
7692 long z2 = _timezone;
7693 ;
7694 return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_UNDERSCORE_TIMEZONE 1
7722 _ACEOF
7723
7724 echo "$as_me:$LINENO: result: yes" >&5
7725 echo "${ECHO_T}yes" >&6
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7732 fi
7733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738
7739 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7740 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7741 if test "${ac_cv_c_const+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750
7751 int
7752 main ()
7753 {
7754 /* FIXME: Include the comments suggested by Paul. */
7755 #ifndef __cplusplus
7756 /* Ultrix mips cc rejects this. */
7757 typedef int charset[2];
7758 const charset x;
7759 /* SunOS 4.1.1 cc rejects this. */
7760 char const *const *ccp;
7761 char **p;
7762 /* NEC SVR4.0.2 mips cc rejects this. */
7763 struct point {int x, y;};
7764 static struct point const zero = {0,0};
7765 /* AIX XL C 1.02.0.0 rejects this.
7766 It does not let you subtract one const X* pointer from another in
7767 an arm of an if-expression whose if-part is not a constant
7768 expression */
7769 const char *g = "string";
7770 ccp = &g + (g ? g-g : 0);
7771 /* HPUX 7.0 cc rejects these. */
7772 ++ccp;
7773 p = (char**) ccp;
7774 ccp = (char const *const *) p;
7775 { /* SCO 3.2v4 cc rejects this. */
7776 char *t;
7777 char const *s = 0 ? (char *) 0 : (char const *) 0;
7778
7779 *t++ = 0;
7780 }
7781 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7782 int x[] = {25, 17};
7783 const int *foo = &x[0];
7784 ++foo;
7785 }
7786 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7787 typedef const int *iptr;
7788 iptr p = 0;
7789 ++p;
7790 }
7791 { /* AIX XL C 1.02.0.0 rejects this saying
7792 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7793 struct s { int j; const int *ap[3]; };
7794 struct s *b; b->j = 5;
7795 }
7796 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7797 const int foo = 10;
7798 }
7799 #endif
7800
7801 ;
7802 return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807 (eval $ac_compile) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest.$ac_objext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_cv_c_const=yes
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_c_const=no
7833 fi
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7837 echo "${ECHO_T}$ac_cv_c_const" >&6
7838 if test $ac_cv_c_const = no; then
7839
7840 cat >>confdefs.h <<\_ACEOF
7841 #define const
7842 _ACEOF
7843
7844 fi
7845
7846
7847
7848 if test "X$prefix" = "XNONE"; then
7849 acl_final_prefix="$ac_default_prefix"
7850 else
7851 acl_final_prefix="$prefix"
7852 fi
7853 if test "X$exec_prefix" = "XNONE"; then
7854 acl_final_exec_prefix='${prefix}'
7855 else
7856 acl_final_exec_prefix="$exec_prefix"
7857 fi
7858 acl_save_prefix="$prefix"
7859 prefix="$acl_final_prefix"
7860 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7861 prefix="$acl_save_prefix"
7862
7863
7864 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7865 if test "${with_gnu_ld+set}" = set; then
7866 withval="$with_gnu_ld"
7867 test "$withval" = no || with_gnu_ld=yes
7868 else
7869 with_gnu_ld=no
7870 fi;
7871 # Prepare PATH_SEPARATOR.
7872 # The user is always right.
7873 if test "${PATH_SEPARATOR+set}" != set; then
7874 echo "#! /bin/sh" >conf$$.sh
7875 echo "exit 0" >>conf$$.sh
7876 chmod +x conf$$.sh
7877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7878 PATH_SEPARATOR=';'
7879 else
7880 PATH_SEPARATOR=:
7881 fi
7882 rm -f conf$$.sh
7883 fi
7884 ac_prog=ld
7885 if test "$GCC" = yes; then
7886 # Check if gcc -print-prog-name=ld gives a path.
7887 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7888 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7889 case $host in
7890 *-*-mingw*)
7891 # gcc leaves a trailing carriage return which upsets mingw
7892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7893 *)
7894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7895 esac
7896 case $ac_prog in
7897 # Accept absolute paths.
7898 [\\/]* | [A-Za-z]:[\\/]*)
7899 re_direlt='/[^/][^/]*/\.\./'
7900 # Canonicalize the path of ld
7901 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7902 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7903 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7904 done
7905 test -z "$LD" && LD="$ac_prog"
7906 ;;
7907 "")
7908 # If it fails, then pretend we aren't using GCC.
7909 ac_prog=ld
7910 ;;
7911 *)
7912 # If it is relative, then search for the first ld in PATH.
7913 with_gnu_ld=unknown
7914 ;;
7915 esac
7916 elif test "$with_gnu_ld" = yes; then
7917 echo "$as_me:$LINENO: checking for GNU ld" >&5
7918 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7919 else
7920 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7921 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7922 fi
7923 if test "${acl_cv_path_LD+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 if test -z "$LD"; then
7927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7928 for ac_dir in $PATH; do
7929 test -z "$ac_dir" && ac_dir=.
7930 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7931 acl_cv_path_LD="$ac_dir/$ac_prog"
7932 # Check to see if the program is GNU ld. I'd rather use --version,
7933 # but apparently some GNU ld's only accept -v.
7934 # Break only if it was the GNU/non-GNU ld that we prefer.
7935 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7936 test "$with_gnu_ld" != no && break
7937 else
7938 test "$with_gnu_ld" != yes && break
7939 fi
7940 fi
7941 done
7942 IFS="$ac_save_ifs"
7943 else
7944 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7945 fi
7946 fi
7947
7948 LD="$acl_cv_path_LD"
7949 if test -n "$LD"; then
7950 echo "$as_me:$LINENO: result: $LD" >&5
7951 echo "${ECHO_T}$LD" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 fi
7956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7958 { (exit 1); exit 1; }; }
7959 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7961 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7965 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7966 acl_cv_prog_gnu_ld=yes
7967 else
7968 acl_cv_prog_gnu_ld=no
7969 fi
7970 fi
7971 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7972 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7973 with_gnu_ld=$acl_cv_prog_gnu_ld
7974
7975
7976
7977 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7978 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7979 if test "${acl_cv_rpath+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982
7983 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7984 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7985 . ./conftest.sh
7986 rm -f ./conftest.sh
7987 acl_cv_rpath=done
7988
7989 fi
7990 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7991 echo "${ECHO_T}$acl_cv_rpath" >&6
7992 wl="$acl_cv_wl"
7993 libext="$acl_cv_libext"
7994 shlibext="$acl_cv_shlibext"
7995 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7996 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7997 hardcode_direct="$acl_cv_hardcode_direct"
7998 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7999 # Check whether --enable-rpath or --disable-rpath was given.
8000 if test "${enable_rpath+set}" = set; then
8001 enableval="$enable_rpath"
8002 :
8003 else
8004 enable_rpath=yes
8005 fi;
8006
8007
8008
8009
8010
8011
8012
8013 use_additional=yes
8014
8015 acl_save_prefix="$prefix"
8016 prefix="$acl_final_prefix"
8017 acl_save_exec_prefix="$exec_prefix"
8018 exec_prefix="$acl_final_exec_prefix"
8019
8020 eval additional_includedir=\"$includedir\"
8021 eval additional_libdir=\"$libdir\"
8022
8023 exec_prefix="$acl_save_exec_prefix"
8024 prefix="$acl_save_prefix"
8025
8026
8027 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8028 if test "${with_libiconv_prefix+set}" = set; then
8029 withval="$with_libiconv_prefix"
8030
8031 if test "X$withval" = "Xno"; then
8032 use_additional=no
8033 else
8034 if test "X$withval" = "X"; then
8035
8036 acl_save_prefix="$prefix"
8037 prefix="$acl_final_prefix"
8038 acl_save_exec_prefix="$exec_prefix"
8039 exec_prefix="$acl_final_exec_prefix"
8040
8041 eval additional_includedir=\"$includedir\"
8042 eval additional_libdir=\"$libdir\"
8043
8044 exec_prefix="$acl_save_exec_prefix"
8045 prefix="$acl_save_prefix"
8046
8047 else
8048 additional_includedir="$withval/include"
8049 additional_libdir="$withval/lib"
8050 fi
8051 fi
8052
8053 fi;
8054 LIBICONV=
8055 LTLIBICONV=
8056 INCICONV=
8057 rpathdirs=
8058 ltrpathdirs=
8059 names_already_handled=
8060 names_next_round='iconv '
8061 while test -n "$names_next_round"; do
8062 names_this_round="$names_next_round"
8063 names_next_round=
8064 for name in $names_this_round; do
8065 already_handled=
8066 for n in $names_already_handled; do
8067 if test "$n" = "$name"; then
8068 already_handled=yes
8069 break
8070 fi
8071 done
8072 if test -z "$already_handled"; then
8073 names_already_handled="$names_already_handled $name"
8074 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8075 eval value=\"\$HAVE_LIB$uppername\"
8076 if test -n "$value"; then
8077 if test "$value" = yes; then
8078 eval value=\"\$LIB$uppername\"
8079 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8080 eval value=\"\$LTLIB$uppername\"
8081 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8082 else
8083 :
8084 fi
8085 else
8086 found_dir=
8087 found_la=
8088 found_so=
8089 found_a=
8090 if test $use_additional = yes; then
8091 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8092 found_dir="$additional_libdir"
8093 found_so="$additional_libdir/lib$name.$shlibext"
8094 if test -f "$additional_libdir/lib$name.la"; then
8095 found_la="$additional_libdir/lib$name.la"
8096 fi
8097 else
8098 if test -f "$additional_libdir/lib$name.$libext"; then
8099 found_dir="$additional_libdir"
8100 found_a="$additional_libdir/lib$name.$libext"
8101 if test -f "$additional_libdir/lib$name.la"; then
8102 found_la="$additional_libdir/lib$name.la"
8103 fi
8104 fi
8105 fi
8106 fi
8107 if test "X$found_dir" = "X"; then
8108 for x in $LDFLAGS $LTLIBICONV; do
8109
8110 acl_save_prefix="$prefix"
8111 prefix="$acl_final_prefix"
8112 acl_save_exec_prefix="$exec_prefix"
8113 exec_prefix="$acl_final_exec_prefix"
8114 eval x=\"$x\"
8115 exec_prefix="$acl_save_exec_prefix"
8116 prefix="$acl_save_prefix"
8117
8118 case "$x" in
8119 -L*)
8120 dir=`echo "X$x" | sed -e 's/^X-L//'`
8121 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8122 found_dir="$dir"
8123 found_so="$dir/lib$name.$shlibext"
8124 if test -f "$dir/lib$name.la"; then
8125 found_la="$dir/lib$name.la"
8126 fi
8127 else
8128 if test -f "$dir/lib$name.$libext"; then
8129 found_dir="$dir"
8130 found_a="$dir/lib$name.$libext"
8131 if test -f "$dir/lib$name.la"; then
8132 found_la="$dir/lib$name.la"
8133 fi
8134 fi
8135 fi
8136 ;;
8137 esac
8138 if test "X$found_dir" != "X"; then
8139 break
8140 fi
8141 done
8142 fi
8143 if test "X$found_dir" != "X"; then
8144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8145 if test "X$found_so" != "X"; then
8146 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8148 else
8149 haveit=
8150 for x in $ltrpathdirs; do
8151 if test "X$x" = "X$found_dir"; then
8152 haveit=yes
8153 break
8154 fi
8155 done
8156 if test -z "$haveit"; then
8157 ltrpathdirs="$ltrpathdirs $found_dir"
8158 fi
8159 if test "$hardcode_direct" = yes; then
8160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8161 else
8162 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8164 haveit=
8165 for x in $rpathdirs; do
8166 if test "X$x" = "X$found_dir"; then
8167 haveit=yes
8168 break
8169 fi
8170 done
8171 if test -z "$haveit"; then
8172 rpathdirs="$rpathdirs $found_dir"
8173 fi
8174 else
8175 haveit=
8176 for x in $LDFLAGS $LIBICONV; do
8177
8178 acl_save_prefix="$prefix"
8179 prefix="$acl_final_prefix"
8180 acl_save_exec_prefix="$exec_prefix"
8181 exec_prefix="$acl_final_exec_prefix"
8182 eval x=\"$x\"
8183 exec_prefix="$acl_save_exec_prefix"
8184 prefix="$acl_save_prefix"
8185
8186 if test "X$x" = "X-L$found_dir"; then
8187 haveit=yes
8188 break
8189 fi
8190 done
8191 if test -z "$haveit"; then
8192 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8193 fi
8194 if test "$hardcode_minus_L" != no; then
8195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8196 else
8197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8198 fi
8199 fi
8200 fi
8201 fi
8202 else
8203 if test "X$found_a" != "X"; then
8204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8205 else
8206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8207 fi
8208 fi
8209 additional_includedir=
8210 case "$found_dir" in
8211 */lib | */lib/)
8212 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8213 additional_includedir="$basedir/include"
8214 ;;
8215 esac
8216 if test "X$additional_includedir" != "X"; then
8217 if test "X$additional_includedir" != "X/usr/include"; then
8218 haveit=
8219 if test "X$additional_includedir" = "X/usr/local/include"; then
8220 if test -n "$GCC"; then
8221 case $host_os in
8222 linux*) haveit=yes;;
8223 esac
8224 fi
8225 fi
8226 if test -z "$haveit"; then
8227 for x in $CPPFLAGS $INCICONV; do
8228
8229 acl_save_prefix="$prefix"
8230 prefix="$acl_final_prefix"
8231 acl_save_exec_prefix="$exec_prefix"
8232 exec_prefix="$acl_final_exec_prefix"
8233 eval x=\"$x\"
8234 exec_prefix="$acl_save_exec_prefix"
8235 prefix="$acl_save_prefix"
8236
8237 if test "X$x" = "X-I$additional_includedir"; then
8238 haveit=yes
8239 break
8240 fi
8241 done
8242 if test -z "$haveit"; then
8243 if test -d "$additional_includedir"; then
8244 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8245 fi
8246 fi
8247 fi
8248 fi
8249 fi
8250 if test -n "$found_la"; then
8251 save_libdir="$libdir"
8252 case "$found_la" in
8253 */* | *\\*) . "$found_la" ;;
8254 *) . "./$found_la" ;;
8255 esac
8256 libdir="$save_libdir"
8257 for dep in $dependency_libs; do
8258 case "$dep" in
8259 -L*)
8260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8261 if test "X$additional_libdir" != "X/usr/lib"; then
8262 haveit=
8263 if test "X$additional_libdir" = "X/usr/local/lib"; then
8264 if test -n "$GCC"; then
8265 case $host_os in
8266 linux*) haveit=yes;;
8267 esac
8268 fi
8269 fi
8270 if test -z "$haveit"; then
8271 haveit=
8272 for x in $LDFLAGS $LIBICONV; do
8273
8274 acl_save_prefix="$prefix"
8275 prefix="$acl_final_prefix"
8276 acl_save_exec_prefix="$exec_prefix"
8277 exec_prefix="$acl_final_exec_prefix"
8278 eval x=\"$x\"
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8281
8282 if test "X$x" = "X-L$additional_libdir"; then
8283 haveit=yes
8284 break
8285 fi
8286 done
8287 if test -z "$haveit"; then
8288 if test -d "$additional_libdir"; then
8289 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8290 fi
8291 fi
8292 haveit=
8293 for x in $LDFLAGS $LTLIBICONV; do
8294
8295 acl_save_prefix="$prefix"
8296 prefix="$acl_final_prefix"
8297 acl_save_exec_prefix="$exec_prefix"
8298 exec_prefix="$acl_final_exec_prefix"
8299 eval x=\"$x\"
8300 exec_prefix="$acl_save_exec_prefix"
8301 prefix="$acl_save_prefix"
8302
8303 if test "X$x" = "X-L$additional_libdir"; then
8304 haveit=yes
8305 break
8306 fi
8307 done
8308 if test -z "$haveit"; then
8309 if test -d "$additional_libdir"; then
8310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8311 fi
8312 fi
8313 fi
8314 fi
8315 ;;
8316 -R*)
8317 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8318 if test "$enable_rpath" != no; then
8319 haveit=
8320 for x in $rpathdirs; do
8321 if test "X$x" = "X$dir"; then
8322 haveit=yes
8323 break
8324 fi
8325 done
8326 if test -z "$haveit"; then
8327 rpathdirs="$rpathdirs $dir"
8328 fi
8329 haveit=
8330 for x in $ltrpathdirs; do
8331 if test "X$x" = "X$dir"; then
8332 haveit=yes
8333 break
8334 fi
8335 done
8336 if test -z "$haveit"; then
8337 ltrpathdirs="$ltrpathdirs $dir"
8338 fi
8339 fi
8340 ;;
8341 -l*)
8342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8343 ;;
8344 *.la)
8345 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8346 ;;
8347 *)
8348 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8350 ;;
8351 esac
8352 done
8353 fi
8354 else
8355 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8357 fi
8358 fi
8359 fi
8360 done
8361 done
8362 if test "X$rpathdirs" != "X"; then
8363 if test -n "$hardcode_libdir_separator"; then
8364 alldirs=
8365 for found_dir in $rpathdirs; do
8366 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8367 done
8368 acl_save_libdir="$libdir"
8369 libdir="$alldirs"
8370 eval flag=\"$hardcode_libdir_flag_spec\"
8371 libdir="$acl_save_libdir"
8372 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8373 else
8374 for found_dir in $rpathdirs; do
8375 acl_save_libdir="$libdir"
8376 libdir="$found_dir"
8377 eval flag=\"$hardcode_libdir_flag_spec\"
8378 libdir="$acl_save_libdir"
8379 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8380 done
8381 fi
8382 fi
8383 if test "X$ltrpathdirs" != "X"; then
8384 for found_dir in $ltrpathdirs; do
8385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8386 done
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395 am_save_CPPFLAGS="$CPPFLAGS"
8396
8397 for element in $INCICONV; do
8398 haveit=
8399 for x in $CPPFLAGS; do
8400
8401 acl_save_prefix="$prefix"
8402 prefix="$acl_final_prefix"
8403 acl_save_exec_prefix="$exec_prefix"
8404 exec_prefix="$acl_final_exec_prefix"
8405 eval x=\"$x\"
8406 exec_prefix="$acl_save_exec_prefix"
8407 prefix="$acl_save_prefix"
8408
8409 if test "X$x" = "X$element"; then
8410 haveit=yes
8411 break
8412 fi
8413 done
8414 if test -z "$haveit"; then
8415 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8416 fi
8417 done
8418
8419
8420 echo "$as_me:$LINENO: checking for iconv" >&5
8421 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8422 if test "${am_cv_func_iconv+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425
8426 am_cv_func_iconv="no, consider installing GNU libiconv"
8427 am_cv_lib_iconv=no
8428 if test x$gcc_no_link = xyes; then
8429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8431 { (exit 1); exit 1; }; }
8432 fi
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 #include <stdlib.h>
8440 #include <iconv.h>
8441 int
8442 main ()
8443 {
8444 iconv_t cd = iconv_open("","");
8445 iconv(cd,NULL,NULL,NULL,NULL);
8446 iconv_close(cd);
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8453 (eval $ac_link) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag"
8461 || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 am_cv_func_iconv=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 fi
8479 rm -f conftest.err conftest.$ac_objext \
8480 conftest$ac_exeext conftest.$ac_ext
8481 if test "$am_cv_func_iconv" != yes; then
8482 am_save_LIBS="$LIBS"
8483 LIBS="$LIBS $LIBICONV"
8484 if test x$gcc_no_link = xyes; then
8485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8487 { (exit 1); exit 1; }; }
8488 fi
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <stdlib.h>
8496 #include <iconv.h>
8497 int
8498 main ()
8499 {
8500 iconv_t cd = iconv_open("","");
8501 iconv(cd,NULL,NULL,NULL,NULL);
8502 iconv_close(cd);
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>conftest.er1
8510 ac_status=$?
8511 grep -v '^ *+' conftest.er1 >conftest.err
8512 rm -f conftest.er1
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -z "$ac_c_werror_flag"
8517 || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 am_cv_lib_iconv=yes
8530 am_cv_func_iconv=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 fi
8536 rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS="$am_save_LIBS"
8539 fi
8540
8541 fi
8542 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8543 echo "${ECHO_T}$am_cv_func_iconv" >&6
8544 if test "$am_cv_func_iconv" = yes; then
8545
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_ICONV 1
8548 _ACEOF
8549
8550 fi
8551 if test "$am_cv_lib_iconv" = yes; then
8552 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8553 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8554 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8555 echo "${ECHO_T}$LIBICONV" >&6
8556 else
8557 CPPFLAGS="$am_save_CPPFLAGS"
8558 LIBICONV=
8559 LTLIBICONV=
8560 fi
8561
8562
8563
8564 if test "$am_cv_func_iconv" = yes; then
8565 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8566 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8567 if test "${am_cv_proto_iconv+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577
8578 #include <stdlib.h>
8579 #include <iconv.h>
8580 extern
8581 #ifdef __cplusplus
8582 "C"
8583 #endif
8584 #if defined(__STDC__) || defined(__cplusplus)
8585 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8586 #else
8587 size_t iconv();
8588 #endif
8589
8590 int
8591 main ()
8592 {
8593
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 am_cv_proto_iconv_arg1=""
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 am_cv_proto_iconv_arg1="const"
8626 fi
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 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);"
8629 fi
8630
8631 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8632 echo "$as_me:$LINENO: result: ${ac_t:-
8633 }$am_cv_proto_iconv" >&5
8634 echo "${ECHO_T}${ac_t:-
8635 }$am_cv_proto_iconv" >&6
8636
8637 cat >>confdefs.h <<_ACEOF
8638 #define ICONV_CONST $am_cv_proto_iconv_arg1
8639 _ACEOF
8640
8641 fi
8642
8643
8644 if test "x${GCC}" = xyes; then
8645
8646 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
8647
8648
8649 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
8650
8651
8652 ERROR_CFLAGS=
8653 if test "x${ENABLE_WERROR}" = xyes; then
8654 ERROR_CFLAGS='-Werror'
8655 fi
8656
8657 fi
8658
8659 if test "x${COMPILE_XMLJ}" = xyes; then
8660
8661 succeeded=no
8662
8663 if test -z "$PKG_CONFIG"; then
8664 # Extract the first word of "pkg-config", so it can be a program name with args.
8665 set dummy pkg-config; ac_word=$2
8666 echo "$as_me:$LINENO: checking for $ac_word" >&5
8667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 case $PKG_CONFIG in
8672 [\\/]* | ?:[\\/]*)
8673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8674 ;;
8675 *)
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8686 fi
8687 done
8688 done
8689
8690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8691 ;;
8692 esac
8693 fi
8694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8695
8696 if test -n "$PKG_CONFIG"; then
8697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8698 echo "${ECHO_T}$PKG_CONFIG" >&6
8699 else
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8702 fi
8703
8704 fi
8705
8706 if test "$PKG_CONFIG" = "no" ; then
8707 echo "*** The pkg-config script could not be found. Make sure it is"
8708 echo "*** in your path, or set the PKG_CONFIG environment variable"
8709 echo "*** to the full path to pkg-config."
8710 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8711 else
8712 PKG_CONFIG_MIN_VERSION=0.9.0
8713 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8714 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
8715 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
8716
8717 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
8718 echo "$as_me:$LINENO: result: yes" >&5
8719 echo "${ECHO_T}yes" >&6
8720 succeeded=yes
8721
8722 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
8723 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
8724 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
8725 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
8726 echo "${ECHO_T}$XML_CFLAGS" >&6
8727
8728 echo "$as_me:$LINENO: checking XML_LIBS" >&5
8729 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
8730 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
8731 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
8732 echo "${ECHO_T}$XML_LIBS" >&6
8733 else
8734 XML_CFLAGS=""
8735 XML_LIBS=""
8736 ## If we have a custom action on failure, don't print errors, but
8737 ## do set a variable so people can do so.
8738 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
8739 echo $XML_PKG_ERRORS
8740 fi
8741
8742
8743
8744 else
8745 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8746 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8747 fi
8748 fi
8749
8750 if test $succeeded = yes; then
8751 :
8752 else
8753 { { 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
8754 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;}
8755 { (exit 1); exit 1; }; }
8756 fi
8757
8758
8759 succeeded=no
8760
8761 if test -z "$PKG_CONFIG"; then
8762 # Extract the first word of "pkg-config", so it can be a program name with args.
8763 set dummy pkg-config; ac_word=$2
8764 echo "$as_me:$LINENO: checking for $ac_word" >&5
8765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 case $PKG_CONFIG in
8770 [\\/]* | ?:[\\/]*)
8771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8772 ;;
8773 *)
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787
8788 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8789 ;;
8790 esac
8791 fi
8792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8793
8794 if test -n "$PKG_CONFIG"; then
8795 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8796 echo "${ECHO_T}$PKG_CONFIG" >&6
8797 else
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8800 fi
8801
8802 fi
8803
8804 if test "$PKG_CONFIG" = "no" ; then
8805 echo "*** The pkg-config script could not be found. Make sure it is"
8806 echo "*** in your path, or set the PKG_CONFIG environment variable"
8807 echo "*** to the full path to pkg-config."
8808 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8809 else
8810 PKG_CONFIG_MIN_VERSION=0.9.0
8811 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8812 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
8813 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
8814
8815 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
8816 echo "$as_me:$LINENO: result: yes" >&5
8817 echo "${ECHO_T}yes" >&6
8818 succeeded=yes
8819
8820 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
8821 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
8822 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
8823 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
8824 echo "${ECHO_T}$XSLT_CFLAGS" >&6
8825
8826 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
8827 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
8828 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
8829 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
8830 echo "${ECHO_T}$XSLT_LIBS" >&6
8831 else
8832 XSLT_CFLAGS=""
8833 XSLT_LIBS=""
8834 ## If we have a custom action on failure, don't print errors, but
8835 ## do set a variable so people can do so.
8836 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
8837 echo $XSLT_PKG_ERRORS
8838 fi
8839
8840
8841
8842 else
8843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8845 fi
8846 fi
8847
8848 if test $succeeded = yes; then
8849 :
8850 else
8851 { { 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
8852 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;}
8853 { (exit 1); exit 1; }; }
8854 fi
8855
8856
8857
8858
8859
8860 fi
8861
8862 if test "x${COMPILE_GTK_PEER}" = xyes; then
8863 echo "$as_me:$LINENO: checking for X" >&5
8864 echo $ECHO_N "checking for X... $ECHO_C" >&6
8865
8866
8867 # Check whether --with-x or --without-x was given.
8868 if test "${with_x+set}" = set; then
8869 withval="$with_x"
8870
8871 fi;
8872 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8873 if test "x$with_x" = xno; then
8874 # The user explicitly disabled X.
8875 have_x=disabled
8876 else
8877 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8878 # Both variables are already set.
8879 have_x=yes
8880 else
8881 if test "${ac_cv_have_x+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884 # One or both of the vars are not set, and there is no cached value.
8885 ac_x_includes=no ac_x_libraries=no
8886 rm -fr conftest.dir
8887 if mkdir conftest.dir; then
8888 cd conftest.dir
8889 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8890 cat >Imakefile <<'_ACEOF'
8891 acfindx:
8892 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8893 _ACEOF
8894 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8896 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8897 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8898 for ac_extension in a so sl; do
8899 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8900 test -f $ac_im_libdir/libX11.$ac_extension; then
8901 ac_im_usrlibdir=$ac_im_libdir; break
8902 fi
8903 done
8904 # Screen out bogus values from the imake configuration. They are
8905 # bogus both because they are the default anyway, and because
8906 # using them would break gcc on systems where it needs fixed includes.
8907 case $ac_im_incroot in
8908 /usr/include) ;;
8909 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8910 esac
8911 case $ac_im_usrlibdir in
8912 /usr/lib | /lib) ;;
8913 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8914 esac
8915 fi
8916 cd ..
8917 rm -fr conftest.dir
8918 fi
8919
8920 # Standard set of common directories for X headers.
8921 # Check X11 before X11Rn because it is often a symlink to the current release.
8922 ac_x_header_dirs='
8923 /usr/X11/include
8924 /usr/X11R6/include
8925 /usr/X11R5/include
8926 /usr/X11R4/include
8927
8928 /usr/include/X11
8929 /usr/include/X11R6
8930 /usr/include/X11R5
8931 /usr/include/X11R4
8932
8933 /usr/local/X11/include
8934 /usr/local/X11R6/include
8935 /usr/local/X11R5/include
8936 /usr/local/X11R4/include
8937
8938 /usr/local/include/X11
8939 /usr/local/include/X11R6
8940 /usr/local/include/X11R5
8941 /usr/local/include/X11R4
8942
8943 /usr/X386/include
8944 /usr/x386/include
8945 /usr/XFree86/include/X11
8946
8947 /usr/include
8948 /usr/local/include
8949 /usr/unsupported/include
8950 /usr/athena/include
8951 /usr/local/x11r5/include
8952 /usr/lpp/Xamples/include
8953
8954 /usr/openwin/include
8955 /usr/openwin/share/include'
8956
8957 if test "$ac_x_includes" = no; then
8958 # Guess where to find include files, by looking for Intrinsic.h.
8959 # First, try using that file with no special directory specified.
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 #include <X11/Intrinsic.h>
8967 _ACEOF
8968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } >/dev/null; then
8976 if test -s conftest.err; then
8977 ac_cpp_err=$ac_c_preproc_warn_flag
8978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8979 else
8980 ac_cpp_err=
8981 fi
8982 else
8983 ac_cpp_err=yes
8984 fi
8985 if test -z "$ac_cpp_err"; then
8986 # We can compile using X headers with no special include directory.
8987 ac_x_includes=
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 for ac_dir in $ac_x_header_dirs; do
8993 if test -r "$ac_dir/X11/Intrinsic.h"; then
8994 ac_x_includes=$ac_dir
8995 break
8996 fi
8997 done
8998 fi
8999 rm -f conftest.err conftest.$ac_ext
9000 fi # $ac_x_includes = no
9001
9002 if test "$ac_x_libraries" = no; then
9003 # Check for the libraries.
9004 # See if we find them without any special options.
9005 # Don't add to $LIBS permanently.
9006 ac_save_LIBS=$LIBS
9007 LIBS="-lXt $LIBS"
9008 if test x$gcc_no_link = xyes; then
9009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9011 { (exit 1); exit 1; }; }
9012 fi
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 #include <X11/Intrinsic.h>
9020 int
9021 main ()
9022 {
9023 XtMalloc (0)
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 LIBS=$ac_save_LIBS
9051 # We can link X programs with no special library path.
9052 ac_x_libraries=
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 LIBS=$ac_save_LIBS
9058 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9059 do
9060 # Don't even attempt the hair of trying to link an X program!
9061 for ac_extension in a so sl; do
9062 if test -r $ac_dir/libXt.$ac_extension; then
9063 ac_x_libraries=$ac_dir
9064 break 2
9065 fi
9066 done
9067 done
9068 fi
9069 rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 fi # $ac_x_libraries = no
9072
9073 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9074 # Didn't find X anywhere. Cache the known absence of X.
9075 ac_cv_have_x="have_x=no"
9076 else
9077 # Record where we found X for the cache.
9078 ac_cv_have_x="have_x=yes \
9079 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9080 fi
9081 fi
9082
9083 fi
9084 eval "$ac_cv_have_x"
9085 fi # $with_x != no
9086
9087 if test "$have_x" != yes; then
9088 echo "$as_me:$LINENO: result: $have_x" >&5
9089 echo "${ECHO_T}$have_x" >&6
9090 no_x=yes
9091 else
9092 # If each of the values was on the command line, it overrides each guess.
9093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9095 # Update the cache value to reflect the command line values.
9096 ac_cv_have_x="have_x=yes \
9097 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9098 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9099 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9100 fi
9101
9102 if test "$no_x" = yes; then
9103 # Not all programs may use this symbol, but it does not hurt to define it.
9104
9105 cat >>confdefs.h <<\_ACEOF
9106 #define X_DISPLAY_MISSING 1
9107 _ACEOF
9108
9109 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9110 else
9111 if test -n "$x_includes"; then
9112 X_CFLAGS="$X_CFLAGS -I$x_includes"
9113 fi
9114
9115 # It would also be nice to do this for all -L options, not just this one.
9116 if test -n "$x_libraries"; then
9117 X_LIBS="$X_LIBS -L$x_libraries"
9118 # For Solaris; some versions of Sun CC require a space after -R and
9119 # others require no space. Words are not sufficient . . . .
9120 case `(uname -sr) 2>/dev/null` in
9121 "SunOS 5"*)
9122 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9123 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9124 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9125 if test x$gcc_no_link = xyes; then
9126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9128 { (exit 1); exit 1; }; }
9129 fi
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136
9137 int
9138 main ()
9139 {
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9147 (eval $ac_link) 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -z "$ac_c_werror_flag"
9155 || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest$ac_exeext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_R_nospace=yes
9168 else
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9171
9172 ac_R_nospace=no
9173 fi
9174 rm -f conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 if test $ac_R_nospace = yes; then
9177 echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179 X_LIBS="$X_LIBS -R$x_libraries"
9180 else
9181 LIBS="$ac_xsave_LIBS -R $x_libraries"
9182 if test x$gcc_no_link = xyes; then
9183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9185 { (exit 1); exit 1; }; }
9186 fi
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193
9194 int
9195 main ()
9196 {
9197
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -z "$ac_c_werror_flag"
9212 || test ! -s conftest.err'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; } &&
9218 { ac_try='test -s conftest$ac_exeext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 ac_R_space=yes
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 ac_R_space=no
9230 fi
9231 rm -f conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test $ac_R_space = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235 echo "${ECHO_T}yes" >&6
9236 X_LIBS="$X_LIBS -R $x_libraries"
9237 else
9238 echo "$as_me:$LINENO: result: neither works" >&5
9239 echo "${ECHO_T}neither works" >&6
9240 fi
9241 fi
9242 LIBS=$ac_xsave_LIBS
9243 esac
9244 fi
9245
9246 # Check for system-dependent libraries X programs must link with.
9247 # Do this before checking for the system-independent R6 libraries
9248 # (-lICE), since we may need -lsocket or whatever for X linking.
9249
9250 if test "$ISC" = yes; then
9251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9252 else
9253 # Martyn Johnson says this is needed for Ultrix, if the X
9254 # libraries were built with DECnet support. And Karl Berry says
9255 # the Alpha needs dnet_stub (dnet does not exist).
9256 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9257 if test x$gcc_no_link = xyes; then
9258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268
9269 /* Override any gcc2 internal prototype to avoid an error. */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275 char XOpenDisplay ();
9276 int
9277 main ()
9278 {
9279 XOpenDisplay ();
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 :
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9312 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9313 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-ldnet $LIBS"
9318 if test x$gcc_no_link = xyes; then
9319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9321 { (exit 1); exit 1; }; }
9322 fi
9323 cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h. */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9329
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336 char dnet_ntoa ();
9337 int
9338 main ()
9339 {
9340 dnet_ntoa ();
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_lib_dnet_dnet_ntoa=yes
9368 else
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 ac_cv_lib_dnet_dnet_ntoa=no
9373 fi
9374 rm -f conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9377 fi
9378 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9379 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9380 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9381 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9382 fi
9383
9384 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9385 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9386 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9387 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 ac_check_lib_save_LIBS=$LIBS
9391 LIBS="-ldnet_stub $LIBS"
9392 if test x$gcc_no_link = xyes; then
9393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9395 { (exit 1); exit 1; }; }
9396 fi
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 #endif
9408 /* We use char because int might match the return type of a gcc2
9409 builtin and then its argument prototype would still apply. */
9410 char dnet_ntoa ();
9411 int
9412 main ()
9413 {
9414 dnet_ntoa ();
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ac_cv_lib_dnet_stub_dnet_ntoa=no
9447 fi
9448 rm -f conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9451 fi
9452 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9453 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9454 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9455 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9456 fi
9457
9458 fi
9459 fi
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 LIBS="$ac_xsave_LIBS"
9463
9464 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9465 # to get the SysV transport functions.
9466 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9467 # needs -lnsl.
9468 # The nsl library prevents programs from opening the X display
9469 # on Irix 5.2, according to T.E. Dickey.
9470 # The functions gethostbyname, getservbyname, and inet_addr are
9471 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9472 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9473 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9474 if test "${ac_cv_func_gethostbyname+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 if test x$gcc_no_link = xyes; then
9478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9480 { (exit 1); exit 1; }; }
9481 fi
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define gethostbyname innocuous_gethostbyname
9491
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char gethostbyname (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9496
9497 #ifdef __STDC__
9498 # include <limits.h>
9499 #else
9500 # include <assert.h>
9501 #endif
9502
9503 #undef gethostbyname
9504
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 {
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char gethostbyname ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9517 choke me
9518 #else
9519 char (*f) () = gethostbyname;
9520 #endif
9521 #ifdef __cplusplus
9522 }
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return f != gethostbyname;
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag"
9543 || test ! -s conftest.err'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_cv_func_gethostbyname=yes
9556 else
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_func_gethostbyname=no
9561 fi
9562 rm -f conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 fi
9565 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9566 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9567
9568 if test $ac_cv_func_gethostbyname = no; then
9569 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9570 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9571 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-lnsl $LIBS"
9576 if test x$gcc_no_link = xyes; then
9577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9579 { (exit 1); exit 1; }; }
9580 fi
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587
9588 /* Override any gcc2 internal prototype to avoid an error. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char gethostbyname ();
9595 int
9596 main ()
9597 {
9598 gethostbyname ();
9599 ;
9600 return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_cv_lib_nsl_gethostbyname=yes
9626 else
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_lib_nsl_gethostbyname=no
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9637 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9638 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9640 fi
9641
9642 if test $ac_cv_lib_nsl_gethostbyname = no; then
9643 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9644 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9645 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-lbsd $LIBS"
9650 if test x$gcc_no_link = xyes; then
9651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9653 { (exit 1); exit 1; }; }
9654 fi
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661
9662 /* Override any gcc2 internal prototype to avoid an error. */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9668 char gethostbyname ();
9669 int
9670 main ()
9671 {
9672 gethostbyname ();
9673 ;
9674 return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_bsd_gethostbyname=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_cv_lib_bsd_gethostbyname=no
9705 fi
9706 rm -f conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9709 fi
9710 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9711 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9712 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9714 fi
9715
9716 fi
9717 fi
9718
9719 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9720 # socket/setsockopt and other routines are undefined under SCO ODT
9721 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9722 # on later versions), says Simon Leinen: it contains gethostby*
9723 # variants that don't use the name server (or something). -lsocket
9724 # must be given before -lnsl if both are needed. We assume that
9725 # if connect needs -lnsl, so does gethostbyname.
9726 echo "$as_me:$LINENO: checking for connect" >&5
9727 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9728 if test "${ac_cv_func_connect+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 if test x$gcc_no_link = xyes; then
9732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9734 { (exit 1); exit 1; }; }
9735 fi
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744 #define connect innocuous_connect
9745
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char connect (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9750
9751 #ifdef __STDC__
9752 # include <limits.h>
9753 #else
9754 # include <assert.h>
9755 #endif
9756
9757 #undef connect
9758
9759 /* Override any gcc2 internal prototype to avoid an error. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 {
9763 #endif
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9766 char connect ();
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_connect) || defined (__stub___connect)
9771 choke me
9772 #else
9773 char (*f) () = connect;
9774 #endif
9775 #ifdef __cplusplus
9776 }
9777 #endif
9778
9779 int
9780 main ()
9781 {
9782 return f != connect;
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_func_connect=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_cv_func_connect=no
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 fi
9819 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9820 echo "${ECHO_T}$ac_cv_func_connect" >&6
9821
9822 if test $ac_cv_func_connect = no; then
9823 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9824 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9825 if test "${ac_cv_lib_socket_connect+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 ac_check_lib_save_LIBS=$LIBS
9829 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9830 if test x$gcc_no_link = xyes; then
9831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9833 { (exit 1); exit 1; }; }
9834 fi
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841
9842 /* Override any gcc2 internal prototype to avoid an error. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9848 char connect ();
9849 int
9850 main ()
9851 {
9852 connect ();
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_socket_connect=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_cv_lib_socket_connect=no
9885 fi
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9891 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9892 if test $ac_cv_lib_socket_connect = yes; then
9893 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9894 fi
9895
9896 fi
9897
9898 # Guillermo Gomez says -lposix is necessary on A/UX.
9899 echo "$as_me:$LINENO: checking for remove" >&5
9900 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9901 if test "${ac_cv_func_remove+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 if test x$gcc_no_link = xyes; then
9905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9907 { (exit 1); exit 1; }; }
9908 fi
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9917 #define remove innocuous_remove
9918
9919 /* System header to define __stub macros and hopefully few prototypes,
9920 which can conflict with char remove (); below.
9921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9922 <limits.h> exists even on freestanding compilers. */
9923
9924 #ifdef __STDC__
9925 # include <limits.h>
9926 #else
9927 # include <assert.h>
9928 #endif
9929
9930 #undef remove
9931
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 {
9936 #endif
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939 char remove ();
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined (__stub_remove) || defined (__stub___remove)
9944 choke me
9945 #else
9946 char (*f) () = remove;
9947 #endif
9948 #ifdef __cplusplus
9949 }
9950 #endif
9951
9952 int
9953 main ()
9954 {
9955 return f != remove;
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || 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_cv_func_remove=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_cv_func_remove=no
9988 fi
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 fi
9992 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9993 echo "${ECHO_T}$ac_cv_func_remove" >&6
9994
9995 if test $ac_cv_func_remove = no; then
9996 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9997 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9998 if test "${ac_cv_lib_posix_remove+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 ac_check_lib_save_LIBS=$LIBS
10002 LIBS="-lposix $LIBS"
10003 if test x$gcc_no_link = xyes; then
10004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10006 { (exit 1); exit 1; }; }
10007 fi
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014
10015 /* Override any gcc2 internal prototype to avoid an error. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021 char remove ();
10022 int
10023 main ()
10024 {
10025 remove ();
10026 ;
10027 return 0;
10028 }
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag"
10040 || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_lib_posix_remove=yes
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_cv_lib_posix_remove=no
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10064 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10065 if test $ac_cv_lib_posix_remove = yes; then
10066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10067 fi
10068
10069 fi
10070
10071 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10072 echo "$as_me:$LINENO: checking for shmat" >&5
10073 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10074 if test "${ac_cv_func_shmat+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 if test x$gcc_no_link = xyes; then
10078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10080 { (exit 1); exit 1; }; }
10081 fi
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10090 #define shmat innocuous_shmat
10091
10092 /* System header to define __stub macros and hopefully few prototypes,
10093 which can conflict with char shmat (); below.
10094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095 <limits.h> exists even on freestanding compilers. */
10096
10097 #ifdef __STDC__
10098 # include <limits.h>
10099 #else
10100 # include <assert.h>
10101 #endif
10102
10103 #undef shmat
10104
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 {
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char shmat ();
10113 /* The GNU C library defines this for functions which it implements
10114 to always fail with ENOSYS. Some functions are actually named
10115 something starting with __ and the normal name is an alias. */
10116 #if defined (__stub_shmat) || defined (__stub___shmat)
10117 choke me
10118 #else
10119 char (*f) () = shmat;
10120 #endif
10121 #ifdef __cplusplus
10122 }
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return f != shmat;
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_func_shmat=yes
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 ac_cv_func_shmat=no
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10166 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10167
10168 if test $ac_cv_func_shmat = no; then
10169 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10170 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10171 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lipc $LIBS"
10176 if test x$gcc_no_link = xyes; then
10177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10179 { (exit 1); exit 1; }; }
10180 fi
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187
10188 /* Override any gcc2 internal prototype to avoid an error. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194 char shmat ();
10195 int
10196 main ()
10197 {
10198 shmat ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag"
10213 || test ! -s conftest.err'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lib_ipc_shmat=yes
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_ipc_shmat=no
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10237 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10238 if test $ac_cv_lib_ipc_shmat = yes; then
10239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10240 fi
10241
10242 fi
10243 fi
10244
10245 # Check for libraries that X11R6 Xt/Xaw programs need.
10246 ac_save_LDFLAGS=$LDFLAGS
10247 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10248 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10249 # check for ICE first), but we must link in the order -lSM -lICE or
10250 # we get undefined symbols. So assume we have SM if we have ICE.
10251 # These have to be linked with before -lX11, unlike the other
10252 # libraries we check for below, so use a different variable.
10253 # John Interrante, Karl Berry
10254 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10255 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10256 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10261 if test x$gcc_no_link = xyes; then
10262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10264 { (exit 1); exit 1; }; }
10265 fi
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272
10273 /* Override any gcc2 internal prototype to avoid an error. */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 /* We use char because int might match the return type of a gcc2
10278 builtin and then its argument prototype would still apply. */
10279 char IceConnectionNumber ();
10280 int
10281 main ()
10282 {
10283 IceConnectionNumber ();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag"
10298 || test ! -s conftest.err'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_lib_ICE_IceConnectionNumber=yes
10311 else
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 ac_cv_lib_ICE_IceConnectionNumber=no
10316 fi
10317 rm -f conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10320 fi
10321 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10322 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10323 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10324 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10325 fi
10326
10327 LDFLAGS=$ac_save_LDFLAGS
10328
10329 fi
10330
10331 if test "$no_x" = yes; then
10332 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
10333 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
10334 { (exit 1); exit 1; }; }
10335 fi
10336 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
10337 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
10338 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lXtst ${X_LIBS} $LIBS"
10343 if test x$gcc_no_link = xyes; then
10344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10346 { (exit 1); exit 1; }; }
10347 fi
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354
10355 /* Override any gcc2 internal prototype to avoid an error. */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 /* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */
10361 char XTestQueryExtension ();
10362 int
10363 main ()
10364 {
10365 XTestQueryExtension ();
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag"
10380 || test ! -s conftest.err'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_cv_lib_Xtst_XTestQueryExtension=yes
10393 else
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_lib_Xtst_XTestQueryExtension=no
10398 fi
10399 rm -f conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
10404 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
10405 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
10406 true
10407 else
10408 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
10409 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
10410 { (exit 1); exit 1; }; }
10411 fi
10412
10413
10414 succeeded=no
10415
10416 if test -z "$PKG_CONFIG"; then
10417 # Extract the first word of "pkg-config", so it can be a program name with args.
10418 set dummy pkg-config; ac_word=$2
10419 echo "$as_me:$LINENO: checking for $ac_word" >&5
10420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424 case $PKG_CONFIG in
10425 [\\/]* | ?:[\\/]*)
10426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10427 ;;
10428 *)
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10431 do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440 done
10441 done
10442
10443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10444 ;;
10445 esac
10446 fi
10447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10448
10449 if test -n "$PKG_CONFIG"; then
10450 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10451 echo "${ECHO_T}$PKG_CONFIG" >&6
10452 else
10453 echo "$as_me:$LINENO: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10455 fi
10456
10457 fi
10458
10459 if test "$PKG_CONFIG" = "no" ; then
10460 echo "*** The pkg-config script could not be found. Make sure it is"
10461 echo "*** in your path, or set the PKG_CONFIG environment variable"
10462 echo "*** to the full path to pkg-config."
10463 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10464 else
10465 PKG_CONFIG_MIN_VERSION=0.9.0
10466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10467 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
10468 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
10469
10470 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
10471 echo "$as_me:$LINENO: result: yes" >&5
10472 echo "${ECHO_T}yes" >&6
10473 succeeded=yes
10474
10475 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10476 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10477 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
10478 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10479 echo "${ECHO_T}$GTK_CFLAGS" >&6
10480
10481 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10482 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10483 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
10484 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10485 echo "${ECHO_T}$GTK_LIBS" >&6
10486 else
10487 GTK_CFLAGS=""
10488 GTK_LIBS=""
10489 ## If we have a custom action on failure, don't print errors, but
10490 ## do set a variable so people can do so.
10491 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
10492 echo $GTK_PKG_ERRORS
10493 fi
10494
10495
10496
10497 else
10498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10500 fi
10501 fi
10502
10503 if test $succeeded = yes; then
10504 :
10505 else
10506 { { 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
10507 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;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511
10512
10513 fi
10514
10515 if test "x${COMPILE_QT_PEER}" = xyes; then
10516
10517 succeeded=no
10518
10519 if test -z "$PKG_CONFIG"; then
10520 # Extract the first word of "pkg-config", so it can be a program name with args.
10521 set dummy pkg-config; ac_word=$2
10522 echo "$as_me:$LINENO: checking for $ac_word" >&5
10523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 case $PKG_CONFIG in
10528 [\\/]* | ?:[\\/]*)
10529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10530 ;;
10531 *)
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543 done
10544 done
10545
10546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10547 ;;
10548 esac
10549 fi
10550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10551
10552 if test -n "$PKG_CONFIG"; then
10553 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10554 echo "${ECHO_T}$PKG_CONFIG" >&6
10555 else
10556 echo "$as_me:$LINENO: result: no" >&5
10557 echo "${ECHO_T}no" >&6
10558 fi
10559
10560 fi
10561
10562 if test "$PKG_CONFIG" = "no" ; then
10563 echo "*** The pkg-config script could not be found. Make sure it is"
10564 echo "*** in your path, or set the PKG_CONFIG environment variable"
10565 echo "*** to the full path to pkg-config."
10566 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10567 else
10568 PKG_CONFIG_MIN_VERSION=0.9.0
10569 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10570 echo "$as_me:$LINENO: checking for QtGui >= 4.0.1" >&5
10571 echo $ECHO_N "checking for QtGui >= 4.0.1... $ECHO_C" >&6
10572
10573 if $PKG_CONFIG --exists "QtGui >= 4.0.1" ; then
10574 echo "$as_me:$LINENO: result: yes" >&5
10575 echo "${ECHO_T}yes" >&6
10576 succeeded=yes
10577
10578 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
10579 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
10580 QT_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.0.1"`
10581 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
10582 echo "${ECHO_T}$QT_CFLAGS" >&6
10583
10584 echo "$as_me:$LINENO: checking QT_LIBS" >&5
10585 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
10586 QT_LIBS=`$PKG_CONFIG --libs "QtGui >= 4.0.1"`
10587 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
10588 echo "${ECHO_T}$QT_LIBS" >&6
10589 else
10590 QT_CFLAGS=""
10591 QT_LIBS=""
10592 ## If we have a custom action on failure, don't print errors, but
10593 ## do set a variable so people can do so.
10594 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.0.1"`
10595 echo $QT_PKG_ERRORS
10596 fi
10597
10598
10599
10600 else
10601 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10602 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10603 fi
10604 fi
10605
10606 if test $succeeded = yes; then
10607 :
10608 else
10609 { { echo "$as_me:$LINENO: error: Library requirements (QtGui >= 4.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10610 echo "$as_me: error: Library requirements (QtGui >= 4.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10611 { (exit 1); exit 1; }; }
10612 fi
10613
10614 QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
10615 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
10616 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
10617 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
10618 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
10619 if eval "test \"\${$as_ac_File+set}\" = set"; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 test "$cross_compiling" = yes &&
10623 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10624 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10625 { (exit 1); exit 1; }; }
10626 if test -r "$QT_INCLUDE_DIR/QWidget"; then
10627 eval "$as_ac_File=yes"
10628 else
10629 eval "$as_ac_File=no"
10630 fi
10631 fi
10632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10633 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10634 if test `eval echo '${'$as_ac_File'}'` = yes; then
10635 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
10636 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
10637 else
10638 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
10640 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_File+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 test "$cross_compiling" = yes &&
10645 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10646 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10647 { (exit 1); exit 1; }; }
10648 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
10649 eval "$as_ac_File=yes"
10650 else
10651 eval "$as_ac_File=no"
10652 fi
10653 fi
10654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10655 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10656 if test `eval echo '${'$as_ac_File'}'` = yes; then
10657 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
10658 else
10659 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
10660 echo "$as_me: WARNING: QWidget not found" >&2;}
10661 fi
10662
10663 fi
10664
10665 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
10666 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
10667 # Extract the first word of "moc", so it can be a program name with args.
10668 set dummy moc; ac_word=$2
10669 echo "$as_me:$LINENO: checking for $ac_word" >&5
10670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10671 if test "${ac_cv_prog_MOC+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674 if test -n "$MOC"; then
10675 ac_cv_prog_MOC="$MOC" # Let the user override the test.
10676 else
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10679 do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684 ac_cv_prog_MOC="moc"
10685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688 done
10689 done
10690
10691 fi
10692 fi
10693 MOC=$ac_cv_prog_MOC
10694 if test -n "$MOC"; then
10695 echo "$as_me:$LINENO: result: $MOC" >&5
10696 echo "${ECHO_T}$MOC" >&6
10697 else
10698 echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6
10700 fi
10701
10702
10703
10704 fi
10705
10706 if test "x${enable_gtk_cairo}" = xyes; then
10707
10708 succeeded=no
10709
10710 if test -z "$PKG_CONFIG"; then
10711 # Extract the first word of "pkg-config", so it can be a program name with args.
10712 set dummy pkg-config; ac_word=$2
10713 echo "$as_me:$LINENO: checking for $ac_word" >&5
10714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10715 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 case $PKG_CONFIG in
10719 [\\/]* | ?:[\\/]*)
10720 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10721 ;;
10722 *)
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in $PATH
10725 do
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10730 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10733 fi
10734 done
10735 done
10736
10737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10738 ;;
10739 esac
10740 fi
10741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10742
10743 if test -n "$PKG_CONFIG"; then
10744 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10745 echo "${ECHO_T}$PKG_CONFIG" >&6
10746 else
10747 echo "$as_me:$LINENO: result: no" >&5
10748 echo "${ECHO_T}no" >&6
10749 fi
10750
10751 fi
10752
10753 if test "$PKG_CONFIG" = "no" ; then
10754 echo "*** The pkg-config script could not be found. Make sure it is"
10755 echo "*** in your path, or set the PKG_CONFIG environment variable"
10756 echo "*** to the full path to pkg-config."
10757 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10758 else
10759 PKG_CONFIG_MIN_VERSION=0.9.0
10760 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10761 echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
10762 echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6
10763
10764 if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
10765 echo "$as_me:$LINENO: result: yes" >&5
10766 echo "${ECHO_T}yes" >&6
10767 succeeded=yes
10768
10769 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
10770 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
10771 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
10772 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
10773 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
10774
10775 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
10776 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
10777 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
10778 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
10779 echo "${ECHO_T}$CAIRO_LIBS" >&6
10780 else
10781 CAIRO_CFLAGS=""
10782 CAIRO_LIBS=""
10783 ## If we have a custom action on failure, don't print errors, but
10784 ## do set a variable so people can do so.
10785 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
10786 echo $CAIRO_PKG_ERRORS
10787 fi
10788
10789
10790
10791 else
10792 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10793 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10794 fi
10795 fi
10796
10797 if test $succeeded = yes; then
10798 :
10799 else
10800 { { 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
10801 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;}
10802 { (exit 1); exit 1; }; }
10803 fi
10804
10805
10806 succeeded=no
10807
10808 if test -z "$PKG_CONFIG"; then
10809 # Extract the first word of "pkg-config", so it can be a program name with args.
10810 set dummy pkg-config; ac_word=$2
10811 echo "$as_me:$LINENO: checking for $ac_word" >&5
10812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 case $PKG_CONFIG in
10817 [\\/]* | ?:[\\/]*)
10818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10819 ;;
10820 *)
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832 done
10833 done
10834
10835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10836 ;;
10837 esac
10838 fi
10839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10840
10841 if test -n "$PKG_CONFIG"; then
10842 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10843 echo "${ECHO_T}$PKG_CONFIG" >&6
10844 else
10845 echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6
10847 fi
10848
10849 fi
10850
10851 if test "$PKG_CONFIG" = "no" ; then
10852 echo "*** The pkg-config script could not be found. Make sure it is"
10853 echo "*** in your path, or set the PKG_CONFIG environment variable"
10854 echo "*** to the full path to pkg-config."
10855 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10856 else
10857 PKG_CONFIG_MIN_VERSION=0.9.0
10858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10859 echo "$as_me:$LINENO: checking for pangoft2" >&5
10860 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
10861
10862 if $PKG_CONFIG --exists "pangoft2" ; then
10863 echo "$as_me:$LINENO: result: yes" >&5
10864 echo "${ECHO_T}yes" >&6
10865 succeeded=yes
10866
10867 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
10868 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
10869 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
10870 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
10871 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
10872
10873 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
10874 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
10875 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
10876 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
10877 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
10878 else
10879 PANGOFT2_CFLAGS=""
10880 PANGOFT2_LIBS=""
10881 ## If we have a custom action on failure, don't print errors, but
10882 ## do set a variable so people can do so.
10883 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
10884 echo $PANGOFT2_PKG_ERRORS
10885 fi
10886
10887
10888
10889 else
10890 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10891 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10892 fi
10893 fi
10894
10895 if test $succeeded = yes; then
10896 :
10897 else
10898 { { 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
10899 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;}
10900 { (exit 1); exit 1; }; }
10901 fi
10902
10903 fi
10904
10905
10906
10907
10908 fi
10909
10910
10911
10912 # Check whether --with-javah or --without-javah was given.
10913 if test "${with_javah+set}" = set; then
10914 withval="$with_javah"
10915
10916 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
10917
10918 if test "x${withval}" != x; then
10919 if test -f "${withval}"; then
10920 USER_JAVAH="${withval}"
10921 else
10922 # Extract the first word of ""${withval}"", so it can be a program name with args.
10923 set dummy "${withval}"; ac_word=$2
10924 echo "$as_me:$LINENO: checking for $ac_word" >&5
10925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10926 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 case $USER_JAVAH in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
10932 ;;
10933 *)
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10936 do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
10942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945 done
10946 done
10947
10948 ;;
10949 esac
10950 fi
10951 USER_JAVAH=$ac_cv_path_USER_JAVAH
10952
10953 if test -n "$USER_JAVAH"; then
10954 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
10955 echo "${ECHO_T}$USER_JAVAH" >&6
10956 else
10957 echo "$as_me:$LINENO: result: no" >&5
10958 echo "${ECHO_T}no" >&6
10959 fi
10960
10961 fi
10962 else
10963 for javah_name in gcjh javah; do
10964 # Extract the first word of ""$javah_name"", so it can be a program name with args.
10965 set dummy "$javah_name"; ac_word=$2
10966 echo "$as_me:$LINENO: checking for $ac_word" >&5
10967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10968 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 case $USER_JAVAH in
10972 [\\/]* | ?:[\\/]*)
10973 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
10974 ;;
10975 *)
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987 done
10988 done
10989
10990 ;;
10991 esac
10992 fi
10993 USER_JAVAH=$ac_cv_path_USER_JAVAH
10994
10995 if test -n "$USER_JAVAH"; then
10996 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
10997 echo "${ECHO_T}$USER_JAVAH" >&6
10998 else
10999 echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11001 fi
11002
11003 if test "x${USER_JAVAH}" != x; then
11004 break
11005 fi
11006 done
11007 fi
11008
11009 # if test "x${USER_JAVAH}" = x; then
11010 # echo "configure: cannot find javah" 1>&2
11011 # exit 1
11012 # fi
11013
11014 else
11015
11016 if test "x" != x; then
11017 if test -f ""; then
11018 USER_JAVAH=""
11019 else
11020 # Extract the first word of """", so it can be a program name with args.
11021 set dummy ""; ac_word=$2
11022 echo "$as_me:$LINENO: checking for $ac_word" >&5
11023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11024 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027 case $USER_JAVAH in
11028 [\\/]* | ?:[\\/]*)
11029 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11030 ;;
11031 *)
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11034 do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043 done
11044 done
11045
11046 ;;
11047 esac
11048 fi
11049 USER_JAVAH=$ac_cv_path_USER_JAVAH
11050
11051 if test -n "$USER_JAVAH"; then
11052 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11053 echo "${ECHO_T}$USER_JAVAH" >&6
11054 else
11055 echo "$as_me:$LINENO: result: no" >&5
11056 echo "${ECHO_T}no" >&6
11057 fi
11058
11059 fi
11060 else
11061 for javah_name in gcjh javah; do
11062 # Extract the first word of ""$javah_name"", so it can be a program name with args.
11063 set dummy "$javah_name"; ac_word=$2
11064 echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11066 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 case $USER_JAVAH in
11070 [\\/]* | ?:[\\/]*)
11071 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11072 ;;
11073 *)
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11081 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087
11088 ;;
11089 esac
11090 fi
11091 USER_JAVAH=$ac_cv_path_USER_JAVAH
11092
11093 if test -n "$USER_JAVAH"; then
11094 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11095 echo "${ECHO_T}$USER_JAVAH" >&6
11096 else
11097 echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11099 fi
11100
11101 if test "x${USER_JAVAH}" != x; then
11102 break
11103 fi
11104 done
11105 fi
11106
11107 # if test "x${USER_JAVAH}" = x; then
11108 # echo "configure: cannot find javah" 1>&2
11109 # exit 1
11110 # fi
11111
11112 fi
11113
11114 else
11115
11116
11117 if test "x" != x; then
11118 if test -f ""; then
11119 USER_JAVAH=""
11120 else
11121 # Extract the first word of """", so it can be a program name with args.
11122 set dummy ""; ac_word=$2
11123 echo "$as_me:$LINENO: checking for $ac_word" >&5
11124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11125 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128 case $USER_JAVAH in
11129 [\\/]* | ?:[\\/]*)
11130 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11131 ;;
11132 *)
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144 done
11145 done
11146
11147 ;;
11148 esac
11149 fi
11150 USER_JAVAH=$ac_cv_path_USER_JAVAH
11151
11152 if test -n "$USER_JAVAH"; then
11153 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11154 echo "${ECHO_T}$USER_JAVAH" >&6
11155 else
11156 echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6
11158 fi
11159
11160 fi
11161 else
11162 for javah_name in gcjh javah; do
11163 # Extract the first word of ""$javah_name"", so it can be a program name with args.
11164 set dummy "$javah_name"; ac_word=$2
11165 echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 case $USER_JAVAH in
11171 [\\/]* | ?:[\\/]*)
11172 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188
11189 ;;
11190 esac
11191 fi
11192 USER_JAVAH=$ac_cv_path_USER_JAVAH
11193
11194 if test -n "$USER_JAVAH"; then
11195 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
11196 echo "${ECHO_T}$USER_JAVAH" >&6
11197 else
11198 echo "$as_me:$LINENO: result: no" >&5
11199 echo "${ECHO_T}no" >&6
11200 fi
11201
11202 if test "x${USER_JAVAH}" != x; then
11203 break
11204 fi
11205 done
11206 fi
11207
11208 # if test "x${USER_JAVAH}" = x; then
11209 # echo "configure: cannot find javah" 1>&2
11210 # exit 1
11211 # fi
11212
11213
11214 fi;
11215
11216
11217 if test "x${USER_JAVAH}" != x; then
11218 USER_SPECIFIED_JAVAH_TRUE=
11219 USER_SPECIFIED_JAVAH_FALSE='#'
11220 else
11221 USER_SPECIFIED_JAVAH_TRUE='#'
11222 USER_SPECIFIED_JAVAH_FALSE=
11223 fi
11224
11225
11226
11227
11228 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
11229
11230
11231 if test "x${COMPILE_JNI}" = xyes; then
11232 echo "$as_me:$LINENO: checking jni_md.h support" >&5
11233 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
11234 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
11235 echo "$as_me:$LINENO: result: yes" >&5
11236 echo "${ECHO_T}yes" >&6
11237 else
11238 target_cpu=x86
11239 target_os=linux-gnu
11240 { echo "$as_me:$LINENO: WARNING: no" >&5
11241 echo "$as_me: WARNING: no" >&2;}
11242 fi
11243 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
11244 ac_dests="include/jni_md.h"
11245 while test -n "$ac_sources"; do
11246 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11247 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11248 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
11249 done
11250 ac_config_links="$ac_config_links $ac_config_links_1"
11251
11252 fi
11253
11254
11255 user_specified_javac=
11256
11257
11258
11259 # Check whether --with-gcj or --without-gcj was given.
11260 if test "${with_gcj+set}" = set; then
11261 withval="$with_gcj"
11262
11263 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11264
11265 if test "x${withval}" != x; then
11266 if test -f "${withval}"; then
11267 GCJ="${withval}"
11268 else
11269 # Extract the first word of ""${withval}"", so it can be a program name with args.
11270 set dummy "${withval}"; ac_word=$2
11271 echo "$as_me:$LINENO: checking for $ac_word" >&5
11272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273 if test "${ac_cv_path_GCJ+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 case $GCJ in
11277 [\\/]* | ?:[\\/]*)
11278 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11279 ;;
11280 *)
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11283 do
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11291 fi
11292 done
11293 done
11294
11295 ;;
11296 esac
11297 fi
11298 GCJ=$ac_cv_path_GCJ
11299
11300 if test -n "$GCJ"; then
11301 echo "$as_me:$LINENO: result: $GCJ" >&5
11302 echo "${ECHO_T}$GCJ" >&6
11303 else
11304 echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6
11306 fi
11307
11308 fi
11309 else
11310 # Extract the first word of ""gcj"", so it can be a program name with args.
11311 set dummy "gcj"; ac_word=$2
11312 echo "$as_me:$LINENO: checking for $ac_word" >&5
11313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11314 if test "${ac_cv_path_GCJ+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 case $GCJ in
11318 [\\/]* | ?:[\\/]*)
11319 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11320 ;;
11321 *)
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $PATH
11324 do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11329 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333 done
11334 done
11335
11336 ;;
11337 esac
11338 fi
11339 GCJ=$ac_cv_path_GCJ
11340
11341 if test -n "$GCJ"; then
11342 echo "$as_me:$LINENO: result: $GCJ" >&5
11343 echo "${ECHO_T}$GCJ" >&6
11344 else
11345 echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6
11347 fi
11348
11349 fi
11350
11351 if test "x$GCJ" != x; then
11352 ## GCC version 2 puts out version messages that looked like:
11353 ## 2.95
11354
11355 ## GCC version 3 puts out version messages like:
11356 ## gcj (GCC) 3.3.3
11357 ## Copyright (C) 2003 Free Software Foundation, Inc.
11358 ## This is free software; see the source for copying conditions. There is NO
11359 ## warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11360 echo "$as_me:$LINENO: checking gcj version" >&5
11361 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
11362 ## Take the output from gcj --version and extract just the version number
11363 ## into GCJ_VERSION.
11364 ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
11365 ## numbers)
11366 ##
11367 ## First, we get rid of everything before the first number on that line.
11368 ## Assume that the first number on that line is the start of the
11369 ## version.
11370 ##
11371 ## Second, while we're at it, go ahead and get rid of the first character
11372 ## that is not part of a version number (i.e., is neither a digit nor
11373 ## a dot).
11374 ##
11375 ## Third, quit, so that we won't process the second and subsequent lines.
11376 GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
11377 GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
11378 GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
11379
11380 if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
11381 GCJ=""
11382 fi
11383 if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
11384 if expr "$GCJ_VERSION_MINOR" \< 3; then
11385 GCJ=""
11386 fi
11387 fi
11388 if test "x$GCJ" != x; then
11389 echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
11390 echo "${ECHO_T}$GCJ_VERSION" >&6
11391 else
11392 { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
11393 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
11394 fi
11395 fi
11396
11397 else
11398 if test "x${withval}" != xno; then
11399
11400 if test "x" != x; then
11401 if test -f ""; then
11402 GCJ=""
11403 else
11404 # Extract the first word of """", so it can be a program name with args.
11405 set dummy ""; ac_word=$2
11406 echo "$as_me:$LINENO: checking for $ac_word" >&5
11407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11408 if test "${ac_cv_path_GCJ+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411 case $GCJ in
11412 [\\/]* | ?:[\\/]*)
11413 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11414 ;;
11415 *)
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11418 do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11426 fi
11427 done
11428 done
11429
11430 ;;
11431 esac
11432 fi
11433 GCJ=$ac_cv_path_GCJ
11434
11435 if test -n "$GCJ"; then
11436 echo "$as_me:$LINENO: result: $GCJ" >&5
11437 echo "${ECHO_T}$GCJ" >&6
11438 else
11439 echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6
11441 fi
11442
11443 fi
11444 else
11445 # Extract the first word of ""gcj"", so it can be a program name with args.
11446 set dummy "gcj"; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_GCJ+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 case $GCJ in
11453 [\\/]* | ?:[\\/]*)
11454 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11455 ;;
11456 *)
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468 done
11469 done
11470
11471 ;;
11472 esac
11473 fi
11474 GCJ=$ac_cv_path_GCJ
11475
11476 if test -n "$GCJ"; then
11477 echo "$as_me:$LINENO: result: $GCJ" >&5
11478 echo "${ECHO_T}$GCJ" >&6
11479 else
11480 echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6
11482 fi
11483
11484 fi
11485
11486 if test "x$GCJ" != x; then
11487 ## GCC version 2 puts out version messages that looked like:
11488 ## 2.95
11489
11490 ## GCC version 3 puts out version messages like:
11491 ## gcj (GCC) 3.3.3
11492 ## Copyright (C) 2003 Free Software Foundation, Inc.
11493 ## This is free software; see the source for copying conditions. There is NO
11494 ## warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11495 echo "$as_me:$LINENO: checking gcj version" >&5
11496 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
11497 ## Take the output from gcj --version and extract just the version number
11498 ## into GCJ_VERSION.
11499 ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
11500 ## numbers)
11501 ##
11502 ## First, we get rid of everything before the first number on that line.
11503 ## Assume that the first number on that line is the start of the
11504 ## version.
11505 ##
11506 ## Second, while we're at it, go ahead and get rid of the first character
11507 ## that is not part of a version number (i.e., is neither a digit nor
11508 ## a dot).
11509 ##
11510 ## Third, quit, so that we won't process the second and subsequent lines.
11511 GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
11512 GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
11513 GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
11514
11515 if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
11516 GCJ=""
11517 fi
11518 if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
11519 if expr "$GCJ_VERSION_MINOR" \< 3; then
11520 GCJ=""
11521 fi
11522 fi
11523 if test "x$GCJ" != x; then
11524 echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
11525 echo "${ECHO_T}$GCJ_VERSION" >&6
11526 else
11527 { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
11528 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
11529 fi
11530 fi
11531
11532 fi
11533 fi
11534 user_specified_javac=gcj
11535
11536 else
11537
11538
11539 if test "x" != x; then
11540 if test -f ""; then
11541 GCJ=""
11542 else
11543 # Extract the first word of """", so it can be a program name with args.
11544 set dummy ""; ac_word=$2
11545 echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11547 if test "${ac_cv_path_GCJ+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550 case $GCJ in
11551 [\\/]* | ?:[\\/]*)
11552 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11553 ;;
11554 *)
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566 done
11567 done
11568
11569 ;;
11570 esac
11571 fi
11572 GCJ=$ac_cv_path_GCJ
11573
11574 if test -n "$GCJ"; then
11575 echo "$as_me:$LINENO: result: $GCJ" >&5
11576 echo "${ECHO_T}$GCJ" >&6
11577 else
11578 echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6
11580 fi
11581
11582 fi
11583 else
11584 # Extract the first word of ""gcj"", so it can be a program name with args.
11585 set dummy "gcj"; ac_word=$2
11586 echo "$as_me:$LINENO: checking for $ac_word" >&5
11587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11588 if test "${ac_cv_path_GCJ+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591 case $GCJ in
11592 [\\/]* | ?:[\\/]*)
11593 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
11594 ;;
11595 *)
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
11604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607 done
11608 done
11609
11610 ;;
11611 esac
11612 fi
11613 GCJ=$ac_cv_path_GCJ
11614
11615 if test -n "$GCJ"; then
11616 echo "$as_me:$LINENO: result: $GCJ" >&5
11617 echo "${ECHO_T}$GCJ" >&6
11618 else
11619 echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6
11621 fi
11622
11623 fi
11624
11625 if test "x$GCJ" != x; then
11626 ## GCC version 2 puts out version messages that looked like:
11627 ## 2.95
11628
11629 ## GCC version 3 puts out version messages like:
11630 ## gcj (GCC) 3.3.3
11631 ## Copyright (C) 2003 Free Software Foundation, Inc.
11632 ## This is free software; see the source for copying conditions. There is NO
11633 ## warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11634 echo "$as_me:$LINENO: checking gcj version" >&5
11635 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
11636 ## Take the output from gcj --version and extract just the version number
11637 ## into GCJ_VERSION.
11638 ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
11639 ## numbers)
11640 ##
11641 ## First, we get rid of everything before the first number on that line.
11642 ## Assume that the first number on that line is the start of the
11643 ## version.
11644 ##
11645 ## Second, while we're at it, go ahead and get rid of the first character
11646 ## that is not part of a version number (i.e., is neither a digit nor
11647 ## a dot).
11648 ##
11649 ## Third, quit, so that we won't process the second and subsequent lines.
11650 GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
11651 GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
11652 GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
11653
11654 if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
11655 GCJ=""
11656 fi
11657 if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
11658 if expr "$GCJ_VERSION_MINOR" \< 3; then
11659 GCJ=""
11660 fi
11661 fi
11662 if test "x$GCJ" != x; then
11663 echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
11664 echo "${ECHO_T}$GCJ_VERSION" >&6
11665 else
11666 { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
11667 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
11668 fi
11669 fi
11670
11671
11672 fi;
11673
11674
11675
11676
11677 # Check whether --with-jikes or --without-jikes was given.
11678 if test "${with_jikes+set}" = set; then
11679 withval="$with_jikes"
11680
11681 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11682
11683 if test "x${withval}" != x; then
11684 if test -f "${withval}"; then
11685 JIKES="${withval}"
11686 else
11687 # Extract the first word of ""${withval}"", so it can be a program name with args.
11688 set dummy "${withval}"; ac_word=$2
11689 echo "$as_me:$LINENO: checking for $ac_word" >&5
11690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11691 if test "${ac_cv_path_JIKES+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 case $JIKES in
11695 [\\/]* | ?:[\\/]*)
11696 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11697 ;;
11698 *)
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11709 fi
11710 done
11711 done
11712
11713 ;;
11714 esac
11715 fi
11716 JIKES=$ac_cv_path_JIKES
11717
11718 if test -n "$JIKES"; then
11719 echo "$as_me:$LINENO: result: $JIKES" >&5
11720 echo "${ECHO_T}$JIKES" >&6
11721 else
11722 echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11724 fi
11725
11726 fi
11727 else
11728 # Extract the first word of ""jikes"", so it can be a program name with args.
11729 set dummy "jikes"; ac_word=$2
11730 echo "$as_me:$LINENO: checking for $ac_word" >&5
11731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11732 if test "${ac_cv_path_JIKES+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 case $JIKES in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11738 ;;
11739 *)
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751 done
11752 done
11753
11754 ;;
11755 esac
11756 fi
11757 JIKES=$ac_cv_path_JIKES
11758
11759 if test -n "$JIKES"; then
11760 echo "$as_me:$LINENO: result: $JIKES" >&5
11761 echo "${ECHO_T}$JIKES" >&6
11762 else
11763 echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11765 fi
11766
11767 fi
11768 if test "x$JIKES" != "x"; then
11769 echo "$as_me:$LINENO: checking jikes version" >&5
11770 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
11771 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
11772 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
11773 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
11774 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
11775 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
11776 JIKES=""
11777 fi
11778 fi
11779 if test "x$JIKES" != "x"; then
11780 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
11781 echo "${ECHO_T}$JIKES_VERSION" >&6
11782 else
11783 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
11784 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
11785 fi
11786
11787 JIKESENCODING=
11788 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
11789 JIKESENCODING='-encoding UTF-8'
11790 fi
11791
11792 fi
11793
11794 else
11795 if test "x${withval}" != xno; then
11796
11797 if test "x" != x; then
11798 if test -f ""; then
11799 JIKES=""
11800 else
11801 # Extract the first word of """", so it can be a program name with args.
11802 set dummy ""; ac_word=$2
11803 echo "$as_me:$LINENO: checking for $ac_word" >&5
11804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11805 if test "${ac_cv_path_JIKES+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 case $JIKES in
11809 [\\/]* | ?:[\\/]*)
11810 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11811 ;;
11812 *)
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11815 do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11820 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11823 fi
11824 done
11825 done
11826
11827 ;;
11828 esac
11829 fi
11830 JIKES=$ac_cv_path_JIKES
11831
11832 if test -n "$JIKES"; then
11833 echo "$as_me:$LINENO: result: $JIKES" >&5
11834 echo "${ECHO_T}$JIKES" >&6
11835 else
11836 echo "$as_me:$LINENO: result: no" >&5
11837 echo "${ECHO_T}no" >&6
11838 fi
11839
11840 fi
11841 else
11842 # Extract the first word of ""jikes"", so it can be a program name with args.
11843 set dummy "jikes"; ac_word=$2
11844 echo "$as_me:$LINENO: checking for $ac_word" >&5
11845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11846 if test "${ac_cv_path_JIKES+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 case $JIKES in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867
11868 ;;
11869 esac
11870 fi
11871 JIKES=$ac_cv_path_JIKES
11872
11873 if test -n "$JIKES"; then
11874 echo "$as_me:$LINENO: result: $JIKES" >&5
11875 echo "${ECHO_T}$JIKES" >&6
11876 else
11877 echo "$as_me:$LINENO: result: no" >&5
11878 echo "${ECHO_T}no" >&6
11879 fi
11880
11881 fi
11882 if test "x$JIKES" != "x"; then
11883 echo "$as_me:$LINENO: checking jikes version" >&5
11884 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
11885 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
11886 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
11887 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
11888 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
11889 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
11890 JIKES=""
11891 fi
11892 fi
11893 if test "x$JIKES" != "x"; then
11894 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
11895 echo "${ECHO_T}$JIKES_VERSION" >&6
11896 else
11897 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
11898 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
11899 fi
11900
11901 JIKESENCODING=
11902 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
11903 JIKESENCODING='-encoding UTF-8'
11904 fi
11905
11906 fi
11907
11908 fi
11909 fi
11910 user_specified_javac=jikes
11911
11912 else
11913
11914
11915 if test "x" != x; then
11916 if test -f ""; then
11917 JIKES=""
11918 else
11919 # Extract the first word of """", so it can be a program name with args.
11920 set dummy ""; ac_word=$2
11921 echo "$as_me:$LINENO: checking for $ac_word" >&5
11922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11923 if test "${ac_cv_path_JIKES+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 case $JIKES in
11927 [\\/]* | ?:[\\/]*)
11928 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11929 ;;
11930 *)
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11933 do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11941 fi
11942 done
11943 done
11944
11945 ;;
11946 esac
11947 fi
11948 JIKES=$ac_cv_path_JIKES
11949
11950 if test -n "$JIKES"; then
11951 echo "$as_me:$LINENO: result: $JIKES" >&5
11952 echo "${ECHO_T}$JIKES" >&6
11953 else
11954 echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11956 fi
11957
11958 fi
11959 else
11960 # Extract the first word of ""jikes"", so it can be a program name with args.
11961 set dummy "jikes"; ac_word=$2
11962 echo "$as_me:$LINENO: checking for $ac_word" >&5
11963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11964 if test "${ac_cv_path_JIKES+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 case $JIKES in
11968 [\\/]* | ?:[\\/]*)
11969 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
11970 ;;
11971 *)
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11974 do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
11980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11982 fi
11983 done
11984 done
11985
11986 ;;
11987 esac
11988 fi
11989 JIKES=$ac_cv_path_JIKES
11990
11991 if test -n "$JIKES"; then
11992 echo "$as_me:$LINENO: result: $JIKES" >&5
11993 echo "${ECHO_T}$JIKES" >&6
11994 else
11995 echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6
11997 fi
11998
11999 fi
12000 if test "x$JIKES" != "x"; then
12001 echo "$as_me:$LINENO: checking jikes version" >&5
12002 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12003 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12004 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12005 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12006 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12007 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12008 JIKES=""
12009 fi
12010 fi
12011 if test "x$JIKES" != "x"; then
12012 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12013 echo "${ECHO_T}$JIKES_VERSION" >&6
12014 else
12015 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12016 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12017 fi
12018
12019 JIKESENCODING=
12020 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12021 JIKESENCODING='-encoding UTF-8'
12022 fi
12023
12024 fi
12025
12026
12027 fi;
12028
12029
12030
12031
12032 # Check whether --with-kjc or --without-kjc was given.
12033 if test "${with_kjc+set}" = set; then
12034 withval="$with_kjc"
12035
12036 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12037
12038 if test "x${withval}" != x; then
12039 if test -f "${withval}"; then
12040 KJC="${withval}"
12041 else
12042 # Extract the first word of ""${withval}"", so it can be a program name with args.
12043 set dummy "${withval}"; ac_word=$2
12044 echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12046 if test "${ac_cv_path_KJC+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 case $KJC in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12052 ;;
12053 *)
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12064 fi
12065 done
12066 done
12067
12068 ;;
12069 esac
12070 fi
12071 KJC=$ac_cv_path_KJC
12072
12073 if test -n "$KJC"; then
12074 echo "$as_me:$LINENO: result: $KJC" >&5
12075 echo "${ECHO_T}$KJC" >&6
12076 else
12077 echo "$as_me:$LINENO: result: no" >&5
12078 echo "${ECHO_T}no" >&6
12079 fi
12080
12081 fi
12082 else
12083 # Extract the first word of ""kJC"", so it can be a program name with args.
12084 set dummy "kJC"; ac_word=$2
12085 echo "$as_me:$LINENO: checking for $ac_word" >&5
12086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12087 if test "${ac_cv_path_KJC+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090 case $KJC in
12091 [\\/]* | ?:[\\/]*)
12092 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12093 ;;
12094 *)
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108
12109 ;;
12110 esac
12111 fi
12112 KJC=$ac_cv_path_KJC
12113
12114 if test -n "$KJC"; then
12115 echo "$as_me:$LINENO: result: $KJC" >&5
12116 echo "${ECHO_T}$KJC" >&6
12117 else
12118 echo "$as_me:$LINENO: result: no" >&5
12119 echo "${ECHO_T}no" >&6
12120 fi
12121
12122 fi
12123
12124 else
12125 if test "x${withval}" != xno; then
12126
12127 if test "x" != x; then
12128 if test -f ""; then
12129 KJC=""
12130 else
12131 # Extract the first word of """", so it can be a program name with args.
12132 set dummy ""; ac_word=$2
12133 echo "$as_me:$LINENO: checking for $ac_word" >&5
12134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12135 if test "${ac_cv_path_KJC+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138 case $KJC in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12141 ;;
12142 *)
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154 done
12155 done
12156
12157 ;;
12158 esac
12159 fi
12160 KJC=$ac_cv_path_KJC
12161
12162 if test -n "$KJC"; then
12163 echo "$as_me:$LINENO: result: $KJC" >&5
12164 echo "${ECHO_T}$KJC" >&6
12165 else
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12168 fi
12169
12170 fi
12171 else
12172 # Extract the first word of ""kJC"", so it can be a program name with args.
12173 set dummy "kJC"; ac_word=$2
12174 echo "$as_me:$LINENO: checking for $ac_word" >&5
12175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12176 if test "${ac_cv_path_KJC+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179 case $KJC in
12180 [\\/]* | ?:[\\/]*)
12181 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12182 ;;
12183 *)
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195 done
12196 done
12197
12198 ;;
12199 esac
12200 fi
12201 KJC=$ac_cv_path_KJC
12202
12203 if test -n "$KJC"; then
12204 echo "$as_me:$LINENO: result: $KJC" >&5
12205 echo "${ECHO_T}$KJC" >&6
12206 else
12207 echo "$as_me:$LINENO: result: no" >&5
12208 echo "${ECHO_T}no" >&6
12209 fi
12210
12211 fi
12212
12213 fi
12214 fi
12215 user_specified_javac=kjc
12216
12217 else
12218
12219
12220 if test "x" != x; then
12221 if test -f ""; then
12222 KJC=""
12223 else
12224 # Extract the first word of """", so it can be a program name with args.
12225 set dummy ""; ac_word=$2
12226 echo "$as_me:$LINENO: checking for $ac_word" >&5
12227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228 if test "${ac_cv_path_KJC+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 case $KJC in
12232 [\\/]* | ?:[\\/]*)
12233 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12234 ;;
12235 *)
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247 done
12248 done
12249
12250 ;;
12251 esac
12252 fi
12253 KJC=$ac_cv_path_KJC
12254
12255 if test -n "$KJC"; then
12256 echo "$as_me:$LINENO: result: $KJC" >&5
12257 echo "${ECHO_T}$KJC" >&6
12258 else
12259 echo "$as_me:$LINENO: result: no" >&5
12260 echo "${ECHO_T}no" >&6
12261 fi
12262
12263 fi
12264 else
12265 # Extract the first word of ""kJC"", so it can be a program name with args.
12266 set dummy "kJC"; ac_word=$2
12267 echo "$as_me:$LINENO: checking for $ac_word" >&5
12268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12269 if test "${ac_cv_path_KJC+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 case $KJC in
12273 [\\/]* | ?:[\\/]*)
12274 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
12275 ;;
12276 *)
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12279 do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
12285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12287 fi
12288 done
12289 done
12290
12291 ;;
12292 esac
12293 fi
12294 KJC=$ac_cv_path_KJC
12295
12296 if test -n "$KJC"; then
12297 echo "$as_me:$LINENO: result: $KJC" >&5
12298 echo "${ECHO_T}$KJC" >&6
12299 else
12300 echo "$as_me:$LINENO: result: no" >&5
12301 echo "${ECHO_T}no" >&6
12302 fi
12303
12304 fi
12305
12306
12307 fi;
12308
12309
12310
12311
12312 # Check whether --with-gcjx or --without-gcjx was given.
12313 if test "${with_gcjx+set}" = set; then
12314 withval="$with_gcjx"
12315
12316 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12317
12318 if test "x${withval}" != x; then
12319 if test -f "${withval}"; then
12320 GCJX="${withval}"
12321 else
12322 # Extract the first word of ""${withval}"", so it can be a program name with args.
12323 set dummy "${withval}"; ac_word=$2
12324 echo "$as_me:$LINENO: checking for $ac_word" >&5
12325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12326 if test "${ac_cv_path_GCJX+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 case $GCJX in
12330 [\\/]* | ?:[\\/]*)
12331 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12332 ;;
12333 *)
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345 done
12346 done
12347
12348 ;;
12349 esac
12350 fi
12351 GCJX=$ac_cv_path_GCJX
12352
12353 if test -n "$GCJX"; then
12354 echo "$as_me:$LINENO: result: $GCJX" >&5
12355 echo "${ECHO_T}$GCJX" >&6
12356 else
12357 echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6
12359 fi
12360
12361 fi
12362 else
12363 # Extract the first word of ""gcjx"", so it can be a program name with args.
12364 set dummy "gcjx"; ac_word=$2
12365 echo "$as_me:$LINENO: checking for $ac_word" >&5
12366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12367 if test "${ac_cv_path_GCJX+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 case $GCJX in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12373 ;;
12374 *)
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12385 fi
12386 done
12387 done
12388
12389 ;;
12390 esac
12391 fi
12392 GCJX=$ac_cv_path_GCJX
12393
12394 if test -n "$GCJX"; then
12395 echo "$as_me:$LINENO: result: $GCJX" >&5
12396 echo "${ECHO_T}$GCJX" >&6
12397 else
12398 echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6
12400 fi
12401
12402 fi
12403
12404 else
12405 if test "x${withval}" != xno; then
12406
12407 if test "x" != x; then
12408 if test -f ""; then
12409 GCJX=""
12410 else
12411 # Extract the first word of """", so it can be a program name with args.
12412 set dummy ""; ac_word=$2
12413 echo "$as_me:$LINENO: checking for $ac_word" >&5
12414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12415 if test "${ac_cv_path_GCJX+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 case $GCJX in
12419 [\\/]* | ?:[\\/]*)
12420 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12421 ;;
12422 *)
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436
12437 ;;
12438 esac
12439 fi
12440 GCJX=$ac_cv_path_GCJX
12441
12442 if test -n "$GCJX"; then
12443 echo "$as_me:$LINENO: result: $GCJX" >&5
12444 echo "${ECHO_T}$GCJX" >&6
12445 else
12446 echo "$as_me:$LINENO: result: no" >&5
12447 echo "${ECHO_T}no" >&6
12448 fi
12449
12450 fi
12451 else
12452 # Extract the first word of ""gcjx"", so it can be a program name with args.
12453 set dummy "gcjx"; ac_word=$2
12454 echo "$as_me:$LINENO: checking for $ac_word" >&5
12455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12456 if test "${ac_cv_path_GCJX+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 case $GCJX in
12460 [\\/]* | ?:[\\/]*)
12461 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12462 ;;
12463 *)
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12471 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475 done
12476 done
12477
12478 ;;
12479 esac
12480 fi
12481 GCJX=$ac_cv_path_GCJX
12482
12483 if test -n "$GCJX"; then
12484 echo "$as_me:$LINENO: result: $GCJX" >&5
12485 echo "${ECHO_T}$GCJX" >&6
12486 else
12487 echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12489 fi
12490
12491 fi
12492
12493 fi
12494 fi
12495 user_specified_javac=gcjx
12496
12497 else
12498
12499
12500 if test "x" != x; then
12501 if test -f ""; then
12502 GCJX=""
12503 else
12504 # Extract the first word of """", so it can be a program name with args.
12505 set dummy ""; ac_word=$2
12506 echo "$as_me:$LINENO: checking for $ac_word" >&5
12507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12508 if test "${ac_cv_path_GCJX+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 case $GCJX in
12512 [\\/]* | ?:[\\/]*)
12513 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12514 ;;
12515 *)
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12518 do
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12523 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12526 fi
12527 done
12528 done
12529
12530 ;;
12531 esac
12532 fi
12533 GCJX=$ac_cv_path_GCJX
12534
12535 if test -n "$GCJX"; then
12536 echo "$as_me:$LINENO: result: $GCJX" >&5
12537 echo "${ECHO_T}$GCJX" >&6
12538 else
12539 echo "$as_me:$LINENO: result: no" >&5
12540 echo "${ECHO_T}no" >&6
12541 fi
12542
12543 fi
12544 else
12545 # Extract the first word of ""gcjx"", so it can be a program name with args.
12546 set dummy "gcjx"; ac_word=$2
12547 echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12549 if test "${ac_cv_path_GCJX+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552 case $GCJX in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
12555 ;;
12556 *)
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12559 do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12564 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
12565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568 done
12569 done
12570
12571 ;;
12572 esac
12573 fi
12574 GCJX=$ac_cv_path_GCJX
12575
12576 if test -n "$GCJX"; then
12577 echo "$as_me:$LINENO: result: $GCJX" >&5
12578 echo "${ECHO_T}$GCJX" >&6
12579 else
12580 echo "$as_me:$LINENO: result: no" >&5
12581 echo "${ECHO_T}no" >&6
12582 fi
12583
12584 fi
12585
12586
12587 fi;
12588
12589
12590
12591
12592 # Check whether --with-ecj or --without-ecj was given.
12593 if test "${with_ecj+set}" = set; then
12594 withval="$with_ecj"
12595
12596 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12597
12598 if test "x${withval}" != x; then
12599 if test -f "${withval}"; then
12600 ECJ="${withval}"
12601 else
12602 # Extract the first word of ""${withval}"", so it can be a program name with args.
12603 set dummy "${withval}"; ac_word=$2
12604 echo "$as_me:$LINENO: checking for $ac_word" >&5
12605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12606 if test "${ac_cv_path_ECJ+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609 case $ECJ in
12610 [\\/]* | ?:[\\/]*)
12611 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12612 ;;
12613 *)
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625 done
12626 done
12627
12628 ;;
12629 esac
12630 fi
12631 ECJ=$ac_cv_path_ECJ
12632
12633 if test -n "$ECJ"; then
12634 echo "$as_me:$LINENO: result: $ECJ" >&5
12635 echo "${ECHO_T}$ECJ" >&6
12636 else
12637 echo "$as_me:$LINENO: result: no" >&5
12638 echo "${ECHO_T}no" >&6
12639 fi
12640
12641 fi
12642 else
12643 # Extract the first word of ""ecj"", so it can be a program name with args.
12644 set dummy "ecj"; ac_word=$2
12645 echo "$as_me:$LINENO: checking for $ac_word" >&5
12646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12647 if test "${ac_cv_path_ECJ+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650 case $ECJ in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12653 ;;
12654 *)
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666 done
12667 done
12668
12669 ;;
12670 esac
12671 fi
12672 ECJ=$ac_cv_path_ECJ
12673
12674 if test -n "$ECJ"; then
12675 echo "$as_me:$LINENO: result: $ECJ" >&5
12676 echo "${ECHO_T}$ECJ" >&6
12677 else
12678 echo "$as_me:$LINENO: result: no" >&5
12679 echo "${ECHO_T}no" >&6
12680 fi
12681
12682 fi
12683
12684 else
12685 if test "x${withval}" != xno; then
12686
12687 if test "x" != x; then
12688 if test -f ""; then
12689 ECJ=""
12690 else
12691 # Extract the first word of """", so it can be a program name with args.
12692 set dummy ""; ac_word=$2
12693 echo "$as_me:$LINENO: checking for $ac_word" >&5
12694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12695 if test "${ac_cv_path_ECJ+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698 case $ECJ in
12699 [\\/]* | ?:[\\/]*)
12700 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12701 ;;
12702 *)
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714 done
12715 done
12716
12717 ;;
12718 esac
12719 fi
12720 ECJ=$ac_cv_path_ECJ
12721
12722 if test -n "$ECJ"; then
12723 echo "$as_me:$LINENO: result: $ECJ" >&5
12724 echo "${ECHO_T}$ECJ" >&6
12725 else
12726 echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6
12728 fi
12729
12730 fi
12731 else
12732 # Extract the first word of ""ecj"", so it can be a program name with args.
12733 set dummy "ecj"; ac_word=$2
12734 echo "$as_me:$LINENO: checking for $ac_word" >&5
12735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12736 if test "${ac_cv_path_ECJ+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739 case $ECJ in
12740 [\\/]* | ?:[\\/]*)
12741 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12742 ;;
12743 *)
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12751 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755 done
12756 done
12757
12758 ;;
12759 esac
12760 fi
12761 ECJ=$ac_cv_path_ECJ
12762
12763 if test -n "$ECJ"; then
12764 echo "$as_me:$LINENO: result: $ECJ" >&5
12765 echo "${ECHO_T}$ECJ" >&6
12766 else
12767 echo "$as_me:$LINENO: result: no" >&5
12768 echo "${ECHO_T}no" >&6
12769 fi
12770
12771 fi
12772
12773 fi
12774 fi
12775 user_specified_javac=ecj
12776
12777 else
12778
12779
12780 if test "x" != x; then
12781 if test -f ""; then
12782 ECJ=""
12783 else
12784 # Extract the first word of """", so it can be a program name with args.
12785 set dummy ""; ac_word=$2
12786 echo "$as_me:$LINENO: checking for $ac_word" >&5
12787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12788 if test "${ac_cv_path_ECJ+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 case $ECJ in
12792 [\\/]* | ?:[\\/]*)
12793 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12794 ;;
12795 *)
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12798 do
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12806 fi
12807 done
12808 done
12809
12810 ;;
12811 esac
12812 fi
12813 ECJ=$ac_cv_path_ECJ
12814
12815 if test -n "$ECJ"; then
12816 echo "$as_me:$LINENO: result: $ECJ" >&5
12817 echo "${ECHO_T}$ECJ" >&6
12818 else
12819 echo "$as_me:$LINENO: result: no" >&5
12820 echo "${ECHO_T}no" >&6
12821 fi
12822
12823 fi
12824 else
12825 # Extract the first word of ""ecj"", so it can be a program name with args.
12826 set dummy "ecj"; ac_word=$2
12827 echo "$as_me:$LINENO: checking for $ac_word" >&5
12828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12829 if test "${ac_cv_path_ECJ+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832 case $ECJ in
12833 [\\/]* | ?:[\\/]*)
12834 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
12835 ;;
12836 *)
12837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838 for as_dir in $PATH
12839 do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12844 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
12845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848 done
12849 done
12850
12851 ;;
12852 esac
12853 fi
12854 ECJ=$ac_cv_path_ECJ
12855
12856 if test -n "$ECJ"; then
12857 echo "$as_me:$LINENO: result: $ECJ" >&5
12858 echo "${ECHO_T}$ECJ" >&6
12859 else
12860 echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6
12862 fi
12863
12864 fi
12865
12866
12867 fi;
12868
12869
12870
12871 if test "x${user_specified_javac}" = x; then
12872
12873
12874 if test "x${GCJ}" != x; then
12875 FOUND_GCJ_TRUE=
12876 FOUND_GCJ_FALSE='#'
12877 else
12878 FOUND_GCJ_TRUE='#'
12879 FOUND_GCJ_FALSE=
12880 fi
12881
12882
12883
12884 if test "x${JIKES}" != x; then
12885 FOUND_JIKES_TRUE=
12886 FOUND_JIKES_FALSE='#'
12887 else
12888 FOUND_JIKES_TRUE='#'
12889 FOUND_JIKES_FALSE=
12890 fi
12891
12892
12893
12894 if test "x${ECJ}" != x; then
12895 FOUND_ECJ_TRUE=
12896 FOUND_ECJ_FALSE='#'
12897 else
12898 FOUND_ECJ_TRUE='#'
12899 FOUND_ECJ_FALSE=
12900 fi
12901
12902 else
12903
12904
12905 if test "x${user_specified_javac}" = xgcj; then
12906 FOUND_GCJ_TRUE=
12907 FOUND_GCJ_FALSE='#'
12908 else
12909 FOUND_GCJ_TRUE='#'
12910 FOUND_GCJ_FALSE=
12911 fi
12912
12913
12914
12915 if test "x${user_specified_javac}" = xjikes; then
12916 FOUND_JIKES_TRUE=
12917 FOUND_JIKES_FALSE='#'
12918 else
12919 FOUND_JIKES_TRUE='#'
12920 FOUND_JIKES_FALSE=
12921 fi
12922
12923
12924
12925 if test "x${user_specified_javac}" = xecj; then
12926 FOUND_ECJ_TRUE=
12927 FOUND_ECJ_FALSE='#'
12928 else
12929 FOUND_ECJ_TRUE='#'
12930 FOUND_ECJ_FALSE=
12931 fi
12932
12933 fi
12934
12935
12936 if test "x${user_specified_javac}" = xkjc; then
12937 FOUND_KJC_TRUE=
12938 FOUND_KJC_FALSE='#'
12939 else
12940 FOUND_KJC_TRUE='#'
12941 FOUND_KJC_FALSE=
12942 fi
12943
12944
12945
12946 if test "x${user_specified_javac}" = xgcjx; then
12947 FOUND_GCJX_TRUE=
12948 FOUND_GCJX_FALSE='#'
12949 else
12950 FOUND_GCJX_TRUE='#'
12951 FOUND_GCJX_FALSE=
12952 fi
12953
12954
12955 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx; then
12956 # FIXME: use autoconf error function
12957 echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or --with-gcjx" 1>&2
12958 exit 1
12959 fi
12960
12961
12962
12963
12964 # Check whether --with-classpath or --without-classpath was given.
12965 if test "${with_classpath+set}" = set; then
12966 withval="$with_classpath"
12967
12968 if test "x${withval}" = xyes; then
12969 # set user classpath to CLASSPATH from env
12970 echo "$as_me:$LINENO: checking for classlib" >&5
12971 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
12972 USER_CLASSLIB=${CLASSPATH}
12973
12974 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
12975 echo "${ECHO_T}${USER_CLASSLIB}" >&6
12976 conditional_with_classlib=true
12977 elif test "x${withval}" != x && test "x${withval}" != xno; then
12978 # set user classpath to specified value
12979 echo "$as_me:$LINENO: checking for classlib" >&5
12980 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
12981 USER_CLASSLIB=${withval}
12982
12983 echo "$as_me:$LINENO: result: ${withval}" >&5
12984 echo "${ECHO_T}${withval}" >&6
12985 conditional_with_classlib=true
12986 fi
12987
12988 else
12989 conditional_with_classlib=false
12990 fi;
12991
12992
12993 if test "x${conditional_with_classlib}" = xtrue; then
12994 USER_SPECIFIED_CLASSLIB_TRUE=
12995 USER_SPECIFIED_CLASSLIB_FALSE='#'
12996 else
12997 USER_SPECIFIED_CLASSLIB_TRUE='#'
12998 USER_SPECIFIED_CLASSLIB_FALSE=
12999 fi
13000
13001
13002
13003 # Check whether --with-vm-classes or --without-vm-classes was given.
13004 if test "${with_vm_classes+set}" = set; then
13005 withval="$with_vm_classes"
13006 vm_classes="$with_vm_classes"
13007 else
13008 vm_classes='${top_srcdir}/vm/reference'
13009 fi;
13010
13011
13012
13013 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13014 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13015 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13016 if test "${enable_maintainer_mode+set}" = set; then
13017 enableval="$enable_maintainer_mode"
13018 USE_MAINTAINER_MODE=$enableval
13019 else
13020 USE_MAINTAINER_MODE=no
13021 fi;
13022 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13023 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13024
13025
13026 if test $USE_MAINTAINER_MODE = yes; then
13027 MAINTAINER_MODE_TRUE=
13028 MAINTAINER_MODE_FALSE='#'
13029 else
13030 MAINTAINER_MODE_TRUE='#'
13031 MAINTAINER_MODE_FALSE=
13032 fi
13033
13034 MAINT=$MAINTAINER_MODE_TRUE
13035
13036
13037
13038 # Check whether --enable-debug or --disable-debug was given.
13039 if test "${enable_debug+set}" = set; then
13040 enableval="$enable_debug"
13041 case "${enableval}" in
13042 yes)
13043 LIBDEBUG="true"
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define DEBUG 1
13047 _ACEOF
13048
13049 ;;
13050 no) LIBDEBUG="false" ;;
13051 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
13052 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
13053 { (exit 1); exit 1; }; } ;;
13054 esac
13055 else
13056 LIBDEBUG="false"
13057 fi;
13058
13059
13060 # Check whether --enable-load-library or --disable-load-library was given.
13061 if test "${enable_load_library+set}" = set; then
13062 enableval="$enable_load_library"
13063 case "${enableval}" in
13064 yes) INIT_LOAD_LIBRARY="true" ;;
13065 no) INIT_LOAD_LIBRARY="false" ;;
13066 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
13067 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
13068 { (exit 1); exit 1; }; } ;;
13069 esac
13070 else
13071 INIT_LOAD_LIBRARY="true"
13072 fi;
13073
13074
13075
13076 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
13077 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
13078 enableval="$enable_java_lang_system_explicit_initialization"
13079 case "${enableval}" in
13080 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
13081 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
13082 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
13083 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
13084 { (exit 1); exit 1; }; } ;;
13085 esac
13086 else
13087 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
13088 fi;
13089
13090
13091
13092 REMOVE=""
13093
13094
13095 # Extract the first word of "mkdir", so it can be a program name with args.
13096 set dummy mkdir; ac_word=$2
13097 echo "$as_me:$LINENO: checking for $ac_word" >&5
13098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13099 if test "${ac_cv_path_MKDIR+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 case $MKDIR in
13103 [\\/]* | ?:[\\/]*)
13104 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
13105 ;;
13106 *)
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13109 do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
13115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13117 fi
13118 done
13119 done
13120
13121 ;;
13122 esac
13123 fi
13124 MKDIR=$ac_cv_path_MKDIR
13125
13126 if test -n "$MKDIR"; then
13127 echo "$as_me:$LINENO: result: $MKDIR" >&5
13128 echo "${ECHO_T}$MKDIR" >&6
13129 else
13130 echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6
13132 fi
13133
13134 # Extract the first word of "cp", so it can be a program name with args.
13135 set dummy cp; ac_word=$2
13136 echo "$as_me:$LINENO: checking for $ac_word" >&5
13137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13138 if test "${ac_cv_path_CP+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 case $CP in
13142 [\\/]* | ?:[\\/]*)
13143 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13144 ;;
13145 *)
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157 done
13158 done
13159
13160 ;;
13161 esac
13162 fi
13163 CP=$ac_cv_path_CP
13164
13165 if test -n "$CP"; then
13166 echo "$as_me:$LINENO: result: $CP" >&5
13167 echo "${ECHO_T}$CP" >&6
13168 else
13169 echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6
13171 fi
13172
13173 # Extract the first word of "date", so it can be a program name with args.
13174 set dummy date; ac_word=$2
13175 echo "$as_me:$LINENO: checking for $ac_word" >&5
13176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13177 if test "${ac_cv_path_DATE+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180 case $DATE in
13181 [\\/]* | ?:[\\/]*)
13182 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
13183 ;;
13184 *)
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
13193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13195 fi
13196 done
13197 done
13198
13199 ;;
13200 esac
13201 fi
13202 DATE=$ac_cv_path_DATE
13203
13204 if test -n "$DATE"; then
13205 echo "$as_me:$LINENO: result: $DATE" >&5
13206 echo "${ECHO_T}$DATE" >&6
13207 else
13208 echo "$as_me:$LINENO: result: no" >&5
13209 echo "${ECHO_T}no" >&6
13210 fi
13211
13212
13213 # Extract the first word of "find", so it can be a program name with args.
13214 set dummy find; ac_word=$2
13215 echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13217 if test "${ac_cv_path_FIND+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 case $FIND in
13221 [\\/]* | ?:[\\/]*)
13222 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
13223 ;;
13224 *)
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13235 fi
13236 done
13237 done
13238
13239 ;;
13240 esac
13241 fi
13242 FIND=$ac_cv_path_FIND
13243
13244 if test -n "$FIND"; then
13245 echo "$as_me:$LINENO: result: $FIND" >&5
13246 echo "${ECHO_T}$FIND" >&6
13247 else
13248 echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6
13250 fi
13251
13252
13253
13254 # Extract the first word of "zip", so it can be a program name with args.
13255 set dummy zip; ac_word=$2
13256 echo "$as_me:$LINENO: checking for $ac_word" >&5
13257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13258 if test "${ac_cv_path_ZIP+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261 case $ZIP in
13262 [\\/]* | ?:[\\/]*)
13263 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
13264 ;;
13265 *)
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
13274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13276 fi
13277 done
13278 done
13279
13280 ;;
13281 esac
13282 fi
13283 ZIP=$ac_cv_path_ZIP
13284
13285 if test -n "$ZIP"; then
13286 echo "$as_me:$LINENO: result: $ZIP" >&5
13287 echo "${ECHO_T}$ZIP" >&6
13288 else
13289 echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6
13291 fi
13292
13293
13294 # Check whether --with-glibj or --without-glibj was given.
13295 if test "${with_glibj+set}" = set; then
13296 withval="$with_glibj"
13297
13298 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
13299 install_class_files=no
13300 build_class_files=yes
13301 use_zip=yes
13302 elif test "x${withval}" = xboth; then
13303 install_class_files=yes
13304 build_class_files=yes
13305 use_zip=yes
13306 elif test "x${withval}" = xflat; then
13307 install_class_files=yes
13308 build_class_files=yes
13309 use_zip=no
13310 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
13311 install_class_files=no
13312 build_class_files=no
13313 use_zip=no
13314 elif test "x${withval}" = xbuild; then
13315 install_class_files=no
13316 build_class_files=yes
13317 use_zip=no
13318 else
13319 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
13320 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
13321 { (exit 1); exit 1; }; }
13322 fi
13323
13324 else
13325
13326 install_class_files=no
13327 use_zip=yes
13328
13329 fi;
13330
13331
13332 if test "x${use_zip}" = xyes; then
13333 INSTALL_GLIBJ_ZIP_TRUE=
13334 INSTALL_GLIBJ_ZIP_FALSE='#'
13335 else
13336 INSTALL_GLIBJ_ZIP_TRUE='#'
13337 INSTALL_GLIBJ_ZIP_FALSE=
13338 fi
13339
13340
13341
13342 if test "x${install_class_files}" = xyes; then
13343 INSTALL_CLASS_FILES_TRUE=
13344 INSTALL_CLASS_FILES_FALSE='#'
13345 else
13346 INSTALL_CLASS_FILES_TRUE='#'
13347 INSTALL_CLASS_FILES_FALSE=
13348 fi
13349
13350
13351
13352 if test "x${build_class_files}" = xyes; then
13353 BUILD_CLASS_FILES_TRUE=
13354 BUILD_CLASS_FILES_FALSE='#'
13355 else
13356 BUILD_CLASS_FILES_TRUE='#'
13357 BUILD_CLASS_FILES_FALSE=
13358 fi
13359
13360
13361 # Check whether --enable-examples or --disable-examples was given.
13362 if test "${enable_examples+set}" = set; then
13363 enableval="$enable_examples"
13364 case "${enableval}" in
13365 yes) EXAMPLESDIR="examples" ;;
13366 no) EXAMPLESDIR="" ;;
13367 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
13368 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
13369 { (exit 1); exit 1; }; } ;;
13370 esac
13371 else
13372 EXAMPLESDIR="examples"
13373 fi;
13374 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
13375 EXAMPLESDIR=""
13376 fi
13377
13378
13379
13380
13381
13382 # Check whether --with-gjdoc or --without-gjdoc was given.
13383 if test "${with_gjdoc+set}" = set; then
13384 withval="$with_gjdoc"
13385 if test "x${withval}" = xno; then
13386 WITH_GJDOC=no;
13387 elif test "x${withval}" = xyes -o "x{withval}" = x; then
13388 WITH_GJDOC=yes;
13389 # Extract the first word of "gjdoc", so it can be a program name with args.
13390 set dummy gjdoc; ac_word=$2
13391 echo "$as_me:$LINENO: checking for $ac_word" >&5
13392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13393 if test "${ac_cv_path_GJDOC+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 case $GJDOC in
13397 [\\/]* | ?:[\\/]*)
13398 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
13399 ;;
13400 *)
13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in $PATH
13403 do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
13409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412 done
13413 done
13414
13415 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
13416 ;;
13417 esac
13418 fi
13419 GJDOC=$ac_cv_path_GJDOC
13420
13421 if test -n "$GJDOC"; then
13422 echo "$as_me:$LINENO: result: $GJDOC" >&5
13423 echo "${ECHO_T}$GJDOC" >&6
13424 else
13425 echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6
13427 fi
13428
13429 if test "x${GJDOC}" = xno; then
13430 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
13431 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
13432 { (exit 1); exit 1; }; };
13433 fi
13434 else
13435 WITH_GJDOC=yes
13436 GJDOC="${withval}"
13437 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
13438 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
13439 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
13440 if eval "test \"\${$as_ac_File+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 test "$cross_compiling" = yes &&
13444 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13445 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13446 { (exit 1); exit 1; }; }
13447 if test -r "${GJDOC}"; then
13448 eval "$as_ac_File=yes"
13449 else
13450 eval "$as_ac_File=no"
13451 fi
13452 fi
13453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
13454 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
13455 if test `eval echo '${'$as_ac_File'}'` = yes; then
13456 :
13457 else
13458 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
13459 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
13460 { (exit 1); exit 1; }; }
13461 fi
13462
13463 fi
13464 else
13465 WITH_GJDOC=no
13466 fi;
13467
13468
13469
13470 if test "x${WITH_GJDOC}" = xyes; then
13471 CREATE_API_DOCS_TRUE=
13472 CREATE_API_DOCS_FALSE='#'
13473 else
13474 CREATE_API_DOCS_TRUE='#'
13475 CREATE_API_DOCS_FALSE=
13476 fi
13477
13478
13479
13480
13481
13482 # Check whether --with-jay or --without-jay was given.
13483 if test "${with_jay+set}" = set; then
13484 withval="$with_jay"
13485
13486 if test -d "${withval}"; then
13487 JAY_DIR_PATH="${withval}"
13488 # Extract the first word of "jay", so it can be a program name with args.
13489 set dummy jay; ac_word=$2
13490 echo "$as_me:$LINENO: checking for $ac_word" >&5
13491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13492 if test "${ac_cv_path_JAY+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 case $JAY in
13496 [\\/]* | ?:[\\/]*)
13497 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
13498 ;;
13499 *)
13500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501 for as_dir in ${JAY_DIR_PATH}
13502 do
13503 IFS=$as_save_IFS
13504 test -z "$as_dir" && as_dir=.
13505 for ac_exec_ext in '' $ac_executable_extensions; do
13506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13507 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
13508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13509 break 2
13510 fi
13511 done
13512 done
13513
13514 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
13515 ;;
13516 esac
13517 fi
13518 JAY=$ac_cv_path_JAY
13519
13520 if test -n "$JAY"; then
13521 echo "$as_me:$LINENO: result: $JAY" >&5
13522 echo "${ECHO_T}$JAY" >&6
13523 else
13524 echo "$as_me:$LINENO: result: no" >&5
13525 echo "${ECHO_T}no" >&6
13526 fi
13527
13528 if test "x${JAY}" = xno; then
13529 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
13530 echo "$as_me: error: \"jay executable not found\"" >&2;}
13531 { (exit 1); exit 1; }; };
13532 fi
13533 else
13534 JAY_DIR_PATH=$(dirname "${withval}")
13535 JAY="${withval}"
13536
13537 fi
13538 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
13539 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
13540 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
13541 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
13542 if eval "test \"\${$as_ac_File+set}\" = set"; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 test "$cross_compiling" = yes &&
13546 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13547 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13548 { (exit 1); exit 1; }; }
13549 if test -r "${JAY_SKELETON}"; then
13550 eval "$as_ac_File=yes"
13551 else
13552 eval "$as_ac_File=no"
13553 fi
13554 fi
13555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
13556 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
13557 if test `eval echo '${'$as_ac_File'}'` = yes; then
13558 :
13559 else
13560 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
13561 echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
13562 { (exit 1); exit 1; }; }
13563 fi
13564
13565 JAY_FOUND=yes
13566
13567 else
13568
13569 JAY_FOUND=no
13570
13571 fi;
13572
13573
13574 if test "x${JAY_FOUND}" = xyes; then
13575 REGEN_PARSERS_TRUE=
13576 REGEN_PARSERS_FALSE='#'
13577 else
13578 REGEN_PARSERS_TRUE='#'
13579 REGEN_PARSERS_FALSE=
13580 fi
13581
13582
13583
13584 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
13585 if test "${enable_portable_native_sync+set}" = set; then
13586 enableval="$enable_portable_native_sync"
13587 case "${enableval}" in
13588 yes)
13589
13590 cat >>confdefs.h <<\_ACEOF
13591 #define PORTABLE_NATIVE_SYNC 1
13592 _ACEOF
13593
13594 ;;
13595 no) ;;
13596 *)
13597 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
13598 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
13599 { (exit 1); exit 1; }; }
13600 ;;
13601 esac
13602 fi;
13603
13604 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/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh examples/Makefile examples/Makefile.jawt"
13605
13606 ac_config_commands="$ac_config_commands gen-classlist"
13607
13608 cat >confcache <<\_ACEOF
13609 # This file is a shell script that caches the results of configure
13610 # tests run on this system so they can be shared between configure
13611 # scripts and configure runs, see configure's option --config-cache.
13612 # It is not useful on other systems. If it contains results you don't
13613 # want to keep, you may remove or edit it.
13614 #
13615 # config.status only pays attention to the cache file if you give it
13616 # the --recheck option to rerun configure.
13617 #
13618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13620 # following values.
13621
13622 _ACEOF
13623
13624 # The following way of writing the cache mishandles newlines in values,
13625 # but we know of no workaround that is simple, portable, and efficient.
13626 # So, don't put newlines in cache variables' values.
13627 # Ultrix sh set writes to stderr and can't be redirected directly,
13628 # and sets the high bit in the cache file unless we assign to the vars.
13629 {
13630 (set) 2>&1 |
13631 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13632 *ac_space=\ *)
13633 # `set' does not quote correctly, so add quotes (double-quote
13634 # substitution turns \\\\ into \\, and sed turns \\ into \).
13635 sed -n \
13636 "s/'/'\\\\''/g;
13637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13638 ;;
13639 *)
13640 # `set' quotes correctly as required by POSIX, so do not add quotes.
13641 sed -n \
13642 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13643 ;;
13644 esac;
13645 } |
13646 sed '
13647 t clear
13648 : clear
13649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13650 t end
13651 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13652 : end' >>confcache
13653 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13654 if test -w $cache_file; then
13655 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13656 cat confcache >$cache_file
13657 else
13658 echo "not updating unwritable cache $cache_file"
13659 fi
13660 fi
13661 rm -f confcache
13662
13663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13664 # Let make expand exec_prefix.
13665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13666
13667 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13668 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13669 # trailing colons and then remove the whole line if VPATH becomes empty
13670 # (actually we leave an empty line to preserve line numbers).
13671 if test "x$srcdir" = x.; then
13672 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13673 s/:*\$(srcdir):*/:/;
13674 s/:*\${srcdir}:*/:/;
13675 s/:*@srcdir@:*/:/;
13676 s/^\([^=]*=[ ]*\):*/\1/;
13677 s/:*$//;
13678 s/^[^=]*=[ ]*$//;
13679 }'
13680 fi
13681
13682 DEFS=-DHAVE_CONFIG_H
13683
13684 ac_libobjs=
13685 ac_ltlibobjs=
13686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13687 # 1. Remove the extension, and $U if already installed.
13688 ac_i=`echo "$ac_i" |
13689 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13690 # 2. Add them.
13691 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13692 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13693 done
13694 LIBOBJS=$ac_libobjs
13695
13696 LTLIBOBJS=$ac_ltlibobjs
13697
13698
13699 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
13700 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
13701 Usually this means the macro was only invoked conditionally." >&5
13702 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
13703 Usually this means the macro was only invoked conditionally." >&2;}
13704 { (exit 1); exit 1; }; }
13705 fi
13706 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
13707 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
13708 Usually this means the macro was only invoked conditionally." >&5
13709 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
13710 Usually this means the macro was only invoked conditionally." >&2;}
13711 { (exit 1); exit 1; }; }
13712 fi
13713 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
13714 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
13715 Usually this means the macro was only invoked conditionally." >&5
13716 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
13717 Usually this means the macro was only invoked conditionally." >&2;}
13718 { (exit 1); exit 1; }; }
13719 fi
13720 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
13721 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
13722 Usually this means the macro was only invoked conditionally." >&5
13723 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
13724 Usually this means the macro was only invoked conditionally." >&2;}
13725 { (exit 1); exit 1; }; }
13726 fi
13727 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
13728 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
13729 Usually this means the macro was only invoked conditionally." >&5
13730 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
13731 Usually this means the macro was only invoked conditionally." >&2;}
13732 { (exit 1); exit 1; }; }
13733 fi
13734 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
13735 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
13736 Usually this means the macro was only invoked conditionally." >&5
13737 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
13738 Usually this means the macro was only invoked conditionally." >&2;}
13739 { (exit 1); exit 1; }; }
13740 fi
13741 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
13742 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
13743 Usually this means the macro was only invoked conditionally." >&5
13744 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
13745 Usually this means the macro was only invoked conditionally." >&2;}
13746 { (exit 1); exit 1; }; }
13747 fi
13748 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13749 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13750 Usually this means the macro was only invoked conditionally." >&5
13751 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13752 Usually this means the macro was only invoked conditionally." >&2;}
13753 { (exit 1); exit 1; }; }
13754 fi
13755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13756 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13757 Usually this means the macro was only invoked conditionally." >&5
13758 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13759 Usually this means the macro was only invoked conditionally." >&2;}
13760 { (exit 1); exit 1; }; }
13761 fi
13762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13763 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13764 Usually this means the macro was only invoked conditionally." >&5
13765 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13766 Usually this means the macro was only invoked conditionally." >&2;}
13767 { (exit 1); exit 1; }; }
13768 fi
13769 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13770 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
13771 Usually this means the macro was only invoked conditionally." >&5
13772 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
13773 Usually this means the macro was only invoked conditionally." >&2;}
13774 { (exit 1); exit 1; }; }
13775 fi
13776 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
13777 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
13778 Usually this means the macro was only invoked conditionally." >&5
13779 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
13780 Usually this means the macro was only invoked conditionally." >&2;}
13781 { (exit 1); exit 1; }; }
13782 fi
13783 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
13784 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
13785 Usually this means the macro was only invoked conditionally." >&5
13786 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
13787 Usually this means the macro was only invoked conditionally." >&2;}
13788 { (exit 1); exit 1; }; }
13789 fi
13790 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
13791 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
13792 Usually this means the macro was only invoked conditionally." >&5
13793 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
13794 Usually this means the macro was only invoked conditionally." >&2;}
13795 { (exit 1); exit 1; }; }
13796 fi
13797 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
13798 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
13799 Usually this means the macro was only invoked conditionally." >&5
13800 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
13801 Usually this means the macro was only invoked conditionally." >&2;}
13802 { (exit 1); exit 1; }; }
13803 fi
13804 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
13805 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
13806 Usually this means the macro was only invoked conditionally." >&5
13807 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
13808 Usually this means the macro was only invoked conditionally." >&2;}
13809 { (exit 1); exit 1; }; }
13810 fi
13811 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
13812 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
13813 Usually this means the macro was only invoked conditionally." >&5
13814 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
13815 Usually this means the macro was only invoked conditionally." >&2;}
13816 { (exit 1); exit 1; }; }
13817 fi
13818 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
13819 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
13820 Usually this means the macro was only invoked conditionally." >&5
13821 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
13822 Usually this means the macro was only invoked conditionally." >&2;}
13823 { (exit 1); exit 1; }; }
13824 fi
13825 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
13826 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
13827 Usually this means the macro was only invoked conditionally." >&5
13828 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
13829 Usually this means the macro was only invoked conditionally." >&2;}
13830 { (exit 1); exit 1; }; }
13831 fi
13832 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
13833 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
13834 Usually this means the macro was only invoked conditionally." >&5
13835 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
13836 Usually this means the macro was only invoked conditionally." >&2;}
13837 { (exit 1); exit 1; }; }
13838 fi
13839 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
13840 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
13841 Usually this means the macro was only invoked conditionally." >&5
13842 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
13843 Usually this means the macro was only invoked conditionally." >&2;}
13844 { (exit 1); exit 1; }; }
13845 fi
13846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13847 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13848 Usually this means the macro was only invoked conditionally." >&5
13849 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13850 Usually this means the macro was only invoked conditionally." >&2;}
13851 { (exit 1); exit 1; }; }
13852 fi
13853 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
13854 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
13855 Usually this means the macro was only invoked conditionally." >&5
13856 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
13857 Usually this means the macro was only invoked conditionally." >&2;}
13858 { (exit 1); exit 1; }; }
13859 fi
13860 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
13861 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
13862 Usually this means the macro was only invoked conditionally." >&5
13863 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
13864 Usually this means the macro was only invoked conditionally." >&2;}
13865 { (exit 1); exit 1; }; }
13866 fi
13867 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
13868 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
13869 Usually this means the macro was only invoked conditionally." >&5
13870 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
13871 Usually this means the macro was only invoked conditionally." >&2;}
13872 { (exit 1); exit 1; }; }
13873 fi
13874 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
13875 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
13876 Usually this means the macro was only invoked conditionally." >&5
13877 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
13878 Usually this means the macro was only invoked conditionally." >&2;}
13879 { (exit 1); exit 1; }; }
13880 fi
13881 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
13882 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
13883 Usually this means the macro was only invoked conditionally." >&5
13884 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
13885 Usually this means the macro was only invoked conditionally." >&2;}
13886 { (exit 1); exit 1; }; }
13887 fi
13888
13889 : ${CONFIG_STATUS=./config.status}
13890 ac_clean_files_save=$ac_clean_files
13891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13894 cat >$CONFIG_STATUS <<_ACEOF
13895 #! $SHELL
13896 # Generated by $as_me.
13897 # Run this file to recreate the current configuration.
13898 # Compiler output produced by configure, useful for debugging
13899 # configure, is in config.log if it exists.
13900
13901 debug=false
13902 ac_cs_recheck=false
13903 ac_cs_silent=false
13904 SHELL=\${CONFIG_SHELL-$SHELL}
13905 _ACEOF
13906
13907 cat >>$CONFIG_STATUS <<\_ACEOF
13908 ## --------------------- ##
13909 ## M4sh Initialization. ##
13910 ## --------------------- ##
13911
13912 # Be Bourne compatible
13913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13914 emulate sh
13915 NULLCMD=:
13916 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13917 # is contrary to our usage. Disable this feature.
13918 alias -g '${1+"$@"}'='"$@"'
13919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13920 set -o posix
13921 fi
13922 DUALCASE=1; export DUALCASE # for MKS sh
13923
13924 # Support unset when possible.
13925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13926 as_unset=unset
13927 else
13928 as_unset=false
13929 fi
13930
13931
13932 # Work around bugs in pre-3.0 UWIN ksh.
13933 $as_unset ENV MAIL MAILPATH
13934 PS1='$ '
13935 PS2='> '
13936 PS4='+ '
13937
13938 # NLS nuisances.
13939 for as_var in \
13940 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13941 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13942 LC_TELEPHONE LC_TIME
13943 do
13944 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13945 eval $as_var=C; export $as_var
13946 else
13947 $as_unset $as_var
13948 fi
13949 done
13950
13951 # Required to use basename.
13952 if expr a : '\(a\)' >/dev/null 2>&1; then
13953 as_expr=expr
13954 else
13955 as_expr=false
13956 fi
13957
13958 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13959 as_basename=basename
13960 else
13961 as_basename=false
13962 fi
13963
13964
13965 # Name of the executable.
13966 as_me=`$as_basename "$0" ||
13967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13968 X"$0" : 'X\(//\)$' \| \
13969 X"$0" : 'X\(/\)$' \| \
13970 . : '\(.\)' 2>/dev/null ||
13971 echo X/"$0" |
13972 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13973 /^X\/\(\/\/\)$/{ s//\1/; q; }
13974 /^X\/\(\/\).*/{ s//\1/; q; }
13975 s/.*/./; q'`
13976
13977
13978 # PATH needs CR, and LINENO needs CR and PATH.
13979 # Avoid depending upon Character Ranges.
13980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13983 as_cr_digits='0123456789'
13984 as_cr_alnum=$as_cr_Letters$as_cr_digits
13985
13986 # The user is always right.
13987 if test "${PATH_SEPARATOR+set}" != set; then
13988 echo "#! /bin/sh" >conf$$.sh
13989 echo "exit 0" >>conf$$.sh
13990 chmod +x conf$$.sh
13991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13992 PATH_SEPARATOR=';'
13993 else
13994 PATH_SEPARATOR=:
13995 fi
13996 rm -f conf$$.sh
13997 fi
13998
13999
14000 as_lineno_1=$LINENO
14001 as_lineno_2=$LINENO
14002 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14003 test "x$as_lineno_1" != "x$as_lineno_2" &&
14004 test "x$as_lineno_3" = "x$as_lineno_2" || {
14005 # Find who we are. Look in the path if we contain no path at all
14006 # relative or not.
14007 case $0 in
14008 *[\\/]* ) as_myself=$0 ;;
14009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14011 do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14015 done
14016
14017 ;;
14018 esac
14019 # We did not find ourselves, most probably we were run as `sh COMMAND'
14020 # in which case we are not to be found in the path.
14021 if test "x$as_myself" = x; then
14022 as_myself=$0
14023 fi
14024 if test ! -f "$as_myself"; then
14025 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14026 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14027 { (exit 1); exit 1; }; }
14028 fi
14029 case $CONFIG_SHELL in
14030 '')
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14033 do
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for as_base in sh bash ksh sh5; do
14037 case $as_dir in
14038 /*)
14039 if ("$as_dir/$as_base" -c '
14040 as_lineno_1=$LINENO
14041 as_lineno_2=$LINENO
14042 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14043 test "x$as_lineno_1" != "x$as_lineno_2" &&
14044 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14045 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14046 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14047 CONFIG_SHELL=$as_dir/$as_base
14048 export CONFIG_SHELL
14049 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14050 fi;;
14051 esac
14052 done
14053 done
14054 ;;
14055 esac
14056
14057 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14058 # uniformly replaced by the line number. The first 'sed' inserts a
14059 # line-number line before each line; the second 'sed' does the real
14060 # work. The second script uses 'N' to pair each line-number line
14061 # with the numbered line, and appends trailing '-' during
14062 # substitution so that $LINENO is not a special case at line end.
14063 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14064 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14065 sed '=' <$as_myself |
14066 sed '
14067 N
14068 s,$,-,
14069 : loop
14070 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14071 t loop
14072 s,-$,,
14073 s,^['$as_cr_digits']*\n,,
14074 ' >$as_me.lineno &&
14075 chmod +x $as_me.lineno ||
14076 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14077 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14078 { (exit 1); exit 1; }; }
14079
14080 # Don't try to exec as it changes $[0], causing all sort of problems
14081 # (the dirname of $[0] is not the place where we might find the
14082 # original and so on. Autoconf is especially sensible to this).
14083 . ./$as_me.lineno
14084 # Exit status is that of the last command.
14085 exit
14086 }
14087
14088
14089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14090 *c*,-n*) ECHO_N= ECHO_C='
14091 ' ECHO_T=' ' ;;
14092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14094 esac
14095
14096 if expr a : '\(a\)' >/dev/null 2>&1; then
14097 as_expr=expr
14098 else
14099 as_expr=false
14100 fi
14101
14102 rm -f conf$$ conf$$.exe conf$$.file
14103 echo >conf$$.file
14104 if ln -s conf$$.file conf$$ 2>/dev/null; then
14105 # We could just check for DJGPP; but this test a) works b) is more generic
14106 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14107 if test -f conf$$.exe; then
14108 # Don't use ln at all; we don't have any links
14109 as_ln_s='cp -p'
14110 else
14111 as_ln_s='ln -s'
14112 fi
14113 elif ln conf$$.file conf$$ 2>/dev/null; then
14114 as_ln_s=ln
14115 else
14116 as_ln_s='cp -p'
14117 fi
14118 rm -f conf$$ conf$$.exe conf$$.file
14119
14120 if mkdir -p . 2>/dev/null; then
14121 as_mkdir_p=:
14122 else
14123 test -d ./-p && rmdir ./-p
14124 as_mkdir_p=false
14125 fi
14126
14127 as_executable_p="test -f"
14128
14129 # Sed expression to map a string onto a valid CPP name.
14130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14131
14132 # Sed expression to map a string onto a valid variable name.
14133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14134
14135
14136 # IFS
14137 # We need space, tab and new line, in precisely that order.
14138 as_nl='
14139 '
14140 IFS=" $as_nl"
14141
14142 # CDPATH.
14143 $as_unset CDPATH
14144
14145 exec 6>&1
14146
14147 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14148 # report actual input values of CONFIG_FILES etc. instead of their
14149 # values after options handling. Logging --version etc. is OK.
14150 exec 5>>config.log
14151 {
14152 echo
14153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14154 ## Running $as_me. ##
14155 _ASBOX
14156 } >&5
14157 cat >&5 <<_CSEOF
14158
14159 This file was extended by GNU Classpath $as_me 0.18, which was
14160 generated by GNU Autoconf 2.59. Invocation command line was
14161
14162 CONFIG_FILES = $CONFIG_FILES
14163 CONFIG_HEADERS = $CONFIG_HEADERS
14164 CONFIG_LINKS = $CONFIG_LINKS
14165 CONFIG_COMMANDS = $CONFIG_COMMANDS
14166 $ $0 $@
14167
14168 _CSEOF
14169 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14170 echo >&5
14171 _ACEOF
14172
14173 # Files that config.status was made for.
14174 if test -n "$ac_config_files"; then
14175 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14176 fi
14177
14178 if test -n "$ac_config_headers"; then
14179 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14180 fi
14181
14182 if test -n "$ac_config_links"; then
14183 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14184 fi
14185
14186 if test -n "$ac_config_commands"; then
14187 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14188 fi
14189
14190 cat >>$CONFIG_STATUS <<\_ACEOF
14191
14192 ac_cs_usage="\
14193 \`$as_me' instantiates files from templates according to the
14194 current configuration.
14195
14196 Usage: $0 [OPTIONS] [FILE]...
14197
14198 -h, --help print this help, then exit
14199 -V, --version print version number, then exit
14200 -q, --quiet do not print progress messages
14201 -d, --debug don't remove temporary files
14202 --recheck update $as_me by reconfiguring in the same conditions
14203 --file=FILE[:TEMPLATE]
14204 instantiate the configuration file FILE
14205 --header=FILE[:TEMPLATE]
14206 instantiate the configuration header FILE
14207
14208 Configuration files:
14209 $config_files
14210
14211 Configuration headers:
14212 $config_headers
14213
14214 Configuration links:
14215 $config_links
14216
14217 Configuration commands:
14218 $config_commands
14219
14220 Report bugs to <bug-autoconf@gnu.org>."
14221 _ACEOF
14222
14223 cat >>$CONFIG_STATUS <<_ACEOF
14224 ac_cs_version="\\
14225 GNU Classpath config.status 0.18
14226 configured by $0, generated by GNU Autoconf 2.59,
14227 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14228
14229 Copyright (C) 2003 Free Software Foundation, Inc.
14230 This config.status script is free software; the Free Software Foundation
14231 gives unlimited permission to copy, distribute and modify it."
14232 srcdir=$srcdir
14233 INSTALL="$INSTALL"
14234 _ACEOF
14235
14236 cat >>$CONFIG_STATUS <<\_ACEOF
14237 # If no file are specified by the user, then we need to provide default
14238 # value. By we need to know if files were specified by the user.
14239 ac_need_defaults=:
14240 while test $# != 0
14241 do
14242 case $1 in
14243 --*=*)
14244 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14245 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14246 ac_shift=:
14247 ;;
14248 -*)
14249 ac_option=$1
14250 ac_optarg=$2
14251 ac_shift=shift
14252 ;;
14253 *) # This is not an option, so the user has probably given explicit
14254 # arguments.
14255 ac_option=$1
14256 ac_need_defaults=false;;
14257 esac
14258
14259 case $ac_option in
14260 # Handling of the options.
14261 _ACEOF
14262 cat >>$CONFIG_STATUS <<\_ACEOF
14263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14264 ac_cs_recheck=: ;;
14265 --version | --vers* | -V )
14266 echo "$ac_cs_version"; exit 0 ;;
14267 --he | --h)
14268 # Conflict between --help and --header
14269 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14270 Try \`$0 --help' for more information." >&5
14271 echo "$as_me: error: ambiguous option: $1
14272 Try \`$0 --help' for more information." >&2;}
14273 { (exit 1); exit 1; }; };;
14274 --help | --hel | -h )
14275 echo "$ac_cs_usage"; exit 0 ;;
14276 --debug | --d* | -d )
14277 debug=: ;;
14278 --file | --fil | --fi | --f )
14279 $ac_shift
14280 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14281 ac_need_defaults=false;;
14282 --header | --heade | --head | --hea )
14283 $ac_shift
14284 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14285 ac_need_defaults=false;;
14286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14287 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14288 ac_cs_silent=: ;;
14289
14290 # This is an error.
14291 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14292 Try \`$0 --help' for more information." >&5
14293 echo "$as_me: error: unrecognized option: $1
14294 Try \`$0 --help' for more information." >&2;}
14295 { (exit 1); exit 1; }; } ;;
14296
14297 *) ac_config_targets="$ac_config_targets $1" ;;
14298
14299 esac
14300 shift
14301 done
14302
14303 ac_configure_extra_args=
14304
14305 if $ac_cs_silent; then
14306 exec 6>/dev/null
14307 ac_configure_extra_args="$ac_configure_extra_args --silent"
14308 fi
14309
14310 _ACEOF
14311 cat >>$CONFIG_STATUS <<_ACEOF
14312 if \$ac_cs_recheck; then
14313 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14314 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14315 fi
14316
14317 _ACEOF
14318
14319 cat >>$CONFIG_STATUS <<_ACEOF
14320 #
14321 # INIT-COMMANDS section.
14322 #
14323
14324 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14325
14326 _ACEOF
14327
14328
14329
14330 cat >>$CONFIG_STATUS <<\_ACEOF
14331 for ac_config_target in $ac_config_targets
14332 do
14333 case "$ac_config_target" in
14334 # Handling of arguments.
14335 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14336 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14337 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
14338 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
14339 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
14340 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
14341 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
14342 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14343 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
14344 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
14345 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
14346 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
14347 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
14348 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
14349 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
14350 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
14351 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
14352 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
14353 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
14354 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
14355 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
14356 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
14357 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
14358 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
14359 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
14360 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14361 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
14362 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14363 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
14364 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14365 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
14366 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14367 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14368 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
14369 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14372 { (exit 1); exit 1; }; };;
14373 esac
14374 done
14375
14376 # If the user did not use the arguments to specify the items to instantiate,
14377 # then the envvar interface is used. Set only those that are not.
14378 # We use the long form for the default assignment because of an extremely
14379 # bizarre bug on SunOS 4.1.3.
14380 if $ac_need_defaults; then
14381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14383 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14385 fi
14386
14387 # Have a temporary directory for convenience. Make it in the build tree
14388 # simply because there is no reason to put it here, and in addition,
14389 # creating and moving files from /tmp can sometimes cause problems.
14390 # Create a temporary directory, and hook for its removal unless debugging.
14391 $debug ||
14392 {
14393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14394 trap '{ (exit 1); exit 1; }' 1 2 13 15
14395 }
14396
14397 # Create a (secure) tmp directory for tmp files.
14398
14399 {
14400 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14401 test -n "$tmp" && test -d "$tmp"
14402 } ||
14403 {
14404 tmp=./confstat$$-$RANDOM
14405 (umask 077 && mkdir $tmp)
14406 } ||
14407 {
14408 echo "$me: cannot create a temporary directory in ." >&2
14409 { (exit 1); exit 1; }
14410 }
14411
14412 _ACEOF
14413
14414 cat >>$CONFIG_STATUS <<_ACEOF
14415
14416 #
14417 # CONFIG_FILES section.
14418 #
14419
14420 # No need to generate the scripts if there are no CONFIG_FILES.
14421 # This happens for instance when ./config.status config.h
14422 if test -n "\$CONFIG_FILES"; then
14423 # Protect against being on the right side of a sed subst in config.status.
14424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14426 s,@SHELL@,$SHELL,;t t
14427 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14428 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14429 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14430 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14431 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14432 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14433 s,@exec_prefix@,$exec_prefix,;t t
14434 s,@prefix@,$prefix,;t t
14435 s,@program_transform_name@,$program_transform_name,;t t
14436 s,@bindir@,$bindir,;t t
14437 s,@sbindir@,$sbindir,;t t
14438 s,@libexecdir@,$libexecdir,;t t
14439 s,@datadir@,$datadir,;t t
14440 s,@sysconfdir@,$sysconfdir,;t t
14441 s,@sharedstatedir@,$sharedstatedir,;t t
14442 s,@localstatedir@,$localstatedir,;t t
14443 s,@libdir@,$libdir,;t t
14444 s,@includedir@,$includedir,;t t
14445 s,@oldincludedir@,$oldincludedir,;t t
14446 s,@infodir@,$infodir,;t t
14447 s,@mandir@,$mandir,;t t
14448 s,@build_alias@,$build_alias,;t t
14449 s,@host_alias@,$host_alias,;t t
14450 s,@target_alias@,$target_alias,;t t
14451 s,@DEFS@,$DEFS,;t t
14452 s,@ECHO_C@,$ECHO_C,;t t
14453 s,@ECHO_N@,$ECHO_N,;t t
14454 s,@ECHO_T@,$ECHO_T,;t t
14455 s,@LIBS@,$LIBS,;t t
14456 s,@build@,$build,;t t
14457 s,@build_cpu@,$build_cpu,;t t
14458 s,@build_vendor@,$build_vendor,;t t
14459 s,@build_os@,$build_os,;t t
14460 s,@host@,$host,;t t
14461 s,@host_cpu@,$host_cpu,;t t
14462 s,@host_vendor@,$host_vendor,;t t
14463 s,@host_os@,$host_os,;t t
14464 s,@target@,$target,;t t
14465 s,@target_cpu@,$target_cpu,;t t
14466 s,@target_vendor@,$target_vendor,;t t
14467 s,@target_os@,$target_os,;t t
14468 s,@LIBVERSION@,$LIBVERSION,;t t
14469 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
14470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14473 s,@CYGPATH_W@,$CYGPATH_W,;t t
14474 s,@PACKAGE@,$PACKAGE,;t t
14475 s,@VERSION@,$VERSION,;t t
14476 s,@ACLOCAL@,$ACLOCAL,;t t
14477 s,@AUTOCONF@,$AUTOCONF,;t t
14478 s,@AUTOMAKE@,$AUTOMAKE,;t t
14479 s,@AUTOHEADER@,$AUTOHEADER,;t t
14480 s,@MAKEINFO@,$MAKEINFO,;t t
14481 s,@install_sh@,$install_sh,;t t
14482 s,@STRIP@,$STRIP,;t t
14483 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14484 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14485 s,@mkdir_p@,$mkdir_p,;t t
14486 s,@AWK@,$AWK,;t t
14487 s,@SET_MAKE@,$SET_MAKE,;t t
14488 s,@am__leading_dot@,$am__leading_dot,;t t
14489 s,@AMTAR@,$AMTAR,;t t
14490 s,@am__tar@,$am__tar,;t t
14491 s,@am__untar@,$am__untar,;t t
14492 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
14493 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
14494 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
14495 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
14496 s,@default_toolkit@,$default_toolkit,;t t
14497 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
14498 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
14499 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
14500 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
14501 s,@GTK_CAIRO_ENABLED@,$GTK_CAIRO_ENABLED,;t t
14502 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
14503 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
14504 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
14505 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
14506 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
14507 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
14508 s,@LN_S@,$LN_S,;t t
14509 s,@CC@,$CC,;t t
14510 s,@CFLAGS@,$CFLAGS,;t t
14511 s,@LDFLAGS@,$LDFLAGS,;t t
14512 s,@CPPFLAGS@,$CPPFLAGS,;t t
14513 s,@ac_ct_CC@,$ac_ct_CC,;t t
14514 s,@EXEEXT@,$EXEEXT,;t t
14515 s,@OBJEXT@,$OBJEXT,;t t
14516 s,@DEPDIR@,$DEPDIR,;t t
14517 s,@am__include@,$am__include,;t t
14518 s,@am__quote@,$am__quote,;t t
14519 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14520 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14521 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14522 s,@CCDEPMODE@,$CCDEPMODE,;t t
14523 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14524 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14525 s,@RANLIB@,$RANLIB,;t t
14526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14527 s,@LIBTOOL@,$LIBTOOL,;t t
14528 s,@CPP@,$CPP,;t t
14529 s,@CXX@,$CXX,;t t
14530 s,@CXXFLAGS@,$CXXFLAGS,;t t
14531 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14532 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
14533 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
14534 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
14535 s,@CXXCPP@,$CXXCPP,;t t
14536 s,@EGREP@,$EGREP,;t t
14537 s,@LIBICONV@,$LIBICONV,;t t
14538 s,@LTLIBICONV@,$LTLIBICONV,;t t
14539 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
14540 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
14541 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
14542 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14543 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
14544 s,@XML_LIBS@,$XML_LIBS,;t t
14545 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
14546 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
14547 s,@X_CFLAGS@,$X_CFLAGS,;t t
14548 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14549 s,@X_LIBS@,$X_LIBS,;t t
14550 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14551 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
14552 s,@GTK_LIBS@,$GTK_LIBS,;t t
14553 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
14554 s,@QT_LIBS@,$QT_LIBS,;t t
14555 s,@MOC@,$MOC,;t t
14556 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
14557 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
14558 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
14559 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
14560 s,@USER_JAVAH@,$USER_JAVAH,;t t
14561 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
14562 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
14563 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
14564 s,@GCJ@,$GCJ,;t t
14565 s,@JIKES@,$JIKES,;t t
14566 s,@JIKESENCODING@,$JIKESENCODING,;t t
14567 s,@KJC@,$KJC,;t t
14568 s,@GCJX@,$GCJX,;t t
14569 s,@ECJ@,$ECJ,;t t
14570 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
14571 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
14572 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
14573 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
14574 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
14575 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
14576 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
14577 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
14578 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
14579 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
14580 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
14581 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
14582 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
14583 s,@vm_classes@,$vm_classes,;t t
14584 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14585 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14586 s,@MAINT@,$MAINT,;t t
14587 s,@LIBDEBUG@,$LIBDEBUG,;t t
14588 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
14589 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
14590 s,@REMOVE@,$REMOVE,;t t
14591 s,@MKDIR@,$MKDIR,;t t
14592 s,@CP@,$CP,;t t
14593 s,@DATE@,$DATE,;t t
14594 s,@FIND@,$FIND,;t t
14595 s,@ZIP@,$ZIP,;t t
14596 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
14597 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
14598 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
14599 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
14600 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
14601 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
14602 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
14603 s,@GJDOC@,$GJDOC,;t t
14604 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
14605 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
14606 s,@JAY@,$JAY,;t t
14607 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
14608 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
14609 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
14610 s,@LIBOBJS@,$LIBOBJS,;t t
14611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14612 CEOF
14613
14614 _ACEOF
14615
14616 cat >>$CONFIG_STATUS <<\_ACEOF
14617 # Split the substitutions into bite-sized pieces for seds with
14618 # small command number limits, like on Digital OSF/1 and HP-UX.
14619 ac_max_sed_lines=48
14620 ac_sed_frag=1 # Number of current file.
14621 ac_beg=1 # First line for current file.
14622 ac_end=$ac_max_sed_lines # Line after last line for current file.
14623 ac_more_lines=:
14624 ac_sed_cmds=
14625 while $ac_more_lines; do
14626 if test $ac_beg -gt 1; then
14627 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14628 else
14629 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14630 fi
14631 if test ! -s $tmp/subs.frag; then
14632 ac_more_lines=false
14633 else
14634 # The purpose of the label and of the branching condition is to
14635 # speed up the sed processing (if there are no `@' at all, there
14636 # is no need to browse any of the substitutions).
14637 # These are the two extra sed commands mentioned above.
14638 (echo ':t
14639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14640 if test -z "$ac_sed_cmds"; then
14641 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14642 else
14643 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14644 fi
14645 ac_sed_frag=`expr $ac_sed_frag + 1`
14646 ac_beg=$ac_end
14647 ac_end=`expr $ac_end + $ac_max_sed_lines`
14648 fi
14649 done
14650 if test -z "$ac_sed_cmds"; then
14651 ac_sed_cmds=cat
14652 fi
14653 fi # test -n "$CONFIG_FILES"
14654
14655 _ACEOF
14656 cat >>$CONFIG_STATUS <<\_ACEOF
14657 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14659 case $ac_file in
14660 - | *:- | *:-:* ) # input from stdin
14661 cat >$tmp/stdin
14662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14666 * ) ac_file_in=$ac_file.in ;;
14667 esac
14668
14669 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14670 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14672 X"$ac_file" : 'X\(//\)[^/]' \| \
14673 X"$ac_file" : 'X\(//\)$' \| \
14674 X"$ac_file" : 'X\(/\)' \| \
14675 . : '\(.\)' 2>/dev/null ||
14676 echo X"$ac_file" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14679 /^X\(\/\/\)$/{ s//\1/; q; }
14680 /^X\(\/\).*/{ s//\1/; q; }
14681 s/.*/./; q'`
14682 { if $as_mkdir_p; then
14683 mkdir -p "$ac_dir"
14684 else
14685 as_dir="$ac_dir"
14686 as_dirs=
14687 while test ! -d "$as_dir"; do
14688 as_dirs="$as_dir $as_dirs"
14689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691 X"$as_dir" : 'X\(//\)[^/]' \| \
14692 X"$as_dir" : 'X\(//\)$' \| \
14693 X"$as_dir" : 'X\(/\)' \| \
14694 . : '\(.\)' 2>/dev/null ||
14695 echo X"$as_dir" |
14696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14698 /^X\(\/\/\)$/{ s//\1/; q; }
14699 /^X\(\/\).*/{ s//\1/; q; }
14700 s/.*/./; q'`
14701 done
14702 test ! -n "$as_dirs" || mkdir $as_dirs
14703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14705 { (exit 1); exit 1; }; }; }
14706
14707 ac_builddir=.
14708
14709 if test "$ac_dir" != .; then
14710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14711 # A "../" for each directory in $ac_dir_suffix.
14712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14713 else
14714 ac_dir_suffix= ac_top_builddir=
14715 fi
14716
14717 case $srcdir in
14718 .) # No --srcdir option. We are building in place.
14719 ac_srcdir=.
14720 if test -z "$ac_top_builddir"; then
14721 ac_top_srcdir=.
14722 else
14723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14724 fi ;;
14725 [\\/]* | ?:[\\/]* ) # Absolute path.
14726 ac_srcdir=$srcdir$ac_dir_suffix;
14727 ac_top_srcdir=$srcdir ;;
14728 *) # Relative path.
14729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14731 esac
14732
14733 # Do not use `cd foo && pwd` to compute absolute paths, because
14734 # the directories may not exist.
14735 case `pwd` in
14736 .) ac_abs_builddir="$ac_dir";;
14737 *)
14738 case "$ac_dir" in
14739 .) ac_abs_builddir=`pwd`;;
14740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14742 esac;;
14743 esac
14744 case $ac_abs_builddir in
14745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14746 *)
14747 case ${ac_top_builddir}. in
14748 .) ac_abs_top_builddir=$ac_abs_builddir;;
14749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14751 esac;;
14752 esac
14753 case $ac_abs_builddir in
14754 .) ac_abs_srcdir=$ac_srcdir;;
14755 *)
14756 case $ac_srcdir in
14757 .) ac_abs_srcdir=$ac_abs_builddir;;
14758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14760 esac;;
14761 esac
14762 case $ac_abs_builddir in
14763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14764 *)
14765 case $ac_top_srcdir in
14766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14769 esac;;
14770 esac
14771
14772
14773 case $INSTALL in
14774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14776 esac
14777
14778 if test x"$ac_file" != x-; then
14779 { echo "$as_me:$LINENO: creating $ac_file" >&5
14780 echo "$as_me: creating $ac_file" >&6;}
14781 rm -f "$ac_file"
14782 fi
14783 # Let's still pretend it is `configure' which instantiates (i.e., don't
14784 # use $as_me), people would be surprised to read:
14785 # /* config.h. Generated by config.status. */
14786 if test x"$ac_file" = x-; then
14787 configure_input=
14788 else
14789 configure_input="$ac_file. "
14790 fi
14791 configure_input=$configure_input"Generated from `echo $ac_file_in |
14792 sed 's,.*/,,'` by configure."
14793
14794 # First look for the input files in the build tree, otherwise in the
14795 # src tree.
14796 ac_file_inputs=`IFS=:
14797 for f in $ac_file_in; do
14798 case $f in
14799 -) echo $tmp/stdin ;;
14800 [\\/$]*)
14801 # Absolute (can't be DOS-style, as IFS=:)
14802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14803 echo "$as_me: error: cannot find input file: $f" >&2;}
14804 { (exit 1); exit 1; }; }
14805 echo "$f";;
14806 *) # Relative
14807 if test -f "$f"; then
14808 # Build tree
14809 echo "$f"
14810 elif test -f "$srcdir/$f"; then
14811 # Source tree
14812 echo "$srcdir/$f"
14813 else
14814 # /dev/null tree
14815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14816 echo "$as_me: error: cannot find input file: $f" >&2;}
14817 { (exit 1); exit 1; }; }
14818 fi;;
14819 esac
14820 done` || { (exit 1); exit 1; }
14821 _ACEOF
14822 cat >>$CONFIG_STATUS <<_ACEOF
14823 sed "$ac_vpsub
14824 $extrasub
14825 _ACEOF
14826 cat >>$CONFIG_STATUS <<\_ACEOF
14827 :t
14828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14829 s,@configure_input@,$configure_input,;t t
14830 s,@srcdir@,$ac_srcdir,;t t
14831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14832 s,@top_srcdir@,$ac_top_srcdir,;t t
14833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14834 s,@builddir@,$ac_builddir,;t t
14835 s,@abs_builddir@,$ac_abs_builddir,;t t
14836 s,@top_builddir@,$ac_top_builddir,;t t
14837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14838 s,@INSTALL@,$ac_INSTALL,;t t
14839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14840 rm -f $tmp/stdin
14841 if test x"$ac_file" != x-; then
14842 mv $tmp/out $ac_file
14843 else
14844 cat $tmp/out
14845 rm -f $tmp/out
14846 fi
14847
14848 done
14849 _ACEOF
14850 cat >>$CONFIG_STATUS <<\_ACEOF
14851
14852 #
14853 # CONFIG_HEADER section.
14854 #
14855
14856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14858 #
14859 # ac_d sets the value in "#define NAME VALUE" lines.
14860 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14861 ac_dB='[ ].*$,\1#\2'
14862 ac_dC=' '
14863 ac_dD=',;t'
14864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14865 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14866 ac_uB='$,\1#\2define\3'
14867 ac_uC=' '
14868 ac_uD=',;t'
14869
14870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14872 case $ac_file in
14873 - | *:- | *:-:* ) # input from stdin
14874 cat >$tmp/stdin
14875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14879 * ) ac_file_in=$ac_file.in ;;
14880 esac
14881
14882 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14883 echo "$as_me: creating $ac_file" >&6;}
14884
14885 # First look for the input files in the build tree, otherwise in the
14886 # src tree.
14887 ac_file_inputs=`IFS=:
14888 for f in $ac_file_in; do
14889 case $f in
14890 -) echo $tmp/stdin ;;
14891 [\\/$]*)
14892 # Absolute (can't be DOS-style, as IFS=:)
14893 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14894 echo "$as_me: error: cannot find input file: $f" >&2;}
14895 { (exit 1); exit 1; }; }
14896 # Do quote $f, to prevent DOS paths from being IFS'd.
14897 echo "$f";;
14898 *) # Relative
14899 if test -f "$f"; then
14900 # Build tree
14901 echo "$f"
14902 elif test -f "$srcdir/$f"; then
14903 # Source tree
14904 echo "$srcdir/$f"
14905 else
14906 # /dev/null tree
14907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14908 echo "$as_me: error: cannot find input file: $f" >&2;}
14909 { (exit 1); exit 1; }; }
14910 fi;;
14911 esac
14912 done` || { (exit 1); exit 1; }
14913 # Remove the trailing spaces.
14914 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14915
14916 _ACEOF
14917
14918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14919 # `conftest.undefs', that substitutes the proper values into
14920 # config.h.in to produce config.h. The first handles `#define'
14921 # templates, and the second `#undef' templates.
14922 # And first: Protect against being on the right side of a sed subst in
14923 # config.status. Protect against being in an unquoted here document
14924 # in config.status.
14925 rm -f conftest.defines conftest.undefs
14926 # Using a here document instead of a string reduces the quoting nightmare.
14927 # Putting comments in sed scripts is not portable.
14928 #
14929 # `end' is used to avoid that the second main sed command (meant for
14930 # 0-ary CPP macros) applies to n-ary macro definitions.
14931 # See the Autoconf documentation for `clear'.
14932 cat >confdef2sed.sed <<\_ACEOF
14933 s/[\\&,]/\\&/g
14934 s,[\\$`],\\&,g
14935 t clear
14936 : clear
14937 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14938 t end
14939 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14940 : end
14941 _ACEOF
14942 # If some macros were called several times there might be several times
14943 # the same #defines, which is useless. Nevertheless, we may not want to
14944 # sort them, since we want the *last* AC-DEFINE to be honored.
14945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14947 rm -f confdef2sed.sed
14948
14949 # This sed command replaces #undef with comments. This is necessary, for
14950 # example, in the case of _POSIX_SOURCE, which is predefined and required
14951 # on some systems where configure will not decide to define it.
14952 cat >>conftest.undefs <<\_ACEOF
14953 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14954 _ACEOF
14955
14956 # Break up conftest.defines because some shells have a limit on the size
14957 # of here documents, and old seds have small limits too (100 cmds).
14958 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14959 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14960 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14961 echo ' :' >>$CONFIG_STATUS
14962 rm -f conftest.tail
14963 while grep . conftest.defines >/dev/null
14964 do
14965 # Write a limited-size here document to $tmp/defines.sed.
14966 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14967 # Speed up: don't consider the non `#define' lines.
14968 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14969 # Work around the forget-to-reset-the-flag bug.
14970 echo 't clr' >>$CONFIG_STATUS
14971 echo ': clr' >>$CONFIG_STATUS
14972 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14973 echo 'CEOF
14974 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14975 rm -f $tmp/in
14976 mv $tmp/out $tmp/in
14977 ' >>$CONFIG_STATUS
14978 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14979 rm -f conftest.defines
14980 mv conftest.tail conftest.defines
14981 done
14982 rm -f conftest.defines
14983 echo ' fi # grep' >>$CONFIG_STATUS
14984 echo >>$CONFIG_STATUS
14985
14986 # Break up conftest.undefs because some shells have a limit on the size
14987 # of here documents, and old seds have small limits too (100 cmds).
14988 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14989 rm -f conftest.tail
14990 while grep . conftest.undefs >/dev/null
14991 do
14992 # Write a limited-size here document to $tmp/undefs.sed.
14993 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14994 # Speed up: don't consider the non `#undef'
14995 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14996 # Work around the forget-to-reset-the-flag bug.
14997 echo 't clr' >>$CONFIG_STATUS
14998 echo ': clr' >>$CONFIG_STATUS
14999 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15000 echo 'CEOF
15001 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15002 rm -f $tmp/in
15003 mv $tmp/out $tmp/in
15004 ' >>$CONFIG_STATUS
15005 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15006 rm -f conftest.undefs
15007 mv conftest.tail conftest.undefs
15008 done
15009 rm -f conftest.undefs
15010
15011 cat >>$CONFIG_STATUS <<\_ACEOF
15012 # Let's still pretend it is `configure' which instantiates (i.e., don't
15013 # use $as_me), people would be surprised to read:
15014 # /* config.h. Generated by config.status. */
15015 if test x"$ac_file" = x-; then
15016 echo "/* Generated by configure. */" >$tmp/config.h
15017 else
15018 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15019 fi
15020 cat $tmp/in >>$tmp/config.h
15021 rm -f $tmp/in
15022 if test x"$ac_file" != x-; then
15023 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15025 echo "$as_me: $ac_file is unchanged" >&6;}
15026 else
15027 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15029 X"$ac_file" : 'X\(//\)[^/]' \| \
15030 X"$ac_file" : 'X\(//\)$' \| \
15031 X"$ac_file" : 'X\(/\)' \| \
15032 . : '\(.\)' 2>/dev/null ||
15033 echo X"$ac_file" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15036 /^X\(\/\/\)$/{ s//\1/; q; }
15037 /^X\(\/\).*/{ s//\1/; q; }
15038 s/.*/./; q'`
15039 { if $as_mkdir_p; then
15040 mkdir -p "$ac_dir"
15041 else
15042 as_dir="$ac_dir"
15043 as_dirs=
15044 while test ! -d "$as_dir"; do
15045 as_dirs="$as_dir $as_dirs"
15046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15048 X"$as_dir" : 'X\(//\)[^/]' \| \
15049 X"$as_dir" : 'X\(//\)$' \| \
15050 X"$as_dir" : 'X\(/\)' \| \
15051 . : '\(.\)' 2>/dev/null ||
15052 echo X"$as_dir" |
15053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15055 /^X\(\/\/\)$/{ s//\1/; q; }
15056 /^X\(\/\).*/{ s//\1/; q; }
15057 s/.*/./; q'`
15058 done
15059 test ! -n "$as_dirs" || mkdir $as_dirs
15060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15062 { (exit 1); exit 1; }; }; }
15063
15064 rm -f $ac_file
15065 mv $tmp/config.h $ac_file
15066 fi
15067 else
15068 cat $tmp/config.h
15069 rm -f $tmp/config.h
15070 fi
15071 # Compute $ac_file's index in $config_headers.
15072 _am_stamp_count=1
15073 for _am_header in $config_headers :; do
15074 case $_am_header in
15075 $ac_file | $ac_file:* )
15076 break ;;
15077 * )
15078 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15079 esac
15080 done
15081 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15082 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15083 X$ac_file : 'X\(//\)[^/]' \| \
15084 X$ac_file : 'X\(//\)$' \| \
15085 X$ac_file : 'X\(/\)' \| \
15086 . : '\(.\)' 2>/dev/null ||
15087 echo X$ac_file |
15088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15090 /^X\(\/\/\)$/{ s//\1/; q; }
15091 /^X\(\/\).*/{ s//\1/; q; }
15092 s/.*/./; q'`/stamp-h$_am_stamp_count
15093 done
15094 _ACEOF
15095 cat >>$CONFIG_STATUS <<\_ACEOF
15096
15097 #
15098 # CONFIG_LINKS section.
15099 #
15100
15101 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
15102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15104
15105 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15106 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
15107
15108 if test ! -r $srcdir/$ac_source; then
15109 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15110 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15111 { (exit 1); exit 1; }; }
15112 fi
15113 rm -f $ac_dest
15114
15115 # Make relative symlinks.
15116 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
15117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15118 X"$ac_dest" : 'X\(//\)[^/]' \| \
15119 X"$ac_dest" : 'X\(//\)$' \| \
15120 X"$ac_dest" : 'X\(/\)' \| \
15121 . : '\(.\)' 2>/dev/null ||
15122 echo X"$ac_dest" |
15123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15125 /^X\(\/\/\)$/{ s//\1/; q; }
15126 /^X\(\/\).*/{ s//\1/; q; }
15127 s/.*/./; q'`
15128 { if $as_mkdir_p; then
15129 mkdir -p "$ac_dest_dir"
15130 else
15131 as_dir="$ac_dest_dir"
15132 as_dirs=
15133 while test ! -d "$as_dir"; do
15134 as_dirs="$as_dir $as_dirs"
15135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15137 X"$as_dir" : 'X\(//\)[^/]' \| \
15138 X"$as_dir" : 'X\(//\)$' \| \
15139 X"$as_dir" : 'X\(/\)' \| \
15140 . : '\(.\)' 2>/dev/null ||
15141 echo X"$as_dir" |
15142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15144 /^X\(\/\/\)$/{ s//\1/; q; }
15145 /^X\(\/\).*/{ s//\1/; q; }
15146 s/.*/./; q'`
15147 done
15148 test ! -n "$as_dirs" || mkdir $as_dirs
15149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
15150 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15151 { (exit 1); exit 1; }; }; }
15152
15153 ac_builddir=.
15154
15155 if test "$ac_dest_dir" != .; then
15156 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
15157 # A "../" for each directory in $ac_dir_suffix.
15158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15159 else
15160 ac_dir_suffix= ac_top_builddir=
15161 fi
15162
15163 case $srcdir in
15164 .) # No --srcdir option. We are building in place.
15165 ac_srcdir=.
15166 if test -z "$ac_top_builddir"; then
15167 ac_top_srcdir=.
15168 else
15169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15170 fi ;;
15171 [\\/]* | ?:[\\/]* ) # Absolute path.
15172 ac_srcdir=$srcdir$ac_dir_suffix;
15173 ac_top_srcdir=$srcdir ;;
15174 *) # Relative path.
15175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15177 esac
15178
15179 # Do not use `cd foo && pwd` to compute absolute paths, because
15180 # the directories may not exist.
15181 case `pwd` in
15182 .) ac_abs_builddir="$ac_dest_dir";;
15183 *)
15184 case "$ac_dest_dir" in
15185 .) ac_abs_builddir=`pwd`;;
15186 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
15187 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
15188 esac;;
15189 esac
15190 case $ac_abs_builddir in
15191 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15192 *)
15193 case ${ac_top_builddir}. in
15194 .) ac_abs_top_builddir=$ac_abs_builddir;;
15195 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15196 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15197 esac;;
15198 esac
15199 case $ac_abs_builddir in
15200 .) ac_abs_srcdir=$ac_srcdir;;
15201 *)
15202 case $ac_srcdir in
15203 .) ac_abs_srcdir=$ac_abs_builddir;;
15204 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15205 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15206 esac;;
15207 esac
15208 case $ac_abs_builddir in
15209 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15210 *)
15211 case $ac_top_srcdir in
15212 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15213 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15214 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15215 esac;;
15216 esac
15217
15218
15219 case $srcdir in
15220 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15221 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
15222 esac
15223
15224 # Try a symlink, then a hard link, then a copy.
15225 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
15226 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
15227 cp -p $srcdir/$ac_source $ac_dest ||
15228 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
15229 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
15230 { (exit 1); exit 1; }; }
15231 done
15232 _ACEOF
15233 cat >>$CONFIG_STATUS <<\_ACEOF
15234
15235 #
15236 # CONFIG_COMMANDS section.
15237 #
15238 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15239 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15240 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15241 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15242 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15243 X"$ac_dest" : 'X\(//\)[^/]' \| \
15244 X"$ac_dest" : 'X\(//\)$' \| \
15245 X"$ac_dest" : 'X\(/\)' \| \
15246 . : '\(.\)' 2>/dev/null ||
15247 echo X"$ac_dest" |
15248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15250 /^X\(\/\/\)$/{ s//\1/; q; }
15251 /^X\(\/\).*/{ s//\1/; q; }
15252 s/.*/./; q'`
15253 { if $as_mkdir_p; then
15254 mkdir -p "$ac_dir"
15255 else
15256 as_dir="$ac_dir"
15257 as_dirs=
15258 while test ! -d "$as_dir"; do
15259 as_dirs="$as_dir $as_dirs"
15260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15262 X"$as_dir" : 'X\(//\)[^/]' \| \
15263 X"$as_dir" : 'X\(//\)$' \| \
15264 X"$as_dir" : 'X\(/\)' \| \
15265 . : '\(.\)' 2>/dev/null ||
15266 echo X"$as_dir" |
15267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15269 /^X\(\/\/\)$/{ s//\1/; q; }
15270 /^X\(\/\).*/{ s//\1/; q; }
15271 s/.*/./; q'`
15272 done
15273 test ! -n "$as_dirs" || mkdir $as_dirs
15274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15276 { (exit 1); exit 1; }; }; }
15277
15278 ac_builddir=.
15279
15280 if test "$ac_dir" != .; then
15281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15282 # A "../" for each directory in $ac_dir_suffix.
15283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15284 else
15285 ac_dir_suffix= ac_top_builddir=
15286 fi
15287
15288 case $srcdir in
15289 .) # No --srcdir option. We are building in place.
15290 ac_srcdir=.
15291 if test -z "$ac_top_builddir"; then
15292 ac_top_srcdir=.
15293 else
15294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15295 fi ;;
15296 [\\/]* | ?:[\\/]* ) # Absolute path.
15297 ac_srcdir=$srcdir$ac_dir_suffix;
15298 ac_top_srcdir=$srcdir ;;
15299 *) # Relative path.
15300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15302 esac
15303
15304 # Do not use `cd foo && pwd` to compute absolute paths, because
15305 # the directories may not exist.
15306 case `pwd` in
15307 .) ac_abs_builddir="$ac_dir";;
15308 *)
15309 case "$ac_dir" in
15310 .) ac_abs_builddir=`pwd`;;
15311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15313 esac;;
15314 esac
15315 case $ac_abs_builddir in
15316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15317 *)
15318 case ${ac_top_builddir}. in
15319 .) ac_abs_top_builddir=$ac_abs_builddir;;
15320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15322 esac;;
15323 esac
15324 case $ac_abs_builddir in
15325 .) ac_abs_srcdir=$ac_srcdir;;
15326 *)
15327 case $ac_srcdir in
15328 .) ac_abs_srcdir=$ac_abs_builddir;;
15329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15331 esac;;
15332 esac
15333 case $ac_abs_builddir in
15334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15335 *)
15336 case $ac_top_srcdir in
15337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15340 esac;;
15341 esac
15342
15343
15344 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15345 echo "$as_me: executing $ac_dest commands" >&6;}
15346 case $ac_dest in
15347 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15348 # Strip MF so we end up with the name of the file.
15349 mf=`echo "$mf" | sed -e 's/:.*$//'`
15350 # Check whether this is an Automake generated Makefile or not.
15351 # We used to match only the files named `Makefile.in', but
15352 # some people rename them; so instead we look at the file content.
15353 # Grep'ing the first line is not enough: some people post-process
15354 # each Makefile.in and add a new line on top of each file to say so.
15355 # So let's grep whole file.
15356 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15357 dirpart=`(dirname "$mf") 2>/dev/null ||
15358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15359 X"$mf" : 'X\(//\)[^/]' \| \
15360 X"$mf" : 'X\(//\)$' \| \
15361 X"$mf" : 'X\(/\)' \| \
15362 . : '\(.\)' 2>/dev/null ||
15363 echo X"$mf" |
15364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15366 /^X\(\/\/\)$/{ s//\1/; q; }
15367 /^X\(\/\).*/{ s//\1/; q; }
15368 s/.*/./; q'`
15369 else
15370 continue
15371 fi
15372 # Extract the definition of DEPDIR, am__include, and am__quote
15373 # from the Makefile without running `make'.
15374 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15375 test -z "$DEPDIR" && continue
15376 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15377 test -z "am__include" && continue
15378 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15379 # When using ansi2knr, U may be empty or an underscore; expand it
15380 U=`sed -n 's/^U = //p' < "$mf"`
15381 # Find all dependency output files, they are included files with
15382 # $(DEPDIR) in their names. We invoke sed twice because it is the
15383 # simplest approach to changing $(DEPDIR) to its actual value in the
15384 # expansion.
15385 for file in `sed -n "
15386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15388 # Make sure the directory exists.
15389 test -f "$dirpart/$file" && continue
15390 fdir=`(dirname "$file") 2>/dev/null ||
15391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15392 X"$file" : 'X\(//\)[^/]' \| \
15393 X"$file" : 'X\(//\)$' \| \
15394 X"$file" : 'X\(/\)' \| \
15395 . : '\(.\)' 2>/dev/null ||
15396 echo X"$file" |
15397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15399 /^X\(\/\/\)$/{ s//\1/; q; }
15400 /^X\(\/\).*/{ s//\1/; q; }
15401 s/.*/./; q'`
15402 { if $as_mkdir_p; then
15403 mkdir -p $dirpart/$fdir
15404 else
15405 as_dir=$dirpart/$fdir
15406 as_dirs=
15407 while test ! -d "$as_dir"; do
15408 as_dirs="$as_dir $as_dirs"
15409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411 X"$as_dir" : 'X\(//\)[^/]' \| \
15412 X"$as_dir" : 'X\(//\)$' \| \
15413 X"$as_dir" : 'X\(/\)' \| \
15414 . : '\(.\)' 2>/dev/null ||
15415 echo X"$as_dir" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15418 /^X\(\/\/\)$/{ s//\1/; q; }
15419 /^X\(\/\).*/{ s//\1/; q; }
15420 s/.*/./; q'`
15421 done
15422 test ! -n "$as_dirs" || mkdir $as_dirs
15423 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15424 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15425 { (exit 1); exit 1; }; }; }
15426
15427 # echo "creating $dirpart/$file"
15428 echo '# dummy' > "$dirpart/$file"
15429 done
15430 done
15431 ;;
15432 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
15433 esac
15434 done
15435 _ACEOF
15436
15437 cat >>$CONFIG_STATUS <<\_ACEOF
15438
15439 { (exit 0); exit 0; }
15440 _ACEOF
15441 chmod +x $CONFIG_STATUS
15442 ac_clean_files=$ac_clean_files_save
15443
15444
15445 # configure is writing to config.log, and then calls config.status.
15446 # config.status does its own redirection, appending to config.log.
15447 # Unfortunately, on DOS this fails, as config.log is still kept open
15448 # by configure, so config.status won't be able to write to it; its
15449 # output is simply discarded. So we exec the FD to /dev/null,
15450 # effectively closing config.log, so it can be properly (re)opened and
15451 # appended to by config.status. When coming back to configure, we
15452 # need to make the FD available again.
15453 if test "$no_create" != yes; then
15454 ac_cs_success=:
15455 ac_config_status_args=
15456 test "$silent" = yes &&
15457 ac_config_status_args="$ac_config_status_args --quiet"
15458 exec 5>/dev/null
15459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15460 exec 5>>config.log
15461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15462 # would make configure fail if this is the last instruction.
15463 $ac_cs_success || { (exit 1); exit 1; }
15464 fi
15465