Imported GNU Classpath 0.92
[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.92.
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.92'
273 PACKAGE_STRING='GNU Classpath 0.92'
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 CLASSPATH_CONVENIENCE 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_COLLECTIONS_TRUE CREATE_COLLECTIONS_FALSE CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE CREATE_GCONF_PEER_LIBRARIES_TRUE CREATE_GCONF_PEER_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE CREATE_PLUGIN_TRUE CREATE_PLUGIN_FALSE nativeexeclibdir glibjdir VM_BINARY FOUND_CACAO_TRUE FOUND_CACAO_FALSE CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LIBTOOL CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC 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 FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS XTEST_LIBS GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_LIBS QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP FASTJAR 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 USE_PREBUILT_GLIBJ_ZIP_TRUE USE_PREBUILT_GLIBJ_ZIP_FALSE PATH_TO_GLIBJ_ZIP USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER 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.92 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.92:";;
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-collections create collections.jar default=no
875 --enable-jni compile JNI source default=yes
876 --enable-core-jni compile JNI sources for core default=yes
877 --enable-default-preferences-peer
878 fully qualified class name of default Preferences
879 API Backend
880 --disable-gconf-peer compile GConf native peers (disabled by
881 --disable-jni) default=yes
882
883 --enable-Werror whether to compile C code with -Werror which turns
884 any compiler warning into a compilation failure
885 default=no
886 --enable-default-toolkit
887 fully qualified class name of default AWT toolkit
888 --enable-xmlj compile native libxml/xslt library default=no
889 --disable-alsa compile ALSA providers (enable by --enable-alsa)
890 default=yes
891 --disable-dependency-tracking speeds up one-time build
892 --enable-dependency-tracking do not reject slow dependency extractors
893 --disable-dssi compile DSSI providers (enable by --enable-dssi)
894 default=yes
895 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
896 default=yes
897 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
898 default=no
899 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
900 default=yes
901 --enable-regen-headers automatically regenerate JNI headers default=no
902 --enable-tool-wrappers create tool wrapper binaries default=no
903 --enable-static=PKGS build static libraries default=no
904 --enable-shared=PKGS build shared libraries default=yes
905 --enable-fast-install=PKGS optimize for fast installation default=yes
906 --disable-libtool-lock avoid locking (might break parallel builds)
907 --disable-rpath do not hardcode runtime library paths
908 --enable-maintainer-mode enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-debug enable runtime debugging code
911 --enable-load-library enable to use JNI native methods default=yes
912 --enable-java-lang-system-explicit-initialization
913 will the VM explicitly invoke java.lang.System's
914 static initialization methods default=no
915 --enable-examples enable build of the examples default=yes
916 --enable-portable-native-sync
917 synchronize VM threads portably
918 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
919
920 Optional Packages:
921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
923 --with-native-libdir sets the installation directory for native libraries
924 default='${libdir}/${PACKAGE}'
925 --with-glibj-dir sets the installation directory for glibj.zip
926 default='${libdir}/${PACKAGE}'
927 --with-vm sets the VM binary name
928 default='${prefix}/bin/jamvm'
929 --with-gnu-ld assume the C compiler uses GNU ld default=no
930 --with-pic try to use only PIC/non-PIC objects default=use both
931 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
932 --without-libiconv-prefix don't search for libiconv in includedir and libdir
933 --with-x use the X Window System
934 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
935 systems use pkg-config.
936 --with-javah specify path or name of a javah-like program
937 --with-gcj bytecode compilation with gcj
938 --with-jikes bytecode compilation with jikes
939 --with-kjc bytecode compilation with kjc
940 --with-gcjx bytecode compilation with gcjx
941 --with-ecj bytecode compilation with ecj
942 --with-classpath specify path to a classes.zip like file
943 --with-vm-classes specify path to VM override source files
944 --with-fastjar=PATH define to use a fastjar style tool
945 --with-glibj define what to install (zip|flat|both|none|build)
946 [default=zip]
947 --with-gjdoc generate documentation using gjdoc (default is NO)
948 --with-jay Regenerate the parsers with jay must be given the
949 path to the jay executable
950 --with-glibj-zip=ABS.PATH
951 use prebuilt glibj.zip class library
952 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
953
954 Some influential environment variables:
955 CC C compiler command
956 CFLAGS C compiler flags
957 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
958 nonstandard directory <lib dir>
959 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
960 headers in a nonstandard directory <include dir>
961 CPP C preprocessor
962 CXX C++ compiler command
963 CXXFLAGS C++ compiler flags
964 CXXCPP C++ preprocessor
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 Report bugs to <classpath@gnu.org>.
970 _ACEOF
971 fi
972
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
975 ac_popdir=`pwd`
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
978 ac_builddir=.
979
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 else
985 ac_dir_suffix= ac_top_builddir=
986 fi
987
988 case $srcdir in
989 .) # No --srcdir option. We are building in place.
990 ac_srcdir=.
991 if test -z "$ac_top_builddir"; then
992 ac_top_srcdir=.
993 else
994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 fi ;;
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
999 *) # Relative path.
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1002 esac
1003
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1006 case `pwd` in
1007 .) ac_abs_builddir="$ac_dir";;
1008 *)
1009 case "$ac_dir" in
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1017 *)
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1026 *)
1027 case $ac_srcdir in
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1031 esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1035 *)
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1040 esac;;
1041 esac
1042
1043 cd $ac_dir
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1046 echo
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1049 echo
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1053 echo
1054 $ac_configure --help
1055 else
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1057 fi
1058 cd $ac_popdir
1059 done
1060 fi
1061
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1064 cat <<\_ACEOF
1065 GNU Classpath configure 0.92
1066 generated by GNU Autoconf 2.59
1067
1068 Copyright (C) 2003 Free Software Foundation, Inc.
1069 This configure script is free software; the Free Software Foundation
1070 gives unlimited permission to copy, distribute and modify it.
1071 _ACEOF
1072 exit 0
1073 fi
1074 exec 5>config.log
1075 cat >&5 <<_ACEOF
1076 This file contains any messages produced by compilers while
1077 running configure, to aid debugging if configure makes a mistake.
1078
1079 It was created by GNU Classpath $as_me 0.92, which was
1080 generated by GNU Autoconf 2.59. Invocation command line was
1081
1082 $ $0 $@
1083
1084 _ACEOF
1085 {
1086 cat <<_ASUNAME
1087 ## --------- ##
1088 ## Platform. ##
1089 ## --------- ##
1090
1091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1096
1097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1099
1100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1103 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1107
1108 _ASUNAME
1109
1110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 for as_dir in $PATH
1112 do
1113 IFS=$as_save_IFS
1114 test -z "$as_dir" && as_dir=.
1115 echo "PATH: $as_dir"
1116 done
1117
1118 } >&5
1119
1120 cat >&5 <<_ACEOF
1121
1122
1123 ## ----------- ##
1124 ## Core tests. ##
1125 ## ----------- ##
1126
1127 _ACEOF
1128
1129
1130 # Keep a trace of the command line.
1131 # Strip out --no-create and --no-recursion so they do not pile up.
1132 # Strip out --silent because we don't want to record it for future runs.
1133 # Also quote any args containing shell meta-characters.
1134 # Make two passes to allow for proper duplicate-argument suppression.
1135 ac_configure_args=
1136 ac_configure_args0=
1137 ac_configure_args1=
1138 ac_sep=
1139 ac_must_keep_next=false
1140 for ac_pass in 1 2
1141 do
1142 for ac_arg
1143 do
1144 case $ac_arg in
1145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 continue ;;
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 esac
1152 case $ac_pass in
1153 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1154 2)
1155 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1156 if test $ac_must_keep_next = true; then
1157 ac_must_keep_next=false # Got value, back to normal.
1158 else
1159 case $ac_arg in
1160 *=* | --config-cache | -C | -disable-* | --disable-* \
1161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1163 | -with-* | --with-* | -without-* | --without-* | --x)
1164 case "$ac_configure_args0 " in
1165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1166 esac
1167 ;;
1168 -* ) ac_must_keep_next=true ;;
1169 esac
1170 fi
1171 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172 # Get rid of the leading space.
1173 ac_sep=" "
1174 ;;
1175 esac
1176 done
1177 done
1178 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1179 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1180
1181 # When interrupted or exit'd, cleanup temporary files, and complete
1182 # config.log. We remove comments because anyway the quotes in there
1183 # would cause problems or look ugly.
1184 # WARNING: Be sure not to use single quotes in there, as some shells,
1185 # such as our DU 5.0 friend, will then `close' the trap.
1186 trap 'exit_status=$?
1187 # Save into config.log some information that might help in debugging.
1188 {
1189 echo
1190
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1198 {
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 ;;
1206 *)
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1209 ;;
1210 esac;
1211 }
1212 echo
1213
1214 cat <<\_ASBOX
1215 ## ----------------- ##
1216 ## Output variables. ##
1217 ## ----------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_vars
1221 do
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1226
1227 if test -n "$ac_subst_files"; then
1228 cat <<\_ASBOX
1229 ## ------------- ##
1230 ## Output files. ##
1231 ## ------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_files
1235 do
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1240 fi
1241
1242 if test -s confdefs.h; then
1243 cat <<\_ASBOX
1244 ## ----------- ##
1245 ## confdefs.h. ##
1246 ## ----------- ##
1247 _ASBOX
1248 echo
1249 sed "/^$/d" confdefs.h | sort
1250 echo
1251 fi
1252 test "$ac_signal" != 0 &&
1253 echo "$as_me: caught signal $ac_signal"
1254 echo "$as_me: exit $exit_status"
1255 } >&5
1256 rm -f core *.core &&
1257 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1258 exit $exit_status
1259 ' 0
1260 for ac_signal in 1 2 13 15; do
1261 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 done
1263 ac_signal=0
1264
1265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1266 rm -rf conftest* confdefs.h
1267 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1268 echo >confdefs.h
1269
1270 # Predefined preprocessor variables.
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1285
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 _ACEOF
1290
1291
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 _ACEOF
1295
1296
1297 # Let the site file select an alternate cache file if it wants to.
1298 # Prefer explicitly selected file to automatically selected ones.
1299 if test -z "$CONFIG_SITE"; then
1300 if test "x$prefix" != xNONE; then
1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1302 else
1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1304 fi
1305 fi
1306 for ac_site_file in $CONFIG_SITE; do
1307 if test -r "$ac_site_file"; then
1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1309 echo "$as_me: loading site script $ac_site_file" >&6;}
1310 sed 's/^/| /' "$ac_site_file" >&5
1311 . "$ac_site_file"
1312 fi
1313 done
1314
1315 if test -r "$cache_file"; then
1316 # Some versions of bash will fail to source /dev/null (special
1317 # files actually), so we avoid doing that.
1318 if test -f "$cache_file"; then
1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1320 echo "$as_me: loading cache $cache_file" >&6;}
1321 case $cache_file in
1322 [\\/]* | ?:[\\/]* ) . $cache_file;;
1323 *) . ./$cache_file;;
1324 esac
1325 fi
1326 else
1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1328 echo "$as_me: creating cache $cache_file" >&6;}
1329 >$cache_file
1330 fi
1331
1332 # Check that the precious variables saved in the cache have kept the same
1333 # value.
1334 ac_cache_corrupted=false
1335 for ac_var in `(set) 2>&1 |
1336 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1338 eval ac_new_set=\$ac_env_${ac_var}_set
1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1340 eval ac_new_val="\$ac_env_${ac_var}_value"
1341 case $ac_old_set,$ac_new_set in
1342 set,)
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1345 ac_cache_corrupted=: ;;
1346 ,set)
1347 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1350 ,);;
1351 *)
1352 if test "x$ac_old_val" != "x$ac_new_val"; then
1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1354 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1356 echo "$as_me: former value: $ac_old_val" >&2;}
1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1358 echo "$as_me: current value: $ac_new_val" >&2;}
1359 ac_cache_corrupted=:
1360 fi;;
1361 esac
1362 # Pass precious variables to config.status.
1363 if test "$ac_new_set" = set; then
1364 case $ac_new_val in
1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1366 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1367 *) ac_arg=$ac_var=$ac_new_val ;;
1368 esac
1369 case " $ac_configure_args " in
1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 esac
1373 fi
1374 done
1375 if $ac_cache_corrupted; then
1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1377 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1378 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1379 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1380 { (exit 1); exit 1; }; }
1381 fi
1382
1383 ac_ext=c
1384 ac_cpp='$CPP $CPPFLAGS'
1385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417 ac_aux_dir=
1418 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1419 if test -f $ac_dir/install-sh; then
1420 ac_aux_dir=$ac_dir
1421 ac_install_sh="$ac_aux_dir/install-sh -c"
1422 break
1423 elif test -f $ac_dir/install.sh; then
1424 ac_aux_dir=$ac_dir
1425 ac_install_sh="$ac_aux_dir/install.sh -c"
1426 break
1427 elif test -f $ac_dir/shtool; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/shtool install -c"
1430 break
1431 fi
1432 done
1433 if test -z "$ac_aux_dir"; then
1434 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1435 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1436 { (exit 1); exit 1; }; }
1437 fi
1438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1441
1442 # Make sure we can run config.sub.
1443 $ac_config_sub sun4 >/dev/null 2>&1 ||
1444 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1445 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448 echo "$as_me:$LINENO: checking build system type" >&5
1449 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1450 if test "${ac_cv_build+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453 ac_cv_build_alias=$build_alias
1454 test -z "$ac_cv_build_alias" &&
1455 ac_cv_build_alias=`$ac_config_guess`
1456 test -z "$ac_cv_build_alias" &&
1457 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1459 { (exit 1); exit 1; }; }
1460 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1463 { (exit 1); exit 1; }; }
1464
1465 fi
1466 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1467 echo "${ECHO_T}$ac_cv_build" >&6
1468 build=$ac_cv_build
1469 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
1473
1474 echo "$as_me:$LINENO: checking host system type" >&5
1475 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1476 if test "${ac_cv_host+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 ac_cv_host_alias=$host_alias
1480 test -z "$ac_cv_host_alias" &&
1481 ac_cv_host_alias=$ac_cv_build_alias
1482 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1489 echo "${ECHO_T}$ac_cv_host" >&6
1490 host=$ac_cv_host
1491 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496 echo "$as_me:$LINENO: checking target system type" >&5
1497 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1498 if test "${ac_cv_target+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 ac_cv_target_alias=$target_alias
1502 test "x$ac_cv_target_alias" = "x" &&
1503 ac_cv_target_alias=$ac_cv_host_alias
1504 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1505 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1506 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1507 { (exit 1); exit 1; }; }
1508
1509 fi
1510 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1511 echo "${ECHO_T}$ac_cv_target" >&6
1512 target=$ac_cv_target
1513 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516
1517
1518 # The aliases save the names the user supplied, while $host etc.
1519 # will get canonicalized.
1520 test -n "$target_alias" &&
1521 test "$program_prefix$program_suffix$program_transform_name" = \
1522 NONENONEs,x,x, &&
1523 program_prefix=${target_alias}-
1524
1525 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1526
1527 LIBVERSION="0:0:0"
1528
1529 case "$host_os" in
1530 darwin*)
1531 cp_module=""
1532 ;;
1533 *)
1534 cp_module="-module"
1535 ;;
1536 esac
1537
1538 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1539
1540
1541 CLASSPATH_CONVENIENCE="-no-undefined"
1542
1543
1544
1545 am__api_version="1.9"
1546 # Find a good install program. We prefer a C program (faster),
1547 # so one script is as good as another. But avoid the broken or
1548 # incompatible versions:
1549 # SysV /etc/install, /usr/sbin/install
1550 # SunOS /usr/etc/install
1551 # IRIX /sbin/install
1552 # AIX /bin/install
1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557 # OS/2's system install, which has a completely different semantic
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561 if test -z "$INSTALL"; then
1562 if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571 case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
1596 done
1597 done
1598 ;;
1599 esac
1600 done
1601
1602
1603 fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613 fi
1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
1615 echo "${ECHO_T}$INSTALL" >&6
1616
1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618 # It thinks the first close brace ends the variable substitution.
1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 # Just in case
1628 sleep 1
1629 echo timestamp > conftest.file
1630 # Do `set' in a subshell so we don't clobber the current shell's
1631 # arguments. Must try -L first in case configure is actually a
1632 # symlink; some systems play weird games with the mod time of symlinks
1633 # (eg FreeBSD returns the mod time of the symlink's containing
1634 # directory).
1635 if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&5
1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652 alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658 then
1659 # Ok.
1660 :
1661 else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663 Check your system clock" >&5
1664 echo "$as_me: error: newly created file is older than distributed files!
1665 Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1670 test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672 # Use a double $ so make ignores it.
1673 test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675 # Double any \ or $. echo might interpret backslashes.
1676 # By default was `s,x,x', remove it if useless.
1677 cat <<\_ACEOF >conftest.sed
1678 s/[\\$]/&&/g;s/;s,x,x,$//
1679 _ACEOF
1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 rm conftest.sed
1682
1683 # expand $ac_aux_dir to an absolute path
1684 am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687 # Use eval to expand $SHELL
1688 if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690 else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 fi
1695
1696 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712 else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727 fi
1728
1729 for ac_prog in gawk mawk nawk awk
1730 do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 AWK=$ac_cv_prog_AWK
1758 if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760 echo "${ECHO_T}$AWK" >&6
1761 else
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766 test -n "$AWK" && break
1767 done
1768
1769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 cat >conftest.make <<\_ACEOF
1776 all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778 _ACEOF
1779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781 if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783 else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785 fi
1786 rm -f conftest.make
1787 fi
1788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796 fi
1797
1798 rm -rf .tst 2>/dev/null
1799 mkdir .tst 2>/dev/null
1800 if test -d .tst; then
1801 am__leading_dot=.
1802 else
1803 am__leading_dot=_
1804 fi
1805 rmdir .tst 2>/dev/null
1806
1807 # test to see if srcdir already configured
1808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813 fi
1814
1815 # test whether we have cygpath
1816 if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822 fi
1823
1824
1825 # Define the identity of the package.
1826 PACKAGE='classpath'
1827 VERSION='0.92'
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE "$PACKAGE"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define VERSION "$VERSION"
1837 _ACEOF
1838
1839 # Some tools Automake needs.
1840
1841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
1855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856
1857 # Installed binaries are usually stripped using `strip' when the user
1858 # run `make install-strip'. However `strip' might not be the right
1859 # tool to use in cross-compilation environments, therefore Automake
1860 # will honor the `STRIP' environment variable to overrule this program.
1861 if test "$cross_compiling" != no; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}strip; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_STRIP+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$STRIP"; then
1871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 STRIP=$ac_cv_prog_STRIP
1890 if test -n "$STRIP"; then
1891 echo "$as_me:$LINENO: result: $STRIP" >&5
1892 echo "${ECHO_T}$STRIP" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 fi
1899 if test -z "$ac_cv_prog_STRIP"; then
1900 ac_ct_STRIP=$STRIP
1901 # Extract the first word of "strip", so it can be a program name with args.
1902 set dummy strip; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$ac_ct_STRIP"; then
1909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_STRIP="strip"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 fi
1927 fi
1928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1929 if test -n "$ac_ct_STRIP"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1931 echo "${ECHO_T}$ac_ct_STRIP" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 STRIP=$ac_ct_STRIP
1938 else
1939 STRIP="$ac_cv_prog_STRIP"
1940 fi
1941
1942 fi
1943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944
1945 # We need awk for the "check" target. The system "awk" is bad on
1946 # some platforms.
1947 # Always define AMTAR for backward compatibility.
1948
1949 AMTAR=${AMTAR-"${am_missing_run}tar"}
1950
1951
1952 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1953 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1954 # Loop over all known methods to create a tar archive until one works.
1955 _am_tools='gnutar plaintar pax cpio none'
1956 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1957 # Do not fold the above two line into one, because Tru64 sh and
1958 # Solaris sh will not grok spaces in the rhs of `-'.
1959 for _am_tool in $_am_tools
1960 do
1961 case $_am_tool in
1962 gnutar)
1963 for _am_tar in tar gnutar gtar;
1964 do
1965 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1966 ($_am_tar --version) >&5 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } && break
1970 done
1971 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1972 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1973 am__untar="$_am_tar -xf -"
1974 ;;
1975 plaintar)
1976 # Must skip GNU tar: if it does not support --format= it doesn't create
1977 # ustar tarball either.
1978 (tar --version) >/dev/null 2>&1 && continue
1979 am__tar='tar chf - "$$tardir"'
1980 am__tar_='tar chf - "$tardir"'
1981 am__untar='tar xf -'
1982 ;;
1983 pax)
1984 am__tar='pax -L -x ustar -w "$$tardir"'
1985 am__tar_='pax -L -x ustar -w "$tardir"'
1986 am__untar='pax -r'
1987 ;;
1988 cpio)
1989 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1990 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1991 am__untar='cpio -i -H ustar -d'
1992 ;;
1993 none)
1994 am__tar=false
1995 am__tar_=false
1996 am__untar=false
1997 ;;
1998 esac
1999
2000 # If the value was cached, stop now. We just wanted to have am__tar
2001 # and am__untar set.
2002 test -n "${am_cv_prog_tar_ustar}" && break
2003
2004 # tar/untar a dummy directory, and stop if the command works
2005 rm -rf conftest.dir
2006 mkdir conftest.dir
2007 echo GrepMe > conftest.dir/file
2008 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2009 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 rm -rf conftest.dir
2014 if test -s conftest.tar; then
2015 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2016 ($am__untar <conftest.tar) >&5 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2021 fi
2022 done
2023 rm -rf conftest.dir
2024
2025 if test "${am_cv_prog_tar_ustar+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 am_cv_prog_tar_ustar=$_am_tool
2029 fi
2030
2031 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2032 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2033
2034
2035
2036
2037
2038 ac_config_headers="$ac_config_headers include/config.h"
2039
2040
2041
2042 # Check whether --enable-collections or --disable-collections was given.
2043 if test "${enable_collections+set}" = set; then
2044 enableval="$enable_collections"
2045 case x"${enableval}" in
2046 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2047 xno) COMPILE_COLLECTIONS=no ;;
2048 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2049 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2050 esac
2051 else
2052 COMPILE_COLLECTIONS=no
2053 fi;
2054
2055
2056 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2057 CREATE_COLLECTIONS_TRUE=
2058 CREATE_COLLECTIONS_FALSE='#'
2059 else
2060 CREATE_COLLECTIONS_TRUE='#'
2061 CREATE_COLLECTIONS_FALSE=
2062 fi
2063
2064
2065 # Check whether --enable-jni or --disable-jni was given.
2066 if test "${enable_jni+set}" = set; then
2067 enableval="$enable_jni"
2068 case "${enableval}" in
2069 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2070 no) COMPILE_JNI=no ;;
2071 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2072 esac
2073 else
2074 COMPILE_JNI=yes
2075 fi;
2076
2077
2078 if test "x${COMPILE_JNI}" = xyes; then
2079 CREATE_JNI_LIBRARIES_TRUE=
2080 CREATE_JNI_LIBRARIES_FALSE='#'
2081 else
2082 CREATE_JNI_LIBRARIES_TRUE='#'
2083 CREATE_JNI_LIBRARIES_FALSE=
2084 fi
2085
2086
2087 # Check whether --enable-core-jni or --disable-core-jni was given.
2088 if test "${enable_core_jni+set}" = set; then
2089 enableval="$enable_core_jni"
2090 case "${enableval}" in
2091 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2092 no) COMPILE_CORE_JNI=no ;;
2093 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2094 esac
2095 else
2096 COMPILE_CORE_JNI=yes
2097 fi;
2098
2099
2100 if test "x${COMPILE_CORE_JNI}" = xyes; then
2101 CREATE_CORE_JNI_LIBRARIES_TRUE=
2102 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2103 else
2104 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2105 CREATE_CORE_JNI_LIBRARIES_FALSE=
2106 fi
2107
2108
2109 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2110 if test "${enable_default_preferences_peer+set}" = set; then
2111 enableval="$enable_default_preferences_peer"
2112
2113 fi;
2114 DEFAULT_PREFS_PEER=$enable_default_preferences_peer
2115 if test "$DEFAULT_PREFS_PEER" = ""; then
2116 DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory
2117 fi
2118
2119 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2120 if test "${enable_gconf_peer+set}" = set; then
2121 enableval="$enable_gconf_peer"
2122 case "${enableval}" in
2123 yes) COMPILE_GCONF_PEER=yes ;;
2124 no) COMPILE_GCONF_PEER=no ;;
2125 *) COMPILE_GCONF_PEER=yes ;;
2126 esac
2127 else
2128 COMPILE_GCONF_PEER=yes
2129 fi;
2130
2131
2132 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2133 CREATE_GCONF_PEER_LIBRARIES_TRUE=
2134 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2135 else
2136 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2137 CREATE_GCONF_PEER_LIBRARIES_FALSE=
2138 fi
2139
2140
2141 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2142 if test "${enable_gconf_peers+set}" = set; then
2143 enableval="$enable_gconf_peers"
2144 { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2145 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi;
2148
2149 # Check whether --enable-Werror or --disable-Werror was given.
2150 if test "${enable_Werror+set}" = set; then
2151 enableval="$enable_Werror"
2152 case "${enableval}" in
2153 yes) ENABLE_WERROR=yes ;;
2154 no) ENABLE_WERROR=no ;;
2155 *) ENABLE_WERROR=no ;;
2156 esac
2157 else
2158 ENABLE_WERROR=no
2159 fi;
2160
2161 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2162 if test "${enable_default_toolkit+set}" = set; then
2163 enableval="$enable_default_toolkit"
2164
2165 fi;
2166 default_toolkit=$enable_default_toolkit
2167 if test "$default_toolkit" = ""; then
2168 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2169 fi
2170
2171
2172 # Check whether --enable-xmlj or --disable-xmlj was given.
2173 if test "${enable_xmlj+set}" = set; then
2174 enableval="$enable_xmlj"
2175 case "${enableval}" in
2176 yes) COMPILE_XMLJ=yes ;;
2177 no) COMPILE_XMLJ=no ;;
2178 *) COMPILE_XMLJ=no ;;
2179 esac
2180 else
2181 COMPILE_XMLJ=no
2182 fi;
2183
2184
2185 if test "x${COMPILE_XMLJ}" = xyes; then
2186 CREATE_XMLJ_LIBRARY_TRUE=
2187 CREATE_XMLJ_LIBRARY_FALSE='#'
2188 else
2189 CREATE_XMLJ_LIBRARY_TRUE='#'
2190 CREATE_XMLJ_LIBRARY_FALSE=
2191 fi
2192
2193
2194 DEPDIR="${am__leading_dot}deps"
2195
2196 ac_config_commands="$ac_config_commands depfiles"
2197
2198
2199 am_make=${MAKE-make}
2200 cat > confinc << 'END'
2201 am__doit:
2202 @echo done
2203 .PHONY: am__doit
2204 END
2205 # If we don't find an include directive, just comment out the code.
2206 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2207 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2208 am__include="#"
2209 am__quote=
2210 _am_result=none
2211 # First try GNU make style include.
2212 echo "include confinc" > confmf
2213 # We grep out `Entering directory' and `Leaving directory'
2214 # messages which can occur if `w' ends up in MAKEFLAGS.
2215 # In particular we don't look at `^make:' because GNU make might
2216 # be invoked under some other name (usually "gmake"), in which
2217 # case it prints its new name instead of `make'.
2218 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2219 am__include=include
2220 am__quote=
2221 _am_result=GNU
2222 fi
2223 # Now try BSD make style include.
2224 if test "$am__include" = "#"; then
2225 echo '.include "confinc"' > confmf
2226 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2227 am__include=.include
2228 am__quote="\""
2229 _am_result=BSD
2230 fi
2231 fi
2232
2233
2234 echo "$as_me:$LINENO: result: $_am_result" >&5
2235 echo "${ECHO_T}$_am_result" >&6
2236 rm -f confinc confmf
2237
2238 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2239 if test "${enable_dependency_tracking+set}" = set; then
2240 enableval="$enable_dependency_tracking"
2241
2242 fi;
2243 if test "x$enable_dependency_tracking" != xno; then
2244 am_depcomp="$ac_aux_dir/depcomp"
2245 AMDEPBACKSLASH='\'
2246 fi
2247
2248
2249 if test "x$enable_dependency_tracking" != xno; then
2250 AMDEP_TRUE=
2251 AMDEP_FALSE='#'
2252 else
2253 AMDEP_TRUE='#'
2254 AMDEP_FALSE=
2255 fi
2256
2257
2258
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2288
2289 fi
2290 fi
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 fi
2301 if test -z "$ac_cv_prog_CC"; then
2302 ac_ct_CC=$CC
2303 # Extract the first word of "gcc", so it can be a program name with args.
2304 set dummy gcc; ac_word=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_ac_ct_CC="gcc"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326
2327 fi
2328 fi
2329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 echo "${ECHO_T}$ac_ct_CC" >&6
2333 else
2334 echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2336 fi
2337
2338 CC=$ac_ct_CC
2339 else
2340 CC="$ac_cv_prog_CC"
2341 fi
2342
2343 if test -z "$CC"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}cc; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CC="${ac_tool_prefix}cc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368
2369 fi
2370 fi
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2375 else
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380 fi
2381 if test -z "$ac_cv_prog_CC"; then
2382 ac_ct_CC=$CC
2383 # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_ac_ct_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404 done
2405 done
2406
2407 fi
2408 fi
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6
2413 else
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2416 fi
2417
2418 CC=$ac_ct_CC
2419 else
2420 CC="$ac_cv_prog_CC"
2421 fi
2422
2423 fi
2424 if test -z "$CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 ac_prog_rejected=no
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2444 ac_prog_rejected=yes
2445 continue
2446 fi
2447 ac_cv_prog_CC="cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453
2454 if test $ac_prog_rejected = yes; then
2455 # We found a bogon in the path, so make sure we never use it.
2456 set dummy $ac_cv_prog_CC
2457 shift
2458 if test $# != 0; then
2459 # We chose a different compiler from the bogus one.
2460 # However, it has the same basename, so the bogon will be chosen
2461 # first if we set CC to just the basename; use the full file name.
2462 shift
2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464 fi
2465 fi
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477 fi
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl
2481 do
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505
2506 fi
2507 fi
2508 CC=$ac_cv_prog_CC
2509 if test -n "$CC"; then
2510 echo "$as_me:$LINENO: result: $CC" >&5
2511 echo "${ECHO_T}$CC" >&6
2512 else
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2515 fi
2516
2517 test -n "$CC" && break
2518 done
2519 fi
2520 if test -z "$CC"; then
2521 ac_ct_CC=$CC
2522 for ac_prog in cl
2523 do
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_CC="$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547
2548 fi
2549 fi
2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551 if test -n "$ac_ct_CC"; then
2552 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2553 echo "${ECHO_T}$ac_ct_CC" >&6
2554 else
2555 echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2557 fi
2558
2559 test -n "$ac_ct_CC" && break
2560 done
2561
2562 CC=$ac_ct_CC
2563 fi
2564
2565 fi
2566
2567
2568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2573
2574 # Provide some information about the compiler.
2575 echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2593
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600
2601 int
2602 main ()
2603 {
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 ac_clean_files_save=$ac_clean_files
2610 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2611 # Try to create an executable without -o first, disregard a.out.
2612 # It will help us diagnose broken compilers, and finding out an intuition
2613 # of exeext.
2614 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2615 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2616 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2617 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2618 (eval $ac_link_default) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 # Find the output, starting from the most likely. This scheme is
2623 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2624 # resort.
2625
2626 # Be careful to initialize this variable, since it used to be cached.
2627 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2628 ac_cv_exeext=
2629 # b.out is created by i960 compilers.
2630 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2631 do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2635 ;;
2636 conftest.$ac_ext )
2637 # This is the source file.
2638 ;;
2639 [ab].out )
2640 # We found the default executable, but exeext='' is most
2641 # certainly right.
2642 break;;
2643 *.* )
2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 # FIXME: I believe we export ac_cv_exeext for Libtool,
2646 # but it would be cool to find out if it's true. Does anybody
2647 # maintain Libtool? --akim.
2648 export ac_cv_exeext
2649 break;;
2650 * )
2651 break;;
2652 esac
2653 done
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: C compiler cannot create executables
2661 See \`config.log' for more details." >&2;}
2662 { (exit 77); exit 77; }; }
2663 fi
2664
2665 ac_exeext=$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_file" >&5
2667 echo "${ECHO_T}$ac_file" >&6
2668
2669 # Check the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2672 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2673 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2674 # If not cross compiling, check that we can run a simple program.
2675 if test "$cross_compiling" != yes; then
2676 if { ac_try='./$ac_file'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 cross_compiling=no
2683 else
2684 if test "$cross_compiling" = maybe; then
2685 cross_compiling=yes
2686 else
2687 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: cannot run C compiled programs.
2691 If you meant to cross compile, use \`--host'.
2692 See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2694 fi
2695 fi
2696 fi
2697 echo "$as_me:$LINENO: result: yes" >&5
2698 echo "${ECHO_T}yes" >&6
2699
2700 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2701 ac_clean_files=$ac_clean_files_save
2702 # Check the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2705 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2706 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2707 echo "${ECHO_T}$cross_compiling" >&6
2708
2709 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2710 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2712 (eval $ac_link) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2717 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2718 # work properly (i.e., refer to `conftest.exe'), while it won't with
2719 # `rm'.
2720 for ac_file in conftest.exe conftest conftest.*; do
2721 test -f "$ac_file" || continue
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2724 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2725 export ac_cv_exeext
2726 break;;
2727 * ) break;;
2728 esac
2729 done
2730 else
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2736 fi
2737
2738 rm -f conftest$ac_cv_exeext
2739 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2740 echo "${ECHO_T}$ac_cv_exeext" >&6
2741
2742 rm -f conftest.$ac_ext
2743 EXEEXT=$ac_cv_exeext
2744 ac_exeext=$EXEEXT
2745 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2747 if test "${ac_cv_objext+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756
2757 int
2758 main ()
2759 {
2760
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.o conftest.obj
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; then
2771 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2775 break;;
2776 esac
2777 done
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790 fi
2791 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792 echo "${ECHO_T}$ac_cv_objext" >&6
2793 OBJEXT=$ac_cv_objext
2794 ac_objext=$OBJEXT
2795 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 ac_compiler_gnu=yes
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 CFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868
2869 int
2870 main ()
2871 {
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 ac_cv_prog_cc_g=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 ac_cv_prog_cc_g=no
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2909 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2910 if test "$ac_test_CFLAGS" = set; then
2911 CFLAGS=$ac_save_CFLAGS
2912 elif test $ac_cv_prog_cc_g = yes; then
2913 if test "$GCC" = yes; then
2914 CFLAGS="-g -O2"
2915 else
2916 CFLAGS="-g"
2917 fi
2918 else
2919 if test "$GCC" = yes; then
2920 CFLAGS="-O2"
2921 else
2922 CFLAGS=
2923 fi
2924 fi
2925 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2926 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2927 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 ac_cv_prog_cc_stdc=no
2931 ac_save_CC=$CC
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 #include <stdarg.h>
2939 #include <stdio.h>
2940 #include <sys/types.h>
2941 #include <sys/stat.h>
2942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2943 struct buf { int x; };
2944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945 static char *e (p, i)
2946 char **p;
2947 int i;
2948 {
2949 return p[i];
2950 }
2951 static char *f (char * (*g) (char **, int), char **p, ...)
2952 {
2953 char *s;
2954 va_list v;
2955 va_start (v,p);
2956 s = g (p, va_arg (v,int));
2957 va_end (v);
2958 return s;
2959 }
2960
2961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2962 function prototypes and stuff, but not '\xHH' hex character constants.
2963 These don't provoke an error unfortunately, instead are silently treated
2964 as 'x'. The following induces an error, until -std1 is added to get
2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2966 array size at least. It's necessary to write '\x00'==0 to get something
2967 that's true only with -std1. */
2968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2969
2970 int test (int i, double x);
2971 struct s1 {int (*f) (int a);};
2972 struct s2 {int (*f) (double a);};
2973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2974 int argc;
2975 char **argv;
2976 int
2977 main ()
2978 {
2979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2980 ;
2981 return 0;
2982 }
2983 _ACEOF
2984 # Don't try gcc -ansi; that turns off useful extensions and
2985 # breaks some systems' header files.
2986 # AIX -qlanglvl=ansi
2987 # Ultrix and OSF/1 -std1
2988 # HP-UX 10.20 and later -Ae
2989 # HP-UX older versions -Aa -D_HPUX_SOURCE
2990 # SVR4 -Xc -D__EXTENSIONS__
2991 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 do
2993 CC="$ac_save_CC $ac_arg"
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2997 ac_status=$?
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_cv_prog_cc_stdc=$ac_arg
3017 break
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 fi
3023 rm -f conftest.err conftest.$ac_objext
3024 done
3025 rm -f conftest.$ac_ext conftest.$ac_objext
3026 CC=$ac_save_CC
3027
3028 fi
3029
3030 case "x$ac_cv_prog_cc_stdc" in
3031 x|xno)
3032 echo "$as_me:$LINENO: result: none needed" >&5
3033 echo "${ECHO_T}none needed" >&6 ;;
3034 *)
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3036 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3037 CC="$CC $ac_cv_prog_cc_stdc" ;;
3038 esac
3039
3040 # Some people use a C++ compiler to compile C. Since we use `exit',
3041 # in C++ we need to declare it. In case someone uses the same compiler
3042 # for both compiling C and C++ we need to have the C++ compiler decide
3043 # the declaration of exit, since it's the most demanding environment.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #ifndef __cplusplus
3046 choke me
3047 #endif
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag"
3059 || test ! -s conftest.err'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 for ac_declaration in \
3072 '' \
3073 'extern "C" void std::exit (int) throw (); using std::exit;' \
3074 'extern "C" void std::exit (int); using std::exit;' \
3075 'extern "C" void exit (int) throw ();' \
3076 'extern "C" void exit (int);' \
3077 'void exit (int);'
3078 do
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_declaration
3086 #include <stdlib.h>
3087 int
3088 main ()
3089 {
3090 exit (42);
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag"
3105 || test ! -s conftest.err'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 :
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 continue
3123 fi
3124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 $ac_declaration
3132 int
3133 main ()
3134 {
3135 exit (42);
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3170 rm -f conftest*
3171 if test -n "$ac_declaration"; then
3172 echo '#ifdef __cplusplus' >>confdefs.h
3173 echo $ac_declaration >>confdefs.h
3174 echo '#endif' >>confdefs.h
3175 fi
3176
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 fi
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188
3189 depcc="$CC" am_compiler_list=
3190
3191 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3192 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3193 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3197 # We make a subdir and do the tests there. Otherwise we can end up
3198 # making bogus files that we don't know about and never remove. For
3199 # instance it was reported that on HP-UX the gcc test will end up
3200 # making a dummy file named `D' -- because `-MD' means `put the output
3201 # in D'.
3202 mkdir conftest.dir
3203 # Copy depcomp to subdir because otherwise we won't find it if we're
3204 # using a relative directory.
3205 cp "$am_depcomp" conftest.dir
3206 cd conftest.dir
3207 # We will build objects and dependencies in a subdirectory because
3208 # it helps to detect inapplicable dependency modes. For instance
3209 # both Tru64's cc and ICC support -MD to output dependencies as a
3210 # side effect of compilation, but ICC will put the dependencies in
3211 # the current directory while Tru64 will put them in the object
3212 # directory.
3213 mkdir sub
3214
3215 am_cv_CC_dependencies_compiler_type=none
3216 if test "$am_compiler_list" = ""; then
3217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3218 fi
3219 for depmode in $am_compiler_list; do
3220 # Setup a source with many dependencies, because some compilers
3221 # like to wrap large dependency lists on column 80 (with \), and
3222 # we should not choose a depcomp mode which is confused by this.
3223 #
3224 # We need to recreate these files for each test, as the compiler may
3225 # overwrite some of them when testing with obscure command lines.
3226 # This happens at least with the AIX C compiler.
3227 : > sub/conftest.c
3228 for i in 1 2 3 4 5 6; do
3229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3231 # Solaris 8's {/usr,}/bin/sh.
3232 touch sub/conftst$i.h
3233 done
3234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3235
3236 case $depmode in
3237 nosideeffect)
3238 # after this tag, mechanisms are not by side-effect, so they'll
3239 # only be used when explicitly requested
3240 if test "x$enable_dependency_tracking" = xyes; then
3241 continue
3242 else
3243 break
3244 fi
3245 ;;
3246 none) break ;;
3247 esac
3248 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3249 # mode. It turns out that the SunPro C++ compiler does not properly
3250 # handle `-M -o', and we need to detect this.
3251 if depmode=$depmode \
3252 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3254 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3255 >/dev/null 2>conftest.err &&
3256 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3257 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3258 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3259 # icc doesn't choke on unknown options, it will just issue warnings
3260 # or remarks (even with -Werror). So we grep stderr for any message
3261 # that says an option was ignored or not supported.
3262 # When given -MP, icc 7.0 and 7.1 complain thusly:
3263 # icc: Command line warning: ignoring option '-M'; no argument required
3264 # The diagnosis changed in icc 8.0:
3265 # icc: Command line remark: option '-MP' not supported
3266 if (grep 'ignoring option' conftest.err ||
3267 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3268 am_cv_CC_dependencies_compiler_type=$depmode
3269 break
3270 fi
3271 fi
3272 done
3273
3274 cd ..
3275 rm -rf conftest.dir
3276 else
3277 am_cv_CC_dependencies_compiler_type=none
3278 fi
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3282 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3283 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3284
3285
3286
3287 if
3288 test "x$enable_dependency_tracking" != xno \
3289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3290 am__fastdepCC_TRUE=
3291 am__fastdepCC_FALSE='#'
3292 else
3293 am__fastdepCC_TRUE='#'
3294 am__fastdepCC_FALSE=
3295 fi
3296
3297
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309 fi
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3319 do
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } >/dev/null; then
3347 if test -s conftest.err; then
3348 ac_cpp_err=$ac_c_preproc_warn_flag
3349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350 else
3351 ac_cpp_err=
3352 fi
3353 else
3354 ac_cpp_err=yes
3355 fi
3356 if test -z "$ac_cpp_err"; then
3357 :
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 # Broken: fails on valid input.
3363 continue
3364 fi
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 # OK, works on sane cases. Now check whether non-existent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388 else
3389 ac_cpp_err=
3390 fi
3391 else
3392 ac_cpp_err=yes
3393 fi
3394 if test -z "$ac_cpp_err"; then
3395 # Broken: success on invalid input.
3396 continue
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 # Passes both tests.
3402 ac_preproc_ok=:
3403 break
3404 fi
3405 rm -f conftest.err conftest.$ac_ext
3406
3407 done
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.err conftest.$ac_ext
3410 if $ac_preproc_ok; then
3411 break
3412 fi
3413
3414 done
3415 ac_cv_prog_CPP=$CPP
3416
3417 fi
3418 CPP=$ac_cv_prog_CPP
3419 else
3420 ac_cv_prog_CPP=$CPP
3421 fi
3422 echo "$as_me:$LINENO: result: $CPP" >&5
3423 echo "${ECHO_T}$CPP" >&6
3424 ac_preproc_ok=false
3425 for ac_c_preproc_warn_flag in '' yes
3426 do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3459 fi
3460 else
3461 ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464 :
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Broken: fails on valid input.
3470 continue
3471 fi
3472 rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether non-existent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 else
3496 ac_cpp_err=
3497 fi
3498 else
3499 ac_cpp_err=yes
3500 fi
3501 if test -z "$ac_cpp_err"; then
3502 # Broken: success on invalid input.
3503 continue
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3511 fi
3512 rm -f conftest.err conftest.$ac_ext
3513
3514 done
3515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516 rm -f conftest.err conftest.$ac_ext
3517 if $ac_preproc_ok; then
3518 :
3519 else
3520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3521 See \`config.log' for more details." >&5
3522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534 echo "$as_me:$LINENO: checking for egrep" >&5
3535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3536 if test "${ac_cv_prog_egrep+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3540 then ac_cv_prog_egrep='grep -E'
3541 else ac_cv_prog_egrep='egrep'
3542 fi
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3545 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3546 EGREP=$ac_cv_prog_egrep
3547
3548
3549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <stdlib.h>
3561 #include <stdarg.h>
3562 #include <string.h>
3563 #include <float.h>
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_header_stdc=yes
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 ac_cv_header_stdc=no
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603
3604 if test $ac_cv_header_stdc = yes; then
3605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <string.h>
3613
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "memchr" >/dev/null 2>&1; then
3617 :
3618 else
3619 ac_cv_header_stdc=no
3620 fi
3621 rm -f conftest*
3622
3623 fi
3624
3625 if test $ac_cv_header_stdc = yes; then
3626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include <stdlib.h>
3634
3635 _ACEOF
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "free" >/dev/null 2>&1; then
3638 :
3639 else
3640 ac_cv_header_stdc=no
3641 fi
3642 rm -f conftest*
3643
3644 fi
3645
3646 if test $ac_cv_header_stdc = yes; then
3647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3648 if test "$cross_compiling" = yes; then
3649 :
3650 else
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #include <ctype.h>
3658 #if ((' ' & 0x0FF) == 0x020)
3659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3661 #else
3662 # define ISLOWER(c) \
3663 (('a' <= (c) && (c) <= 'i') \
3664 || ('j' <= (c) && (c) <= 'r') \
3665 || ('s' <= (c) && (c) <= 'z'))
3666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3667 #endif
3668
3669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3670 int
3671 main ()
3672 {
3673 int i;
3674 for (i = 0; i < 256; i++)
3675 if (XOR (islower (i), ISLOWER (i))
3676 || toupper (i) != TOUPPER (i))
3677 exit(2);
3678 exit (0);
3679 }
3680 _ACEOF
3681 rm -f conftest$ac_exeext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 :
3693 else
3694 echo "$as_me: program exited with status $ac_status" >&5
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 ( exit $ac_status )
3699 ac_cv_header_stdc=no
3700 fi
3701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3702 fi
3703 fi
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3707 if test $ac_cv_header_stdc = yes; then
3708
3709 cat >>confdefs.h <<\_ACEOF
3710 #define STDC_HEADERS 1
3711 _ACEOF
3712
3713 fi
3714
3715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726 inttypes.h stdint.h unistd.h
3727 do
3728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729 echo "$as_me:$LINENO: checking for $ac_header" >&5
3730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 $ac_includes_default
3741
3742 #include <$ac_header>
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 eval "$as_ac_Header=yes"
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 eval "$as_ac_Header=no"
3772 fi
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778 cat >>confdefs.h <<_ACEOF
3779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3780 _ACEOF
3781
3782 fi
3783
3784 done
3785
3786
3787 # Check whether --enable-alsa or --disable-alsa was given.
3788 if test "${enable_alsa+set}" = set; then
3789 enableval="$enable_alsa"
3790 case "${enableval}" in
3791 yes) COMPILE_ALSA=yes ;;
3792 no) COMPILE_ALSA=no ;;
3793 *) COMPILE_ALSA=yes ;;
3794 esac
3795 else
3796
3797 for ac_header in alsa/asoundlib.h
3798 do
3799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3801 echo "$as_me:$LINENO: checking for $ac_header" >&5
3802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 fi
3806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3808 else
3809 # Is the header compilable?
3810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 #include <$ac_header>
3820 _ACEOF
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_header_compiler=yes
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 ac_header_compiler=no
3849 fi
3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3852 echo "${ECHO_T}$ac_header_compiler" >&6
3853
3854 # Is the header present?
3855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <$ac_header>
3864 _ACEOF
3865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev/null; then
3873 if test -s conftest.err; then
3874 ac_cpp_err=$ac_c_preproc_warn_flag
3875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 else
3877 ac_cpp_err=
3878 fi
3879 else
3880 ac_cpp_err=yes
3881 fi
3882 if test -z "$ac_cpp_err"; then
3883 ac_header_preproc=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 ac_header_preproc=no
3889 fi
3890 rm -f conftest.err conftest.$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3892 echo "${ECHO_T}$ac_header_preproc" >&6
3893
3894 # So? What about this header?
3895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3896 yes:no: )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3901 ac_header_preproc=yes
3902 ;;
3903 no:yes:* )
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3916 (
3917 cat <<\_ASBOX
3918 ## -------------------------------- ##
3919 ## Report this to classpath@gnu.org ##
3920 ## -------------------------------- ##
3921 _ASBOX
3922 ) |
3923 sed "s/^/$as_me: WARNING: /" >&2
3924 ;;
3925 esac
3926 echo "$as_me:$LINENO: checking for $ac_header" >&5
3927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 eval "$as_ac_Header=\$ac_header_preproc"
3932 fi
3933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935
3936 fi
3937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3938 cat >>confdefs.h <<_ACEOF
3939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 _ACEOF
3941 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3942 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3943 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 ac_check_lib_save_LIBS=$LIBS
3947 LIBS="-lasound $LIBS"
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 #ifdef __cplusplus
3957 extern "C"
3958 #endif
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char snd_seq_open ();
3962 int
3963 main ()
3964 {
3965 snd_seq_open ();
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag"
3980 || test ! -s conftest.err'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; } &&
3986 { ac_try='test -s conftest$ac_exeext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_lib_asound_snd_seq_open=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ac_cv_lib_asound_snd_seq_open=no
3998 fi
3999 rm -f conftest.err conftest.$ac_objext \
4000 conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4004 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4005 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4006 COMPILE_ALSA=yes
4007 else
4008 COMPILE_ALSA=no
4009 fi
4010
4011 else
4012 COMPILE_ALSA=no
4013 fi
4014
4015 done
4016
4017 fi;
4018
4019
4020 if test "x${COMPILE_ALSA}" = xyes; then
4021 CREATE_ALSA_LIBRARIES_TRUE=
4022 CREATE_ALSA_LIBRARIES_FALSE='#'
4023 else
4024 CREATE_ALSA_LIBRARIES_TRUE='#'
4025 CREATE_ALSA_LIBRARIES_FALSE=
4026 fi
4027
4028
4029 # Check whether --enable-dssi or --disable-dssi was given.
4030 if test "${enable_dssi+set}" = set; then
4031 enableval="$enable_dssi"
4032 case "${enableval}" in
4033 yes) COMPILE_DSSI=yes ;;
4034 no) COMPILE_DSSI=no ;;
4035 *) COMPILE_DSSI=yes ;;
4036 esac
4037 else
4038
4039 for ac_header in dssi.h
4040 do
4041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 fi
4048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4050 else
4051 # Is the header compilable?
4052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4061 #include <$ac_header>
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest.$ac_objext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_header_compiler=yes
4086 else
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 ac_header_compiler=no
4091 fi
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4094 echo "${ECHO_T}$ac_header_compiler" >&6
4095
4096 # Is the header present?
4097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <$ac_header>
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4120 fi
4121 else
4122 ac_cpp_err=yes
4123 fi
4124 if test -z "$ac_cpp_err"; then
4125 ac_header_preproc=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 ac_header_preproc=no
4131 fi
4132 rm -f conftest.err conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4134 echo "${ECHO_T}$ac_header_preproc" >&6
4135
4136 # So? What about this header?
4137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4138 yes:no: )
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4143 ac_header_preproc=yes
4144 ;;
4145 no:yes:* )
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4158 (
4159 cat <<\_ASBOX
4160 ## -------------------------------- ##
4161 ## Report this to classpath@gnu.org ##
4162 ## -------------------------------- ##
4163 _ASBOX
4164 ) |
4165 sed "s/^/$as_me: WARNING: /" >&2
4166 ;;
4167 esac
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 eval "$as_ac_Header=\$ac_header_preproc"
4174 fi
4175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4177
4178 fi
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 _ACEOF
4183 COMPILE_DSSI=yes
4184 else
4185 COMPILE_DSSI=no
4186 fi
4187
4188 done
4189
4190 fi;
4191
4192
4193 if test "x${COMPILE_DSSI}" = xyes; then
4194 CREATE_DSSI_LIBRARIES_TRUE=
4195 CREATE_DSSI_LIBRARIES_FALSE='#'
4196 else
4197 CREATE_DSSI_LIBRARIES_TRUE='#'
4198 CREATE_DSSI_LIBRARIES_FALSE=
4199 fi
4200
4201
4202 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4203 if test "${enable_gtk_peer+set}" = set; then
4204 enableval="$enable_gtk_peer"
4205 case "${enableval}" in
4206 yes) COMPILE_GTK_PEER=yes ;;
4207 no) COMPILE_GTK_PEER=no ;;
4208 *) COMPILE_GTK_PEER=yes ;;
4209 esac
4210 else
4211 COMPILE_GTK_PEER=yes
4212 fi;
4213
4214
4215 if test "x${COMPILE_GTK_PEER}" = xyes; then
4216 CREATE_GTK_PEER_LIBRARIES_TRUE=
4217 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4218 else
4219 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4220 CREATE_GTK_PEER_LIBRARIES_FALSE=
4221 fi
4222
4223
4224 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4225 if test "${enable_gtk_peers+set}" = set; then
4226 enableval="$enable_gtk_peers"
4227 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4228 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4229 { (exit 1); exit 1; }; }
4230 fi;
4231
4232 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4233 if test "${enable_qt_peer+set}" = set; then
4234 enableval="$enable_qt_peer"
4235 case "${enableval}" in
4236 yes) COMPILE_QT_PEER=yes ;;
4237 no) COMPILE_QT_PEER=no ;;
4238 *) COMPILE_QT_PEER=yes ;;
4239 esac
4240 else
4241 COMPILE_QT_PEER=no
4242 fi;
4243
4244
4245 if test "x${COMPILE_QT_PEER}" = xyes; then
4246 CREATE_QT_PEER_LIBRARIES_TRUE=
4247 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4248 else
4249 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4250 CREATE_QT_PEER_LIBRARIES_FALSE=
4251 fi
4252
4253
4254 # Check whether --enable-plugin or --disable-plugin was given.
4255 if test "${enable_plugin+set}" = set; then
4256 enableval="$enable_plugin"
4257 case "${enableval}" in
4258 yes) COMPILE_PLUGIN=yes ;;
4259 no) COMPILE_PLUGIN=no ;;
4260 *) COMPILE_PLUGIN=yes ;;
4261 esac
4262 else
4263 COMPILE_PLUGIN=yes
4264 fi;
4265
4266
4267 if test "x${COMPILE_PLUGIN}" = xyes; then
4268 CREATE_PLUGIN_TRUE=
4269 CREATE_PLUGIN_FALSE='#'
4270 else
4271 CREATE_PLUGIN_TRUE='#'
4272 CREATE_PLUGIN_FALSE=
4273 fi
4274
4275
4276
4277 # Check whether --with-native-libdir or --without-native-libdir was given.
4278 if test "${with_native_libdir+set}" = set; then
4279 withval="$with_native_libdir"
4280
4281 nativeexeclibdir=${withval}
4282
4283 else
4284
4285 nativeexeclibdir='${libdir}/${PACKAGE}'
4286
4287 fi;
4288
4289
4290
4291
4292 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4293 if test "${with_glibj_dir+set}" = set; then
4294 withval="$with_glibj_dir"
4295
4296 glibjdir=${withval}
4297
4298 else
4299
4300 glibjdir='${datadir}/${PACKAGE}'
4301
4302 fi;
4303
4304
4305
4306
4307 # Check whether --with-vm or --without-vm was given.
4308 if test "${with_vm+set}" = set; then
4309 withval="$with_vm"
4310
4311 VM_BINARY=${withval}
4312
4313 else
4314
4315 VM_BINARY='${prefix}/bin/jamvm'
4316
4317 fi;
4318
4319
4320
4321
4322 if test "x`basename $VM_BINARY`" = xcacao; then
4323 FOUND_CACAO_TRUE=
4324 FOUND_CACAO_FALSE='#'
4325 else
4326 FOUND_CACAO_TRUE='#'
4327 FOUND_CACAO_FALSE=
4328 fi
4329
4330
4331 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4332 if test "${enable_regen_headers+set}" = set; then
4333 enableval="$enable_regen_headers"
4334 case "${enableval}" in
4335 yes) REGENERATE_JNI_HEADERS=yes ;;
4336 no) REGENERATE_JNI_HEADERS=no ;;
4337 *) REGENERATE_JNI_HEADERS=no ;;
4338 esac
4339 else
4340 REGENERATE_JNI_HEADERS=no
4341 fi;
4342
4343
4344 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4345 CREATE_JNI_HEADERS_TRUE=
4346 CREATE_JNI_HEADERS_FALSE='#'
4347 else
4348 CREATE_JNI_HEADERS_TRUE='#'
4349 CREATE_JNI_HEADERS_FALSE=
4350 fi
4351
4352
4353 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4354 if test "${enable_tool_wrappers+set}" = set; then
4355 enableval="$enable_tool_wrappers"
4356 case x"${enableval}" in
4357 xyes) COMPILE_WRAPPERS=yes ;;
4358 xno) COMPILE_WRAPPERS=no ;;
4359 x) COMPILE_WRAPPERS=yes ;;
4360 *) COMPILE_WRAPPERS=yes ;;
4361 esac
4362 else
4363 COMPILE_WRAPPERS=no
4364 fi;
4365
4366
4367 if test "x${COMPILE_WRAPPERS}" = xyes; then
4368 CREATE_WRAPPERS_TRUE=
4369 CREATE_WRAPPERS_FALSE='#'
4370 else
4371 CREATE_WRAPPERS_TRUE='#'
4372 CREATE_WRAPPERS_FALSE=
4373 fi
4374
4375
4376 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4377 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4378 LN_S=$as_ln_s
4379 if test "$LN_S" = "ln -s"; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381 echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4384 echo "${ECHO_T}no, using $LN_S" >&6
4385 fi
4386
4387 # Find a good install program. We prefer a C program (faster),
4388 # so one script is as good as another. But avoid the broken or
4389 # incompatible versions:
4390 # SysV /etc/install, /usr/sbin/install
4391 # SunOS /usr/etc/install
4392 # IRIX /sbin/install
4393 # AIX /bin/install
4394 # AmigaOS /C/install, which installs bootblocks on floppy discs
4395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4398 # OS/2's system install, which has a completely different semantic
4399 # ./install, which can be erroneously created by make from ./install.sh.
4400 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4401 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4402 if test -z "$INSTALL"; then
4403 if test "${ac_cv_path_install+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 # Account for people who put trailing slashes in PATH elements.
4412 case $as_dir/ in
4413 ./ | .// | /cC/* | \
4414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4415 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4416 /usr/ucb/* ) ;;
4417 *)
4418 # OSF1 and SCO ODT 3.0 have their own names for install.
4419 # Don't use installbsd from OSF since it installs stuff as root
4420 # by default.
4421 for ac_prog in ginstall scoinst install; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4424 if test $ac_prog = install &&
4425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426 # AIX install. It has an incompatible calling convention.
4427 :
4428 elif test $ac_prog = install &&
4429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430 # program-specific install script used by HP pwplus--don't use.
4431 :
4432 else
4433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4434 break 3
4435 fi
4436 fi
4437 done
4438 done
4439 ;;
4440 esac
4441 done
4442
4443
4444 fi
4445 if test "${ac_cv_path_install+set}" = set; then
4446 INSTALL=$ac_cv_path_install
4447 else
4448 # As a last resort, use the slow shell script. We don't cache a
4449 # path for INSTALL within a source directory, because that will
4450 # break other packages using the cache if that directory is
4451 # removed, or if the path is relative.
4452 INSTALL=$ac_install_sh
4453 fi
4454 fi
4455 echo "$as_me:$LINENO: result: $INSTALL" >&5
4456 echo "${ECHO_T}$INSTALL" >&6
4457
4458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4459 # It thinks the first close brace ends the variable substitution.
4460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4461
4462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4463
4464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4465
4466
4467 ac_ext=cc
4468 ac_cpp='$CXXCPP $CPPFLAGS'
4469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4472 if test -n "$ac_tool_prefix"; then
4473 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4474 do
4475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4479 if test "${ac_cv_prog_CXX+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482 if test -n "$CXX"; then
4483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498
4499 fi
4500 fi
4501 CXX=$ac_cv_prog_CXX
4502 if test -n "$CXX"; then
4503 echo "$as_me:$LINENO: result: $CXX" >&5
4504 echo "${ECHO_T}$CXX" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4508 fi
4509
4510 test -n "$CXX" && break
4511 done
4512 fi
4513 if test -z "$CXX"; then
4514 ac_ct_CXX=$CXX
4515 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 if test -n "$ac_ct_CXX"; then
4525 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_ac_ct_CXX="$ac_prog"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540
4541 fi
4542 fi
4543 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4544 if test -n "$ac_ct_CXX"; then
4545 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4546 echo "${ECHO_T}$ac_ct_CXX" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552 test -n "$ac_ct_CXX" && break
4553 done
4554 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4555
4556 CXX=$ac_ct_CXX
4557 fi
4558
4559
4560 # Provide some information about the compiler.
4561 echo "$as_me:$LINENO:" \
4562 "checking for C++ compiler version" >&5
4563 ac_compiler=`set X $ac_compile; echo $2`
4564 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4565 (eval $ac_compiler --version </dev/null >&5) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }
4569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4570 (eval $ac_compiler -v </dev/null >&5) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }
4574 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4575 (eval $ac_compiler -V </dev/null >&5) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }
4579
4580 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4581 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4582 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591
4592 int
4593 main ()
4594 {
4595 #ifndef __GNUC__
4596 choke me
4597 #endif
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_cxx_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_compiler_gnu=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_compiler_gnu=no
4631 fi
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4634
4635 fi
4636 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4638 GXX=`test $ac_compiler_gnu = yes && echo yes`
4639 ac_test_CXXFLAGS=${CXXFLAGS+set}
4640 ac_save_CXXFLAGS=$CXXFLAGS
4641 CXXFLAGS="-g"
4642 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4644 if test "${ac_cv_prog_cxx_g+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653
4654 int
4655 main ()
4656 {
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_cxx_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 ac_cv_prog_cxx_g=yes
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_cv_prog_cxx_g=no
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4694 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4695 if test "$ac_test_CXXFLAGS" = set; then
4696 CXXFLAGS=$ac_save_CXXFLAGS
4697 elif test $ac_cv_prog_cxx_g = yes; then
4698 if test "$GXX" = yes; then
4699 CXXFLAGS="-g -O2"
4700 else
4701 CXXFLAGS="-g"
4702 fi
4703 else
4704 if test "$GXX" = yes; then
4705 CXXFLAGS="-O2"
4706 else
4707 CXXFLAGS=
4708 fi
4709 fi
4710 for ac_declaration in \
4711 '' \
4712 'extern "C" void std::exit (int) throw (); using std::exit;' \
4713 'extern "C" void std::exit (int); using std::exit;' \
4714 'extern "C" void exit (int) throw ();' \
4715 'extern "C" void exit (int);' \
4716 'void exit (int);'
4717 do
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_declaration
4725 #include <stdlib.h>
4726 int
4727 main ()
4728 {
4729 exit (42);
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736 (eval $ac_compile) 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -z "$ac_cxx_werror_flag"
4744 || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 :
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 continue
4762 fi
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_declaration
4771 int
4772 main ()
4773 {
4774 exit (42);
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_cxx_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 break
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 fi
4807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 done
4809 rm -f conftest*
4810 if test -n "$ac_declaration"; then
4811 echo '#ifdef __cplusplus' >>confdefs.h
4812 echo $ac_declaration >>confdefs.h
4813 echo '#endif' >>confdefs.h
4814 fi
4815
4816 ac_ext=c
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822 depcc="$CXX" am_compiler_list=
4823
4824 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4825 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4826 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4830 # We make a subdir and do the tests there. Otherwise we can end up
4831 # making bogus files that we don't know about and never remove. For
4832 # instance it was reported that on HP-UX the gcc test will end up
4833 # making a dummy file named `D' -- because `-MD' means `put the output
4834 # in D'.
4835 mkdir conftest.dir
4836 # Copy depcomp to subdir because otherwise we won't find it if we're
4837 # using a relative directory.
4838 cp "$am_depcomp" conftest.dir
4839 cd conftest.dir
4840 # We will build objects and dependencies in a subdirectory because
4841 # it helps to detect inapplicable dependency modes. For instance
4842 # both Tru64's cc and ICC support -MD to output dependencies as a
4843 # side effect of compilation, but ICC will put the dependencies in
4844 # the current directory while Tru64 will put them in the object
4845 # directory.
4846 mkdir sub
4847
4848 am_cv_CXX_dependencies_compiler_type=none
4849 if test "$am_compiler_list" = ""; then
4850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4851 fi
4852 for depmode in $am_compiler_list; do
4853 # Setup a source with many dependencies, because some compilers
4854 # like to wrap large dependency lists on column 80 (with \), and
4855 # we should not choose a depcomp mode which is confused by this.
4856 #
4857 # We need to recreate these files for each test, as the compiler may
4858 # overwrite some of them when testing with obscure command lines.
4859 # This happens at least with the AIX C compiler.
4860 : > sub/conftest.c
4861 for i in 1 2 3 4 5 6; do
4862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4864 # Solaris 8's {/usr,}/bin/sh.
4865 touch sub/conftst$i.h
4866 done
4867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4868
4869 case $depmode in
4870 nosideeffect)
4871 # after this tag, mechanisms are not by side-effect, so they'll
4872 # only be used when explicitly requested
4873 if test "x$enable_dependency_tracking" = xyes; then
4874 continue
4875 else
4876 break
4877 fi
4878 ;;
4879 none) break ;;
4880 esac
4881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4882 # mode. It turns out that the SunPro C++ compiler does not properly
4883 # handle `-M -o', and we need to detect this.
4884 if depmode=$depmode \
4885 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4887 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4888 >/dev/null 2>conftest.err &&
4889 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4890 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4891 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4892 # icc doesn't choke on unknown options, it will just issue warnings
4893 # or remarks (even with -Werror). So we grep stderr for any message
4894 # that says an option was ignored or not supported.
4895 # When given -MP, icc 7.0 and 7.1 complain thusly:
4896 # icc: Command line warning: ignoring option '-M'; no argument required
4897 # The diagnosis changed in icc 8.0:
4898 # icc: Command line remark: option '-MP' not supported
4899 if (grep 'ignoring option' conftest.err ||
4900 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4901 am_cv_CXX_dependencies_compiler_type=$depmode
4902 break
4903 fi
4904 fi
4905 done
4906
4907 cd ..
4908 rm -rf conftest.dir
4909 else
4910 am_cv_CXX_dependencies_compiler_type=none
4911 fi
4912
4913 fi
4914 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4915 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4916 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4917
4918
4919
4920 if
4921 test "x$enable_dependency_tracking" != xno \
4922 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4923 am__fastdepCXX_TRUE=
4924 am__fastdepCXX_FALSE='#'
4925 else
4926 am__fastdepCXX_TRUE='#'
4927 am__fastdepCXX_FALSE=
4928 fi
4929
4930
4931 # Check whether --enable-static or --disable-static was given.
4932 if test "${enable_static+set}" = set; then
4933 enableval="$enable_static"
4934 p=${PACKAGE-default}
4935 case $enableval in
4936 yes) enable_static=yes ;;
4937 no) enable_static=no ;;
4938 *)
4939 enable_static=no
4940 # Look at the argument we got. We use all the common list separators.
4941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4942 for pkg in $enableval; do
4943 if test "X$pkg" = "X$p"; then
4944 enable_static=yes
4945 fi
4946 done
4947 IFS="$ac_save_ifs"
4948 ;;
4949 esac
4950 else
4951 enable_static=no
4952 fi;
4953 # Check whether --enable-shared or --disable-shared was given.
4954 if test "${enable_shared+set}" = set; then
4955 enableval="$enable_shared"
4956 p=${PACKAGE-default}
4957 case $enableval in
4958 yes) enable_shared=yes ;;
4959 no) enable_shared=no ;;
4960 *)
4961 enable_shared=no
4962 # Look at the argument we got. We use all the common list separators.
4963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4964 for pkg in $enableval; do
4965 if test "X$pkg" = "X$p"; then
4966 enable_shared=yes
4967 fi
4968 done
4969 IFS="$ac_save_ifs"
4970 ;;
4971 esac
4972 else
4973 enable_shared=yes
4974 fi;
4975 # Check whether --enable-fast-install or --disable-fast-install was given.
4976 if test "${enable_fast_install+set}" = set; then
4977 enableval="$enable_fast_install"
4978 p=${PACKAGE-default}
4979 case $enableval in
4980 yes) enable_fast_install=yes ;;
4981 no) enable_fast_install=no ;;
4982 *)
4983 enable_fast_install=no
4984 # Look at the argument we got. We use all the common list separators.
4985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4986 for pkg in $enableval; do
4987 if test "X$pkg" = "X$p"; then
4988 enable_fast_install=yes
4989 fi
4990 done
4991 IFS="$ac_save_ifs"
4992 ;;
4993 esac
4994 else
4995 enable_fast_install=yes
4996 fi;
4997
4998 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4999 if test "${with_gnu_ld+set}" = set; then
5000 withval="$with_gnu_ld"
5001 test "$withval" = no || with_gnu_ld=yes
5002 else
5003 with_gnu_ld=no
5004 fi;
5005 ac_prog=ld
5006 if test "$GCC" = yes; then
5007 # Check if gcc -print-prog-name=ld gives a path.
5008 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5009 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5010 case $host in
5011 *-*-mingw*)
5012 # gcc leaves a trailing carriage return which upsets mingw
5013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5014 *)
5015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5016 esac
5017 case $ac_prog in
5018 # Accept absolute paths.
5019 [\\/]* | [A-Za-z]:[\\/]*)
5020 re_direlt='/[^/][^/]*/\.\./'
5021 # Canonicalize the path of ld
5022 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5023 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5024 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5025 done
5026 test -z "$LD" && LD="$ac_prog"
5027 ;;
5028 "")
5029 # If it fails, then pretend we aren't using GCC.
5030 ac_prog=ld
5031 ;;
5032 *)
5033 # If it is relative, then search for the first ld in PATH.
5034 with_gnu_ld=unknown
5035 ;;
5036 esac
5037 elif test "$with_gnu_ld" = yes; then
5038 echo "$as_me:$LINENO: checking for GNU ld" >&5
5039 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5040 else
5041 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5042 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5043 fi
5044 if test "${lt_cv_path_LD+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 if test -z "$LD"; then
5048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5049 for ac_dir in $PATH; do
5050 test -z "$ac_dir" && ac_dir=.
5051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5052 lt_cv_path_LD="$ac_dir/$ac_prog"
5053 # Check to see if the program is GNU ld. I'd rather use --version,
5054 # but apparently some GNU ld's only accept -v.
5055 # Break only if it was the GNU/non-GNU ld that we prefer.
5056 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5057 test "$with_gnu_ld" != no && break
5058 else
5059 test "$with_gnu_ld" != yes && break
5060 fi
5061 fi
5062 done
5063 IFS="$ac_save_ifs"
5064 else
5065 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5066 fi
5067 fi
5068
5069 LD="$lt_cv_path_LD"
5070 if test -n "$LD"; then
5071 echo "$as_me:$LINENO: result: $LD" >&5
5072 echo "${ECHO_T}$LD" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076 fi
5077 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5078 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5079 { (exit 1); exit 1; }; }
5080 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5081 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5082 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5086 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5087 lt_cv_prog_gnu_ld=yes
5088 else
5089 lt_cv_prog_gnu_ld=no
5090 fi
5091 fi
5092 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5094 with_gnu_ld=$lt_cv_prog_gnu_ld
5095
5096
5097 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5098 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5099 if test "${lt_cv_ld_reload_flag+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 lt_cv_ld_reload_flag='-r'
5103 fi
5104 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5105 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5106 reload_flag=$lt_cv_ld_reload_flag
5107 test -n "$reload_flag" && reload_flag=" $reload_flag"
5108
5109 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5110 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5111 if test "${lt_cv_path_NM+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 if test -n "$NM"; then
5115 # Let the user override the test.
5116 lt_cv_path_NM="$NM"
5117 else
5118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5119 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5120 test -z "$ac_dir" && ac_dir=.
5121 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5122 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5123 # Check to see if the nm accepts a BSD-compat flag.
5124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5125 # nm: unknown option "B" ignored
5126 # Tru64's nm complains that /dev/null is an invalid object file
5127 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5128 lt_cv_path_NM="$tmp_nm -B"
5129 break
5130 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5131 lt_cv_path_NM="$tmp_nm -p"
5132 break
5133 else
5134 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5135 continue # so that we can try to find one that supports BSD flags
5136 fi
5137 fi
5138 done
5139 IFS="$ac_save_ifs"
5140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5141 fi
5142 fi
5143
5144 NM="$lt_cv_path_NM"
5145 echo "$as_me:$LINENO: result: $NM" >&5
5146 echo "${ECHO_T}$NM" >&6
5147
5148 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5149 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5150 if test "${lt_cv_deplibs_check_method+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 lt_cv_file_magic_cmd='$MAGIC_CMD'
5154 lt_cv_file_magic_test_file=
5155 lt_cv_deplibs_check_method='unknown'
5156 # Need to set the preceding variable on all platforms that support
5157 # interlibrary dependencies.
5158 # 'none' -- dependencies not supported.
5159 # `unknown' -- same as none, but documents that we really don't know.
5160 # 'pass_all' -- all dependencies passed with no checks.
5161 # 'test_compile' -- check by making test program.
5162 # 'file_magic [regex]' -- check by looking for files in library path
5163 # which responds to the $file_magic_cmd with a given egrep regex.
5164 # If you have `file' or equivalent on your system and you're not sure
5165 # whether `pass_all' will *always* work, you probably want this one.
5166
5167 case $host_os in
5168 aix*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5171
5172 beos*)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 bsdi4*)
5177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5178 lt_cv_file_magic_cmd='/usr/bin/file -L'
5179 lt_cv_file_magic_test_file=/shlib/libc.so
5180 ;;
5181
5182 cygwin* | mingw* |pw32*)
5183 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5184 lt_cv_file_magic_cmd='$OBJDUMP -f'
5185 ;;
5186
5187 darwin* | rhapsody*)
5188 # this will be overwritten by pass_all, but leave it in just in case
5189 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5190 lt_cv_file_magic_cmd='/usr/bin/file -L'
5191 case "$host_os" in
5192 rhapsody* | darwin1.012)
5193 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5194 ;;
5195 *) # Darwin 1.3 on
5196 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5197 ;;
5198 esac
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 freebsd* | kfreebsd*-gnu)
5203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5204 case $host_cpu in
5205 i*86 )
5206 # Not sure whether the presence of OpenBSD here was a mistake.
5207 # Let's accept both of them until this is cleared up.
5208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5211 ;;
5212 esac
5213 else
5214 lt_cv_deplibs_check_method=pass_all
5215 fi
5216 ;;
5217
5218 gnu*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 hpux10.20*|hpux11*)
5223 case $host_cpu in
5224 hppa*)
5225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5228 ;;
5229 ia64*)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231 lt_cv_file_magic_cmd=/usr/bin/file
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233 ;;
5234 esac
5235 ;;
5236
5237 irix5* | irix6*)
5238 case $host_os in
5239 irix5*)
5240 # this will be overridden with pass_all, but let us keep it just in case
5241 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5242 ;;
5243 *)
5244 case $LD in
5245 *-32|*"-32 ") libmagic=32-bit;;
5246 *-n32|*"-n32 ") libmagic=N32;;
5247 *-64|*"-64 ") libmagic=64-bit;;
5248 *) libmagic=never-match;;
5249 esac
5250 # this will be overridden with pass_all, but let us keep it just in case
5251 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5252 ;;
5253 esac
5254 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 # This must be Linux ELF.
5259 linux-gnu*)
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5262
5263 netbsd* | knetbsd*-gnu)
5264 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5265 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5266 else
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5268 fi
5269 ;;
5270
5271 newsos6)
5272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5273 lt_cv_file_magic_cmd=/usr/bin/file
5274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5275 ;;
5276
5277 osf3* | osf4* | osf5*)
5278 # this will be overridden with pass_all, but let us keep it just in case
5279 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5280 lt_cv_file_magic_test_file=/shlib/libc.so
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 sco3.2v5*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 solaris*)
5289 lt_cv_deplibs_check_method=pass_all
5290 lt_cv_file_magic_test_file=/lib/libc.so
5291 ;;
5292
5293 sysv5uw[78]* | sysv4*uw2*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5298 case $host_vendor in
5299 ncr)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 motorola)
5303 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]'
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5305 ;;
5306 esac
5307 ;;
5308 esac
5309
5310 fi
5311 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5312 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5313 file_magic_cmd=$lt_cv_file_magic_cmd
5314 deplibs_check_method=$lt_cv_deplibs_check_method
5315
5316
5317
5318
5319 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5320
5321 # find the maximum length of command line arguments
5322 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5323 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5324 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 i=0
5328 teststring="ABCD"
5329
5330 case $build_os in
5331 msdosdjgpp*)
5332 # On DJGPP, this test can blow up pretty badly due to problems in libc
5333 # (any single argument exceeding 2000 bytes causes a buffer overrun
5334 # during glob expansion). Even if it were fixed, the result of this
5335 # check would be larger than it should be.
5336 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5337 ;;
5338
5339 cygwin* | mingw*)
5340 # On Win9x/ME, this test blows up -- it succeeds, but takes
5341 # about 5 minutes as the teststring grows exponentially.
5342 # Worse, since 9x/ME are not pre-emptively multitasking,
5343 # you end up with a "frozen" computer, even though with patience
5344 # the test eventually succeeds (with a max line length of 256k).
5345 # Instead, let's just punt: use the minimum linelength reported by
5346 # all of the supported platforms: 8192 (on NT/2K/XP).
5347 lt_cv_sys_max_cmd_len=8192;
5348 ;;
5349
5350 amigaos*)
5351 # On AmigaOS with pdksh, this test takes hours, literally.
5352 # So we just punt and use a minimum line length of 8192.
5353 lt_cv_sys_max_cmd_len=8192;
5354 ;;
5355
5356 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5357 # This has been around since 386BSD, at least. Likely further.
5358 if test -x /sbin/sysctl; then
5359 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5360 elif test -x /usr/sbin/sysctl; then
5361 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5362 else
5363 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5364 fi
5365 # And add a safety zone
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5368 ;;
5369 esac
5370
5371 fi
5372
5373 if test -n "$lt_cv_sys_max_cmd_len" ; then
5374 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5375 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5376 else
5377 echo "$as_me:$LINENO: result: none" >&5
5378 echo "${ECHO_T}none" >&6
5379 fi
5380
5381
5382 # Only perform the check for file, if the check method requires it
5383 case $deplibs_check_method in
5384 file_magic*)
5385 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5386 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5387 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 case $MAGIC_CMD in
5392 /*)
5393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5394 ;;
5395 ?:/*)
5396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5397 ;;
5398 *)
5399 ac_save_MAGIC_CMD="$MAGIC_CMD"
5400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5401 ac_dummy="/usr/bin:$PATH"
5402 for ac_dir in $ac_dummy; do
5403 test -z "$ac_dir" && ac_dir=.
5404 if test -f $ac_dir/${ac_tool_prefix}file; then
5405 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5406 if test -n "$file_magic_test_file"; then
5407 case $deplibs_check_method in
5408 "file_magic "*)
5409 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5412 egrep "$file_magic_regex" > /dev/null; then
5413 :
5414 else
5415 cat <<EOF 1>&2
5416
5417 *** Warning: the command libtool uses to detect shared libraries,
5418 *** $file_magic_cmd, produces output that libtool cannot recognize.
5419 *** The result is that libtool may fail to recognize shared libraries
5420 *** as such. This will affect the creation of libtool libraries that
5421 *** depend on shared libraries, but programs linked with such libtool
5422 *** libraries will work regardless of this problem. Nevertheless, you
5423 *** may want to report the problem to your system manager and/or to
5424 *** bug-libtool@gnu.org
5425
5426 EOF
5427 fi ;;
5428 esac
5429 fi
5430 break
5431 fi
5432 done
5433 IFS="$ac_save_ifs"
5434 MAGIC_CMD="$ac_save_MAGIC_CMD"
5435 ;;
5436 esac
5437 fi
5438
5439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5440 if test -n "$MAGIC_CMD"; then
5441 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5442 echo "${ECHO_T}$MAGIC_CMD" >&6
5443 else
5444 echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5446 fi
5447
5448 if test -z "$lt_cv_path_MAGIC_CMD"; then
5449 if test -n "$ac_tool_prefix"; then
5450 echo "$as_me:$LINENO: checking for file" >&5
5451 echo $ECHO_N "checking for file... $ECHO_C" >&6
5452 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 case $MAGIC_CMD in
5456 /*)
5457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5458 ;;
5459 ?:/*)
5460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5461 ;;
5462 *)
5463 ac_save_MAGIC_CMD="$MAGIC_CMD"
5464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5465 ac_dummy="/usr/bin:$PATH"
5466 for ac_dir in $ac_dummy; do
5467 test -z "$ac_dir" && ac_dir=.
5468 if test -f $ac_dir/file; then
5469 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5470 if test -n "$file_magic_test_file"; then
5471 case $deplibs_check_method in
5472 "file_magic "*)
5473 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5476 egrep "$file_magic_regex" > /dev/null; then
5477 :
5478 else
5479 cat <<EOF 1>&2
5480
5481 *** Warning: the command libtool uses to detect shared libraries,
5482 *** $file_magic_cmd, produces output that libtool cannot recognize.
5483 *** The result is that libtool may fail to recognize shared libraries
5484 *** as such. This will affect the creation of libtool libraries that
5485 *** depend on shared libraries, but programs linked with such libtool
5486 *** libraries will work regardless of this problem. Nevertheless, you
5487 *** may want to report the problem to your system manager and/or to
5488 *** bug-libtool@gnu.org
5489
5490 EOF
5491 fi ;;
5492 esac
5493 fi
5494 break
5495 fi
5496 done
5497 IFS="$ac_save_ifs"
5498 MAGIC_CMD="$ac_save_MAGIC_CMD"
5499 ;;
5500 esac
5501 fi
5502
5503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5504 if test -n "$MAGIC_CMD"; then
5505 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5506 echo "${ECHO_T}$MAGIC_CMD" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510 fi
5511
5512 else
5513 MAGIC_CMD=:
5514 fi
5515 fi
5516
5517 fi
5518 ;;
5519 esac
5520
5521 if test -n "$ac_tool_prefix"; then
5522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_prog_RANLIB+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 if test -n "$RANLIB"; then
5530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5542 fi
5543 done
5544 done
5545
5546 fi
5547 fi
5548 RANLIB=$ac_cv_prog_RANLIB
5549 if test -n "$RANLIB"; then
5550 echo "$as_me:$LINENO: result: $RANLIB" >&5
5551 echo "${ECHO_T}$RANLIB" >&6
5552 else
5553 echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6
5555 fi
5556
5557 fi
5558 if test -z "$ac_cv_prog_RANLIB"; then
5559 ac_ct_RANLIB=$RANLIB
5560 # Extract the first word of "ranlib", so it can be a program name with args.
5561 set dummy ranlib; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test -n "$ac_ct_RANLIB"; then
5568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_ac_ct_RANLIB="ranlib"
5578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583
5584 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5585 fi
5586 fi
5587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5588 if test -n "$ac_ct_RANLIB"; then
5589 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5590 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595
5596 RANLIB=$ac_ct_RANLIB
5597 else
5598 RANLIB="$ac_cv_prog_RANLIB"
5599 fi
5600
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}strip; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_prog_STRIP+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 if test -n "$STRIP"; then
5610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625
5626 fi
5627 fi
5628 STRIP=$ac_cv_prog_STRIP
5629 if test -n "$STRIP"; then
5630 echo "$as_me:$LINENO: result: $STRIP" >&5
5631 echo "${ECHO_T}$STRIP" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5635 fi
5636
5637 fi
5638 if test -z "$ac_cv_prog_STRIP"; then
5639 ac_ct_STRIP=$STRIP
5640 # Extract the first word of "strip", so it can be a program name with args.
5641 set dummy strip; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 if test -n "$ac_ct_STRIP"; then
5648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_STRIP="strip"
5658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663
5664 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5665 fi
5666 fi
5667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5668 if test -n "$ac_ct_STRIP"; then
5669 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5670 echo "${ECHO_T}$ac_ct_STRIP" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674 fi
5675
5676 STRIP=$ac_ct_STRIP
5677 else
5678 STRIP="$ac_cv_prog_STRIP"
5679 fi
5680
5681
5682 # Check for any special flags to pass to ltconfig.
5683 libtool_flags="--cache-file=$cache_file"
5684 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5685 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5686 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5687 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5688 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5689
5690
5691 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5692 if test "${enable_libtool_lock+set}" = set; then
5693 enableval="$enable_libtool_lock"
5694
5695 fi;
5696 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5697 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5698
5699
5700 # Check whether --with-pic or --without-pic was given.
5701 if test "${with_pic+set}" = set; then
5702 withval="$with_pic"
5703 pic_mode="$withval"
5704 else
5705 pic_mode=default
5706 fi;
5707 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5708 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5709
5710 # Some flags need to be propagated to the compiler or linker for good
5711 # libtool support.
5712 case $host in
5713 *-*-irix6*)
5714 # Find out which ABI we are using.
5715 echo '#line 5715 "configure"' > conftest.$ac_ext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then
5721 if test "$lt_cv_prog_gnu_ld" = yes; then
5722 case `/usr/bin/file conftest.$ac_objext` in
5723 *32-bit*)
5724 LD="${LD-ld} -melf32bsmip"
5725 ;;
5726 *N32*)
5727 LD="${LD-ld} -melf32bmipn32"
5728 ;;
5729 *64-bit*)
5730 LD="${LD-ld} -melf64bmip"
5731 ;;
5732 esac
5733 else
5734 case `/usr/bin/file conftest.$ac_objext` in
5735 *32-bit*)
5736 LD="${LD-ld} -32"
5737 ;;
5738 *N32*)
5739 LD="${LD-ld} -n32"
5740 ;;
5741 *64-bit*)
5742 LD="${LD-ld} -64"
5743 ;;
5744 esac
5745 fi
5746 fi
5747 rm -rf conftest*
5748 ;;
5749
5750 ia64-*-hpux*)
5751 # Find out which ABI we are using.
5752 echo 'int i;' > conftest.$ac_ext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; then
5758 case "`/usr/bin/file conftest.o`" in
5759 *ELF-32*)
5760 HPUX_IA64_MODE="32"
5761 ;;
5762 *ELF-64*)
5763 HPUX_IA64_MODE="64"
5764 ;;
5765 esac
5766 fi
5767 rm -rf conftest*
5768 ;;
5769
5770 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5771 # Find out which ABI we are using.
5772 echo 'int i;' > conftest.$ac_ext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; then
5778 case "`/usr/bin/file conftest.o`" in
5779 *32-bit*)
5780 case $host in
5781 x86_64-*linux*)
5782 LD="${LD-ld} -m elf_i386"
5783 ;;
5784 ppc64-*linux*|powerpc64-*linux*)
5785 LD="${LD-ld} -m elf32ppclinux"
5786 ;;
5787 s390x-*linux*)
5788 LD="${LD-ld} -m elf_s390"
5789 ;;
5790 sparc64-*linux*)
5791 LD="${LD-ld} -m elf32_sparc"
5792 ;;
5793 esac
5794 ;;
5795 *64-bit*)
5796 case $host in
5797 x86_64-*linux*)
5798 LD="${LD-ld} -m elf_x86_64"
5799 ;;
5800 ppc*-*linux*|powerpc*-*linux*)
5801 LD="${LD-ld} -m elf64ppc"
5802 ;;
5803 s390*-*linux*)
5804 LD="${LD-ld} -m elf64_s390"
5805 ;;
5806 sparc*-*linux*)
5807 LD="${LD-ld} -m elf64_sparc"
5808 ;;
5809 esac
5810 ;;
5811 esac
5812 fi
5813 rm -rf conftest*
5814 ;;
5815
5816 *-*-sco3.2v5*)
5817 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5818 SAVE_CFLAGS="$CFLAGS"
5819 CFLAGS="$CFLAGS -belf"
5820 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5821 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5822 if test "${lt_cv_cc_needs_belf+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825
5826
5827 ac_ext=c
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839
5840 int
5841 main ()
5842 {
5843
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 lt_cv_cc_needs_belf=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 lt_cv_cc_needs_belf=no
5876 fi
5877 rm -f conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 ac_ext=c
5880 ac_cpp='$CPP $CPPFLAGS'
5881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884
5885 fi
5886 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5890 CFLAGS="$SAVE_CFLAGS"
5891 fi
5892 ;;
5893
5894
5895 esac
5896
5897
5898 # Save cache, so that ltconfig can load it
5899 cat >confcache <<\_ACEOF
5900 # This file is a shell script that caches the results of configure
5901 # tests run on this system so they can be shared between configure
5902 # scripts and configure runs, see configure's option --config-cache.
5903 # It is not useful on other systems. If it contains results you don't
5904 # want to keep, you may remove or edit it.
5905 #
5906 # config.status only pays attention to the cache file if you give it
5907 # the --recheck option to rerun configure.
5908 #
5909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5911 # following values.
5912
5913 _ACEOF
5914
5915 # The following way of writing the cache mishandles newlines in values,
5916 # but we know of no workaround that is simple, portable, and efficient.
5917 # So, don't put newlines in cache variables' values.
5918 # Ultrix sh set writes to stderr and can't be redirected directly,
5919 # and sets the high bit in the cache file unless we assign to the vars.
5920 {
5921 (set) 2>&1 |
5922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5923 *ac_space=\ *)
5924 # `set' does not quote correctly, so add quotes (double-quote
5925 # substitution turns \\\\ into \\, and sed turns \\ into \).
5926 sed -n \
5927 "s/'/'\\\\''/g;
5928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5929 ;;
5930 *)
5931 # `set' quotes correctly as required by POSIX, so do not add quotes.
5932 sed -n \
5933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5934 ;;
5935 esac;
5936 } |
5937 sed '
5938 t clear
5939 : clear
5940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5941 t end
5942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5943 : end' >>confcache
5944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5945 if test -w $cache_file; then
5946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5947 cat confcache >$cache_file
5948 else
5949 echo "not updating unwritable cache $cache_file"
5950 fi
5951 fi
5952 rm -f confcache
5953
5954 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5955 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5956 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5957 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5958 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5959 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5960 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5961 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5962 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5963 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5964 echo "$as_me: error: libtool configure failed" >&2;}
5965 { (exit 1); exit 1; }; }
5966
5967 # Reload cache, that may have been modified by ltconfig
5968 if test -r "$cache_file"; then
5969 # Some versions of bash will fail to source /dev/null (special
5970 # files actually), so we avoid doing that.
5971 if test -f "$cache_file"; then
5972 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5973 echo "$as_me: loading cache $cache_file" >&6;}
5974 case $cache_file in
5975 [\\/]* | ?:[\\/]* ) . $cache_file;;
5976 *) . ./$cache_file;;
5977 esac
5978 fi
5979 else
5980 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5981 echo "$as_me: creating cache $cache_file" >&6;}
5982 >$cache_file
5983 fi
5984
5985
5986 # This can be used to rebuild libtool when needed
5987 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5988
5989 # Always use our own libtool.
5990 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5991
5992 # Redirect the config.log output again, so that the ltconfig log is not
5993 # clobbered by the next message.
5994 exec 5>>./config.log
5995
5996 ac_ext=cc
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6002 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6003 if test -z "$CXXCPP"; then
6004 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 # Double quotes because CXXCPP needs to be expanded
6008 for CXXCPP in "$CXX -E" "/lib/cpp"
6009 do
6010 ac_preproc_ok=false
6011 for ac_cxx_preproc_warn_flag in '' yes
6012 do
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6030 Syntax error
6031 _ACEOF
6032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null; then
6040 if test -s conftest.err; then
6041 ac_cpp_err=$ac_cxx_preproc_warn_flag
6042 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6043 else
6044 ac_cpp_err=
6045 fi
6046 else
6047 ac_cpp_err=yes
6048 fi
6049 if test -z "$ac_cpp_err"; then
6050 :
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 # Broken: fails on valid input.
6056 continue
6057 fi
6058 rm -f conftest.err conftest.$ac_ext
6059
6060 # OK, works on sane cases. Now check whether non-existent headers
6061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null; then
6078 if test -s conftest.err; then
6079 ac_cpp_err=$ac_cxx_preproc_warn_flag
6080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6081 else
6082 ac_cpp_err=
6083 fi
6084 else
6085 ac_cpp_err=yes
6086 fi
6087 if test -z "$ac_cpp_err"; then
6088 # Broken: success on invalid input.
6089 continue
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 # Passes both tests.
6095 ac_preproc_ok=:
6096 break
6097 fi
6098 rm -f conftest.err conftest.$ac_ext
6099
6100 done
6101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6102 rm -f conftest.err conftest.$ac_ext
6103 if $ac_preproc_ok; then
6104 break
6105 fi
6106
6107 done
6108 ac_cv_prog_CXXCPP=$CXXCPP
6109
6110 fi
6111 CXXCPP=$ac_cv_prog_CXXCPP
6112 else
6113 ac_cv_prog_CXXCPP=$CXXCPP
6114 fi
6115 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6116 echo "${ECHO_T}$CXXCPP" >&6
6117 ac_preproc_ok=false
6118 for ac_cxx_preproc_warn_flag in '' yes
6119 do
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #ifdef __STDC__
6133 # include <limits.h>
6134 #else
6135 # include <assert.h>
6136 #endif
6137 Syntax error
6138 _ACEOF
6139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } >/dev/null; then
6147 if test -s conftest.err; then
6148 ac_cpp_err=$ac_cxx_preproc_warn_flag
6149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6150 else
6151 ac_cpp_err=
6152 fi
6153 else
6154 ac_cpp_err=yes
6155 fi
6156 if test -z "$ac_cpp_err"; then
6157 :
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 # Broken: fails on valid input.
6163 continue
6164 fi
6165 rm -f conftest.err conftest.$ac_ext
6166
6167 # OK, works on sane cases. Now check whether non-existent headers
6168 # can be detected and how.
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <ac_nonexistent.h>
6176 _ACEOF
6177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null; then
6185 if test -s conftest.err; then
6186 ac_cpp_err=$ac_cxx_preproc_warn_flag
6187 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6188 else
6189 ac_cpp_err=
6190 fi
6191 else
6192 ac_cpp_err=yes
6193 fi
6194 if test -z "$ac_cpp_err"; then
6195 # Broken: success on invalid input.
6196 continue
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 # Passes both tests.
6202 ac_preproc_ok=:
6203 break
6204 fi
6205 rm -f conftest.err conftest.$ac_ext
6206
6207 done
6208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6209 rm -f conftest.err conftest.$ac_ext
6210 if $ac_preproc_ok; then
6211 :
6212 else
6213 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6214 See \`config.log' for more details." >&5
6215 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6216 See \`config.log' for more details." >&2;}
6217 { (exit 1); exit 1; }; }
6218 fi
6219
6220 ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225
6226
6227
6228 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6229 lt_save_CC="$CC"
6230 lt_save_CFLAGS="$CFLAGS"
6231 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6232 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6233 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6234 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6235 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6236 deplibs_check_method="$deplibs_check_method" \
6237 file_magic_cmd="$file_magic_cmd" \
6238 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6239 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6240 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6241 echo "$as_me: error: libtool tag configuration failed" >&2;}
6242 { (exit 1); exit 1; }; }
6243 CC="$lt_save_CC"
6244 CFLAGS="$lt_save_CFLAGS"
6245
6246 # Redirect the config.log output again, so that the ltconfig log is not
6247 # clobbered by the next message.
6248 exec 5>>./config.log
6249
6250
6251
6252
6253
6254
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6263 echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6265 if test "${ac_cv_prog_CC+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 if test -n "$CC"; then
6269 ac_cv_prog_CC="$CC" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284
6285 fi
6286 fi
6287 CC=$ac_cv_prog_CC
6288 if test -n "$CC"; then
6289 echo "$as_me:$LINENO: result: $CC" >&5
6290 echo "${ECHO_T}$CC" >&6
6291 else
6292 echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6
6294 fi
6295
6296 fi
6297 if test -z "$ac_cv_prog_CC"; then
6298 ac_ct_CC=$CC
6299 # Extract the first word of "gcc", so it can be a program name with args.
6300 set dummy gcc; ac_word=$2
6301 echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 if test -n "$ac_ct_CC"; then
6307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_ac_ct_CC="gcc"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322
6323 fi
6324 fi
6325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6326 if test -n "$ac_ct_CC"; then
6327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6328 echo "${ECHO_T}$ac_ct_CC" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334 CC=$ac_ct_CC
6335 else
6336 CC="$ac_cv_prog_CC"
6337 fi
6338
6339 if test -z "$CC"; then
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}cc; ac_word=$2
6343 echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6345 if test "${ac_cv_prog_CC+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 if test -n "$CC"; then
6349 ac_cv_prog_CC="$CC" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_CC="${ac_tool_prefix}cc"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364
6365 fi
6366 fi
6367 CC=$ac_cv_prog_CC
6368 if test -n "$CC"; then
6369 echo "$as_me:$LINENO: result: $CC" >&5
6370 echo "${ECHO_T}$CC" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6
6374 fi
6375
6376 fi
6377 if test -z "$ac_cv_prog_CC"; then
6378 ac_ct_CC=$CC
6379 # Extract the first word of "cc", so it can be a program name with args.
6380 set dummy cc; ac_word=$2
6381 echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$ac_ct_CC"; then
6387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_ac_ct_CC="cc"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402
6403 fi
6404 fi
6405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6406 if test -n "$ac_ct_CC"; then
6407 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6408 echo "${ECHO_T}$ac_ct_CC" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414 CC=$ac_ct_CC
6415 else
6416 CC="$ac_cv_prog_CC"
6417 fi
6418
6419 fi
6420 if test -z "$CC"; then
6421 # Extract the first word of "cc", so it can be a program name with args.
6422 set dummy cc; ac_word=$2
6423 echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6425 if test "${ac_cv_prog_CC+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 if test -n "$CC"; then
6429 ac_cv_prog_CC="$CC" # Let the user override the test.
6430 else
6431 ac_prog_rejected=no
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6440 ac_prog_rejected=yes
6441 continue
6442 fi
6443 ac_cv_prog_CC="cc"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449
6450 if test $ac_prog_rejected = yes; then
6451 # We found a bogon in the path, so make sure we never use it.
6452 set dummy $ac_cv_prog_CC
6453 shift
6454 if test $# != 0; then
6455 # We chose a different compiler from the bogus one.
6456 # However, it has the same basename, so the bogon will be chosen
6457 # first if we set CC to just the basename; use the full file name.
6458 shift
6459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6460 fi
6461 fi
6462 fi
6463 fi
6464 CC=$ac_cv_prog_CC
6465 if test -n "$CC"; then
6466 echo "$as_me:$LINENO: result: $CC" >&5
6467 echo "${ECHO_T}$CC" >&6
6468 else
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6471 fi
6472
6473 fi
6474 if test -z "$CC"; then
6475 if test -n "$ac_tool_prefix"; then
6476 for ac_prog in cl
6477 do
6478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6480 echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6482 if test "${ac_cv_prog_CC+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 if test -n "$CC"; then
6486 ac_cv_prog_CC="$CC" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501
6502 fi
6503 fi
6504 CC=$ac_cv_prog_CC
6505 if test -n "$CC"; then
6506 echo "$as_me:$LINENO: result: $CC" >&5
6507 echo "${ECHO_T}$CC" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6
6511 fi
6512
6513 test -n "$CC" && break
6514 done
6515 fi
6516 if test -z "$CC"; then
6517 ac_ct_CC=$CC
6518 for ac_prog in cl
6519 do
6520 # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test -n "$ac_ct_CC"; then
6528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_CC="$ac_prog"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543
6544 fi
6545 fi
6546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6547 if test -n "$ac_ct_CC"; then
6548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6549 echo "${ECHO_T}$ac_ct_CC" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6553 fi
6554
6555 test -n "$ac_ct_CC" && break
6556 done
6557
6558 CC=$ac_ct_CC
6559 fi
6560
6561 fi
6562
6563
6564 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6565 See \`config.log' for more details." >&5
6566 echo "$as_me: error: no acceptable C compiler found in \$PATH
6567 See \`config.log' for more details." >&2;}
6568 { (exit 1); exit 1; }; }
6569
6570 # Provide some information about the compiler.
6571 echo "$as_me:$LINENO:" \
6572 "checking for C compiler version" >&5
6573 ac_compiler=`set X $ac_compile; echo $2`
6574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6575 (eval $ac_compiler --version </dev/null >&5) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }
6579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6580 (eval $ac_compiler -v </dev/null >&5) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }
6584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6585 (eval $ac_compiler -V </dev/null >&5) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }
6589
6590 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6591 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601
6602 int
6603 main ()
6604 {
6605 #ifndef __GNUC__
6606 choke me
6607 #endif
6608
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_compiler_gnu=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_compiler_gnu=no
6641 fi
6642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6644
6645 fi
6646 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6648 GCC=`test $ac_compiler_gnu = yes && echo yes`
6649 ac_test_CFLAGS=${CFLAGS+set}
6650 ac_save_CFLAGS=$CFLAGS
6651 CFLAGS="-g"
6652 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6654 if test "${ac_cv_prog_cc_g+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663
6664 int
6665 main ()
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_prog_cc_g=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_prog_cc_g=no
6700 fi
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6705 if test "$ac_test_CFLAGS" = set; then
6706 CFLAGS=$ac_save_CFLAGS
6707 elif test $ac_cv_prog_cc_g = yes; then
6708 if test "$GCC" = yes; then
6709 CFLAGS="-g -O2"
6710 else
6711 CFLAGS="-g"
6712 fi
6713 else
6714 if test "$GCC" = yes; then
6715 CFLAGS="-O2"
6716 else
6717 CFLAGS=
6718 fi
6719 fi
6720 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6721 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6722 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 ac_cv_prog_cc_stdc=no
6726 ac_save_CC=$CC
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <stdarg.h>
6734 #include <stdio.h>
6735 #include <sys/types.h>
6736 #include <sys/stat.h>
6737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6738 struct buf { int x; };
6739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6740 static char *e (p, i)
6741 char **p;
6742 int i;
6743 {
6744 return p[i];
6745 }
6746 static char *f (char * (*g) (char **, int), char **p, ...)
6747 {
6748 char *s;
6749 va_list v;
6750 va_start (v,p);
6751 s = g (p, va_arg (v,int));
6752 va_end (v);
6753 return s;
6754 }
6755
6756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6757 function prototypes and stuff, but not '\xHH' hex character constants.
6758 These don't provoke an error unfortunately, instead are silently treated
6759 as 'x'. The following induces an error, until -std1 is added to get
6760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6761 array size at least. It's necessary to write '\x00'==0 to get something
6762 that's true only with -std1. */
6763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6764
6765 int test (int i, double x);
6766 struct s1 {int (*f) (int a);};
6767 struct s2 {int (*f) (double a);};
6768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6769 int argc;
6770 char **argv;
6771 int
6772 main ()
6773 {
6774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 # Don't try gcc -ansi; that turns off useful extensions and
6780 # breaks some systems' header files.
6781 # AIX -qlanglvl=ansi
6782 # Ultrix and OSF/1 -std1
6783 # HP-UX 10.20 and later -Ae
6784 # HP-UX older versions -Aa -D_HPUX_SOURCE
6785 # SVR4 -Xc -D__EXTENSIONS__
6786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6787 do
6788 CC="$ac_save_CC $ac_arg"
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_prog_cc_stdc=$ac_arg
6812 break
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 fi
6818 rm -f conftest.err conftest.$ac_objext
6819 done
6820 rm -f conftest.$ac_ext conftest.$ac_objext
6821 CC=$ac_save_CC
6822
6823 fi
6824
6825 case "x$ac_cv_prog_cc_stdc" in
6826 x|xno)
6827 echo "$as_me:$LINENO: result: none needed" >&5
6828 echo "${ECHO_T}none needed" >&6 ;;
6829 *)
6830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6831 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6832 CC="$CC $ac_cv_prog_cc_stdc" ;;
6833 esac
6834
6835 # Some people use a C++ compiler to compile C. Since we use `exit',
6836 # in C++ we need to declare it. In case someone uses the same compiler
6837 # for both compiling C and C++ we need to have the C++ compiler decide
6838 # the declaration of exit, since it's the most demanding environment.
6839 cat >conftest.$ac_ext <<_ACEOF
6840 #ifndef __cplusplus
6841 choke me
6842 #endif
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest.$ac_objext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 for ac_declaration in \
6867 '' \
6868 'extern "C" void std::exit (int) throw (); using std::exit;' \
6869 'extern "C" void std::exit (int); using std::exit;' \
6870 'extern "C" void exit (int) throw ();' \
6871 'extern "C" void exit (int);' \
6872 'void exit (int);'
6873 do
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_declaration
6881 #include <stdlib.h>
6882 int
6883 main ()
6884 {
6885 exit (42);
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 :
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 continue
6918 fi
6919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 $ac_declaration
6927 int
6928 main ()
6929 {
6930 exit (42);
6931 ;
6932 return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 break
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 fi
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 done
6965 rm -f conftest*
6966 if test -n "$ac_declaration"; then
6967 echo '#ifdef __cplusplus' >>confdefs.h
6968 echo $ac_declaration >>confdefs.h
6969 echo '#endif' >>confdefs.h
6970 fi
6971
6972 else
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 fi
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6978 ac_ext=c
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984 depcc="$CC" am_compiler_list=
6985
6986 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6987 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6992 # We make a subdir and do the tests there. Otherwise we can end up
6993 # making bogus files that we don't know about and never remove. For
6994 # instance it was reported that on HP-UX the gcc test will end up
6995 # making a dummy file named `D' -- because `-MD' means `put the output
6996 # in D'.
6997 mkdir conftest.dir
6998 # Copy depcomp to subdir because otherwise we won't find it if we're
6999 # using a relative directory.
7000 cp "$am_depcomp" conftest.dir
7001 cd conftest.dir
7002 # We will build objects and dependencies in a subdirectory because
7003 # it helps to detect inapplicable dependency modes. For instance
7004 # both Tru64's cc and ICC support -MD to output dependencies as a
7005 # side effect of compilation, but ICC will put the dependencies in
7006 # the current directory while Tru64 will put them in the object
7007 # directory.
7008 mkdir sub
7009
7010 am_cv_CC_dependencies_compiler_type=none
7011 if test "$am_compiler_list" = ""; then
7012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7013 fi
7014 for depmode in $am_compiler_list; do
7015 # Setup a source with many dependencies, because some compilers
7016 # like to wrap large dependency lists on column 80 (with \), and
7017 # we should not choose a depcomp mode which is confused by this.
7018 #
7019 # We need to recreate these files for each test, as the compiler may
7020 # overwrite some of them when testing with obscure command lines.
7021 # This happens at least with the AIX C compiler.
7022 : > sub/conftest.c
7023 for i in 1 2 3 4 5 6; do
7024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7026 # Solaris 8's {/usr,}/bin/sh.
7027 touch sub/conftst$i.h
7028 done
7029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7030
7031 case $depmode in
7032 nosideeffect)
7033 # after this tag, mechanisms are not by side-effect, so they'll
7034 # only be used when explicitly requested
7035 if test "x$enable_dependency_tracking" = xyes; then
7036 continue
7037 else
7038 break
7039 fi
7040 ;;
7041 none) break ;;
7042 esac
7043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7044 # mode. It turns out that the SunPro C++ compiler does not properly
7045 # handle `-M -o', and we need to detect this.
7046 if depmode=$depmode \
7047 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7049 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7050 >/dev/null 2>conftest.err &&
7051 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7052 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7053 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7054 # icc doesn't choke on unknown options, it will just issue warnings
7055 # or remarks (even with -Werror). So we grep stderr for any message
7056 # that says an option was ignored or not supported.
7057 # When given -MP, icc 7.0 and 7.1 complain thusly:
7058 # icc: Command line warning: ignoring option '-M'; no argument required
7059 # The diagnosis changed in icc 8.0:
7060 # icc: Command line remark: option '-MP' not supported
7061 if (grep 'ignoring option' conftest.err ||
7062 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7063 am_cv_CC_dependencies_compiler_type=$depmode
7064 break
7065 fi
7066 fi
7067 done
7068
7069 cd ..
7070 rm -rf conftest.dir
7071 else
7072 am_cv_CC_dependencies_compiler_type=none
7073 fi
7074
7075 fi
7076 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7077 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7079
7080
7081
7082 if
7083 test "x$enable_dependency_tracking" != xno \
7084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7085 am__fastdepCC_TRUE=
7086 am__fastdepCC_FALSE='#'
7087 else
7088 am__fastdepCC_TRUE='#'
7089 am__fastdepCC_FALSE=
7090 fi
7091
7092
7093 ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7100 # On Suns, sometimes $CPP names a directory.
7101 if test -n "$CPP" && test -d "$CPP"; then
7102 CPP=
7103 fi
7104 if test -z "$CPP"; then
7105 if test "${ac_cv_prog_CPP+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 # Double quotes because CPP needs to be expanded
7109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110 do
7111 ac_preproc_ok=false
7112 for ac_c_preproc_warn_flag in '' yes
7113 do
7114 # Use a header file that comes with gcc, so configuring glibc
7115 # with a fresh cross-compiler works.
7116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 # <limits.h> exists even on freestanding compilers.
7118 # On the NeXT, cc -E runs the code through the compiler's parser,
7119 # not just through cpp. "Syntax error" is here to catch this case.
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #ifdef __STDC__
7127 # include <limits.h>
7128 #else
7129 # include <assert.h>
7130 #endif
7131 Syntax error
7132 _ACEOF
7133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } >/dev/null; then
7141 if test -s conftest.err; then
7142 ac_cpp_err=$ac_c_preproc_warn_flag
7143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7144 else
7145 ac_cpp_err=
7146 fi
7147 else
7148 ac_cpp_err=yes
7149 fi
7150 if test -z "$ac_cpp_err"; then
7151 :
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 # Broken: fails on valid input.
7157 continue
7158 fi
7159 rm -f conftest.err conftest.$ac_ext
7160
7161 # OK, works on sane cases. Now check whether non-existent headers
7162 # can be detected and how.
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <ac_nonexistent.h>
7170 _ACEOF
7171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } >/dev/null; then
7179 if test -s conftest.err; then
7180 ac_cpp_err=$ac_c_preproc_warn_flag
7181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7182 else
7183 ac_cpp_err=
7184 fi
7185 else
7186 ac_cpp_err=yes
7187 fi
7188 if test -z "$ac_cpp_err"; then
7189 # Broken: success on invalid input.
7190 continue
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 # Passes both tests.
7196 ac_preproc_ok=:
7197 break
7198 fi
7199 rm -f conftest.err conftest.$ac_ext
7200
7201 done
7202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7203 rm -f conftest.err conftest.$ac_ext
7204 if $ac_preproc_ok; then
7205 break
7206 fi
7207
7208 done
7209 ac_cv_prog_CPP=$CPP
7210
7211 fi
7212 CPP=$ac_cv_prog_CPP
7213 else
7214 ac_cv_prog_CPP=$CPP
7215 fi
7216 echo "$as_me:$LINENO: result: $CPP" >&5
7217 echo "${ECHO_T}$CPP" >&6
7218 ac_preproc_ok=false
7219 for ac_c_preproc_warn_flag in '' yes
7220 do
7221 # Use a header file that comes with gcc, so configuring glibc
7222 # with a fresh cross-compiler works.
7223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 # <limits.h> exists even on freestanding compilers.
7225 # On the NeXT, cc -E runs the code through the compiler's parser,
7226 # not just through cpp. "Syntax error" is here to catch this case.
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #ifdef __STDC__
7234 # include <limits.h>
7235 #else
7236 # include <assert.h>
7237 #endif
7238 Syntax error
7239 _ACEOF
7240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } >/dev/null; then
7248 if test -s conftest.err; then
7249 ac_cpp_err=$ac_c_preproc_warn_flag
7250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7251 else
7252 ac_cpp_err=
7253 fi
7254 else
7255 ac_cpp_err=yes
7256 fi
7257 if test -z "$ac_cpp_err"; then
7258 :
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 # Broken: fails on valid input.
7264 continue
7265 fi
7266 rm -f conftest.err conftest.$ac_ext
7267
7268 # OK, works on sane cases. Now check whether non-existent headers
7269 # can be detected and how.
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 #include <ac_nonexistent.h>
7277 _ACEOF
7278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } >/dev/null; then
7286 if test -s conftest.err; then
7287 ac_cpp_err=$ac_c_preproc_warn_flag
7288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7289 else
7290 ac_cpp_err=
7291 fi
7292 else
7293 ac_cpp_err=yes
7294 fi
7295 if test -z "$ac_cpp_err"; then
7296 # Broken: success on invalid input.
7297 continue
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 # Passes both tests.
7303 ac_preproc_ok=:
7304 break
7305 fi
7306 rm -f conftest.err conftest.$ac_ext
7307
7308 done
7309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7310 rm -f conftest.err conftest.$ac_ext
7311 if $ac_preproc_ok; then
7312 :
7313 else
7314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7315 See \`config.log' for more details." >&5
7316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7317 See \`config.log' for more details." >&2;}
7318 { (exit 1); exit 1; }; }
7319 fi
7320
7321 ac_ext=c
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326
7327
7328 if test "x${COMPILE_COLLECTIONS}" = xyes; then
7329 # Extract the first word of "perl", so it can be a program name with args.
7330 set dummy perl; ac_word=$2
7331 echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333 if test "${ac_cv_path_PERL+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 case $PERL in
7337 [\\/]* | ?:[\\/]*)
7338 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7339 ;;
7340 *)
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354
7355 ;;
7356 esac
7357 fi
7358 PERL=$ac_cv_path_PERL
7359
7360 if test -n "$PERL"; then
7361 echo "$as_me:$LINENO: result: $PERL" >&5
7362 echo "${ECHO_T}$PERL" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368
7369
7370 ac_config_files="$ac_config_files lib/mkcollections.pl"
7371
7372 ac_config_commands="$ac_config_commands mkcollections.pl"
7373
7374 fi
7375
7376 if test "x${COMPILE_JNI}" = xyes; then
7377 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7379 if test "${ac_cv_header_stdc+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <stdlib.h>
7389 #include <stdarg.h>
7390 #include <string.h>
7391 #include <float.h>
7392
7393 int
7394 main ()
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag"
7411 || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest.$ac_objext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 (eval $ac_try) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 ac_cv_header_stdc=yes
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 ac_cv_header_stdc=no
7429 fi
7430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431
7432 if test $ac_cv_header_stdc = yes; then
7433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 #include <string.h>
7441
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "memchr" >/dev/null 2>&1; then
7445 :
7446 else
7447 ac_cv_header_stdc=no
7448 fi
7449 rm -f conftest*
7450
7451 fi
7452
7453 if test $ac_cv_header_stdc = yes; then
7454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 #include <stdlib.h>
7462
7463 _ACEOF
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465 $EGREP "free" >/dev/null 2>&1; then
7466 :
7467 else
7468 ac_cv_header_stdc=no
7469 fi
7470 rm -f conftest*
7471
7472 fi
7473
7474 if test $ac_cv_header_stdc = yes; then
7475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7476 if test "$cross_compiling" = yes; then
7477 :
7478 else
7479 cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h. */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 #include <ctype.h>
7486 #if ((' ' & 0x0FF) == 0x020)
7487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7489 #else
7490 # define ISLOWER(c) \
7491 (('a' <= (c) && (c) <= 'i') \
7492 || ('j' <= (c) && (c) <= 'r') \
7493 || ('s' <= (c) && (c) <= 'z'))
7494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7495 #endif
7496
7497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7498 int
7499 main ()
7500 {
7501 int i;
7502 for (i = 0; i < 256; i++)
7503 if (XOR (islower (i), ISLOWER (i))
7504 || toupper (i) != TOUPPER (i))
7505 exit(2);
7506 exit (0);
7507 }
7508 _ACEOF
7509 rm -f conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 :
7521 else
7522 echo "$as_me: program exited with status $ac_status" >&5
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ( exit $ac_status )
7527 ac_cv_header_stdc=no
7528 fi
7529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 fi
7532 fi
7533 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7534 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7535 if test $ac_cv_header_stdc = yes; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define STDC_HEADERS 1
7539 _ACEOF
7540
7541 fi
7542
7543
7544 echo "$as_me:$LINENO: checking size of void *" >&5
7545 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7546 if test "${ac_cv_sizeof_void_p+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h. */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 #include "confdefs.h"
7557 #include <sys/types.h>
7558
7559
7560 int
7561 main ()
7562 {
7563 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570 (eval $ac_compile) 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -z "$ac_c_werror_flag"
7578 || test ! -s conftest.err'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; } &&
7584 { ac_try='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_cv_sizeof_void_p=$ac_size
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 fi
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7598 done
7599
7600 fi
7601
7602 if test x$ac_cv_sizeof_void_p = x ; then
7603 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
7604 echo "$as_me: error: cannot determine a size for void *" >&2;}
7605 { (exit 1); exit 1; }; }
7606 fi
7607 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7608 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7609
7610 cat >>confdefs.h <<_ACEOF
7611 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7612 _ACEOF
7613
7614
7615
7616 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7617 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7618 if test "${ac_cv_c_bigendian+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 ac_cv_c_bigendian=unknown
7622 # See if sys/param.h defines the BYTE_ORDER macro.
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <sys/param.h>
7631 int
7632 main ()
7633 {
7634
7635 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7636 bogus endian macros
7637 #endif
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 # It does; now see whether it defined to BIG_ENDIAN or not.
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <sys/param.h>
7673 int
7674 main ()
7675 {
7676
7677 #if BYTE_ORDER != BIG_ENDIAN
7678 not big endian
7679 #endif
7680 ;
7681 return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_c_bigendian=yes
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_c_bigendian=no
7712 fi
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 fi
7719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7720 if test $ac_cv_c_bigendian = unknown; then
7721 if test "$cross_compiling" = yes; then
7722 echo $ac_n "cross-compiling... " 2>&6
7723 else
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 main () {
7731 /* Are we little or big endian? From Harbison&Steele. */
7732 union
7733 {
7734 long l;
7735 char c[sizeof (long)];
7736 } u;
7737 u.l = 1;
7738 exit (u.c[sizeof (long) - 1] == 1);
7739 }
7740 _ACEOF
7741 rm -f conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_c_bigendian=no
7753 else
7754 echo "$as_me: program exited with status $ac_status" >&5
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 ( exit $ac_status )
7759 ac_cv_c_bigendian=yes
7760 fi
7761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 fi
7764 fi
7765 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7767 if test $ac_cv_c_bigendian = unknown; then
7768 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
7769 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
7770
7771 cat >conftest.c <<EOF
7772 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7773 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7774 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7775 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7776 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7777 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7778 int main() { _ascii (); _ebcdic (); return 0; }
7779 EOF
7780 if test -f conftest.c ; then
7781 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7782 if test `grep -l BIGenDianSyS conftest.o` ; then
7783 echo $ac_n ' big endian probe OK, ' 1>&6
7784 ac_cv_c_bigendian=yes
7785 fi
7786 if test `grep -l LiTTleEnDian conftest.o` ; then
7787 echo $ac_n ' little endian probe OK, ' 1>&6
7788 if test $ac_cv_c_bigendian = yes ; then
7789 ac_cv_c_bigendian=unknown;
7790 else
7791 ac_cv_c_bigendian=no
7792 fi
7793 fi
7794 echo $ac_n 'guessing bigendian ... ' >&6
7795 fi
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7798 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7799 fi
7800 if test $ac_cv_c_bigendian = yes; then
7801
7802 cat >>confdefs.h <<\_ACEOF
7803 #define WORDS_BIGENDIAN 1
7804 _ACEOF
7805
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HOST_WORDS_BIG_ENDIAN 1
7809 _ACEOF
7810
7811 BYTEORDER=4321
7812 else
7813 BYTEORDER=1234
7814 fi
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define BYTEORDER $BYTEORDER
7818 _ACEOF
7819
7820 if test $ac_cv_c_bigendian = unknown; then
7821 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
7822 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
7823 { (exit 1); exit 1; }; }
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7844 asm/ioctls.h \
7845 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7846 sys/time.h \
7847 sys/select.h \
7848 crt_externs.h \
7849 fcntl.h \
7850 sys/mman.h \
7851 magic.h
7852 do
7853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855 echo "$as_me:$LINENO: checking for $ac_header" >&5
7856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 fi
7860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7862 else
7863 # Is the header compilable?
7864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 $ac_includes_default
7873 #include <$ac_header>
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_header_compiler=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 ac_header_compiler=no
7903 fi
7904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7906 echo "${ECHO_T}$ac_header_compiler" >&6
7907
7908 # Is the header present?
7909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <$ac_header>
7918 _ACEOF
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7930 else
7931 ac_cpp_err=
7932 fi
7933 else
7934 ac_cpp_err=yes
7935 fi
7936 if test -z "$ac_cpp_err"; then
7937 ac_header_preproc=yes
7938 else
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942 ac_header_preproc=no
7943 fi
7944 rm -f conftest.err conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7946 echo "${ECHO_T}$ac_header_preproc" >&6
7947
7948 # So? What about this header?
7949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7950 yes:no: )
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7955 ac_header_preproc=yes
7956 ;;
7957 no:yes:* )
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7970 (
7971 cat <<\_ASBOX
7972 ## -------------------------------- ##
7973 ## Report this to classpath@gnu.org ##
7974 ## -------------------------------- ##
7975 _ASBOX
7976 ) |
7977 sed "s/^/$as_me: WARNING: /" >&2
7978 ;;
7979 esac
7980 echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985 eval "$as_ac_Header=\$ac_header_preproc"
7986 fi
7987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7989
7990 fi
7991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7992 cat >>confdefs.h <<_ACEOF
7993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994 _ACEOF
7995
7996 fi
7997
7998 done
7999
8000
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 #include <stdint.h>
8008
8009 _ACEOF
8010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "uint32_t" >/dev/null 2>&1; then
8012
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_INT32_DEFINED 1
8015 _ACEOF
8016
8017 fi
8018 rm -f conftest*
8019
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <inttypes.h>
8027
8028 _ACEOF
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030 $EGREP "uint32_t" >/dev/null 2>&1; then
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_INT32_DEFINED 1
8034 _ACEOF
8035
8036 fi
8037 rm -f conftest*
8038
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <sys/types.h>
8046
8047 _ACEOF
8048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 $EGREP "u_int32_t" >/dev/null 2>&1; then
8050
8051 cat >>confdefs.h <<\_ACEOF
8052 #define HAVE_BSD_INT32_DEFINED 1
8053 _ACEOF
8054
8055 fi
8056 rm -f conftest*
8057
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 #include <sys/config.h>
8065
8066 _ACEOF
8067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 $EGREP "u_int32_t" >/dev/null 2>&1; then
8069
8070 cat >>confdefs.h <<\_ACEOF
8071 #define HAVE_BSD_INT32_DEFINED 1
8072 _ACEOF
8073
8074 fi
8075 rm -f conftest*
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 for ac_func in ftruncate fsync select \
8122 gethostname socket strerror fork pipe execve open close \
8123 lseek fstat read write htonl memset htons connect \
8124 getsockname getpeername bind listen accept \
8125 recvfrom send sendto setsockopt getsockopt time mktime \
8126 localtime_r \
8127 strerror_r \
8128 fcntl \
8129 mmap munmap mincore msync madvise getpagesize sysconf \
8130 lstat readlink \
8131
8132 do
8133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8134 echo "$as_me:$LINENO: checking for $ac_func" >&5
8135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8136 if eval "test \"\${$as_ac_var+set}\" = set"; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8147 #define $ac_func innocuous_$ac_func
8148
8149 /* System header to define __stub macros and hopefully few prototypes,
8150 which can conflict with char $ac_func (); below.
8151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8152 <limits.h> exists even on freestanding compilers. */
8153
8154 #ifdef __STDC__
8155 # include <limits.h>
8156 #else
8157 # include <assert.h>
8158 #endif
8159
8160 #undef $ac_func
8161
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 #ifdef __cplusplus
8164 extern "C"
8165 {
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char $ac_func ();
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8174 choke me
8175 #else
8176 char (*f) () = $ac_func;
8177 #endif
8178 #ifdef __cplusplus
8179 }
8180 #endif
8181
8182 int
8183 main ()
8184 {
8185 return f != $ac_func;
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest$ac_exeext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 eval "$as_ac_var=yes"
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 eval "$as_ac_var=no"
8218 fi
8219 rm -f conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8224 if test `eval echo '${'$as_ac_var'}'` = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230 done
8231
8232
8233 LIBMAGIC=
8234 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
8235 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
8236 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lmagic $LIBS"
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h. */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8254 char magic_open ();
8255 int
8256 main ()
8257 {
8258 magic_open ();
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8265 (eval $ac_link) 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_lib_magic_magic_open=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 ac_cv_lib_magic_magic_open=no
8291 fi
8292 rm -f conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294 LIBS=$ac_check_lib_save_LIBS
8295 fi
8296 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
8297 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
8298 if test $ac_cv_lib_magic_magic_open = yes; then
8299 LIBMAGIC=-lmagic
8300 fi
8301
8302
8303
8304 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8306 if test "${ac_cv_header_time+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <sys/types.h>
8316 #include <sys/time.h>
8317 #include <time.h>
8318
8319 int
8320 main ()
8321 {
8322 if ((struct tm *) 0)
8323 return 0;
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_header_time=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 ac_cv_header_time=no
8356 fi
8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8360 echo "${ECHO_T}$ac_cv_header_time" >&6
8361 if test $ac_cv_header_time = yes; then
8362
8363 cat >>confdefs.h <<\_ACEOF
8364 #define TIME_WITH_SYS_TIME 1
8365 _ACEOF
8366
8367 fi
8368
8369 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8370 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8371 if test "${ac_cv_struct_tm+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 #include <sys/types.h>
8381 #include <time.h>
8382
8383 int
8384 main ()
8385 {
8386 struct tm *tp; tp->tm_sec;
8387 ;
8388 return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_struct_tm=time.h
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 ac_cv_struct_tm=sys/time.h
8419 fi
8420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8423 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8424 if test $ac_cv_struct_tm = sys/time.h; then
8425
8426 cat >>confdefs.h <<\_ACEOF
8427 #define TM_IN_SYS_TIME 1
8428 _ACEOF
8429
8430 fi
8431
8432 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8433 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8434 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h. */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 #include <sys/types.h>
8444 #include <$ac_cv_struct_tm>
8445
8446
8447 int
8448 main ()
8449 {
8450 static struct tm ac_aggr;
8451 if (ac_aggr.tm_zone)
8452 return 0;
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
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); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_member_struct_tm_tm_zone=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #include <sys/types.h>
8491 #include <$ac_cv_struct_tm>
8492
8493
8494 int
8495 main ()
8496 {
8497 static struct tm ac_aggr;
8498 if (sizeof ac_aggr.tm_zone)
8499 return 0;
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest.$ac_objext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_member_struct_tm_tm_zone=yes
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_member_struct_tm_tm_zone=no
8532 fi
8533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8534 fi
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8536 fi
8537 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8538 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8539 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8540
8541 cat >>confdefs.h <<_ACEOF
8542 #define HAVE_STRUCT_TM_TM_ZONE 1
8543 _ACEOF
8544
8545
8546 fi
8547
8548 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8549
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_TM_ZONE 1
8552 _ACEOF
8553
8554 else
8555 echo "$as_me:$LINENO: checking for tzname" >&5
8556 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8557 if test "${ac_cv_var_tzname+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 #include <time.h>
8567 #ifndef tzname /* For SGI. */
8568 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8569 #endif
8570
8571 int
8572 main ()
8573 {
8574 atoi(*tzname);
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_var_tzname=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_var_tzname=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 fi
8611 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8612 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8613 if test $ac_cv_var_tzname = yes; then
8614
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_TZNAME 1
8617 _ACEOF
8618
8619 fi
8620 fi
8621
8622
8623 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8624 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 #include <time.h>
8632 int
8633 main ()
8634 {
8635 struct tm tim; tim.tm_gmtoff = 0;
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662
8663 cat >>confdefs.h <<\_ACEOF
8664 #define STRUCT_TM_HAS_GMTOFF 1
8665 _ACEOF
8666
8667 echo "$as_me:$LINENO: result: yes" >&5
8668 echo "${ECHO_T}yes" >&6
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8675 echo "$as_me:$LINENO: checking for global timezone variable" >&5
8676 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 #include <time.h>
8684 int
8685 main ()
8686 {
8687 void i(){long z2 = 2*timezone;}
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694 (eval $ac_compile) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714
8715 cat >>confdefs.h <<\_ACEOF
8716 #define HAVE_TIMEZONE 1
8717 _ACEOF
8718
8719 echo "$as_me:$LINENO: result: yes" >&5
8720 echo "${ECHO_T}yes" >&6
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6
8727 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8728 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <time.h>
8736 int
8737 main ()
8738 {
8739 long z2 = _timezone;
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_UNDERSCORE_TIMEZONE 1
8769 _ACEOF
8770
8771 echo "$as_me:$LINENO: result: yes" >&5
8772 echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779 fi
8780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785
8786 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8787 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8788 if test "${ac_cv_c_const+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797
8798 int
8799 main ()
8800 {
8801 /* FIXME: Include the comments suggested by Paul. */
8802 #ifndef __cplusplus
8803 /* Ultrix mips cc rejects this. */
8804 typedef int charset[2];
8805 const charset x;
8806 /* SunOS 4.1.1 cc rejects this. */
8807 char const *const *ccp;
8808 char **p;
8809 /* NEC SVR4.0.2 mips cc rejects this. */
8810 struct point {int x, y;};
8811 static struct point const zero = {0,0};
8812 /* AIX XL C 1.02.0.0 rejects this.
8813 It does not let you subtract one const X* pointer from another in
8814 an arm of an if-expression whose if-part is not a constant
8815 expression */
8816 const char *g = "string";
8817 ccp = &g + (g ? g-g : 0);
8818 /* HPUX 7.0 cc rejects these. */
8819 ++ccp;
8820 p = (char**) ccp;
8821 ccp = (char const *const *) p;
8822 { /* SCO 3.2v4 cc rejects this. */
8823 char *t;
8824 char const *s = 0 ? (char *) 0 : (char const *) 0;
8825
8826 *t++ = 0;
8827 }
8828 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8829 int x[] = {25, 17};
8830 const int *foo = &x[0];
8831 ++foo;
8832 }
8833 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8834 typedef const int *iptr;
8835 iptr p = 0;
8836 ++p;
8837 }
8838 { /* AIX XL C 1.02.0.0 rejects this saying
8839 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8840 struct s { int j; const int *ap[3]; };
8841 struct s *b; b->j = 5;
8842 }
8843 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8844 const int foo = 10;
8845 }
8846 #endif
8847
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_c_const=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ac_cv_c_const=no
8880 fi
8881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8884 echo "${ECHO_T}$ac_cv_c_const" >&6
8885 if test $ac_cv_c_const = no; then
8886
8887 cat >>confdefs.h <<\_ACEOF
8888 #define const
8889 _ACEOF
8890
8891 fi
8892
8893 echo "$as_me:$LINENO: checking for __attribute__" >&5
8894 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8895 if test "${ac_cv_c_attribute+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 void foo(void) __attribute__ ((__noreturn__));
8906
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_c_attribute=yes
8931 else
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_cv_c_attribute=no
8936
8937 fi
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8942 echo "${ECHO_T}$ac_cv_c_attribute" >&6
8943
8944
8945 case $ac_cv_c_attribute in
8946 yes) ;;
8947 no)
8948 cat >>confdefs.h <<_ACEOF
8949 #define __attribute__(x) /* nothing */
8950 _ACEOF
8951 ;;
8952 esac
8953
8954
8955
8956 if test "X$prefix" = "XNONE"; then
8957 acl_final_prefix="$ac_default_prefix"
8958 else
8959 acl_final_prefix="$prefix"
8960 fi
8961 if test "X$exec_prefix" = "XNONE"; then
8962 acl_final_exec_prefix='${prefix}'
8963 else
8964 acl_final_exec_prefix="$exec_prefix"
8965 fi
8966 acl_save_prefix="$prefix"
8967 prefix="$acl_final_prefix"
8968 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8969 prefix="$acl_save_prefix"
8970
8971
8972 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8973 if test "${with_gnu_ld+set}" = set; then
8974 withval="$with_gnu_ld"
8975 test "$withval" = no || with_gnu_ld=yes
8976 else
8977 with_gnu_ld=no
8978 fi;
8979 # Prepare PATH_SEPARATOR.
8980 # The user is always right.
8981 if test "${PATH_SEPARATOR+set}" != set; then
8982 echo "#! /bin/sh" >conf$$.sh
8983 echo "exit 0" >>conf$$.sh
8984 chmod +x conf$$.sh
8985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8986 PATH_SEPARATOR=';'
8987 else
8988 PATH_SEPARATOR=:
8989 fi
8990 rm -f conf$$.sh
8991 fi
8992 ac_prog=ld
8993 if test "$GCC" = yes; then
8994 # Check if gcc -print-prog-name=ld gives a path.
8995 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8996 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8997 case $host in
8998 *-*-mingw*)
8999 # gcc leaves a trailing carriage return which upsets mingw
9000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9001 *)
9002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9003 esac
9004 case $ac_prog in
9005 # Accept absolute paths.
9006 [\\/]* | [A-Za-z]:[\\/]*)
9007 re_direlt='/[^/][^/]*/\.\./'
9008 # Canonicalize the path of ld
9009 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9010 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9011 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9012 done
9013 test -z "$LD" && LD="$ac_prog"
9014 ;;
9015 "")
9016 # If it fails, then pretend we aren't using GCC.
9017 ac_prog=ld
9018 ;;
9019 *)
9020 # If it is relative, then search for the first ld in PATH.
9021 with_gnu_ld=unknown
9022 ;;
9023 esac
9024 elif test "$with_gnu_ld" = yes; then
9025 echo "$as_me:$LINENO: checking for GNU ld" >&5
9026 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9027 else
9028 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9029 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9030 fi
9031 if test "${acl_cv_path_LD+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 if test -z "$LD"; then
9035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9036 for ac_dir in $PATH; do
9037 test -z "$ac_dir" && ac_dir=.
9038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9039 acl_cv_path_LD="$ac_dir/$ac_prog"
9040 # Check to see if the program is GNU ld. I'd rather use --version,
9041 # but apparently some GNU ld's only accept -v.
9042 # Break only if it was the GNU/non-GNU ld that we prefer.
9043 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9044 test "$with_gnu_ld" != no && break
9045 else
9046 test "$with_gnu_ld" != yes && break
9047 fi
9048 fi
9049 done
9050 IFS="$ac_save_ifs"
9051 else
9052 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9053 fi
9054 fi
9055
9056 LD="$acl_cv_path_LD"
9057 if test -n "$LD"; then
9058 echo "$as_me:$LINENO: result: $LD" >&5
9059 echo "${ECHO_T}$LD" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063 fi
9064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9066 { (exit 1); exit 1; }; }
9067 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9069 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9073 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9074 acl_cv_prog_gnu_ld=yes
9075 else
9076 acl_cv_prog_gnu_ld=no
9077 fi
9078 fi
9079 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9080 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9081 with_gnu_ld=$acl_cv_prog_gnu_ld
9082
9083
9084
9085 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9086 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9087 if test "${acl_cv_rpath+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090
9091 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9092 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9093 . ./conftest.sh
9094 rm -f ./conftest.sh
9095 acl_cv_rpath=done
9096
9097 fi
9098 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9099 echo "${ECHO_T}$acl_cv_rpath" >&6
9100 wl="$acl_cv_wl"
9101 libext="$acl_cv_libext"
9102 shlibext="$acl_cv_shlibext"
9103 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9104 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9105 hardcode_direct="$acl_cv_hardcode_direct"
9106 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9107 # Check whether --enable-rpath or --disable-rpath was given.
9108 if test "${enable_rpath+set}" = set; then
9109 enableval="$enable_rpath"
9110 :
9111 else
9112 enable_rpath=yes
9113 fi;
9114
9115
9116
9117
9118
9119
9120
9121 use_additional=yes
9122
9123 acl_save_prefix="$prefix"
9124 prefix="$acl_final_prefix"
9125 acl_save_exec_prefix="$exec_prefix"
9126 exec_prefix="$acl_final_exec_prefix"
9127
9128 eval additional_includedir=\"$includedir\"
9129 eval additional_libdir=\"$libdir\"
9130
9131 exec_prefix="$acl_save_exec_prefix"
9132 prefix="$acl_save_prefix"
9133
9134
9135 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9136 if test "${with_libiconv_prefix+set}" = set; then
9137 withval="$with_libiconv_prefix"
9138
9139 if test "X$withval" = "Xno"; then
9140 use_additional=no
9141 else
9142 if test "X$withval" = "X"; then
9143
9144 acl_save_prefix="$prefix"
9145 prefix="$acl_final_prefix"
9146 acl_save_exec_prefix="$exec_prefix"
9147 exec_prefix="$acl_final_exec_prefix"
9148
9149 eval additional_includedir=\"$includedir\"
9150 eval additional_libdir=\"$libdir\"
9151
9152 exec_prefix="$acl_save_exec_prefix"
9153 prefix="$acl_save_prefix"
9154
9155 else
9156 additional_includedir="$withval/include"
9157 additional_libdir="$withval/lib"
9158 fi
9159 fi
9160
9161 fi;
9162 LIBICONV=
9163 LTLIBICONV=
9164 INCICONV=
9165 rpathdirs=
9166 ltrpathdirs=
9167 names_already_handled=
9168 names_next_round='iconv '
9169 while test -n "$names_next_round"; do
9170 names_this_round="$names_next_round"
9171 names_next_round=
9172 for name in $names_this_round; do
9173 already_handled=
9174 for n in $names_already_handled; do
9175 if test "$n" = "$name"; then
9176 already_handled=yes
9177 break
9178 fi
9179 done
9180 if test -z "$already_handled"; then
9181 names_already_handled="$names_already_handled $name"
9182 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9183 eval value=\"\$HAVE_LIB$uppername\"
9184 if test -n "$value"; then
9185 if test "$value" = yes; then
9186 eval value=\"\$LIB$uppername\"
9187 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9188 eval value=\"\$LTLIB$uppername\"
9189 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9190 else
9191 :
9192 fi
9193 else
9194 found_dir=
9195 found_la=
9196 found_so=
9197 found_a=
9198 if test $use_additional = yes; then
9199 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9200 found_dir="$additional_libdir"
9201 found_so="$additional_libdir/lib$name.$shlibext"
9202 if test -f "$additional_libdir/lib$name.la"; then
9203 found_la="$additional_libdir/lib$name.la"
9204 fi
9205 else
9206 if test -f "$additional_libdir/lib$name.$libext"; then
9207 found_dir="$additional_libdir"
9208 found_a="$additional_libdir/lib$name.$libext"
9209 if test -f "$additional_libdir/lib$name.la"; then
9210 found_la="$additional_libdir/lib$name.la"
9211 fi
9212 fi
9213 fi
9214 fi
9215 if test "X$found_dir" = "X"; then
9216 for x in $LDFLAGS $LTLIBICONV; do
9217
9218 acl_save_prefix="$prefix"
9219 prefix="$acl_final_prefix"
9220 acl_save_exec_prefix="$exec_prefix"
9221 exec_prefix="$acl_final_exec_prefix"
9222 eval x=\"$x\"
9223 exec_prefix="$acl_save_exec_prefix"
9224 prefix="$acl_save_prefix"
9225
9226 case "$x" in
9227 -L*)
9228 dir=`echo "X$x" | sed -e 's/^X-L//'`
9229 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9230 found_dir="$dir"
9231 found_so="$dir/lib$name.$shlibext"
9232 if test -f "$dir/lib$name.la"; then
9233 found_la="$dir/lib$name.la"
9234 fi
9235 else
9236 if test -f "$dir/lib$name.$libext"; then
9237 found_dir="$dir"
9238 found_a="$dir/lib$name.$libext"
9239 if test -f "$dir/lib$name.la"; then
9240 found_la="$dir/lib$name.la"
9241 fi
9242 fi
9243 fi
9244 ;;
9245 esac
9246 if test "X$found_dir" != "X"; then
9247 break
9248 fi
9249 done
9250 fi
9251 if test "X$found_dir" != "X"; then
9252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9253 if test "X$found_so" != "X"; then
9254 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9255 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9256 else
9257 haveit=
9258 for x in $ltrpathdirs; do
9259 if test "X$x" = "X$found_dir"; then
9260 haveit=yes
9261 break
9262 fi
9263 done
9264 if test -z "$haveit"; then
9265 ltrpathdirs="$ltrpathdirs $found_dir"
9266 fi
9267 if test "$hardcode_direct" = yes; then
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9269 else
9270 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9271 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9272 haveit=
9273 for x in $rpathdirs; do
9274 if test "X$x" = "X$found_dir"; then
9275 haveit=yes
9276 break
9277 fi
9278 done
9279 if test -z "$haveit"; then
9280 rpathdirs="$rpathdirs $found_dir"
9281 fi
9282 else
9283 haveit=
9284 for x in $LDFLAGS $LIBICONV; do
9285
9286 acl_save_prefix="$prefix"
9287 prefix="$acl_final_prefix"
9288 acl_save_exec_prefix="$exec_prefix"
9289 exec_prefix="$acl_final_exec_prefix"
9290 eval x=\"$x\"
9291 exec_prefix="$acl_save_exec_prefix"
9292 prefix="$acl_save_prefix"
9293
9294 if test "X$x" = "X-L$found_dir"; then
9295 haveit=yes
9296 break
9297 fi
9298 done
9299 if test -z "$haveit"; then
9300 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9301 fi
9302 if test "$hardcode_minus_L" != no; then
9303 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9304 else
9305 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9306 fi
9307 fi
9308 fi
9309 fi
9310 else
9311 if test "X$found_a" != "X"; then
9312 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9313 else
9314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9315 fi
9316 fi
9317 additional_includedir=
9318 case "$found_dir" in
9319 */lib | */lib/)
9320 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9321 additional_includedir="$basedir/include"
9322 ;;
9323 esac
9324 if test "X$additional_includedir" != "X"; then
9325 if test "X$additional_includedir" != "X/usr/include"; then
9326 haveit=
9327 if test "X$additional_includedir" = "X/usr/local/include"; then
9328 if test -n "$GCC"; then
9329 case $host_os in
9330 linux*) haveit=yes;;
9331 esac
9332 fi
9333 fi
9334 if test -z "$haveit"; then
9335 for x in $CPPFLAGS $INCICONV; do
9336
9337 acl_save_prefix="$prefix"
9338 prefix="$acl_final_prefix"
9339 acl_save_exec_prefix="$exec_prefix"
9340 exec_prefix="$acl_final_exec_prefix"
9341 eval x=\"$x\"
9342 exec_prefix="$acl_save_exec_prefix"
9343 prefix="$acl_save_prefix"
9344
9345 if test "X$x" = "X-I$additional_includedir"; then
9346 haveit=yes
9347 break
9348 fi
9349 done
9350 if test -z "$haveit"; then
9351 if test -d "$additional_includedir"; then
9352 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9353 fi
9354 fi
9355 fi
9356 fi
9357 fi
9358 if test -n "$found_la"; then
9359 save_libdir="$libdir"
9360 case "$found_la" in
9361 */* | *\\*) . "$found_la" ;;
9362 *) . "./$found_la" ;;
9363 esac
9364 libdir="$save_libdir"
9365 for dep in $dependency_libs; do
9366 case "$dep" in
9367 -L*)
9368 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9369 if test "X$additional_libdir" != "X/usr/lib"; then
9370 haveit=
9371 if test "X$additional_libdir" = "X/usr/local/lib"; then
9372 if test -n "$GCC"; then
9373 case $host_os in
9374 linux*) haveit=yes;;
9375 esac
9376 fi
9377 fi
9378 if test -z "$haveit"; then
9379 haveit=
9380 for x in $LDFLAGS $LIBICONV; do
9381
9382 acl_save_prefix="$prefix"
9383 prefix="$acl_final_prefix"
9384 acl_save_exec_prefix="$exec_prefix"
9385 exec_prefix="$acl_final_exec_prefix"
9386 eval x=\"$x\"
9387 exec_prefix="$acl_save_exec_prefix"
9388 prefix="$acl_save_prefix"
9389
9390 if test "X$x" = "X-L$additional_libdir"; then
9391 haveit=yes
9392 break
9393 fi
9394 done
9395 if test -z "$haveit"; then
9396 if test -d "$additional_libdir"; then
9397 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9398 fi
9399 fi
9400 haveit=
9401 for x in $LDFLAGS $LTLIBICONV; do
9402
9403 acl_save_prefix="$prefix"
9404 prefix="$acl_final_prefix"
9405 acl_save_exec_prefix="$exec_prefix"
9406 exec_prefix="$acl_final_exec_prefix"
9407 eval x=\"$x\"
9408 exec_prefix="$acl_save_exec_prefix"
9409 prefix="$acl_save_prefix"
9410
9411 if test "X$x" = "X-L$additional_libdir"; then
9412 haveit=yes
9413 break
9414 fi
9415 done
9416 if test -z "$haveit"; then
9417 if test -d "$additional_libdir"; then
9418 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9419 fi
9420 fi
9421 fi
9422 fi
9423 ;;
9424 -R*)
9425 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9426 if test "$enable_rpath" != no; then
9427 haveit=
9428 for x in $rpathdirs; do
9429 if test "X$x" = "X$dir"; then
9430 haveit=yes
9431 break
9432 fi
9433 done
9434 if test -z "$haveit"; then
9435 rpathdirs="$rpathdirs $dir"
9436 fi
9437 haveit=
9438 for x in $ltrpathdirs; do
9439 if test "X$x" = "X$dir"; then
9440 haveit=yes
9441 break
9442 fi
9443 done
9444 if test -z "$haveit"; then
9445 ltrpathdirs="$ltrpathdirs $dir"
9446 fi
9447 fi
9448 ;;
9449 -l*)
9450 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9451 ;;
9452 *.la)
9453 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9454 ;;
9455 *)
9456 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9457 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9458 ;;
9459 esac
9460 done
9461 fi
9462 else
9463 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9464 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9465 fi
9466 fi
9467 fi
9468 done
9469 done
9470 if test "X$rpathdirs" != "X"; then
9471 if test -n "$hardcode_libdir_separator"; then
9472 alldirs=
9473 for found_dir in $rpathdirs; do
9474 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9475 done
9476 acl_save_libdir="$libdir"
9477 libdir="$alldirs"
9478 eval flag=\"$hardcode_libdir_flag_spec\"
9479 libdir="$acl_save_libdir"
9480 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9481 else
9482 for found_dir in $rpathdirs; do
9483 acl_save_libdir="$libdir"
9484 libdir="$found_dir"
9485 eval flag=\"$hardcode_libdir_flag_spec\"
9486 libdir="$acl_save_libdir"
9487 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9488 done
9489 fi
9490 fi
9491 if test "X$ltrpathdirs" != "X"; then
9492 for found_dir in $ltrpathdirs; do
9493 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9494 done
9495 fi
9496
9497
9498
9499
9500
9501
9502
9503 am_save_CPPFLAGS="$CPPFLAGS"
9504
9505 for element in $INCICONV; do
9506 haveit=
9507 for x in $CPPFLAGS; do
9508
9509 acl_save_prefix="$prefix"
9510 prefix="$acl_final_prefix"
9511 acl_save_exec_prefix="$exec_prefix"
9512 exec_prefix="$acl_final_exec_prefix"
9513 eval x=\"$x\"
9514 exec_prefix="$acl_save_exec_prefix"
9515 prefix="$acl_save_prefix"
9516
9517 if test "X$x" = "X$element"; then
9518 haveit=yes
9519 break
9520 fi
9521 done
9522 if test -z "$haveit"; then
9523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9524 fi
9525 done
9526
9527
9528 echo "$as_me:$LINENO: checking for iconv" >&5
9529 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9530 if test "${am_cv_func_iconv+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533
9534 am_cv_func_iconv="no, consider installing GNU libiconv"
9535 am_cv_lib_iconv=no
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 #include <stdlib.h>
9543 #include <iconv.h>
9544 int
9545 main ()
9546 {
9547 iconv_t cd = iconv_open("","");
9548 iconv(cd,NULL,NULL,NULL,NULL);
9549 iconv_close(cd);
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 am_cv_func_iconv=yes
9577 else
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 fi
9582 rm -f conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 if test "$am_cv_func_iconv" != yes; then
9585 am_save_LIBS="$LIBS"
9586 LIBS="$LIBS $LIBICONV"
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 #include <stdlib.h>
9594 #include <iconv.h>
9595 int
9596 main ()
9597 {
9598 iconv_t cd = iconv_open("","");
9599 iconv(cd,NULL,NULL,NULL,NULL);
9600 iconv_close(cd);
9601 ;
9602 return 0;
9603 }
9604 _ACEOF
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607 (eval $ac_link) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -z "$ac_c_werror_flag"
9615 || test ! -s conftest.err'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 am_cv_lib_iconv=yes
9628 am_cv_func_iconv=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 fi
9634 rm -f conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 LIBS="$am_save_LIBS"
9637 fi
9638
9639 fi
9640 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9641 echo "${ECHO_T}$am_cv_func_iconv" >&6
9642 if test "$am_cv_func_iconv" = yes; then
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define HAVE_ICONV 1
9646 _ACEOF
9647
9648 fi
9649 if test "$am_cv_lib_iconv" = yes; then
9650 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9651 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9652 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9653 echo "${ECHO_T}$LIBICONV" >&6
9654 else
9655 CPPFLAGS="$am_save_CPPFLAGS"
9656 LIBICONV=
9657 LTLIBICONV=
9658 fi
9659
9660
9661
9662 if test "$am_cv_func_iconv" = yes; then
9663 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9664 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9665 if test "${am_cv_proto_iconv+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h. */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675
9676 #include <stdlib.h>
9677 #include <iconv.h>
9678 extern
9679 #ifdef __cplusplus
9680 "C"
9681 #endif
9682 #if defined(__STDC__) || defined(__cplusplus)
9683 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9684 #else
9685 size_t iconv();
9686 #endif
9687
9688 int
9689 main ()
9690 {
9691
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag"
9706 || test ! -s conftest.err'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest.$ac_objext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 am_cv_proto_iconv_arg1=""
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 am_cv_proto_iconv_arg1="const"
9724 fi
9725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9726 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);"
9727 fi
9728
9729 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9730 echo "$as_me:$LINENO: result: ${ac_t:-
9731 }$am_cv_proto_iconv" >&5
9732 echo "${ECHO_T}${ac_t:-
9733 }$am_cv_proto_iconv" >&6
9734
9735 cat >>confdefs.h <<_ACEOF
9736 #define ICONV_CONST $am_cv_proto_iconv_arg1
9737 _ACEOF
9738
9739 fi
9740
9741
9742 if test "x${GCC}" = xyes; then
9743
9744 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9745
9746
9747 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9748
9749
9750 ERROR_CFLAGS=
9751 if test "x${ENABLE_WERROR}" = xyes; then
9752 ERROR_CFLAGS='-Werror'
9753 fi
9754
9755 fi
9756
9757 if test "x${COMPILE_XMLJ}" = xyes; then
9758
9759 succeeded=no
9760
9761 if test -z "$PKG_CONFIG"; then
9762 # Extract the first word of "pkg-config", so it can be a program name with args.
9763 set dummy pkg-config; ac_word=$2
9764 echo "$as_me:$LINENO: checking for $ac_word" >&5
9765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 case $PKG_CONFIG in
9770 [\\/]* | ?:[\\/]*)
9771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9772 ;;
9773 *)
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785 done
9786 done
9787
9788 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9789 ;;
9790 esac
9791 fi
9792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9793
9794 if test -n "$PKG_CONFIG"; then
9795 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9796 echo "${ECHO_T}$PKG_CONFIG" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799 echo "${ECHO_T}no" >&6
9800 fi
9801
9802 fi
9803
9804 if test "$PKG_CONFIG" = "no" ; then
9805 echo "*** The pkg-config script could not be found. Make sure it is"
9806 echo "*** in your path, or set the PKG_CONFIG environment variable"
9807 echo "*** to the full path to pkg-config."
9808 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9809 else
9810 PKG_CONFIG_MIN_VERSION=0.9.0
9811 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9812 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9813 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9814
9815 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9816 echo "$as_me:$LINENO: result: yes" >&5
9817 echo "${ECHO_T}yes" >&6
9818 succeeded=yes
9819
9820 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9821 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9822 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9823 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9824 echo "${ECHO_T}$XML_CFLAGS" >&6
9825
9826 echo "$as_me:$LINENO: checking XML_LIBS" >&5
9827 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9828 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9829 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9830 echo "${ECHO_T}$XML_LIBS" >&6
9831 else
9832 XML_CFLAGS=""
9833 XML_LIBS=""
9834 ## If we have a custom action on failure, don't print errors, but
9835 ## do set a variable so people can do so.
9836 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9837 echo $XML_PKG_ERRORS
9838 fi
9839
9840
9841
9842 else
9843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9845 fi
9846 fi
9847
9848 if test $succeeded = yes; then
9849 :
9850 else
9851 { { 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
9852 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;}
9853 { (exit 1); exit 1; }; }
9854 fi
9855
9856
9857 succeeded=no
9858
9859 if test -z "$PKG_CONFIG"; then
9860 # Extract the first word of "pkg-config", so it can be a program name with args.
9861 set dummy pkg-config; ac_word=$2
9862 echo "$as_me:$LINENO: checking for $ac_word" >&5
9863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 case $PKG_CONFIG in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9870 ;;
9871 *)
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9874 do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883 done
9884 done
9885
9886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9887 ;;
9888 esac
9889 fi
9890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9891
9892 if test -n "$PKG_CONFIG"; then
9893 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9894 echo "${ECHO_T}$PKG_CONFIG" >&6
9895 else
9896 echo "$as_me:$LINENO: result: no" >&5
9897 echo "${ECHO_T}no" >&6
9898 fi
9899
9900 fi
9901
9902 if test "$PKG_CONFIG" = "no" ; then
9903 echo "*** The pkg-config script could not be found. Make sure it is"
9904 echo "*** in your path, or set the PKG_CONFIG environment variable"
9905 echo "*** to the full path to pkg-config."
9906 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9907 else
9908 PKG_CONFIG_MIN_VERSION=0.9.0
9909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9910 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9911 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9912
9913 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915 echo "${ECHO_T}yes" >&6
9916 succeeded=yes
9917
9918 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9919 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9920 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9921 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9922 echo "${ECHO_T}$XSLT_CFLAGS" >&6
9923
9924 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9925 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9926 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9927 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9928 echo "${ECHO_T}$XSLT_LIBS" >&6
9929 else
9930 XSLT_CFLAGS=""
9931 XSLT_LIBS=""
9932 ## If we have a custom action on failure, don't print errors, but
9933 ## do set a variable so people can do so.
9934 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9935 echo $XSLT_PKG_ERRORS
9936 fi
9937
9938
9939
9940 else
9941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9943 fi
9944 fi
9945
9946 if test $succeeded = yes; then
9947 :
9948 else
9949 { { 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
9950 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;}
9951 { (exit 1); exit 1; }; }
9952 fi
9953
9954
9955
9956
9957
9958 fi
9959
9960 if test "x${COMPILE_GTK_PEER}" = xyes; then
9961 echo "$as_me:$LINENO: checking for X" >&5
9962 echo $ECHO_N "checking for X... $ECHO_C" >&6
9963
9964
9965 # Check whether --with-x or --without-x was given.
9966 if test "${with_x+set}" = set; then
9967 withval="$with_x"
9968
9969 fi;
9970 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9971 if test "x$with_x" = xno; then
9972 # The user explicitly disabled X.
9973 have_x=disabled
9974 else
9975 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9976 # Both variables are already set.
9977 have_x=yes
9978 else
9979 if test "${ac_cv_have_x+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 # One or both of the vars are not set, and there is no cached value.
9983 ac_x_includes=no ac_x_libraries=no
9984 rm -fr conftest.dir
9985 if mkdir conftest.dir; then
9986 cd conftest.dir
9987 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9988 cat >Imakefile <<'_ACEOF'
9989 acfindx:
9990 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9991 _ACEOF
9992 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9993 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9994 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9995 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9996 for ac_extension in a so sl; do
9997 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9998 test -f $ac_im_libdir/libX11.$ac_extension; then
9999 ac_im_usrlibdir=$ac_im_libdir; break
10000 fi
10001 done
10002 # Screen out bogus values from the imake configuration. They are
10003 # bogus both because they are the default anyway, and because
10004 # using them would break gcc on systems where it needs fixed includes.
10005 case $ac_im_incroot in
10006 /usr/include) ;;
10007 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10008 esac
10009 case $ac_im_usrlibdir in
10010 /usr/lib | /lib) ;;
10011 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10012 esac
10013 fi
10014 cd ..
10015 rm -fr conftest.dir
10016 fi
10017
10018 # Standard set of common directories for X headers.
10019 # Check X11 before X11Rn because it is often a symlink to the current release.
10020 ac_x_header_dirs='
10021 /usr/X11/include
10022 /usr/X11R6/include
10023 /usr/X11R5/include
10024 /usr/X11R4/include
10025
10026 /usr/include/X11
10027 /usr/include/X11R6
10028 /usr/include/X11R5
10029 /usr/include/X11R4
10030
10031 /usr/local/X11/include
10032 /usr/local/X11R6/include
10033 /usr/local/X11R5/include
10034 /usr/local/X11R4/include
10035
10036 /usr/local/include/X11
10037 /usr/local/include/X11R6
10038 /usr/local/include/X11R5
10039 /usr/local/include/X11R4
10040
10041 /usr/X386/include
10042 /usr/x386/include
10043 /usr/XFree86/include/X11
10044
10045 /usr/include
10046 /usr/local/include
10047 /usr/unsupported/include
10048 /usr/athena/include
10049 /usr/local/x11r5/include
10050 /usr/lpp/Xamples/include
10051
10052 /usr/openwin/include
10053 /usr/openwin/share/include'
10054
10055 if test "$ac_x_includes" = no; then
10056 # Guess where to find include files, by looking for Xlib.h.
10057 # First, try using that file with no special directory specified.
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 #include <X11/Xlib.h>
10065 _ACEOF
10066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } >/dev/null; then
10074 if test -s conftest.err; then
10075 ac_cpp_err=$ac_c_preproc_warn_flag
10076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10077 else
10078 ac_cpp_err=
10079 fi
10080 else
10081 ac_cpp_err=yes
10082 fi
10083 if test -z "$ac_cpp_err"; then
10084 # We can compile using X headers with no special include directory.
10085 ac_x_includes=
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 for ac_dir in $ac_x_header_dirs; do
10091 if test -r "$ac_dir/X11/Xlib.h"; then
10092 ac_x_includes=$ac_dir
10093 break
10094 fi
10095 done
10096 fi
10097 rm -f conftest.err conftest.$ac_ext
10098 fi # $ac_x_includes = no
10099
10100 if test "$ac_x_libraries" = no; then
10101 # Check for the libraries.
10102 # See if we find them without any special options.
10103 # Don't add to $LIBS permanently.
10104 ac_save_LIBS=$LIBS
10105 LIBS="-lXt $LIBS"
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 #include <X11/Xlib.h>
10113 int
10114 main ()
10115 {
10116 XrmInitialize ()
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 LIBS=$ac_save_LIBS
10144 # We can link X programs with no special library path.
10145 ac_x_libraries=
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 LIBS=$ac_save_LIBS
10151 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10152 do
10153 # Don't even attempt the hair of trying to link an X program!
10154 for ac_extension in a so sl; do
10155 if test -r $ac_dir/libXt.$ac_extension; then
10156 ac_x_libraries=$ac_dir
10157 break 2
10158 fi
10159 done
10160 done
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 fi # $ac_x_libraries = no
10165
10166 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10167 # Didn't find X anywhere. Cache the known absence of X.
10168 ac_cv_have_x="have_x=no"
10169 else
10170 # Record where we found X for the cache.
10171 ac_cv_have_x="have_x=yes \
10172 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10173 fi
10174 fi
10175
10176 fi
10177 eval "$ac_cv_have_x"
10178 fi # $with_x != no
10179
10180 if test "$have_x" != yes; then
10181 echo "$as_me:$LINENO: result: $have_x" >&5
10182 echo "${ECHO_T}$have_x" >&6
10183 no_x=yes
10184 else
10185 # If each of the values was on the command line, it overrides each guess.
10186 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10187 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10188 # Update the cache value to reflect the command line values.
10189 ac_cv_have_x="have_x=yes \
10190 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10191 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10192 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10193 fi
10194
10195 if test "$no_x" = yes; then
10196 # Not all programs may use this symbol, but it does not hurt to define it.
10197
10198 cat >>confdefs.h <<\_ACEOF
10199 #define X_DISPLAY_MISSING 1
10200 _ACEOF
10201
10202 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10203 else
10204 if test -n "$x_includes"; then
10205 X_CFLAGS="$X_CFLAGS -I$x_includes"
10206 fi
10207
10208 # It would also be nice to do this for all -L options, not just this one.
10209 if test -n "$x_libraries"; then
10210 X_LIBS="$X_LIBS -L$x_libraries"
10211 # For Solaris; some versions of Sun CC require a space after -R and
10212 # others require no space. Words are not sufficient . . . .
10213 case `(uname -sr) 2>/dev/null` in
10214 "SunOS 5"*)
10215 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10216 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10217 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224
10225 int
10226 main ()
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_R_nospace=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_R_nospace=no
10261 fi
10262 rm -f conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 if test $ac_R_nospace = yes; then
10265 echo "$as_me:$LINENO: result: no" >&5
10266 echo "${ECHO_T}no" >&6
10267 X_LIBS="$X_LIBS -R$x_libraries"
10268 else
10269 LIBS="$ac_xsave_LIBS -R $x_libraries"
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276
10277 int
10278 main ()
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_R_space=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_R_space=no
10313 fi
10314 rm -f conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 if test $ac_R_space = yes; then
10317 echo "$as_me:$LINENO: result: yes" >&5
10318 echo "${ECHO_T}yes" >&6
10319 X_LIBS="$X_LIBS -R $x_libraries"
10320 else
10321 echo "$as_me:$LINENO: result: neither works" >&5
10322 echo "${ECHO_T}neither works" >&6
10323 fi
10324 fi
10325 LIBS=$ac_xsave_LIBS
10326 esac
10327 fi
10328
10329 # Check for system-dependent libraries X programs must link with.
10330 # Do this before checking for the system-independent R6 libraries
10331 # (-lICE), since we may need -lsocket or whatever for X linking.
10332
10333 if test "$ISC" = yes; then
10334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10335 else
10336 # Martyn Johnson says this is needed for Ultrix, if the X
10337 # libraries were built with DECnet support. And Karl Berry says
10338 # the Alpha needs dnet_stub (dnet does not exist).
10339 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346
10347 /* Override any gcc2 internal prototype to avoid an error. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char XOpenDisplay ();
10354 int
10355 main ()
10356 {
10357 XOpenDisplay ();
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_c_werror_flag"
10372 || test ! -s conftest.err'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 :
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10390 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10391 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-ldnet $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char dnet_ntoa ();
10410 int
10411 main ()
10412 {
10413 dnet_ntoa ();
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag"
10428 || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_lib_dnet_dnet_ntoa=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445 ac_cv_lib_dnet_dnet_ntoa=no
10446 fi
10447 rm -f conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_lib_save_LIBS
10450 fi
10451 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10452 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10453 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10454 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10455 fi
10456
10457 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10458 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10459 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10460 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-ldnet_stub $LIBS"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471
10472 /* Override any gcc2 internal prototype to avoid an error. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char dnet_ntoa ();
10479 int
10480 main ()
10481 {
10482 dnet_ntoa ();
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_c_werror_flag"
10497 || test ! -s conftest.err'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; } &&
10503 { ac_try='test -s conftest$ac_exeext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514 ac_cv_lib_dnet_stub_dnet_ntoa=no
10515 fi
10516 rm -f conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10519 fi
10520 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10521 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10522 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10523 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10524 fi
10525
10526 fi
10527 fi
10528 rm -f conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS="$ac_xsave_LIBS"
10531
10532 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10533 # to get the SysV transport functions.
10534 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10535 # needs -lnsl.
10536 # The nsl library prevents programs from opening the X display
10537 # on Irix 5.2, according to T.E. Dickey.
10538 # The functions gethostbyname, getservbyname, and inet_addr are
10539 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10540 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10541 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10542 if test "${ac_cv_func_gethostbyname+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10553 #define gethostbyname innocuous_gethostbyname
10554
10555 /* System header to define __stub macros and hopefully few prototypes,
10556 which can conflict with char gethostbyname (); below.
10557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10558 <limits.h> exists even on freestanding compilers. */
10559
10560 #ifdef __STDC__
10561 # include <limits.h>
10562 #else
10563 # include <assert.h>
10564 #endif
10565
10566 #undef gethostbyname
10567
10568 /* Override any gcc2 internal prototype to avoid an error. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 {
10572 #endif
10573 /* We use char because int might match the return type of a gcc2
10574 builtin and then its argument prototype would still apply. */
10575 char gethostbyname ();
10576 /* The GNU C library defines this for functions which it implements
10577 to always fail with ENOSYS. Some functions are actually named
10578 something starting with __ and the normal name is an alias. */
10579 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10580 choke me
10581 #else
10582 char (*f) () = gethostbyname;
10583 #endif
10584 #ifdef __cplusplus
10585 }
10586 #endif
10587
10588 int
10589 main ()
10590 {
10591 return f != gethostbyname;
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_func_gethostbyname=yes
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_cv_func_gethostbyname=no
10624 fi
10625 rm -f conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10629 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10630
10631 if test $ac_cv_func_gethostbyname = no; then
10632 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10633 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10634 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-lnsl $LIBS"
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645
10646 /* Override any gcc2 internal prototype to avoid an error. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 /* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10652 char gethostbyname ();
10653 int
10654 main ()
10655 {
10656 gethostbyname ();
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -z "$ac_c_werror_flag"
10671 || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_lib_nsl_gethostbyname=yes
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 ac_cv_lib_nsl_gethostbyname=no
10689 fi
10690 rm -f conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS=$ac_check_lib_save_LIBS
10693 fi
10694 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10695 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10696 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10697 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10698 fi
10699
10700 if test $ac_cv_lib_nsl_gethostbyname = no; then
10701 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10702 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10703 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lbsd $LIBS"
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714
10715 /* Override any gcc2 internal prototype to avoid an error. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10721 char gethostbyname ();
10722 int
10723 main ()
10724 {
10725 gethostbyname ();
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>conftest.er1
10733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -z "$ac_c_werror_flag"
10740 || test ! -s conftest.err'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; } &&
10746 { ac_try='test -s conftest$ac_exeext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_cv_lib_bsd_gethostbyname=yes
10753 else
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ac_cv_lib_bsd_gethostbyname=no
10758 fi
10759 rm -f conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10764 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10765 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10766 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10767 fi
10768
10769 fi
10770 fi
10771
10772 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10773 # socket/setsockopt and other routines are undefined under SCO ODT
10774 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10775 # on later versions), says Simon Leinen: it contains gethostby*
10776 # variants that don't use the name server (or something). -lsocket
10777 # must be given before -lnsl if both are needed. We assume that
10778 # if connect needs -lnsl, so does gethostbyname.
10779 echo "$as_me:$LINENO: checking for connect" >&5
10780 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10781 if test "${ac_cv_func_connect+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10792 #define connect innocuous_connect
10793
10794 /* System header to define __stub macros and hopefully few prototypes,
10795 which can conflict with char connect (); below.
10796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10797 <limits.h> exists even on freestanding compilers. */
10798
10799 #ifdef __STDC__
10800 # include <limits.h>
10801 #else
10802 # include <assert.h>
10803 #endif
10804
10805 #undef connect
10806
10807 /* Override any gcc2 internal prototype to avoid an error. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 {
10811 #endif
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10814 char connect ();
10815 /* The GNU C library defines this for functions which it implements
10816 to always fail with ENOSYS. Some functions are actually named
10817 something starting with __ and the normal name is an alias. */
10818 #if defined (__stub_connect) || defined (__stub___connect)
10819 choke me
10820 #else
10821 char (*f) () = connect;
10822 #endif
10823 #ifdef __cplusplus
10824 }
10825 #endif
10826
10827 int
10828 main ()
10829 {
10830 return f != connect;
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_connect=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_func_connect=no
10863 fi
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866 fi
10867 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10868 echo "${ECHO_T}$ac_cv_func_connect" >&6
10869
10870 if test $ac_cv_func_connect = no; then
10871 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10872 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10873 if test "${ac_cv_lib_socket_connect+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884
10885 /* Override any gcc2 internal prototype to avoid an error. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char connect ();
10892 int
10893 main ()
10894 {
10895 connect ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_socket_connect=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_lib_socket_connect=no
10928 fi
10929 rm -f conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10934 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10935 if test $ac_cv_lib_socket_connect = yes; then
10936 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10937 fi
10938
10939 fi
10940
10941 # Guillermo Gomez says -lposix is necessary on A/UX.
10942 echo "$as_me:$LINENO: checking for remove" >&5
10943 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10944 if test "${ac_cv_func_remove+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955 #define remove innocuous_remove
10956
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char remove (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10961
10962 #ifdef __STDC__
10963 # include <limits.h>
10964 #else
10965 # include <assert.h>
10966 #endif
10967
10968 #undef remove
10969
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 {
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977 char remove ();
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined (__stub_remove) || defined (__stub___remove)
10982 choke me
10983 #else
10984 char (*f) () = remove;
10985 #endif
10986 #ifdef __cplusplus
10987 }
10988 #endif
10989
10990 int
10991 main ()
10992 {
10993 return f != remove;
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func_remove=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_func_remove=no
11026 fi
11027 rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 fi
11030 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
11031 echo "${ECHO_T}$ac_cv_func_remove" >&6
11032
11033 if test $ac_cv_func_remove = no; then
11034 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
11035 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
11036 if test "${ac_cv_lib_posix_remove+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-lposix $LIBS"
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h. */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047
11048 /* Override any gcc2 internal prototype to avoid an error. */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11054 char remove ();
11055 int
11056 main ()
11057 {
11058 remove ();
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_lib_posix_remove=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_cv_lib_posix_remove=no
11091 fi
11092 rm -f conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11097 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11098 if test $ac_cv_lib_posix_remove = yes; then
11099 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11100 fi
11101
11102 fi
11103
11104 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11105 echo "$as_me:$LINENO: checking for shmat" >&5
11106 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11107 if test "${ac_cv_func_shmat+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define shmat innocuous_shmat
11119
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char shmat (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11124
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11130
11131 #undef shmat
11132
11133 /* Override any gcc2 internal prototype to avoid an error. */
11134 #ifdef __cplusplus
11135 extern "C"
11136 {
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140 char shmat ();
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_shmat) || defined (__stub___shmat)
11145 choke me
11146 #else
11147 char (*f) () = shmat;
11148 #endif
11149 #ifdef __cplusplus
11150 }
11151 #endif
11152
11153 int
11154 main ()
11155 {
11156 return f != shmat;
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag"
11171 || test ! -s conftest.err'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_func_shmat=yes
11184 else
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_cv_func_shmat=no
11189 fi
11190 rm -f conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11194 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11195
11196 if test $ac_cv_func_shmat = no; then
11197 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11198 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11199 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 ac_check_lib_save_LIBS=$LIBS
11203 LIBS="-lipc $LIBS"
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210
11211 /* Override any gcc2 internal prototype to avoid an error. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char shmat ();
11218 int
11219 main ()
11220 {
11221 shmat ();
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext conftest$ac_exeext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228 (eval $ac_link) 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_lib_ipc_shmat=yes
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_cv_lib_ipc_shmat=no
11254 fi
11255 rm -f conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11258 fi
11259 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11260 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11261 if test $ac_cv_lib_ipc_shmat = yes; then
11262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11263 fi
11264
11265 fi
11266 fi
11267
11268 # Check for libraries that X11R6 Xt/Xaw programs need.
11269 ac_save_LDFLAGS=$LDFLAGS
11270 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11271 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11272 # check for ICE first), but we must link in the order -lSM -lICE or
11273 # we get undefined symbols. So assume we have SM if we have ICE.
11274 # These have to be linked with before -lX11, unlike the other
11275 # libraries we check for below, so use a different variable.
11276 # John Interrante, Karl Berry
11277 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11278 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11279 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char IceConnectionNumber ();
11298 int
11299 main ()
11300 {
11301 IceConnectionNumber ();
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_ICE_IceConnectionNumber=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_cv_lib_ICE_IceConnectionNumber=no
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11340 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11341 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11342 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11343 fi
11344
11345 LDFLAGS=$ac_save_LDFLAGS
11346
11347 fi
11348
11349 if test "$no_x" = yes; then
11350 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11351 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11352 { (exit 1); exit 1; }; }
11353 fi
11354 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11355 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11356 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 ac_check_lib_save_LIBS=$LIBS
11360 LIBS="-lXtst ${X_LIBS} $LIBS"
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367
11368 /* Override any gcc2 internal prototype to avoid an error. */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11374 char XTestQueryExtension ();
11375 int
11376 main ()
11377 {
11378 XTestQueryExtension ();
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag"
11393 || test ! -s conftest.err'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_cv_lib_Xtst_XTestQueryExtension=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_cv_lib_Xtst_XTestQueryExtension=no
11411 fi
11412 rm -f conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11417 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11418 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11419 XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
11420 else
11421 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11422 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11423 { (exit 1); exit 1; }; }
11424 fi
11425
11426
11427
11428 succeeded=no
11429
11430 if test -z "$PKG_CONFIG"; then
11431 # Extract the first word of "pkg-config", so it can be a program name with args.
11432 set dummy pkg-config; ac_word=$2
11433 echo "$as_me:$LINENO: checking for $ac_word" >&5
11434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 case $PKG_CONFIG in
11439 [\\/]* | ?:[\\/]*)
11440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11441 ;;
11442 *)
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454 done
11455 done
11456
11457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11458 ;;
11459 esac
11460 fi
11461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11462
11463 if test -n "$PKG_CONFIG"; then
11464 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11465 echo "${ECHO_T}$PKG_CONFIG" >&6
11466 else
11467 echo "$as_me:$LINENO: result: no" >&5
11468 echo "${ECHO_T}no" >&6
11469 fi
11470
11471 fi
11472
11473 if test "$PKG_CONFIG" = "no" ; then
11474 echo "*** The pkg-config script could not be found. Make sure it is"
11475 echo "*** in your path, or set the PKG_CONFIG environment variable"
11476 echo "*** to the full path to pkg-config."
11477 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11478 else
11479 PKG_CONFIG_MIN_VERSION=0.9.0
11480 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11481 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11482 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11483
11484 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11485 echo "$as_me:$LINENO: result: yes" >&5
11486 echo "${ECHO_T}yes" >&6
11487 succeeded=yes
11488
11489 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11490 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11491 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11492 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11493 echo "${ECHO_T}$GTK_CFLAGS" >&6
11494
11495 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11496 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11497 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11498 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11499 echo "${ECHO_T}$GTK_LIBS" >&6
11500 else
11501 GTK_CFLAGS=""
11502 GTK_LIBS=""
11503 ## If we have a custom action on failure, don't print errors, but
11504 ## do set a variable so people can do so.
11505 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11506 echo $GTK_PKG_ERRORS
11507 fi
11508
11509
11510
11511 else
11512 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11513 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11514 fi
11515 fi
11516
11517 if test $succeeded = yes; then
11518 :
11519 else
11520 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.8 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
11521 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.8 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;}
11522 { (exit 1); exit 1; }; }
11523 fi
11524
11525
11526 succeeded=no
11527
11528 if test -z "$PKG_CONFIG"; then
11529 # Extract the first word of "pkg-config", so it can be a program name with args.
11530 set dummy pkg-config; ac_word=$2
11531 echo "$as_me:$LINENO: checking for $ac_word" >&5
11532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11533 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 case $PKG_CONFIG in
11537 [\\/]* | ?:[\\/]*)
11538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11539 ;;
11540 *)
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11551 fi
11552 done
11553 done
11554
11555 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11556 ;;
11557 esac
11558 fi
11559 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11560
11561 if test -n "$PKG_CONFIG"; then
11562 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11563 echo "${ECHO_T}$PKG_CONFIG" >&6
11564 else
11565 echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11567 fi
11568
11569 fi
11570
11571 if test "$PKG_CONFIG" = "no" ; then
11572 echo "*** The pkg-config script could not be found. Make sure it is"
11573 echo "*** in your path, or set the PKG_CONFIG environment variable"
11574 echo "*** to the full path to pkg-config."
11575 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11576 else
11577 PKG_CONFIG_MIN_VERSION=0.9.0
11578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11579 echo "$as_me:$LINENO: checking for freetype2" >&5
11580 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
11581
11582 if $PKG_CONFIG --exists "freetype2" ; then
11583 echo "$as_me:$LINENO: result: yes" >&5
11584 echo "${ECHO_T}yes" >&6
11585 succeeded=yes
11586
11587 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11588 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
11589 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
11590 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11591 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
11592
11593 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11594 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
11595 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
11596 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11597 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
11598 else
11599 FREETYPE2_CFLAGS=""
11600 FREETYPE2_LIBS=""
11601 ## If we have a custom action on failure, don't print errors, but
11602 ## do set a variable so people can do so.
11603 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11604 echo $FREETYPE2_PKG_ERRORS
11605 fi
11606
11607
11608
11609 else
11610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11612 fi
11613 fi
11614
11615 if test $succeeded = yes; then
11616 :
11617 else
11618 { { echo "$as_me:$LINENO: error: Library requirements (freetype2) 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
11619 echo "$as_me: error: Library requirements (freetype2) 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;}
11620 { (exit 1); exit 1; }; }
11621 fi
11622
11623
11624 succeeded=no
11625
11626 if test -z "$PKG_CONFIG"; then
11627 # Extract the first word of "pkg-config", so it can be a program name with args.
11628 set dummy pkg-config; ac_word=$2
11629 echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11631 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 case $PKG_CONFIG in
11635 [\\/]* | ?:[\\/]*)
11636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11637 ;;
11638 *)
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650 done
11651 done
11652
11653 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11654 ;;
11655 esac
11656 fi
11657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11658
11659 if test -n "$PKG_CONFIG"; then
11660 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11661 echo "${ECHO_T}$PKG_CONFIG" >&6
11662 else
11663 echo "$as_me:$LINENO: result: no" >&5
11664 echo "${ECHO_T}no" >&6
11665 fi
11666
11667 fi
11668
11669 if test "$PKG_CONFIG" = "no" ; then
11670 echo "*** The pkg-config script could not be found. Make sure it is"
11671 echo "*** in your path, or set the PKG_CONFIG environment variable"
11672 echo "*** to the full path to pkg-config."
11673 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11674 else
11675 PKG_CONFIG_MIN_VERSION=0.9.0
11676 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11677 echo "$as_me:$LINENO: checking for pangoft2" >&5
11678 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11679
11680 if $PKG_CONFIG --exists "pangoft2" ; then
11681 echo "$as_me:$LINENO: result: yes" >&5
11682 echo "${ECHO_T}yes" >&6
11683 succeeded=yes
11684
11685 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11686 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11687 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11688 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11689 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11690
11691 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11692 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11693 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11694 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11695 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11696 else
11697 PANGOFT2_CFLAGS=""
11698 PANGOFT2_LIBS=""
11699 ## If we have a custom action on failure, don't print errors, but
11700 ## do set a variable so people can do so.
11701 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11702 echo $PANGOFT2_PKG_ERRORS
11703 fi
11704
11705
11706
11707 else
11708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11710 fi
11711 fi
11712
11713 if test $succeeded = yes; then
11714 :
11715 else
11716 { { 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
11717 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;}
11718 { (exit 1); exit 1; }; }
11719 fi
11720
11721 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
11722 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
11723 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726 ac_check_lib_save_LIBS=$LIBS
11727 LIBS="-lXrender ${X_LIBS} $LIBS"
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734
11735 /* Override any gcc2 internal prototype to avoid an error. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741 char XRenderQueryExtension ();
11742 int
11743 main ()
11744 {
11745 XRenderQueryExtension ();
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest$ac_exeext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777 ac_cv_lib_Xrender_XRenderQueryExtension=no
11778 fi
11779 rm -f conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11782 fi
11783 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11784 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
11785 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
11786
11787 cat >>confdefs.h <<\_ACEOF
11788 #define HAVE_XRENDER 1
11789 _ACEOF
11790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
11791 else
11792 true
11793 fi
11794
11795
11796 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
11797 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
11798 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lXrandr ${X_LIBS} $LIBS"
11803 cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h. */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809
11810 /* Override any gcc2 internal prototype to avoid an error. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 /* We use char because int might match the return type of a gcc2
11815 builtin and then its argument prototype would still apply. */
11816 char XRRQueryExtension ();
11817 int
11818 main ()
11819 {
11820 XRRQueryExtension ();
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11827 (eval $ac_link) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest$ac_exeext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
11847 ac_cv_lib_Xrandr_XRRQueryExtension=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_cv_lib_Xrandr_XRRQueryExtension=no
11853 fi
11854 rm -f conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11857 fi
11858 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
11859 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
11860 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
11861
11862 cat >>confdefs.h <<\_ACEOF
11863 #define HAVE_XRANDR 1
11864 _ACEOF
11865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
11866 else
11867 true
11868 fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878 fi
11879
11880 if test "x${COMPILE_GCONF_PEER}" = xyes; then
11881
11882 succeeded=no
11883
11884 if test -z "$PKG_CONFIG"; then
11885 # Extract the first word of "pkg-config", so it can be a program name with args.
11886 set dummy pkg-config; ac_word=$2
11887 echo "$as_me:$LINENO: checking for $ac_word" >&5
11888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11889 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 case $PKG_CONFIG in
11893 [\\/]* | ?:[\\/]*)
11894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11895 ;;
11896 *)
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908 done
11909 done
11910
11911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11912 ;;
11913 esac
11914 fi
11915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11916
11917 if test -n "$PKG_CONFIG"; then
11918 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11919 echo "${ECHO_T}$PKG_CONFIG" >&6
11920 else
11921 echo "$as_me:$LINENO: result: no" >&5
11922 echo "${ECHO_T}no" >&6
11923 fi
11924
11925 fi
11926
11927 if test "$PKG_CONFIG" = "no" ; then
11928 echo "*** The pkg-config script could not be found. Make sure it is"
11929 echo "*** in your path, or set the PKG_CONFIG environment variable"
11930 echo "*** to the full path to pkg-config."
11931 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11932 else
11933 PKG_CONFIG_MIN_VERSION=0.9.0
11934 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11935 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
11936 echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
11937
11938 if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
11939 echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6
11941 succeeded=yes
11942
11943 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
11944 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
11945 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
11946 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
11947 echo "${ECHO_T}$GCONF_CFLAGS" >&6
11948
11949 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
11950 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
11951 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
11952 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
11953 echo "${ECHO_T}$GCONF_LIBS" >&6
11954 else
11955 GCONF_CFLAGS=""
11956 GCONF_LIBS=""
11957 ## If we have a custom action on failure, don't print errors, but
11958 ## do set a variable so people can do so.
11959 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
11960 echo $GCONF_PKG_ERRORS
11961 fi
11962
11963
11964
11965 else
11966 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11967 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11968 fi
11969 fi
11970
11971 if test $succeeded = yes; then
11972 :
11973 else
11974 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.11.2) 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
11975 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.11.2) 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;}
11976 { (exit 1); exit 1; }; }
11977 fi
11978
11979
11980
11981
11982 succeeded=no
11983
11984 if test -z "$PKG_CONFIG"; then
11985 # Extract the first word of "pkg-config", so it can be a program name with args.
11986 set dummy pkg-config; ac_word=$2
11987 echo "$as_me:$LINENO: checking for $ac_word" >&5
11988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992 case $PKG_CONFIG in
11993 [\\/]* | ?:[\\/]*)
11994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11995 ;;
11996 *)
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
11999 do
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12007 fi
12008 done
12009 done
12010
12011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12012 ;;
12013 esac
12014 fi
12015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12016
12017 if test -n "$PKG_CONFIG"; then
12018 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12019 echo "${ECHO_T}$PKG_CONFIG" >&6
12020 else
12021 echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6
12023 fi
12024
12025 fi
12026
12027 if test "$PKG_CONFIG" = "no" ; then
12028 echo "*** The pkg-config script could not be found. Make sure it is"
12029 echo "*** in your path, or set the PKG_CONFIG environment variable"
12030 echo "*** to the full path to pkg-config."
12031 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12032 else
12033 PKG_CONFIG_MIN_VERSION=0.9.0
12034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12035 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
12036 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
12037
12038 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
12039 echo "$as_me:$LINENO: result: yes" >&5
12040 echo "${ECHO_T}yes" >&6
12041 succeeded=yes
12042
12043 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
12044 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
12045 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
12046 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
12047 echo "${ECHO_T}$GDK_CFLAGS" >&6
12048
12049 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
12050 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
12051 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
12052 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
12053 echo "${ECHO_T}$GDK_LIBS" >&6
12054 else
12055 GDK_CFLAGS=""
12056 GDK_LIBS=""
12057 ## If we have a custom action on failure, don't print errors, but
12058 ## do set a variable so people can do so.
12059 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
12060 echo $GDK_PKG_ERRORS
12061 fi
12062
12063
12064
12065 else
12066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12067 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12068 fi
12069 fi
12070
12071 if test $succeeded = yes; then
12072 :
12073 else
12074 { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.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
12075 echo "$as_me: error: Library requirements (gdk-2.0 >= 2.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;}
12076 { (exit 1); exit 1; }; }
12077 fi
12078
12079
12080
12081 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
12082 if test "$USE_GCONF_PREFS_PEER" = ""; then
12083 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
12084 fi
12085 fi
12086
12087 if test "x${COMPILE_QT_PEER}" = xyes; then
12088
12089 succeeded=no
12090
12091 if test -z "$PKG_CONFIG"; then
12092 # Extract the first word of "pkg-config", so it can be a program name with args.
12093 set dummy pkg-config; ac_word=$2
12094 echo "$as_me:$LINENO: checking for $ac_word" >&5
12095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 case $PKG_CONFIG in
12100 [\\/]* | ?:[\\/]*)
12101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12102 ;;
12103 *)
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117
12118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12119 ;;
12120 esac
12121 fi
12122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12123
12124 if test -n "$PKG_CONFIG"; then
12125 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12126 echo "${ECHO_T}$PKG_CONFIG" >&6
12127 else
12128 echo "$as_me:$LINENO: result: no" >&5
12129 echo "${ECHO_T}no" >&6
12130 fi
12131
12132 fi
12133
12134 if test "$PKG_CONFIG" = "no" ; then
12135 echo "*** The pkg-config script could not be found. Make sure it is"
12136 echo "*** in your path, or set the PKG_CONFIG environment variable"
12137 echo "*** to the full path to pkg-config."
12138 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12139 else
12140 PKG_CONFIG_MIN_VERSION=0.9.0
12141 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12142 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
12143 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
12144
12145 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
12146 echo "$as_me:$LINENO: result: yes" >&5
12147 echo "${ECHO_T}yes" >&6
12148 succeeded=yes
12149
12150 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
12151 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
12152 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
12153 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
12154 echo "${ECHO_T}$QT_CFLAGS" >&6
12155
12156 echo "$as_me:$LINENO: checking QT_LIBS" >&5
12157 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
12158 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
12159 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
12160 echo "${ECHO_T}$QT_LIBS" >&6
12161 else
12162 QT_CFLAGS=""
12163 QT_LIBS=""
12164 ## If we have a custom action on failure, don't print errors, but
12165 ## do set a variable so people can do so.
12166 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
12167
12168 fi
12169
12170
12171
12172 else
12173 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12174 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12175 fi
12176 fi
12177
12178 if test $succeeded = yes; then
12179 HAVE_QT4="yes"
12180 else
12181 HAVE_QT4="no"
12182 fi
12183
12184 if test "x$HAVE_QT4" = "xyes"; then
12185 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
12186 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
12187 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12188 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
12189 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_File+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 test "$cross_compiling" = yes &&
12194 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12195 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12196 { (exit 1); exit 1; }; }
12197 if test -r "$QT_INCLUDE_DIR/QWidget"; then
12198 eval "$as_ac_File=yes"
12199 else
12200 eval "$as_ac_File=no"
12201 fi
12202 fi
12203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12204 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12205 if test `eval echo '${'$as_ac_File'}'` = yes; then
12206 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
12207 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
12208 else
12209 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
12211 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_File+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 test "$cross_compiling" = yes &&
12216 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12217 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12218 { (exit 1); exit 1; }; }
12219 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
12220 eval "$as_ac_File=yes"
12221 else
12222 eval "$as_ac_File=no"
12223 fi
12224 fi
12225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12226 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12227 if test `eval echo '${'$as_ac_File'}'` = yes; then
12228 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
12229 else
12230 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
12231 echo "$as_me: WARNING: QWidget not found" >&2;}
12232 fi
12233
12234 fi
12235
12236 # Extract the first word of "moc", so it can be a program name with args.
12237 set dummy moc; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_MOC+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 if test -n "$MOC"; then
12244 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_MOC="moc"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12256 fi
12257 done
12258 done
12259
12260 fi
12261 fi
12262 MOC=$ac_cv_prog_MOC
12263 if test -n "$MOC"; then
12264 echo "$as_me:$LINENO: result: $MOC" >&5
12265 echo "${ECHO_T}$MOC" >&6
12266 else
12267 echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269 fi
12270
12271 # Extract the first word of "moc-qt4", so it can be a program name with args.
12272 set dummy moc-qt4; ac_word=$2
12273 echo "$as_me:$LINENO: checking for $ac_word" >&5
12274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12275 if test "${ac_cv_prog_MOC+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 if test -n "$MOC"; then
12279 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288 ac_cv_prog_MOC="moc-qt4"
12289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292 done
12293 done
12294
12295 fi
12296 fi
12297 MOC=$ac_cv_prog_MOC
12298 if test -n "$MOC"; then
12299 echo "$as_me:$LINENO: result: $MOC" >&5
12300 echo "${ECHO_T}$MOC" >&6
12301 else
12302 echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6
12304 fi
12305
12306 fi
12307 if test "x$HAVE_QT4" = "xno"; then
12308 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
12309 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
12310 case "$host_os" in
12311 darwin*)
12312
12313 # Check whether --with-qt4dir or --without-qt4dir was given.
12314 if test "${with_qt4dir+set}" = set; then
12315 withval="$with_qt4dir"
12316 QT4DIR=$withval
12317
12318 fi;
12319 if test x"$QT4DIR" = x ; then
12320 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
12321 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
12322 { (exit 1); exit 1; }; }
12323 fi
12324 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
12325 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
12326 # Extract the first word of "moc", so it can be a program name with args.
12327 set dummy moc; ac_word=$2
12328 echo "$as_me:$LINENO: checking for $ac_word" >&5
12329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12330 if test "${ac_cv_prog_MOC+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333 if test -n "$MOC"; then
12334 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $QT4DIR/bin
12338 do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_MOC="$QT4DIR/bin/moc"
12344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347 done
12348 done
12349
12350 fi
12351 fi
12352 MOC=$ac_cv_prog_MOC
12353 if test -n "$MOC"; then
12354 echo "$as_me:$LINENO: result: $MOC" >&5
12355 echo "${ECHO_T}$MOC" >&6
12356 else
12357 echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6
12359 fi
12360
12361 if test x"$MOC" = x; then
12362 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
12363 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
12364 { (exit 1); exit 1; }; }
12365 fi
12366 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
12367 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
12368 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
12369 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
12370 ;;
12371 *)
12372 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
12373 of your installed Qt4 installation." >&5
12374 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
12375 of your installed Qt4 installation." >&2;}
12376 { (exit 1); exit 1; }; }
12377 ;;
12378 esac
12379 fi
12380 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
12381 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
12382
12383
12384 fi
12385
12386 if test "x${COMPILE_PLUGIN}" = xyes; then
12387
12388 succeeded=no
12389
12390 if test -z "$PKG_CONFIG"; then
12391 # Extract the first word of "pkg-config", so it can be a program name with args.
12392 set dummy pkg-config; ac_word=$2
12393 echo "$as_me:$LINENO: checking for $ac_word" >&5
12394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 case $PKG_CONFIG in
12399 [\\/]* | ?:[\\/]*)
12400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12401 ;;
12402 *)
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414 done
12415 done
12416
12417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12418 ;;
12419 esac
12420 fi
12421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12422
12423 if test -n "$PKG_CONFIG"; then
12424 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12425 echo "${ECHO_T}$PKG_CONFIG" >&6
12426 else
12427 echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6
12429 fi
12430
12431 fi
12432
12433 if test "$PKG_CONFIG" = "no" ; then
12434 echo "*** The pkg-config script could not be found. Make sure it is"
12435 echo "*** in your path, or set the PKG_CONFIG environment variable"
12436 echo "*** to the full path to pkg-config."
12437 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12438 else
12439 PKG_CONFIG_MIN_VERSION=0.9.0
12440 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12441 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
12442 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
12443
12444 if $PKG_CONFIG --exists "mozilla-plugin" ; then
12445 echo "$as_me:$LINENO: result: yes" >&5
12446 echo "${ECHO_T}yes" >&6
12447 succeeded=yes
12448
12449 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12450 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12451 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
12452 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12453 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12454
12455 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12456 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12457 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
12458 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12459 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12460 else
12461 MOZILLA_CFLAGS=""
12462 MOZILLA_LIBS=""
12463 ## If we have a custom action on failure, don't print errors, but
12464 ## do set a variable so people can do so.
12465 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
12466
12467 fi
12468
12469
12470
12471 else
12472 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12473 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12474 fi
12475 fi
12476
12477 if test $succeeded = yes; then
12478 MOZILLA_FOUND=yes
12479 else
12480 MOZILLA_FOUND=no
12481 fi
12482
12483 if test "x${MOZILLA_FOUND}" = xno; then
12484
12485 succeeded=no
12486
12487 if test -z "$PKG_CONFIG"; then
12488 # Extract the first word of "pkg-config", so it can be a program name with args.
12489 set dummy pkg-config; ac_word=$2
12490 echo "$as_me:$LINENO: checking for $ac_word" >&5
12491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12492 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 case $PKG_CONFIG in
12496 [\\/]* | ?:[\\/]*)
12497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12498 ;;
12499 *)
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12502 do
12503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12507 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12510 fi
12511 done
12512 done
12513
12514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12515 ;;
12516 esac
12517 fi
12518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12519
12520 if test -n "$PKG_CONFIG"; then
12521 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12522 echo "${ECHO_T}$PKG_CONFIG" >&6
12523 else
12524 echo "$as_me:$LINENO: result: no" >&5
12525 echo "${ECHO_T}no" >&6
12526 fi
12527
12528 fi
12529
12530 if test "$PKG_CONFIG" = "no" ; then
12531 echo "*** The pkg-config script could not be found. Make sure it is"
12532 echo "*** in your path, or set the PKG_CONFIG environment variable"
12533 echo "*** to the full path to pkg-config."
12534 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12535 else
12536 PKG_CONFIG_MIN_VERSION=0.9.0
12537 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12538 echo "$as_me:$LINENO: checking for firefox-plugin" >&5
12539 echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
12540
12541 if $PKG_CONFIG --exists "firefox-plugin" ; then
12542 echo "$as_me:$LINENO: result: yes" >&5
12543 echo "${ECHO_T}yes" >&6
12544 succeeded=yes
12545
12546 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12547 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12548 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
12549 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12550 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12551
12552 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12553 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12554 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
12555 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12556 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12557 else
12558 MOZILLA_CFLAGS=""
12559 MOZILLA_LIBS=""
12560 ## If we have a custom action on failure, don't print errors, but
12561 ## do set a variable so people can do so.
12562 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
12563
12564 fi
12565
12566
12567
12568 else
12569 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12570 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12571 fi
12572 fi
12573
12574 if test $succeeded = yes; then
12575 MOZILLA_FOUND=yes
12576 else
12577 MOZILLA_FOUND=no
12578 fi
12579
12580 fi
12581 if test "x${MOZILLA_FOUND}" = xno; then
12582
12583 succeeded=no
12584
12585 if test -z "$PKG_CONFIG"; then
12586 # Extract the first word of "pkg-config", so it can be a program name with args.
12587 set dummy pkg-config; ac_word=$2
12588 echo "$as_me:$LINENO: checking for $ac_word" >&5
12589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 case $PKG_CONFIG in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12596 ;;
12597 *)
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12600 do
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12608 fi
12609 done
12610 done
12611
12612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12613 ;;
12614 esac
12615 fi
12616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12617
12618 if test -n "$PKG_CONFIG"; then
12619 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12620 echo "${ECHO_T}$PKG_CONFIG" >&6
12621 else
12622 echo "$as_me:$LINENO: result: no" >&5
12623 echo "${ECHO_T}no" >&6
12624 fi
12625
12626 fi
12627
12628 if test "$PKG_CONFIG" = "no" ; then
12629 echo "*** The pkg-config script could not be found. Make sure it is"
12630 echo "*** in your path, or set the PKG_CONFIG environment variable"
12631 echo "*** to the full path to pkg-config."
12632 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12633 else
12634 PKG_CONFIG_MIN_VERSION=0.9.0
12635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12636 echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
12637 echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
12638
12639 if $PKG_CONFIG --exists "xulrunner-plugin" ; then
12640 echo "$as_me:$LINENO: result: yes" >&5
12641 echo "${ECHO_T}yes" >&6
12642 succeeded=yes
12643
12644 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12645 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12646 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
12647 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12648 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12649
12650 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12651 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12652 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
12653 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12654 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12655 else
12656 MOZILLA_CFLAGS=""
12657 MOZILLA_LIBS=""
12658 ## If we have a custom action on failure, don't print errors, but
12659 ## do set a variable so people can do so.
12660 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
12661
12662 fi
12663
12664
12665
12666 else
12667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12669 fi
12670 fi
12671
12672 if test $succeeded = yes; then
12673 MOZILLA_FOUND=yes
12674 else
12675 MOZILLA_FOUND=no
12676 fi
12677
12678 fi
12679 if test "x${MOZILLA_FOUND}" = xno; then
12680
12681 succeeded=no
12682
12683 if test -z "$PKG_CONFIG"; then
12684 # Extract the first word of "pkg-config", so it can be a program name with args.
12685 set dummy pkg-config; ac_word=$2
12686 echo "$as_me:$LINENO: checking for $ac_word" >&5
12687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12688 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 case $PKG_CONFIG in
12692 [\\/]* | ?:[\\/]*)
12693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12694 ;;
12695 *)
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12698 do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707 done
12708 done
12709
12710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12711 ;;
12712 esac
12713 fi
12714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12715
12716 if test -n "$PKG_CONFIG"; then
12717 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12718 echo "${ECHO_T}$PKG_CONFIG" >&6
12719 else
12720 echo "$as_me:$LINENO: result: no" >&5
12721 echo "${ECHO_T}no" >&6
12722 fi
12723
12724 fi
12725
12726 if test "$PKG_CONFIG" = "no" ; then
12727 echo "*** The pkg-config script could not be found. Make sure it is"
12728 echo "*** in your path, or set the PKG_CONFIG environment variable"
12729 echo "*** to the full path to pkg-config."
12730 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12731 else
12732 PKG_CONFIG_MIN_VERSION=0.9.0
12733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12734 echo "$as_me:$LINENO: checking for mozilla-firefox-plugin" >&5
12735 echo $ECHO_N "checking for mozilla-firefox-plugin... $ECHO_C" >&6
12736
12737 if $PKG_CONFIG --exists "mozilla-firefox-plugin" ; then
12738 echo "$as_me:$LINENO: result: yes" >&5
12739 echo "${ECHO_T}yes" >&6
12740 succeeded=yes
12741
12742 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12743 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12744 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin"`
12745 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12746 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12747
12748 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12749 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12750 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin"`
12751 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12752 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12753 else
12754 MOZILLA_CFLAGS=""
12755 MOZILLA_LIBS=""
12756 ## If we have a custom action on failure, don't print errors, but
12757 ## do set a variable so people can do so.
12758 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin"`
12759
12760 fi
12761
12762
12763
12764 else
12765 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12766 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12767 fi
12768 fi
12769
12770 if test $succeeded = yes; then
12771 MOZILLA_FOUND=yes
12772 else
12773 MOZILLA_FOUND=no
12774 fi
12775
12776 fi
12777
12778 succeeded=no
12779
12780 if test -z "$PKG_CONFIG"; then
12781 # Extract the first word of "pkg-config", so it can be a program name with args.
12782 set dummy pkg-config; ac_word=$2
12783 echo "$as_me:$LINENO: checking for $ac_word" >&5
12784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 case $PKG_CONFIG in
12789 [\\/]* | ?:[\\/]*)
12790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12791 ;;
12792 *)
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12803 fi
12804 done
12805 done
12806
12807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12808 ;;
12809 esac
12810 fi
12811 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12812
12813 if test -n "$PKG_CONFIG"; then
12814 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12815 echo "${ECHO_T}$PKG_CONFIG" >&6
12816 else
12817 echo "$as_me:$LINENO: result: no" >&5
12818 echo "${ECHO_T}no" >&6
12819 fi
12820
12821 fi
12822
12823 if test "$PKG_CONFIG" = "no" ; then
12824 echo "*** The pkg-config script could not be found. Make sure it is"
12825 echo "*** in your path, or set the PKG_CONFIG environment variable"
12826 echo "*** to the full path to pkg-config."
12827 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12828 else
12829 PKG_CONFIG_MIN_VERSION=0.9.0
12830 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12831 echo "$as_me:$LINENO: checking for glib-2.0" >&5
12832 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
12833
12834 if $PKG_CONFIG --exists "glib-2.0" ; then
12835 echo "$as_me:$LINENO: result: yes" >&5
12836 echo "${ECHO_T}yes" >&6
12837 succeeded=yes
12838
12839 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12840 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12841 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
12842 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12843 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12844
12845 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12846 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12847 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
12848 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12849 echo "${ECHO_T}$GLIB_LIBS" >&6
12850 else
12851 GLIB_CFLAGS=""
12852 GLIB_LIBS=""
12853 ## If we have a custom action on failure, don't print errors, but
12854 ## do set a variable so people can do so.
12855 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
12856 echo $GLIB_PKG_ERRORS
12857 fi
12858
12859
12860
12861 else
12862 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12863 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12864 fi
12865 fi
12866
12867 if test $succeeded = yes; then
12868 :
12869 else
12870 { { echo "$as_me:$LINENO: error: Library requirements (glib-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
12871 echo "$as_me: error: Library requirements (glib-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;}
12872 { (exit 1); exit 1; }; }
12873 fi
12874
12875
12876
12877
12878
12879
12880
12881 PLUGIN_DIR=$HOME/.mozilla/plugins/
12882
12883 fi
12884 fi
12885
12886
12887
12888 # Check whether --with-javah or --without-javah was given.
12889 if test "${with_javah+set}" = set; then
12890 withval="$with_javah"
12891
12892 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12893
12894 if test "x${withval}" != x; then
12895 if test -f "${withval}"; then
12896 USER_JAVAH="${withval}"
12897 else
12898 # Extract the first word of ""${withval}"", so it can be a program name with args.
12899 set dummy "${withval}"; ac_word=$2
12900 echo "$as_me:$LINENO: checking for $ac_word" >&5
12901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12902 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 else
12905 case $USER_JAVAH in
12906 [\\/]* | ?:[\\/]*)
12907 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12908 ;;
12909 *)
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12912 do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12917 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 break 2
12920 fi
12921 done
12922 done
12923
12924 ;;
12925 esac
12926 fi
12927 USER_JAVAH=$ac_cv_path_USER_JAVAH
12928
12929 if test -n "$USER_JAVAH"; then
12930 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12931 echo "${ECHO_T}$USER_JAVAH" >&6
12932 else
12933 echo "$as_me:$LINENO: result: no" >&5
12934 echo "${ECHO_T}no" >&6
12935 fi
12936
12937 fi
12938 else
12939 for javah_name in gcjh javah; do
12940 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12941 set dummy "$javah_name"; ac_word=$2
12942 echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12944 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947 case $USER_JAVAH in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12950 ;;
12951 *)
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963 done
12964 done
12965
12966 ;;
12967 esac
12968 fi
12969 USER_JAVAH=$ac_cv_path_USER_JAVAH
12970
12971 if test -n "$USER_JAVAH"; then
12972 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12973 echo "${ECHO_T}$USER_JAVAH" >&6
12974 else
12975 echo "$as_me:$LINENO: result: no" >&5
12976 echo "${ECHO_T}no" >&6
12977 fi
12978
12979 if test "x${USER_JAVAH}" != x; then
12980 break
12981 fi
12982 done
12983 fi
12984
12985 # if test "x${USER_JAVAH}" = x; then
12986 # echo "configure: cannot find javah" 1>&2
12987 # exit 1
12988 # fi
12989
12990 else
12991
12992 if test "x" != x; then
12993 if test -f ""; then
12994 USER_JAVAH=""
12995 else
12996 # Extract the first word of """", so it can be a program name with args.
12997 set dummy ""; ac_word=$2
12998 echo "$as_me:$LINENO: checking for $ac_word" >&5
12999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13000 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 case $USER_JAVAH in
13004 [\\/]* | ?:[\\/]*)
13005 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13006 ;;
13007 *)
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019 done
13020 done
13021
13022 ;;
13023 esac
13024 fi
13025 USER_JAVAH=$ac_cv_path_USER_JAVAH
13026
13027 if test -n "$USER_JAVAH"; then
13028 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13029 echo "${ECHO_T}$USER_JAVAH" >&6
13030 else
13031 echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6
13033 fi
13034
13035 fi
13036 else
13037 for javah_name in gcjh javah; do
13038 # Extract the first word of ""$javah_name"", so it can be a program name with args.
13039 set dummy "$javah_name"; ac_word=$2
13040 echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13042 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 case $USER_JAVAH in
13046 [\\/]* | ?:[\\/]*)
13047 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13048 ;;
13049 *)
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13060 fi
13061 done
13062 done
13063
13064 ;;
13065 esac
13066 fi
13067 USER_JAVAH=$ac_cv_path_USER_JAVAH
13068
13069 if test -n "$USER_JAVAH"; then
13070 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13071 echo "${ECHO_T}$USER_JAVAH" >&6
13072 else
13073 echo "$as_me:$LINENO: result: no" >&5
13074 echo "${ECHO_T}no" >&6
13075 fi
13076
13077 if test "x${USER_JAVAH}" != x; then
13078 break
13079 fi
13080 done
13081 fi
13082
13083 # if test "x${USER_JAVAH}" = x; then
13084 # echo "configure: cannot find javah" 1>&2
13085 # exit 1
13086 # fi
13087
13088 fi
13089
13090 else
13091
13092
13093 if test "x" != x; then
13094 if test -f ""; then
13095 USER_JAVAH=""
13096 else
13097 # Extract the first word of """", so it can be a program name with args.
13098 set dummy ""; ac_word=$2
13099 echo "$as_me:$LINENO: checking for $ac_word" >&5
13100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13101 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 case $USER_JAVAH in
13105 [\\/]* | ?:[\\/]*)
13106 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13107 ;;
13108 *)
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13111 do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13116 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13119 fi
13120 done
13121 done
13122
13123 ;;
13124 esac
13125 fi
13126 USER_JAVAH=$ac_cv_path_USER_JAVAH
13127
13128 if test -n "$USER_JAVAH"; then
13129 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13130 echo "${ECHO_T}$USER_JAVAH" >&6
13131 else
13132 echo "$as_me:$LINENO: result: no" >&5
13133 echo "${ECHO_T}no" >&6
13134 fi
13135
13136 fi
13137 else
13138 for javah_name in gcjh javah; do
13139 # Extract the first word of ""$javah_name"", so it can be a program name with args.
13140 set dummy "$javah_name"; ac_word=$2
13141 echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13143 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 case $USER_JAVAH in
13147 [\\/]* | ?:[\\/]*)
13148 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13149 ;;
13150 *)
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13153 do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 break 2
13161 fi
13162 done
13163 done
13164
13165 ;;
13166 esac
13167 fi
13168 USER_JAVAH=$ac_cv_path_USER_JAVAH
13169
13170 if test -n "$USER_JAVAH"; then
13171 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13172 echo "${ECHO_T}$USER_JAVAH" >&6
13173 else
13174 echo "$as_me:$LINENO: result: no" >&5
13175 echo "${ECHO_T}no" >&6
13176 fi
13177
13178 if test "x${USER_JAVAH}" != x; then
13179 break
13180 fi
13181 done
13182 fi
13183
13184 # if test "x${USER_JAVAH}" = x; then
13185 # echo "configure: cannot find javah" 1>&2
13186 # exit 1
13187 # fi
13188
13189
13190 fi;
13191
13192
13193 if test "x${USER_JAVAH}" != x; then
13194 USER_SPECIFIED_JAVAH_TRUE=
13195 USER_SPECIFIED_JAVAH_FALSE='#'
13196 else
13197 USER_SPECIFIED_JAVAH_TRUE='#'
13198 USER_SPECIFIED_JAVAH_FALSE=
13199 fi
13200
13201
13202
13203
13204 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
13205
13206
13207 if test "x${COMPILE_JNI}" = xyes; then
13208 echo "$as_me:$LINENO: checking jni_md.h support" >&5
13209 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
13210 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
13211 echo "$as_me:$LINENO: result: yes" >&5
13212 echo "${ECHO_T}yes" >&6
13213 else
13214 target_cpu=x86
13215 target_os=linux-gnu
13216 { echo "$as_me:$LINENO: WARNING: no" >&5
13217 echo "$as_me: WARNING: no" >&2;}
13218 fi
13219 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
13220 ac_dests="include/jni_md.h"
13221 while test -n "$ac_sources"; do
13222 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13223 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13224 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13225 done
13226 ac_config_links="$ac_config_links $ac_config_links_1"
13227
13228 fi
13229
13230
13231 user_specified_javac=
13232
13233
13234
13235 # Check whether --with-gcj or --without-gcj was given.
13236 if test "${with_gcj+set}" = set; then
13237 withval="$with_gcj"
13238
13239 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13240
13241 if test "x${withval}" != x; then
13242 if test -f "${withval}"; then
13243 GCJ="${withval}"
13244 else
13245 # Extract the first word of ""${withval}"", so it can be a program name with args.
13246 set dummy "${withval}"; ac_word=$2
13247 echo "$as_me:$LINENO: checking for $ac_word" >&5
13248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13249 if test "${ac_cv_path_GCJ+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 case $GCJ in
13253 [\\/]* | ?:[\\/]*)
13254 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13255 ;;
13256 *)
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268 done
13269 done
13270
13271 ;;
13272 esac
13273 fi
13274 GCJ=$ac_cv_path_GCJ
13275
13276 if test -n "$GCJ"; then
13277 echo "$as_me:$LINENO: result: $GCJ" >&5
13278 echo "${ECHO_T}$GCJ" >&6
13279 else
13280 echo "$as_me:$LINENO: result: no" >&5
13281 echo "${ECHO_T}no" >&6
13282 fi
13283
13284 fi
13285 else
13286 # Extract the first word of ""gcj"", so it can be a program name with args.
13287 set dummy "gcj"; ac_word=$2
13288 echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13290 if test "${ac_cv_path_GCJ+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 case $GCJ in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13296 ;;
13297 *)
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309 done
13310 done
13311
13312 ;;
13313 esac
13314 fi
13315 GCJ=$ac_cv_path_GCJ
13316
13317 if test -n "$GCJ"; then
13318 echo "$as_me:$LINENO: result: $GCJ" >&5
13319 echo "${ECHO_T}$GCJ" >&6
13320 else
13321 echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6
13323 fi
13324
13325 fi
13326 if test "x$GCJ" != x; then
13327 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13328 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13329 ac_ext=c
13330 ac_cpp='$CPP $CPPFLAGS'
13331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #if __GNUC__ <= 3
13337 #error GCJ 4.0.0 or higher is required
13338 #endif
13339
13340 _ACEOF
13341 $GCJ -E conftest.c > /dev/null
13342 gcj_4_result=$?
13343 if test "x$gcj_4_result" = "x0"; then
13344 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13345 echo "${ECHO_T}4.0 or higher found" >&6
13346 else
13347 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13348 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13349 fi
13350 ac_ext=c
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355
13356 fi
13357
13358 else
13359 if test "x${withval}" != xno; then
13360
13361 if test "x" != x; then
13362 if test -f ""; then
13363 GCJ=""
13364 else
13365 # Extract the first word of """", so it can be a program name with args.
13366 set dummy ""; ac_word=$2
13367 echo "$as_me:$LINENO: checking for $ac_word" >&5
13368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13369 if test "${ac_cv_path_GCJ+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372 case $GCJ in
13373 [\\/]* | ?:[\\/]*)
13374 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13375 ;;
13376 *)
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13379 do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13384 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388 done
13389 done
13390
13391 ;;
13392 esac
13393 fi
13394 GCJ=$ac_cv_path_GCJ
13395
13396 if test -n "$GCJ"; then
13397 echo "$as_me:$LINENO: result: $GCJ" >&5
13398 echo "${ECHO_T}$GCJ" >&6
13399 else
13400 echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6
13402 fi
13403
13404 fi
13405 else
13406 # Extract the first word of ""gcj"", so it can be a program name with args.
13407 set dummy "gcj"; ac_word=$2
13408 echo "$as_me:$LINENO: checking for $ac_word" >&5
13409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13410 if test "${ac_cv_path_GCJ+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413 case $GCJ in
13414 [\\/]* | ?:[\\/]*)
13415 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13416 ;;
13417 *)
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13428 fi
13429 done
13430 done
13431
13432 ;;
13433 esac
13434 fi
13435 GCJ=$ac_cv_path_GCJ
13436
13437 if test -n "$GCJ"; then
13438 echo "$as_me:$LINENO: result: $GCJ" >&5
13439 echo "${ECHO_T}$GCJ" >&6
13440 else
13441 echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6
13443 fi
13444
13445 fi
13446 if test "x$GCJ" != x; then
13447 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13448 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13449 ac_ext=c
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
13455 cat >conftest.$ac_ext <<_ACEOF
13456 #if __GNUC__ <= 3
13457 #error GCJ 4.0.0 or higher is required
13458 #endif
13459
13460 _ACEOF
13461 $GCJ -E conftest.c > /dev/null
13462 gcj_4_result=$?
13463 if test "x$gcj_4_result" = "x0"; then
13464 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13465 echo "${ECHO_T}4.0 or higher found" >&6
13466 else
13467 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13468 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13469 fi
13470 ac_ext=c
13471 ac_cpp='$CPP $CPPFLAGS'
13472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13475
13476 fi
13477
13478 fi
13479 fi
13480 user_specified_javac=gcj
13481
13482 else
13483
13484
13485 if test "x" != x; then
13486 if test -f ""; then
13487 GCJ=""
13488 else
13489 # Extract the first word of """", so it can be a program name with args.
13490 set dummy ""; ac_word=$2
13491 echo "$as_me:$LINENO: checking for $ac_word" >&5
13492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13493 if test "${ac_cv_path_GCJ+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496 case $GCJ in
13497 [\\/]* | ?:[\\/]*)
13498 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13499 ;;
13500 *)
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13511 fi
13512 done
13513 done
13514
13515 ;;
13516 esac
13517 fi
13518 GCJ=$ac_cv_path_GCJ
13519
13520 if test -n "$GCJ"; then
13521 echo "$as_me:$LINENO: result: $GCJ" >&5
13522 echo "${ECHO_T}$GCJ" >&6
13523 else
13524 echo "$as_me:$LINENO: result: no" >&5
13525 echo "${ECHO_T}no" >&6
13526 fi
13527
13528 fi
13529 else
13530 # Extract the first word of ""gcj"", so it can be a program name with args.
13531 set dummy "gcj"; ac_word=$2
13532 echo "$as_me:$LINENO: checking for $ac_word" >&5
13533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13534 if test "${ac_cv_path_GCJ+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537 case $GCJ in
13538 [\\/]* | ?:[\\/]*)
13539 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13540 ;;
13541 *)
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553 done
13554 done
13555
13556 ;;
13557 esac
13558 fi
13559 GCJ=$ac_cv_path_GCJ
13560
13561 if test -n "$GCJ"; then
13562 echo "$as_me:$LINENO: result: $GCJ" >&5
13563 echo "${ECHO_T}$GCJ" >&6
13564 else
13565 echo "$as_me:$LINENO: result: no" >&5
13566 echo "${ECHO_T}no" >&6
13567 fi
13568
13569 fi
13570 if test "x$GCJ" != x; then
13571 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13572 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13573 ac_ext=c
13574 ac_cpp='$CPP $CPPFLAGS'
13575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13578
13579 cat >conftest.$ac_ext <<_ACEOF
13580 #if __GNUC__ <= 3
13581 #error GCJ 4.0.0 or higher is required
13582 #endif
13583
13584 _ACEOF
13585 $GCJ -E conftest.c > /dev/null
13586 gcj_4_result=$?
13587 if test "x$gcj_4_result" = "x0"; then
13588 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13589 echo "${ECHO_T}4.0 or higher found" >&6
13590 else
13591 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13592 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13593 fi
13594 ac_ext=c
13595 ac_cpp='$CPP $CPPFLAGS'
13596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13599
13600 fi
13601
13602
13603 fi;
13604
13605
13606
13607
13608 # Check whether --with-jikes or --without-jikes was given.
13609 if test "${with_jikes+set}" = set; then
13610 withval="$with_jikes"
13611
13612 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13613
13614 if test "x${withval}" != x; then
13615 if test -f "${withval}"; then
13616 JIKES="${withval}"
13617 else
13618 # Extract the first word of ""${withval}"", so it can be a program name with args.
13619 set dummy "${withval}"; ac_word=$2
13620 echo "$as_me:$LINENO: checking for $ac_word" >&5
13621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13622 if test "${ac_cv_path_JIKES+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625 case $JIKES in
13626 [\\/]* | ?:[\\/]*)
13627 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13628 ;;
13629 *)
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641 done
13642 done
13643
13644 ;;
13645 esac
13646 fi
13647 JIKES=$ac_cv_path_JIKES
13648
13649 if test -n "$JIKES"; then
13650 echo "$as_me:$LINENO: result: $JIKES" >&5
13651 echo "${ECHO_T}$JIKES" >&6
13652 else
13653 echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6
13655 fi
13656
13657 fi
13658 else
13659 # Extract the first word of ""jikes"", so it can be a program name with args.
13660 set dummy "jikes"; ac_word=$2
13661 echo "$as_me:$LINENO: checking for $ac_word" >&5
13662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13663 if test "${ac_cv_path_JIKES+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666 case $JIKES in
13667 [\\/]* | ?:[\\/]*)
13668 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13669 ;;
13670 *)
13671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13673 do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682 done
13683 done
13684
13685 ;;
13686 esac
13687 fi
13688 JIKES=$ac_cv_path_JIKES
13689
13690 if test -n "$JIKES"; then
13691 echo "$as_me:$LINENO: result: $JIKES" >&5
13692 echo "${ECHO_T}$JIKES" >&6
13693 else
13694 echo "$as_me:$LINENO: result: no" >&5
13695 echo "${ECHO_T}no" >&6
13696 fi
13697
13698 fi
13699 if test "x$JIKES" != "x"; then
13700 echo "$as_me:$LINENO: checking jikes version" >&5
13701 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13702 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13703 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13704 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13705 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13706 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13707 JIKES=""
13708 fi
13709 fi
13710 if test "x$JIKES" != "x"; then
13711 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13712 echo "${ECHO_T}$JIKES_VERSION" >&6
13713 else
13714 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13715 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13716 fi
13717
13718 JIKESENCODING=
13719 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13720 JIKESENCODING='-encoding UTF-8'
13721 fi
13722
13723
13724 JIKESWARNINGS="+Pno-switchcheck"
13725 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13726 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13727 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13728 fi
13729 fi
13730
13731
13732 fi
13733
13734 else
13735 if test "x${withval}" != xno; then
13736
13737 if test "x" != x; then
13738 if test -f ""; then
13739 JIKES=""
13740 else
13741 # Extract the first word of """", so it can be a program name with args.
13742 set dummy ""; ac_word=$2
13743 echo "$as_me:$LINENO: checking for $ac_word" >&5
13744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13745 if test "${ac_cv_path_JIKES+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748 case $JIKES in
13749 [\\/]* | ?:[\\/]*)
13750 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13751 ;;
13752 *)
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13755 do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764 done
13765 done
13766
13767 ;;
13768 esac
13769 fi
13770 JIKES=$ac_cv_path_JIKES
13771
13772 if test -n "$JIKES"; then
13773 echo "$as_me:$LINENO: result: $JIKES" >&5
13774 echo "${ECHO_T}$JIKES" >&6
13775 else
13776 echo "$as_me:$LINENO: result: no" >&5
13777 echo "${ECHO_T}no" >&6
13778 fi
13779
13780 fi
13781 else
13782 # Extract the first word of ""jikes"", so it can be a program name with args.
13783 set dummy "jikes"; ac_word=$2
13784 echo "$as_me:$LINENO: checking for $ac_word" >&5
13785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13786 if test "${ac_cv_path_JIKES+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789 case $JIKES in
13790 [\\/]* | ?:[\\/]*)
13791 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13792 ;;
13793 *)
13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795 for as_dir in $PATH
13796 do
13797 IFS=$as_save_IFS
13798 test -z "$as_dir" && as_dir=.
13799 for ac_exec_ext in '' $ac_executable_extensions; do
13800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13801 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13803 break 2
13804 fi
13805 done
13806 done
13807
13808 ;;
13809 esac
13810 fi
13811 JIKES=$ac_cv_path_JIKES
13812
13813 if test -n "$JIKES"; then
13814 echo "$as_me:$LINENO: result: $JIKES" >&5
13815 echo "${ECHO_T}$JIKES" >&6
13816 else
13817 echo "$as_me:$LINENO: result: no" >&5
13818 echo "${ECHO_T}no" >&6
13819 fi
13820
13821 fi
13822 if test "x$JIKES" != "x"; then
13823 echo "$as_me:$LINENO: checking jikes version" >&5
13824 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13825 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13826 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13827 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13828 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13829 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13830 JIKES=""
13831 fi
13832 fi
13833 if test "x$JIKES" != "x"; then
13834 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13835 echo "${ECHO_T}$JIKES_VERSION" >&6
13836 else
13837 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13838 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13839 fi
13840
13841 JIKESENCODING=
13842 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13843 JIKESENCODING='-encoding UTF-8'
13844 fi
13845
13846
13847 JIKESWARNINGS="+Pno-switchcheck"
13848 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13849 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13850 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13851 fi
13852 fi
13853
13854
13855 fi
13856
13857 fi
13858 fi
13859 user_specified_javac=jikes
13860
13861 else
13862
13863
13864 if test "x" != x; then
13865 if test -f ""; then
13866 JIKES=""
13867 else
13868 # Extract the first word of """", so it can be a program name with args.
13869 set dummy ""; ac_word=$2
13870 echo "$as_me:$LINENO: checking for $ac_word" >&5
13871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13872 if test "${ac_cv_path_JIKES+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 case $JIKES in
13876 [\\/]* | ?:[\\/]*)
13877 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13878 ;;
13879 *)
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881 for as_dir in $PATH
13882 do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891 done
13892 done
13893
13894 ;;
13895 esac
13896 fi
13897 JIKES=$ac_cv_path_JIKES
13898
13899 if test -n "$JIKES"; then
13900 echo "$as_me:$LINENO: result: $JIKES" >&5
13901 echo "${ECHO_T}$JIKES" >&6
13902 else
13903 echo "$as_me:$LINENO: result: no" >&5
13904 echo "${ECHO_T}no" >&6
13905 fi
13906
13907 fi
13908 else
13909 # Extract the first word of ""jikes"", so it can be a program name with args.
13910 set dummy "jikes"; ac_word=$2
13911 echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13913 if test "${ac_cv_path_JIKES+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 case $JIKES in
13917 [\\/]* | ?:[\\/]*)
13918 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13919 ;;
13920 *)
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932 done
13933 done
13934
13935 ;;
13936 esac
13937 fi
13938 JIKES=$ac_cv_path_JIKES
13939
13940 if test -n "$JIKES"; then
13941 echo "$as_me:$LINENO: result: $JIKES" >&5
13942 echo "${ECHO_T}$JIKES" >&6
13943 else
13944 echo "$as_me:$LINENO: result: no" >&5
13945 echo "${ECHO_T}no" >&6
13946 fi
13947
13948 fi
13949 if test "x$JIKES" != "x"; then
13950 echo "$as_me:$LINENO: checking jikes version" >&5
13951 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13952 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13953 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13954 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13955 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13956 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13957 JIKES=""
13958 fi
13959 fi
13960 if test "x$JIKES" != "x"; then
13961 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13962 echo "${ECHO_T}$JIKES_VERSION" >&6
13963 else
13964 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13965 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13966 fi
13967
13968 JIKESENCODING=
13969 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13970 JIKESENCODING='-encoding UTF-8'
13971 fi
13972
13973
13974 JIKESWARNINGS="+Pno-switchcheck"
13975 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13976 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13977 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13978 fi
13979 fi
13980
13981
13982 fi
13983
13984
13985 fi;
13986
13987
13988
13989
13990 # Check whether --with-kjc or --without-kjc was given.
13991 if test "${with_kjc+set}" = set; then
13992 withval="$with_kjc"
13993
13994 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13995
13996 if test "x${withval}" != x; then
13997 if test -f "${withval}"; then
13998 KJC="${withval}"
13999 else
14000 # Extract the first word of ""${withval}"", so it can be a program name with args.
14001 set dummy "${withval}"; ac_word=$2
14002 echo "$as_me:$LINENO: checking for $ac_word" >&5
14003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14004 if test "${ac_cv_path_KJC+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 case $KJC in
14008 [\\/]* | ?:[\\/]*)
14009 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14010 ;;
14011 *)
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015 IFS=$as_save_IFS
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14019 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14021 break 2
14022 fi
14023 done
14024 done
14025
14026 ;;
14027 esac
14028 fi
14029 KJC=$ac_cv_path_KJC
14030
14031 if test -n "$KJC"; then
14032 echo "$as_me:$LINENO: result: $KJC" >&5
14033 echo "${ECHO_T}$KJC" >&6
14034 else
14035 echo "$as_me:$LINENO: result: no" >&5
14036 echo "${ECHO_T}no" >&6
14037 fi
14038
14039 fi
14040 else
14041 # Extract the first word of ""kJC"", so it can be a program name with args.
14042 set dummy "kJC"; ac_word=$2
14043 echo "$as_me:$LINENO: checking for $ac_word" >&5
14044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14045 if test "${ac_cv_path_KJC+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 case $KJC in
14049 [\\/]* | ?:[\\/]*)
14050 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14051 ;;
14052 *)
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14055 do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064 done
14065 done
14066
14067 ;;
14068 esac
14069 fi
14070 KJC=$ac_cv_path_KJC
14071
14072 if test -n "$KJC"; then
14073 echo "$as_me:$LINENO: result: $KJC" >&5
14074 echo "${ECHO_T}$KJC" >&6
14075 else
14076 echo "$as_me:$LINENO: result: no" >&5
14077 echo "${ECHO_T}no" >&6
14078 fi
14079
14080 fi
14081
14082 else
14083 if test "x${withval}" != xno; then
14084
14085 if test "x" != x; then
14086 if test -f ""; then
14087 KJC=""
14088 else
14089 # Extract the first word of """", so it can be a program name with args.
14090 set dummy ""; ac_word=$2
14091 echo "$as_me:$LINENO: checking for $ac_word" >&5
14092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14093 if test "${ac_cv_path_KJC+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096 case $KJC in
14097 [\\/]* | ?:[\\/]*)
14098 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14099 ;;
14100 *)
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14103 do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112 done
14113 done
14114
14115 ;;
14116 esac
14117 fi
14118 KJC=$ac_cv_path_KJC
14119
14120 if test -n "$KJC"; then
14121 echo "$as_me:$LINENO: result: $KJC" >&5
14122 echo "${ECHO_T}$KJC" >&6
14123 else
14124 echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6
14126 fi
14127
14128 fi
14129 else
14130 # Extract the first word of ""kJC"", so it can be a program name with args.
14131 set dummy "kJC"; ac_word=$2
14132 echo "$as_me:$LINENO: checking for $ac_word" >&5
14133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14134 if test "${ac_cv_path_KJC+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 case $KJC in
14138 [\\/]* | ?:[\\/]*)
14139 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14140 ;;
14141 *)
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153 done
14154 done
14155
14156 ;;
14157 esac
14158 fi
14159 KJC=$ac_cv_path_KJC
14160
14161 if test -n "$KJC"; then
14162 echo "$as_me:$LINENO: result: $KJC" >&5
14163 echo "${ECHO_T}$KJC" >&6
14164 else
14165 echo "$as_me:$LINENO: result: no" >&5
14166 echo "${ECHO_T}no" >&6
14167 fi
14168
14169 fi
14170
14171 fi
14172 fi
14173 user_specified_javac=kjc
14174
14175 else
14176
14177
14178 if test "x" != x; then
14179 if test -f ""; then
14180 KJC=""
14181 else
14182 # Extract the first word of """", so it can be a program name with args.
14183 set dummy ""; ac_word=$2
14184 echo "$as_me:$LINENO: checking for $ac_word" >&5
14185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14186 if test "${ac_cv_path_KJC+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189 case $KJC in
14190 [\\/]* | ?:[\\/]*)
14191 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14192 ;;
14193 *)
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14196 do
14197 IFS=$as_save_IFS
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
14200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14201 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14203 break 2
14204 fi
14205 done
14206 done
14207
14208 ;;
14209 esac
14210 fi
14211 KJC=$ac_cv_path_KJC
14212
14213 if test -n "$KJC"; then
14214 echo "$as_me:$LINENO: result: $KJC" >&5
14215 echo "${ECHO_T}$KJC" >&6
14216 else
14217 echo "$as_me:$LINENO: result: no" >&5
14218 echo "${ECHO_T}no" >&6
14219 fi
14220
14221 fi
14222 else
14223 # Extract the first word of ""kJC"", so it can be a program name with args.
14224 set dummy "kJC"; ac_word=$2
14225 echo "$as_me:$LINENO: checking for $ac_word" >&5
14226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14227 if test "${ac_cv_path_KJC+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 case $KJC in
14231 [\\/]* | ?:[\\/]*)
14232 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14233 ;;
14234 *)
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14245 fi
14246 done
14247 done
14248
14249 ;;
14250 esac
14251 fi
14252 KJC=$ac_cv_path_KJC
14253
14254 if test -n "$KJC"; then
14255 echo "$as_me:$LINENO: result: $KJC" >&5
14256 echo "${ECHO_T}$KJC" >&6
14257 else
14258 echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6
14260 fi
14261
14262 fi
14263
14264
14265 fi;
14266
14267
14268
14269
14270 # Check whether --with-gcjx or --without-gcjx was given.
14271 if test "${with_gcjx+set}" = set; then
14272 withval="$with_gcjx"
14273
14274 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14275
14276 if test "x${withval}" != x; then
14277 if test -f "${withval}"; then
14278 GCJX="${withval}"
14279 else
14280 # Extract the first word of ""${withval}"", so it can be a program name with args.
14281 set dummy "${withval}"; ac_word=$2
14282 echo "$as_me:$LINENO: checking for $ac_word" >&5
14283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14284 if test "${ac_cv_path_GCJX+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 case $GCJX in
14288 [\\/]* | ?:[\\/]*)
14289 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14290 ;;
14291 *)
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14299 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14302 fi
14303 done
14304 done
14305
14306 ;;
14307 esac
14308 fi
14309 GCJX=$ac_cv_path_GCJX
14310
14311 if test -n "$GCJX"; then
14312 echo "$as_me:$LINENO: result: $GCJX" >&5
14313 echo "${ECHO_T}$GCJX" >&6
14314 else
14315 echo "$as_me:$LINENO: result: no" >&5
14316 echo "${ECHO_T}no" >&6
14317 fi
14318
14319 fi
14320 else
14321 # Extract the first word of ""gcjx"", so it can be a program name with args.
14322 set dummy "gcjx"; ac_word=$2
14323 echo "$as_me:$LINENO: checking for $ac_word" >&5
14324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14325 if test "${ac_cv_path_GCJX+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328 case $GCJX in
14329 [\\/]* | ?:[\\/]*)
14330 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14331 ;;
14332 *)
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $PATH
14335 do
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14340 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 break 2
14343 fi
14344 done
14345 done
14346
14347 ;;
14348 esac
14349 fi
14350 GCJX=$ac_cv_path_GCJX
14351
14352 if test -n "$GCJX"; then
14353 echo "$as_me:$LINENO: result: $GCJX" >&5
14354 echo "${ECHO_T}$GCJX" >&6
14355 else
14356 echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6
14358 fi
14359
14360 fi
14361
14362 else
14363 if test "x${withval}" != xno; then
14364
14365 if test "x" != x; then
14366 if test -f ""; then
14367 GCJX=""
14368 else
14369 # Extract the first word of """", so it can be a program name with args.
14370 set dummy ""; ac_word=$2
14371 echo "$as_me:$LINENO: checking for $ac_word" >&5
14372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14373 if test "${ac_cv_path_GCJX+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 case $GCJX in
14377 [\\/]* | ?:[\\/]*)
14378 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14379 ;;
14380 *)
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14383 do
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14388 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 break 2
14391 fi
14392 done
14393 done
14394
14395 ;;
14396 esac
14397 fi
14398 GCJX=$ac_cv_path_GCJX
14399
14400 if test -n "$GCJX"; then
14401 echo "$as_me:$LINENO: result: $GCJX" >&5
14402 echo "${ECHO_T}$GCJX" >&6
14403 else
14404 echo "$as_me:$LINENO: result: no" >&5
14405 echo "${ECHO_T}no" >&6
14406 fi
14407
14408 fi
14409 else
14410 # Extract the first word of ""gcjx"", so it can be a program name with args.
14411 set dummy "gcjx"; ac_word=$2
14412 echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14414 if test "${ac_cv_path_GCJX+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 case $GCJX in
14418 [\\/]* | ?:[\\/]*)
14419 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14420 ;;
14421 *)
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14424 do
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14429 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 break 2
14432 fi
14433 done
14434 done
14435
14436 ;;
14437 esac
14438 fi
14439 GCJX=$ac_cv_path_GCJX
14440
14441 if test -n "$GCJX"; then
14442 echo "$as_me:$LINENO: result: $GCJX" >&5
14443 echo "${ECHO_T}$GCJX" >&6
14444 else
14445 echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6
14447 fi
14448
14449 fi
14450
14451 fi
14452 fi
14453 user_specified_javac=gcjx
14454
14455 else
14456
14457
14458 if test "x" != x; then
14459 if test -f ""; then
14460 GCJX=""
14461 else
14462 # Extract the first word of """", so it can be a program name with args.
14463 set dummy ""; ac_word=$2
14464 echo "$as_me:$LINENO: checking for $ac_word" >&5
14465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14466 if test "${ac_cv_path_GCJX+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 case $GCJX in
14470 [\\/]* | ?:[\\/]*)
14471 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14472 ;;
14473 *)
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14476 do
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14481 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14484 fi
14485 done
14486 done
14487
14488 ;;
14489 esac
14490 fi
14491 GCJX=$ac_cv_path_GCJX
14492
14493 if test -n "$GCJX"; then
14494 echo "$as_me:$LINENO: result: $GCJX" >&5
14495 echo "${ECHO_T}$GCJX" >&6
14496 else
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14499 fi
14500
14501 fi
14502 else
14503 # Extract the first word of ""gcjx"", so it can be a program name with args.
14504 set dummy "gcjx"; ac_word=$2
14505 echo "$as_me:$LINENO: checking for $ac_word" >&5
14506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14507 if test "${ac_cv_path_GCJX+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 case $GCJX in
14511 [\\/]* | ?:[\\/]*)
14512 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14513 ;;
14514 *)
14515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $PATH
14517 do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
14521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14525 fi
14526 done
14527 done
14528
14529 ;;
14530 esac
14531 fi
14532 GCJX=$ac_cv_path_GCJX
14533
14534 if test -n "$GCJX"; then
14535 echo "$as_me:$LINENO: result: $GCJX" >&5
14536 echo "${ECHO_T}$GCJX" >&6
14537 else
14538 echo "$as_me:$LINENO: result: no" >&5
14539 echo "${ECHO_T}no" >&6
14540 fi
14541
14542 fi
14543
14544
14545 fi;
14546
14547
14548
14549
14550 # Check whether --with-ecj or --without-ecj was given.
14551 if test "${with_ecj+set}" = set; then
14552 withval="$with_ecj"
14553
14554 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14555
14556 if test "x${withval}" != x; then
14557 if test -f "${withval}"; then
14558 ECJ="${withval}"
14559 else
14560 # Extract the first word of ""${withval}"", so it can be a program name with args.
14561 set dummy "${withval}"; ac_word=$2
14562 echo "$as_me:$LINENO: checking for $ac_word" >&5
14563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14564 if test "${ac_cv_path_ECJ+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 case $ECJ in
14568 [\\/]* | ?:[\\/]*)
14569 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14570 ;;
14571 *)
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575 IFS=$as_save_IFS
14576 test -z "$as_dir" && as_dir=.
14577 for ac_exec_ext in '' $ac_executable_extensions; do
14578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14579 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14581 break 2
14582 fi
14583 done
14584 done
14585
14586 ;;
14587 esac
14588 fi
14589 ECJ=$ac_cv_path_ECJ
14590
14591 if test -n "$ECJ"; then
14592 echo "$as_me:$LINENO: result: $ECJ" >&5
14593 echo "${ECHO_T}$ECJ" >&6
14594 else
14595 echo "$as_me:$LINENO: result: no" >&5
14596 echo "${ECHO_T}no" >&6
14597 fi
14598
14599 fi
14600 else
14601 # Extract the first word of ""ecj"", so it can be a program name with args.
14602 set dummy "ecj"; ac_word=$2
14603 echo "$as_me:$LINENO: checking for $ac_word" >&5
14604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14605 if test "${ac_cv_path_ECJ+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608 case $ECJ in
14609 [\\/]* | ?:[\\/]*)
14610 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14611 ;;
14612 *)
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14615 do
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14623 fi
14624 done
14625 done
14626
14627 ;;
14628 esac
14629 fi
14630 ECJ=$ac_cv_path_ECJ
14631
14632 if test -n "$ECJ"; then
14633 echo "$as_me:$LINENO: result: $ECJ" >&5
14634 echo "${ECHO_T}$ECJ" >&6
14635 else
14636 echo "$as_me:$LINENO: result: no" >&5
14637 echo "${ECHO_T}no" >&6
14638 fi
14639
14640 fi
14641
14642 else
14643 if test "x${withval}" != xno; then
14644
14645 if test "x" != x; then
14646 if test -f ""; then
14647 ECJ=""
14648 else
14649 # Extract the first word of """", so it can be a program name with args.
14650 set dummy ""; ac_word=$2
14651 echo "$as_me:$LINENO: checking for $ac_word" >&5
14652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14653 if test "${ac_cv_path_ECJ+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 case $ECJ in
14657 [\\/]* | ?:[\\/]*)
14658 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14659 ;;
14660 *)
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14663 do
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14668 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 break 2
14671 fi
14672 done
14673 done
14674
14675 ;;
14676 esac
14677 fi
14678 ECJ=$ac_cv_path_ECJ
14679
14680 if test -n "$ECJ"; then
14681 echo "$as_me:$LINENO: result: $ECJ" >&5
14682 echo "${ECHO_T}$ECJ" >&6
14683 else
14684 echo "$as_me:$LINENO: result: no" >&5
14685 echo "${ECHO_T}no" >&6
14686 fi
14687
14688 fi
14689 else
14690 # Extract the first word of ""ecj"", so it can be a program name with args.
14691 set dummy "ecj"; ac_word=$2
14692 echo "$as_me:$LINENO: checking for $ac_word" >&5
14693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14694 if test "${ac_cv_path_ECJ+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697 case $ECJ in
14698 [\\/]* | ?:[\\/]*)
14699 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14700 ;;
14701 *)
14702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14703 for as_dir in $PATH
14704 do
14705 IFS=$as_save_IFS
14706 test -z "$as_dir" && as_dir=.
14707 for ac_exec_ext in '' $ac_executable_extensions; do
14708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14709 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14711 break 2
14712 fi
14713 done
14714 done
14715
14716 ;;
14717 esac
14718 fi
14719 ECJ=$ac_cv_path_ECJ
14720
14721 if test -n "$ECJ"; then
14722 echo "$as_me:$LINENO: result: $ECJ" >&5
14723 echo "${ECHO_T}$ECJ" >&6
14724 else
14725 echo "$as_me:$LINENO: result: no" >&5
14726 echo "${ECHO_T}no" >&6
14727 fi
14728
14729 fi
14730
14731 fi
14732 fi
14733 user_specified_javac=ecj
14734
14735 else
14736
14737
14738 if test "x" != x; then
14739 if test -f ""; then
14740 ECJ=""
14741 else
14742 # Extract the first word of """", so it can be a program name with args.
14743 set dummy ""; ac_word=$2
14744 echo "$as_me:$LINENO: checking for $ac_word" >&5
14745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14746 if test "${ac_cv_path_ECJ+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749 case $ECJ in
14750 [\\/]* | ?:[\\/]*)
14751 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14752 ;;
14753 *)
14754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14755 for as_dir in $PATH
14756 do
14757 IFS=$as_save_IFS
14758 test -z "$as_dir" && as_dir=.
14759 for ac_exec_ext in '' $ac_executable_extensions; do
14760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14761 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14763 break 2
14764 fi
14765 done
14766 done
14767
14768 ;;
14769 esac
14770 fi
14771 ECJ=$ac_cv_path_ECJ
14772
14773 if test -n "$ECJ"; then
14774 echo "$as_me:$LINENO: result: $ECJ" >&5
14775 echo "${ECHO_T}$ECJ" >&6
14776 else
14777 echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6
14779 fi
14780
14781 fi
14782 else
14783 # Extract the first word of ""ecj"", so it can be a program name with args.
14784 set dummy "ecj"; ac_word=$2
14785 echo "$as_me:$LINENO: checking for $ac_word" >&5
14786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14787 if test "${ac_cv_path_ECJ+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790 case $ECJ in
14791 [\\/]* | ?:[\\/]*)
14792 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14793 ;;
14794 *)
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14797 do
14798 IFS=$as_save_IFS
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14804 break 2
14805 fi
14806 done
14807 done
14808
14809 ;;
14810 esac
14811 fi
14812 ECJ=$ac_cv_path_ECJ
14813
14814 if test -n "$ECJ"; then
14815 echo "$as_me:$LINENO: result: $ECJ" >&5
14816 echo "${ECHO_T}$ECJ" >&6
14817 else
14818 echo "$as_me:$LINENO: result: no" >&5
14819 echo "${ECHO_T}no" >&6
14820 fi
14821
14822 fi
14823
14824
14825 fi;
14826
14827
14828
14829 if test "x${user_specified_javac}" = x; then
14830
14831
14832 if test "x${GCJ}" != x; then
14833 FOUND_GCJ_TRUE=
14834 FOUND_GCJ_FALSE='#'
14835 else
14836 FOUND_GCJ_TRUE='#'
14837 FOUND_GCJ_FALSE=
14838 fi
14839
14840
14841
14842 if test "x${JIKES}" != x; then
14843 FOUND_JIKES_TRUE=
14844 FOUND_JIKES_FALSE='#'
14845 else
14846 FOUND_JIKES_TRUE='#'
14847 FOUND_JIKES_FALSE=
14848 fi
14849
14850
14851
14852 if test "x${ECJ}" != x; then
14853 FOUND_ECJ_TRUE=
14854 FOUND_ECJ_FALSE='#'
14855 else
14856 FOUND_ECJ_TRUE='#'
14857 FOUND_ECJ_FALSE=
14858 fi
14859
14860 else
14861
14862
14863 if test "x${user_specified_javac}" = xgcj; then
14864 FOUND_GCJ_TRUE=
14865 FOUND_GCJ_FALSE='#'
14866 else
14867 FOUND_GCJ_TRUE='#'
14868 FOUND_GCJ_FALSE=
14869 fi
14870
14871
14872
14873 if test "x${user_specified_javac}" = xjikes; then
14874 FOUND_JIKES_TRUE=
14875 FOUND_JIKES_FALSE='#'
14876 else
14877 FOUND_JIKES_TRUE='#'
14878 FOUND_JIKES_FALSE=
14879 fi
14880
14881
14882
14883 if test "x${user_specified_javac}" = xecj; then
14884 FOUND_ECJ_TRUE=
14885 FOUND_ECJ_FALSE='#'
14886 else
14887 FOUND_ECJ_TRUE='#'
14888 FOUND_ECJ_FALSE=
14889 fi
14890
14891 fi
14892
14893
14894 if test "x${user_specified_javac}" = xkjc; then
14895 FOUND_KJC_TRUE=
14896 FOUND_KJC_FALSE='#'
14897 else
14898 FOUND_KJC_TRUE='#'
14899 FOUND_KJC_FALSE=
14900 fi
14901
14902
14903
14904 if test "x${user_specified_javac}" = xgcjx; then
14905 FOUND_GCJX_TRUE=
14906 FOUND_GCJX_FALSE='#'
14907 else
14908 FOUND_GCJX_TRUE='#'
14909 FOUND_GCJX_FALSE=
14910 fi
14911
14912
14913 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx && test "x${user_specified_javac}" != xecj; then
14914 { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
14915 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
14916 { (exit 1); exit 1; }; }
14917 fi
14918
14919
14920
14921
14922 # Check whether --with-classpath or --without-classpath was given.
14923 if test "${with_classpath+set}" = set; then
14924 withval="$with_classpath"
14925
14926 if test "x${withval}" = xyes; then
14927 # set user classpath to CLASSPATH from env
14928 echo "$as_me:$LINENO: checking for classlib" >&5
14929 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14930 USER_CLASSLIB=${CLASSPATH}
14931
14932 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
14933 echo "${ECHO_T}${USER_CLASSLIB}" >&6
14934 conditional_with_classlib=true
14935 elif test "x${withval}" != x && test "x${withval}" != xno; then
14936 # set user classpath to specified value
14937 echo "$as_me:$LINENO: checking for classlib" >&5
14938 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14939 USER_CLASSLIB=${withval}
14940
14941 echo "$as_me:$LINENO: result: ${withval}" >&5
14942 echo "${ECHO_T}${withval}" >&6
14943 conditional_with_classlib=true
14944 fi
14945
14946 else
14947 conditional_with_classlib=false
14948 fi;
14949
14950
14951 if test "x${conditional_with_classlib}" = xtrue; then
14952 USER_SPECIFIED_CLASSLIB_TRUE=
14953 USER_SPECIFIED_CLASSLIB_FALSE='#'
14954 else
14955 USER_SPECIFIED_CLASSLIB_TRUE='#'
14956 USER_SPECIFIED_CLASSLIB_FALSE=
14957 fi
14958
14959
14960
14961 # Check whether --with-vm-classes or --without-vm-classes was given.
14962 if test "${with_vm_classes+set}" = set; then
14963 withval="$with_vm_classes"
14964 vm_classes="$with_vm_classes"
14965 else
14966 vm_classes='${top_srcdir}/vm/reference'
14967 fi;
14968
14969
14970
14971 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14972 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14974 if test "${enable_maintainer_mode+set}" = set; then
14975 enableval="$enable_maintainer_mode"
14976 USE_MAINTAINER_MODE=$enableval
14977 else
14978 USE_MAINTAINER_MODE=no
14979 fi;
14980 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
14981 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
14982
14983
14984 if test $USE_MAINTAINER_MODE = yes; then
14985 MAINTAINER_MODE_TRUE=
14986 MAINTAINER_MODE_FALSE='#'
14987 else
14988 MAINTAINER_MODE_TRUE='#'
14989 MAINTAINER_MODE_FALSE=
14990 fi
14991
14992 MAINT=$MAINTAINER_MODE_TRUE
14993
14994
14995
14996 # Check whether --enable-debug or --disable-debug was given.
14997 if test "${enable_debug+set}" = set; then
14998 enableval="$enable_debug"
14999 case "${enableval}" in
15000 yes)
15001 LIBDEBUG="true"
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define DEBUG 1
15005 _ACEOF
15006
15007 ;;
15008 no) LIBDEBUG="false" ;;
15009 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
15010 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
15011 { (exit 1); exit 1; }; } ;;
15012 esac
15013 else
15014 LIBDEBUG="false"
15015 fi;
15016
15017
15018 # Check whether --enable-load-library or --disable-load-library was given.
15019 if test "${enable_load_library+set}" = set; then
15020 enableval="$enable_load_library"
15021 case "${enableval}" in
15022 yes) INIT_LOAD_LIBRARY="true" ;;
15023 no) INIT_LOAD_LIBRARY="false" ;;
15024 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
15025 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
15026 { (exit 1); exit 1; }; } ;;
15027 esac
15028 else
15029 INIT_LOAD_LIBRARY="true"
15030 fi;
15031
15032
15033
15034 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
15035 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
15036 enableval="$enable_java_lang_system_explicit_initialization"
15037 case "${enableval}" in
15038 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
15039 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
15040 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
15041 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
15042 { (exit 1); exit 1; }; } ;;
15043 esac
15044 else
15045 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
15046 fi;
15047
15048
15049
15050 REMOVE=""
15051
15052
15053 # Extract the first word of "mkdir", so it can be a program name with args.
15054 set dummy mkdir; ac_word=$2
15055 echo "$as_me:$LINENO: checking for $ac_word" >&5
15056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15057 if test "${ac_cv_path_MKDIR+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060 case $MKDIR in
15061 [\\/]* | ?:[\\/]*)
15062 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
15063 ;;
15064 *)
15065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15066 for as_dir in $PATH
15067 do
15068 IFS=$as_save_IFS
15069 test -z "$as_dir" && as_dir=.
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15072 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
15073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15074 break 2
15075 fi
15076 done
15077 done
15078
15079 ;;
15080 esac
15081 fi
15082 MKDIR=$ac_cv_path_MKDIR
15083
15084 if test -n "$MKDIR"; then
15085 echo "$as_me:$LINENO: result: $MKDIR" >&5
15086 echo "${ECHO_T}$MKDIR" >&6
15087 else
15088 echo "$as_me:$LINENO: result: no" >&5
15089 echo "${ECHO_T}no" >&6
15090 fi
15091
15092 # Extract the first word of "cp", so it can be a program name with args.
15093 set dummy cp; ac_word=$2
15094 echo "$as_me:$LINENO: checking for $ac_word" >&5
15095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15096 if test "${ac_cv_path_CP+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 case $CP in
15100 [\\/]* | ?:[\\/]*)
15101 ac_cv_path_CP="$CP" # Let the user override the test with a path.
15102 ;;
15103 *)
15104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15105 for as_dir in $PATH
15106 do
15107 IFS=$as_save_IFS
15108 test -z "$as_dir" && as_dir=.
15109 for ac_exec_ext in '' $ac_executable_extensions; do
15110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15111 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
15112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15113 break 2
15114 fi
15115 done
15116 done
15117
15118 ;;
15119 esac
15120 fi
15121 CP=$ac_cv_path_CP
15122
15123 if test -n "$CP"; then
15124 echo "$as_me:$LINENO: result: $CP" >&5
15125 echo "${ECHO_T}$CP" >&6
15126 else
15127 echo "$as_me:$LINENO: result: no" >&5
15128 echo "${ECHO_T}no" >&6
15129 fi
15130
15131 # Extract the first word of "date", so it can be a program name with args.
15132 set dummy date; ac_word=$2
15133 echo "$as_me:$LINENO: checking for $ac_word" >&5
15134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15135 if test "${ac_cv_path_DATE+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138 case $DATE in
15139 [\\/]* | ?:[\\/]*)
15140 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
15141 ;;
15142 *)
15143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $PATH
15145 do
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
15151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15152 break 2
15153 fi
15154 done
15155 done
15156
15157 ;;
15158 esac
15159 fi
15160 DATE=$ac_cv_path_DATE
15161
15162 if test -n "$DATE"; then
15163 echo "$as_me:$LINENO: result: $DATE" >&5
15164 echo "${ECHO_T}$DATE" >&6
15165 else
15166 echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6
15168 fi
15169
15170
15171 # Extract the first word of "find", so it can be a program name with args.
15172 set dummy find; ac_word=$2
15173 echo "$as_me:$LINENO: checking for $ac_word" >&5
15174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15175 if test "${ac_cv_path_FIND+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178 case $FIND in
15179 [\\/]* | ?:[\\/]*)
15180 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
15181 ;;
15182 *)
15183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184 for as_dir in $PATH
15185 do
15186 IFS=$as_save_IFS
15187 test -z "$as_dir" && as_dir=.
15188 for ac_exec_ext in '' $ac_executable_extensions; do
15189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15190 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
15191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15192 break 2
15193 fi
15194 done
15195 done
15196
15197 ;;
15198 esac
15199 fi
15200 FIND=$ac_cv_path_FIND
15201
15202 if test -n "$FIND"; then
15203 echo "$as_me:$LINENO: result: $FIND" >&5
15204 echo "${ECHO_T}$FIND" >&6
15205 else
15206 echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6
15208 fi
15209
15210
15211
15212 # Extract the first word of "zip", so it can be a program name with args.
15213 set dummy zip; ac_word=$2
15214 echo "$as_me:$LINENO: checking for $ac_word" >&5
15215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15216 if test "${ac_cv_path_ZIP+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 case $ZIP in
15220 [\\/]* | ?:[\\/]*)
15221 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
15222 ;;
15223 *)
15224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15225 for as_dir in $PATH
15226 do
15227 IFS=$as_save_IFS
15228 test -z "$as_dir" && as_dir=.
15229 for ac_exec_ext in '' $ac_executable_extensions; do
15230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15231 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
15232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15233 break 2
15234 fi
15235 done
15236 done
15237
15238 ;;
15239 esac
15240 fi
15241 ZIP=$ac_cv_path_ZIP
15242
15243 if test -n "$ZIP"; then
15244 echo "$as_me:$LINENO: result: $ZIP" >&5
15245 echo "${ECHO_T}$ZIP" >&6
15246 else
15247 echo "$as_me:$LINENO: result: no" >&5
15248 echo "${ECHO_T}no" >&6
15249 fi
15250
15251
15252 # Check whether --with-fastjar or --without-fastjar was given.
15253 if test "${with_fastjar+set}" = set; then
15254 withval="$with_fastjar"
15255
15256 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
15257 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
15258 FASTJAR=${withval}
15259 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
15260 echo "${ECHO_T}${FASTJAR}" >&6
15261
15262 else
15263 # Extract the first word of "fastjar", so it can be a program name with args.
15264 set dummy fastjar; ac_word=$2
15265 echo "$as_me:$LINENO: checking for $ac_word" >&5
15266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15267 if test "${ac_cv_path_FASTJAR+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 case $FASTJAR in
15271 [\\/]* | ?:[\\/]*)
15272 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
15273 ;;
15274 *)
15275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15276 for as_dir in $PATH
15277 do
15278 IFS=$as_save_IFS
15279 test -z "$as_dir" && as_dir=.
15280 for ac_exec_ext in '' $ac_executable_extensions; do
15281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15282 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
15283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15284 break 2
15285 fi
15286 done
15287 done
15288
15289 ;;
15290 esac
15291 fi
15292 FASTJAR=$ac_cv_path_FASTJAR
15293
15294 if test -n "$FASTJAR"; then
15295 echo "$as_me:$LINENO: result: $FASTJAR" >&5
15296 echo "${ECHO_T}$FASTJAR" >&6
15297 else
15298 echo "$as_me:$LINENO: result: no" >&5
15299 echo "${ECHO_T}no" >&6
15300 fi
15301
15302 fi;
15303 if test x"${FASTJAR}" != x; then
15304 ZIP=""
15305 fi
15306
15307
15308 # Check whether --with-glibj or --without-glibj was given.
15309 if test "${with_glibj+set}" = set; then
15310 withval="$with_glibj"
15311
15312 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
15313 install_class_files=no
15314 build_class_files=yes
15315 use_zip=yes
15316 elif test "x${withval}" = xboth; then
15317 install_class_files=yes
15318 build_class_files=yes
15319 use_zip=yes
15320 elif test "x${withval}" = xflat; then
15321 install_class_files=yes
15322 build_class_files=yes
15323 use_zip=no
15324 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
15325 install_class_files=no
15326 build_class_files=no
15327 use_zip=no
15328 elif test "x${withval}" = xbuild; then
15329 install_class_files=no
15330 build_class_files=yes
15331 use_zip=no
15332 else
15333 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
15334 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
15335 { (exit 1); exit 1; }; }
15336 fi
15337
15338 else
15339
15340 install_class_files=no
15341 use_zip=yes
15342
15343 fi;
15344
15345
15346 if test "x${use_zip}" = xyes; then
15347 INSTALL_GLIBJ_ZIP_TRUE=
15348 INSTALL_GLIBJ_ZIP_FALSE='#'
15349 else
15350 INSTALL_GLIBJ_ZIP_TRUE='#'
15351 INSTALL_GLIBJ_ZIP_FALSE=
15352 fi
15353
15354
15355
15356 if test "x${install_class_files}" = xyes; then
15357 INSTALL_CLASS_FILES_TRUE=
15358 INSTALL_CLASS_FILES_FALSE='#'
15359 else
15360 INSTALL_CLASS_FILES_TRUE='#'
15361 INSTALL_CLASS_FILES_FALSE=
15362 fi
15363
15364
15365
15366 if test "x${build_class_files}" = xyes; then
15367 BUILD_CLASS_FILES_TRUE=
15368 BUILD_CLASS_FILES_FALSE='#'
15369 else
15370 BUILD_CLASS_FILES_TRUE='#'
15371 BUILD_CLASS_FILES_FALSE=
15372 fi
15373
15374
15375 # Check whether --enable-examples or --disable-examples was given.
15376 if test "${enable_examples+set}" = set; then
15377 enableval="$enable_examples"
15378 case "${enableval}" in
15379 yes) EXAMPLESDIR="examples" ;;
15380 no) EXAMPLESDIR="" ;;
15381 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
15382 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
15383 { (exit 1); exit 1; }; } ;;
15384 esac
15385 else
15386 EXAMPLESDIR="examples"
15387 fi;
15388 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
15389 EXAMPLESDIR=""
15390 fi
15391
15392
15393
15394
15395
15396 # Check whether --with-gjdoc or --without-gjdoc was given.
15397 if test "${with_gjdoc+set}" = set; then
15398 withval="$with_gjdoc"
15399 if test "x${withval}" = xno; then
15400 WITH_GJDOC=no;
15401 elif test "x${withval}" = xyes -o "x{withval}" = x; then
15402 WITH_GJDOC=yes;
15403 # Extract the first word of "gjdoc", so it can be a program name with args.
15404 set dummy gjdoc; ac_word=$2
15405 echo "$as_me:$LINENO: checking for $ac_word" >&5
15406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15407 if test "${ac_cv_path_GJDOC+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 case $GJDOC in
15411 [\\/]* | ?:[\\/]*)
15412 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
15413 ;;
15414 *)
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418 IFS=$as_save_IFS
15419 test -z "$as_dir" && as_dir=.
15420 for ac_exec_ext in '' $ac_executable_extensions; do
15421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
15423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15424 break 2
15425 fi
15426 done
15427 done
15428
15429 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
15430 ;;
15431 esac
15432 fi
15433 GJDOC=$ac_cv_path_GJDOC
15434
15435 if test -n "$GJDOC"; then
15436 echo "$as_me:$LINENO: result: $GJDOC" >&5
15437 echo "${ECHO_T}$GJDOC" >&6
15438 else
15439 echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15441 fi
15442
15443 if test "x${GJDOC}" = xno; then
15444 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
15445 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
15446 { (exit 1); exit 1; }; };
15447 fi
15448 else
15449 WITH_GJDOC=yes
15450 GJDOC="${withval}"
15451 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
15452 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
15453 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
15454 if eval "test \"\${$as_ac_File+set}\" = set"; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 test "$cross_compiling" = yes &&
15458 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15459 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15460 { (exit 1); exit 1; }; }
15461 if test -r "${GJDOC}"; then
15462 eval "$as_ac_File=yes"
15463 else
15464 eval "$as_ac_File=no"
15465 fi
15466 fi
15467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15468 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15469 if test `eval echo '${'$as_ac_File'}'` = yes; then
15470 :
15471 else
15472 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
15473 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
15474 { (exit 1); exit 1; }; }
15475 fi
15476
15477 fi
15478 else
15479 WITH_GJDOC=no
15480 fi;
15481
15482
15483
15484 if test "x${WITH_GJDOC}" = xyes; then
15485 CREATE_API_DOCS_TRUE=
15486 CREATE_API_DOCS_FALSE='#'
15487 else
15488 CREATE_API_DOCS_TRUE='#'
15489 CREATE_API_DOCS_FALSE=
15490 fi
15491
15492
15493
15494
15495
15496 # Check whether --with-jay or --without-jay was given.
15497 if test "${with_jay+set}" = set; then
15498 withval="$with_jay"
15499
15500 if test -d "${withval}"; then
15501 JAY_DIR_PATH="${withval}"
15502 # Extract the first word of "jay", so it can be a program name with args.
15503 set dummy jay; ac_word=$2
15504 echo "$as_me:$LINENO: checking for $ac_word" >&5
15505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15506 if test "${ac_cv_path_JAY+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 case $JAY in
15510 [\\/]* | ?:[\\/]*)
15511 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
15512 ;;
15513 *)
15514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15515 for as_dir in ${JAY_DIR_PATH}
15516 do
15517 IFS=$as_save_IFS
15518 test -z "$as_dir" && as_dir=.
15519 for ac_exec_ext in '' $ac_executable_extensions; do
15520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15521 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
15522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15523 break 2
15524 fi
15525 done
15526 done
15527
15528 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
15529 ;;
15530 esac
15531 fi
15532 JAY=$ac_cv_path_JAY
15533
15534 if test -n "$JAY"; then
15535 echo "$as_me:$LINENO: result: $JAY" >&5
15536 echo "${ECHO_T}$JAY" >&6
15537 else
15538 echo "$as_me:$LINENO: result: no" >&5
15539 echo "${ECHO_T}no" >&6
15540 fi
15541
15542 if test "x${JAY}" = xno; then
15543 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
15544 echo "$as_me: error: \"jay executable not found\"" >&2;}
15545 { (exit 1); exit 1; }; };
15546 fi
15547 else
15548 JAY_DIR_PATH=`dirname "${withval}"`
15549 JAY="${withval}"
15550
15551 fi
15552 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
15553 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
15554 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
15555 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
15556 if eval "test \"\${$as_ac_File+set}\" = set"; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559 test "$cross_compiling" = yes &&
15560 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15562 { (exit 1); exit 1; }; }
15563 if test -r "${JAY_SKELETON}"; then
15564 eval "$as_ac_File=yes"
15565 else
15566 eval "$as_ac_File=no"
15567 fi
15568 fi
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15571 if test `eval echo '${'$as_ac_File'}'` = yes; then
15572 :
15573 else
15574 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
15575 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
15576 { (exit 1); exit 1; }; }
15577 fi
15578
15579 JAY_FOUND=yes
15580
15581 else
15582
15583 JAY_FOUND=no
15584
15585 fi;
15586
15587
15588 if test "x${JAY_FOUND}" = xyes; then
15589 REGEN_PARSERS_TRUE=
15590 REGEN_PARSERS_FALSE='#'
15591 else
15592 REGEN_PARSERS_TRUE='#'
15593 REGEN_PARSERS_FALSE=
15594 fi
15595
15596
15597
15598 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
15599 if test "${enable_portable_native_sync+set}" = set; then
15600 enableval="$enable_portable_native_sync"
15601 case "${enableval}" in
15602 yes)
15603
15604 cat >>confdefs.h <<\_ACEOF
15605 #define PORTABLE_NATIVE_SYNC 1
15606 _ACEOF
15607
15608 ;;
15609 no) ;;
15610 *)
15611 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
15612 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
15613 { (exit 1); exit 1; }; }
15614 ;;
15615 esac
15616 fi;
15617
15618 # ------ AX CREATE STDINT H -------------------------------------
15619 echo "$as_me:$LINENO: checking for stdint types" >&5
15620 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
15621 ac_stdint_h=`echo include/config-int.h`
15622 # try to shortcircuit - if the default include path of the compiler
15623 # can find a "stdint.h" header then we assume that all compilers can.
15624 if test "${ac_cv_header_stdint_t+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627
15628 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15629 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15630 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h. */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 #include <stdint.h>
15638 int
15639 main ()
15640 {
15641 int_least32_t v = 0;
15642 ;
15643 return 0;
15644 }
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_stdint_result="(assuming C99 compatible system)"
15669 ac_cv_header_stdint_t="stdint.h";
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_cv_header_stdint_t=""
15675 fi
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 CXXFLAGS="$old_CXXFLAGS"
15678 CPPFLAGS="$old_CPPFLAGS"
15679 CFLAGS="$old_CFLAGS"
15680 fi
15681
15682
15683 v="... $ac_cv_header_stdint_h"
15684 if test "$ac_stdint_h" = "stdint.h" ; then
15685 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
15686 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
15687 elif test "$ac_stdint_h" = "inttypes.h" ; then
15688 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
15689 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
15690 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15691 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
15692 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
15693 else
15694 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15695 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
15696 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
15697 fi
15698
15699 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15700
15701
15702 inttype_headers=`echo | sed -e 's/,/ /g'`
15703
15704 ac_cv_stdint_result="(no helpful system typedefs seen)"
15705
15706 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15707 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15708 if test "${ac_cv_header_stdint_x+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711
15712 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15713 echo "$as_me:$LINENO: result: (..)" >&5
15714 echo "${ECHO_T}(..)" >&6
15715 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
15716 unset ac_cv_type_uintptr_t
15717 unset ac_cv_type_uint64_t
15718 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15719 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15720 if test "${ac_cv_type_uintptr_t+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #include <$i>
15730
15731 int
15732 main ()
15733 {
15734 if ((uintptr_t *) 0)
15735 return 0;
15736 if (sizeof (uintptr_t))
15737 return 0;
15738 ;
15739 return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_type_uintptr_t=yes
15765 else
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_cv_type_uintptr_t=no
15770 fi
15771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15772 fi
15773 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15774 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15775 if test $ac_cv_type_uintptr_t = yes; then
15776 ac_cv_header_stdint_x=$i
15777 else
15778 continue
15779 fi
15780
15781 echo "$as_me:$LINENO: checking for uint64_t" >&5
15782 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15783 if test "${ac_cv_type_uint64_t+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 cat >conftest.$ac_ext <<_ACEOF
15787 /* confdefs.h. */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 #include<$i>
15793
15794 int
15795 main ()
15796 {
15797 if ((uint64_t *) 0)
15798 return 0;
15799 if (sizeof (uint64_t))
15800 return 0;
15801 ;
15802 return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_cv_type_uint64_t=yes
15828 else
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 ac_cv_type_uint64_t=no
15833 fi
15834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 fi
15836 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15837 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15838 if test $ac_cv_type_uint64_t = yes; then
15839 and64="/uint64_t"
15840 else
15841 and64=""
15842 fi
15843
15844 stdint.h inttypes.h sys/inttypes.h $inttype_headers
15845 break
15846 done
15847 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15848 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15849
15850 fi
15851 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
15852 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
15853
15854
15855 if test "_$ac_cv_header_stdint_x" = "_" ; then
15856
15857 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15858 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15859 if test "${ac_cv_header_stdint_o+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862
15863 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15864 echo "$as_me:$LINENO: result: (..)" >&5
15865 echo "${ECHO_T}(..)" >&6
15866 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
15867 unset ac_cv_type_uint32_t
15868 unset ac_cv_type_uint64_t
15869 echo "$as_me:$LINENO: checking for uint32_t" >&5
15870 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
15871 if test "${ac_cv_type_uint32_t+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <$i>
15881
15882 int
15883 main ()
15884 {
15885 if ((uint32_t *) 0)
15886 return 0;
15887 if (sizeof (uint32_t))
15888 return 0;
15889 ;
15890 return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_cv_type_uint32_t=yes
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_cv_type_uint32_t=no
15921 fi
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 fi
15924 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15925 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
15926 if test $ac_cv_type_uint32_t = yes; then
15927 ac_cv_header_stdint_o=$i
15928 else
15929 continue
15930 fi
15931
15932 echo "$as_me:$LINENO: checking for uint64_t" >&5
15933 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15934 if test "${ac_cv_type_uint64_t+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include<$i>
15944
15945 int
15946 main ()
15947 {
15948 if ((uint64_t *) 0)
15949 return 0;
15950 if (sizeof (uint64_t))
15951 return 0;
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_type_uint64_t=yes
15979 else
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 ac_cv_type_uint64_t=no
15984 fi
15985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15986 fi
15987 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15988 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15989 if test $ac_cv_type_uint64_t = yes; then
15990 and64="/uint64_t"
15991 else
15992 and64=""
15993 fi
15994
15995 inttypes.h sys/inttypes.h stdint.h $inttype_headers
15996 break
15997 break;
15998 done
15999 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16000 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16001
16002 fi
16003 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
16004 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
16005
16006 fi
16007
16008 if test "_$ac_cv_header_stdint_x" = "_" ; then
16009 if test "_$ac_cv_header_stdint_o" = "_" ; then
16010
16011 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16012 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16013 if test "${ac_cv_header_stdint_u+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 else
16016
16017 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16018 echo "$as_me:$LINENO: result: (..)" >&5
16019 echo "${ECHO_T}(..)" >&6
16020 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16021 unset ac_cv_type_u_int32_t
16022 unset ac_cv_type_u_int64_t
16023 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16024 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16025 if test "${ac_cv_type_u_int32_t+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #include <$i>
16035
16036 int
16037 main ()
16038 {
16039 if ((u_int32_t *) 0)
16040 return 0;
16041 if (sizeof (u_int32_t))
16042 return 0;
16043 ;
16044 return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 (eval $ac_compile) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -z "$ac_c_werror_flag"
16057 || test ! -s conftest.err'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_type_u_int32_t=yes
16070 else
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_cv_type_u_int32_t=no
16075 fi
16076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16077 fi
16078 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16079 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16080 if test $ac_cv_type_u_int32_t = yes; then
16081 ac_cv_header_stdint_u=$i
16082 else
16083 continue
16084 fi
16085
16086 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16087 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16088 if test "${ac_cv_type_u_int64_t+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include<$i>
16098
16099 int
16100 main ()
16101 {
16102 if ((u_int64_t *) 0)
16103 return 0;
16104 if (sizeof (u_int64_t))
16105 return 0;
16106 ;
16107 return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112 (eval $ac_compile) 2>conftest.er1
16113 ac_status=$?
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_type_u_int64_t=yes
16133 else
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_cv_type_u_int64_t=no
16138 fi
16139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16140 fi
16141 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16142 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
16143 if test $ac_cv_type_u_int64_t = yes; then
16144 and64="/u_int64_t"
16145 else
16146 and64=""
16147 fi
16148
16149 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
16150 break
16151 break;
16152 done
16153 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16154 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16155
16156 fi
16157 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
16158 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
16159
16160 fi fi
16161
16162 if test "_$ac_cv_header_stdint_x" = "_" ; then
16163 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
16164 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
16165 echo "$as_me:$LINENO: result: (..)" >&5
16166 echo "${ECHO_T}(..)" >&6
16167
16168 echo "$as_me:$LINENO: checking for char" >&5
16169 echo $ECHO_N "checking for char... $ECHO_C" >&6
16170 if test "${ac_cv_type_char+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 $ac_includes_default
16180 int
16181 main ()
16182 {
16183 if ((char *) 0)
16184 return 0;
16185 if (sizeof (char))
16186 return 0;
16187 ;
16188 return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext
16192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16193 (eval $ac_compile) 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag"
16201 || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_type_char=yes
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_cv_type_char=no
16219 fi
16220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16223 echo "${ECHO_T}$ac_cv_type_char" >&6
16224
16225 echo "$as_me:$LINENO: checking size of char" >&5
16226 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16227 if test "${ac_cv_sizeof_char+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230 if test "$ac_cv_type_char" = yes; then
16231 # The cast to unsigned long works around a bug in the HP C Compiler
16232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16234 # This bug is HP SR number 8606223364.
16235 if test "$cross_compiling" = yes; then
16236 # Depending upon the size, compute the lo and hi bounds.
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 int
16245 main ()
16246 {
16247 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16248 test_array [0] = 0
16249
16250 ;
16251 return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16256 (eval $ac_compile) 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag"
16264 || test ! -s conftest.err'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; } &&
16270 { ac_try='test -s conftest.$ac_objext'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_lo=0 ac_mid=0
16277 while :; do
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 $ac_includes_default
16285 int
16286 main ()
16287 {
16288 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16289 test_array [0] = 0
16290
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16297 (eval $ac_compile) 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag"
16305 || test ! -s conftest.err'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest.$ac_objext'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 ac_hi=$ac_mid; break
16318 else
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 ac_lo=`expr $ac_mid + 1`
16323 if test $ac_lo -le $ac_mid; then
16324 ac_lo= ac_hi=
16325 break
16326 fi
16327 ac_mid=`expr 2 '*' $ac_mid + 1`
16328 fi
16329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16330 done
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 $ac_includes_default
16342 int
16343 main ()
16344 {
16345 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16346 test_array [0] = 0
16347
16348 ;
16349 return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16354 (eval $ac_compile) 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag"
16362 || test ! -s conftest.err'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest.$ac_objext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_hi=-1 ac_mid=-1
16375 while :; do
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 $ac_includes_default
16383 int
16384 main ()
16385 {
16386 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16387 test_array [0] = 0
16388
16389 ;
16390 return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag"
16403 || test ! -s conftest.err'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest.$ac_objext'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_lo=$ac_mid; break
16416 else
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 ac_hi=`expr '(' $ac_mid ')' - 1`
16421 if test $ac_mid -le $ac_hi; then
16422 ac_lo= ac_hi=
16423 break
16424 fi
16425 ac_mid=`expr 2 '*' $ac_mid`
16426 fi
16427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16428 done
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 ac_lo= ac_hi=
16434 fi
16435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 fi
16437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16438 # Binary search between lo and hi bounds.
16439 while test "x$ac_lo" != "x$ac_hi"; do
16440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16441 cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h. */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 $ac_includes_default
16448 int
16449 main ()
16450 {
16451 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16452 test_array [0] = 0
16453
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16460 (eval $ac_compile) 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag"
16468 || test ! -s conftest.err'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try='test -s conftest.$ac_objext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_hi=$ac_mid
16481 else
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 ac_lo=`expr '(' $ac_mid ')' + 1`
16486 fi
16487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16488 done
16489 case $ac_lo in
16490 ?*) ac_cv_sizeof_char=$ac_lo;;
16491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16492 See \`config.log' for more details." >&5
16493 echo "$as_me: error: cannot compute sizeof (char), 77
16494 See \`config.log' for more details." >&2;}
16495 { (exit 1); exit 1; }; } ;;
16496 esac
16497 else
16498 if test "$cross_compiling" = yes; then
16499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16500 See \`config.log' for more details." >&5
16501 echo "$as_me: error: cannot run test program while cross compiling
16502 See \`config.log' for more details." >&2;}
16503 { (exit 1); exit 1; }; }
16504 else
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 long longval () { return (long) (sizeof (char)); }
16513 unsigned long ulongval () { return (long) (sizeof (char)); }
16514 #include <stdio.h>
16515 #include <stdlib.h>
16516 int
16517 main ()
16518 {
16519
16520 FILE *f = fopen ("conftest.val", "w");
16521 if (! f)
16522 exit (1);
16523 if (((long) (sizeof (char))) < 0)
16524 {
16525 long i = longval ();
16526 if (i != ((long) (sizeof (char))))
16527 exit (1);
16528 fprintf (f, "%ld\n", i);
16529 }
16530 else
16531 {
16532 unsigned long i = ulongval ();
16533 if (i != ((long) (sizeof (char))))
16534 exit (1);
16535 fprintf (f, "%lu\n", i);
16536 }
16537 exit (ferror (f) || fclose (f) != 0);
16538
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 rm -f conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_sizeof_char=`cat conftest.val`
16555 else
16556 echo "$as_me: program exited with status $ac_status" >&5
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ( exit $ac_status )
16561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16562 See \`config.log' for more details." >&5
16563 echo "$as_me: error: cannot compute sizeof (char), 77
16564 See \`config.log' for more details." >&2;}
16565 { (exit 1); exit 1; }; }
16566 fi
16567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16568 fi
16569 fi
16570 rm -f conftest.val
16571 else
16572 ac_cv_sizeof_char=0
16573 fi
16574 fi
16575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16576 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16577 cat >>confdefs.h <<_ACEOF
16578 #define SIZEOF_CHAR $ac_cv_sizeof_char
16579 _ACEOF
16580
16581
16582 echo "$as_me:$LINENO: checking for short" >&5
16583 echo $ECHO_N "checking for short... $ECHO_C" >&6
16584 if test "${ac_cv_type_short+set}" = set; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 $ac_includes_default
16594 int
16595 main ()
16596 {
16597 if ((short *) 0)
16598 return 0;
16599 if (sizeof (short))
16600 return 0;
16601 ;
16602 return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
16614 { ac_try='test -z "$ac_c_werror_flag"
16615 || test ! -s conftest.err'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_cv_type_short=yes
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632 ac_cv_type_short=no
16633 fi
16634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16637 echo "${ECHO_T}$ac_cv_type_short" >&6
16638
16639 echo "$as_me:$LINENO: checking size of short" >&5
16640 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16641 if test "${ac_cv_sizeof_short+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 if test "$ac_cv_type_short" = yes; then
16645 # The cast to unsigned long works around a bug in the HP C Compiler
16646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16648 # This bug is HP SR number 8606223364.
16649 if test "$cross_compiling" = yes; then
16650 # Depending upon the size, compute the lo and hi bounds.
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 int
16659 main ()
16660 {
16661 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16662 test_array [0] = 0
16663
16664 ;
16665 return 0;
16666 }
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670 (eval $ac_compile) 2>conftest.er1
16671 ac_status=$?
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -z "$ac_c_werror_flag"
16678 || test ! -s conftest.err'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_lo=0 ac_mid=0
16691 while :; do
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 $ac_includes_default
16699 int
16700 main ()
16701 {
16702 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16703 test_array [0] = 0
16704
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_hi=$ac_mid; break
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_lo=`expr $ac_mid + 1`
16737 if test $ac_lo -le $ac_mid; then
16738 ac_lo= ac_hi=
16739 break
16740 fi
16741 ac_mid=`expr 2 '*' $ac_mid + 1`
16742 fi
16743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744 done
16745 else
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 int
16757 main ()
16758 {
16759 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16760 test_array [0] = 0
16761
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768 (eval $ac_compile) 2>conftest.er1
16769 ac_status=$?
16770 grep -v '^ *+' conftest.er1 >conftest.err
16771 rm -f conftest.er1
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -z "$ac_c_werror_flag"
16776 || test ! -s conftest.err'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_hi=-1 ac_mid=-1
16789 while :; do
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 $ac_includes_default
16797 int
16798 main ()
16799 {
16800 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16801 test_array [0] = 0
16802
16803 ;
16804 return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag"
16817 || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_lo=$ac_mid; break
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_hi=`expr '(' $ac_mid ')' - 1`
16835 if test $ac_mid -le $ac_hi; then
16836 ac_lo= ac_hi=
16837 break
16838 fi
16839 ac_mid=`expr 2 '*' $ac_mid`
16840 fi
16841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842 done
16843 else
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 ac_lo= ac_hi=
16848 fi
16849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 fi
16851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16852 # Binary search between lo and hi bounds.
16853 while test "x$ac_lo" != "x$ac_hi"; do
16854 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 $ac_includes_default
16862 int
16863 main ()
16864 {
16865 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16866 test_array [0] = 0
16867
16868 ;
16869 return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16874 (eval $ac_compile) 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -z "$ac_c_werror_flag"
16882 || test ! -s conftest.err'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try='test -s conftest.$ac_objext'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_hi=$ac_mid
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 ac_lo=`expr '(' $ac_mid ')' + 1`
16900 fi
16901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16902 done
16903 case $ac_lo in
16904 ?*) ac_cv_sizeof_short=$ac_lo;;
16905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16906 See \`config.log' for more details." >&5
16907 echo "$as_me: error: cannot compute sizeof (short), 77
16908 See \`config.log' for more details." >&2;}
16909 { (exit 1); exit 1; }; } ;;
16910 esac
16911 else
16912 if test "$cross_compiling" = yes; then
16913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16914 See \`config.log' for more details." >&5
16915 echo "$as_me: error: cannot run test program while cross compiling
16916 See \`config.log' for more details." >&2;}
16917 { (exit 1); exit 1; }; }
16918 else
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 $ac_includes_default
16926 long longval () { return (long) (sizeof (short)); }
16927 unsigned long ulongval () { return (long) (sizeof (short)); }
16928 #include <stdio.h>
16929 #include <stdlib.h>
16930 int
16931 main ()
16932 {
16933
16934 FILE *f = fopen ("conftest.val", "w");
16935 if (! f)
16936 exit (1);
16937 if (((long) (sizeof (short))) < 0)
16938 {
16939 long i = longval ();
16940 if (i != ((long) (sizeof (short))))
16941 exit (1);
16942 fprintf (f, "%ld\n", i);
16943 }
16944 else
16945 {
16946 unsigned long i = ulongval ();
16947 if (i != ((long) (sizeof (short))))
16948 exit (1);
16949 fprintf (f, "%lu\n", i);
16950 }
16951 exit (ferror (f) || fclose (f) != 0);
16952
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_sizeof_short=`cat conftest.val`
16969 else
16970 echo "$as_me: program exited with status $ac_status" >&5
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 ( exit $ac_status )
16975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16976 See \`config.log' for more details." >&5
16977 echo "$as_me: error: cannot compute sizeof (short), 77
16978 See \`config.log' for more details." >&2;}
16979 { (exit 1); exit 1; }; }
16980 fi
16981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16982 fi
16983 fi
16984 rm -f conftest.val
16985 else
16986 ac_cv_sizeof_short=0
16987 fi
16988 fi
16989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16990 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16991 cat >>confdefs.h <<_ACEOF
16992 #define SIZEOF_SHORT $ac_cv_sizeof_short
16993 _ACEOF
16994
16995
16996 echo "$as_me:$LINENO: checking for int" >&5
16997 echo $ECHO_N "checking for int... $ECHO_C" >&6
16998 if test "${ac_cv_type_int+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 $ac_includes_default
17008 int
17009 main ()
17010 {
17011 if ((int *) 0)
17012 return 0;
17013 if (sizeof (int))
17014 return 0;
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag"
17029 || test ! -s conftest.err'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_type_int=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_cv_type_int=no
17047 fi
17048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17049 fi
17050 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17051 echo "${ECHO_T}$ac_cv_type_int" >&6
17052
17053 echo "$as_me:$LINENO: checking size of int" >&5
17054 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17055 if test "${ac_cv_sizeof_int+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058 if test "$ac_cv_type_int" = yes; then
17059 # The cast to unsigned long works around a bug in the HP C Compiler
17060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17062 # This bug is HP SR number 8606223364.
17063 if test "$cross_compiling" = yes; then
17064 # Depending upon the size, compute the lo and hi bounds.
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 $ac_includes_default
17072 int
17073 main ()
17074 {
17075 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17076 test_array [0] = 0
17077
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_lo=0 ac_mid=0
17105 while :; do
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h. */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 $ac_includes_default
17113 int
17114 main ()
17115 {
17116 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17117 test_array [0] = 0
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_hi=$ac_mid; break
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_lo=`expr $ac_mid + 1`
17151 if test $ac_lo -le $ac_mid; then
17152 ac_lo= ac_hi=
17153 break
17154 fi
17155 ac_mid=`expr 2 '*' $ac_mid + 1`
17156 fi
17157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17158 done
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 $ac_includes_default
17170 int
17171 main ()
17172 {
17173 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17174 test_array [0] = 0
17175
17176 ;
17177 return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_hi=-1 ac_mid=-1
17203 while :; do
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 $ac_includes_default
17211 int
17212 main ()
17213 {
17214 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17215 test_array [0] = 0
17216
17217 ;
17218 return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag"
17231 || test ! -s conftest.err'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest.$ac_objext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_lo=$ac_mid; break
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_hi=`expr '(' $ac_mid ')' - 1`
17249 if test $ac_mid -le $ac_hi; then
17250 ac_lo= ac_hi=
17251 break
17252 fi
17253 ac_mid=`expr 2 '*' $ac_mid`
17254 fi
17255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17256 done
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ac_lo= ac_hi=
17262 fi
17263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17264 fi
17265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17266 # Binary search between lo and hi bounds.
17267 while test "x$ac_lo" != "x$ac_hi"; do
17268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 $ac_includes_default
17276 int
17277 main ()
17278 {
17279 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17280 test_array [0] = 0
17281
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288 (eval $ac_compile) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest.$ac_objext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ac_hi=$ac_mid
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 ac_lo=`expr '(' $ac_mid ')' + 1`
17314 fi
17315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17316 done
17317 case $ac_lo in
17318 ?*) ac_cv_sizeof_int=$ac_lo;;
17319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17320 See \`config.log' for more details." >&5
17321 echo "$as_me: error: cannot compute sizeof (int), 77
17322 See \`config.log' for more details." >&2;}
17323 { (exit 1); exit 1; }; } ;;
17324 esac
17325 else
17326 if test "$cross_compiling" = yes; then
17327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17328 See \`config.log' for more details." >&5
17329 echo "$as_me: error: cannot run test program while cross compiling
17330 See \`config.log' for more details." >&2;}
17331 { (exit 1); exit 1; }; }
17332 else
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 $ac_includes_default
17340 long longval () { return (long) (sizeof (int)); }
17341 unsigned long ulongval () { return (long) (sizeof (int)); }
17342 #include <stdio.h>
17343 #include <stdlib.h>
17344 int
17345 main ()
17346 {
17347
17348 FILE *f = fopen ("conftest.val", "w");
17349 if (! f)
17350 exit (1);
17351 if (((long) (sizeof (int))) < 0)
17352 {
17353 long i = longval ();
17354 if (i != ((long) (sizeof (int))))
17355 exit (1);
17356 fprintf (f, "%ld\n", i);
17357 }
17358 else
17359 {
17360 unsigned long i = ulongval ();
17361 if (i != ((long) (sizeof (int))))
17362 exit (1);
17363 fprintf (f, "%lu\n", i);
17364 }
17365 exit (ferror (f) || fclose (f) != 0);
17366
17367 ;
17368 return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest$ac_exeext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373 (eval $ac_link) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_cv_sizeof_int=`cat conftest.val`
17383 else
17384 echo "$as_me: program exited with status $ac_status" >&5
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 ( exit $ac_status )
17389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17390 See \`config.log' for more details." >&5
17391 echo "$as_me: error: cannot compute sizeof (int), 77
17392 See \`config.log' for more details." >&2;}
17393 { (exit 1); exit 1; }; }
17394 fi
17395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17396 fi
17397 fi
17398 rm -f conftest.val
17399 else
17400 ac_cv_sizeof_int=0
17401 fi
17402 fi
17403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17404 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17405 cat >>confdefs.h <<_ACEOF
17406 #define SIZEOF_INT $ac_cv_sizeof_int
17407 _ACEOF
17408
17409
17410 echo "$as_me:$LINENO: checking for long" >&5
17411 echo $ECHO_N "checking for long... $ECHO_C" >&6
17412 if test "${ac_cv_type_long+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 $ac_includes_default
17422 int
17423 main ()
17424 {
17425 if ((long *) 0)
17426 return 0;
17427 if (sizeof (long))
17428 return 0;
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 rm -f conftest.$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435 (eval $ac_compile) 2>conftest.er1
17436 ac_status=$?
17437 grep -v '^ *+' conftest.er1 >conftest.err
17438 rm -f conftest.er1
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -z "$ac_c_werror_flag"
17443 || test ! -s conftest.err'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest.$ac_objext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_cv_type_long=yes
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_cv_type_long=no
17461 fi
17462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17465 echo "${ECHO_T}$ac_cv_type_long" >&6
17466
17467 echo "$as_me:$LINENO: checking size of long" >&5
17468 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17469 if test "${ac_cv_sizeof_long+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 if test "$ac_cv_type_long" = yes; then
17473 # The cast to unsigned long works around a bug in the HP C Compiler
17474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17476 # This bug is HP SR number 8606223364.
17477 if test "$cross_compiling" = yes; then
17478 # Depending upon the size, compute the lo and hi bounds.
17479 cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h. */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17486 int
17487 main ()
17488 {
17489 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17490 test_array [0] = 0
17491
17492 ;
17493 return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498 (eval $ac_compile) 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag"
17506 || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest.$ac_objext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_lo=0 ac_mid=0
17519 while :; do
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 $ac_includes_default
17527 int
17528 main ()
17529 {
17530 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17531 test_array [0] = 0
17532
17533 ;
17534 return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17539 (eval $ac_compile) 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag"
17547 || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_hi=$ac_mid; break
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_lo=`expr $ac_mid + 1`
17565 if test $ac_lo -le $ac_mid; then
17566 ac_lo= ac_hi=
17567 break
17568 fi
17569 ac_mid=`expr 2 '*' $ac_mid + 1`
17570 fi
17571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17572 done
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h. */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 $ac_includes_default
17584 int
17585 main ()
17586 {
17587 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17588 test_array [0] = 0
17589
17590 ;
17591 return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596 (eval $ac_compile) 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag"
17604 || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_hi=-1 ac_mid=-1
17617 while :; do
17618 cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 $ac_includes_default
17625 int
17626 main ()
17627 {
17628 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17629 test_array [0] = 0
17630
17631 ;
17632 return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest.$ac_objext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_lo=$ac_mid; break
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 ac_hi=`expr '(' $ac_mid ')' - 1`
17663 if test $ac_mid -le $ac_hi; then
17664 ac_lo= ac_hi=
17665 break
17666 fi
17667 ac_mid=`expr 2 '*' $ac_mid`
17668 fi
17669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17670 done
17671 else
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 ac_lo= ac_hi=
17676 fi
17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17678 fi
17679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17680 # Binary search between lo and hi bounds.
17681 while test "x$ac_lo" != "x$ac_hi"; do
17682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 int
17691 main ()
17692 {
17693 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17694 test_array [0] = 0
17695
17696 ;
17697 return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17702 (eval $ac_compile) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag"
17710 || test ! -s conftest.err'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest.$ac_objext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_hi=$ac_mid
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_lo=`expr '(' $ac_mid ')' + 1`
17728 fi
17729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17730 done
17731 case $ac_lo in
17732 ?*) ac_cv_sizeof_long=$ac_lo;;
17733 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17734 See \`config.log' for more details." >&5
17735 echo "$as_me: error: cannot compute sizeof (long), 77
17736 See \`config.log' for more details." >&2;}
17737 { (exit 1); exit 1; }; } ;;
17738 esac
17739 else
17740 if test "$cross_compiling" = yes; then
17741 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17742 See \`config.log' for more details." >&5
17743 echo "$as_me: error: cannot run test program while cross compiling
17744 See \`config.log' for more details." >&2;}
17745 { (exit 1); exit 1; }; }
17746 else
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 $ac_includes_default
17754 long longval () { return (long) (sizeof (long)); }
17755 unsigned long ulongval () { return (long) (sizeof (long)); }
17756 #include <stdio.h>
17757 #include <stdlib.h>
17758 int
17759 main ()
17760 {
17761
17762 FILE *f = fopen ("conftest.val", "w");
17763 if (! f)
17764 exit (1);
17765 if (((long) (sizeof (long))) < 0)
17766 {
17767 long i = longval ();
17768 if (i != ((long) (sizeof (long))))
17769 exit (1);
17770 fprintf (f, "%ld\n", i);
17771 }
17772 else
17773 {
17774 unsigned long i = ulongval ();
17775 if (i != ((long) (sizeof (long))))
17776 exit (1);
17777 fprintf (f, "%lu\n", i);
17778 }
17779 exit (ferror (f) || fclose (f) != 0);
17780
17781 ;
17782 return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest$ac_exeext
17786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17787 (eval $ac_link) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 ac_cv_sizeof_long=`cat conftest.val`
17797 else
17798 echo "$as_me: program exited with status $ac_status" >&5
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17801
17802 ( exit $ac_status )
17803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17804 See \`config.log' for more details." >&5
17805 echo "$as_me: error: cannot compute sizeof (long), 77
17806 See \`config.log' for more details." >&2;}
17807 { (exit 1); exit 1; }; }
17808 fi
17809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17810 fi
17811 fi
17812 rm -f conftest.val
17813 else
17814 ac_cv_sizeof_long=0
17815 fi
17816 fi
17817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17818 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17819 cat >>confdefs.h <<_ACEOF
17820 #define SIZEOF_LONG $ac_cv_sizeof_long
17821 _ACEOF
17822
17823
17824 echo "$as_me:$LINENO: checking for void*" >&5
17825 echo $ECHO_N "checking for void*... $ECHO_C" >&6
17826 if test "${ac_cv_type_voidp+set}" = set; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 else
17829 cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h. */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 $ac_includes_default
17836 int
17837 main ()
17838 {
17839 if ((void* *) 0)
17840 return 0;
17841 if (sizeof (void*))
17842 return 0;
17843 ;
17844 return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17849 (eval $ac_compile) 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag"
17857 || test ! -s conftest.err'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest.$ac_objext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_type_voidp=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_cv_type_voidp=no
17875 fi
17876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17877 fi
17878 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
17879 echo "${ECHO_T}$ac_cv_type_voidp" >&6
17880
17881 echo "$as_me:$LINENO: checking size of void*" >&5
17882 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
17883 if test "${ac_cv_sizeof_voidp+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886 if test "$ac_cv_type_voidp" = yes; then
17887 # The cast to unsigned long works around a bug in the HP C Compiler
17888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17890 # This bug is HP SR number 8606223364.
17891 if test "$cross_compiling" = yes; then
17892 # Depending upon the size, compute the lo and hi bounds.
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 int
17901 main ()
17902 {
17903 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
17904 test_array [0] = 0
17905
17906 ;
17907 return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912 (eval $ac_compile) 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest.$ac_objext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_lo=0 ac_mid=0
17933 while :; do
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 $ac_includes_default
17941 int
17942 main ()
17943 {
17944 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17945 test_array [0] = 0
17946
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17953 (eval $ac_compile) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest.$ac_objext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_hi=$ac_mid; break
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 ac_lo=`expr $ac_mid + 1`
17979 if test $ac_lo -le $ac_mid; then
17980 ac_lo= ac_hi=
17981 break
17982 fi
17983 ac_mid=`expr 2 '*' $ac_mid + 1`
17984 fi
17985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17986 done
17987 else
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h. */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 int
17999 main ()
18000 {
18001 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
18002 test_array [0] = 0
18003
18004 ;
18005 return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest.$ac_objext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_hi=-1 ac_mid=-1
18031 while :; do
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h. */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 $ac_includes_default
18039 int
18040 main ()
18041 {
18042 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
18043 test_array [0] = 0
18044
18045 ;
18046 return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18051 (eval $ac_compile) 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag"
18059 || test ! -s conftest.err'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest.$ac_objext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_lo=$ac_mid; break
18072 else
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ac_hi=`expr '(' $ac_mid ')' - 1`
18077 if test $ac_mid -le $ac_hi; then
18078 ac_lo= ac_hi=
18079 break
18080 fi
18081 ac_mid=`expr 2 '*' $ac_mid`
18082 fi
18083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18084 done
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089 ac_lo= ac_hi=
18090 fi
18091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18092 fi
18093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18094 # Binary search between lo and hi bounds.
18095 while test "x$ac_lo" != "x$ac_hi"; do
18096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h. */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18104 int
18105 main ()
18106 {
18107 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
18108 test_array [0] = 0
18109
18110 ;
18111 return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>conftest.er1
18117 ac_status=$?
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_hi=$ac_mid
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_lo=`expr '(' $ac_mid ')' + 1`
18142 fi
18143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 done
18145 case $ac_lo in
18146 ?*) ac_cv_sizeof_voidp=$ac_lo;;
18147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
18148 See \`config.log' for more details." >&5
18149 echo "$as_me: error: cannot compute sizeof (void*), 77
18150 See \`config.log' for more details." >&2;}
18151 { (exit 1); exit 1; }; } ;;
18152 esac
18153 else
18154 if test "$cross_compiling" = yes; then
18155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18156 See \`config.log' for more details." >&5
18157 echo "$as_me: error: cannot run test program while cross compiling
18158 See \`config.log' for more details." >&2;}
18159 { (exit 1); exit 1; }; }
18160 else
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 $ac_includes_default
18168 long longval () { return (long) (sizeof (void*)); }
18169 unsigned long ulongval () { return (long) (sizeof (void*)); }
18170 #include <stdio.h>
18171 #include <stdlib.h>
18172 int
18173 main ()
18174 {
18175
18176 FILE *f = fopen ("conftest.val", "w");
18177 if (! f)
18178 exit (1);
18179 if (((long) (sizeof (void*))) < 0)
18180 {
18181 long i = longval ();
18182 if (i != ((long) (sizeof (void*))))
18183 exit (1);
18184 fprintf (f, "%ld\n", i);
18185 }
18186 else
18187 {
18188 unsigned long i = ulongval ();
18189 if (i != ((long) (sizeof (void*))))
18190 exit (1);
18191 fprintf (f, "%lu\n", i);
18192 }
18193 exit (ferror (f) || fclose (f) != 0);
18194
18195 ;
18196 return 0;
18197 }
18198 _ACEOF
18199 rm -f conftest$ac_exeext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_sizeof_voidp=`cat conftest.val`
18211 else
18212 echo "$as_me: program exited with status $ac_status" >&5
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 ( exit $ac_status )
18217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
18218 See \`config.log' for more details." >&5
18219 echo "$as_me: error: cannot compute sizeof (void*), 77
18220 See \`config.log' for more details." >&2;}
18221 { (exit 1); exit 1; }; }
18222 fi
18223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18224 fi
18225 fi
18226 rm -f conftest.val
18227 else
18228 ac_cv_sizeof_voidp=0
18229 fi
18230 fi
18231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
18232 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
18233 cat >>confdefs.h <<_ACEOF
18234 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
18235 _ACEOF
18236
18237
18238 ac_cv_char_data_model=""
18239 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
18240 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
18241 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
18242 ac_cv_long_data_model=""
18243 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
18244 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
18245 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
18246 echo "$as_me:$LINENO: checking data model" >&5
18247 echo $ECHO_N "checking data model... $ECHO_C" >&6
18248 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
18249 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
18250 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
18251 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
18252 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
18253 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
18254 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
18255 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
18256 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
18257 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
18258 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
18259 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
18260 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
18261 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
18262 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
18263 222/*|333/*|444/*|666/*|888/*) :
18264 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
18265 *) ac_cv_data_model="none" ; n="very unusual model" ;;
18266 esac
18267 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
18268 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
18269
18270 fi
18271
18272 if test "_$ac_cv_header_stdint_x" != "_" ; then
18273 ac_cv_header_stdint="$ac_cv_header_stdint_x"
18274 elif test "_$ac_cv_header_stdint_o" != "_" ; then
18275 ac_cv_header_stdint="$ac_cv_header_stdint_o"
18276 elif test "_$ac_cv_header_stdint_u" != "_" ; then
18277 ac_cv_header_stdint="$ac_cv_header_stdint_u"
18278 else
18279 ac_cv_header_stdint="stddef.h"
18280 fi
18281
18282 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
18283 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
18284 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
18285 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
18286 unset ac_cv_type_int_least32_t
18287 unset ac_cv_type_int_fast32_t
18288 echo "$as_me:$LINENO: checking for int_least32_t" >&5
18289 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
18290 if test "${ac_cv_type_int_least32_t+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h. */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299 #include <$ac_cv_header_stdint>
18300
18301 int
18302 main ()
18303 {
18304 if ((int_least32_t *) 0)
18305 return 0;
18306 if (sizeof (int_least32_t))
18307 return 0;
18308 ;
18309 return 0;
18310 }
18311 _ACEOF
18312 rm -f conftest.$ac_objext
18313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314 (eval $ac_compile) 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag"
18322 || test ! -s conftest.err'
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest.$ac_objext'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_cv_type_int_least32_t=yes
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 ac_cv_type_int_least32_t=no
18340 fi
18341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18342 fi
18343 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
18344 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
18345
18346 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
18347 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
18348 if test "${ac_cv_type_int_fast32_t+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h. */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 #include<$ac_cv_header_stdint>
18358
18359 int
18360 main ()
18361 {
18362 if ((int_fast32_t *) 0)
18363 return 0;
18364 if (sizeof (int_fast32_t))
18365 return 0;
18366 ;
18367 return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -z "$ac_c_werror_flag"
18380 || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_type_int_fast32_t=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 ac_cv_type_int_fast32_t=no
18398 fi
18399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 fi
18401 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
18402 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
18403
18404 echo "$as_me:$LINENO: checking for intmax_t" >&5
18405 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
18406 if test "${ac_cv_type_intmax_t+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 #include <$ac_cv_header_stdint>
18416
18417 int
18418 main ()
18419 {
18420 if ((intmax_t *) 0)
18421 return 0;
18422 if (sizeof (intmax_t))
18423 return 0;
18424 ;
18425 return 0;
18426 }
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430 (eval $ac_compile) 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag"
18438 || test ! -s conftest.err'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest.$ac_objext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_type_intmax_t=yes
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455 ac_cv_type_intmax_t=no
18456 fi
18457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18458 fi
18459 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
18460 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
18461
18462
18463 fi # shortcircut to system "stdint.h"
18464 # ------------------ PREPARE VARIABLES ------------------------------
18465 if test "$GCC" = "yes" ; then
18466 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
18467 else
18468 ac_cv_stdint_message="using $CC"
18469 fi
18470
18471 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
18472 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
18473
18474 # ----------------- DONE inttypes.h checks START header -------------
18475 ac_config_commands="$ac_config_commands $ac_stdint_h"
18476
18477
18478
18479
18480 # Check whether --with-glibj_zip or --without-glibj_zip was given.
18481 if test "${with_glibj_zip+set}" = set; then
18482 withval="$with_glibj_zip"
18483
18484 fi;
18485
18486 case "$with_glibj_zip" in
18487 "")
18488 use_glibj_zip=false
18489 ;;
18490 "no" )
18491 use_glibj_zip=false
18492 ;;
18493 "yes")
18494 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
18495 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
18496 { (exit 1); exit 1; }; }
18497 ;;
18498 *)
18499 use_glibj_zip=true
18500 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
18501 ;;
18502 esac;
18503
18504
18505
18506 if test x$use_glibj_zip = xtrue; then
18507 USE_PREBUILT_GLIBJ_ZIP_TRUE=
18508 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
18509 else
18510 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
18511 USE_PREBUILT_GLIBJ_ZIP_FALSE=
18512 fi
18513
18514
18515
18516
18517 # Check whether --with-escher or --without-escher was given.
18518 if test "${with_escher+set}" = set; then
18519 withval="$with_escher"
18520
18521 fi;
18522 case "$with_escher" in
18523 "")
18524 use_escher=false
18525 ;;
18526 "no")
18527 use_escher=false
18528 ;;
18529 "yes")
18530 { { echo "$as_me:$LINENO: error: Please suply an absolute path to Escher library" >&5
18531 echo "$as_me: error: Please suply an absolute path to Escher library" >&2;}
18532 { (exit 1); exit 1; }; }
18533 ;;
18534 *)
18535 use_escher=true
18536 PATH_TO_ESCHER=$with_escher
18537 ;;
18538 esac;
18539
18540
18541
18542 if test x$use_escher = xtrue; then
18543 USE_ESCHER_TRUE=
18544 USE_ESCHER_FALSE='#'
18545 else
18546 USE_ESCHER_TRUE='#'
18547 USE_ESCHER_FALSE=
18548 fi
18549
18550
18551
18552 # Check whether --enable-local-sockets or --disable-local-sockets was given.
18553 if test "${enable_local_sockets+set}" = set; then
18554 enableval="$enable_local_sockets"
18555 case "${enableval}" in
18556 yes)
18557 ENABLE_LOCAL_SOCKETS=yes
18558 ;;
18559 *)
18560 ENABLE_LOCAL_SOCKETS=no
18561 ;;
18562 esac
18563 fi;
18564 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
18565 then
18566 if test "${ac_cv_header_sys_un_h+set}" = set; then
18567 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18568 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18569 if test "${ac_cv_header_sys_un_h+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 fi
18572 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18573 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18574 else
18575 # Is the header compilable?
18576 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
18577 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 $ac_includes_default
18585 #include <sys/un.h>
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_header_compiler=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 ac_header_compiler=no
18615 fi
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18618 echo "${ECHO_T}$ac_header_compiler" >&6
18619
18620 # Is the header present?
18621 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
18622 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 #include <sys/un.h>
18630 _ACEOF
18631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18633 ac_status=$?
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } >/dev/null; then
18639 if test -s conftest.err; then
18640 ac_cpp_err=$ac_c_preproc_warn_flag
18641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18642 else
18643 ac_cpp_err=
18644 fi
18645 else
18646 ac_cpp_err=yes
18647 fi
18648 if test -z "$ac_cpp_err"; then
18649 ac_header_preproc=yes
18650 else
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 ac_header_preproc=no
18655 fi
18656 rm -f conftest.err conftest.$ac_ext
18657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18658 echo "${ECHO_T}$ac_header_preproc" >&6
18659
18660 # So? What about this header?
18661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18662 yes:no: )
18663 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
18664 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18665 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
18666 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
18667 ac_header_preproc=yes
18668 ;;
18669 no:yes:* )
18670 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
18671 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
18672 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
18673 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
18674 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
18675 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
18676 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
18677 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
18678 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
18679 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
18680 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
18681 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
18682 (
18683 cat <<\_ASBOX
18684 ## -------------------------------- ##
18685 ## Report this to classpath@gnu.org ##
18686 ## -------------------------------- ##
18687 _ASBOX
18688 ) |
18689 sed "s/^/$as_me: WARNING: /" >&2
18690 ;;
18691 esac
18692 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18693 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18694 if test "${ac_cv_header_sys_un_h+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697 ac_cv_header_sys_un_h=$ac_header_preproc
18698 fi
18699 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18700 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18701
18702 fi
18703
18704
18705
18706
18707
18708
18709
18710
18711 for ac_func in read write bind listen accept shutdown
18712 do
18713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714 echo "$as_me:$LINENO: checking for $ac_func" >&5
18715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18716 if eval "test \"\${$as_ac_var+set}\" = set"; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define $ac_func innocuous_$ac_func
18728
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18733
18734 #ifdef __STDC__
18735 # include <limits.h>
18736 #else
18737 # include <assert.h>
18738 #endif
18739
18740 #undef $ac_func
18741
18742 /* Override any gcc2 internal prototype to avoid an error. */
18743 #ifdef __cplusplus
18744 extern "C"
18745 {
18746 #endif
18747 /* We use char because int might match the return type of a gcc2
18748 builtin and then its argument prototype would still apply. */
18749 char $ac_func ();
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18754 choke me
18755 #else
18756 char (*f) () = $ac_func;
18757 #endif
18758 #ifdef __cplusplus
18759 }
18760 #endif
18761
18762 int
18763 main ()
18764 {
18765 return f != $ac_func;
18766 ;
18767 return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18772 (eval $ac_link) 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_c_werror_flag"
18780 || test ! -s conftest.err'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 eval "$as_ac_var=yes"
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 eval "$as_ac_var=no"
18798 fi
18799 rm -f conftest.err conftest.$ac_objext \
18800 conftest$ac_exeext conftest.$ac_ext
18801 fi
18802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18804 if test `eval echo '${'$as_ac_var'}'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18807 _ACEOF
18808
18809 else
18810 { { echo "$as_me:$LINENO: error: networking support not available" >&5
18811 echo "$as_me: error: networking support not available" >&2;}
18812 { (exit 1); exit 1; }; }
18813 fi
18814 done
18815
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define ENABLE_LOCAL_SOCKETS 1
18819 _ACEOF
18820
18821 fi
18822
18823
18824 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
18825 ENABLE_LOCAL_SOCKETS_TRUE=
18826 ENABLE_LOCAL_SOCKETS_FALSE='#'
18827 else
18828 ENABLE_LOCAL_SOCKETS_TRUE='#'
18829 ENABLE_LOCAL_SOCKETS_FALSE=
18830 fi
18831
18832
18833
18834
18835 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile gnu/classpath/Configuration.java gnu/java/security/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/gconf-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/plugin/Makefile native/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
18836
18837
18838 if test "x${COMPILE_WRAPPERS}" = xno
18839 then
18840 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver"
18841
18842 ac_config_commands="$ac_config_commands gappletviewer"
18843
18844 ac_config_commands="$ac_config_commands gjarsigner"
18845
18846 ac_config_commands="$ac_config_commands gkeytool"
18847
18848 ac_config_commands="$ac_config_commands gjar"
18849
18850 ac_config_commands="$ac_config_commands gnative2ascii"
18851
18852 ac_config_commands="$ac_config_commands gserialver"
18853
18854 fi
18855
18856
18857 if test "x${COMPILE_WRAPPERS}" = xno
18858 then
18859 ac_config_files="$ac_config_files tools/appletviewer tools/jarsigner tools/keytool"
18860
18861 ac_config_commands="$ac_config_commands appletviewer"
18862
18863 ac_config_commands="$ac_config_commands jarsigner"
18864
18865 ac_config_commands="$ac_config_commands keytool"
18866
18867 fi
18868
18869 ac_config_commands="$ac_config_commands gen-classlist"
18870
18871 ac_config_commands="$ac_config_commands copy-vmresources"
18872
18873 cat >confcache <<\_ACEOF
18874 # This file is a shell script that caches the results of configure
18875 # tests run on this system so they can be shared between configure
18876 # scripts and configure runs, see configure's option --config-cache.
18877 # It is not useful on other systems. If it contains results you don't
18878 # want to keep, you may remove or edit it.
18879 #
18880 # config.status only pays attention to the cache file if you give it
18881 # the --recheck option to rerun configure.
18882 #
18883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18885 # following values.
18886
18887 _ACEOF
18888
18889 # The following way of writing the cache mishandles newlines in values,
18890 # but we know of no workaround that is simple, portable, and efficient.
18891 # So, don't put newlines in cache variables' values.
18892 # Ultrix sh set writes to stderr and can't be redirected directly,
18893 # and sets the high bit in the cache file unless we assign to the vars.
18894 {
18895 (set) 2>&1 |
18896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18897 *ac_space=\ *)
18898 # `set' does not quote correctly, so add quotes (double-quote
18899 # substitution turns \\\\ into \\, and sed turns \\ into \).
18900 sed -n \
18901 "s/'/'\\\\''/g;
18902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18903 ;;
18904 *)
18905 # `set' quotes correctly as required by POSIX, so do not add quotes.
18906 sed -n \
18907 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18908 ;;
18909 esac;
18910 } |
18911 sed '
18912 t clear
18913 : clear
18914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18915 t end
18916 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18917 : end' >>confcache
18918 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18919 if test -w $cache_file; then
18920 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18921 cat confcache >$cache_file
18922 else
18923 echo "not updating unwritable cache $cache_file"
18924 fi
18925 fi
18926 rm -f confcache
18927
18928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18929 # Let make expand exec_prefix.
18930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18931
18932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18934 # trailing colons and then remove the whole line if VPATH becomes empty
18935 # (actually we leave an empty line to preserve line numbers).
18936 if test "x$srcdir" = x.; then
18937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18938 s/:*\$(srcdir):*/:/;
18939 s/:*\${srcdir}:*/:/;
18940 s/:*@srcdir@:*/:/;
18941 s/^\([^=]*=[ ]*\):*/\1/;
18942 s/:*$//;
18943 s/^[^=]*=[ ]*$//;
18944 }'
18945 fi
18946
18947 DEFS=-DHAVE_CONFIG_H
18948
18949 ac_libobjs=
18950 ac_ltlibobjs=
18951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18952 # 1. Remove the extension, and $U if already installed.
18953 ac_i=`echo "$ac_i" |
18954 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18955 # 2. Add them.
18956 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18957 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18958 done
18959 LIBOBJS=$ac_libobjs
18960
18961 LTLIBOBJS=$ac_ltlibobjs
18962
18963
18964 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
18965 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18966 Usually this means the macro was only invoked conditionally." >&5
18967 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18968 Usually this means the macro was only invoked conditionally." >&2;}
18969 { (exit 1); exit 1; }; }
18970 fi
18971 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
18972 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18973 Usually this means the macro was only invoked conditionally." >&5
18974 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18975 Usually this means the macro was only invoked conditionally." >&2;}
18976 { (exit 1); exit 1; }; }
18977 fi
18978 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
18979 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18980 Usually this means the macro was only invoked conditionally." >&5
18981 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18982 Usually this means the macro was only invoked conditionally." >&2;}
18983 { (exit 1); exit 1; }; }
18984 fi
18985 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
18986 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
18987 Usually this means the macro was only invoked conditionally." >&5
18988 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
18989 Usually this means the macro was only invoked conditionally." >&2;}
18990 { (exit 1); exit 1; }; }
18991 fi
18992 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
18993 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
18994 Usually this means the macro was only invoked conditionally." >&5
18995 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
18996 Usually this means the macro was only invoked conditionally." >&2;}
18997 { (exit 1); exit 1; }; }
18998 fi
18999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19000 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19001 Usually this means the macro was only invoked conditionally." >&5
19002 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19003 Usually this means the macro was only invoked conditionally." >&2;}
19004 { (exit 1); exit 1; }; }
19005 fi
19006 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19007 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19008 Usually this means the macro was only invoked conditionally." >&5
19009 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19010 Usually this means the macro was only invoked conditionally." >&2;}
19011 { (exit 1); exit 1; }; }
19012 fi
19013 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
19014 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19015 Usually this means the macro was only invoked conditionally." >&5
19016 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19017 Usually this means the macro was only invoked conditionally." >&2;}
19018 { (exit 1); exit 1; }; }
19019 fi
19020 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
19021 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19022 Usually this means the macro was only invoked conditionally." >&5
19023 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19024 Usually this means the macro was only invoked conditionally." >&2;}
19025 { (exit 1); exit 1; }; }
19026 fi
19027 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
19028 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19029 Usually this means the macro was only invoked conditionally." >&5
19030 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19031 Usually this means the macro was only invoked conditionally." >&2;}
19032 { (exit 1); exit 1; }; }
19033 fi
19034 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
19035 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19036 Usually this means the macro was only invoked conditionally." >&5
19037 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19038 Usually this means the macro was only invoked conditionally." >&2;}
19039 { (exit 1); exit 1; }; }
19040 fi
19041 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
19042 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
19043 Usually this means the macro was only invoked conditionally." >&5
19044 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
19045 Usually this means the macro was only invoked conditionally." >&2;}
19046 { (exit 1); exit 1; }; }
19047 fi
19048 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
19049 { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
19050 Usually this means the macro was only invoked conditionally." >&5
19051 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
19052 Usually this means the macro was only invoked conditionally." >&2;}
19053 { (exit 1); exit 1; }; }
19054 fi
19055 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
19056 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19057 Usually this means the macro was only invoked conditionally." >&5
19058 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19059 Usually this means the macro was only invoked conditionally." >&2;}
19060 { (exit 1); exit 1; }; }
19061 fi
19062 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
19063 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
19064 Usually this means the macro was only invoked conditionally." >&5
19065 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
19066 Usually this means the macro was only invoked conditionally." >&2;}
19067 { (exit 1); exit 1; }; }
19068 fi
19069 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19070 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19071 Usually this means the macro was only invoked conditionally." >&5
19072 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19073 Usually this means the macro was only invoked conditionally." >&2;}
19074 { (exit 1); exit 1; }; }
19075 fi
19076 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19077 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19078 Usually this means the macro was only invoked conditionally." >&5
19079 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19080 Usually this means the macro was only invoked conditionally." >&2;}
19081 { (exit 1); exit 1; }; }
19082 fi
19083 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
19084 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19085 Usually this means the macro was only invoked conditionally." >&5
19086 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19087 Usually this means the macro was only invoked conditionally." >&2;}
19088 { (exit 1); exit 1; }; }
19089 fi
19090 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
19091 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
19092 Usually this means the macro was only invoked conditionally." >&5
19093 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
19094 Usually this means the macro was only invoked conditionally." >&2;}
19095 { (exit 1); exit 1; }; }
19096 fi
19097 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
19098 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
19099 Usually this means the macro was only invoked conditionally." >&5
19100 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
19101 Usually this means the macro was only invoked conditionally." >&2;}
19102 { (exit 1); exit 1; }; }
19103 fi
19104 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
19105 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
19106 Usually this means the macro was only invoked conditionally." >&5
19107 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
19108 Usually this means the macro was only invoked conditionally." >&2;}
19109 { (exit 1); exit 1; }; }
19110 fi
19111 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
19112 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
19113 Usually this means the macro was only invoked conditionally." >&5
19114 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
19115 Usually this means the macro was only invoked conditionally." >&2;}
19116 { (exit 1); exit 1; }; }
19117 fi
19118 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
19119 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
19120 Usually this means the macro was only invoked conditionally." >&5
19121 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
19122 Usually this means the macro was only invoked conditionally." >&2;}
19123 { (exit 1); exit 1; }; }
19124 fi
19125 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
19126 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
19127 Usually this means the macro was only invoked conditionally." >&5
19128 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
19129 Usually this means the macro was only invoked conditionally." >&2;}
19130 { (exit 1); exit 1; }; }
19131 fi
19132 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
19133 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
19134 Usually this means the macro was only invoked conditionally." >&5
19135 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
19136 Usually this means the macro was only invoked conditionally." >&2;}
19137 { (exit 1); exit 1; }; }
19138 fi
19139 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
19140 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
19141 Usually this means the macro was only invoked conditionally." >&5
19142 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
19143 Usually this means the macro was only invoked conditionally." >&2;}
19144 { (exit 1); exit 1; }; }
19145 fi
19146 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
19147 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
19148 Usually this means the macro was only invoked conditionally." >&5
19149 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
19150 Usually this means the macro was only invoked conditionally." >&2;}
19151 { (exit 1); exit 1; }; }
19152 fi
19153 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19154 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19155 Usually this means the macro was only invoked conditionally." >&5
19156 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19157 Usually this means the macro was only invoked conditionally." >&2;}
19158 { (exit 1); exit 1; }; }
19159 fi
19160 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
19161 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
19162 Usually this means the macro was only invoked conditionally." >&5
19163 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
19164 Usually this means the macro was only invoked conditionally." >&2;}
19165 { (exit 1); exit 1; }; }
19166 fi
19167 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
19168 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
19169 Usually this means the macro was only invoked conditionally." >&5
19170 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
19171 Usually this means the macro was only invoked conditionally." >&2;}
19172 { (exit 1); exit 1; }; }
19173 fi
19174 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
19175 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
19176 Usually this means the macro was only invoked conditionally." >&5
19177 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
19178 Usually this means the macro was only invoked conditionally." >&2;}
19179 { (exit 1); exit 1; }; }
19180 fi
19181 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
19182 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
19183 Usually this means the macro was only invoked conditionally." >&5
19184 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
19185 Usually this means the macro was only invoked conditionally." >&2;}
19186 { (exit 1); exit 1; }; }
19187 fi
19188 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
19189 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
19190 Usually this means the macro was only invoked conditionally." >&5
19191 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
19192 Usually this means the macro was only invoked conditionally." >&2;}
19193 { (exit 1); exit 1; }; }
19194 fi
19195 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
19196 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
19197 Usually this means the macro was only invoked conditionally." >&5
19198 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
19199 Usually this means the macro was only invoked conditionally." >&2;}
19200 { (exit 1); exit 1; }; }
19201 fi
19202 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
19203 { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
19204 Usually this means the macro was only invoked conditionally." >&5
19205 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
19206 Usually this means the macro was only invoked conditionally." >&2;}
19207 { (exit 1); exit 1; }; }
19208 fi
19209 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
19210 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
19211 Usually this means the macro was only invoked conditionally." >&5
19212 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
19213 Usually this means the macro was only invoked conditionally." >&2;}
19214 { (exit 1); exit 1; }; }
19215 fi
19216
19217 : ${CONFIG_STATUS=./config.status}
19218 ac_clean_files_save=$ac_clean_files
19219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19220 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19221 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19222 cat >$CONFIG_STATUS <<_ACEOF
19223 #! $SHELL
19224 # Generated by $as_me.
19225 # Run this file to recreate the current configuration.
19226 # Compiler output produced by configure, useful for debugging
19227 # configure, is in config.log if it exists.
19228
19229 debug=false
19230 ac_cs_recheck=false
19231 ac_cs_silent=false
19232 SHELL=\${CONFIG_SHELL-$SHELL}
19233 _ACEOF
19234
19235 cat >>$CONFIG_STATUS <<\_ACEOF
19236 ## --------------------- ##
19237 ## M4sh Initialization. ##
19238 ## --------------------- ##
19239
19240 # Be Bourne compatible
19241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19242 emulate sh
19243 NULLCMD=:
19244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19245 # is contrary to our usage. Disable this feature.
19246 alias -g '${1+"$@"}'='"$@"'
19247 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19248 set -o posix
19249 fi
19250 DUALCASE=1; export DUALCASE # for MKS sh
19251
19252 # Support unset when possible.
19253 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19254 as_unset=unset
19255 else
19256 as_unset=false
19257 fi
19258
19259
19260 # Work around bugs in pre-3.0 UWIN ksh.
19261 $as_unset ENV MAIL MAILPATH
19262 PS1='$ '
19263 PS2='> '
19264 PS4='+ '
19265
19266 # NLS nuisances.
19267 for as_var in \
19268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19270 LC_TELEPHONE LC_TIME
19271 do
19272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19273 eval $as_var=C; export $as_var
19274 else
19275 $as_unset $as_var
19276 fi
19277 done
19278
19279 # Required to use basename.
19280 if expr a : '\(a\)' >/dev/null 2>&1; then
19281 as_expr=expr
19282 else
19283 as_expr=false
19284 fi
19285
19286 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19287 as_basename=basename
19288 else
19289 as_basename=false
19290 fi
19291
19292
19293 # Name of the executable.
19294 as_me=`$as_basename "$0" ||
19295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19296 X"$0" : 'X\(//\)$' \| \
19297 X"$0" : 'X\(/\)$' \| \
19298 . : '\(.\)' 2>/dev/null ||
19299 echo X/"$0" |
19300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19301 /^X\/\(\/\/\)$/{ s//\1/; q; }
19302 /^X\/\(\/\).*/{ s//\1/; q; }
19303 s/.*/./; q'`
19304
19305
19306 # PATH needs CR, and LINENO needs CR and PATH.
19307 # Avoid depending upon Character Ranges.
19308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19311 as_cr_digits='0123456789'
19312 as_cr_alnum=$as_cr_Letters$as_cr_digits
19313
19314 # The user is always right.
19315 if test "${PATH_SEPARATOR+set}" != set; then
19316 echo "#! /bin/sh" >conf$$.sh
19317 echo "exit 0" >>conf$$.sh
19318 chmod +x conf$$.sh
19319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19320 PATH_SEPARATOR=';'
19321 else
19322 PATH_SEPARATOR=:
19323 fi
19324 rm -f conf$$.sh
19325 fi
19326
19327
19328 as_lineno_1=$LINENO
19329 as_lineno_2=$LINENO
19330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19331 test "x$as_lineno_1" != "x$as_lineno_2" &&
19332 test "x$as_lineno_3" = "x$as_lineno_2" || {
19333 # Find who we are. Look in the path if we contain no path at all
19334 # relative or not.
19335 case $0 in
19336 *[\\/]* ) as_myself=$0 ;;
19337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19338 for as_dir in $PATH
19339 do
19340 IFS=$as_save_IFS
19341 test -z "$as_dir" && as_dir=.
19342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19343 done
19344
19345 ;;
19346 esac
19347 # We did not find ourselves, most probably we were run as `sh COMMAND'
19348 # in which case we are not to be found in the path.
19349 if test "x$as_myself" = x; then
19350 as_myself=$0
19351 fi
19352 if test ! -f "$as_myself"; then
19353 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19354 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19355 { (exit 1); exit 1; }; }
19356 fi
19357 case $CONFIG_SHELL in
19358 '')
19359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19361 do
19362 IFS=$as_save_IFS
19363 test -z "$as_dir" && as_dir=.
19364 for as_base in sh bash ksh sh5; do
19365 case $as_dir in
19366 /*)
19367 if ("$as_dir/$as_base" -c '
19368 as_lineno_1=$LINENO
19369 as_lineno_2=$LINENO
19370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19371 test "x$as_lineno_1" != "x$as_lineno_2" &&
19372 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19373 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19374 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19375 CONFIG_SHELL=$as_dir/$as_base
19376 export CONFIG_SHELL
19377 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19378 fi;;
19379 esac
19380 done
19381 done
19382 ;;
19383 esac
19384
19385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19386 # uniformly replaced by the line number. The first 'sed' inserts a
19387 # line-number line before each line; the second 'sed' does the real
19388 # work. The second script uses 'N' to pair each line-number line
19389 # with the numbered line, and appends trailing '-' during
19390 # substitution so that $LINENO is not a special case at line end.
19391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19392 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19393 sed '=' <$as_myself |
19394 sed '
19395 N
19396 s,$,-,
19397 : loop
19398 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19399 t loop
19400 s,-$,,
19401 s,^['$as_cr_digits']*\n,,
19402 ' >$as_me.lineno &&
19403 chmod +x $as_me.lineno ||
19404 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19405 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19406 { (exit 1); exit 1; }; }
19407
19408 # Don't try to exec as it changes $[0], causing all sort of problems
19409 # (the dirname of $[0] is not the place where we might find the
19410 # original and so on. Autoconf is especially sensible to this).
19411 . ./$as_me.lineno
19412 # Exit status is that of the last command.
19413 exit
19414 }
19415
19416
19417 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19418 *c*,-n*) ECHO_N= ECHO_C='
19419 ' ECHO_T=' ' ;;
19420 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19421 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19422 esac
19423
19424 if expr a : '\(a\)' >/dev/null 2>&1; then
19425 as_expr=expr
19426 else
19427 as_expr=false
19428 fi
19429
19430 rm -f conf$$ conf$$.exe conf$$.file
19431 echo >conf$$.file
19432 if ln -s conf$$.file conf$$ 2>/dev/null; then
19433 # We could just check for DJGPP; but this test a) works b) is more generic
19434 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19435 if test -f conf$$.exe; then
19436 # Don't use ln at all; we don't have any links
19437 as_ln_s='cp -p'
19438 else
19439 as_ln_s='ln -s'
19440 fi
19441 elif ln conf$$.file conf$$ 2>/dev/null; then
19442 as_ln_s=ln
19443 else
19444 as_ln_s='cp -p'
19445 fi
19446 rm -f conf$$ conf$$.exe conf$$.file
19447
19448 if mkdir -p . 2>/dev/null; then
19449 as_mkdir_p=:
19450 else
19451 test -d ./-p && rmdir ./-p
19452 as_mkdir_p=false
19453 fi
19454
19455 as_executable_p="test -f"
19456
19457 # Sed expression to map a string onto a valid CPP name.
19458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19459
19460 # Sed expression to map a string onto a valid variable name.
19461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19462
19463
19464 # IFS
19465 # We need space, tab and new line, in precisely that order.
19466 as_nl='
19467 '
19468 IFS=" $as_nl"
19469
19470 # CDPATH.
19471 $as_unset CDPATH
19472
19473 exec 6>&1
19474
19475 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19476 # report actual input values of CONFIG_FILES etc. instead of their
19477 # values after options handling. Logging --version etc. is OK.
19478 exec 5>>config.log
19479 {
19480 echo
19481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19482 ## Running $as_me. ##
19483 _ASBOX
19484 } >&5
19485 cat >&5 <<_CSEOF
19486
19487 This file was extended by GNU Classpath $as_me 0.92, which was
19488 generated by GNU Autoconf 2.59. Invocation command line was
19489
19490 CONFIG_FILES = $CONFIG_FILES
19491 CONFIG_HEADERS = $CONFIG_HEADERS
19492 CONFIG_LINKS = $CONFIG_LINKS
19493 CONFIG_COMMANDS = $CONFIG_COMMANDS
19494 $ $0 $@
19495
19496 _CSEOF
19497 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19498 echo >&5
19499 _ACEOF
19500
19501 # Files that config.status was made for.
19502 if test -n "$ac_config_files"; then
19503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19504 fi
19505
19506 if test -n "$ac_config_headers"; then
19507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19508 fi
19509
19510 if test -n "$ac_config_links"; then
19511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19512 fi
19513
19514 if test -n "$ac_config_commands"; then
19515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19516 fi
19517
19518 cat >>$CONFIG_STATUS <<\_ACEOF
19519
19520 ac_cs_usage="\
19521 \`$as_me' instantiates files from templates according to the
19522 current configuration.
19523
19524 Usage: $0 [OPTIONS] [FILE]...
19525
19526 -h, --help print this help, then exit
19527 -V, --version print version number, then exit
19528 -q, --quiet do not print progress messages
19529 -d, --debug don't remove temporary files
19530 --recheck update $as_me by reconfiguring in the same conditions
19531 --file=FILE[:TEMPLATE]
19532 instantiate the configuration file FILE
19533 --header=FILE[:TEMPLATE]
19534 instantiate the configuration header FILE
19535
19536 Configuration files:
19537 $config_files
19538
19539 Configuration headers:
19540 $config_headers
19541
19542 Configuration links:
19543 $config_links
19544
19545 Configuration commands:
19546 $config_commands
19547
19548 Report bugs to <bug-autoconf@gnu.org>."
19549 _ACEOF
19550
19551 cat >>$CONFIG_STATUS <<_ACEOF
19552 ac_cs_version="\\
19553 GNU Classpath config.status 0.92
19554 configured by $0, generated by GNU Autoconf 2.59,
19555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19556
19557 Copyright (C) 2003 Free Software Foundation, Inc.
19558 This config.status script is free software; the Free Software Foundation
19559 gives unlimited permission to copy, distribute and modify it."
19560 srcdir=$srcdir
19561 INSTALL="$INSTALL"
19562 _ACEOF
19563
19564 cat >>$CONFIG_STATUS <<\_ACEOF
19565 # If no file are specified by the user, then we need to provide default
19566 # value. By we need to know if files were specified by the user.
19567 ac_need_defaults=:
19568 while test $# != 0
19569 do
19570 case $1 in
19571 --*=*)
19572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19574 ac_shift=:
19575 ;;
19576 -*)
19577 ac_option=$1
19578 ac_optarg=$2
19579 ac_shift=shift
19580 ;;
19581 *) # This is not an option, so the user has probably given explicit
19582 # arguments.
19583 ac_option=$1
19584 ac_need_defaults=false;;
19585 esac
19586
19587 case $ac_option in
19588 # Handling of the options.
19589 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF
19591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19592 ac_cs_recheck=: ;;
19593 --version | --vers* | -V )
19594 echo "$ac_cs_version"; exit 0 ;;
19595 --he | --h)
19596 # Conflict between --help and --header
19597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19598 Try \`$0 --help' for more information." >&5
19599 echo "$as_me: error: ambiguous option: $1
19600 Try \`$0 --help' for more information." >&2;}
19601 { (exit 1); exit 1; }; };;
19602 --help | --hel | -h )
19603 echo "$ac_cs_usage"; exit 0 ;;
19604 --debug | --d* | -d )
19605 debug=: ;;
19606 --file | --fil | --fi | --f )
19607 $ac_shift
19608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19609 ac_need_defaults=false;;
19610 --header | --heade | --head | --hea )
19611 $ac_shift
19612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19613 ac_need_defaults=false;;
19614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19616 ac_cs_silent=: ;;
19617
19618 # This is an error.
19619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19620 Try \`$0 --help' for more information." >&5
19621 echo "$as_me: error: unrecognized option: $1
19622 Try \`$0 --help' for more information." >&2;}
19623 { (exit 1); exit 1; }; } ;;
19624
19625 *) ac_config_targets="$ac_config_targets $1" ;;
19626
19627 esac
19628 shift
19629 done
19630
19631 ac_configure_extra_args=
19632
19633 if $ac_cs_silent; then
19634 exec 6>/dev/null
19635 ac_configure_extra_args="$ac_configure_extra_args --silent"
19636 fi
19637
19638 _ACEOF
19639 cat >>$CONFIG_STATUS <<_ACEOF
19640 if \$ac_cs_recheck; then
19641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19643 fi
19644
19645 _ACEOF
19646
19647 cat >>$CONFIG_STATUS <<_ACEOF
19648 #
19649 # INIT-COMMANDS section.
19650 #
19651
19652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19653 # variables for create stdint.h replacement
19654 PACKAGE="$PACKAGE"
19655 VERSION="$VERSION"
19656 ac_stdint_h="$ac_stdint_h"
19657 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19658 ac_cv_stdint_message="$ac_cv_stdint_message"
19659 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19660 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19661 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19662 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19663 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19664 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19665 ac_cv_char_data_model="$ac_cv_char_data_model"
19666 ac_cv_long_data_model="$ac_cv_long_data_model"
19667 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19668 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19669 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19670
19671
19672 _ACEOF
19673
19674
19675
19676 cat >>$CONFIG_STATUS <<\_ACEOF
19677 for ac_config_target in $ac_config_targets
19678 do
19679 case "$ac_config_target" in
19680 # Handling of arguments.
19681 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
19682 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19683 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19684 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
19685 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
19686 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
19687 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
19688 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
19689 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
19690 "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
19691 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19692 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
19693 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
19694 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
19695 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
19696 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
19697 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
19698 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
19699 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
19700 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
19701 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
19702 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
19703 "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
19704 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
19705 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
19706 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
19707 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
19708 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
19709 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
19710 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
19711 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
19712 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
19713 "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
19714 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19715 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
19716 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19717 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
19718 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
19719 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19720 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19721 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
19722 "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
19723 "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
19724 "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
19725 "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
19726 "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
19727 "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
19728 "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
19729 "tools/appletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/appletviewer" ;;
19730 "tools/jarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/jarsigner" ;;
19731 "tools/keytool" ) CONFIG_FILES="$CONFIG_FILES tools/keytool" ;;
19732 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
19733 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19734 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
19735 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19736 "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
19737 "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
19738 "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
19739 "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
19740 "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
19741 "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
19742 "appletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS appletviewer" ;;
19743 "jarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS jarsigner" ;;
19744 "keytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS keytool" ;;
19745 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
19746 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
19747 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19749 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19750 { (exit 1); exit 1; }; };;
19751 esac
19752 done
19753
19754 # If the user did not use the arguments to specify the items to instantiate,
19755 # then the envvar interface is used. Set only those that are not.
19756 # We use the long form for the default assignment because of an extremely
19757 # bizarre bug on SunOS 4.1.3.
19758 if $ac_need_defaults; then
19759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19761 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19763 fi
19764
19765 # Have a temporary directory for convenience. Make it in the build tree
19766 # simply because there is no reason to put it here, and in addition,
19767 # creating and moving files from /tmp can sometimes cause problems.
19768 # Create a temporary directory, and hook for its removal unless debugging.
19769 $debug ||
19770 {
19771 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19772 trap '{ (exit 1); exit 1; }' 1 2 13 15
19773 }
19774
19775 # Create a (secure) tmp directory for tmp files.
19776
19777 {
19778 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19779 test -n "$tmp" && test -d "$tmp"
19780 } ||
19781 {
19782 tmp=./confstat$$-$RANDOM
19783 (umask 077 && mkdir $tmp)
19784 } ||
19785 {
19786 echo "$me: cannot create a temporary directory in ." >&2
19787 { (exit 1); exit 1; }
19788 }
19789
19790 _ACEOF
19791
19792 cat >>$CONFIG_STATUS <<_ACEOF
19793
19794 #
19795 # CONFIG_FILES section.
19796 #
19797
19798 # No need to generate the scripts if there are no CONFIG_FILES.
19799 # This happens for instance when ./config.status config.h
19800 if test -n "\$CONFIG_FILES"; then
19801 # Protect against being on the right side of a sed subst in config.status.
19802 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19803 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19804 s,@SHELL@,$SHELL,;t t
19805 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19806 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19807 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19808 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19809 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19810 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19811 s,@exec_prefix@,$exec_prefix,;t t
19812 s,@prefix@,$prefix,;t t
19813 s,@program_transform_name@,$program_transform_name,;t t
19814 s,@bindir@,$bindir,;t t
19815 s,@sbindir@,$sbindir,;t t
19816 s,@libexecdir@,$libexecdir,;t t
19817 s,@datadir@,$datadir,;t t
19818 s,@sysconfdir@,$sysconfdir,;t t
19819 s,@sharedstatedir@,$sharedstatedir,;t t
19820 s,@localstatedir@,$localstatedir,;t t
19821 s,@libdir@,$libdir,;t t
19822 s,@includedir@,$includedir,;t t
19823 s,@oldincludedir@,$oldincludedir,;t t
19824 s,@infodir@,$infodir,;t t
19825 s,@mandir@,$mandir,;t t
19826 s,@build_alias@,$build_alias,;t t
19827 s,@host_alias@,$host_alias,;t t
19828 s,@target_alias@,$target_alias,;t t
19829 s,@DEFS@,$DEFS,;t t
19830 s,@ECHO_C@,$ECHO_C,;t t
19831 s,@ECHO_N@,$ECHO_N,;t t
19832 s,@ECHO_T@,$ECHO_T,;t t
19833 s,@LIBS@,$LIBS,;t t
19834 s,@build@,$build,;t t
19835 s,@build_cpu@,$build_cpu,;t t
19836 s,@build_vendor@,$build_vendor,;t t
19837 s,@build_os@,$build_os,;t t
19838 s,@host@,$host,;t t
19839 s,@host_cpu@,$host_cpu,;t t
19840 s,@host_vendor@,$host_vendor,;t t
19841 s,@host_os@,$host_os,;t t
19842 s,@target@,$target,;t t
19843 s,@target_cpu@,$target_cpu,;t t
19844 s,@target_vendor@,$target_vendor,;t t
19845 s,@target_os@,$target_os,;t t
19846 s,@LIBVERSION@,$LIBVERSION,;t t
19847 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
19848 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
19849 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19850 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19851 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19852 s,@CYGPATH_W@,$CYGPATH_W,;t t
19853 s,@PACKAGE@,$PACKAGE,;t t
19854 s,@VERSION@,$VERSION,;t t
19855 s,@ACLOCAL@,$ACLOCAL,;t t
19856 s,@AUTOCONF@,$AUTOCONF,;t t
19857 s,@AUTOMAKE@,$AUTOMAKE,;t t
19858 s,@AUTOHEADER@,$AUTOHEADER,;t t
19859 s,@MAKEINFO@,$MAKEINFO,;t t
19860 s,@install_sh@,$install_sh,;t t
19861 s,@STRIP@,$STRIP,;t t
19862 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19863 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19864 s,@mkdir_p@,$mkdir_p,;t t
19865 s,@AWK@,$AWK,;t t
19866 s,@SET_MAKE@,$SET_MAKE,;t t
19867 s,@am__leading_dot@,$am__leading_dot,;t t
19868 s,@AMTAR@,$AMTAR,;t t
19869 s,@am__tar@,$am__tar,;t t
19870 s,@am__untar@,$am__untar,;t t
19871 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
19872 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
19873 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
19874 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
19875 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
19876 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
19877 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
19878 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
19879 s,@default_toolkit@,$default_toolkit,;t t
19880 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
19881 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
19882 s,@CC@,$CC,;t t
19883 s,@CFLAGS@,$CFLAGS,;t t
19884 s,@LDFLAGS@,$LDFLAGS,;t t
19885 s,@CPPFLAGS@,$CPPFLAGS,;t t
19886 s,@ac_ct_CC@,$ac_ct_CC,;t t
19887 s,@EXEEXT@,$EXEEXT,;t t
19888 s,@OBJEXT@,$OBJEXT,;t t
19889 s,@DEPDIR@,$DEPDIR,;t t
19890 s,@am__include@,$am__include,;t t
19891 s,@am__quote@,$am__quote,;t t
19892 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19893 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19894 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19895 s,@CCDEPMODE@,$CCDEPMODE,;t t
19896 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19897 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19898 s,@CPP@,$CPP,;t t
19899 s,@EGREP@,$EGREP,;t t
19900 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
19901 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
19902 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
19903 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
19904 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
19905 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
19906 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
19907 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
19908 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
19909 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
19910 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
19911 s,@glibjdir@,$glibjdir,;t t
19912 s,@VM_BINARY@,$VM_BINARY,;t t
19913 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
19914 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
19915 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
19916 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
19917 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
19918 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
19919 s,@LN_S@,$LN_S,;t t
19920 s,@CXX@,$CXX,;t t
19921 s,@CXXFLAGS@,$CXXFLAGS,;t t
19922 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19923 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19924 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19925 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19926 s,@RANLIB@,$RANLIB,;t t
19927 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19928 s,@LIBTOOL@,$LIBTOOL,;t t
19929 s,@CXXCPP@,$CXXCPP,;t t
19930 s,@PERL@,$PERL,;t t
19931 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
19932 s,@LIBMAGIC@,$LIBMAGIC,;t t
19933 s,@LIBICONV@,$LIBICONV,;t t
19934 s,@LTLIBICONV@,$LTLIBICONV,;t t
19935 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
19936 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
19937 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
19938 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19939 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
19940 s,@XML_LIBS@,$XML_LIBS,;t t
19941 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
19942 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
19943 s,@X_CFLAGS@,$X_CFLAGS,;t t
19944 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19945 s,@X_LIBS@,$X_LIBS,;t t
19946 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19947 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19948 s,@GTK_LIBS@,$GTK_LIBS,;t t
19949 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
19950 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
19951 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
19952 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
19953 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
19954 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
19955 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
19956 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
19957 s,@GDK_LIBS@,$GDK_LIBS,;t t
19958 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
19959 s,@QT_LIBS@,$QT_LIBS,;t t
19960 s,@MOC@,$MOC,;t t
19961 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
19962 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
19963 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
19964 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
19965 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
19966 s,@USER_JAVAH@,$USER_JAVAH,;t t
19967 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
19968 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
19969 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
19970 s,@GCJ@,$GCJ,;t t
19971 s,@JIKES@,$JIKES,;t t
19972 s,@JIKESENCODING@,$JIKESENCODING,;t t
19973 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
19974 s,@KJC@,$KJC,;t t
19975 s,@GCJX@,$GCJX,;t t
19976 s,@ECJ@,$ECJ,;t t
19977 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
19978 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
19979 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
19980 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
19981 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
19982 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
19983 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
19984 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
19985 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
19986 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
19987 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
19988 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
19989 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
19990 s,@vm_classes@,$vm_classes,;t t
19991 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19992 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19993 s,@MAINT@,$MAINT,;t t
19994 s,@LIBDEBUG@,$LIBDEBUG,;t t
19995 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
19996 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
19997 s,@REMOVE@,$REMOVE,;t t
19998 s,@MKDIR@,$MKDIR,;t t
19999 s,@CP@,$CP,;t t
20000 s,@DATE@,$DATE,;t t
20001 s,@FIND@,$FIND,;t t
20002 s,@ZIP@,$ZIP,;t t
20003 s,@FASTJAR@,$FASTJAR,;t t
20004 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
20005 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
20006 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
20007 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
20008 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
20009 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
20010 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
20011 s,@GJDOC@,$GJDOC,;t t
20012 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
20013 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
20014 s,@JAY@,$JAY,;t t
20015 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
20016 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
20017 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
20018 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
20019 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
20020 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
20021 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
20022 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
20023 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
20024 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
20025 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
20026 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
20027 s,@LIBOBJS@,$LIBOBJS,;t t
20028 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20029 CEOF
20030
20031 _ACEOF
20032
20033 cat >>$CONFIG_STATUS <<\_ACEOF
20034 # Split the substitutions into bite-sized pieces for seds with
20035 # small command number limits, like on Digital OSF/1 and HP-UX.
20036 ac_max_sed_lines=48
20037 ac_sed_frag=1 # Number of current file.
20038 ac_beg=1 # First line for current file.
20039 ac_end=$ac_max_sed_lines # Line after last line for current file.
20040 ac_more_lines=:
20041 ac_sed_cmds=
20042 while $ac_more_lines; do
20043 if test $ac_beg -gt 1; then
20044 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20045 else
20046 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20047 fi
20048 if test ! -s $tmp/subs.frag; then
20049 ac_more_lines=false
20050 else
20051 # The purpose of the label and of the branching condition is to
20052 # speed up the sed processing (if there are no `@' at all, there
20053 # is no need to browse any of the substitutions).
20054 # These are the two extra sed commands mentioned above.
20055 (echo ':t
20056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20057 if test -z "$ac_sed_cmds"; then
20058 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20059 else
20060 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20061 fi
20062 ac_sed_frag=`expr $ac_sed_frag + 1`
20063 ac_beg=$ac_end
20064 ac_end=`expr $ac_end + $ac_max_sed_lines`
20065 fi
20066 done
20067 if test -z "$ac_sed_cmds"; then
20068 ac_sed_cmds=cat
20069 fi
20070 fi # test -n "$CONFIG_FILES"
20071
20072 _ACEOF
20073 cat >>$CONFIG_STATUS <<\_ACEOF
20074 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20076 case $ac_file in
20077 - | *:- | *:-:* ) # input from stdin
20078 cat >$tmp/stdin
20079 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20081 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20083 * ) ac_file_in=$ac_file.in ;;
20084 esac
20085
20086 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20089 X"$ac_file" : 'X\(//\)[^/]' \| \
20090 X"$ac_file" : 'X\(//\)$' \| \
20091 X"$ac_file" : 'X\(/\)' \| \
20092 . : '\(.\)' 2>/dev/null ||
20093 echo X"$ac_file" |
20094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20096 /^X\(\/\/\)$/{ s//\1/; q; }
20097 /^X\(\/\).*/{ s//\1/; q; }
20098 s/.*/./; q'`
20099 { if $as_mkdir_p; then
20100 mkdir -p "$ac_dir"
20101 else
20102 as_dir="$ac_dir"
20103 as_dirs=
20104 while test ! -d "$as_dir"; do
20105 as_dirs="$as_dir $as_dirs"
20106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20108 X"$as_dir" : 'X\(//\)[^/]' \| \
20109 X"$as_dir" : 'X\(//\)$' \| \
20110 X"$as_dir" : 'X\(/\)' \| \
20111 . : '\(.\)' 2>/dev/null ||
20112 echo X"$as_dir" |
20113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20115 /^X\(\/\/\)$/{ s//\1/; q; }
20116 /^X\(\/\).*/{ s//\1/; q; }
20117 s/.*/./; q'`
20118 done
20119 test ! -n "$as_dirs" || mkdir $as_dirs
20120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20122 { (exit 1); exit 1; }; }; }
20123
20124 ac_builddir=.
20125
20126 if test "$ac_dir" != .; then
20127 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20128 # A "../" for each directory in $ac_dir_suffix.
20129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20130 else
20131 ac_dir_suffix= ac_top_builddir=
20132 fi
20133
20134 case $srcdir in
20135 .) # No --srcdir option. We are building in place.
20136 ac_srcdir=.
20137 if test -z "$ac_top_builddir"; then
20138 ac_top_srcdir=.
20139 else
20140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20141 fi ;;
20142 [\\/]* | ?:[\\/]* ) # Absolute path.
20143 ac_srcdir=$srcdir$ac_dir_suffix;
20144 ac_top_srcdir=$srcdir ;;
20145 *) # Relative path.
20146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20147 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20148 esac
20149
20150 # Do not use `cd foo && pwd` to compute absolute paths, because
20151 # the directories may not exist.
20152 case `pwd` in
20153 .) ac_abs_builddir="$ac_dir";;
20154 *)
20155 case "$ac_dir" in
20156 .) ac_abs_builddir=`pwd`;;
20157 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20158 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20159 esac;;
20160 esac
20161 case $ac_abs_builddir in
20162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20163 *)
20164 case ${ac_top_builddir}. in
20165 .) ac_abs_top_builddir=$ac_abs_builddir;;
20166 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20167 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20168 esac;;
20169 esac
20170 case $ac_abs_builddir in
20171 .) ac_abs_srcdir=$ac_srcdir;;
20172 *)
20173 case $ac_srcdir in
20174 .) ac_abs_srcdir=$ac_abs_builddir;;
20175 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20176 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20177 esac;;
20178 esac
20179 case $ac_abs_builddir in
20180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20181 *)
20182 case $ac_top_srcdir in
20183 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20184 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20185 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20186 esac;;
20187 esac
20188
20189
20190 case $INSTALL in
20191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20192 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20193 esac
20194
20195 if test x"$ac_file" != x-; then
20196 { echo "$as_me:$LINENO: creating $ac_file" >&5
20197 echo "$as_me: creating $ac_file" >&6;}
20198 rm -f "$ac_file"
20199 fi
20200 # Let's still pretend it is `configure' which instantiates (i.e., don't
20201 # use $as_me), people would be surprised to read:
20202 # /* config.h. Generated by config.status. */
20203 if test x"$ac_file" = x-; then
20204 configure_input=
20205 else
20206 configure_input="$ac_file. "
20207 fi
20208 configure_input=$configure_input"Generated from `echo $ac_file_in |
20209 sed 's,.*/,,'` by configure."
20210
20211 # First look for the input files in the build tree, otherwise in the
20212 # src tree.
20213 ac_file_inputs=`IFS=:
20214 for f in $ac_file_in; do
20215 case $f in
20216 -) echo $tmp/stdin ;;
20217 [\\/$]*)
20218 # Absolute (can't be DOS-style, as IFS=:)
20219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20220 echo "$as_me: error: cannot find input file: $f" >&2;}
20221 { (exit 1); exit 1; }; }
20222 echo "$f";;
20223 *) # Relative
20224 if test -f "$f"; then
20225 # Build tree
20226 echo "$f"
20227 elif test -f "$srcdir/$f"; then
20228 # Source tree
20229 echo "$srcdir/$f"
20230 else
20231 # /dev/null tree
20232 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20233 echo "$as_me: error: cannot find input file: $f" >&2;}
20234 { (exit 1); exit 1; }; }
20235 fi;;
20236 esac
20237 done` || { (exit 1); exit 1; }
20238 _ACEOF
20239 cat >>$CONFIG_STATUS <<_ACEOF
20240 sed "$ac_vpsub
20241 $extrasub
20242 _ACEOF
20243 cat >>$CONFIG_STATUS <<\_ACEOF
20244 :t
20245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20246 s,@configure_input@,$configure_input,;t t
20247 s,@srcdir@,$ac_srcdir,;t t
20248 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20249 s,@top_srcdir@,$ac_top_srcdir,;t t
20250 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20251 s,@builddir@,$ac_builddir,;t t
20252 s,@abs_builddir@,$ac_abs_builddir,;t t
20253 s,@top_builddir@,$ac_top_builddir,;t t
20254 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20255 s,@INSTALL@,$ac_INSTALL,;t t
20256 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20257 rm -f $tmp/stdin
20258 if test x"$ac_file" != x-; then
20259 mv $tmp/out $ac_file
20260 else
20261 cat $tmp/out
20262 rm -f $tmp/out
20263 fi
20264
20265 done
20266 _ACEOF
20267 cat >>$CONFIG_STATUS <<\_ACEOF
20268
20269 #
20270 # CONFIG_HEADER section.
20271 #
20272
20273 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20274 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20275 #
20276 # ac_d sets the value in "#define NAME VALUE" lines.
20277 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20278 ac_dB='[ ].*$,\1#\2'
20279 ac_dC=' '
20280 ac_dD=',;t'
20281 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20282 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20283 ac_uB='$,\1#\2define\3'
20284 ac_uC=' '
20285 ac_uD=',;t'
20286
20287 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20289 case $ac_file in
20290 - | *:- | *:-:* ) # input from stdin
20291 cat >$tmp/stdin
20292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20296 * ) ac_file_in=$ac_file.in ;;
20297 esac
20298
20299 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20300 echo "$as_me: creating $ac_file" >&6;}
20301
20302 # First look for the input files in the build tree, otherwise in the
20303 # src tree.
20304 ac_file_inputs=`IFS=:
20305 for f in $ac_file_in; do
20306 case $f in
20307 -) echo $tmp/stdin ;;
20308 [\\/$]*)
20309 # Absolute (can't be DOS-style, as IFS=:)
20310 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20311 echo "$as_me: error: cannot find input file: $f" >&2;}
20312 { (exit 1); exit 1; }; }
20313 # Do quote $f, to prevent DOS paths from being IFS'd.
20314 echo "$f";;
20315 *) # Relative
20316 if test -f "$f"; then
20317 # Build tree
20318 echo "$f"
20319 elif test -f "$srcdir/$f"; then
20320 # Source tree
20321 echo "$srcdir/$f"
20322 else
20323 # /dev/null tree
20324 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20325 echo "$as_me: error: cannot find input file: $f" >&2;}
20326 { (exit 1); exit 1; }; }
20327 fi;;
20328 esac
20329 done` || { (exit 1); exit 1; }
20330 # Remove the trailing spaces.
20331 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20332
20333 _ACEOF
20334
20335 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20336 # `conftest.undefs', that substitutes the proper values into
20337 # config.h.in to produce config.h. The first handles `#define'
20338 # templates, and the second `#undef' templates.
20339 # And first: Protect against being on the right side of a sed subst in
20340 # config.status. Protect against being in an unquoted here document
20341 # in config.status.
20342 rm -f conftest.defines conftest.undefs
20343 # Using a here document instead of a string reduces the quoting nightmare.
20344 # Putting comments in sed scripts is not portable.
20345 #
20346 # `end' is used to avoid that the second main sed command (meant for
20347 # 0-ary CPP macros) applies to n-ary macro definitions.
20348 # See the Autoconf documentation for `clear'.
20349 cat >confdef2sed.sed <<\_ACEOF
20350 s/[\\&,]/\\&/g
20351 s,[\\$`],\\&,g
20352 t clear
20353 : clear
20354 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20355 t end
20356 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20357 : end
20358 _ACEOF
20359 # If some macros were called several times there might be several times
20360 # the same #defines, which is useless. Nevertheless, we may not want to
20361 # sort them, since we want the *last* AC-DEFINE to be honored.
20362 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20363 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20364 rm -f confdef2sed.sed
20365
20366 # This sed command replaces #undef with comments. This is necessary, for
20367 # example, in the case of _POSIX_SOURCE, which is predefined and required
20368 # on some systems where configure will not decide to define it.
20369 cat >>conftest.undefs <<\_ACEOF
20370 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20371 _ACEOF
20372
20373 # Break up conftest.defines because some shells have a limit on the size
20374 # of here documents, and old seds have small limits too (100 cmds).
20375 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20376 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20377 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20378 echo ' :' >>$CONFIG_STATUS
20379 rm -f conftest.tail
20380 while grep . conftest.defines >/dev/null
20381 do
20382 # Write a limited-size here document to $tmp/defines.sed.
20383 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20384 # Speed up: don't consider the non `#define' lines.
20385 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20386 # Work around the forget-to-reset-the-flag bug.
20387 echo 't clr' >>$CONFIG_STATUS
20388 echo ': clr' >>$CONFIG_STATUS
20389 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20390 echo 'CEOF
20391 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20392 rm -f $tmp/in
20393 mv $tmp/out $tmp/in
20394 ' >>$CONFIG_STATUS
20395 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20396 rm -f conftest.defines
20397 mv conftest.tail conftest.defines
20398 done
20399 rm -f conftest.defines
20400 echo ' fi # grep' >>$CONFIG_STATUS
20401 echo >>$CONFIG_STATUS
20402
20403 # Break up conftest.undefs because some shells have a limit on the size
20404 # of here documents, and old seds have small limits too (100 cmds).
20405 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20406 rm -f conftest.tail
20407 while grep . conftest.undefs >/dev/null
20408 do
20409 # Write a limited-size here document to $tmp/undefs.sed.
20410 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20411 # Speed up: don't consider the non `#undef'
20412 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20413 # Work around the forget-to-reset-the-flag bug.
20414 echo 't clr' >>$CONFIG_STATUS
20415 echo ': clr' >>$CONFIG_STATUS
20416 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20417 echo 'CEOF
20418 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20419 rm -f $tmp/in
20420 mv $tmp/out $tmp/in
20421 ' >>$CONFIG_STATUS
20422 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20423 rm -f conftest.undefs
20424 mv conftest.tail conftest.undefs
20425 done
20426 rm -f conftest.undefs
20427
20428 cat >>$CONFIG_STATUS <<\_ACEOF
20429 # Let's still pretend it is `configure' which instantiates (i.e., don't
20430 # use $as_me), people would be surprised to read:
20431 # /* config.h. Generated by config.status. */
20432 if test x"$ac_file" = x-; then
20433 echo "/* Generated by configure. */" >$tmp/config.h
20434 else
20435 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20436 fi
20437 cat $tmp/in >>$tmp/config.h
20438 rm -f $tmp/in
20439 if test x"$ac_file" != x-; then
20440 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20441 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20442 echo "$as_me: $ac_file is unchanged" >&6;}
20443 else
20444 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20446 X"$ac_file" : 'X\(//\)[^/]' \| \
20447 X"$ac_file" : 'X\(//\)$' \| \
20448 X"$ac_file" : 'X\(/\)' \| \
20449 . : '\(.\)' 2>/dev/null ||
20450 echo X"$ac_file" |
20451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20453 /^X\(\/\/\)$/{ s//\1/; q; }
20454 /^X\(\/\).*/{ s//\1/; q; }
20455 s/.*/./; q'`
20456 { if $as_mkdir_p; then
20457 mkdir -p "$ac_dir"
20458 else
20459 as_dir="$ac_dir"
20460 as_dirs=
20461 while test ! -d "$as_dir"; do
20462 as_dirs="$as_dir $as_dirs"
20463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20465 X"$as_dir" : 'X\(//\)[^/]' \| \
20466 X"$as_dir" : 'X\(//\)$' \| \
20467 X"$as_dir" : 'X\(/\)' \| \
20468 . : '\(.\)' 2>/dev/null ||
20469 echo X"$as_dir" |
20470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20472 /^X\(\/\/\)$/{ s//\1/; q; }
20473 /^X\(\/\).*/{ s//\1/; q; }
20474 s/.*/./; q'`
20475 done
20476 test ! -n "$as_dirs" || mkdir $as_dirs
20477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20479 { (exit 1); exit 1; }; }; }
20480
20481 rm -f $ac_file
20482 mv $tmp/config.h $ac_file
20483 fi
20484 else
20485 cat $tmp/config.h
20486 rm -f $tmp/config.h
20487 fi
20488 # Compute $ac_file's index in $config_headers.
20489 _am_stamp_count=1
20490 for _am_header in $config_headers :; do
20491 case $_am_header in
20492 $ac_file | $ac_file:* )
20493 break ;;
20494 * )
20495 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20496 esac
20497 done
20498 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20499 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20500 X$ac_file : 'X\(//\)[^/]' \| \
20501 X$ac_file : 'X\(//\)$' \| \
20502 X$ac_file : 'X\(/\)' \| \
20503 . : '\(.\)' 2>/dev/null ||
20504 echo X$ac_file |
20505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20507 /^X\(\/\/\)$/{ s//\1/; q; }
20508 /^X\(\/\).*/{ s//\1/; q; }
20509 s/.*/./; q'`/stamp-h$_am_stamp_count
20510 done
20511 _ACEOF
20512 cat >>$CONFIG_STATUS <<\_ACEOF
20513
20514 #
20515 # CONFIG_LINKS section.
20516 #
20517
20518 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
20519 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20520 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20521
20522 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
20523 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
20524
20525 if test ! -r $srcdir/$ac_source; then
20526 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
20527 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
20528 { (exit 1); exit 1; }; }
20529 fi
20530 rm -f $ac_dest
20531
20532 # Make relative symlinks.
20533 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
20534 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535 X"$ac_dest" : 'X\(//\)[^/]' \| \
20536 X"$ac_dest" : 'X\(//\)$' \| \
20537 X"$ac_dest" : 'X\(/\)' \| \
20538 . : '\(.\)' 2>/dev/null ||
20539 echo X"$ac_dest" |
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20542 /^X\(\/\/\)$/{ s//\1/; q; }
20543 /^X\(\/\).*/{ s//\1/; q; }
20544 s/.*/./; q'`
20545 { if $as_mkdir_p; then
20546 mkdir -p "$ac_dest_dir"
20547 else
20548 as_dir="$ac_dest_dir"
20549 as_dirs=
20550 while test ! -d "$as_dir"; do
20551 as_dirs="$as_dir $as_dirs"
20552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| \
20557 . : '\(.\)' 2>/dev/null ||
20558 echo X"$as_dir" |
20559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20561 /^X\(\/\/\)$/{ s//\1/; q; }
20562 /^X\(\/\).*/{ s//\1/; q; }
20563 s/.*/./; q'`
20564 done
20565 test ! -n "$as_dirs" || mkdir $as_dirs
20566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
20567 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
20568 { (exit 1); exit 1; }; }; }
20569
20570 ac_builddir=.
20571
20572 if test "$ac_dest_dir" != .; then
20573 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
20574 # A "../" for each directory in $ac_dir_suffix.
20575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20576 else
20577 ac_dir_suffix= ac_top_builddir=
20578 fi
20579
20580 case $srcdir in
20581 .) # No --srcdir option. We are building in place.
20582 ac_srcdir=.
20583 if test -z "$ac_top_builddir"; then
20584 ac_top_srcdir=.
20585 else
20586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20587 fi ;;
20588 [\\/]* | ?:[\\/]* ) # Absolute path.
20589 ac_srcdir=$srcdir$ac_dir_suffix;
20590 ac_top_srcdir=$srcdir ;;
20591 *) # Relative path.
20592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20594 esac
20595
20596 # Do not use `cd foo && pwd` to compute absolute paths, because
20597 # the directories may not exist.
20598 case `pwd` in
20599 .) ac_abs_builddir="$ac_dest_dir";;
20600 *)
20601 case "$ac_dest_dir" in
20602 .) ac_abs_builddir=`pwd`;;
20603 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
20604 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
20605 esac;;
20606 esac
20607 case $ac_abs_builddir in
20608 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20609 *)
20610 case ${ac_top_builddir}. in
20611 .) ac_abs_top_builddir=$ac_abs_builddir;;
20612 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20613 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20614 esac;;
20615 esac
20616 case $ac_abs_builddir in
20617 .) ac_abs_srcdir=$ac_srcdir;;
20618 *)
20619 case $ac_srcdir in
20620 .) ac_abs_srcdir=$ac_abs_builddir;;
20621 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20622 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20623 esac;;
20624 esac
20625 case $ac_abs_builddir in
20626 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20627 *)
20628 case $ac_top_srcdir in
20629 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20630 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20631 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20632 esac;;
20633 esac
20634
20635
20636 case $srcdir in
20637 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
20638 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
20639 esac
20640
20641 # Try a symlink, then a hard link, then a copy.
20642 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20643 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
20644 cp -p $srcdir/$ac_source $ac_dest ||
20645 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
20646 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
20647 { (exit 1); exit 1; }; }
20648 done
20649 _ACEOF
20650 cat >>$CONFIG_STATUS <<\_ACEOF
20651
20652 #
20653 # CONFIG_COMMANDS section.
20654 #
20655 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20656 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20657 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20658 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$ac_dest" : 'X\(//\)[^/]' \| \
20661 X"$ac_dest" : 'X\(//\)$' \| \
20662 X"$ac_dest" : 'X\(/\)' \| \
20663 . : '\(.\)' 2>/dev/null ||
20664 echo X"$ac_dest" |
20665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20667 /^X\(\/\/\)$/{ s//\1/; q; }
20668 /^X\(\/\).*/{ s//\1/; q; }
20669 s/.*/./; q'`
20670 { if $as_mkdir_p; then
20671 mkdir -p "$ac_dir"
20672 else
20673 as_dir="$ac_dir"
20674 as_dirs=
20675 while test ! -d "$as_dir"; do
20676 as_dirs="$as_dir $as_dirs"
20677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20679 X"$as_dir" : 'X\(//\)[^/]' \| \
20680 X"$as_dir" : 'X\(//\)$' \| \
20681 X"$as_dir" : 'X\(/\)' \| \
20682 . : '\(.\)' 2>/dev/null ||
20683 echo X"$as_dir" |
20684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20686 /^X\(\/\/\)$/{ s//\1/; q; }
20687 /^X\(\/\).*/{ s//\1/; q; }
20688 s/.*/./; q'`
20689 done
20690 test ! -n "$as_dirs" || mkdir $as_dirs
20691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20693 { (exit 1); exit 1; }; }; }
20694
20695 ac_builddir=.
20696
20697 if test "$ac_dir" != .; then
20698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20699 # A "../" for each directory in $ac_dir_suffix.
20700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20701 else
20702 ac_dir_suffix= ac_top_builddir=
20703 fi
20704
20705 case $srcdir in
20706 .) # No --srcdir option. We are building in place.
20707 ac_srcdir=.
20708 if test -z "$ac_top_builddir"; then
20709 ac_top_srcdir=.
20710 else
20711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20712 fi ;;
20713 [\\/]* | ?:[\\/]* ) # Absolute path.
20714 ac_srcdir=$srcdir$ac_dir_suffix;
20715 ac_top_srcdir=$srcdir ;;
20716 *) # Relative path.
20717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20719 esac
20720
20721 # Do not use `cd foo && pwd` to compute absolute paths, because
20722 # the directories may not exist.
20723 case `pwd` in
20724 .) ac_abs_builddir="$ac_dir";;
20725 *)
20726 case "$ac_dir" in
20727 .) ac_abs_builddir=`pwd`;;
20728 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20729 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20730 esac;;
20731 esac
20732 case $ac_abs_builddir in
20733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20734 *)
20735 case ${ac_top_builddir}. in
20736 .) ac_abs_top_builddir=$ac_abs_builddir;;
20737 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20738 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20739 esac;;
20740 esac
20741 case $ac_abs_builddir in
20742 .) ac_abs_srcdir=$ac_srcdir;;
20743 *)
20744 case $ac_srcdir in
20745 .) ac_abs_srcdir=$ac_abs_builddir;;
20746 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20747 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20748 esac;;
20749 esac
20750 case $ac_abs_builddir in
20751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20752 *)
20753 case $ac_top_srcdir in
20754 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20755 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20756 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20757 esac;;
20758 esac
20759
20760
20761 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20762 echo "$as_me: executing $ac_dest commands" >&6;}
20763 case $ac_dest in
20764 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20765 # Strip MF so we end up with the name of the file.
20766 mf=`echo "$mf" | sed -e 's/:.*$//'`
20767 # Check whether this is an Automake generated Makefile or not.
20768 # We used to match only the files named `Makefile.in', but
20769 # some people rename them; so instead we look at the file content.
20770 # Grep'ing the first line is not enough: some people post-process
20771 # each Makefile.in and add a new line on top of each file to say so.
20772 # So let's grep whole file.
20773 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20774 dirpart=`(dirname "$mf") 2>/dev/null ||
20775 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20776 X"$mf" : 'X\(//\)[^/]' \| \
20777 X"$mf" : 'X\(//\)$' \| \
20778 X"$mf" : 'X\(/\)' \| \
20779 . : '\(.\)' 2>/dev/null ||
20780 echo X"$mf" |
20781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20783 /^X\(\/\/\)$/{ s//\1/; q; }
20784 /^X\(\/\).*/{ s//\1/; q; }
20785 s/.*/./; q'`
20786 else
20787 continue
20788 fi
20789 # Extract the definition of DEPDIR, am__include, and am__quote
20790 # from the Makefile without running `make'.
20791 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20792 test -z "$DEPDIR" && continue
20793 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20794 test -z "am__include" && continue
20795 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20796 # When using ansi2knr, U may be empty or an underscore; expand it
20797 U=`sed -n 's/^U = //p' < "$mf"`
20798 # Find all dependency output files, they are included files with
20799 # $(DEPDIR) in their names. We invoke sed twice because it is the
20800 # simplest approach to changing $(DEPDIR) to its actual value in the
20801 # expansion.
20802 for file in `sed -n "
20803 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20804 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20805 # Make sure the directory exists.
20806 test -f "$dirpart/$file" && continue
20807 fdir=`(dirname "$file") 2>/dev/null ||
20808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20809 X"$file" : 'X\(//\)[^/]' \| \
20810 X"$file" : 'X\(//\)$' \| \
20811 X"$file" : 'X\(/\)' \| \
20812 . : '\(.\)' 2>/dev/null ||
20813 echo X"$file" |
20814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20816 /^X\(\/\/\)$/{ s//\1/; q; }
20817 /^X\(\/\).*/{ s//\1/; q; }
20818 s/.*/./; q'`
20819 { if $as_mkdir_p; then
20820 mkdir -p $dirpart/$fdir
20821 else
20822 as_dir=$dirpart/$fdir
20823 as_dirs=
20824 while test ! -d "$as_dir"; do
20825 as_dirs="$as_dir $as_dirs"
20826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20828 X"$as_dir" : 'X\(//\)[^/]' \| \
20829 X"$as_dir" : 'X\(//\)$' \| \
20830 X"$as_dir" : 'X\(/\)' \| \
20831 . : '\(.\)' 2>/dev/null ||
20832 echo X"$as_dir" |
20833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20835 /^X\(\/\/\)$/{ s//\1/; q; }
20836 /^X\(\/\).*/{ s//\1/; q; }
20837 s/.*/./; q'`
20838 done
20839 test ! -n "$as_dirs" || mkdir $as_dirs
20840 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20841 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20842 { (exit 1); exit 1; }; }; }
20843
20844 # echo "creating $dirpart/$file"
20845 echo '# dummy' > "$dirpart/$file"
20846 done
20847 done
20848 ;;
20849 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
20850 $ac_stdint_h )
20851 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
20852 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20853 ac_stdint=$tmp/_stdint.h
20854
20855 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20856 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20857 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20858 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20859 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20860 if test "_$ac_cv_header_stdint_t" != "_" ; then
20861 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20862 echo "#include <stdint.h>" >>$ac_stdint
20863 echo "#endif" >>$ac_stdint
20864 echo "#endif" >>$ac_stdint
20865 else
20866
20867 cat >>$ac_stdint <<STDINT_EOF
20868
20869 /* ................... shortcircuit part ........................... */
20870
20871 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20872 #include <stdint.h>
20873 #else
20874 #include <stddef.h>
20875
20876 /* .................... configured part ............................ */
20877
20878 STDINT_EOF
20879
20880 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20881 if test "_$ac_cv_header_stdint_x" != "_" ; then
20882 ac_header="$ac_cv_header_stdint_x"
20883 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20884 else
20885 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20886 fi
20887
20888 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20889 if test "_$ac_cv_header_stdint_o" != "_" ; then
20890 ac_header="$ac_cv_header_stdint_o"
20891 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20892 else
20893 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20894 fi
20895
20896 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20897 if test "_$ac_cv_header_stdint_u" != "_" ; then
20898 ac_header="$ac_cv_header_stdint_u"
20899 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20900 else
20901 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20902 fi
20903
20904 echo "" >>$ac_stdint
20905
20906 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20907 echo "#include <$ac_header>" >>$ac_stdint
20908 echo "" >>$ac_stdint
20909 fi fi
20910
20911 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20912 if test "$ac_cv_type_uint64_t" = "yes" ; then
20913 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20914 else
20915 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20916 fi
20917 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20918 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20919 else
20920 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20921 fi
20922 echo "" >>$ac_stdint
20923
20924 echo "/* which type model has been detected */" >>$ac_stdint
20925 if test "_$ac_cv_char_data_model" != "_" ; then
20926 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20927 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20928 else
20929 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20930 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20931 fi
20932 echo "" >>$ac_stdint
20933
20934 echo "/* whether int_least types were detected */" >>$ac_stdint
20935 if test "$ac_cv_type_int_least32_t" = "yes"; then
20936 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20937 else
20938 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20939 fi
20940 echo "/* whether int_fast types were detected */" >>$ac_stdint
20941 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20942 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20943 else
20944 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20945 fi
20946 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20947 if test "$ac_cv_type_intmax_t" = "yes"; then
20948 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20949 else
20950 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20951 fi
20952 echo "" >>$ac_stdint
20953
20954 cat >>$ac_stdint <<STDINT_EOF
20955 /* .................... detections part ............................ */
20956
20957 /* whether we need to define bitspecific types from compiler base types */
20958 #ifndef _STDINT_HEADER_INTPTR
20959 #ifndef _STDINT_HEADER_UINT32
20960 #ifndef _STDINT_HEADER_U_INT32
20961 #define _STDINT_NEED_INT_MODEL_T
20962 #else
20963 #define _STDINT_HAVE_U_INT_TYPES
20964 #endif
20965 #endif
20966 #endif
20967
20968 #ifdef _STDINT_HAVE_U_INT_TYPES
20969 #undef _STDINT_NEED_INT_MODEL_T
20970 #endif
20971
20972 #ifdef _STDINT_CHAR_MODEL
20973 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20974 #ifndef _STDINT_BYTE_MODEL
20975 #define _STDINT_BYTE_MODEL 12
20976 #endif
20977 #endif
20978 #endif
20979
20980 #ifndef _STDINT_HAVE_INT_LEAST32_T
20981 #define _STDINT_NEED_INT_LEAST_T
20982 #endif
20983
20984 #ifndef _STDINT_HAVE_INT_FAST32_T
20985 #define _STDINT_NEED_INT_FAST_T
20986 #endif
20987
20988 #ifndef _STDINT_HEADER_INTPTR
20989 #define _STDINT_NEED_INTPTR_T
20990 #ifndef _STDINT_HAVE_INTMAX_T
20991 #define _STDINT_NEED_INTMAX_T
20992 #endif
20993 #endif
20994
20995
20996 /* .................... definition part ............................ */
20997
20998 /* some system headers have good uint64_t */
20999 #ifndef _HAVE_UINT64_T
21000 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
21001 #define _HAVE_UINT64_T
21002 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21003 #define _HAVE_UINT64_T
21004 typedef u_int64_t uint64_t;
21005 #endif
21006 #endif
21007
21008 #ifndef _HAVE_UINT64_T
21009 /* .. here are some common heuristics using compiler runtime specifics */
21010 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21011 #define _HAVE_UINT64_T
21012 #define _HAVE_LONGLONG_UINT64_T
21013 typedef long long int64_t;
21014 typedef unsigned long long uint64_t;
21015
21016 #elif !defined __STRICT_ANSI__
21017 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21018 #define _HAVE_UINT64_T
21019 typedef __int64 int64_t;
21020 typedef unsigned __int64 uint64_t;
21021
21022 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21023 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21024 #if !defined _NO_LONGLONG
21025 #define _HAVE_UINT64_T
21026 #define _HAVE_LONGLONG_UINT64_T
21027 typedef long long int64_t;
21028 typedef unsigned long long uint64_t;
21029 #endif
21030
21031 #elif defined __alpha || (defined __mips && defined _ABIN32)
21032 #if !defined _NO_LONGLONG
21033 typedef long int64_t;
21034 typedef unsigned long uint64_t;
21035 #endif
21036 /* compiler/cpu type to define int64_t */
21037 #endif
21038 #endif
21039 #endif
21040
21041 #if defined _STDINT_HAVE_U_INT_TYPES
21042 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21043 typedef u_int8_t uint8_t;
21044 typedef u_int16_t uint16_t;
21045 typedef u_int32_t uint32_t;
21046
21047 /* glibc compatibility */
21048 #ifndef __int8_t_defined
21049 #define __int8_t_defined
21050 #endif
21051 #endif
21052
21053 #ifdef _STDINT_NEED_INT_MODEL_T
21054 /* we must guess all the basic types. Apart from byte-adressable system, */
21055 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21056 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21057
21058
21059 #if defined _STDINT_BYTE_MODEL
21060 #if _STDINT_LONG_MODEL+0 == 242
21061 /* 2:4:2 = IP16 = a normal 16-bit system */
21062 typedef unsigned char uint8_t;
21063 typedef unsigned short uint16_t;
21064 typedef unsigned long uint32_t;
21065 #ifndef __int8_t_defined
21066 #define __int8_t_defined
21067 typedef char int8_t;
21068 typedef short int16_t;
21069 typedef long int32_t;
21070 #endif
21071 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21072 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
21073 /* 4:4:4 = ILP32 = a normal 32-bit system */
21074 typedef unsigned char uint8_t;
21075 typedef unsigned short uint16_t;
21076 typedef unsigned int uint32_t;
21077 #ifndef __int8_t_defined
21078 #define __int8_t_defined
21079 typedef char int8_t;
21080 typedef short int16_t;
21081 typedef int int32_t;
21082 #endif
21083 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21084 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
21085 /* 4:8:8 = LP64 = a normal 64-bit system */
21086 typedef unsigned char uint8_t;
21087 typedef unsigned short uint16_t;
21088 typedef unsigned int uint32_t;
21089 #ifndef __int8_t_defined
21090 #define __int8_t_defined
21091 typedef char int8_t;
21092 typedef short int16_t;
21093 typedef int int32_t;
21094 #endif
21095 /* this system has a "long" of 64bit */
21096 #ifndef _HAVE_UINT64_T
21097 #define _HAVE_UINT64_T
21098 typedef unsigned long uint64_t;
21099 typedef long int64_t;
21100 #endif
21101 #elif _STDINT_LONG_MODEL+0 == 448
21102 /* LLP64 a 64-bit system derived from a 32-bit system */
21103 typedef unsigned char uint8_t;
21104 typedef unsigned short uint16_t;
21105 typedef unsigned int uint32_t;
21106 #ifndef __int8_t_defined
21107 #define __int8_t_defined
21108 typedef char int8_t;
21109 typedef short int16_t;
21110 typedef int int32_t;
21111 #endif
21112 /* assuming the system has a "long long" */
21113 #ifndef _HAVE_UINT64_T
21114 #define _HAVE_UINT64_T
21115 #define _HAVE_LONGLONG_UINT64_T
21116 typedef unsigned long long uint64_t;
21117 typedef long long int64_t;
21118 #endif
21119 #else
21120 #define _STDINT_NO_INT32_T
21121 #endif
21122 #else
21123 #define _STDINT_NO_INT8_T
21124 #define _STDINT_NO_INT32_T
21125 #endif
21126 #endif
21127
21128 /*
21129 * quote from SunOS-5.8 sys/inttypes.h:
21130 * Use at your own risk. As of February 1996, the committee is squarely
21131 * behind the fixed sized types; the "least" and "fast" types are still being
21132 * discussed. The probability that the "fast" types may be removed before
21133 * the standard is finalized is high enough that they are not currently
21134 * implemented.
21135 */
21136
21137 #if defined _STDINT_NEED_INT_LEAST_T
21138 typedef int8_t int_least8_t;
21139 typedef int16_t int_least16_t;
21140 typedef int32_t int_least32_t;
21141 #ifdef _HAVE_UINT64_T
21142 typedef int64_t int_least64_t;
21143 #endif
21144
21145 typedef uint8_t uint_least8_t;
21146 typedef uint16_t uint_least16_t;
21147 typedef uint32_t uint_least32_t;
21148 #ifdef _HAVE_UINT64_T
21149 typedef uint64_t uint_least64_t;
21150 #endif
21151 /* least types */
21152 #endif
21153
21154 #if defined _STDINT_NEED_INT_FAST_T
21155 typedef int8_t int_fast8_t;
21156 typedef int int_fast16_t;
21157 typedef int32_t int_fast32_t;
21158 #ifdef _HAVE_UINT64_T
21159 typedef int64_t int_fast64_t;
21160 #endif
21161
21162 typedef uint8_t uint_fast8_t;
21163 typedef unsigned uint_fast16_t;
21164 typedef uint32_t uint_fast32_t;
21165 #ifdef _HAVE_UINT64_T
21166 typedef uint64_t uint_fast64_t;
21167 #endif
21168 /* fast types */
21169 #endif
21170
21171 #ifdef _STDINT_NEED_INTMAX_T
21172 #ifdef _HAVE_UINT64_T
21173 typedef int64_t intmax_t;
21174 typedef uint64_t uintmax_t;
21175 #else
21176 typedef long intmax_t;
21177 typedef unsigned long uintmax_t;
21178 #endif
21179 #endif
21180
21181 #ifdef _STDINT_NEED_INTPTR_T
21182 #ifndef __intptr_t_defined
21183 #define __intptr_t_defined
21184 /* we encourage using "long" to store pointer values, never use "int" ! */
21185 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
21186 typedef unsigned int uintptr_t;
21187 typedef int intptr_t;
21188 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
21189 typedef unsigned long uintptr_t;
21190 typedef long intptr_t;
21191 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
21192 typedef uint64_t uintptr_t;
21193 typedef int64_t intptr_t;
21194 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
21195 typedef unsigned long uintptr_t;
21196 typedef long intptr_t;
21197 #endif
21198 #endif
21199 #endif
21200
21201 /* The ISO C99 standard specifies that in C++ implementations these
21202 should only be defined if explicitly requested. */
21203 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
21204 #ifndef UINT32_C
21205
21206 /* Signed. */
21207 # define INT8_C(c) c
21208 # define INT16_C(c) c
21209 # define INT32_C(c) c
21210 # ifdef _HAVE_LONGLONG_UINT64_T
21211 # define INT64_C(c) c ## L
21212 # else
21213 # define INT64_C(c) c ## LL
21214 # endif
21215
21216 /* Unsigned. */
21217 # define UINT8_C(c) c ## U
21218 # define UINT16_C(c) c ## U
21219 # define UINT32_C(c) c ## U
21220 # ifdef _HAVE_LONGLONG_UINT64_T
21221 # define UINT64_C(c) c ## UL
21222 # else
21223 # define UINT64_C(c) c ## ULL
21224 # endif
21225
21226 /* Maximal type. */
21227 # ifdef _HAVE_LONGLONG_UINT64_T
21228 # define INTMAX_C(c) c ## L
21229 # define UINTMAX_C(c) c ## UL
21230 # else
21231 # define INTMAX_C(c) c ## LL
21232 # define UINTMAX_C(c) c ## ULL
21233 # endif
21234
21235 /* literalnumbers */
21236 #endif
21237 #endif
21238
21239 /* These limits are merily those of a two complement byte-oriented system */
21240
21241 /* Minimum of signed integral types. */
21242 # define INT8_MIN (-128)
21243 # define INT16_MIN (-32767-1)
21244 # define INT32_MIN (-2147483647-1)
21245 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
21246 /* Maximum of signed integral types. */
21247 # define INT8_MAX (127)
21248 # define INT16_MAX (32767)
21249 # define INT32_MAX (2147483647)
21250 # define INT64_MAX (__INT64_C(9223372036854775807))
21251
21252 /* Maximum of unsigned integral types. */
21253 # define UINT8_MAX (255)
21254 # define UINT16_MAX (65535)
21255 # define UINT32_MAX (4294967295U)
21256 # define UINT64_MAX (__UINT64_C(18446744073709551615))
21257
21258 /* Minimum of signed integral types having a minimum size. */
21259 # define INT_LEAST8_MIN INT8_MIN
21260 # define INT_LEAST16_MIN INT16_MIN
21261 # define INT_LEAST32_MIN INT32_MIN
21262 # define INT_LEAST64_MIN INT64_MIN
21263 /* Maximum of signed integral types having a minimum size. */
21264 # define INT_LEAST8_MAX INT8_MAX
21265 # define INT_LEAST16_MAX INT16_MAX
21266 # define INT_LEAST32_MAX INT32_MAX
21267 # define INT_LEAST64_MAX INT64_MAX
21268
21269 /* Maximum of unsigned integral types having a minimum size. */
21270 # define UINT_LEAST8_MAX UINT8_MAX
21271 # define UINT_LEAST16_MAX UINT16_MAX
21272 # define UINT_LEAST32_MAX UINT32_MAX
21273 # define UINT_LEAST64_MAX UINT64_MAX
21274
21275 /* shortcircuit*/
21276 #endif
21277 /* once */
21278 #endif
21279 #endif
21280 STDINT_EOF
21281 fi
21282 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21283 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
21284 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21285 else
21286 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
21287 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21288 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21289 X"$ac_stdint_h" : 'X\(//\)$' \| \
21290 X"$ac_stdint_h" : 'X\(/\)' \| \
21291 . : '\(.\)' 2>/dev/null ||
21292 echo X"$ac_stdint_h" |
21293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21295 /^X\(\/\/\)$/{ s//\1/; q; }
21296 /^X\(\/\).*/{ s//\1/; q; }
21297 s/.*/./; q'`
21298 { if $as_mkdir_p; then
21299 mkdir -p "$ac_dir"
21300 else
21301 as_dir="$ac_dir"
21302 as_dirs=
21303 while test ! -d "$as_dir"; do
21304 as_dirs="$as_dir $as_dirs"
21305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21307 X"$as_dir" : 'X\(//\)[^/]' \| \
21308 X"$as_dir" : 'X\(//\)$' \| \
21309 X"$as_dir" : 'X\(/\)' \| \
21310 . : '\(.\)' 2>/dev/null ||
21311 echo X"$as_dir" |
21312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21314 /^X\(\/\/\)$/{ s//\1/; q; }
21315 /^X\(\/\).*/{ s//\1/; q; }
21316 s/.*/./; q'`
21317 done
21318 test ! -n "$as_dirs" || mkdir $as_dirs
21319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21321 { (exit 1); exit 1; }; }; }
21322
21323 rm -f $ac_stdint_h
21324 mv $ac_stdint $ac_stdint_h
21325 fi
21326 ;;
21327 gappletviewer ) chmod 755 tools/gappletviewer ;;
21328 gjarsigner ) chmod 755 tools/gjarsigner ;;
21329 gkeytool ) chmod 755 tools/gkeytool ;;
21330 gjar ) chmod 755 tools/gjar ;;
21331 gnative2ascii ) chmod 755 tools/gnative2ascii ;;
21332 gserialver ) chmod 755 tools/gserialver ;;
21333 appletviewer ) chmod 755 tools/appletviewer ;;
21334 jarsigner ) chmod 755 tools/jarsigner ;;
21335 keytool ) chmod 755 tools/keytool ;;
21336 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
21337 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
21338 esac
21339 done
21340 _ACEOF
21341
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21343
21344 { (exit 0); exit 0; }
21345 _ACEOF
21346 chmod +x $CONFIG_STATUS
21347 ac_clean_files=$ac_clean_files_save
21348
21349
21350 # configure is writing to config.log, and then calls config.status.
21351 # config.status does its own redirection, appending to config.log.
21352 # Unfortunately, on DOS this fails, as config.log is still kept open
21353 # by configure, so config.status won't be able to write to it; its
21354 # output is simply discarded. So we exec the FD to /dev/null,
21355 # effectively closing config.log, so it can be properly (re)opened and
21356 # appended to by config.status. When coming back to configure, we
21357 # need to make the FD available again.
21358 if test "$no_create" != yes; then
21359 ac_cs_success=:
21360 ac_config_status_args=
21361 test "$silent" = yes &&
21362 ac_config_status_args="$ac_config_status_args --quiet"
21363 exec 5>/dev/null
21364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21365 exec 5>>config.log
21366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21367 # would make configure fail if this is the last instruction.
21368 $ac_cs_success || { (exit 1); exit 1; }
21369 fi
21370
21371
21372 # Create standard.omit based on decisions we just made.
21373 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
21374 if test x$use_escher != xtrue; then
21375 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
21376 fi
21377