OSDN Git Service

Merged gcj-eclipse branch to trunk.
[pf3gnuchains/gcc-fork.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.94-pre.
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.94-pre'
273 PACKAGE_STRING='GNU Classpath 0.94-pre'
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 JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE 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 RANLIB ac_ct_RANLIB LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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.94-pre 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.94-pre:";;
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-java-maintainer-mode
875                           allow rebuilding of .class and .h files
876   --enable-collections    create collections.jar default=no
877   --enable-jni            compile JNI source default=yes
878   --enable-core-jni       compile JNI sources for core default=yes
879   --enable-default-preferences-peer[=peer type or class name]
880                           specify one of: "gconf" [default] for a GConf based
881                           backend, "file" for a file based one, "memory" for a
882                           transient one, or a fully qualified class name
883                           implementing java.util.prefs.PreferencesFactory
884   --disable-gconf-peer    compile GConf native peers (disabled by
885                           --disable-jni) default=yes
886
887   --enable-Werror         whether to compile C code with -Werror which turns
888                           any compiler warning into a compilation failure
889                           default=no
890   --enable-default-toolkit
891                           fully qualified class name of default AWT toolkit
892   --enable-xmlj           compile native libxml/xslt library default=no
893   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
894                           default=yes
895   --disable-dependency-tracking  speeds up one-time build
896   --enable-dependency-tracking   do not reject slow dependency extractors
897   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
898                           default=yes
899   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
900                           default=yes
901   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
902                           default=no
903   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
904                           default=yes
905   --enable-regen-headers  automatically regenerate JNI headers default=no
906   --enable-tool-wrappers  create tool wrapper binaries default=no
907   --enable-static=PKGS  build static libraries default=no
908   --enable-shared=PKGS  build shared libraries default=yes
909   --enable-fast-install=PKGS  optimize for fast installation default=yes
910   --disable-libtool-lock  avoid locking (might break parallel builds)
911   --disable-rpath         do not hardcode runtime library paths
912   --enable-maintainer-mode  enable make rules and dependencies not useful
913                           (and sometimes confusing) to the casual installer
914   --enable-debug          enable runtime debugging code
915   --enable-load-library   enable to use JNI native methods default=yes
916   --enable-java-lang-system-explicit-initialization
917                           will the VM explicitly invoke java.lang.System's
918                           static initialization methods default=no
919   --enable-examples       enable build of the examples default=yes
920   --enable-portable-native-sync
921                           synchronize VM threads portably
922   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
923
924 Optional Packages:
925   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
926   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
927   --with-native-libdir    sets the installation directory for native libraries
928                           default='${libdir}/${PACKAGE}'
929   --with-glibj-dir        sets the installation directory for glibj.zip
930                           default='${libdir}/${PACKAGE}'
931   --with-vm               sets the VM binary name
932                           default='${prefix}/bin/jamvm'
933   --with-gnu-ld           assume the C compiler uses GNU ld default=no
934   --with-pic              try to use only PIC/non-PIC objects default=use both
935   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
936   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
937   --with-x                use the X Window System
938   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
939                           systems use pkg-config.
940   --with-javah            specify path or name of a javah-like program
941   --with-gcj              bytecode compilation with gcj
942   --with-jikes            bytecode compilation with jikes
943   --with-kjc              bytecode compilation with kjc
944   --with-gcjx             bytecode compilation with gcjx
945   --with-ecj              bytecode compilation with ecj
946   --with-classpath        specify path to a classes.zip like file
947   --with-vm-classes       specify path to VM override source files
948   --with-fastjar=PATH     define to use a fastjar style tool
949   --with-glibj            define what to install (zip|flat|both|none|build)
950                           [default=zip]
951   --with-gjdoc            generate documentation using gjdoc (default is NO)
952   --with-jay              Regenerate the parsers with jay must be given the
953                           path to the jay executable
954   --with-glibj-zip=ABS.PATH
955                           use prebuilt glibj.zip class library
956   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
957
958 Some influential environment variables:
959   CC          C compiler command
960   CFLAGS      C compiler flags
961   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
962               nonstandard directory <lib dir>
963   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
964               headers in a nonstandard directory <include dir>
965   CPP         C preprocessor
966   CXX         C++ compiler command
967   CXXFLAGS    C++ compiler flags
968   CXXCPP      C++ preprocessor
969
970 Use these variables to override the choices made by `configure' or to help
971 it to find libraries and programs with nonstandard names/locations.
972
973 Report bugs to <classpath@gnu.org>.
974 _ACEOF
975 fi
976
977 if test "$ac_init_help" = "recursive"; then
978   # If there are subdirs, report their specific --help.
979   ac_popdir=`pwd`
980   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
981     test -d $ac_dir || continue
982     ac_builddir=.
983
984 if test "$ac_dir" != .; then
985   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
986   # A "../" for each directory in $ac_dir_suffix.
987   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
988 else
989   ac_dir_suffix= ac_top_builddir=
990 fi
991
992 case $srcdir in
993   .)  # No --srcdir option.  We are building in place.
994     ac_srcdir=.
995     if test -z "$ac_top_builddir"; then
996        ac_top_srcdir=.
997     else
998        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
999     fi ;;
1000   [\\/]* | ?:[\\/]* )  # Absolute path.
1001     ac_srcdir=$srcdir$ac_dir_suffix;
1002     ac_top_srcdir=$srcdir ;;
1003   *) # Relative path.
1004     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1005     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1006 esac
1007
1008 # Do not use `cd foo && pwd` to compute absolute paths, because
1009 # the directories may not exist.
1010 case `pwd` in
1011 .) ac_abs_builddir="$ac_dir";;
1012 *)
1013   case "$ac_dir" in
1014   .) ac_abs_builddir=`pwd`;;
1015   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1016   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1017   esac;;
1018 esac
1019 case $ac_abs_builddir in
1020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *)
1022   case ${ac_top_builddir}. in
1023   .) ac_abs_top_builddir=$ac_abs_builddir;;
1024   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1025   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1026   esac;;
1027 esac
1028 case $ac_abs_builddir in
1029 .) ac_abs_srcdir=$ac_srcdir;;
1030 *)
1031   case $ac_srcdir in
1032   .) ac_abs_srcdir=$ac_abs_builddir;;
1033   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1034   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1035   esac;;
1036 esac
1037 case $ac_abs_builddir in
1038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *)
1040   case $ac_top_srcdir in
1041   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1042   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1043   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1044   esac;;
1045 esac
1046
1047     cd $ac_dir
1048     # Check for guested configure; otherwise get Cygnus style configure.
1049     if test -f $ac_srcdir/configure.gnu; then
1050       echo
1051       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1052     elif test -f $ac_srcdir/configure; then
1053       echo
1054       $SHELL $ac_srcdir/configure  --help=recursive
1055     elif test -f $ac_srcdir/configure.ac ||
1056            test -f $ac_srcdir/configure.in; then
1057       echo
1058       $ac_configure --help
1059     else
1060       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1061     fi
1062     cd $ac_popdir
1063   done
1064 fi
1065
1066 test -n "$ac_init_help" && exit 0
1067 if $ac_init_version; then
1068   cat <<\_ACEOF
1069 GNU Classpath configure 0.94-pre
1070 generated by GNU Autoconf 2.59
1071
1072 Copyright (C) 2003 Free Software Foundation, Inc.
1073 This configure script is free software; the Free Software Foundation
1074 gives unlimited permission to copy, distribute and modify it.
1075 _ACEOF
1076   exit 0
1077 fi
1078 exec 5>config.log
1079 cat >&5 <<_ACEOF
1080 This file contains any messages produced by compilers while
1081 running configure, to aid debugging if configure makes a mistake.
1082
1083 It was created by GNU Classpath $as_me 0.94-pre, which was
1084 generated by GNU Autoconf 2.59.  Invocation command line was
1085
1086   $ $0 $@
1087
1088 _ACEOF
1089 {
1090 cat <<_ASUNAME
1091 ## --------- ##
1092 ## Platform. ##
1093 ## --------- ##
1094
1095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1100
1101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1102 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1103
1104 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1105 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1107 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1108 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1109 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1110 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1111
1112 _ASUNAME
1113
1114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1115 for as_dir in $PATH
1116 do
1117   IFS=$as_save_IFS
1118   test -z "$as_dir" && as_dir=.
1119   echo "PATH: $as_dir"
1120 done
1121
1122 } >&5
1123
1124 cat >&5 <<_ACEOF
1125
1126
1127 ## ----------- ##
1128 ## Core tests. ##
1129 ## ----------- ##
1130
1131 _ACEOF
1132
1133
1134 # Keep a trace of the command line.
1135 # Strip out --no-create and --no-recursion so they do not pile up.
1136 # Strip out --silent because we don't want to record it for future runs.
1137 # Also quote any args containing shell meta-characters.
1138 # Make two passes to allow for proper duplicate-argument suppression.
1139 ac_configure_args=
1140 ac_configure_args0=
1141 ac_configure_args1=
1142 ac_sep=
1143 ac_must_keep_next=false
1144 for ac_pass in 1 2
1145 do
1146   for ac_arg
1147   do
1148     case $ac_arg in
1149     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1150     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151     | -silent | --silent | --silen | --sile | --sil)
1152       continue ;;
1153     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1154       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1155     esac
1156     case $ac_pass in
1157     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1158     2)
1159       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1160       if test $ac_must_keep_next = true; then
1161         ac_must_keep_next=false # Got value, back to normal.
1162       else
1163         case $ac_arg in
1164           *=* | --config-cache | -C | -disable-* | --disable-* \
1165           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1166           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1167           | -with-* | --with-* | -without-* | --without-* | --x)
1168             case "$ac_configure_args0 " in
1169               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1170             esac
1171             ;;
1172           -* ) ac_must_keep_next=true ;;
1173         esac
1174       fi
1175       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1176       # Get rid of the leading space.
1177       ac_sep=" "
1178       ;;
1179     esac
1180   done
1181 done
1182 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1183 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1184
1185 # When interrupted or exit'd, cleanup temporary files, and complete
1186 # config.log.  We remove comments because anyway the quotes in there
1187 # would cause problems or look ugly.
1188 # WARNING: Be sure not to use single quotes in there, as some shells,
1189 # such as our DU 5.0 friend, will then `close' the trap.
1190 trap 'exit_status=$?
1191   # Save into config.log some information that might help in debugging.
1192   {
1193     echo
1194
1195     cat <<\_ASBOX
1196 ## ---------------- ##
1197 ## Cache variables. ##
1198 ## ---------------- ##
1199 _ASBOX
1200     echo
1201     # The following way of writing the cache mishandles newlines in values,
1202 {
1203   (set) 2>&1 |
1204     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1205     *ac_space=\ *)
1206       sed -n \
1207         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1209       ;;
1210     *)
1211       sed -n \
1212         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1213       ;;
1214     esac;
1215 }
1216     echo
1217
1218     cat <<\_ASBOX
1219 ## ----------------- ##
1220 ## Output variables. ##
1221 ## ----------------- ##
1222 _ASBOX
1223     echo
1224     for ac_var in $ac_subst_vars
1225     do
1226       eval ac_val=$`echo $ac_var`
1227       echo "$ac_var='"'"'$ac_val'"'"'"
1228     done | sort
1229     echo
1230
1231     if test -n "$ac_subst_files"; then
1232       cat <<\_ASBOX
1233 ## ------------- ##
1234 ## Output files. ##
1235 ## ------------- ##
1236 _ASBOX
1237       echo
1238       for ac_var in $ac_subst_files
1239       do
1240         eval ac_val=$`echo $ac_var`
1241         echo "$ac_var='"'"'$ac_val'"'"'"
1242       done | sort
1243       echo
1244     fi
1245
1246     if test -s confdefs.h; then
1247       cat <<\_ASBOX
1248 ## ----------- ##
1249 ## confdefs.h. ##
1250 ## ----------- ##
1251 _ASBOX
1252       echo
1253       sed "/^$/d" confdefs.h | sort
1254       echo
1255     fi
1256     test "$ac_signal" != 0 &&
1257       echo "$as_me: caught signal $ac_signal"
1258     echo "$as_me: exit $exit_status"
1259   } >&5
1260   rm -f core *.core &&
1261   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1262     exit $exit_status
1263      ' 0
1264 for ac_signal in 1 2 13 15; do
1265   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1266 done
1267 ac_signal=0
1268
1269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1270 rm -rf conftest* confdefs.h
1271 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1272 echo >confdefs.h
1273
1274 # Predefined preprocessor variables.
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_NAME "$PACKAGE_NAME"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1283 _ACEOF
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1288 _ACEOF
1289
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_STRING "$PACKAGE_STRING"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1298 _ACEOF
1299
1300
1301 # Let the site file select an alternate cache file if it wants to.
1302 # Prefer explicitly selected file to automatically selected ones.
1303 if test -z "$CONFIG_SITE"; then
1304   if test "x$prefix" != xNONE; then
1305     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1306   else
1307     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1308   fi
1309 fi
1310 for ac_site_file in $CONFIG_SITE; do
1311   if test -r "$ac_site_file"; then
1312     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1313 echo "$as_me: loading site script $ac_site_file" >&6;}
1314     sed 's/^/| /' "$ac_site_file" >&5
1315     . "$ac_site_file"
1316   fi
1317 done
1318
1319 if test -r "$cache_file"; then
1320   # Some versions of bash will fail to source /dev/null (special
1321   # files actually), so we avoid doing that.
1322   if test -f "$cache_file"; then
1323     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1324 echo "$as_me: loading cache $cache_file" >&6;}
1325     case $cache_file in
1326       [\\/]* | ?:[\\/]* ) . $cache_file;;
1327       *)                      . ./$cache_file;;
1328     esac
1329   fi
1330 else
1331   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1332 echo "$as_me: creating cache $cache_file" >&6;}
1333   >$cache_file
1334 fi
1335
1336 # Check that the precious variables saved in the cache have kept the same
1337 # value.
1338 ac_cache_corrupted=false
1339 for ac_var in `(set) 2>&1 |
1340                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1341   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1342   eval ac_new_set=\$ac_env_${ac_var}_set
1343   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1344   eval ac_new_val="\$ac_env_${ac_var}_value"
1345   case $ac_old_set,$ac_new_set in
1346     set,)
1347       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1349       ac_cache_corrupted=: ;;
1350     ,set)
1351       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1352 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1353       ac_cache_corrupted=: ;;
1354     ,);;
1355     *)
1356       if test "x$ac_old_val" != "x$ac_new_val"; then
1357         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1358 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1359         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1360 echo "$as_me:   former value:  $ac_old_val" >&2;}
1361         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1362 echo "$as_me:   current value: $ac_new_val" >&2;}
1363         ac_cache_corrupted=:
1364       fi;;
1365   esac
1366   # Pass precious variables to config.status.
1367   if test "$ac_new_set" = set; then
1368     case $ac_new_val in
1369     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1370       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1371     *) ac_arg=$ac_var=$ac_new_val ;;
1372     esac
1373     case " $ac_configure_args " in
1374       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1375       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1376     esac
1377   fi
1378 done
1379 if $ac_cache_corrupted; then
1380   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1381 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1382   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1383 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386
1387 ac_ext=c
1388 ac_cpp='$CPP $CPPFLAGS'
1389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1418
1419
1420
1421 ac_aux_dir=
1422 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1423   if 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/install.sh; then
1428     ac_aux_dir=$ac_dir
1429     ac_install_sh="$ac_aux_dir/install.sh -c"
1430     break
1431   elif test -f $ac_dir/shtool; then
1432     ac_aux_dir=$ac_dir
1433     ac_install_sh="$ac_aux_dir/shtool install -c"
1434     break
1435   fi
1436 done
1437 if test -z "$ac_aux_dir"; then
1438   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1439 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1440    { (exit 1); exit 1; }; }
1441 fi
1442 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1443 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1444 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1445
1446 # Make sure we can run config.sub.
1447 $ac_config_sub sun4 >/dev/null 2>&1 ||
1448   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1449 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1450    { (exit 1); exit 1; }; }
1451
1452 echo "$as_me:$LINENO: checking build system type" >&5
1453 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1454 if test "${ac_cv_build+set}" = set; then
1455   echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457   ac_cv_build_alias=$build_alias
1458 test -z "$ac_cv_build_alias" &&
1459   ac_cv_build_alias=`$ac_config_guess`
1460 test -z "$ac_cv_build_alias" &&
1461   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1462 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1463    { (exit 1); exit 1; }; }
1464 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1465   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1466 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1467    { (exit 1); exit 1; }; }
1468
1469 fi
1470 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1471 echo "${ECHO_T}$ac_cv_build" >&6
1472 build=$ac_cv_build
1473 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1474 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1475 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476
1477
1478 echo "$as_me:$LINENO: checking host system type" >&5
1479 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1480 if test "${ac_cv_host+set}" = set; then
1481   echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483   ac_cv_host_alias=$host_alias
1484 test -z "$ac_cv_host_alias" &&
1485   ac_cv_host_alias=$ac_cv_build_alias
1486 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1487   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1488 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1489    { (exit 1); exit 1; }; }
1490
1491 fi
1492 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1493 echo "${ECHO_T}$ac_cv_host" >&6
1494 host=$ac_cv_host
1495 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1496 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1497 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1498
1499
1500 echo "$as_me:$LINENO: checking target system type" >&5
1501 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1502 if test "${ac_cv_target+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   ac_cv_target_alias=$target_alias
1506 test "x$ac_cv_target_alias" = "x" &&
1507   ac_cv_target_alias=$ac_cv_host_alias
1508 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1509   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1510 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1511    { (exit 1); exit 1; }; }
1512
1513 fi
1514 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1515 echo "${ECHO_T}$ac_cv_target" >&6
1516 target=$ac_cv_target
1517 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1518 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1519 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1520
1521
1522 # The aliases save the names the user supplied, while $host etc.
1523 # will get canonicalized.
1524 test -n "$target_alias" &&
1525   test "$program_prefix$program_suffix$program_transform_name" = \
1526     NONENONEs,x,x, &&
1527   program_prefix=${target_alias}-
1528
1529 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1530 if test "${enable_java_maintainer_mode+set}" = set; then
1531   enableval="$enable_java_maintainer_mode"
1532
1533 fi;
1534
1535
1536 if test "$enable_java_maintainer_mode" = yes; then
1537   JAVA_MAINTAINER_MODE_TRUE=
1538   JAVA_MAINTAINER_MODE_FALSE='#'
1539 else
1540   JAVA_MAINTAINER_MODE_TRUE='#'
1541   JAVA_MAINTAINER_MODE_FALSE=
1542 fi
1543
1544
1545 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1546
1547 LIBVERSION="0:0:0"
1548
1549 case "$host_os" in
1550      darwin*)
1551         cp_module=""
1552         ;;
1553         *)
1554         cp_module="-module"
1555         ;;
1556 esac
1557
1558 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1559
1560
1561 CLASSPATH_CONVENIENCE="-no-undefined"
1562
1563
1564
1565 am__api_version="1.9"
1566 # Find a good install program.  We prefer a C program (faster),
1567 # so one script is as good as another.  But avoid the broken or
1568 # incompatible versions:
1569 # SysV /etc/install, /usr/sbin/install
1570 # SunOS /usr/etc/install
1571 # IRIX /sbin/install
1572 # AIX /bin/install
1573 # AmigaOS /C/install, which installs bootblocks on floppy discs
1574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1577 # OS/2's system install, which has a completely different semantic
1578 # ./install, which can be erroneously created by make from ./install.sh.
1579 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1580 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1581 if test -z "$INSTALL"; then
1582 if test "${ac_cv_path_install+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   # Account for people who put trailing slashes in PATH elements.
1591 case $as_dir/ in
1592   ./ | .// | /cC/* | \
1593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1594   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1595   /usr/ucb/* ) ;;
1596   *)
1597     # OSF1 and SCO ODT 3.0 have their own names for install.
1598     # Don't use installbsd from OSF since it installs stuff as root
1599     # by default.
1600     for ac_prog in ginstall scoinst install; do
1601       for ac_exec_ext in '' $ac_executable_extensions; do
1602         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603           if test $ac_prog = install &&
1604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605             # AIX install.  It has an incompatible calling convention.
1606             :
1607           elif test $ac_prog = install &&
1608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609             # program-specific install script used by HP pwplus--don't use.
1610             :
1611           else
1612             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613             break 3
1614           fi
1615         fi
1616       done
1617     done
1618     ;;
1619 esac
1620 done
1621
1622
1623 fi
1624   if test "${ac_cv_path_install+set}" = set; then
1625     INSTALL=$ac_cv_path_install
1626   else
1627     # As a last resort, use the slow shell script.  We don't cache a
1628     # path for INSTALL within a source directory, because that will
1629     # break other packages using the cache if that directory is
1630     # removed, or if the path is relative.
1631     INSTALL=$ac_install_sh
1632   fi
1633 fi
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1636
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments.  Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657    if test "$*" = "X"; then
1658       # -L didn't work.
1659       set X `ls -t $srcdir/configure conftest.file`
1660    fi
1661    rm -f conftest.file
1662    if test "$*" != "X $srcdir/configure conftest.file" \
1663       && test "$*" != "X conftest.file $srcdir/configure"; then
1664
1665       # If neither matched, then we have a broken ls.  This can happen
1666       # if, for instance, CONFIG_SHELL is bash and it inherits a
1667       # broken ls alias from the environment.  This has actually
1668       # happened.  Such a system could not be considered "sane".
1669       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1672 alias in your environment" >&2;}
1673    { (exit 1); exit 1; }; }
1674    fi
1675
1676    test "$2" = conftest.file
1677    )
1678 then
1679    # Ok.
1680    :
1681 else
1682    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686    { (exit 1); exit 1; }; }
1687 fi
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $.  echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1702
1703 # expand $ac_aux_dir to an absolute path
1704 am_aux_dir=`cd $ac_aux_dir && pwd`
1705
1706 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1707 # Use eval to expand $SHELL
1708 if eval "$MISSING --run true"; then
1709   am_missing_run="$MISSING --run "
1710 else
1711   am_missing_run=
1712   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1713 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1714 fi
1715
1716 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1717   # We used to keeping the `.' as first argument, in order to
1718   # allow $(mkdir_p) to be used without argument.  As in
1719   #   $(mkdir_p) $(somedir)
1720   # where $(somedir) is conditionally defined.  However this is wrong
1721   # for two reasons:
1722   #  1. if the package is installed by a user who cannot write `.'
1723   #     make install will fail,
1724   #  2. the above comment should most certainly read
1725   #     $(mkdir_p) $(DESTDIR)$(somedir)
1726   #     so it does not work when $(somedir) is undefined and
1727   #     $(DESTDIR) is not.
1728   #  To support the latter case, we have to write
1729   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1730   #  so the `.' trick is pointless.
1731   mkdir_p='mkdir -p --'
1732 else
1733   # On NextStep and OpenStep, the `mkdir' command does not
1734   # recognize any option.  It will interpret all options as
1735   # directories to create, and then abort because `.' already
1736   # exists.
1737   for d in ./-p ./--version;
1738   do
1739     test -d $d && rmdir $d
1740   done
1741   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1742   if test -f "$ac_aux_dir/mkinstalldirs"; then
1743     mkdir_p='$(mkinstalldirs)'
1744   else
1745     mkdir_p='$(install_sh) -d'
1746   fi
1747 fi
1748
1749 for ac_prog in gawk mawk nawk awk
1750 do
1751   # Extract the first word of "$ac_prog", so it can be a program name with args.
1752 set dummy $ac_prog; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_AWK+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   if test -n "$AWK"; then
1759   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   for ac_exec_ext in '' $ac_executable_extensions; do
1767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768     ac_cv_prog_AWK="$ac_prog"
1769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770     break 2
1771   fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 AWK=$ac_cv_prog_AWK
1778 if test -n "$AWK"; then
1779   echo "$as_me:$LINENO: result: $AWK" >&5
1780 echo "${ECHO_T}$AWK" >&6
1781 else
1782   echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786   test -n "$AWK" && break
1787 done
1788
1789 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1790 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1791 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1792 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   cat >conftest.make <<\_ACEOF
1796 all:
1797         @echo 'ac_maketemp="$(MAKE)"'
1798 _ACEOF
1799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1800 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1801 if test -n "$ac_maketemp"; then
1802   eval ac_cv_prog_make_${ac_make}_set=yes
1803 else
1804   eval ac_cv_prog_make_${ac_make}_set=no
1805 fi
1806 rm -f conftest.make
1807 fi
1808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1809   echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1811   SET_MAKE=
1812 else
1813   echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815   SET_MAKE="MAKE=${MAKE-make}"
1816 fi
1817
1818 rm -rf .tst 2>/dev/null
1819 mkdir .tst 2>/dev/null
1820 if test -d .tst; then
1821   am__leading_dot=.
1822 else
1823   am__leading_dot=_
1824 fi
1825 rmdir .tst 2>/dev/null
1826
1827 # test to see if srcdir already configured
1828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1829    test -f $srcdir/config.status; then
1830   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835 # test whether we have cygpath
1836 if test -z "$CYGPATH_W"; then
1837   if (cygpath --version) >/dev/null 2>/dev/null; then
1838     CYGPATH_W='cygpath -w'
1839   else
1840     CYGPATH_W=echo
1841   fi
1842 fi
1843
1844
1845 # Define the identity of the package.
1846  PACKAGE='classpath'
1847  VERSION='0.94-pre'
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE "$PACKAGE"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define VERSION "$VERSION"
1857 _ACEOF
1858
1859 # Some tools Automake needs.
1860
1861 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1862
1863
1864 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1865
1866
1867 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1868
1869
1870 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1871
1872
1873 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1874
1875 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1876
1877 # Installed binaries are usually stripped using `strip' when the user
1878 # run `make install-strip'.  However `strip' might not be the right
1879 # tool to use in cross-compilation environments, therefore Automake
1880 # will honor the `STRIP' environment variable to overrule this program.
1881 if test "$cross_compiling" != no; then
1882   if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_STRIP+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$STRIP"; then
1891   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 STRIP=$ac_cv_prog_STRIP
1910 if test -n "$STRIP"; then
1911   echo "$as_me:$LINENO: result: $STRIP" >&5
1912 echo "${ECHO_T}$STRIP" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_STRIP"; then
1920   ac_ct_STRIP=$STRIP
1921   # Extract the first word of "strip", so it can be a program name with args.
1922 set dummy strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_STRIP"; then
1929   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_STRIP="strip"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1946 fi
1947 fi
1948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1949 if test -n "$ac_ct_STRIP"; then
1950   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1951 echo "${ECHO_T}$ac_ct_STRIP" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957   STRIP=$ac_ct_STRIP
1958 else
1959   STRIP="$ac_cv_prog_STRIP"
1960 fi
1961
1962 fi
1963 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1964
1965 # We need awk for the "check" target.  The system "awk" is bad on
1966 # some platforms.
1967 # Always define AMTAR for backward compatibility.
1968
1969 AMTAR=${AMTAR-"${am_missing_run}tar"}
1970
1971
1972 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1973 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1974 # Loop over all known methods to create a tar archive until one works.
1975 _am_tools='gnutar plaintar pax cpio none'
1976 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1977 # Do not fold the above two line into one, because Tru64 sh and
1978 # Solaris sh will not grok spaces in the rhs of `-'.
1979 for _am_tool in $_am_tools
1980 do
1981   case $_am_tool in
1982   gnutar)
1983     for _am_tar in tar gnutar gtar;
1984     do
1985       { echo "$as_me:$LINENO: $_am_tar --version" >&5
1986    ($_am_tar --version) >&5 2>&5
1987    ac_status=$?
1988    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989    (exit $ac_status); } && break
1990     done
1991     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1992     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1993     am__untar="$_am_tar -xf -"
1994     ;;
1995   plaintar)
1996     # Must skip GNU tar: if it does not support --format= it doesn't create
1997     # ustar tarball either.
1998     (tar --version) >/dev/null 2>&1 && continue
1999     am__tar='tar chf - "$$tardir"'
2000     am__tar_='tar chf - "$tardir"'
2001     am__untar='tar xf -'
2002     ;;
2003   pax)
2004     am__tar='pax -L -x ustar -w "$$tardir"'
2005     am__tar_='pax -L -x ustar -w "$tardir"'
2006     am__untar='pax -r'
2007     ;;
2008   cpio)
2009     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2010     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2011     am__untar='cpio -i -H ustar -d'
2012     ;;
2013   none)
2014     am__tar=false
2015     am__tar_=false
2016     am__untar=false
2017     ;;
2018   esac
2019
2020   # If the value was cached, stop now.  We just wanted to have am__tar
2021   # and am__untar set.
2022   test -n "${am_cv_prog_tar_ustar}" && break
2023
2024   # tar/untar a dummy directory, and stop if the command works
2025   rm -rf conftest.dir
2026   mkdir conftest.dir
2027   echo GrepMe > conftest.dir/file
2028   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2029    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2030    ac_status=$?
2031    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032    (exit $ac_status); }
2033   rm -rf conftest.dir
2034   if test -s conftest.tar; then
2035     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2036    ($am__untar <conftest.tar) >&5 2>&5
2037    ac_status=$?
2038    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039    (exit $ac_status); }
2040     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2041   fi
2042 done
2043 rm -rf conftest.dir
2044
2045 if test "${am_cv_prog_tar_ustar+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   am_cv_prog_tar_ustar=$_am_tool
2049 fi
2050
2051 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2052 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2053
2054
2055
2056
2057
2058           ac_config_headers="$ac_config_headers include/config.h"
2059
2060
2061
2062
2063
2064 # Check whether --enable-collections or --disable-collections was given.
2065 if test "${enable_collections+set}" = set; then
2066   enableval="$enable_collections"
2067   case x"${enableval}" in
2068                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2069                 xno) COMPILE_COLLECTIONS=no ;;
2070                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2071                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2072               esac
2073 else
2074   COMPILE_COLLECTIONS=no
2075 fi;
2076
2077
2078 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2079   CREATE_COLLECTIONS_TRUE=
2080   CREATE_COLLECTIONS_FALSE='#'
2081 else
2082   CREATE_COLLECTIONS_TRUE='#'
2083   CREATE_COLLECTIONS_FALSE=
2084 fi
2085
2086
2087 # Check whether --enable-jni or --disable-jni was given.
2088 if test "${enable_jni+set}" = set; then
2089   enableval="$enable_jni"
2090   case "${enableval}" in
2091                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2092                 no) COMPILE_JNI=no ;;
2093                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2094               esac
2095 else
2096   COMPILE_JNI=yes
2097 fi;
2098
2099
2100 if test "x${COMPILE_JNI}" = xyes; then
2101   CREATE_JNI_LIBRARIES_TRUE=
2102   CREATE_JNI_LIBRARIES_FALSE='#'
2103 else
2104   CREATE_JNI_LIBRARIES_TRUE='#'
2105   CREATE_JNI_LIBRARIES_FALSE=
2106 fi
2107
2108
2109 # Check whether --enable-core-jni or --disable-core-jni was given.
2110 if test "${enable_core_jni+set}" = set; then
2111   enableval="$enable_core_jni"
2112   case "${enableval}" in
2113                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2114                 no) COMPILE_CORE_JNI=no ;;
2115                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2116               esac
2117 else
2118   COMPILE_CORE_JNI=yes
2119 fi;
2120
2121
2122 if test "x${COMPILE_CORE_JNI}" = xyes; then
2123   CREATE_CORE_JNI_LIBRARIES_TRUE=
2124   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2125 else
2126   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2127   CREATE_CORE_JNI_LIBRARIES_FALSE=
2128 fi
2129
2130
2131 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2132 if test "${enable_default_preferences_peer+set}" = set; then
2133   enableval="$enable_default_preferences_peer"
2134   case "${enableval}" in
2135                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
2136                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
2137                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
2138                 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2139 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2140    { (exit 1); exit 1; }; } ;;
2141                 *) DEFAULT_PREFS_PEER=${enableval} ;;
2142               esac
2143 else
2144   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2145 fi;
2146
2147 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2148 if test "${enable_gconf_peer+set}" = set; then
2149   enableval="$enable_gconf_peer"
2150   case "${enableval}" in
2151                 yes) COMPILE_GCONF_PEER=yes ;;
2152                 no) COMPILE_GCONF_PEER=no ;;
2153                 *) COMPILE_GCONF_PEER=yes ;;
2154               esac
2155 else
2156   COMPILE_GCONF_PEER=yes
2157 fi;
2158
2159
2160 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2161   CREATE_GCONF_PEER_LIBRARIES_TRUE=
2162   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2163 else
2164   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2165   CREATE_GCONF_PEER_LIBRARIES_FALSE=
2166 fi
2167
2168
2169 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2170 if test "${enable_gconf_peers+set}" = set; then
2171   enableval="$enable_gconf_peers"
2172   { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2173 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi;
2176
2177 # Check whether --enable-Werror or --disable-Werror was given.
2178 if test "${enable_Werror+set}" = set; then
2179   enableval="$enable_Werror"
2180   case "${enableval}" in
2181                 yes) ENABLE_WERROR=yes ;;
2182                 no) ENABLE_WERROR=no ;;
2183                 *) ENABLE_WERROR=default ;;
2184               esac
2185 else
2186   ENABLE_WERROR=default
2187 fi;
2188
2189 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2190 if test "${enable_default_toolkit+set}" = set; then
2191   enableval="$enable_default_toolkit"
2192
2193 fi;
2194 default_toolkit=$enable_default_toolkit
2195 if test "$default_toolkit" = ""; then
2196    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2197 fi
2198
2199
2200 # Check whether --enable-xmlj or --disable-xmlj was given.
2201 if test "${enable_xmlj+set}" = set; then
2202   enableval="$enable_xmlj"
2203   case "${enableval}" in
2204                 yes) COMPILE_XMLJ=yes ;;
2205                 no) COMPILE_XMLJ=no ;;
2206                 *) COMPILE_XMLJ=no ;;
2207               esac
2208 else
2209   COMPILE_XMLJ=no
2210 fi;
2211
2212
2213 if test "x${COMPILE_XMLJ}" = xyes; then
2214   CREATE_XMLJ_LIBRARY_TRUE=
2215   CREATE_XMLJ_LIBRARY_FALSE='#'
2216 else
2217   CREATE_XMLJ_LIBRARY_TRUE='#'
2218   CREATE_XMLJ_LIBRARY_FALSE=
2219 fi
2220
2221
2222 DEPDIR="${am__leading_dot}deps"
2223
2224           ac_config_commands="$ac_config_commands depfiles"
2225
2226
2227 am_make=${MAKE-make}
2228 cat > confinc << 'END'
2229 am__doit:
2230         @echo done
2231 .PHONY: am__doit
2232 END
2233 # If we don't find an include directive, just comment out the code.
2234 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2235 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2236 am__include="#"
2237 am__quote=
2238 _am_result=none
2239 # First try GNU make style include.
2240 echo "include confinc" > confmf
2241 # We grep out `Entering directory' and `Leaving directory'
2242 # messages which can occur if `w' ends up in MAKEFLAGS.
2243 # In particular we don't look at `^make:' because GNU make might
2244 # be invoked under some other name (usually "gmake"), in which
2245 # case it prints its new name instead of `make'.
2246 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2247    am__include=include
2248    am__quote=
2249    _am_result=GNU
2250 fi
2251 # Now try BSD make style include.
2252 if test "$am__include" = "#"; then
2253    echo '.include "confinc"' > confmf
2254    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2255       am__include=.include
2256       am__quote="\""
2257       _am_result=BSD
2258    fi
2259 fi
2260
2261
2262 echo "$as_me:$LINENO: result: $_am_result" >&5
2263 echo "${ECHO_T}$_am_result" >&6
2264 rm -f confinc confmf
2265
2266 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2267 if test "${enable_dependency_tracking+set}" = set; then
2268   enableval="$enable_dependency_tracking"
2269
2270 fi;
2271 if test "x$enable_dependency_tracking" != xno; then
2272   am_depcomp="$ac_aux_dir/depcomp"
2273   AMDEPBACKSLASH='\'
2274 fi
2275
2276
2277 if test "x$enable_dependency_tracking" != xno; then
2278   AMDEP_TRUE=
2279   AMDEP_FALSE='#'
2280 else
2281   AMDEP_TRUE='#'
2282   AMDEP_FALSE=
2283 fi
2284
2285
2286
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292 if test -n "$ac_tool_prefix"; then
2293   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321   echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328 fi
2329 if test -z "$ac_cv_prog_CC"; then
2330   ac_ct_CC=$CC
2331   # Extract the first word of "gcc", so it can be a program name with args.
2332 set dummy gcc; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$ac_ct_CC"; then
2339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348     ac_cv_prog_ac_ct_CC="gcc"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 fi
2356 fi
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6
2361 else
2362   echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366   CC=$ac_ct_CC
2367 else
2368   CC="$ac_cv_prog_CC"
2369 fi
2370
2371 if test -z "$CC"; then
2372   if test -n "$ac_tool_prefix"; then
2373   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2374 set dummy ${ac_tool_prefix}cc; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   if test -n "$CC"; then
2381   ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388   for ac_exec_ext in '' $ac_executable_extensions; do
2389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390     ac_cv_prog_CC="${ac_tool_prefix}cc"
2391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392     break 2
2393   fi
2394 done
2395 done
2396
2397 fi
2398 fi
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401   echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6
2403 else
2404   echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2406 fi
2407
2408 fi
2409 if test -z "$ac_cv_prog_CC"; then
2410   ac_ct_CC=$CC
2411   # Extract the first word of "cc", so it can be a program name with args.
2412 set dummy cc; ac_word=$2
2413 echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test -n "$ac_ct_CC"; then
2419   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   for ac_exec_ext in '' $ac_executable_extensions; do
2427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428     ac_cv_prog_ac_ct_CC="cc"
2429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430     break 2
2431   fi
2432 done
2433 done
2434
2435 fi
2436 fi
2437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 echo "${ECHO_T}$ac_ct_CC" >&6
2441 else
2442   echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2444 fi
2445
2446   CC=$ac_ct_CC
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 fi
2452 if test -z "$CC"; then
2453   # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463   ac_prog_rejected=no
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2472        ac_prog_rejected=yes
2473        continue
2474      fi
2475     ac_cv_prog_CC="cc"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481
2482 if test $ac_prog_rejected = yes; then
2483   # We found a bogon in the path, so make sure we never use it.
2484   set dummy $ac_cv_prog_CC
2485   shift
2486   if test $# != 0; then
2487     # We chose a different compiler from the bogus one.
2488     # However, it has the same basename, so the bogon will be chosen
2489     # first if we set CC to just the basename; use the full file name.
2490     shift
2491     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2492   fi
2493 fi
2494 fi
2495 fi
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498   echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505 fi
2506 if test -z "$CC"; then
2507   if test -n "$ac_tool_prefix"; then
2508   for ac_prog in cl
2509   do
2510     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$CC"; then
2518   ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538   echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6
2540 else
2541   echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 fi
2544
2545     test -n "$CC" && break
2546   done
2547 fi
2548 if test -z "$CC"; then
2549   ac_ct_CC=$CC
2550   for ac_prog in cl
2551 do
2552   # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$ac_ct_CC"; then
2560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569     ac_cv_prog_ac_ct_CC="$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575
2576 fi
2577 fi
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 echo "${ECHO_T}$ac_ct_CC" >&6
2582 else
2583   echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2585 fi
2586
2587   test -n "$ac_ct_CC" && break
2588 done
2589
2590   CC=$ac_ct_CC
2591 fi
2592
2593 fi
2594
2595
2596 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: no acceptable C compiler found in \$PATH
2599 See \`config.log' for more details." >&2;}
2600    { (exit 1); exit 1; }; }
2601
2602 # Provide some information about the compiler.
2603 echo "$as_me:$LINENO:" \
2604      "checking for C compiler version" >&5
2605 ac_compiler=`set X $ac_compile; echo $2`
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2607   (eval $ac_compiler --version </dev/null >&5) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }
2611 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2612   (eval $ac_compiler -v </dev/null >&5) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }
2616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2617   (eval $ac_compiler -V </dev/null >&5) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }
2621
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628
2629 int
2630 main ()
2631 {
2632
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 # FIXME: Cleanup?
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   gcc_no_link=no
2644 else
2645   gcc_no_link=yes
2646 fi
2647
2648 if test x$gcc_no_link = xyes; then
2649   # Setting cross_compile will disable run tests; it will
2650   # also disable AC_CHECK_FILE but that's generally
2651   # correct if we can't link.
2652   cross_compiling=yes
2653   EXEEXT=
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2674 # of exeext.
2675 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2676 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2677 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2678 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2679   (eval $ac_link_default) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; then
2683   # Find the output, starting from the most likely.  This scheme is
2684 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2685 # resort.
2686
2687 # Be careful to initialize this variable, since it used to be cached.
2688 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2689 ac_cv_exeext=
2690 # b.out is created by i960 compilers.
2691 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2692 do
2693   test -f "$ac_file" || continue
2694   case $ac_file in
2695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2696         ;;
2697     conftest.$ac_ext )
2698         # This is the source file.
2699         ;;
2700     [ab].out )
2701         # We found the default executable, but exeext='' is most
2702         # certainly right.
2703         break;;
2704     *.* )
2705         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2706         # FIXME: I believe we export ac_cv_exeext for Libtool,
2707         # but it would be cool to find out if it's true.  Does anybody
2708         # maintain Libtool? --akim.
2709         export ac_cv_exeext
2710         break;;
2711     * )
2712         break;;
2713   esac
2714 done
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2720 See \`config.log' for more details." >&5
2721 echo "$as_me: error: C compiler cannot create executables
2722 See \`config.log' for more details." >&2;}
2723    { (exit 77); exit 77; }; }
2724 fi
2725
2726 ac_exeext=$ac_cv_exeext
2727 echo "$as_me:$LINENO: result: $ac_file" >&5
2728 echo "${ECHO_T}$ac_file" >&6
2729
2730 # Check the compiler produces executables we can run.  If not, either
2731 # the compiler is broken, or we cross compile.
2732 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2733 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2734 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2735 # If not cross compiling, check that we can run a simple program.
2736 if test "$cross_compiling" != yes; then
2737   if { ac_try='./$ac_file'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743     cross_compiling=no
2744   else
2745     if test "$cross_compiling" = maybe; then
2746         cross_compiling=yes
2747     else
2748         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details." >&2;}
2754    { (exit 1); exit 1; }; }
2755     fi
2756   fi
2757 fi
2758 echo "$as_me:$LINENO: result: yes" >&5
2759 echo "${ECHO_T}yes" >&6
2760
2761 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2762 ac_clean_files=$ac_clean_files_save
2763 # Check the compiler produces executables we can run.  If not, either
2764 # the compiler is broken, or we cross compile.
2765 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2766 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2767 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2768 echo "${ECHO_T}$cross_compiling" >&6
2769
2770 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2771 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773   (eval $ac_link) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; then
2777   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2778 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2779 # work properly (i.e., refer to `conftest.exe'), while it won't with
2780 # `rm'.
2781 for ac_file in conftest.exe conftest conftest.*; do
2782   test -f "$ac_file" || continue
2783   case $ac_file in
2784     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2785     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2786           export ac_cv_exeext
2787           break;;
2788     * ) break;;
2789   esac
2790 done
2791 else
2792   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2793 See \`config.log' for more details." >&5
2794 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2795 See \`config.log' for more details." >&2;}
2796    { (exit 1); exit 1; }; }
2797 fi
2798
2799 rm -f conftest$ac_cv_exeext
2800 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2801 echo "${ECHO_T}$ac_cv_exeext" >&6
2802
2803 rm -f conftest.$ac_ext
2804 EXEEXT=$ac_cv_exeext
2805 ac_exeext=$EXEEXT
2806 fi
2807 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2809 if test "${ac_cv_objext+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.o conftest.obj
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; then
2833   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2834   case $ac_file in
2835     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2836     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837        break;;
2838   esac
2839 done
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2845 See \`config.log' for more details." >&5
2846 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2847 See \`config.log' for more details." >&2;}
2848    { (exit 1); exit 1; }; }
2849 fi
2850
2851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2852 fi
2853 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2854 echo "${ECHO_T}$ac_cv_objext" >&6
2855 OBJEXT=$ac_cv_objext
2856 ac_objext=$OBJEXT
2857 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2858 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2859 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
2873        choke me
2874 #endif
2875
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882   (eval $ac_compile) 2>conftest.er1
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
2886   cat conftest.err >&5
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); } &&
2889          { ac_try='test -z "$ac_c_werror_flag"
2890                          || test ! -s conftest.err'
2891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892   (eval $ac_try) 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; } &&
2896          { ac_try='test -s conftest.$ac_objext'
2897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898   (eval $ac_try) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }; }; then
2902   ac_compiler_gnu=yes
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 ac_compiler_gnu=no
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911
2912 fi
2913 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2915 GCC=`test $ac_compiler_gnu = yes && echo yes`
2916 ac_test_CFLAGS=${CFLAGS+set}
2917 ac_save_CFLAGS=$CFLAGS
2918 CFLAGS="-g"
2919 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2921 if test "${ac_cv_prog_cc_g+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_c_werror_flag"
2949                          || test ! -s conftest.err'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   ac_cv_prog_cc_g=yes
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 ac_cv_prog_cc_g=no
2967 fi
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969 fi
2970 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2971 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2972 if test "$ac_test_CFLAGS" = set; then
2973   CFLAGS=$ac_save_CFLAGS
2974 elif test $ac_cv_prog_cc_g = yes; then
2975   if test "$GCC" = yes; then
2976     CFLAGS="-g -O2"
2977   else
2978     CFLAGS="-g"
2979   fi
2980 else
2981   if test "$GCC" = yes; then
2982     CFLAGS="-O2"
2983   else
2984     CFLAGS=
2985   fi
2986 fi
2987 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2988 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2989 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   ac_cv_prog_cc_stdc=no
2993 ac_save_CC=$CC
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 #include <stdarg.h>
3001 #include <stdio.h>
3002 #include <sys/types.h>
3003 #include <sys/stat.h>
3004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3005 struct buf { int x; };
3006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3007 static char *e (p, i)
3008      char **p;
3009      int i;
3010 {
3011   return p[i];
3012 }
3013 static char *f (char * (*g) (char **, int), char **p, ...)
3014 {
3015   char *s;
3016   va_list v;
3017   va_start (v,p);
3018   s = g (p, va_arg (v,int));
3019   va_end (v);
3020   return s;
3021 }
3022
3023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3024    function prototypes and stuff, but not '\xHH' hex character constants.
3025    These don't provoke an error unfortunately, instead are silently treated
3026    as 'x'.  The following induces an error, until -std1 is added to get
3027    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3028    array size at least.  It's necessary to write '\x00'==0 to get something
3029    that's true only with -std1.  */
3030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3031
3032 int test (int i, double x);
3033 struct s1 {int (*f) (int a);};
3034 struct s2 {int (*f) (double a);};
3035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3036 int argc;
3037 char **argv;
3038 int
3039 main ()
3040 {
3041 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 # Don't try gcc -ansi; that turns off useful extensions and
3047 # breaks some systems' header files.
3048 # AIX                   -qlanglvl=ansi
3049 # Ultrix and OSF/1      -std1
3050 # HP-UX 10.20 and later -Ae
3051 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3052 # SVR4                  -Xc -D__EXTENSIONS__
3053 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3054 do
3055   CC="$ac_save_CC $ac_arg"
3056   rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058   (eval $ac_compile) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_c_werror_flag"
3066                          || test ! -s conftest.err'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cc_stdc=$ac_arg
3079 break
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 fi
3085 rm -f conftest.err conftest.$ac_objext
3086 done
3087 rm -f conftest.$ac_ext conftest.$ac_objext
3088 CC=$ac_save_CC
3089
3090 fi
3091
3092 case "x$ac_cv_prog_cc_stdc" in
3093   x|xno)
3094     echo "$as_me:$LINENO: result: none needed" >&5
3095 echo "${ECHO_T}none needed" >&6 ;;
3096   *)
3097     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3099     CC="$CC $ac_cv_prog_cc_stdc" ;;
3100 esac
3101
3102 # Some people use a C++ compiler to compile C.  Since we use `exit',
3103 # in C++ we need to declare it.  In case someone uses the same compiler
3104 # for both compiling C and C++ we need to have the C++ compiler decide
3105 # the declaration of exit, since it's the most demanding environment.
3106 cat >conftest.$ac_ext <<_ACEOF
3107 #ifndef __cplusplus
3108   choke me
3109 #endif
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113   (eval $ac_compile) 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_c_werror_flag"
3121                          || test ! -s conftest.err'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129   (eval $ac_try) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   for ac_declaration in \
3134    '' \
3135    'extern "C" void std::exit (int) throw (); using std::exit;' \
3136    'extern "C" void std::exit (int); using std::exit;' \
3137    'extern "C" void exit (int) throw ();' \
3138    'extern "C" void exit (int);' \
3139    'void exit (int);'
3140 do
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 $ac_declaration
3148 #include <stdlib.h>
3149 int
3150 main ()
3151 {
3152 exit (42);
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159   (eval $ac_compile) 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -z "$ac_c_werror_flag"
3167                          || test ! -s conftest.err'
3168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169   (eval $ac_try) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; } &&
3173          { ac_try='test -s conftest.$ac_objext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   :
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 continue
3185 fi
3186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3187   cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 $ac_declaration
3194 int
3195 main ()
3196 {
3197 exit (42);
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204   (eval $ac_compile) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag"
3212                          || test ! -s conftest.err'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   break
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 fi
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 done
3232 rm -f conftest*
3233 if test -n "$ac_declaration"; then
3234   echo '#ifdef __cplusplus' >>confdefs.h
3235   echo $ac_declaration      >>confdefs.h
3236   echo '#endif'             >>confdefs.h
3237 fi
3238
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 depcc="$CC"   am_compiler_list=
3252
3253 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3255 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3259   # We make a subdir and do the tests there.  Otherwise we can end up
3260   # making bogus files that we don't know about and never remove.  For
3261   # instance it was reported that on HP-UX the gcc test will end up
3262   # making a dummy file named `D' -- because `-MD' means `put the output
3263   # in D'.
3264   mkdir conftest.dir
3265   # Copy depcomp to subdir because otherwise we won't find it if we're
3266   # using a relative directory.
3267   cp "$am_depcomp" conftest.dir
3268   cd conftest.dir
3269   # We will build objects and dependencies in a subdirectory because
3270   # it helps to detect inapplicable dependency modes.  For instance
3271   # both Tru64's cc and ICC support -MD to output dependencies as a
3272   # side effect of compilation, but ICC will put the dependencies in
3273   # the current directory while Tru64 will put them in the object
3274   # directory.
3275   mkdir sub
3276
3277   am_cv_CC_dependencies_compiler_type=none
3278   if test "$am_compiler_list" = ""; then
3279      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3280   fi
3281   for depmode in $am_compiler_list; do
3282     # Setup a source with many dependencies, because some compilers
3283     # like to wrap large dependency lists on column 80 (with \), and
3284     # we should not choose a depcomp mode which is confused by this.
3285     #
3286     # We need to recreate these files for each test, as the compiler may
3287     # overwrite some of them when testing with obscure command lines.
3288     # This happens at least with the AIX C compiler.
3289     : > sub/conftest.c
3290     for i in 1 2 3 4 5 6; do
3291       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3292       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3293       # Solaris 8's {/usr,}/bin/sh.
3294       touch sub/conftst$i.h
3295     done
3296     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3297
3298     case $depmode in
3299     nosideeffect)
3300       # after this tag, mechanisms are not by side-effect, so they'll
3301       # only be used when explicitly requested
3302       if test "x$enable_dependency_tracking" = xyes; then
3303         continue
3304       else
3305         break
3306       fi
3307       ;;
3308     none) break ;;
3309     esac
3310     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3311     # mode.  It turns out that the SunPro C++ compiler does not properly
3312     # handle `-M -o', and we need to detect this.
3313     if depmode=$depmode \
3314        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3315        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3316        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3317          >/dev/null 2>conftest.err &&
3318        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3319        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3320        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3321       # icc doesn't choke on unknown options, it will just issue warnings
3322       # or remarks (even with -Werror).  So we grep stderr for any message
3323       # that says an option was ignored or not supported.
3324       # When given -MP, icc 7.0 and 7.1 complain thusly:
3325       #   icc: Command line warning: ignoring option '-M'; no argument required
3326       # The diagnosis changed in icc 8.0:
3327       #   icc: Command line remark: option '-MP' not supported
3328       if (grep 'ignoring option' conftest.err ||
3329           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3330         am_cv_CC_dependencies_compiler_type=$depmode
3331         break
3332       fi
3333     fi
3334   done
3335
3336   cd ..
3337   rm -rf conftest.dir
3338 else
3339   am_cv_CC_dependencies_compiler_type=none
3340 fi
3341
3342 fi
3343 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3344 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3345 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3346
3347
3348
3349 if
3350   test "x$enable_dependency_tracking" != xno \
3351   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3352   am__fastdepCC_TRUE=
3353   am__fastdepCC_FALSE='#'
3354 else
3355   am__fastdepCC_TRUE='#'
3356   am__fastdepCC_FALSE=
3357 fi
3358
3359
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370   CPP=
3371 fi
3372 if test -z "$CPP"; then
3373   if test "${ac_cv_prog_CPP+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376       # Double quotes because CPP needs to be expanded
3377     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378     do
3379       ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382   # Use a header file that comes with gcc, so configuring glibc
3383   # with a fresh cross-compiler works.
3384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385   # <limits.h> exists even on freestanding compilers.
3386   # On the NeXT, cc -E runs the code through the compiler's parser,
3387   # not just through cpp. "Syntax error" is here to catch this case.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399                      Syntax error
3400 _ACEOF
3401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403   ac_status=$?
3404   grep -v '^ *+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } >/dev/null; then
3409   if test -s conftest.err; then
3410     ac_cpp_err=$ac_c_preproc_warn_flag
3411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412   else
3413     ac_cpp_err=
3414   fi
3415 else
3416   ac_cpp_err=yes
3417 fi
3418 if test -z "$ac_cpp_err"; then
3419   :
3420 else
3421   echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424   # Broken: fails on valid input.
3425 continue
3426 fi
3427 rm -f conftest.err conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether non-existent headers
3430   # can be detected and how.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   # Broken: success on invalid input.
3458 continue
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463   # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3467 rm -f conftest.err conftest.$ac_ext
3468
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3473   break
3474 fi
3475
3476     done
3477     ac_cv_prog_CPP=$CPP
3478
3479 fi
3480   CPP=$ac_cv_prog_CPP
3481 else
3482   ac_cv_prog_CPP=$CPP
3483 fi
3484 echo "$as_me:$LINENO: result: $CPP" >&5
3485 echo "${ECHO_T}$CPP" >&6
3486 ac_preproc_ok=false
3487 for ac_c_preproc_warn_flag in '' yes
3488 do
3489   # Use a header file that comes with gcc, so configuring glibc
3490   # with a fresh cross-compiler works.
3491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492   # <limits.h> exists even on freestanding compilers.
3493   # On the NeXT, cc -E runs the code through the compiler's parser,
3494   # not just through cpp. "Syntax error" is here to catch this case.
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506                      Syntax error
3507 _ACEOF
3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } >/dev/null; then
3516   if test -s conftest.err; then
3517     ac_cpp_err=$ac_c_preproc_warn_flag
3518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519   else
3520     ac_cpp_err=
3521   fi
3522 else
3523   ac_cpp_err=yes
3524 fi
3525 if test -z "$ac_cpp_err"; then
3526   :
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531   # Broken: fails on valid input.
3532 continue
3533 fi
3534 rm -f conftest.err conftest.$ac_ext
3535
3536   # OK, works on sane cases.  Now check whether non-existent headers
3537   # can be detected and how.
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #include <ac_nonexistent.h>
3545 _ACEOF
3546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } >/dev/null; then
3554   if test -s conftest.err; then
3555     ac_cpp_err=$ac_c_preproc_warn_flag
3556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3557   else
3558     ac_cpp_err=
3559   fi
3560 else
3561   ac_cpp_err=yes
3562 fi
3563 if test -z "$ac_cpp_err"; then
3564   # Broken: success on invalid input.
3565 continue
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570   # Passes both tests.
3571 ac_preproc_ok=:
3572 break
3573 fi
3574 rm -f conftest.err conftest.$ac_ext
3575
3576 done
3577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3578 rm -f conftest.err conftest.$ac_ext
3579 if $ac_preproc_ok; then
3580   :
3581 else
3582   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3583 See \`config.log' for more details." >&5
3584 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details." >&2;}
3586    { (exit 1); exit 1; }; }
3587 fi
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595
3596 echo "$as_me:$LINENO: checking for egrep" >&5
3597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3598 if test "${ac_cv_prog_egrep+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3602     then ac_cv_prog_egrep='grep -E'
3603     else ac_cv_prog_egrep='egrep'
3604     fi
3605 fi
3606 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3607 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3608  EGREP=$ac_cv_prog_egrep
3609
3610
3611 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3613 if test "${ac_cv_header_stdc+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <stdlib.h>
3623 #include <stdarg.h>
3624 #include <string.h>
3625 #include <float.h>
3626
3627 int
3628 main ()
3629 {
3630
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637   (eval $ac_compile) 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -z "$ac_c_werror_flag"
3645                          || test ! -s conftest.err'
3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647   (eval $ac_try) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); }; } &&
3651          { ac_try='test -s conftest.$ac_objext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_cv_header_stdc=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665
3666 if test $ac_cv_header_stdc = yes; then
3667   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <string.h>
3675
3676 _ACEOF
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678   $EGREP "memchr" >/dev/null 2>&1; then
3679   :
3680 else
3681   ac_cv_header_stdc=no
3682 fi
3683 rm -f conftest*
3684
3685 fi
3686
3687 if test $ac_cv_header_stdc = yes; then
3688   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695 #include <stdlib.h>
3696
3697 _ACEOF
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699   $EGREP "free" >/dev/null 2>&1; then
3700   :
3701 else
3702   ac_cv_header_stdc=no
3703 fi
3704 rm -f conftest*
3705
3706 fi
3707
3708 if test $ac_cv_header_stdc = yes; then
3709   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3710   if test "$cross_compiling" = yes; then
3711   :
3712 else
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719 #include <ctype.h>
3720 #if ((' ' & 0x0FF) == 0x020)
3721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3723 #else
3724 # define ISLOWER(c) \
3725                    (('a' <= (c) && (c) <= 'i') \
3726                      || ('j' <= (c) && (c) <= 'r') \
3727                      || ('s' <= (c) && (c) <= 'z'))
3728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3729 #endif
3730
3731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3732 int
3733 main ()
3734 {
3735   int i;
3736   for (i = 0; i < 256; i++)
3737     if (XOR (islower (i), ISLOWER (i))
3738         || toupper (i) != TOUPPER (i))
3739       exit(2);
3740   exit (0);
3741 }
3742 _ACEOF
3743 rm -f conftest$ac_exeext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745   (eval $ac_link) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; }; then
3754   :
3755 else
3756   echo "$as_me: program exited with status $ac_status" >&5
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 ( exit $ac_status )
3761 ac_cv_header_stdc=no
3762 fi
3763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 fi
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3768 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3769 if test $ac_cv_header_stdc = yes; then
3770
3771 cat >>confdefs.h <<\_ACEOF
3772 #define STDC_HEADERS 1
3773 _ACEOF
3774
3775 fi
3776
3777 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3788                   inttypes.h stdint.h unistd.h
3789 do
3790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3791 echo "$as_me:$LINENO: checking for $ac_header" >&5
3792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h.  */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h.  */
3802 $ac_includes_default
3803
3804 #include <$ac_header>
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808   (eval $ac_compile) 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag"
3816                          || test ! -s conftest.err'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest.$ac_objext'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; }; then
3828   eval "$as_ac_Header=yes"
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 eval "$as_ac_Header=no"
3834 fi
3835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3840   cat >>confdefs.h <<_ACEOF
3841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842 _ACEOF
3843
3844 fi
3845
3846 done
3847
3848
3849 # Check whether --enable-alsa or --disable-alsa was given.
3850 if test "${enable_alsa+set}" = set; then
3851   enableval="$enable_alsa"
3852   case "${enableval}" in
3853                 yes) COMPILE_ALSA=yes ;;
3854                 no) COMPILE_ALSA=no ;;
3855                 *) COMPILE_ALSA=yes ;;
3856               esac
3857 else
3858
3859 for ac_header in alsa/asoundlib.h
3860 do
3861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3863   echo "$as_me:$LINENO: checking for $ac_header" >&5
3864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 fi
3868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3870 else
3871   # Is the header compilable?
3872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 $ac_includes_default
3881 #include <$ac_header>
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885   (eval $ac_compile) 2>conftest.er1
3886   ac_status=$?
3887   grep -v '^ *+' conftest.er1 >conftest.err
3888   rm -f conftest.er1
3889   cat conftest.err >&5
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } &&
3892          { ac_try='test -z "$ac_c_werror_flag"
3893                          || test ! -s conftest.err'
3894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895   (eval $ac_try) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; } &&
3899          { ac_try='test -s conftest.$ac_objext'
3900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901   (eval $ac_try) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }; }; then
3905   ac_header_compiler=yes
3906 else
3907   echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 ac_header_compiler=no
3911 fi
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3914 echo "${ECHO_T}$ac_header_compiler" >&6
3915
3916 # Is the header present?
3917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <$ac_header>
3926 _ACEOF
3927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } >/dev/null; then
3935   if test -s conftest.err; then
3936     ac_cpp_err=$ac_c_preproc_warn_flag
3937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3938   else
3939     ac_cpp_err=
3940   fi
3941 else
3942   ac_cpp_err=yes
3943 fi
3944 if test -z "$ac_cpp_err"; then
3945   ac_header_preproc=yes
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950   ac_header_preproc=no
3951 fi
3952 rm -f conftest.err conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3954 echo "${ECHO_T}$ac_header_preproc" >&6
3955
3956 # So?  What about this header?
3957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3958   yes:no: )
3959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3963     ac_header_preproc=yes
3964     ;;
3965   no:yes:* )
3966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3978     (
3979       cat <<\_ASBOX
3980 ## -------------------------------- ##
3981 ## Report this to classpath@gnu.org ##
3982 ## -------------------------------- ##
3983 _ASBOX
3984     ) |
3985       sed "s/^/$as_me: WARNING:     /" >&2
3986     ;;
3987 esac
3988 echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   eval "$as_ac_Header=\$ac_header_preproc"
3994 fi
3995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3997
3998 fi
3999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4000   cat >>confdefs.h <<_ACEOF
4001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4002 _ACEOF
4003  echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4004 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4005 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   ac_check_lib_save_LIBS=$LIBS
4009 LIBS="-lasound  $LIBS"
4010 if test x$gcc_no_link = xyes; then
4011   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4012 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4013    { (exit 1); exit 1; }; }
4014 fi
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 /* Override any gcc2 internal prototype to avoid an error.  */
4023 #ifdef __cplusplus
4024 extern "C"
4025 #endif
4026 /* We use char because int might match the return type of a gcc2
4027    builtin and then its argument prototype would still apply.  */
4028 char snd_seq_open ();
4029 int
4030 main ()
4031 {
4032 snd_seq_open ();
4033   ;
4034   return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext conftest$ac_exeext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4039   (eval $ac_link) 2>conftest.er1
4040   ac_status=$?
4041   grep -v '^ *+' conftest.er1 >conftest.err
4042   rm -f conftest.er1
4043   cat conftest.err >&5
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } &&
4046          { ac_try='test -z "$ac_c_werror_flag"
4047                          || test ! -s conftest.err'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; } &&
4053          { ac_try='test -s conftest$ac_exeext'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; }; then
4059   ac_cv_lib_asound_snd_seq_open=yes
4060 else
4061   echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064 ac_cv_lib_asound_snd_seq_open=no
4065 fi
4066 rm -f conftest.err conftest.$ac_objext \
4067       conftest$ac_exeext conftest.$ac_ext
4068 LIBS=$ac_check_lib_save_LIBS
4069 fi
4070 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4071 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4072 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4073   COMPILE_ALSA=yes
4074 else
4075   COMPILE_ALSA=no
4076 fi
4077
4078 else
4079   COMPILE_ALSA=no
4080 fi
4081
4082 done
4083
4084 fi;
4085
4086
4087 if test "x${COMPILE_ALSA}" = xyes; then
4088   CREATE_ALSA_LIBRARIES_TRUE=
4089   CREATE_ALSA_LIBRARIES_FALSE='#'
4090 else
4091   CREATE_ALSA_LIBRARIES_TRUE='#'
4092   CREATE_ALSA_LIBRARIES_FALSE=
4093 fi
4094
4095
4096 # Check whether --enable-dssi or --disable-dssi was given.
4097 if test "${enable_dssi+set}" = set; then
4098   enableval="$enable_dssi"
4099   case "${enableval}" in
4100                 yes) COMPILE_DSSI=yes ;;
4101                 no) COMPILE_DSSI=no ;;
4102                 *) COMPILE_DSSI=yes ;;
4103               esac
4104 else
4105
4106 for ac_header in dssi.h
4107 do
4108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4110   echo "$as_me:$LINENO: checking for $ac_header" >&5
4111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 fi
4115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4117 else
4118   # Is the header compilable?
4119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 $ac_includes_default
4128 #include <$ac_header>
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132   (eval $ac_compile) 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } &&
4139          { ac_try='test -z "$ac_c_werror_flag"
4140                          || test ! -s conftest.err'
4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142   (eval $ac_try) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; } &&
4146          { ac_try='test -s conftest.$ac_objext'
4147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148   (eval $ac_try) 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); }; }; then
4152   ac_header_compiler=yes
4153 else
4154   echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157 ac_header_compiler=no
4158 fi
4159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4161 echo "${ECHO_T}$ac_header_compiler" >&6
4162
4163 # Is the header present?
4164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <$ac_header>
4173 _ACEOF
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null; then
4182   if test -s conftest.err; then
4183     ac_cpp_err=$ac_c_preproc_warn_flag
4184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4185   else
4186     ac_cpp_err=
4187   fi
4188 else
4189   ac_cpp_err=yes
4190 fi
4191 if test -z "$ac_cpp_err"; then
4192   ac_header_preproc=yes
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197   ac_header_preproc=no
4198 fi
4199 rm -f conftest.err conftest.$ac_ext
4200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4201 echo "${ECHO_T}$ac_header_preproc" >&6
4202
4203 # So?  What about this header?
4204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4205   yes:no: )
4206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4210     ac_header_preproc=yes
4211     ;;
4212   no:yes:* )
4213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4225     (
4226       cat <<\_ASBOX
4227 ## -------------------------------- ##
4228 ## Report this to classpath@gnu.org ##
4229 ## -------------------------------- ##
4230 _ASBOX
4231     ) |
4232       sed "s/^/$as_me: WARNING:     /" >&2
4233     ;;
4234 esac
4235 echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   eval "$as_ac_Header=\$ac_header_preproc"
4241 fi
4242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4244
4245 fi
4246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4247   cat >>confdefs.h <<_ACEOF
4248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 _ACEOF
4250  COMPILE_DSSI=yes
4251 else
4252   COMPILE_DSSI=no
4253 fi
4254
4255 done
4256
4257 fi;
4258
4259
4260 if test "x${COMPILE_DSSI}" = xyes; then
4261   CREATE_DSSI_LIBRARIES_TRUE=
4262   CREATE_DSSI_LIBRARIES_FALSE='#'
4263 else
4264   CREATE_DSSI_LIBRARIES_TRUE='#'
4265   CREATE_DSSI_LIBRARIES_FALSE=
4266 fi
4267
4268
4269 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4270 if test "${enable_gtk_peer+set}" = set; then
4271   enableval="$enable_gtk_peer"
4272   case "${enableval}" in
4273                 yes) COMPILE_GTK_PEER=yes ;;
4274                 no) COMPILE_GTK_PEER=no ;;
4275                 *) COMPILE_GTK_PEER=yes ;;
4276               esac
4277 else
4278   COMPILE_GTK_PEER=yes
4279 fi;
4280
4281
4282 if test "x${COMPILE_GTK_PEER}" = xyes; then
4283   CREATE_GTK_PEER_LIBRARIES_TRUE=
4284   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4285 else
4286   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4287   CREATE_GTK_PEER_LIBRARIES_FALSE=
4288 fi
4289
4290
4291 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4292 if test "${enable_gtk_peers+set}" = set; then
4293   enableval="$enable_gtk_peers"
4294   { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4295 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4296    { (exit 1); exit 1; }; }
4297 fi;
4298
4299 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4300 if test "${enable_qt_peer+set}" = set; then
4301   enableval="$enable_qt_peer"
4302   case "${enableval}" in
4303                 yes) COMPILE_QT_PEER=yes ;;
4304                 no) COMPILE_QT_PEER=no ;;
4305                 *) COMPILE_QT_PEER=yes ;;
4306               esac
4307 else
4308   COMPILE_QT_PEER=no
4309 fi;
4310
4311
4312 if test "x${COMPILE_QT_PEER}" = xyes; then
4313   CREATE_QT_PEER_LIBRARIES_TRUE=
4314   CREATE_QT_PEER_LIBRARIES_FALSE='#'
4315 else
4316   CREATE_QT_PEER_LIBRARIES_TRUE='#'
4317   CREATE_QT_PEER_LIBRARIES_FALSE=
4318 fi
4319
4320
4321 # Check whether --enable-plugin or --disable-plugin was given.
4322 if test "${enable_plugin+set}" = set; then
4323   enableval="$enable_plugin"
4324   case "${enableval}" in
4325                 yes) COMPILE_PLUGIN=yes ;;
4326                 no) COMPILE_PLUGIN=no ;;
4327                 *) COMPILE_PLUGIN=yes ;;
4328               esac
4329 else
4330   COMPILE_PLUGIN=yes
4331 fi;
4332
4333
4334 if test "x${COMPILE_PLUGIN}" = xyes; then
4335   CREATE_PLUGIN_TRUE=
4336   CREATE_PLUGIN_FALSE='#'
4337 else
4338   CREATE_PLUGIN_TRUE='#'
4339   CREATE_PLUGIN_FALSE=
4340 fi
4341
4342
4343
4344 # Check whether --with-native-libdir or --without-native-libdir was given.
4345 if test "${with_native_libdir+set}" = set; then
4346   withval="$with_native_libdir"
4347
4348              nativeexeclibdir=${withval}
4349
4350 else
4351
4352              nativeexeclibdir='${libdir}/${PACKAGE}'
4353
4354 fi;
4355
4356
4357
4358
4359 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4360 if test "${with_glibj_dir+set}" = set; then
4361   withval="$with_glibj_dir"
4362
4363              glibjdir=${withval}
4364
4365 else
4366
4367              glibjdir='${datadir}/${PACKAGE}'
4368
4369 fi;
4370
4371
4372
4373
4374 # Check whether --with-vm or --without-vm was given.
4375 if test "${with_vm+set}" = set; then
4376   withval="$with_vm"
4377
4378              VM_BINARY=${withval}
4379
4380 else
4381
4382              VM_BINARY='${prefix}/bin/jamvm'
4383
4384 fi;
4385
4386
4387
4388
4389 if test "x`basename $VM_BINARY`" = xcacao; then
4390   FOUND_CACAO_TRUE=
4391   FOUND_CACAO_FALSE='#'
4392 else
4393   FOUND_CACAO_TRUE='#'
4394   FOUND_CACAO_FALSE=
4395 fi
4396
4397
4398 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4399 if test "${enable_regen_headers+set}" = set; then
4400   enableval="$enable_regen_headers"
4401   case "${enableval}" in
4402                 yes) REGENERATE_JNI_HEADERS=yes ;;
4403                 no) REGENERATE_JNI_HEADERS=no ;;
4404                 *) REGENERATE_JNI_HEADERS=no ;;
4405               esac
4406 else
4407   REGENERATE_JNI_HEADERS=no
4408 fi;
4409
4410
4411 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4412   CREATE_JNI_HEADERS_TRUE=
4413   CREATE_JNI_HEADERS_FALSE='#'
4414 else
4415   CREATE_JNI_HEADERS_TRUE='#'
4416   CREATE_JNI_HEADERS_FALSE=
4417 fi
4418
4419
4420 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4421 if test "${enable_tool_wrappers+set}" = set; then
4422   enableval="$enable_tool_wrappers"
4423   case x"${enableval}" in
4424                 xyes)
4425                   COMPILE_WRAPPERS=yes;
4426
4427 for ac_header in ltdl.h
4428 do
4429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431   echo "$as_me:$LINENO: checking for $ac_header" >&5
4432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 fi
4436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4438 else
4439   # Is the header compilable?
4440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448 $ac_includes_default
4449 #include <$ac_header>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"
4461                          || test ! -s conftest.err'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_header_compiler=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_header_compiler=no
4479 fi
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6
4483
4484 # Is the header present?
4485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #include <$ac_header>
4494 _ACEOF
4495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } >/dev/null; then
4503   if test -s conftest.err; then
4504     ac_cpp_err=$ac_c_preproc_warn_flag
4505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506   else
4507     ac_cpp_err=
4508   fi
4509 else
4510   ac_cpp_err=yes
4511 fi
4512 if test -z "$ac_cpp_err"; then
4513   ac_header_preproc=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518   ac_header_preproc=no
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522 echo "${ECHO_T}$ac_header_preproc" >&6
4523
4524 # So?  What about this header?
4525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4526   yes:no: )
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4531     ac_header_preproc=yes
4532     ;;
4533   no:yes:* )
4534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4546     (
4547       cat <<\_ASBOX
4548 ## -------------------------------- ##
4549 ## Report this to classpath@gnu.org ##
4550 ## -------------------------------- ##
4551 _ASBOX
4552     ) |
4553       sed "s/^/$as_me: WARNING:     /" >&2
4554     ;;
4555 esac
4556 echo "$as_me:$LINENO: checking for $ac_header" >&5
4557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   eval "$as_ac_Header=\$ac_header_preproc"
4562 fi
4563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4565
4566 fi
4567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4568   cat >>confdefs.h <<_ACEOF
4569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 _ACEOF
4571
4572 else
4573   { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
4574 echo "$as_me: error: cannot find ltdl.h" >&2;}
4575    { (exit 1); exit 1; }; }
4576 fi
4577
4578 done
4579
4580
4581 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
4582 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
4583 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lltdl  $LIBS"
4588 if test x$gcc_no_link = xyes; then
4589   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4591    { (exit 1); exit 1; }; }
4592 fi
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599
4600 /* Override any gcc2 internal prototype to avoid an error.  */
4601 #ifdef __cplusplus
4602 extern "C"
4603 #endif
4604 /* We use char because int might match the return type of a gcc2
4605    builtin and then its argument prototype would still apply.  */
4606 char lt_dlopen ();
4607 int
4608 main ()
4609 {
4610 lt_dlopen ();
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617   (eval $ac_link) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -z "$ac_c_werror_flag"
4625                          || test ! -s conftest.err'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest$ac_exeext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   ac_cv_lib_ltdl_lt_dlopen=yes
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_cv_lib_ltdl_lt_dlopen=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext \
4645       conftest$ac_exeext conftest.$ac_ext
4646 LIBS=$ac_check_lib_save_LIBS
4647 fi
4648 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
4649 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
4650 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
4651   cat >>confdefs.h <<_ACEOF
4652 #define HAVE_LIBLTDL 1
4653 _ACEOF
4654
4655   LIBS="-lltdl $LIBS"
4656
4657 else
4658   { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
4659 echo "$as_me: error: cannot find libltdl" >&2;}
4660    { (exit 1); exit 1; }; }
4661 fi
4662
4663                   ;;
4664                 xno) COMPILE_WRAPPERS=no ;;
4665                 x) COMPILE_WRAPPERS=yes ;;
4666                 *) COMPILE_WRAPPERS=yes ;;
4667               esac
4668 else
4669   COMPILE_WRAPPERS=no
4670 fi;
4671
4672
4673 if test "x${COMPILE_WRAPPERS}" = xyes; then
4674   CREATE_WRAPPERS_TRUE=
4675   CREATE_WRAPPERS_FALSE='#'
4676 else
4677   CREATE_WRAPPERS_TRUE='#'
4678   CREATE_WRAPPERS_FALSE=
4679 fi
4680
4681
4682 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4684 LN_S=$as_ln_s
4685 if test "$LN_S" = "ln -s"; then
4686   echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6
4688 else
4689   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4690 echo "${ECHO_T}no, using $LN_S" >&6
4691 fi
4692
4693 # Find a good install program.  We prefer a C program (faster),
4694 # so one script is as good as another.  But avoid the broken or
4695 # incompatible versions:
4696 # SysV /etc/install, /usr/sbin/install
4697 # SunOS /usr/etc/install
4698 # IRIX /sbin/install
4699 # AIX /bin/install
4700 # AmigaOS /C/install, which installs bootblocks on floppy discs
4701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4704 # OS/2's system install, which has a completely different semantic
4705 # ./install, which can be erroneously created by make from ./install.sh.
4706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4708 if test -z "$INSTALL"; then
4709 if test "${ac_cv_path_install+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   # Account for people who put trailing slashes in PATH elements.
4718 case $as_dir/ in
4719   ./ | .// | /cC/* | \
4720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4722   /usr/ucb/* ) ;;
4723   *)
4724     # OSF1 and SCO ODT 3.0 have their own names for install.
4725     # Don't use installbsd from OSF since it installs stuff as root
4726     # by default.
4727     for ac_prog in ginstall scoinst install; do
4728       for ac_exec_ext in '' $ac_executable_extensions; do
4729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4730           if test $ac_prog = install &&
4731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4732             # AIX install.  It has an incompatible calling convention.
4733             :
4734           elif test $ac_prog = install &&
4735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4736             # program-specific install script used by HP pwplus--don't use.
4737             :
4738           else
4739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4740             break 3
4741           fi
4742         fi
4743       done
4744     done
4745     ;;
4746 esac
4747 done
4748
4749
4750 fi
4751   if test "${ac_cv_path_install+set}" = set; then
4752     INSTALL=$ac_cv_path_install
4753   else
4754     # As a last resort, use the slow shell script.  We don't cache a
4755     # path for INSTALL within a source directory, because that will
4756     # break other packages using the cache if that directory is
4757     # removed, or if the path is relative.
4758     INSTALL=$ac_install_sh
4759   fi
4760 fi
4761 echo "$as_me:$LINENO: result: $INSTALL" >&5
4762 echo "${ECHO_T}$INSTALL" >&6
4763
4764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4765 # It thinks the first close brace ends the variable substitution.
4766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4767
4768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4769
4770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4771
4772
4773
4774 # Check whether --enable-static or --disable-static was given.
4775 if test "${enable_static+set}" = set; then
4776   enableval="$enable_static"
4777   p=${PACKAGE-default}
4778 case $enableval in
4779 yes) enable_static=yes ;;
4780 no) enable_static=no ;;
4781 *)
4782   enable_static=no
4783   # Look at the argument we got.  We use all the common list separators.
4784   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4785   for pkg in $enableval; do
4786     if test "X$pkg" = "X$p"; then
4787       enable_static=yes
4788     fi
4789   done
4790   IFS="$ac_save_ifs"
4791   ;;
4792 esac
4793 else
4794   enable_static=no
4795 fi;
4796 # Check whether --enable-shared or --disable-shared was given.
4797 if test "${enable_shared+set}" = set; then
4798   enableval="$enable_shared"
4799   p=${PACKAGE-default}
4800 case $enableval in
4801 yes) enable_shared=yes ;;
4802 no) enable_shared=no ;;
4803 *)
4804   enable_shared=no
4805   # Look at the argument we got.  We use all the common list separators.
4806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4807   for pkg in $enableval; do
4808     if test "X$pkg" = "X$p"; then
4809       enable_shared=yes
4810     fi
4811   done
4812   IFS="$ac_save_ifs"
4813   ;;
4814 esac
4815 else
4816   enable_shared=yes
4817 fi;
4818 # Check whether --enable-fast-install or --disable-fast-install was given.
4819 if test "${enable_fast_install+set}" = set; then
4820   enableval="$enable_fast_install"
4821   p=${PACKAGE-default}
4822 case $enableval in
4823 yes) enable_fast_install=yes ;;
4824 no) enable_fast_install=no ;;
4825 *)
4826   enable_fast_install=no
4827   # Look at the argument we got.  We use all the common list separators.
4828   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4829   for pkg in $enableval; do
4830     if test "X$pkg" = "X$p"; then
4831       enable_fast_install=yes
4832     fi
4833   done
4834   IFS="$ac_save_ifs"
4835   ;;
4836 esac
4837 else
4838   enable_fast_install=yes
4839 fi;
4840
4841 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4842 if test "${with_gnu_ld+set}" = set; then
4843   withval="$with_gnu_ld"
4844   test "$withval" = no || with_gnu_ld=yes
4845 else
4846   with_gnu_ld=no
4847 fi;
4848 ac_prog=ld
4849 if test "$GCC" = yes; then
4850   # Check if gcc -print-prog-name=ld gives a path.
4851   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4852 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4853   case $host in
4854   *-*-mingw*)
4855     # gcc leaves a trailing carriage return which upsets mingw
4856     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857   *)
4858     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859   esac
4860   case $ac_prog in
4861     # Accept absolute paths.
4862     [\\/]* | [A-Za-z]:[\\/]*)
4863       re_direlt='/[^/][^/]*/\.\./'
4864       # Canonicalize the path of ld
4865       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4866       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4867         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4868       done
4869       test -z "$LD" && LD="$ac_prog"
4870       ;;
4871   "")
4872     # If it fails, then pretend we aren't using GCC.
4873     ac_prog=ld
4874     ;;
4875   *)
4876     # If it is relative, then search for the first ld in PATH.
4877     with_gnu_ld=unknown
4878     ;;
4879   esac
4880 elif test "$with_gnu_ld" = yes; then
4881   echo "$as_me:$LINENO: checking for GNU ld" >&5
4882 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4883 else
4884   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4885 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4886 fi
4887 if test "${lt_cv_path_LD+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   if test -z "$LD"; then
4891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4892   for ac_dir in $PATH; do
4893     test -z "$ac_dir" && ac_dir=.
4894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4895       lt_cv_path_LD="$ac_dir/$ac_prog"
4896       # Check to see if the program is GNU ld.  I'd rather use --version,
4897       # but apparently some GNU ld's only accept -v.
4898       # Break only if it was the GNU/non-GNU ld that we prefer.
4899       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4900         test "$with_gnu_ld" != no && break
4901       else
4902         test "$with_gnu_ld" != yes && break
4903       fi
4904     fi
4905   done
4906   IFS="$ac_save_ifs"
4907 else
4908   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4909 fi
4910 fi
4911
4912 LD="$lt_cv_path_LD"
4913 if test -n "$LD"; then
4914   echo "$as_me:$LINENO: result: $LD" >&5
4915 echo "${ECHO_T}$LD" >&6
4916 else
4917   echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4919 fi
4920 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4921 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4922    { (exit 1); exit 1; }; }
4923 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4924 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4925 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4929 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4930   lt_cv_prog_gnu_ld=yes
4931 else
4932   lt_cv_prog_gnu_ld=no
4933 fi
4934 fi
4935 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4936 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4937 with_gnu_ld=$lt_cv_prog_gnu_ld
4938
4939
4940 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4941 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4942 if test "${lt_cv_ld_reload_flag+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   lt_cv_ld_reload_flag='-r'
4946 fi
4947 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4948 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4949 reload_flag=$lt_cv_ld_reload_flag
4950 test -n "$reload_flag" && reload_flag=" $reload_flag"
4951
4952 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4953 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4954 if test "${lt_cv_path_NM+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$NM"; then
4958   # Let the user override the test.
4959   lt_cv_path_NM="$NM"
4960 else
4961   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4962   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4963     test -z "$ac_dir" && ac_dir=.
4964     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4965     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4966       # Check to see if the nm accepts a BSD-compat flag.
4967       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4968       #   nm: unknown option "B" ignored
4969       # Tru64's nm complains that /dev/null is an invalid object file
4970       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4971         lt_cv_path_NM="$tmp_nm -B"
4972         break
4973       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4974         lt_cv_path_NM="$tmp_nm -p"
4975         break
4976       else
4977         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978         continue # so that we can try to find one that supports BSD flags
4979       fi
4980     fi
4981   done
4982   IFS="$ac_save_ifs"
4983   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4984 fi
4985 fi
4986
4987 NM="$lt_cv_path_NM"
4988 echo "$as_me:$LINENO: result: $NM" >&5
4989 echo "${ECHO_T}$NM" >&6
4990
4991 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4992 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4993 if test "${lt_cv_deplibs_check_method+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   lt_cv_file_magic_cmd='$MAGIC_CMD'
4997 lt_cv_file_magic_test_file=
4998 lt_cv_deplibs_check_method='unknown'
4999 # Need to set the preceding variable on all platforms that support
5000 # interlibrary dependencies.
5001 # 'none' -- dependencies not supported.
5002 # `unknown' -- same as none, but documents that we really don't know.
5003 # 'pass_all' -- all dependencies passed with no checks.
5004 # 'test_compile' -- check by making test program.
5005 # 'file_magic [regex]' -- check by looking for files in library path
5006 # which responds to the $file_magic_cmd with a given egrep regex.
5007 # If you have `file' or equivalent on your system and you're not sure
5008 # whether `pass_all' will *always* work, you probably want this one.
5009
5010 case $host_os in
5011 aix*)
5012   lt_cv_deplibs_check_method=pass_all
5013   ;;
5014
5015 beos*)
5016   lt_cv_deplibs_check_method=pass_all
5017   ;;
5018
5019 bsdi4*)
5020   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5021   lt_cv_file_magic_cmd='/usr/bin/file -L'
5022   lt_cv_file_magic_test_file=/shlib/libc.so
5023   ;;
5024
5025 cygwin* | mingw* |pw32*)
5026   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5027   lt_cv_file_magic_cmd='$OBJDUMP -f'
5028   ;;
5029
5030 darwin* | rhapsody*)
5031   # this will be overwritten by pass_all, but leave it in just in case
5032   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5033   lt_cv_file_magic_cmd='/usr/bin/file -L'
5034   case "$host_os" in
5035   rhapsody* | darwin1.012)
5036     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5037     ;;
5038   *) # Darwin 1.3 on
5039     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5040     ;;
5041   esac
5042   lt_cv_deplibs_check_method=pass_all
5043   ;;
5044
5045 freebsd* | kfreebsd*-gnu)
5046   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5047     case $host_cpu in
5048     i*86 )
5049       # Not sure whether the presence of OpenBSD here was a mistake.
5050       # Let's accept both of them until this is cleared up.
5051       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5052       lt_cv_file_magic_cmd=/usr/bin/file
5053       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5054       ;;
5055     esac
5056   else
5057     lt_cv_deplibs_check_method=pass_all
5058   fi
5059   ;;
5060
5061 gnu*)
5062   lt_cv_deplibs_check_method=pass_all
5063   ;;
5064
5065 hpux10.20*|hpux11*)
5066   case $host_cpu in
5067   hppa*)
5068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5069     lt_cv_file_magic_cmd=/usr/bin/file
5070     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5071     ;;
5072   ia64*)
5073     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5074     lt_cv_file_magic_cmd=/usr/bin/file
5075     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5076     ;;
5077   esac
5078   ;;
5079
5080 irix5* | irix6*)
5081   case $host_os in
5082   irix5*)
5083     # this will be overridden with pass_all, but let us keep it just in case
5084     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5085     ;;
5086   *)
5087     case $LD in
5088     *-32|*"-32 ") libmagic=32-bit;;
5089     *-n32|*"-n32 ") libmagic=N32;;
5090     *-64|*"-64 ") libmagic=64-bit;;
5091     *) libmagic=never-match;;
5092     esac
5093     # this will be overridden with pass_all, but let us keep it just in case
5094     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5095     ;;
5096   esac
5097   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5098   lt_cv_deplibs_check_method=pass_all
5099   ;;
5100
5101 # This must be Linux ELF.
5102 linux-gnu*)
5103   lt_cv_deplibs_check_method=pass_all
5104   ;;
5105
5106 netbsd* | knetbsd*-gnu)
5107   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5108     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5109   else
5110     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5111   fi
5112   ;;
5113
5114 newsos6)
5115   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5116   lt_cv_file_magic_cmd=/usr/bin/file
5117   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5118   ;;
5119
5120 osf3* | osf4* | osf5*)
5121   # this will be overridden with pass_all, but let us keep it just in case
5122   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5123   lt_cv_file_magic_test_file=/shlib/libc.so
5124   lt_cv_deplibs_check_method=pass_all
5125   ;;
5126
5127 sco3.2v5*)
5128   lt_cv_deplibs_check_method=pass_all
5129   ;;
5130
5131 solaris*)
5132   lt_cv_deplibs_check_method=pass_all
5133   lt_cv_file_magic_test_file=/lib/libc.so
5134   ;;
5135
5136 sysv5uw[78]* | sysv4*uw2*)
5137   lt_cv_deplibs_check_method=pass_all
5138   ;;
5139
5140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5141   case $host_vendor in
5142   ncr)
5143     lt_cv_deplibs_check_method=pass_all
5144     ;;
5145   motorola)
5146     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]'
5147     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5148     ;;
5149   esac
5150   ;;
5151 esac
5152
5153 fi
5154 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5155 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5156 file_magic_cmd=$lt_cv_file_magic_cmd
5157 deplibs_check_method=$lt_cv_deplibs_check_method
5158
5159
5160
5161
5162 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5163
5164 # find the maximum length of command line arguments
5165 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5166 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5167 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170     i=0
5171   teststring="ABCD"
5172
5173   case $build_os in
5174   msdosdjgpp*)
5175     # On DJGPP, this test can blow up pretty badly due to problems in libc
5176     # (any single argument exceeding 2000 bytes causes a buffer overrun
5177     # during glob expansion).  Even if it were fixed, the result of this
5178     # check would be larger than it should be.
5179     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5180     ;;
5181
5182   cygwin* | mingw*)
5183     # On Win9x/ME, this test blows up -- it succeeds, but takes
5184     # about 5 minutes as the teststring grows exponentially.
5185     # Worse, since 9x/ME are not pre-emptively multitasking,
5186     # you end up with a "frozen" computer, even though with patience
5187     # the test eventually succeeds (with a max line length of 256k).
5188     # Instead, let's just punt: use the minimum linelength reported by
5189     # all of the supported platforms: 8192 (on NT/2K/XP).
5190     lt_cv_sys_max_cmd_len=8192;
5191     ;;
5192
5193   amigaos*)
5194     # On AmigaOS with pdksh, this test takes hours, literally.
5195     # So we just punt and use a minimum line length of 8192.
5196     lt_cv_sys_max_cmd_len=8192;
5197     ;;
5198
5199   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5200     # This has been around since 386BSD, at least.  Likely further.
5201     if test -x /sbin/sysctl; then
5202       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5203     elif test -x /usr/sbin/sysctl; then
5204       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5205     else
5206       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5207     fi
5208     # And add a safety zone
5209     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5210     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211     ;;
5212   esac
5213
5214 fi
5215
5216 if test -n "$lt_cv_sys_max_cmd_len" ; then
5217   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5218 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5219 else
5220   echo "$as_me:$LINENO: result: none" >&5
5221 echo "${ECHO_T}none" >&6
5222 fi
5223
5224
5225 # Only perform the check for file, if the check method requires it
5226 case $deplibs_check_method in
5227 file_magic*)
5228   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5229     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5230 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   case $MAGIC_CMD in
5235   /*)
5236   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5237   ;;
5238   ?:/*)
5239   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5240   ;;
5241   *)
5242   ac_save_MAGIC_CMD="$MAGIC_CMD"
5243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5244   ac_dummy="/usr/bin:$PATH"
5245   for ac_dir in $ac_dummy; do
5246     test -z "$ac_dir" && ac_dir=.
5247     if test -f $ac_dir/${ac_tool_prefix}file; then
5248       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5249       if test -n "$file_magic_test_file"; then
5250         case $deplibs_check_method in
5251         "file_magic "*)
5252           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5253           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5254           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5255             egrep "$file_magic_regex" > /dev/null; then
5256             :
5257           else
5258             cat <<EOF 1>&2
5259
5260 *** Warning: the command libtool uses to detect shared libraries,
5261 *** $file_magic_cmd, produces output that libtool cannot recognize.
5262 *** The result is that libtool may fail to recognize shared libraries
5263 *** as such.  This will affect the creation of libtool libraries that
5264 *** depend on shared libraries, but programs linked with such libtool
5265 *** libraries will work regardless of this problem.  Nevertheless, you
5266 *** may want to report the problem to your system manager and/or to
5267 *** bug-libtool@gnu.org
5268
5269 EOF
5270           fi ;;
5271         esac
5272       fi
5273       break
5274     fi
5275   done
5276   IFS="$ac_save_ifs"
5277   MAGIC_CMD="$ac_save_MAGIC_CMD"
5278   ;;
5279 esac
5280 fi
5281
5282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5283 if test -n "$MAGIC_CMD"; then
5284   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5285 echo "${ECHO_T}$MAGIC_CMD" >&6
5286 else
5287   echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5289 fi
5290
5291 if test -z "$lt_cv_path_MAGIC_CMD"; then
5292   if test -n "$ac_tool_prefix"; then
5293     echo "$as_me:$LINENO: checking for file" >&5
5294 echo $ECHO_N "checking for file... $ECHO_C" >&6
5295 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   case $MAGIC_CMD in
5299   /*)
5300   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5301   ;;
5302   ?:/*)
5303   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5304   ;;
5305   *)
5306   ac_save_MAGIC_CMD="$MAGIC_CMD"
5307   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5308   ac_dummy="/usr/bin:$PATH"
5309   for ac_dir in $ac_dummy; do
5310     test -z "$ac_dir" && ac_dir=.
5311     if test -f $ac_dir/file; then
5312       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5313       if test -n "$file_magic_test_file"; then
5314         case $deplibs_check_method in
5315         "file_magic "*)
5316           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5317           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5318           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5319             egrep "$file_magic_regex" > /dev/null; then
5320             :
5321           else
5322             cat <<EOF 1>&2
5323
5324 *** Warning: the command libtool uses to detect shared libraries,
5325 *** $file_magic_cmd, produces output that libtool cannot recognize.
5326 *** The result is that libtool may fail to recognize shared libraries
5327 *** as such.  This will affect the creation of libtool libraries that
5328 *** depend on shared libraries, but programs linked with such libtool
5329 *** libraries will work regardless of this problem.  Nevertheless, you
5330 *** may want to report the problem to your system manager and/or to
5331 *** bug-libtool@gnu.org
5332
5333 EOF
5334           fi ;;
5335         esac
5336       fi
5337       break
5338     fi
5339   done
5340   IFS="$ac_save_ifs"
5341   MAGIC_CMD="$ac_save_MAGIC_CMD"
5342   ;;
5343 esac
5344 fi
5345
5346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5347 if test -n "$MAGIC_CMD"; then
5348   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5349 echo "${ECHO_T}$MAGIC_CMD" >&6
5350 else
5351   echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5353 fi
5354
5355   else
5356     MAGIC_CMD=:
5357   fi
5358 fi
5359
5360   fi
5361   ;;
5362 esac
5363
5364 if test -n "$ac_tool_prefix"; then
5365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_prog_RANLIB+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   if test -n "$RANLIB"; then
5373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380   for ac_exec_ext in '' $ac_executable_extensions; do
5381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387 done
5388
5389 fi
5390 fi
5391 RANLIB=$ac_cv_prog_RANLIB
5392 if test -n "$RANLIB"; then
5393   echo "$as_me:$LINENO: result: $RANLIB" >&5
5394 echo "${ECHO_T}$RANLIB" >&6
5395 else
5396   echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5398 fi
5399
5400 fi
5401 if test -z "$ac_cv_prog_RANLIB"; then
5402   ac_ct_RANLIB=$RANLIB
5403   # Extract the first word of "ranlib", so it can be a program name with args.
5404 set dummy ranlib; ac_word=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   if test -n "$ac_ct_RANLIB"; then
5411   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for ac_exec_ext in '' $ac_executable_extensions; do
5419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_prog_ac_ct_RANLIB="ranlib"
5421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425 done
5426
5427   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5428 fi
5429 fi
5430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5431 if test -n "$ac_ct_RANLIB"; then
5432   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5433 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5434 else
5435   echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5437 fi
5438
5439   RANLIB=$ac_ct_RANLIB
5440 else
5441   RANLIB="$ac_cv_prog_RANLIB"
5442 fi
5443
5444 if test -n "$ac_tool_prefix"; then
5445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}strip; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_STRIP+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if test -n "$STRIP"; then
5453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460   for ac_exec_ext in '' $ac_executable_extensions; do
5461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467 done
5468
5469 fi
5470 fi
5471 STRIP=$ac_cv_prog_STRIP
5472 if test -n "$STRIP"; then
5473   echo "$as_me:$LINENO: result: $STRIP" >&5
5474 echo "${ECHO_T}$STRIP" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480 fi
5481 if test -z "$ac_cv_prog_STRIP"; then
5482   ac_ct_STRIP=$STRIP
5483   # Extract the first word of "strip", so it can be a program name with args.
5484 set dummy strip; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$ac_ct_STRIP"; then
5491   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_STRIP="strip"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506
5507   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5508 fi
5509 fi
5510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5511 if test -n "$ac_ct_STRIP"; then
5512   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5513 echo "${ECHO_T}$ac_ct_STRIP" >&6
5514 else
5515   echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5517 fi
5518
5519   STRIP=$ac_ct_STRIP
5520 else
5521   STRIP="$ac_cv_prog_STRIP"
5522 fi
5523
5524
5525 # Check for any special flags to pass to ltconfig.
5526 libtool_flags="--cache-file=$cache_file"
5527 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5528 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5529 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5530 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5531 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5532
5533
5534 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5535 if test "${enable_libtool_lock+set}" = set; then
5536   enableval="$enable_libtool_lock"
5537
5538 fi;
5539 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5540 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5541
5542
5543 # Check whether --with-pic or --without-pic was given.
5544 if test "${with_pic+set}" = set; then
5545   withval="$with_pic"
5546   pic_mode="$withval"
5547 else
5548   pic_mode=default
5549 fi;
5550 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5551 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5552
5553 # Some flags need to be propagated to the compiler or linker for good
5554 # libtool support.
5555 case $host in
5556 *-*-irix6*)
5557   # Find out which ABI we are using.
5558   echo '#line 5558 "configure"' > conftest.$ac_ext
5559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560   (eval $ac_compile) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; then
5564    if test "$lt_cv_prog_gnu_ld" = yes; then
5565     case `/usr/bin/file conftest.$ac_objext` in
5566     *32-bit*)
5567       LD="${LD-ld} -melf32bsmip"
5568       ;;
5569     *N32*)
5570       LD="${LD-ld} -melf32bmipn32"
5571       ;;
5572     *64-bit*)
5573       LD="${LD-ld} -melf64bmip"
5574       ;;
5575     esac
5576    else
5577     case `/usr/bin/file conftest.$ac_objext` in
5578     *32-bit*)
5579       LD="${LD-ld} -32"
5580       ;;
5581     *N32*)
5582       LD="${LD-ld} -n32"
5583       ;;
5584     *64-bit*)
5585       LD="${LD-ld} -64"
5586       ;;
5587     esac
5588    fi
5589   fi
5590   rm -rf conftest*
5591   ;;
5592
5593 ia64-*-hpux*)
5594   # Find out which ABI we are using.
5595   echo 'int i;' > conftest.$ac_ext
5596   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597   (eval $ac_compile) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; then
5601     case "`/usr/bin/file conftest.o`" in
5602     *ELF-32*)
5603       HPUX_IA64_MODE="32"
5604       ;;
5605     *ELF-64*)
5606       HPUX_IA64_MODE="64"
5607       ;;
5608     esac
5609   fi
5610   rm -rf conftest*
5611   ;;
5612
5613 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5614   # Find out which ABI we are using.
5615   echo 'int i;' > conftest.$ac_ext
5616   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5617   (eval $ac_compile) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; then
5621     case "`/usr/bin/file conftest.o`" in
5622     *32-bit*)
5623       case $host in
5624         x86_64-*linux*)
5625           LD="${LD-ld} -m elf_i386"
5626           ;;
5627         ppc64-*linux*|powerpc64-*linux*)
5628           LD="${LD-ld} -m elf32ppclinux"
5629           ;;
5630         s390x-*linux*)
5631           LD="${LD-ld} -m elf_s390"
5632           ;;
5633         sparc64-*linux*)
5634           LD="${LD-ld} -m elf32_sparc"
5635           ;;
5636       esac
5637       ;;
5638     *64-bit*)
5639       case $host in
5640         x86_64-*linux*)
5641           LD="${LD-ld} -m elf_x86_64"
5642           ;;
5643         ppc*-*linux*|powerpc*-*linux*)
5644           LD="${LD-ld} -m elf64ppc"
5645           ;;
5646         s390*-*linux*)
5647           LD="${LD-ld} -m elf64_s390"
5648           ;;
5649         sparc*-*linux*)
5650           LD="${LD-ld} -m elf64_sparc"
5651           ;;
5652       esac
5653       ;;
5654     esac
5655   fi
5656   rm -rf conftest*
5657   ;;
5658
5659 *-*-sco3.2v5*)
5660   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5661   SAVE_CFLAGS="$CFLAGS"
5662   CFLAGS="$CFLAGS -belf"
5663   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5664 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5665 if test "${lt_cv_cc_needs_belf+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668
5669
5670      ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676      if test x$gcc_no_link = xyes; then
5677   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5679    { (exit 1); exit 1; }; }
5680 fi
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687
5688 int
5689 main ()
5690 {
5691
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   lt_cv_cc_needs_belf=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 lt_cv_cc_needs_belf=no
5724 fi
5725 rm -f conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727      ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733 fi
5734 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5735 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5736   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5737     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5738     CFLAGS="$SAVE_CFLAGS"
5739   fi
5740   ;;
5741
5742
5743 esac
5744
5745
5746 # Save cache, so that ltconfig can load it
5747 cat >confcache <<\_ACEOF
5748 # This file is a shell script that caches the results of configure
5749 # tests run on this system so they can be shared between configure
5750 # scripts and configure runs, see configure's option --config-cache.
5751 # It is not useful on other systems.  If it contains results you don't
5752 # want to keep, you may remove or edit it.
5753 #
5754 # config.status only pays attention to the cache file if you give it
5755 # the --recheck option to rerun configure.
5756 #
5757 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5759 # following values.
5760
5761 _ACEOF
5762
5763 # The following way of writing the cache mishandles newlines in values,
5764 # but we know of no workaround that is simple, portable, and efficient.
5765 # So, don't put newlines in cache variables' values.
5766 # Ultrix sh set writes to stderr and can't be redirected directly,
5767 # and sets the high bit in the cache file unless we assign to the vars.
5768 {
5769   (set) 2>&1 |
5770     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5771     *ac_space=\ *)
5772       # `set' does not quote correctly, so add quotes (double-quote
5773       # substitution turns \\\\ into \\, and sed turns \\ into \).
5774       sed -n \
5775         "s/'/'\\\\''/g;
5776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5777       ;;
5778     *)
5779       # `set' quotes correctly as required by POSIX, so do not add quotes.
5780       sed -n \
5781         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5782       ;;
5783     esac;
5784 } |
5785   sed '
5786      t clear
5787      : clear
5788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5789      t end
5790      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5791      : end' >>confcache
5792 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5793   if test -w $cache_file; then
5794     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5795     cat confcache >$cache_file
5796   else
5797     echo "not updating unwritable cache $cache_file"
5798   fi
5799 fi
5800 rm -f confcache
5801
5802 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5803 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5804 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5805 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5806 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5807 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5808 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5809 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5810 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5811 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5812 echo "$as_me: error: libtool configure failed" >&2;}
5813    { (exit 1); exit 1; }; }
5814
5815 # Reload cache, that may have been modified by ltconfig
5816 if test -r "$cache_file"; then
5817   # Some versions of bash will fail to source /dev/null (special
5818   # files actually), so we avoid doing that.
5819   if test -f "$cache_file"; then
5820     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5821 echo "$as_me: loading cache $cache_file" >&6;}
5822     case $cache_file in
5823       [\\/]* | ?:[\\/]* ) . $cache_file;;
5824       *)                      . ./$cache_file;;
5825     esac
5826   fi
5827 else
5828   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5829 echo "$as_me: creating cache $cache_file" >&6;}
5830   >$cache_file
5831 fi
5832
5833
5834 # This can be used to rebuild libtool when needed
5835 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5836
5837 # Always use our own libtool.
5838 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5839
5840 # Redirect the config.log output again, so that the ltconfig log is not
5841 # clobbered by the next message.
5842 exec 5>>./config.log
5843
5844
5845
5846
5847
5848
5849 ac_ext=c
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854 if test -n "$ac_tool_prefix"; then
5855   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5857 echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859 if test "${ac_cv_prog_CC+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   if test -n "$CC"; then
5863   ac_cv_prog_CC="$CC" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_exec_ext in '' $ac_executable_extensions; do
5871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877 done
5878
5879 fi
5880 fi
5881 CC=$ac_cv_prog_CC
5882 if test -n "$CC"; then
5883   echo "$as_me:$LINENO: result: $CC" >&5
5884 echo "${ECHO_T}$CC" >&6
5885 else
5886   echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5888 fi
5889
5890 fi
5891 if test -z "$ac_cv_prog_CC"; then
5892   ac_ct_CC=$CC
5893   # Extract the first word of "gcc", so it can be a program name with args.
5894 set dummy gcc; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   if test -n "$ac_ct_CC"; then
5901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_ac_ct_CC="gcc"
5911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916
5917 fi
5918 fi
5919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5920 if test -n "$ac_ct_CC"; then
5921   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5922 echo "${ECHO_T}$ac_ct_CC" >&6
5923 else
5924   echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5926 fi
5927
5928   CC=$ac_ct_CC
5929 else
5930   CC="$ac_cv_prog_CC"
5931 fi
5932
5933 if test -z "$CC"; then
5934   if test -n "$ac_tool_prefix"; then
5935   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}cc; ac_word=$2
5937 echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_CC+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   if test -n "$CC"; then
5943   ac_cv_prog_CC="$CC" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950   for ac_exec_ext in '' $ac_executable_extensions; do
5951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952     ac_cv_prog_CC="${ac_tool_prefix}cc"
5953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957 done
5958
5959 fi
5960 fi
5961 CC=$ac_cv_prog_CC
5962 if test -n "$CC"; then
5963   echo "$as_me:$LINENO: result: $CC" >&5
5964 echo "${ECHO_T}$CC" >&6
5965 else
5966   echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968 fi
5969
5970 fi
5971 if test -z "$ac_cv_prog_CC"; then
5972   ac_ct_CC=$CC
5973   # Extract the first word of "cc", so it can be a program name with args.
5974 set dummy cc; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   if test -n "$ac_ct_CC"; then
5981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_ac_ct_CC="cc"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996
5997 fi
5998 fi
5999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6000 if test -n "$ac_ct_CC"; then
6001   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6002 echo "${ECHO_T}$ac_ct_CC" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   CC=$ac_ct_CC
6009 else
6010   CC="$ac_cv_prog_CC"
6011 fi
6012
6013 fi
6014 if test -z "$CC"; then
6015   # Extract the first word of "cc", so it can be a program name with args.
6016 set dummy cc; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_CC+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   if test -n "$CC"; then
6023   ac_cv_prog_CC="$CC" # Let the user override the test.
6024 else
6025   ac_prog_rejected=no
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031   for ac_exec_ext in '' $ac_executable_extensions; do
6032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6034        ac_prog_rejected=yes
6035        continue
6036      fi
6037     ac_cv_prog_CC="cc"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043
6044 if test $ac_prog_rejected = yes; then
6045   # We found a bogon in the path, so make sure we never use it.
6046   set dummy $ac_cv_prog_CC
6047   shift
6048   if test $# != 0; then
6049     # We chose a different compiler from the bogus one.
6050     # However, it has the same basename, so the bogon will be chosen
6051     # first if we set CC to just the basename; use the full file name.
6052     shift
6053     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6054   fi
6055 fi
6056 fi
6057 fi
6058 CC=$ac_cv_prog_CC
6059 if test -n "$CC"; then
6060   echo "$as_me:$LINENO: result: $CC" >&5
6061 echo "${ECHO_T}$CC" >&6
6062 else
6063   echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6065 fi
6066
6067 fi
6068 if test -z "$CC"; then
6069   if test -n "$ac_tool_prefix"; then
6070   for ac_prog in cl
6071   do
6072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_CC+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   if test -n "$CC"; then
6080   ac_cv_prog_CC="$CC" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087   for ac_exec_ext in '' $ac_executable_extensions; do
6088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094 done
6095
6096 fi
6097 fi
6098 CC=$ac_cv_prog_CC
6099 if test -n "$CC"; then
6100   echo "$as_me:$LINENO: result: $CC" >&5
6101 echo "${ECHO_T}$CC" >&6
6102 else
6103   echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6105 fi
6106
6107     test -n "$CC" && break
6108   done
6109 fi
6110 if test -z "$CC"; then
6111   ac_ct_CC=$CC
6112   for ac_prog in cl
6113 do
6114   # Extract the first word of "$ac_prog", so it can be a program name with args.
6115 set dummy $ac_prog; ac_word=$2
6116 echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$ac_ct_CC"; then
6122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_prog_ac_ct_CC="$ac_prog"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137
6138 fi
6139 fi
6140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6141 if test -n "$ac_ct_CC"; then
6142   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6143 echo "${ECHO_T}$ac_ct_CC" >&6
6144 else
6145   echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6147 fi
6148
6149   test -n "$ac_ct_CC" && break
6150 done
6151
6152   CC=$ac_ct_CC
6153 fi
6154
6155 fi
6156
6157
6158 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6159 See \`config.log' for more details." >&5
6160 echo "$as_me: error: no acceptable C compiler found in \$PATH
6161 See \`config.log' for more details." >&2;}
6162    { (exit 1); exit 1; }; }
6163
6164 # Provide some information about the compiler.
6165 echo "$as_me:$LINENO:" \
6166      "checking for C compiler version" >&5
6167 ac_compiler=`set X $ac_compile; echo $2`
6168 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6169   (eval $ac_compiler --version </dev/null >&5) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }
6173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6174   (eval $ac_compiler -v </dev/null >&5) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }
6178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6179   (eval $ac_compiler -V </dev/null >&5) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }
6183
6184 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6185 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6186 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195
6196 int
6197 main ()
6198 {
6199 #ifndef __GNUC__
6200        choke me
6201 #endif
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209   (eval $ac_compile) 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -z "$ac_c_werror_flag"
6217                          || test ! -s conftest.err'
6218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; } &&
6223          { ac_try='test -s conftest.$ac_objext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   ac_compiler_gnu=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ac_compiler_gnu=no
6235 fi
6236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6238
6239 fi
6240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6242 GCC=`test $ac_compiler_gnu = yes && echo yes`
6243 ac_test_CFLAGS=${CFLAGS+set}
6244 ac_save_CFLAGS=$CFLAGS
6245 CFLAGS="-g"
6246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6248 if test "${ac_cv_prog_cc_g+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257
6258 int
6259 main ()
6260 {
6261
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268   (eval $ac_compile) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } &&
6275          { ac_try='test -z "$ac_c_werror_flag"
6276                          || test ! -s conftest.err'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; } &&
6282          { ac_try='test -s conftest.$ac_objext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   ac_cv_prog_cc_g=yes
6289 else
6290   echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 ac_cv_prog_cc_g=no
6294 fi
6295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6298 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6299 if test "$ac_test_CFLAGS" = set; then
6300   CFLAGS=$ac_save_CFLAGS
6301 elif test $ac_cv_prog_cc_g = yes; then
6302   if test "$GCC" = yes; then
6303     CFLAGS="-g -O2"
6304   else
6305     CFLAGS="-g"
6306   fi
6307 else
6308   if test "$GCC" = yes; then
6309     CFLAGS="-O2"
6310   else
6311     CFLAGS=
6312   fi
6313 fi
6314 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6315 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6316 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   ac_cv_prog_cc_stdc=no
6320 ac_save_CC=$CC
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327 #include <stdarg.h>
6328 #include <stdio.h>
6329 #include <sys/types.h>
6330 #include <sys/stat.h>
6331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6332 struct buf { int x; };
6333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6334 static char *e (p, i)
6335      char **p;
6336      int i;
6337 {
6338   return p[i];
6339 }
6340 static char *f (char * (*g) (char **, int), char **p, ...)
6341 {
6342   char *s;
6343   va_list v;
6344   va_start (v,p);
6345   s = g (p, va_arg (v,int));
6346   va_end (v);
6347   return s;
6348 }
6349
6350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6351    function prototypes and stuff, but not '\xHH' hex character constants.
6352    These don't provoke an error unfortunately, instead are silently treated
6353    as 'x'.  The following induces an error, until -std1 is added to get
6354    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6355    array size at least.  It's necessary to write '\x00'==0 to get something
6356    that's true only with -std1.  */
6357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6358
6359 int test (int i, double x);
6360 struct s1 {int (*f) (int a);};
6361 struct s2 {int (*f) (double a);};
6362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6363 int argc;
6364 char **argv;
6365 int
6366 main ()
6367 {
6368 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 # Don't try gcc -ansi; that turns off useful extensions and
6374 # breaks some systems' header files.
6375 # AIX                   -qlanglvl=ansi
6376 # Ultrix and OSF/1      -std1
6377 # HP-UX 10.20 and later -Ae
6378 # HP-UX older versions  -Aa -D_HPUX_SOURCE
6379 # SVR4                  -Xc -D__EXTENSIONS__
6380 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6381 do
6382   CC="$ac_save_CC $ac_arg"
6383   rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385   (eval $ac_compile) 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } &&
6392          { ac_try='test -z "$ac_c_werror_flag"
6393                          || test ! -s conftest.err'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; } &&
6399          { ac_try='test -s conftest.$ac_objext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   ac_cv_prog_cc_stdc=$ac_arg
6406 break
6407 else
6408   echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 fi
6412 rm -f conftest.err conftest.$ac_objext
6413 done
6414 rm -f conftest.$ac_ext conftest.$ac_objext
6415 CC=$ac_save_CC
6416
6417 fi
6418
6419 case "x$ac_cv_prog_cc_stdc" in
6420   x|xno)
6421     echo "$as_me:$LINENO: result: none needed" >&5
6422 echo "${ECHO_T}none needed" >&6 ;;
6423   *)
6424     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6425 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6426     CC="$CC $ac_cv_prog_cc_stdc" ;;
6427 esac
6428
6429 # Some people use a C++ compiler to compile C.  Since we use `exit',
6430 # in C++ we need to declare it.  In case someone uses the same compiler
6431 # for both compiling C and C++ we need to have the C++ compiler decide
6432 # the declaration of exit, since it's the most demanding environment.
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #ifndef __cplusplus
6435   choke me
6436 #endif
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } &&
6447          { ac_try='test -z "$ac_c_werror_flag"
6448                          || test ! -s conftest.err'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest.$ac_objext'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   for ac_declaration in \
6461    '' \
6462    'extern "C" void std::exit (int) throw (); using std::exit;' \
6463    'extern "C" void std::exit (int); using std::exit;' \
6464    'extern "C" void exit (int) throw ();' \
6465    'extern "C" void exit (int);' \
6466    'void exit (int);'
6467 do
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_declaration
6475 #include <stdlib.h>
6476 int
6477 main ()
6478 {
6479 exit (42);
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486   (eval $ac_compile) 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -z "$ac_c_werror_flag"
6494                          || test ! -s conftest.err'
6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496   (eval $ac_try) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; } &&
6500          { ac_try='test -s conftest.$ac_objext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   :
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 continue
6512 fi
6513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514   cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520 $ac_declaration
6521 int
6522 main ()
6523 {
6524 exit (42);
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531   (eval $ac_compile) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   break
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 done
6559 rm -f conftest*
6560 if test -n "$ac_declaration"; then
6561   echo '#ifdef __cplusplus' >>confdefs.h
6562   echo $ac_declaration      >>confdefs.h
6563   echo '#endif'             >>confdefs.h
6564 fi
6565
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570 fi
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572 ac_ext=c
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
6578 depcc="$CC"   am_compiler_list=
6579
6580 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6582 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6586   # We make a subdir and do the tests there.  Otherwise we can end up
6587   # making bogus files that we don't know about and never remove.  For
6588   # instance it was reported that on HP-UX the gcc test will end up
6589   # making a dummy file named `D' -- because `-MD' means `put the output
6590   # in D'.
6591   mkdir conftest.dir
6592   # Copy depcomp to subdir because otherwise we won't find it if we're
6593   # using a relative directory.
6594   cp "$am_depcomp" conftest.dir
6595   cd conftest.dir
6596   # We will build objects and dependencies in a subdirectory because
6597   # it helps to detect inapplicable dependency modes.  For instance
6598   # both Tru64's cc and ICC support -MD to output dependencies as a
6599   # side effect of compilation, but ICC will put the dependencies in
6600   # the current directory while Tru64 will put them in the object
6601   # directory.
6602   mkdir sub
6603
6604   am_cv_CC_dependencies_compiler_type=none
6605   if test "$am_compiler_list" = ""; then
6606      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6607   fi
6608   for depmode in $am_compiler_list; do
6609     # Setup a source with many dependencies, because some compilers
6610     # like to wrap large dependency lists on column 80 (with \), and
6611     # we should not choose a depcomp mode which is confused by this.
6612     #
6613     # We need to recreate these files for each test, as the compiler may
6614     # overwrite some of them when testing with obscure command lines.
6615     # This happens at least with the AIX C compiler.
6616     : > sub/conftest.c
6617     for i in 1 2 3 4 5 6; do
6618       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6619       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6620       # Solaris 8's {/usr,}/bin/sh.
6621       touch sub/conftst$i.h
6622     done
6623     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6624
6625     case $depmode in
6626     nosideeffect)
6627       # after this tag, mechanisms are not by side-effect, so they'll
6628       # only be used when explicitly requested
6629       if test "x$enable_dependency_tracking" = xyes; then
6630         continue
6631       else
6632         break
6633       fi
6634       ;;
6635     none) break ;;
6636     esac
6637     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6638     # mode.  It turns out that the SunPro C++ compiler does not properly
6639     # handle `-M -o', and we need to detect this.
6640     if depmode=$depmode \
6641        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6642        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6643        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6644          >/dev/null 2>conftest.err &&
6645        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6646        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6647        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6648       # icc doesn't choke on unknown options, it will just issue warnings
6649       # or remarks (even with -Werror).  So we grep stderr for any message
6650       # that says an option was ignored or not supported.
6651       # When given -MP, icc 7.0 and 7.1 complain thusly:
6652       #   icc: Command line warning: ignoring option '-M'; no argument required
6653       # The diagnosis changed in icc 8.0:
6654       #   icc: Command line remark: option '-MP' not supported
6655       if (grep 'ignoring option' conftest.err ||
6656           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6657         am_cv_CC_dependencies_compiler_type=$depmode
6658         break
6659       fi
6660     fi
6661   done
6662
6663   cd ..
6664   rm -rf conftest.dir
6665 else
6666   am_cv_CC_dependencies_compiler_type=none
6667 fi
6668
6669 fi
6670 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6671 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6673
6674
6675
6676 if
6677   test "x$enable_dependency_tracking" != xno \
6678   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6679   am__fastdepCC_TRUE=
6680   am__fastdepCC_FALSE='#'
6681 else
6682   am__fastdepCC_TRUE='#'
6683   am__fastdepCC_FALSE=
6684 fi
6685
6686
6687 ac_ext=c
6688 ac_cpp='$CPP $CPPFLAGS'
6689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6694 # On Suns, sometimes $CPP names a directory.
6695 if test -n "$CPP" && test -d "$CPP"; then
6696   CPP=
6697 fi
6698 if test -z "$CPP"; then
6699   if test "${ac_cv_prog_CPP+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702       # Double quotes because CPP needs to be expanded
6703     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6704     do
6705       ac_preproc_ok=false
6706 for ac_c_preproc_warn_flag in '' yes
6707 do
6708   # Use a header file that comes with gcc, so configuring glibc
6709   # with a fresh cross-compiler works.
6710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711   # <limits.h> exists even on freestanding compilers.
6712   # On the NeXT, cc -E runs the code through the compiler's parser,
6713   # not just through cpp. "Syntax error" is here to catch this case.
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 #ifdef __STDC__
6721 # include <limits.h>
6722 #else
6723 # include <assert.h>
6724 #endif
6725                      Syntax error
6726 _ACEOF
6727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6729   ac_status=$?
6730   grep -v '^ *+' conftest.er1 >conftest.err
6731   rm -f conftest.er1
6732   cat conftest.err >&5
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); } >/dev/null; then
6735   if test -s conftest.err; then
6736     ac_cpp_err=$ac_c_preproc_warn_flag
6737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6738   else
6739     ac_cpp_err=
6740   fi
6741 else
6742   ac_cpp_err=yes
6743 fi
6744 if test -z "$ac_cpp_err"; then
6745   :
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750   # Broken: fails on valid input.
6751 continue
6752 fi
6753 rm -f conftest.err conftest.$ac_ext
6754
6755   # OK, works on sane cases.  Now check whether non-existent headers
6756   # can be detected and how.
6757   cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 #include <ac_nonexistent.h>
6764 _ACEOF
6765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } >/dev/null; then
6773   if test -s conftest.err; then
6774     ac_cpp_err=$ac_c_preproc_warn_flag
6775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6776   else
6777     ac_cpp_err=
6778   fi
6779 else
6780   ac_cpp_err=yes
6781 fi
6782 if test -z "$ac_cpp_err"; then
6783   # Broken: success on invalid input.
6784 continue
6785 else
6786   echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789   # Passes both tests.
6790 ac_preproc_ok=:
6791 break
6792 fi
6793 rm -f conftest.err conftest.$ac_ext
6794
6795 done
6796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6797 rm -f conftest.err conftest.$ac_ext
6798 if $ac_preproc_ok; then
6799   break
6800 fi
6801
6802     done
6803     ac_cv_prog_CPP=$CPP
6804
6805 fi
6806   CPP=$ac_cv_prog_CPP
6807 else
6808   ac_cv_prog_CPP=$CPP
6809 fi
6810 echo "$as_me:$LINENO: result: $CPP" >&5
6811 echo "${ECHO_T}$CPP" >&6
6812 ac_preproc_ok=false
6813 for ac_c_preproc_warn_flag in '' yes
6814 do
6815   # Use a header file that comes with gcc, so configuring glibc
6816   # with a fresh cross-compiler works.
6817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818   # <limits.h> exists even on freestanding compilers.
6819   # On the NeXT, cc -E runs the code through the compiler's parser,
6820   # not just through cpp. "Syntax error" is here to catch this case.
6821   cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 #ifdef __STDC__
6828 # include <limits.h>
6829 #else
6830 # include <assert.h>
6831 #endif
6832                      Syntax error
6833 _ACEOF
6834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } >/dev/null; then
6842   if test -s conftest.err; then
6843     ac_cpp_err=$ac_c_preproc_warn_flag
6844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6845   else
6846     ac_cpp_err=
6847   fi
6848 else
6849   ac_cpp_err=yes
6850 fi
6851 if test -z "$ac_cpp_err"; then
6852   :
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857   # Broken: fails on valid input.
6858 continue
6859 fi
6860 rm -f conftest.err conftest.$ac_ext
6861
6862   # OK, works on sane cases.  Now check whether non-existent headers
6863   # can be detected and how.
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <ac_nonexistent.h>
6871 _ACEOF
6872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6874   ac_status=$?
6875   grep -v '^ *+' conftest.er1 >conftest.err
6876   rm -f conftest.er1
6877   cat conftest.err >&5
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } >/dev/null; then
6880   if test -s conftest.err; then
6881     ac_cpp_err=$ac_c_preproc_warn_flag
6882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6883   else
6884     ac_cpp_err=
6885   fi
6886 else
6887   ac_cpp_err=yes
6888 fi
6889 if test -z "$ac_cpp_err"; then
6890   # Broken: success on invalid input.
6891 continue
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896   # Passes both tests.
6897 ac_preproc_ok=:
6898 break
6899 fi
6900 rm -f conftest.err conftest.$ac_ext
6901
6902 done
6903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6904 rm -f conftest.err conftest.$ac_ext
6905 if $ac_preproc_ok; then
6906   :
6907 else
6908   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6909 See \`config.log' for more details." >&5
6910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6911 See \`config.log' for more details." >&2;}
6912    { (exit 1); exit 1; }; }
6913 fi
6914
6915 ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920
6921 ac_ext=cc
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926 if test -n "$ac_tool_prefix"; then
6927   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6928   do
6929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6931 echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933 if test "${ac_cv_prog_CXX+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   if test -n "$CXX"; then
6937   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   for ac_exec_ext in '' $ac_executable_extensions; do
6945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951 done
6952
6953 fi
6954 fi
6955 CXX=$ac_cv_prog_CXX
6956 if test -n "$CXX"; then
6957   echo "$as_me:$LINENO: result: $CXX" >&5
6958 echo "${ECHO_T}$CXX" >&6
6959 else
6960   echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6
6962 fi
6963
6964     test -n "$CXX" && break
6965   done
6966 fi
6967 if test -z "$CXX"; then
6968   ac_ct_CXX=$CXX
6969   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6970 do
6971   # Extract the first word of "$ac_prog", so it can be a program name with args.
6972 set dummy $ac_prog; ac_word=$2
6973 echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6975 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   if test -n "$ac_ct_CXX"; then
6979   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986   for ac_exec_ext in '' $ac_executable_extensions; do
6987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988     ac_cv_prog_ac_ct_CXX="$ac_prog"
6989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993 done
6994
6995 fi
6996 fi
6997 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6998 if test -n "$ac_ct_CXX"; then
6999   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7000 echo "${ECHO_T}$ac_ct_CXX" >&6
7001 else
7002   echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6
7004 fi
7005
7006   test -n "$ac_ct_CXX" && break
7007 done
7008 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7009
7010   CXX=$ac_ct_CXX
7011 fi
7012
7013
7014 # Provide some information about the compiler.
7015 echo "$as_me:$LINENO:" \
7016      "checking for C++ compiler version" >&5
7017 ac_compiler=`set X $ac_compile; echo $2`
7018 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7019   (eval $ac_compiler --version </dev/null >&5) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }
7023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7024   (eval $ac_compiler -v </dev/null >&5) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }
7028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7029   (eval $ac_compiler -V </dev/null >&5) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }
7033
7034 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7035 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045
7046 int
7047 main ()
7048 {
7049 #ifndef __GNUC__
7050        choke me
7051 #endif
7052
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059   (eval $ac_compile) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_cxx_werror_flag"
7067                          || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_compiler_gnu=yes
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_compiler_gnu=no
7085 fi
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7088
7089 fi
7090 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7091 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7092 GXX=`test $ac_compiler_gnu = yes && echo yes`
7093 ac_test_CXXFLAGS=${CXXFLAGS+set}
7094 ac_save_CXXFLAGS=$CXXFLAGS
7095 CXXFLAGS="-g"
7096 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7097 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7098 if test "${ac_cv_prog_cxx_g+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107
7108 int
7109 main ()
7110 {
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_cxx_werror_flag"
7126                          || test ! -s conftest.err'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; } &&
7132          { ac_try='test -s conftest.$ac_objext'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   ac_cv_prog_cxx_g=yes
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_cv_prog_cxx_g=no
7144 fi
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7148 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7149 if test "$ac_test_CXXFLAGS" = set; then
7150   CXXFLAGS=$ac_save_CXXFLAGS
7151 elif test $ac_cv_prog_cxx_g = yes; then
7152   if test "$GXX" = yes; then
7153     CXXFLAGS="-g -O2"
7154   else
7155     CXXFLAGS="-g"
7156   fi
7157 else
7158   if test "$GXX" = yes; then
7159     CXXFLAGS="-O2"
7160   else
7161     CXXFLAGS=
7162   fi
7163 fi
7164 for ac_declaration in \
7165    '' \
7166    'extern "C" void std::exit (int) throw (); using std::exit;' \
7167    'extern "C" void std::exit (int); using std::exit;' \
7168    'extern "C" void exit (int) throw ();' \
7169    'extern "C" void exit (int);' \
7170    'void exit (int);'
7171 do
7172   cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 $ac_declaration
7179 #include <stdlib.h>
7180 int
7181 main ()
7182 {
7183 exit (42);
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190   (eval $ac_compile) 2>conftest.er1
7191   ac_status=$?
7192   grep -v '^ *+' conftest.er1 >conftest.err
7193   rm -f conftest.er1
7194   cat conftest.err >&5
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } &&
7197          { ac_try='test -z "$ac_cxx_werror_flag"
7198                          || test ! -s conftest.err'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; } &&
7204          { ac_try='test -s conftest.$ac_objext'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; }; then
7210   :
7211 else
7212   echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 continue
7216 fi
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218   cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224 $ac_declaration
7225 int
7226 main ()
7227 {
7228 exit (42);
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235   (eval $ac_compile) 2>conftest.er1
7236   ac_status=$?
7237   grep -v '^ *+' conftest.er1 >conftest.err
7238   rm -f conftest.er1
7239   cat conftest.err >&5
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); } &&
7242          { ac_try='test -z "$ac_cxx_werror_flag"
7243                          || test ! -s conftest.err'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; } &&
7249          { ac_try='test -s conftest.$ac_objext'
7250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251   (eval $ac_try) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; }; then
7255   break
7256 else
7257   echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7259
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 done
7263 rm -f conftest*
7264 if test -n "$ac_declaration"; then
7265   echo '#ifdef __cplusplus' >>confdefs.h
7266   echo $ac_declaration      >>confdefs.h
7267   echo '#endif'             >>confdefs.h
7268 fi
7269
7270 ac_ext=c
7271 ac_cpp='$CPP $CPPFLAGS'
7272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275
7276 depcc="$CXX"  am_compiler_list=
7277
7278 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7279 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7280 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7284   # We make a subdir and do the tests there.  Otherwise we can end up
7285   # making bogus files that we don't know about and never remove.  For
7286   # instance it was reported that on HP-UX the gcc test will end up
7287   # making a dummy file named `D' -- because `-MD' means `put the output
7288   # in D'.
7289   mkdir conftest.dir
7290   # Copy depcomp to subdir because otherwise we won't find it if we're
7291   # using a relative directory.
7292   cp "$am_depcomp" conftest.dir
7293   cd conftest.dir
7294   # We will build objects and dependencies in a subdirectory because
7295   # it helps to detect inapplicable dependency modes.  For instance
7296   # both Tru64's cc and ICC support -MD to output dependencies as a
7297   # side effect of compilation, but ICC will put the dependencies in
7298   # the current directory while Tru64 will put them in the object
7299   # directory.
7300   mkdir sub
7301
7302   am_cv_CXX_dependencies_compiler_type=none
7303   if test "$am_compiler_list" = ""; then
7304      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7305   fi
7306   for depmode in $am_compiler_list; do
7307     # Setup a source with many dependencies, because some compilers
7308     # like to wrap large dependency lists on column 80 (with \), and
7309     # we should not choose a depcomp mode which is confused by this.
7310     #
7311     # We need to recreate these files for each test, as the compiler may
7312     # overwrite some of them when testing with obscure command lines.
7313     # This happens at least with the AIX C compiler.
7314     : > sub/conftest.c
7315     for i in 1 2 3 4 5 6; do
7316       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7317       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7318       # Solaris 8's {/usr,}/bin/sh.
7319       touch sub/conftst$i.h
7320     done
7321     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7322
7323     case $depmode in
7324     nosideeffect)
7325       # after this tag, mechanisms are not by side-effect, so they'll
7326       # only be used when explicitly requested
7327       if test "x$enable_dependency_tracking" = xyes; then
7328         continue
7329       else
7330         break
7331       fi
7332       ;;
7333     none) break ;;
7334     esac
7335     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7336     # mode.  It turns out that the SunPro C++ compiler does not properly
7337     # handle `-M -o', and we need to detect this.
7338     if depmode=$depmode \
7339        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7340        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7341        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7342          >/dev/null 2>conftest.err &&
7343        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7344        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7345        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7346       # icc doesn't choke on unknown options, it will just issue warnings
7347       # or remarks (even with -Werror).  So we grep stderr for any message
7348       # that says an option was ignored or not supported.
7349       # When given -MP, icc 7.0 and 7.1 complain thusly:
7350       #   icc: Command line warning: ignoring option '-M'; no argument required
7351       # The diagnosis changed in icc 8.0:
7352       #   icc: Command line remark: option '-MP' not supported
7353       if (grep 'ignoring option' conftest.err ||
7354           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7355         am_cv_CXX_dependencies_compiler_type=$depmode
7356         break
7357       fi
7358     fi
7359   done
7360
7361   cd ..
7362   rm -rf conftest.dir
7363 else
7364   am_cv_CXX_dependencies_compiler_type=none
7365 fi
7366
7367 fi
7368 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7369 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7370 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7371
7372
7373
7374 if
7375   test "x$enable_dependency_tracking" != xno \
7376   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7377   am__fastdepCXX_TRUE=
7378   am__fastdepCXX_FALSE='#'
7379 else
7380   am__fastdepCXX_TRUE='#'
7381   am__fastdepCXX_FALSE=
7382 fi
7383
7384 ac_ext=cc
7385 ac_cpp='$CXXCPP $CPPFLAGS'
7386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7389 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7390 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7391 if test -z "$CXXCPP"; then
7392   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395       # Double quotes because CXXCPP needs to be expanded
7396     for CXXCPP in "$CXX -E" "/lib/cpp"
7397     do
7398       ac_preproc_ok=false
7399 for ac_cxx_preproc_warn_flag in '' yes
7400 do
7401   # Use a header file that comes with gcc, so configuring glibc
7402   # with a fresh cross-compiler works.
7403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7404   # <limits.h> exists even on freestanding compilers.
7405   # On the NeXT, cc -E runs the code through the compiler's parser,
7406   # not just through cpp. "Syntax error" is here to catch this case.
7407   cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413 #ifdef __STDC__
7414 # include <limits.h>
7415 #else
7416 # include <assert.h>
7417 #endif
7418                      Syntax error
7419 _ACEOF
7420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } >/dev/null; then
7428   if test -s conftest.err; then
7429     ac_cpp_err=$ac_cxx_preproc_warn_flag
7430     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7431   else
7432     ac_cpp_err=
7433   fi
7434 else
7435   ac_cpp_err=yes
7436 fi
7437 if test -z "$ac_cpp_err"; then
7438   :
7439 else
7440   echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443   # Broken: fails on valid input.
7444 continue
7445 fi
7446 rm -f conftest.err conftest.$ac_ext
7447
7448   # OK, works on sane cases.  Now check whether non-existent headers
7449   # can be detected and how.
7450   cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 #include <ac_nonexistent.h>
7457 _ACEOF
7458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } >/dev/null; then
7466   if test -s conftest.err; then
7467     ac_cpp_err=$ac_cxx_preproc_warn_flag
7468     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7469   else
7470     ac_cpp_err=
7471   fi
7472 else
7473   ac_cpp_err=yes
7474 fi
7475 if test -z "$ac_cpp_err"; then
7476   # Broken: success on invalid input.
7477 continue
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482   # Passes both tests.
7483 ac_preproc_ok=:
7484 break
7485 fi
7486 rm -f conftest.err conftest.$ac_ext
7487
7488 done
7489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7490 rm -f conftest.err conftest.$ac_ext
7491 if $ac_preproc_ok; then
7492   break
7493 fi
7494
7495     done
7496     ac_cv_prog_CXXCPP=$CXXCPP
7497
7498 fi
7499   CXXCPP=$ac_cv_prog_CXXCPP
7500 else
7501   ac_cv_prog_CXXCPP=$CXXCPP
7502 fi
7503 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7504 echo "${ECHO_T}$CXXCPP" >&6
7505 ac_preproc_ok=false
7506 for ac_cxx_preproc_warn_flag in '' yes
7507 do
7508   # Use a header file that comes with gcc, so configuring glibc
7509   # with a fresh cross-compiler works.
7510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7511   # <limits.h> exists even on freestanding compilers.
7512   # On the NeXT, cc -E runs the code through the compiler's parser,
7513   # not just through cpp. "Syntax error" is here to catch this case.
7514   cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 #ifdef __STDC__
7521 # include <limits.h>
7522 #else
7523 # include <assert.h>
7524 #endif
7525                      Syntax error
7526 _ACEOF
7527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529   ac_status=$?
7530   grep -v '^ *+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } >/dev/null; then
7535   if test -s conftest.err; then
7536     ac_cpp_err=$ac_cxx_preproc_warn_flag
7537     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7538   else
7539     ac_cpp_err=
7540   fi
7541 else
7542   ac_cpp_err=yes
7543 fi
7544 if test -z "$ac_cpp_err"; then
7545   :
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550   # Broken: fails on valid input.
7551 continue
7552 fi
7553 rm -f conftest.err conftest.$ac_ext
7554
7555   # OK, works on sane cases.  Now check whether non-existent headers
7556   # can be detected and how.
7557   cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563 #include <ac_nonexistent.h>
7564 _ACEOF
7565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567   ac_status=$?
7568   grep -v '^ *+' conftest.er1 >conftest.err
7569   rm -f conftest.er1
7570   cat conftest.err >&5
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } >/dev/null; then
7573   if test -s conftest.err; then
7574     ac_cpp_err=$ac_cxx_preproc_warn_flag
7575     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7576   else
7577     ac_cpp_err=
7578   fi
7579 else
7580   ac_cpp_err=yes
7581 fi
7582 if test -z "$ac_cpp_err"; then
7583   # Broken: success on invalid input.
7584 continue
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589   # Passes both tests.
7590 ac_preproc_ok=:
7591 break
7592 fi
7593 rm -f conftest.err conftest.$ac_ext
7594
7595 done
7596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7597 rm -f conftest.err conftest.$ac_ext
7598 if $ac_preproc_ok; then
7599   :
7600 else
7601   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7602 See \`config.log' for more details." >&5
7603 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7604 See \`config.log' for more details." >&2;}
7605    { (exit 1); exit 1; }; }
7606 fi
7607
7608 ac_ext=c
7609 ac_cpp='$CPP $CPPFLAGS'
7610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613
7614
7615
7616 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7617 lt_save_CC="$CC"
7618 lt_save_CFLAGS="$CFLAGS"
7619 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7624 deplibs_check_method="$deplibs_check_method" \
7625 file_magic_cmd="$file_magic_cmd" \
7626 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7627 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7628 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7629 echo "$as_me: error: libtool tag configuration failed" >&2;}
7630    { (exit 1); exit 1; }; }
7631 CC="$lt_save_CC"
7632 CFLAGS="$lt_save_CFLAGS"
7633
7634 # Redirect the config.log output again, so that the ltconfig log is not
7635 # clobbered by the next message.
7636 exec 5>>./config.log
7637
7638
7639
7640
7641 # Handle -Werror default case.
7642 if test "$ENABLE_WERROR" = default; then
7643   case "$host_os" in
7644     *linux*)
7645       if test "$GCC" = yes; then
7646         ENABLE_WERROR=yes
7647       fi
7648       ;;
7649   esac
7650 fi
7651
7652 if test "x${COMPILE_COLLECTIONS}" = xyes; then
7653   # Extract the first word of "perl", so it can be a program name with args.
7654 set dummy perl; ac_word=$2
7655 echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657 if test "${ac_cv_path_PERL+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   case $PERL in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670   for ac_exec_ext in '' $ac_executable_extensions; do
7671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677 done
7678
7679   ;;
7680 esac
7681 fi
7682 PERL=$ac_cv_path_PERL
7683
7684 if test -n "$PERL"; then
7685   echo "$as_me:$LINENO: result: $PERL" >&5
7686 echo "${ECHO_T}$PERL" >&6
7687 else
7688   echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7690 fi
7691
7692
7693
7694             ac_config_files="$ac_config_files lib/mkcollections.pl"
7695
7696             ac_config_commands="$ac_config_commands mkcollections.pl"
7697
7698 fi
7699
7700 if test "x${COMPILE_JNI}" = xyes; then
7701
7702
7703
7704  echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
7705 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
7706  if test "${cv_c_gcc_attribute_supported+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709
7710   cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h.  */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h.  */
7716
7717 int
7718 main ()
7719 {
7720 extern int testfunction(int x) __attribute__((,,))
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727   (eval $ac_compile) 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -z "$ac_c_werror_flag"
7735                          || test ! -s conftest.err'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; } &&
7741          { ac_try='test -s conftest.$ac_objext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   cv_c_gcc_attribute_supported=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 cv_c_gcc_attribute_supported=no
7753 fi
7754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7755
7756 fi
7757
7758  if test "x$cv_c_gcc_attribute_supported" = xyes; then
7759   true
7760   echo "$as_me:$LINENO: result: yes" >&5
7761 echo "${ECHO_T}yes" >&6
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_GNUC25_ATTRIB
7765 _ACEOF
7766
7767
7768  else
7769   true
7770   echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7772
7773  fi
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784  echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
7785 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
7786  if test "${cv_c_gcc_attribute_unused+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789
7790   cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796
7797 int
7798 main ()
7799 {
7800 extern int testfunction(int x) __attribute__((unused))
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807   (eval $ac_compile) 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } &&
7814          { ac_try='test -z "$ac_c_werror_flag"
7815                          || test ! -s conftest.err'
7816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817   (eval $ac_try) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); }; } &&
7821          { ac_try='test -s conftest.$ac_objext'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; }; then
7827   cv_c_gcc_attribute_unused=yes
7828 else
7829   echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 cv_c_gcc_attribute_unused=no
7833 fi
7834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835
7836 fi
7837
7838  if test "x$cv_c_gcc_attribute_unused" = xyes; then
7839   true
7840   echo "$as_me:$LINENO: result: yes" >&5
7841 echo "${ECHO_T}yes" >&6
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_GNUC25_UNUSED
7845 _ACEOF
7846
7847
7848  else
7849   true
7850   echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852
7853  fi
7854
7855
7856
7857
7858
7859
7860   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7862 if test "${ac_cv_header_stdc+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 #include <stdlib.h>
7872 #include <stdarg.h>
7873 #include <string.h>
7874 #include <float.h>
7875
7876 int
7877 main ()
7878 {
7879
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7886   (eval $ac_compile) 2>conftest.er1
7887   ac_status=$?
7888   grep -v '^ *+' conftest.er1 >conftest.err
7889   rm -f conftest.er1
7890   cat conftest.err >&5
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); } &&
7893          { ac_try='test -z "$ac_c_werror_flag"
7894                          || test ! -s conftest.err'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; } &&
7900          { ac_try='test -s conftest.$ac_objext'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; }; then
7906   ac_cv_header_stdc=yes
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 ac_cv_header_stdc=no
7912 fi
7913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7914
7915 if test $ac_cv_header_stdc = yes; then
7916   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7917   cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923 #include <string.h>
7924
7925 _ACEOF
7926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927   $EGREP "memchr" >/dev/null 2>&1; then
7928   :
7929 else
7930   ac_cv_header_stdc=no
7931 fi
7932 rm -f conftest*
7933
7934 fi
7935
7936 if test $ac_cv_header_stdc = yes; then
7937   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #include <stdlib.h>
7945
7946 _ACEOF
7947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7948   $EGREP "free" >/dev/null 2>&1; then
7949   :
7950 else
7951   ac_cv_header_stdc=no
7952 fi
7953 rm -f conftest*
7954
7955 fi
7956
7957 if test $ac_cv_header_stdc = yes; then
7958   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7959   if test "$cross_compiling" = yes; then
7960   :
7961 else
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <ctype.h>
7969 #if ((' ' & 0x0FF) == 0x020)
7970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7972 #else
7973 # define ISLOWER(c) \
7974                    (('a' <= (c) && (c) <= 'i') \
7975                      || ('j' <= (c) && (c) <= 'r') \
7976                      || ('s' <= (c) && (c) <= 'z'))
7977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7978 #endif
7979
7980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7981 int
7982 main ()
7983 {
7984   int i;
7985   for (i = 0; i < 256; i++)
7986     if (XOR (islower (i), ISLOWER (i))
7987         || toupper (i) != TOUPPER (i))
7988       exit(2);
7989   exit (0);
7990 }
7991 _ACEOF
7992 rm -f conftest$ac_exeext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994   (eval $ac_link) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   :
8004 else
8005   echo "$as_me: program exited with status $ac_status" >&5
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ( exit $ac_status )
8010 ac_cv_header_stdc=no
8011 fi
8012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 fi
8015 fi
8016 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8017 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8018 if test $ac_cv_header_stdc = yes; then
8019
8020 cat >>confdefs.h <<\_ACEOF
8021 #define STDC_HEADERS 1
8022 _ACEOF
8023
8024 fi
8025
8026
8027       echo "$as_me:$LINENO: checking size of void *" >&5
8028 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
8029 if test "${ac_cv_sizeof_void_p+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8033   cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 #include "confdefs.h"
8040 #include <sys/types.h>
8041
8042
8043 int
8044 main ()
8045 {
8046 switch (0) case 0: case (sizeof (void *) == $ac_size):;
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053   (eval $ac_compile) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } &&
8060          { ac_try='test -z "$ac_c_werror_flag"
8061                          || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest.$ac_objext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_cv_sizeof_void_p=$ac_size
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 fi
8079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080   if test x$ac_cv_sizeof_void_p != x ; then break; fi
8081 done
8082
8083 fi
8084
8085 if test x$ac_cv_sizeof_void_p = x ; then
8086   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
8087 echo "$as_me: error: cannot determine a size for void *" >&2;}
8088    { (exit 1); exit 1; }; }
8089 fi
8090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8091 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
8092
8093 cat >>confdefs.h <<_ACEOF
8094 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8095 _ACEOF
8096
8097
8098
8099     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8100 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8101 if test "${ac_cv_c_bigendian+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   ac_cv_c_bigendian=unknown
8105 # See if sys/param.h defines the BYTE_ORDER macro.
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 #include <sys/types.h>
8113 #include <sys/param.h>
8114 int
8115 main ()
8116 {
8117
8118 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8119  bogus endian macros
8120 #endif
8121   ;
8122   return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>conftest.er1
8128   ac_status=$?
8129   grep -v '^ *+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -z "$ac_c_werror_flag"
8135                          || test ! -s conftest.err'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   # It does; now see whether it defined to BIG_ENDIAN or not.
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h.  */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h.  */
8154 #include <sys/types.h>
8155 #include <sys/param.h>
8156 int
8157 main ()
8158 {
8159
8160 #if BYTE_ORDER != BIG_ENDIAN
8161  not big endian
8162 #endif
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8169   (eval $ac_compile) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } &&
8176          { ac_try='test -z "$ac_c_werror_flag"
8177                          || test ! -s conftest.err'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; } &&
8183          { ac_try='test -s conftest.$ac_objext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_c_bigendian=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_c_bigendian=no
8195 fi
8196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 fi
8202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203 if test $ac_cv_c_bigendian = unknown; then
8204 if test "$cross_compiling" = yes; then
8205    echo $ac_n "cross-compiling... " 2>&6
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 main () {
8214   /* Are we little or big endian?  From Harbison&Steele.  */
8215   union
8216   {
8217     long l;
8218     char c[sizeof (long)];
8219   } u;
8220   u.l = 1;
8221   exit (u.c[sizeof (long) - 1] == 1);
8222 }
8223 _ACEOF
8224 rm -f conftest$ac_exeext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226   (eval $ac_link) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   ac_cv_c_bigendian=no
8236 else
8237   echo "$as_me: program exited with status $ac_status" >&5
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ( exit $ac_status )
8242 ac_cv_c_bigendian=yes
8243 fi
8244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 fi
8247 fi
8248 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8249 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8250 if test $ac_cv_c_bigendian = unknown; then
8251 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8252 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8253
8254 cat >conftest.c <<EOF
8255 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8256 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8257 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8258 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8259 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8260 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8261 int main() { _ascii (); _ebcdic (); return 0; }
8262 EOF
8263  if test -f conftest.c ; then
8264      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8265         if test `grep -l BIGenDianSyS conftest.o` ; then
8266            echo $ac_n ' big endian probe OK, ' 1>&6
8267            ac_cv_c_bigendian=yes
8268         fi
8269         if test `grep -l LiTTleEnDian conftest.o` ; then
8270            echo $ac_n ' little endian probe OK, ' 1>&6
8271            if test $ac_cv_c_bigendian = yes ; then
8272             ac_cv_c_bigendian=unknown;
8273            else
8274             ac_cv_c_bigendian=no
8275            fi
8276         fi
8277         echo $ac_n 'guessing bigendian ...  ' >&6
8278      fi
8279   fi
8280 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8281 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8282 fi
8283 if test $ac_cv_c_bigendian = yes; then
8284
8285 cat >>confdefs.h <<\_ACEOF
8286 #define WORDS_BIGENDIAN 1
8287 _ACEOF
8288
8289
8290 cat >>confdefs.h <<\_ACEOF
8291 #define HOST_WORDS_BIG_ENDIAN 1
8292 _ACEOF
8293
8294   BYTEORDER=4321
8295 else
8296   BYTEORDER=1234
8297 fi
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define BYTEORDER $BYTEORDER
8301 _ACEOF
8302
8303 if test $ac_cv_c_bigendian = unknown; then
8304   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8305 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8306    { (exit 1); exit 1; }; }
8307 fi
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
8330                     asm/ioctls.h \
8331                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
8332                     sys/time.h \
8333                     sys/select.h \
8334                     crt_externs.h \
8335                     fcntl.h \
8336                     sys/mman.h \
8337                     magic.h \
8338                     sys/event.h sys/epoll.h \
8339                     ifaddrs.h
8340 do
8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343   echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 fi
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 else
8351   # Is the header compilable?
8352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360 $ac_includes_default
8361 #include <$ac_header>
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365   (eval $ac_compile) 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -z "$ac_c_werror_flag"
8373                          || test ! -s conftest.err'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; } &&
8379          { ac_try='test -s conftest.$ac_objext'
8380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381   (eval $ac_try) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   ac_header_compiler=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_header_compiler=no
8391 fi
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8394 echo "${ECHO_T}$ac_header_compiler" >&6
8395
8396 # Is the header present?
8397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 #include <$ac_header>
8406 _ACEOF
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } >/dev/null; then
8415   if test -s conftest.err; then
8416     ac_cpp_err=$ac_c_preproc_warn_flag
8417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8418   else
8419     ac_cpp_err=
8420   fi
8421 else
8422   ac_cpp_err=yes
8423 fi
8424 if test -z "$ac_cpp_err"; then
8425   ac_header_preproc=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430   ac_header_preproc=no
8431 fi
8432 rm -f conftest.err conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6
8435
8436 # So?  What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438   yes:no: )
8439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443     ac_header_preproc=yes
8444     ;;
8445   no:yes:* )
8446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8458     (
8459       cat <<\_ASBOX
8460 ## -------------------------------- ##
8461 ## Report this to classpath@gnu.org ##
8462 ## -------------------------------- ##
8463 _ASBOX
8464     ) |
8465       sed "s/^/$as_me: WARNING:     /" >&2
8466     ;;
8467 esac
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   eval "$as_ac_Header=\$ac_header_preproc"
8474 fi
8475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8477
8478 fi
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480   cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8482 _ACEOF
8483
8484 fi
8485
8486 done
8487
8488
8489   cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495 #include <stdint.h>
8496
8497 _ACEOF
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499   $EGREP "uint32_t" >/dev/null 2>&1; then
8500
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_INT32_DEFINED 1
8503 _ACEOF
8504
8505 fi
8506 rm -f conftest*
8507
8508   cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 #include <inttypes.h>
8515
8516 _ACEOF
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518   $EGREP "uint32_t" >/dev/null 2>&1; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_INT32_DEFINED 1
8522 _ACEOF
8523
8524 fi
8525 rm -f conftest*
8526
8527   cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533 #include <sys/types.h>
8534
8535 _ACEOF
8536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8537   $EGREP "u_int32_t" >/dev/null 2>&1; then
8538
8539 cat >>confdefs.h <<\_ACEOF
8540 #define HAVE_BSD_INT32_DEFINED 1
8541 _ACEOF
8542
8543 fi
8544 rm -f conftest*
8545
8546   cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552 #include <sys/config.h>
8553
8554 _ACEOF
8555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8556   $EGREP "u_int32_t" >/dev/null 2>&1; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_BSD_INT32_DEFINED 1
8560 _ACEOF
8561
8562 fi
8563 rm -f conftest*
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 for ac_func in ftruncate fsync select \
8621                   gethostname socket strerror fork pipe execve open close \
8622                   lseek fstat read readv write writev htonl memset htons connect \
8623                   getsockname getpeername bind listen accept \
8624                   recvfrom send sendto setsockopt getsockopt time mktime \
8625                   gethostbyname_r localtime_r \
8626                   strerror_r \
8627                   fcntl \
8628                   mmap munmap mincore msync madvise getpagesize sysconf \
8629                   lstat readlink \
8630                   inet_aton inet_addr inet_pton \
8631                   getifaddrs kqueue kevent epoll_create \
8632                   readdir_r
8633 do
8634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 echo "$as_me:$LINENO: checking for $ac_func" >&5
8636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_var+set}\" = set"; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   if test x$gcc_no_link = xyes; then
8641   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8643    { (exit 1); exit 1; }; }
8644 fi
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h.  */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h.  */
8651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8653 #define $ac_func innocuous_$ac_func
8654
8655 /* System header to define __stub macros and hopefully few prototypes,
8656     which can conflict with char $ac_func (); below.
8657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658     <limits.h> exists even on freestanding compilers.  */
8659
8660 #ifdef __STDC__
8661 # include <limits.h>
8662 #else
8663 # include <assert.h>
8664 #endif
8665
8666 #undef $ac_func
8667
8668 /* Override any gcc2 internal prototype to avoid an error.  */
8669 #ifdef __cplusplus
8670 extern "C"
8671 {
8672 #endif
8673 /* We use char because int might match the return type of a gcc2
8674    builtin and then its argument prototype would still apply.  */
8675 char $ac_func ();
8676 /* The GNU C library defines this for functions which it implements
8677     to always fail with ENOSYS.  Some functions are actually named
8678     something starting with __ and the normal name is an alias.  */
8679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8680 choke me
8681 #else
8682 char (*f) () = $ac_func;
8683 #endif
8684 #ifdef __cplusplus
8685 }
8686 #endif
8687
8688 int
8689 main ()
8690 {
8691 return f != $ac_func;
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698   (eval $ac_link) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"
8706                          || test ! -s conftest.err'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; } &&
8712          { ac_try='test -s conftest$ac_exeext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   eval "$as_ac_var=yes"
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 eval "$as_ac_var=no"
8724 fi
8725 rm -f conftest.err conftest.$ac_objext \
8726       conftest$ac_exeext conftest.$ac_ext
8727 fi
8728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8730 if test `eval echo '${'$as_ac_var'}'` = yes; then
8731   cat >>confdefs.h <<_ACEOF
8732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8733 _ACEOF
8734
8735 fi
8736 done
8737
8738
8739   LIBMAGIC=
8740   echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
8741 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
8742 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lmagic  $LIBS"
8747 if test x$gcc_no_link = xyes; then
8748   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8750    { (exit 1); exit 1; }; }
8751 fi
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758
8759 /* Override any gcc2 internal prototype to avoid an error.  */
8760 #ifdef __cplusplus
8761 extern "C"
8762 #endif
8763 /* We use char because int might match the return type of a gcc2
8764    builtin and then its argument prototype would still apply.  */
8765 char magic_open ();
8766 int
8767 main ()
8768 {
8769 magic_open ();
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } &&
8783          { ac_try='test -z "$ac_c_werror_flag"
8784                          || test ! -s conftest.err'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; } &&
8790          { ac_try='test -s conftest$ac_exeext'
8791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792   (eval $ac_try) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); }; }; then
8796   ac_cv_lib_magic_magic_open=yes
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ac_cv_lib_magic_magic_open=no
8802 fi
8803 rm -f conftest.err conftest.$ac_objext \
8804       conftest$ac_exeext conftest.$ac_ext
8805 LIBS=$ac_check_lib_save_LIBS
8806 fi
8807 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
8808 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
8809 if test $ac_cv_lib_magic_magic_open = yes; then
8810   LIBMAGIC=-lmagic
8811 fi
8812
8813
8814
8815   echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
8816 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
8817   cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823 #include <netinet/in.h>
8824 int
8825 main ()
8826 {
8827 struct sockaddr_in6 addr6;
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834   (eval $ac_compile) 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } &&
8841          { ac_try='test -z "$ac_c_werror_flag"
8842                          || test ! -s conftest.err'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; } &&
8848          { ac_try='test -s conftest.$ac_objext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_INET6 1
8857 _ACEOF
8858
8859                      echo "$as_me:$LINENO: result: yes" >&5
8860 echo "${ECHO_T}yes" >&6
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8867 fi
8868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8869
8870   echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8872 if test "${ac_cv_header_time+set}" = set; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875   cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881 #include <sys/types.h>
8882 #include <sys/time.h>
8883 #include <time.h>
8884
8885 int
8886 main ()
8887 {
8888 if ((struct tm *) 0)
8889 return 0;
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896   (eval $ac_compile) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_header_time=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_header_time=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8926 echo "${ECHO_T}$ac_cv_header_time" >&6
8927 if test $ac_cv_header_time = yes; then
8928
8929 cat >>confdefs.h <<\_ACEOF
8930 #define TIME_WITH_SYS_TIME 1
8931 _ACEOF
8932
8933 fi
8934
8935   echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8936 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8937 if test "${ac_cv_struct_tm+set}" = set; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946 #include <sys/types.h>
8947 #include <time.h>
8948
8949 int
8950 main ()
8951 {
8952 struct tm *tp; tp->tm_sec;
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959   (eval $ac_compile) 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -z "$ac_c_werror_flag"
8967                          || test ! -s conftest.err'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; } &&
8973          { ac_try='test -s conftest.$ac_objext'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   ac_cv_struct_tm=time.h
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_struct_tm=sys/time.h
8985 fi
8986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987 fi
8988 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8989 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8990 if test $ac_cv_struct_tm = sys/time.h; then
8991
8992 cat >>confdefs.h <<\_ACEOF
8993 #define TM_IN_SYS_TIME 1
8994 _ACEOF
8995
8996 fi
8997
8998   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8999 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9000 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003   cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009 #include <sys/types.h>
9010 #include <$ac_cv_struct_tm>
9011
9012
9013 int
9014 main ()
9015 {
9016 static struct tm ac_aggr;
9017 if (ac_aggr.tm_zone)
9018 return 0;
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025   (eval $ac_compile) 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } &&
9032          { ac_try='test -z "$ac_c_werror_flag"
9033                          || test ! -s conftest.err'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest.$ac_objext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_member_struct_tm_tm_zone=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #include <sys/types.h>
9057 #include <$ac_cv_struct_tm>
9058
9059
9060 int
9061 main ()
9062 {
9063 static struct tm ac_aggr;
9064 if (sizeof ac_aggr.tm_zone)
9065 return 0;
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072   (eval $ac_compile) 2>conftest.er1
9073   ac_status=$?
9074   grep -v '^ *+' conftest.er1 >conftest.err
9075   rm -f conftest.er1
9076   cat conftest.err >&5
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } &&
9079          { ac_try='test -z "$ac_c_werror_flag"
9080                          || test ! -s conftest.err'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; } &&
9086          { ac_try='test -s conftest.$ac_objext'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; }; then
9092   ac_cv_member_struct_tm_tm_zone=yes
9093 else
9094   echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9096
9097 ac_cv_member_struct_tm_tm_zone=no
9098 fi
9099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9100 fi
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 fi
9103 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9104 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9105 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_STRUCT_TM_TM_ZONE 1
9109 _ACEOF
9110
9111
9112 fi
9113
9114 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9115
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_TM_ZONE 1
9118 _ACEOF
9119
9120 else
9121   echo "$as_me:$LINENO: checking for tzname" >&5
9122 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9123 if test "${ac_cv_var_tzname+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   if test x$gcc_no_link = xyes; then
9127   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9129    { (exit 1); exit 1; }; }
9130 fi
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #include <time.h>
9138 #ifndef tzname /* For SGI.  */
9139 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9140 #endif
9141
9142 int
9143 main ()
9144 {
9145 atoi(*tzname);
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152   (eval $ac_link) 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag"
9160                          || test ! -s conftest.err'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest$ac_exeext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   ac_cv_var_tzname=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_cv_var_tzname=no
9178 fi
9179 rm -f conftest.err conftest.$ac_objext \
9180       conftest$ac_exeext conftest.$ac_ext
9181 fi
9182 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9183 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9184   if test $ac_cv_var_tzname = yes; then
9185
9186 cat >>confdefs.h <<\_ACEOF
9187 #define HAVE_TZNAME 1
9188 _ACEOF
9189
9190   fi
9191 fi
9192
9193
9194   echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
9195 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
9196   cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202 #include <time.h>
9203 int
9204 main ()
9205 {
9206 struct tm tim; tim.tm_gmtoff = 0;
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233
9234 cat >>confdefs.h <<\_ACEOF
9235 #define STRUCT_TM_HAS_GMTOFF 1
9236 _ACEOF
9237
9238    echo "$as_me:$LINENO: result: yes" >&5
9239 echo "${ECHO_T}yes" >&6
9240 else
9241   echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 echo "$as_me:$LINENO: result: no" >&5
9245 echo "${ECHO_T}no" >&6
9246    echo "$as_me:$LINENO: checking for global timezone variable" >&5
9247 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
9248                cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254 #include <time.h>
9255 int
9256 main ()
9257 {
9258 void i(){long z2 = 2*timezone;}
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265   (eval $ac_compile) 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -z "$ac_c_werror_flag"
9273                          || test ! -s conftest.err'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; } &&
9279          { ac_try='test -s conftest.$ac_objext'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285
9286 cat >>confdefs.h <<\_ACEOF
9287 #define HAVE_TIMEZONE 1
9288 _ACEOF
9289
9290       echo "$as_me:$LINENO: result: yes" >&5
9291 echo "${ECHO_T}yes" >&6
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296 echo "$as_me:$LINENO: result: no" >&5
9297 echo "${ECHO_T}no" >&6
9298        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
9299 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
9300               cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 #include <time.h>
9307 int
9308 main ()
9309 {
9310 long z2 = _timezone;
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317   (eval $ac_compile) 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -z "$ac_c_werror_flag"
9325                          || test ! -s conftest.err'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; } &&
9331          { ac_try='test -s conftest.$ac_objext'
9332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333   (eval $ac_try) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_UNDERSCORE_TIMEZONE 1
9340 _ACEOF
9341
9342           echo "$as_me:$LINENO: result: yes" >&5
9343 echo "${ECHO_T}yes" >&6
9344 else
9345   echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9350 fi
9351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356
9357   echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9358 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9359 if test "${ac_cv_c_const+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h.  */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h.  */
9368
9369 int
9370 main ()
9371 {
9372 /* FIXME: Include the comments suggested by Paul. */
9373 #ifndef __cplusplus
9374   /* Ultrix mips cc rejects this.  */
9375   typedef int charset[2];
9376   const charset x;
9377   /* SunOS 4.1.1 cc rejects this.  */
9378   char const *const *ccp;
9379   char **p;
9380   /* NEC SVR4.0.2 mips cc rejects this.  */
9381   struct point {int x, y;};
9382   static struct point const zero = {0,0};
9383   /* AIX XL C 1.02.0.0 rejects this.
9384      It does not let you subtract one const X* pointer from another in
9385      an arm of an if-expression whose if-part is not a constant
9386      expression */
9387   const char *g = "string";
9388   ccp = &g + (g ? g-g : 0);
9389   /* HPUX 7.0 cc rejects these. */
9390   ++ccp;
9391   p = (char**) ccp;
9392   ccp = (char const *const *) p;
9393   { /* SCO 3.2v4 cc rejects this.  */
9394     char *t;
9395     char const *s = 0 ? (char *) 0 : (char const *) 0;
9396
9397     *t++ = 0;
9398   }
9399   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9400     int x[] = {25, 17};
9401     const int *foo = &x[0];
9402     ++foo;
9403   }
9404   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9405     typedef const int *iptr;
9406     iptr p = 0;
9407     ++p;
9408   }
9409   { /* AIX XL C 1.02.0.0 rejects this saying
9410        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9411     struct s { int j; const int *ap[3]; };
9412     struct s *b; b->j = 5;
9413   }
9414   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9415     const int foo = 10;
9416   }
9417 #endif
9418
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425   (eval $ac_compile) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -z "$ac_c_werror_flag"
9433                          || test ! -s conftest.err'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_cv_c_const=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 ac_cv_c_const=no
9451 fi
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9455 echo "${ECHO_T}$ac_cv_c_const" >&6
9456 if test $ac_cv_c_const = no; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define const
9460 _ACEOF
9461
9462 fi
9463
9464   echo "$as_me:$LINENO: checking for __attribute__" >&5
9465 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
9466 if test "${ac_cv_c_attribute+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476 void foo(void) __attribute__ ((__noreturn__));
9477
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481   (eval $ac_compile) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_cv_c_attribute=yes
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_cv_c_attribute=no
9507
9508 fi
9509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9510
9511 fi
9512 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
9513 echo "${ECHO_T}$ac_cv_c_attribute" >&6
9514
9515
9516 case $ac_cv_c_attribute in
9517   yes) ;;
9518   no)
9519     cat >>confdefs.h <<_ACEOF
9520 #define __attribute__(x)    /* nothing */
9521 _ACEOF
9522     ;;
9523 esac
9524
9525
9526
9527       if test "X$prefix" = "XNONE"; then
9528     acl_final_prefix="$ac_default_prefix"
9529   else
9530     acl_final_prefix="$prefix"
9531   fi
9532   if test "X$exec_prefix" = "XNONE"; then
9533     acl_final_exec_prefix='${prefix}'
9534   else
9535     acl_final_exec_prefix="$exec_prefix"
9536   fi
9537   acl_save_prefix="$prefix"
9538   prefix="$acl_final_prefix"
9539   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9540   prefix="$acl_save_prefix"
9541
9542
9543 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9544 if test "${with_gnu_ld+set}" = set; then
9545   withval="$with_gnu_ld"
9546   test "$withval" = no || with_gnu_ld=yes
9547 else
9548   with_gnu_ld=no
9549 fi;
9550 # Prepare PATH_SEPARATOR.
9551 # The user is always right.
9552 if test "${PATH_SEPARATOR+set}" != set; then
9553   echo "#! /bin/sh" >conf$$.sh
9554   echo  "exit 0"   >>conf$$.sh
9555   chmod +x conf$$.sh
9556   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9557     PATH_SEPARATOR=';'
9558   else
9559     PATH_SEPARATOR=:
9560   fi
9561   rm -f conf$$.sh
9562 fi
9563 ac_prog=ld
9564 if test "$GCC" = yes; then
9565   # Check if gcc -print-prog-name=ld gives a path.
9566   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9567 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9568   case $host in
9569   *-*-mingw*)
9570     # gcc leaves a trailing carriage return which upsets mingw
9571     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9572   *)
9573     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9574   esac
9575   case $ac_prog in
9576     # Accept absolute paths.
9577     [\\/]* | [A-Za-z]:[\\/]*)
9578       re_direlt='/[^/][^/]*/\.\./'
9579       # Canonicalize the path of ld
9580       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9581       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9582         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9583       done
9584       test -z "$LD" && LD="$ac_prog"
9585       ;;
9586   "")
9587     # If it fails, then pretend we aren't using GCC.
9588     ac_prog=ld
9589     ;;
9590   *)
9591     # If it is relative, then search for the first ld in PATH.
9592     with_gnu_ld=unknown
9593     ;;
9594   esac
9595 elif test "$with_gnu_ld" = yes; then
9596   echo "$as_me:$LINENO: checking for GNU ld" >&5
9597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9598 else
9599   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9601 fi
9602 if test "${acl_cv_path_LD+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   if test -z "$LD"; then
9606   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9607   for ac_dir in $PATH; do
9608     test -z "$ac_dir" && ac_dir=.
9609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9610       acl_cv_path_LD="$ac_dir/$ac_prog"
9611       # Check to see if the program is GNU ld.  I'd rather use --version,
9612       # but apparently some GNU ld's only accept -v.
9613       # Break only if it was the GNU/non-GNU ld that we prefer.
9614       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9615         test "$with_gnu_ld" != no && break
9616       else
9617         test "$with_gnu_ld" != yes && break
9618       fi
9619     fi
9620   done
9621   IFS="$ac_save_ifs"
9622 else
9623   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9624 fi
9625 fi
9626
9627 LD="$acl_cv_path_LD"
9628 if test -n "$LD"; then
9629   echo "$as_me:$LINENO: result: $LD" >&5
9630 echo "${ECHO_T}$LD" >&6
9631 else
9632   echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6
9634 fi
9635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9637    { (exit 1); exit 1; }; }
9638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9640 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9645   acl_cv_prog_gnu_ld=yes
9646 else
9647   acl_cv_prog_gnu_ld=no
9648 fi
9649 fi
9650 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9651 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9652 with_gnu_ld=$acl_cv_prog_gnu_ld
9653
9654
9655
9656                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9657 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9658 if test "${acl_cv_rpath+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661
9662     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9663     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9664     . ./conftest.sh
9665     rm -f ./conftest.sh
9666     acl_cv_rpath=done
9667
9668 fi
9669 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9670 echo "${ECHO_T}$acl_cv_rpath" >&6
9671   wl="$acl_cv_wl"
9672   libext="$acl_cv_libext"
9673   shlibext="$acl_cv_shlibext"
9674   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9675   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9676   hardcode_direct="$acl_cv_hardcode_direct"
9677   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9678     # Check whether --enable-rpath or --disable-rpath was given.
9679 if test "${enable_rpath+set}" = set; then
9680   enableval="$enable_rpath"
9681   :
9682 else
9683   enable_rpath=yes
9684 fi;
9685
9686
9687
9688
9689
9690
9691
9692     use_additional=yes
9693
9694   acl_save_prefix="$prefix"
9695   prefix="$acl_final_prefix"
9696   acl_save_exec_prefix="$exec_prefix"
9697   exec_prefix="$acl_final_exec_prefix"
9698
9699     eval additional_includedir=\"$includedir\"
9700     eval additional_libdir=\"$libdir\"
9701
9702   exec_prefix="$acl_save_exec_prefix"
9703   prefix="$acl_save_prefix"
9704
9705
9706 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9707 if test "${with_libiconv_prefix+set}" = set; then
9708   withval="$with_libiconv_prefix"
9709
9710     if test "X$withval" = "Xno"; then
9711       use_additional=no
9712     else
9713       if test "X$withval" = "X"; then
9714
9715   acl_save_prefix="$prefix"
9716   prefix="$acl_final_prefix"
9717   acl_save_exec_prefix="$exec_prefix"
9718   exec_prefix="$acl_final_exec_prefix"
9719
9720           eval additional_includedir=\"$includedir\"
9721           eval additional_libdir=\"$libdir\"
9722
9723   exec_prefix="$acl_save_exec_prefix"
9724   prefix="$acl_save_prefix"
9725
9726       else
9727         additional_includedir="$withval/include"
9728         additional_libdir="$withval/lib"
9729       fi
9730     fi
9731
9732 fi;
9733       LIBICONV=
9734   LTLIBICONV=
9735   INCICONV=
9736   rpathdirs=
9737   ltrpathdirs=
9738   names_already_handled=
9739   names_next_round='iconv '
9740   while test -n "$names_next_round"; do
9741     names_this_round="$names_next_round"
9742     names_next_round=
9743     for name in $names_this_round; do
9744       already_handled=
9745       for n in $names_already_handled; do
9746         if test "$n" = "$name"; then
9747           already_handled=yes
9748           break
9749         fi
9750       done
9751       if test -z "$already_handled"; then
9752         names_already_handled="$names_already_handled $name"
9753                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9754         eval value=\"\$HAVE_LIB$uppername\"
9755         if test -n "$value"; then
9756           if test "$value" = yes; then
9757             eval value=\"\$LIB$uppername\"
9758             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9759             eval value=\"\$LTLIB$uppername\"
9760             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9761           else
9762                                     :
9763           fi
9764         else
9765                               found_dir=
9766           found_la=
9767           found_so=
9768           found_a=
9769           if test $use_additional = yes; then
9770             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9771               found_dir="$additional_libdir"
9772               found_so="$additional_libdir/lib$name.$shlibext"
9773               if test -f "$additional_libdir/lib$name.la"; then
9774                 found_la="$additional_libdir/lib$name.la"
9775               fi
9776             else
9777               if test -f "$additional_libdir/lib$name.$libext"; then
9778                 found_dir="$additional_libdir"
9779                 found_a="$additional_libdir/lib$name.$libext"
9780                 if test -f "$additional_libdir/lib$name.la"; then
9781                   found_la="$additional_libdir/lib$name.la"
9782                 fi
9783               fi
9784             fi
9785           fi
9786           if test "X$found_dir" = "X"; then
9787             for x in $LDFLAGS $LTLIBICONV; do
9788
9789   acl_save_prefix="$prefix"
9790   prefix="$acl_final_prefix"
9791   acl_save_exec_prefix="$exec_prefix"
9792   exec_prefix="$acl_final_exec_prefix"
9793   eval x=\"$x\"
9794   exec_prefix="$acl_save_exec_prefix"
9795   prefix="$acl_save_prefix"
9796
9797               case "$x" in
9798                 -L*)
9799                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9800                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9801                     found_dir="$dir"
9802                     found_so="$dir/lib$name.$shlibext"
9803                     if test -f "$dir/lib$name.la"; then
9804                       found_la="$dir/lib$name.la"
9805                     fi
9806                   else
9807                     if test -f "$dir/lib$name.$libext"; then
9808                       found_dir="$dir"
9809                       found_a="$dir/lib$name.$libext"
9810                       if test -f "$dir/lib$name.la"; then
9811                         found_la="$dir/lib$name.la"
9812                       fi
9813                     fi
9814                   fi
9815                   ;;
9816               esac
9817               if test "X$found_dir" != "X"; then
9818                 break
9819               fi
9820             done
9821           fi
9822           if test "X$found_dir" != "X"; then
9823                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9824             if test "X$found_so" != "X"; then
9825                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9826                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9827               else
9828                                                                                 haveit=
9829                 for x in $ltrpathdirs; do
9830                   if test "X$x" = "X$found_dir"; then
9831                     haveit=yes
9832                     break
9833                   fi
9834                 done
9835                 if test -z "$haveit"; then
9836                   ltrpathdirs="$ltrpathdirs $found_dir"
9837                 fi
9838                                 if test "$hardcode_direct" = yes; then
9839                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9840                 else
9841                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9842                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9843                                                             haveit=
9844                     for x in $rpathdirs; do
9845                       if test "X$x" = "X$found_dir"; then
9846                         haveit=yes
9847                         break
9848                       fi
9849                     done
9850                     if test -z "$haveit"; then
9851                       rpathdirs="$rpathdirs $found_dir"
9852                     fi
9853                   else
9854                                                                                 haveit=
9855                     for x in $LDFLAGS $LIBICONV; do
9856
9857   acl_save_prefix="$prefix"
9858   prefix="$acl_final_prefix"
9859   acl_save_exec_prefix="$exec_prefix"
9860   exec_prefix="$acl_final_exec_prefix"
9861   eval x=\"$x\"
9862   exec_prefix="$acl_save_exec_prefix"
9863   prefix="$acl_save_prefix"
9864
9865                       if test "X$x" = "X-L$found_dir"; then
9866                         haveit=yes
9867                         break
9868                       fi
9869                     done
9870                     if test -z "$haveit"; then
9871                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9872                     fi
9873                     if test "$hardcode_minus_L" != no; then
9874                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9875                     else
9876                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9877                     fi
9878                   fi
9879                 fi
9880               fi
9881             else
9882               if test "X$found_a" != "X"; then
9883                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9884               else
9885                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9886               fi
9887             fi
9888                         additional_includedir=
9889             case "$found_dir" in
9890               */lib | */lib/)
9891                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9892                 additional_includedir="$basedir/include"
9893                 ;;
9894             esac
9895             if test "X$additional_includedir" != "X"; then
9896                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9897                 haveit=
9898                 if test "X$additional_includedir" = "X/usr/local/include"; then
9899                   if test -n "$GCC"; then
9900                     case $host_os in
9901                       linux*) haveit=yes;;
9902                     esac
9903                   fi
9904                 fi
9905                 if test -z "$haveit"; then
9906                   for x in $CPPFLAGS $INCICONV; do
9907
9908   acl_save_prefix="$prefix"
9909   prefix="$acl_final_prefix"
9910   acl_save_exec_prefix="$exec_prefix"
9911   exec_prefix="$acl_final_exec_prefix"
9912   eval x=\"$x\"
9913   exec_prefix="$acl_save_exec_prefix"
9914   prefix="$acl_save_prefix"
9915
9916                     if test "X$x" = "X-I$additional_includedir"; then
9917                       haveit=yes
9918                       break
9919                     fi
9920                   done
9921                   if test -z "$haveit"; then
9922                     if test -d "$additional_includedir"; then
9923                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9924                     fi
9925                   fi
9926                 fi
9927               fi
9928             fi
9929                         if test -n "$found_la"; then
9930                                                         save_libdir="$libdir"
9931               case "$found_la" in
9932                 */* | *\\*) . "$found_la" ;;
9933                 *) . "./$found_la" ;;
9934               esac
9935               libdir="$save_libdir"
9936                             for dep in $dependency_libs; do
9937                 case "$dep" in
9938                   -L*)
9939                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9940                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9941                       haveit=
9942                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9943                         if test -n "$GCC"; then
9944                           case $host_os in
9945                             linux*) haveit=yes;;
9946                           esac
9947                         fi
9948                       fi
9949                       if test -z "$haveit"; then
9950                         haveit=
9951                         for x in $LDFLAGS $LIBICONV; do
9952
9953   acl_save_prefix="$prefix"
9954   prefix="$acl_final_prefix"
9955   acl_save_exec_prefix="$exec_prefix"
9956   exec_prefix="$acl_final_exec_prefix"
9957   eval x=\"$x\"
9958   exec_prefix="$acl_save_exec_prefix"
9959   prefix="$acl_save_prefix"
9960
9961                           if test "X$x" = "X-L$additional_libdir"; then
9962                             haveit=yes
9963                             break
9964                           fi
9965                         done
9966                         if test -z "$haveit"; then
9967                           if test -d "$additional_libdir"; then
9968                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9969                           fi
9970                         fi
9971                         haveit=
9972                         for x in $LDFLAGS $LTLIBICONV; do
9973
9974   acl_save_prefix="$prefix"
9975   prefix="$acl_final_prefix"
9976   acl_save_exec_prefix="$exec_prefix"
9977   exec_prefix="$acl_final_exec_prefix"
9978   eval x=\"$x\"
9979   exec_prefix="$acl_save_exec_prefix"
9980   prefix="$acl_save_prefix"
9981
9982                           if test "X$x" = "X-L$additional_libdir"; then
9983                             haveit=yes
9984                             break
9985                           fi
9986                         done
9987                         if test -z "$haveit"; then
9988                           if test -d "$additional_libdir"; then
9989                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9990                           fi
9991                         fi
9992                       fi
9993                     fi
9994                     ;;
9995                   -R*)
9996                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9997                     if test "$enable_rpath" != no; then
9998                                                                   haveit=
9999                       for x in $rpathdirs; do
10000                         if test "X$x" = "X$dir"; then
10001                           haveit=yes
10002                           break
10003                         fi
10004                       done
10005                       if test -z "$haveit"; then
10006                         rpathdirs="$rpathdirs $dir"
10007                       fi
10008                                                                   haveit=
10009                       for x in $ltrpathdirs; do
10010                         if test "X$x" = "X$dir"; then
10011                           haveit=yes
10012                           break
10013                         fi
10014                       done
10015                       if test -z "$haveit"; then
10016                         ltrpathdirs="$ltrpathdirs $dir"
10017                       fi
10018                     fi
10019                     ;;
10020                   -l*)
10021                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10022                     ;;
10023                   *.la)
10024                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10025                     ;;
10026                   *)
10027                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10028                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10029                     ;;
10030                 esac
10031               done
10032             fi
10033           else
10034                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10035             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10036           fi
10037         fi
10038       fi
10039     done
10040   done
10041   if test "X$rpathdirs" != "X"; then
10042     if test -n "$hardcode_libdir_separator"; then
10043                         alldirs=
10044       for found_dir in $rpathdirs; do
10045         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10046       done
10047             acl_save_libdir="$libdir"
10048       libdir="$alldirs"
10049       eval flag=\"$hardcode_libdir_flag_spec\"
10050       libdir="$acl_save_libdir"
10051       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10052     else
10053             for found_dir in $rpathdirs; do
10054         acl_save_libdir="$libdir"
10055         libdir="$found_dir"
10056         eval flag=\"$hardcode_libdir_flag_spec\"
10057         libdir="$acl_save_libdir"
10058         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10059       done
10060     fi
10061   fi
10062   if test "X$ltrpathdirs" != "X"; then
10063             for found_dir in $ltrpathdirs; do
10064       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10065     done
10066   fi
10067
10068
10069
10070
10071
10072
10073
10074           am_save_CPPFLAGS="$CPPFLAGS"
10075
10076   for element in $INCICONV; do
10077     haveit=
10078     for x in $CPPFLAGS; do
10079
10080   acl_save_prefix="$prefix"
10081   prefix="$acl_final_prefix"
10082   acl_save_exec_prefix="$exec_prefix"
10083   exec_prefix="$acl_final_exec_prefix"
10084   eval x=\"$x\"
10085   exec_prefix="$acl_save_exec_prefix"
10086   prefix="$acl_save_prefix"
10087
10088       if test "X$x" = "X$element"; then
10089         haveit=yes
10090         break
10091       fi
10092     done
10093     if test -z "$haveit"; then
10094       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10095     fi
10096   done
10097
10098
10099   echo "$as_me:$LINENO: checking for iconv" >&5
10100 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10101 if test "${am_cv_func_iconv+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104
10105     am_cv_func_iconv="no, consider installing GNU libiconv"
10106     am_cv_lib_iconv=no
10107     if test x$gcc_no_link = xyes; then
10108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10110    { (exit 1); exit 1; }; }
10111 fi
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <stdlib.h>
10119 #include <iconv.h>
10120 int
10121 main ()
10122 {
10123 iconv_t cd = iconv_open("","");
10124        iconv(cd,NULL,NULL,NULL,NULL);
10125        iconv_close(cd);
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132   (eval $ac_link) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   am_cv_func_iconv=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 fi
10158 rm -f conftest.err conftest.$ac_objext \
10159       conftest$ac_exeext conftest.$ac_ext
10160     if test "$am_cv_func_iconv" != yes; then
10161       am_save_LIBS="$LIBS"
10162       LIBS="$LIBS $LIBICONV"
10163       if test x$gcc_no_link = xyes; then
10164   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10166    { (exit 1); exit 1; }; }
10167 fi
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h.  */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h.  */
10174 #include <stdlib.h>
10175 #include <iconv.h>
10176 int
10177 main ()
10178 {
10179 iconv_t cd = iconv_open("","");
10180          iconv(cd,NULL,NULL,NULL,NULL);
10181          iconv_close(cd);
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest$ac_exeext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   am_cv_lib_iconv=yes
10209         am_cv_func_iconv=yes
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 fi
10215 rm -f conftest.err conftest.$ac_objext \
10216       conftest$ac_exeext conftest.$ac_ext
10217       LIBS="$am_save_LIBS"
10218     fi
10219
10220 fi
10221 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10222 echo "${ECHO_T}$am_cv_func_iconv" >&6
10223   if test "$am_cv_func_iconv" = yes; then
10224
10225 cat >>confdefs.h <<\_ACEOF
10226 #define HAVE_ICONV 1
10227 _ACEOF
10228
10229   fi
10230   if test "$am_cv_lib_iconv" = yes; then
10231     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10232 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10233     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10234 echo "${ECHO_T}$LIBICONV" >&6
10235   else
10236             CPPFLAGS="$am_save_CPPFLAGS"
10237     LIBICONV=
10238     LTLIBICONV=
10239   fi
10240
10241
10242
10243   if test "$am_cv_func_iconv" = yes; then
10244     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10245 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10246     if test "${am_cv_proto_iconv+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249
10250       cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256
10257 #include <stdlib.h>
10258 #include <iconv.h>
10259 extern
10260 #ifdef __cplusplus
10261 "C"
10262 #endif
10263 #if defined(__STDC__) || defined(__cplusplus)
10264 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10265 #else
10266 size_t iconv();
10267 #endif
10268
10269 int
10270 main ()
10271 {
10272
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag"
10287                          || test ! -s conftest.err'
10288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289   (eval $ac_try) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   am_cv_proto_iconv_arg1=""
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 am_cv_proto_iconv_arg1="const"
10305 fi
10306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10307       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);"
10308 fi
10309
10310     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10311     echo "$as_me:$LINENO: result: ${ac_t:-
10312          }$am_cv_proto_iconv" >&5
10313 echo "${ECHO_T}${ac_t:-
10314          }$am_cv_proto_iconv" >&6
10315
10316 cat >>confdefs.h <<_ACEOF
10317 #define ICONV_CONST $am_cv_proto_iconv_arg1
10318 _ACEOF
10319
10320   fi
10321
10322
10323     if test "x${GCC}" = xyes; then
10324
10325             WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
10326
10327
10328             STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
10329
10330
10331             ERROR_CFLAGS=
10332     if test "x${ENABLE_WERROR}" = xyes; then
10333        ERROR_CFLAGS='-Werror'
10334     fi
10335
10336   fi
10337
10338     if test "x${COMPILE_XMLJ}" = xyes; then
10339
10340   succeeded=no
10341
10342   if test -z "$PKG_CONFIG"; then
10343     # Extract the first word of "pkg-config", so it can be a program name with args.
10344 set dummy pkg-config; ac_word=$2
10345 echo "$as_me:$LINENO: checking for $ac_word" >&5
10346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10348   echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350   case $PKG_CONFIG in
10351   [\\/]* | ?:[\\/]*)
10352   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10353   ;;
10354   *)
10355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360   for ac_exec_ext in '' $ac_executable_extensions; do
10361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367 done
10368
10369   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10370   ;;
10371 esac
10372 fi
10373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10374
10375 if test -n "$PKG_CONFIG"; then
10376   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10377 echo "${ECHO_T}$PKG_CONFIG" >&6
10378 else
10379   echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6
10381 fi
10382
10383   fi
10384
10385   if test "$PKG_CONFIG" = "no" ; then
10386      echo "*** The pkg-config script could not be found. Make sure it is"
10387      echo "*** in your path, or set the PKG_CONFIG environment variable"
10388      echo "*** to the full path to pkg-config."
10389      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10390   else
10391      PKG_CONFIG_MIN_VERSION=0.9.0
10392      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10393         echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
10394 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
10395
10396         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
10397             echo "$as_me:$LINENO: result: yes" >&5
10398 echo "${ECHO_T}yes" >&6
10399             succeeded=yes
10400
10401             echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
10402 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
10403             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
10404             echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
10405 echo "${ECHO_T}$XML_CFLAGS" >&6
10406
10407             echo "$as_me:$LINENO: checking XML_LIBS" >&5
10408 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
10409             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
10410             echo "$as_me:$LINENO: result: $XML_LIBS" >&5
10411 echo "${ECHO_T}$XML_LIBS" >&6
10412         else
10413             XML_CFLAGS=""
10414             XML_LIBS=""
10415             ## If we have a custom action on failure, don't print errors, but
10416             ## do set a variable so people can do so.
10417             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
10418             echo $XML_PKG_ERRORS
10419         fi
10420
10421
10422
10423      else
10424         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10425         echo "*** See http://www.freedesktop.org/software/pkgconfig"
10426      fi
10427   fi
10428
10429   if test $succeeded = yes; then
10430      :
10431   else
10432      { { 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
10433 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;}
10434    { (exit 1); exit 1; }; }
10435   fi
10436
10437
10438   succeeded=no
10439
10440   if test -z "$PKG_CONFIG"; then
10441     # Extract the first word of "pkg-config", so it can be a program name with args.
10442 set dummy pkg-config; ac_word=$2
10443 echo "$as_me:$LINENO: checking for $ac_word" >&5
10444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10446   echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448   case $PKG_CONFIG in
10449   [\\/]* | ?:[\\/]*)
10450   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10451   ;;
10452   *)
10453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10455 do
10456   IFS=$as_save_IFS
10457   test -z "$as_dir" && as_dir=.
10458   for ac_exec_ext in '' $ac_executable_extensions; do
10459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462     break 2
10463   fi
10464 done
10465 done
10466
10467   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10468   ;;
10469 esac
10470 fi
10471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10472
10473 if test -n "$PKG_CONFIG"; then
10474   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10475 echo "${ECHO_T}$PKG_CONFIG" >&6
10476 else
10477   echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6
10479 fi
10480
10481   fi
10482
10483   if test "$PKG_CONFIG" = "no" ; then
10484      echo "*** The pkg-config script could not be found. Make sure it is"
10485      echo "*** in your path, or set the PKG_CONFIG environment variable"
10486      echo "*** to the full path to pkg-config."
10487      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10488   else
10489      PKG_CONFIG_MIN_VERSION=0.9.0
10490      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10491         echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
10492 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
10493
10494         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
10495             echo "$as_me:$LINENO: result: yes" >&5
10496 echo "${ECHO_T}yes" >&6
10497             succeeded=yes
10498
10499             echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
10500 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
10501             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
10502             echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
10503 echo "${ECHO_T}$XSLT_CFLAGS" >&6
10504
10505             echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
10506 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
10507             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
10508             echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
10509 echo "${ECHO_T}$XSLT_LIBS" >&6
10510         else
10511             XSLT_CFLAGS=""
10512             XSLT_LIBS=""
10513             ## If we have a custom action on failure, don't print errors, but
10514             ## do set a variable so people can do so.
10515             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
10516             echo $XSLT_PKG_ERRORS
10517         fi
10518
10519
10520
10521      else
10522         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10523         echo "*** See http://www.freedesktop.org/software/pkgconfig"
10524      fi
10525   fi
10526
10527   if test $succeeded = yes; then
10528      :
10529   else
10530      { { 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
10531 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;}
10532    { (exit 1); exit 1; }; }
10533   fi
10534
10535
10536
10537
10538
10539   fi
10540
10541     if test "x${COMPILE_GTK_PEER}" = xyes; then
10542     echo "$as_me:$LINENO: checking for X" >&5
10543 echo $ECHO_N "checking for X... $ECHO_C" >&6
10544
10545
10546 # Check whether --with-x or --without-x was given.
10547 if test "${with_x+set}" = set; then
10548   withval="$with_x"
10549
10550 fi;
10551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10552 if test "x$with_x" = xno; then
10553   # The user explicitly disabled X.
10554   have_x=disabled
10555 else
10556   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10557     # Both variables are already set.
10558     have_x=yes
10559   else
10560     if test "${ac_cv_have_x+set}" = set; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563   # One or both of the vars are not set, and there is no cached value.
10564 ac_x_includes=no ac_x_libraries=no
10565 rm -fr conftest.dir
10566 if mkdir conftest.dir; then
10567   cd conftest.dir
10568   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10569   cat >Imakefile <<'_ACEOF'
10570 acfindx:
10571         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10572 _ACEOF
10573   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10574     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10575     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10576     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10577     for ac_extension in a so sl; do
10578       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10579          test -f $ac_im_libdir/libX11.$ac_extension; then
10580         ac_im_usrlibdir=$ac_im_libdir; break
10581       fi
10582     done
10583     # Screen out bogus values from the imake configuration.  They are
10584     # bogus both because they are the default anyway, and because
10585     # using them would break gcc on systems where it needs fixed includes.
10586     case $ac_im_incroot in
10587         /usr/include) ;;
10588         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10589     esac
10590     case $ac_im_usrlibdir in
10591         /usr/lib | /lib) ;;
10592         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10593     esac
10594   fi
10595   cd ..
10596   rm -fr conftest.dir
10597 fi
10598
10599 # Standard set of common directories for X headers.
10600 # Check X11 before X11Rn because it is often a symlink to the current release.
10601 ac_x_header_dirs='
10602 /usr/X11/include
10603 /usr/X11R6/include
10604 /usr/X11R5/include
10605 /usr/X11R4/include
10606
10607 /usr/include/X11
10608 /usr/include/X11R6
10609 /usr/include/X11R5
10610 /usr/include/X11R4
10611
10612 /usr/local/X11/include
10613 /usr/local/X11R6/include
10614 /usr/local/X11R5/include
10615 /usr/local/X11R4/include
10616
10617 /usr/local/include/X11
10618 /usr/local/include/X11R6
10619 /usr/local/include/X11R5
10620 /usr/local/include/X11R4
10621
10622 /usr/X386/include
10623 /usr/x386/include
10624 /usr/XFree86/include/X11
10625
10626 /usr/include
10627 /usr/local/include
10628 /usr/unsupported/include
10629 /usr/athena/include
10630 /usr/local/x11r5/include
10631 /usr/lpp/Xamples/include
10632
10633 /usr/openwin/include
10634 /usr/openwin/share/include'
10635
10636 if test "$ac_x_includes" = no; then
10637   # Guess where to find include files, by looking for Intrinsic.h.
10638   # First, try using that file with no special directory specified.
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 #include <X11/Intrinsic.h>
10646 _ACEOF
10647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } >/dev/null; then
10655   if test -s conftest.err; then
10656     ac_cpp_err=$ac_c_preproc_warn_flag
10657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658   else
10659     ac_cpp_err=
10660   fi
10661 else
10662   ac_cpp_err=yes
10663 fi
10664 if test -z "$ac_cpp_err"; then
10665   # We can compile using X headers with no special include directory.
10666 ac_x_includes=
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671   for ac_dir in $ac_x_header_dirs; do
10672   if test -r "$ac_dir/X11/Intrinsic.h"; then
10673     ac_x_includes=$ac_dir
10674     break
10675   fi
10676 done
10677 fi
10678 rm -f conftest.err conftest.$ac_ext
10679 fi # $ac_x_includes = no
10680
10681 if test "$ac_x_libraries" = no; then
10682   # Check for the libraries.
10683   # See if we find them without any special options.
10684   # Don't add to $LIBS permanently.
10685   ac_save_LIBS=$LIBS
10686   LIBS="-lXt $LIBS"
10687   if test x$gcc_no_link = xyes; then
10688   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10690    { (exit 1); exit 1; }; }
10691 fi
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 #include <X11/Intrinsic.h>
10699 int
10700 main ()
10701 {
10702 XtMalloc (0)
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext conftest$ac_exeext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10709   (eval $ac_link) 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } &&
10716          { ac_try='test -z "$ac_c_werror_flag"
10717                          || test ! -s conftest.err'
10718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719   (eval $ac_try) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; } &&
10723          { ac_try='test -s conftest$ac_exeext'
10724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725   (eval $ac_try) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }; }; then
10729   LIBS=$ac_save_LIBS
10730 # We can link X programs with no special library path.
10731 ac_x_libraries=
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 LIBS=$ac_save_LIBS
10737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10738 do
10739   # Don't even attempt the hair of trying to link an X program!
10740   for ac_extension in a so sl; do
10741     if test -r $ac_dir/libXt.$ac_extension; then
10742       ac_x_libraries=$ac_dir
10743       break 2
10744     fi
10745   done
10746 done
10747 fi
10748 rm -f conftest.err conftest.$ac_objext \
10749       conftest$ac_exeext conftest.$ac_ext
10750 fi # $ac_x_libraries = no
10751
10752 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10753   # Didn't find X anywhere.  Cache the known absence of X.
10754   ac_cv_have_x="have_x=no"
10755 else
10756   # Record where we found X for the cache.
10757   ac_cv_have_x="have_x=yes \
10758                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10759 fi
10760 fi
10761
10762   fi
10763   eval "$ac_cv_have_x"
10764 fi # $with_x != no
10765
10766 if test "$have_x" != yes; then
10767   echo "$as_me:$LINENO: result: $have_x" >&5
10768 echo "${ECHO_T}$have_x" >&6
10769   no_x=yes
10770 else
10771   # If each of the values was on the command line, it overrides each guess.
10772   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10773   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10774   # Update the cache value to reflect the command line values.
10775   ac_cv_have_x="have_x=yes \
10776                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10777   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10778 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10779 fi
10780
10781 if test "$no_x" = yes; then
10782   # Not all programs may use this symbol, but it does not hurt to define it.
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define X_DISPLAY_MISSING 1
10786 _ACEOF
10787
10788   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10789 else
10790   if test -n "$x_includes"; then
10791     X_CFLAGS="$X_CFLAGS -I$x_includes"
10792   fi
10793
10794   # It would also be nice to do this for all -L options, not just this one.
10795   if test -n "$x_libraries"; then
10796     X_LIBS="$X_LIBS -L$x_libraries"
10797     # For Solaris; some versions of Sun CC require a space after -R and
10798     # others require no space.  Words are not sufficient . . . .
10799     case `(uname -sr) 2>/dev/null` in
10800     "SunOS 5"*)
10801       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10802 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10803       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10804       if test x$gcc_no_link = xyes; then
10805   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10807    { (exit 1); exit 1; }; }
10808 fi
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h.  */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h.  */
10815
10816 int
10817 main ()
10818 {
10819
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826   (eval $ac_link) 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -z "$ac_c_werror_flag"
10834                          || test ! -s conftest.err'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; } &&
10840          { ac_try='test -s conftest$ac_exeext'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; }; then
10846   ac_R_nospace=yes
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_R_nospace=no
10852 fi
10853 rm -f conftest.err conftest.$ac_objext \
10854       conftest$ac_exeext conftest.$ac_ext
10855       if test $ac_R_nospace = yes; then
10856         echo "$as_me:$LINENO: result: no" >&5
10857 echo "${ECHO_T}no" >&6
10858         X_LIBS="$X_LIBS -R$x_libraries"
10859       else
10860         LIBS="$ac_xsave_LIBS -R $x_libraries"
10861         if test x$gcc_no_link = xyes; then
10862   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10864    { (exit 1); exit 1; }; }
10865 fi
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872
10873 int
10874 main ()
10875 {
10876
10877   ;
10878   return 0;
10879 }
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883   (eval $ac_link) 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -z "$ac_c_werror_flag"
10891                          || test ! -s conftest.err'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; } &&
10897          { ac_try='test -s conftest$ac_exeext'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   ac_R_space=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_R_space=no
10909 fi
10910 rm -f conftest.err conftest.$ac_objext \
10911       conftest$ac_exeext conftest.$ac_ext
10912         if test $ac_R_space = yes; then
10913           echo "$as_me:$LINENO: result: yes" >&5
10914 echo "${ECHO_T}yes" >&6
10915           X_LIBS="$X_LIBS -R $x_libraries"
10916         else
10917           echo "$as_me:$LINENO: result: neither works" >&5
10918 echo "${ECHO_T}neither works" >&6
10919         fi
10920       fi
10921       LIBS=$ac_xsave_LIBS
10922     esac
10923   fi
10924
10925   # Check for system-dependent libraries X programs must link with.
10926   # Do this before checking for the system-independent R6 libraries
10927   # (-lICE), since we may need -lsocket or whatever for X linking.
10928
10929   if test "$ISC" = yes; then
10930     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10931   else
10932     # Martyn Johnson says this is needed for Ultrix, if the X
10933     # libraries were built with DECnet support.  And Karl Berry says
10934     # the Alpha needs dnet_stub (dnet does not exist).
10935     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10936     if test x$gcc_no_link = xyes; then
10937   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10939    { (exit 1); exit 1; }; }
10940 fi
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947
10948 /* Override any gcc2 internal prototype to avoid an error.  */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 /* We use char because int might match the return type of a gcc2
10953    builtin and then its argument prototype would still apply.  */
10954 char XOpenDisplay ();
10955 int
10956 main ()
10957 {
10958 XOpenDisplay ();
10959   ;
10960   return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965   (eval $ac_link) 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } &&
10972          { ac_try='test -z "$ac_c_werror_flag"
10973                          || test ! -s conftest.err'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; } &&
10979          { ac_try='test -s conftest$ac_exeext'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   :
10986 else
10987   echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-ldnet  $LIBS"
10997 if test x$gcc_no_link = xyes; then
10998   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11000    { (exit 1); exit 1; }; }
11001 fi
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008
11009 /* Override any gcc2 internal prototype to avoid an error.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 /* We use char because int might match the return type of a gcc2
11014    builtin and then its argument prototype would still apply.  */
11015 char dnet_ntoa ();
11016 int
11017 main ()
11018 {
11019 dnet_ntoa ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026   (eval $ac_link) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_lib_dnet_dnet_ntoa=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_lib_dnet_dnet_ntoa=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext \
11054       conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11056 fi
11057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11060   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11061 fi
11062
11063     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11064       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11066 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069   ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldnet_stub  $LIBS"
11071 if test x$gcc_no_link = xyes; then
11072   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11074    { (exit 1); exit 1; }; }
11075 fi
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h.  */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h.  */
11082
11083 /* Override any gcc2 internal prototype to avoid an error.  */
11084 #ifdef __cplusplus
11085 extern "C"
11086 #endif
11087 /* We use char because int might match the return type of a gcc2
11088    builtin and then its argument prototype would still apply.  */
11089 char dnet_ntoa ();
11090 int
11091 main ()
11092 {
11093 dnet_ntoa ();
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>conftest.er1
11101   ac_status=$?
11102   grep -v '^ *+' conftest.er1 >conftest.err
11103   rm -f conftest.er1
11104   cat conftest.err >&5
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } &&
11107          { ac_try='test -z "$ac_c_werror_flag"
11108                          || test ! -s conftest.err'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest$ac_exeext'
11115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116   (eval $ac_try) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; }; then
11120   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 ac_cv_lib_dnet_stub_dnet_ntoa=no
11126 fi
11127 rm -f conftest.err conftest.$ac_objext \
11128       conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
11133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11134   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11135 fi
11136
11137     fi
11138 fi
11139 rm -f conftest.err conftest.$ac_objext \
11140       conftest$ac_exeext conftest.$ac_ext
11141     LIBS="$ac_xsave_LIBS"
11142
11143     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11144     # to get the SysV transport functions.
11145     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11146     # needs -lnsl.
11147     # The nsl library prevents programs from opening the X display
11148     # on Irix 5.2, according to T.E. Dickey.
11149     # The functions gethostbyname, getservbyname, and inet_addr are
11150     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11151     echo "$as_me:$LINENO: checking for gethostbyname" >&5
11152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11153 if test "${ac_cv_func_gethostbyname+set}" = set; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156   if test x$gcc_no_link = xyes; then
11157   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11159    { (exit 1); exit 1; }; }
11160 fi
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11169 #define gethostbyname innocuous_gethostbyname
11170
11171 /* System header to define __stub macros and hopefully few prototypes,
11172     which can conflict with char gethostbyname (); below.
11173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11174     <limits.h> exists even on freestanding compilers.  */
11175
11176 #ifdef __STDC__
11177 # include <limits.h>
11178 #else
11179 # include <assert.h>
11180 #endif
11181
11182 #undef gethostbyname
11183
11184 /* Override any gcc2 internal prototype to avoid an error.  */
11185 #ifdef __cplusplus
11186 extern "C"
11187 {
11188 #endif
11189 /* We use char because int might match the return type of a gcc2
11190    builtin and then its argument prototype would still apply.  */
11191 char gethostbyname ();
11192 /* The GNU C library defines this for functions which it implements
11193     to always fail with ENOSYS.  Some functions are actually named
11194     something starting with __ and the normal name is an alias.  */
11195 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11196 choke me
11197 #else
11198 char (*f) () = gethostbyname;
11199 #endif
11200 #ifdef __cplusplus
11201 }
11202 #endif
11203
11204 int
11205 main ()
11206 {
11207 return f != gethostbyname;
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext conftest$ac_exeext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11214   (eval $ac_link) 2>conftest.er1
11215   ac_status=$?
11216   grep -v '^ *+' conftest.er1 >conftest.err
11217   rm -f conftest.er1
11218   cat conftest.err >&5
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } &&
11221          { ac_try='test -z "$ac_c_werror_flag"
11222                          || test ! -s conftest.err'
11223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224   (eval $ac_try) 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); }; } &&
11228          { ac_try='test -s conftest$ac_exeext'
11229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230   (eval $ac_try) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   ac_cv_func_gethostbyname=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 ac_cv_func_gethostbyname=no
11240 fi
11241 rm -f conftest.err conftest.$ac_objext \
11242       conftest$ac_exeext conftest.$ac_ext
11243 fi
11244 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11245 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11246
11247     if test $ac_cv_func_gethostbyname = no; then
11248       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11249 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
11250 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-lnsl  $LIBS"
11255 if test x$gcc_no_link = xyes; then
11256   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11258    { (exit 1); exit 1; }; }
11259 fi
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266
11267 /* Override any gcc2 internal prototype to avoid an error.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 /* We use char because int might match the return type of a gcc2
11272    builtin and then its argument prototype would still apply.  */
11273 char gethostbyname ();
11274 int
11275 main ()
11276 {
11277 gethostbyname ();
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284   (eval $ac_link) 2>conftest.er1
11285   ac_status=$?
11286   grep -v '^ *+' conftest.er1 >conftest.err
11287   rm -f conftest.er1
11288   cat conftest.err >&5
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } &&
11291          { ac_try='test -z "$ac_c_werror_flag"
11292                          || test ! -s conftest.err'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; } &&
11298          { ac_try='test -s conftest$ac_exeext'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; }; then
11304   ac_cv_lib_nsl_gethostbyname=yes
11305 else
11306   echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 ac_cv_lib_nsl_gethostbyname=no
11310 fi
11311 rm -f conftest.err conftest.$ac_objext \
11312       conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11314 fi
11315 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11316 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
11317 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11318   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11319 fi
11320
11321       if test $ac_cv_lib_nsl_gethostbyname = no; then
11322         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11323 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
11324 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lbsd  $LIBS"
11329 if test x$gcc_no_link = xyes; then
11330   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11332    { (exit 1); exit 1; }; }
11333 fi
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340
11341 /* Override any gcc2 internal prototype to avoid an error.  */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 /* We use char because int might match the return type of a gcc2
11346    builtin and then its argument prototype would still apply.  */
11347 char gethostbyname ();
11348 int
11349 main ()
11350 {
11351 gethostbyname ();
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11358   (eval $ac_link) 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -z "$ac_c_werror_flag"
11366                          || test ! -s conftest.err'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; } &&
11372          { ac_try='test -s conftest$ac_exeext'
11373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374   (eval $ac_try) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; }; then
11378   ac_cv_lib_bsd_gethostbyname=yes
11379 else
11380   echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 ac_cv_lib_bsd_gethostbyname=no
11384 fi
11385 rm -f conftest.err conftest.$ac_objext \
11386       conftest$ac_exeext conftest.$ac_ext
11387 LIBS=$ac_check_lib_save_LIBS
11388 fi
11389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
11390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
11391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
11392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11393 fi
11394
11395       fi
11396     fi
11397
11398     # lieder@skyler.mavd.honeywell.com says without -lsocket,
11399     # socket/setsockopt and other routines are undefined under SCO ODT
11400     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11401     # on later versions), says Simon Leinen: it contains gethostby*
11402     # variants that don't use the name server (or something).  -lsocket
11403     # must be given before -lnsl if both are needed.  We assume that
11404     # if connect needs -lnsl, so does gethostbyname.
11405     echo "$as_me:$LINENO: checking for connect" >&5
11406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11407 if test "${ac_cv_func_connect+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   if test x$gcc_no_link = xyes; then
11411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11413    { (exit 1); exit 1; }; }
11414 fi
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11423 #define connect innocuous_connect
11424
11425 /* System header to define __stub macros and hopefully few prototypes,
11426     which can conflict with char connect (); below.
11427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428     <limits.h> exists even on freestanding compilers.  */
11429
11430 #ifdef __STDC__
11431 # include <limits.h>
11432 #else
11433 # include <assert.h>
11434 #endif
11435
11436 #undef connect
11437
11438 /* Override any gcc2 internal prototype to avoid an error.  */
11439 #ifdef __cplusplus
11440 extern "C"
11441 {
11442 #endif
11443 /* We use char because int might match the return type of a gcc2
11444    builtin and then its argument prototype would still apply.  */
11445 char connect ();
11446 /* The GNU C library defines this for functions which it implements
11447     to always fail with ENOSYS.  Some functions are actually named
11448     something starting with __ and the normal name is an alias.  */
11449 #if defined (__stub_connect) || defined (__stub___connect)
11450 choke me
11451 #else
11452 char (*f) () = connect;
11453 #endif
11454 #ifdef __cplusplus
11455 }
11456 #endif
11457
11458 int
11459 main ()
11460 {
11461 return f != connect;
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468   (eval $ac_link) 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -z "$ac_c_werror_flag"
11476                          || test ! -s conftest.err'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; } &&
11482          { ac_try='test -s conftest$ac_exeext'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }; then
11488   ac_cv_func_connect=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_cv_func_connect=no
11494 fi
11495 rm -f conftest.err conftest.$ac_objext \
11496       conftest$ac_exeext conftest.$ac_ext
11497 fi
11498 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11499 echo "${ECHO_T}$ac_cv_func_connect" >&6
11500
11501     if test $ac_cv_func_connect = no; then
11502       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11504 if test "${ac_cv_lib_socket_connect+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11509 if test x$gcc_no_link = xyes; then
11510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11512    { (exit 1); exit 1; }; }
11513 fi
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520
11521 /* Override any gcc2 internal prototype to avoid an error.  */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 /* We use char because int might match the return type of a gcc2
11526    builtin and then its argument prototype would still apply.  */
11527 char connect ();
11528 int
11529 main ()
11530 {
11531 connect ();
11532   ;
11533   return 0;
11534 }
11535 _ACEOF
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11538   (eval $ac_link) 2>conftest.er1
11539   ac_status=$?
11540   grep -v '^ *+' conftest.er1 >conftest.err
11541   rm -f conftest.er1
11542   cat conftest.err >&5
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); } &&
11545          { ac_try='test -z "$ac_c_werror_flag"
11546                          || test ! -s conftest.err'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; } &&
11552          { ac_try='test -s conftest$ac_exeext'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_cv_lib_socket_connect=yes
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_cv_lib_socket_connect=no
11564 fi
11565 rm -f conftest.err conftest.$ac_objext \
11566       conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11570 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11571 if test $ac_cv_lib_socket_connect = yes; then
11572   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11573 fi
11574
11575     fi
11576
11577     # Guillermo Gomez says -lposix is necessary on A/UX.
11578     echo "$as_me:$LINENO: checking for remove" >&5
11579 echo $ECHO_N "checking for remove... $ECHO_C" >&6
11580 if test "${ac_cv_func_remove+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   if test x$gcc_no_link = xyes; then
11584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11586    { (exit 1); exit 1; }; }
11587 fi
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
11595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11596 #define remove innocuous_remove
11597
11598 /* System header to define __stub macros and hopefully few prototypes,
11599     which can conflict with char remove (); below.
11600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601     <limits.h> exists even on freestanding compilers.  */
11602
11603 #ifdef __STDC__
11604 # include <limits.h>
11605 #else
11606 # include <assert.h>
11607 #endif
11608
11609 #undef remove
11610
11611 /* Override any gcc2 internal prototype to avoid an error.  */
11612 #ifdef __cplusplus
11613 extern "C"
11614 {
11615 #endif
11616 /* We use char because int might match the return type of a gcc2
11617    builtin and then its argument prototype would still apply.  */
11618 char remove ();
11619 /* The GNU C library defines this for functions which it implements
11620     to always fail with ENOSYS.  Some functions are actually named
11621     something starting with __ and the normal name is an alias.  */
11622 #if defined (__stub_remove) || defined (__stub___remove)
11623 choke me
11624 #else
11625 char (*f) () = remove;
11626 #endif
11627 #ifdef __cplusplus
11628 }
11629 #endif
11630
11631 int
11632 main ()
11633 {
11634 return f != remove;
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641   (eval $ac_link) 2>conftest.er1
11642   ac_status=$?
11643   grep -v '^ *+' conftest.er1 >conftest.err
11644   rm -f conftest.er1
11645   cat conftest.err >&5
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); } &&
11648          { ac_try='test -z "$ac_c_werror_flag"
11649                          || test ! -s conftest.err'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; } &&
11655          { ac_try='test -s conftest$ac_exeext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   ac_cv_func_remove=yes
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666 ac_cv_func_remove=no
11667 fi
11668 rm -f conftest.err conftest.$ac_objext \
11669       conftest$ac_exeext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
11672 echo "${ECHO_T}$ac_cv_func_remove" >&6
11673
11674     if test $ac_cv_func_remove = no; then
11675       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
11676 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
11677 if test "${ac_cv_lib_posix_remove+set}" = set; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lposix  $LIBS"
11682 if test x$gcc_no_link = xyes; then
11683   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11685    { (exit 1); exit 1; }; }
11686 fi
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693
11694 /* Override any gcc2 internal prototype to avoid an error.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 /* We use char because int might match the return type of a gcc2
11699    builtin and then its argument prototype would still apply.  */
11700 char remove ();
11701 int
11702 main ()
11703 {
11704 remove ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711   (eval $ac_link) 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag"
11719                          || test ! -s conftest.err'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; } &&
11725          { ac_try='test -s conftest$ac_exeext'
11726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727   (eval $ac_try) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   ac_cv_lib_posix_remove=yes
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ac_cv_lib_posix_remove=no
11737 fi
11738 rm -f conftest.err conftest.$ac_objext \
11739       conftest$ac_exeext conftest.$ac_ext
11740 LIBS=$ac_check_lib_save_LIBS
11741 fi
11742 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11743 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11744 if test $ac_cv_lib_posix_remove = yes; then
11745   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11746 fi
11747
11748     fi
11749
11750     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11751     echo "$as_me:$LINENO: checking for shmat" >&5
11752 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11753 if test "${ac_cv_func_shmat+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   if test x$gcc_no_link = xyes; then
11757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11759    { (exit 1); exit 1; }; }
11760 fi
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11769 #define shmat innocuous_shmat
11770
11771 /* System header to define __stub macros and hopefully few prototypes,
11772     which can conflict with char shmat (); below.
11773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774     <limits.h> exists even on freestanding compilers.  */
11775
11776 #ifdef __STDC__
11777 # include <limits.h>
11778 #else
11779 # include <assert.h>
11780 #endif
11781
11782 #undef shmat
11783
11784 /* Override any gcc2 internal prototype to avoid an error.  */
11785 #ifdef __cplusplus
11786 extern "C"
11787 {
11788 #endif
11789 /* We use char because int might match the return type of a gcc2
11790    builtin and then its argument prototype would still apply.  */
11791 char shmat ();
11792 /* The GNU C library defines this for functions which it implements
11793     to always fail with ENOSYS.  Some functions are actually named
11794     something starting with __ and the normal name is an alias.  */
11795 #if defined (__stub_shmat) || defined (__stub___shmat)
11796 choke me
11797 #else
11798 char (*f) () = shmat;
11799 #endif
11800 #ifdef __cplusplus
11801 }
11802 #endif
11803
11804 int
11805 main ()
11806 {
11807 return f != shmat;
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814   (eval $ac_link) 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -z "$ac_c_werror_flag"
11822                          || test ! -s conftest.err'
11823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824   (eval $ac_try) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; } &&
11828          { ac_try='test -s conftest$ac_exeext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_func_shmat=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_func_shmat=no
11840 fi
11841 rm -f conftest.err conftest.$ac_objext \
11842       conftest$ac_exeext conftest.$ac_ext
11843 fi
11844 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11845 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11846
11847     if test $ac_cv_func_shmat = no; then
11848       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11849 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-lipc  $LIBS"
11855 if test x$gcc_no_link = xyes; then
11856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11858    { (exit 1); exit 1; }; }
11859 fi
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866
11867 /* Override any gcc2 internal prototype to avoid an error.  */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 /* We use char because int might match the return type of a gcc2
11872    builtin and then its argument prototype would still apply.  */
11873 char shmat ();
11874 int
11875 main ()
11876 {
11877 shmat ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884   (eval $ac_link) 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -z "$ac_c_werror_flag"
11892                          || test ! -s conftest.err'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; }; then
11904   ac_cv_lib_ipc_shmat=yes
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_cv_lib_ipc_shmat=no
11910 fi
11911 rm -f conftest.err conftest.$ac_objext \
11912       conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11914 fi
11915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11917 if test $ac_cv_lib_ipc_shmat = yes; then
11918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11919 fi
11920
11921     fi
11922   fi
11923
11924   # Check for libraries that X11R6 Xt/Xaw programs need.
11925   ac_save_LDFLAGS=$LDFLAGS
11926   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11927   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11928   # check for ICE first), but we must link in the order -lSM -lICE or
11929   # we get undefined symbols.  So assume we have SM if we have ICE.
11930   # These have to be linked with before -lX11, unlike the other
11931   # libraries we check for below, so use a different variable.
11932   # John Interrante, Karl Berry
11933   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11940 if test x$gcc_no_link = xyes; then
11941   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11943    { (exit 1); exit 1; }; }
11944 fi
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951
11952 /* Override any gcc2 internal prototype to avoid an error.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 /* We use char because int might match the return type of a gcc2
11957    builtin and then its argument prototype would still apply.  */
11958 char IceConnectionNumber ();
11959 int
11960 main ()
11961 {
11962 IceConnectionNumber ();
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag"
11977                          || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_cv_lib_ICE_IceConnectionNumber=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_cv_lib_ICE_IceConnectionNumber=no
11995 fi
11996 rm -f conftest.err conftest.$ac_objext \
11997       conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12001 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12002 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12003   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12004 fi
12005
12006   LDFLAGS=$ac_save_LDFLAGS
12007
12008 fi
12009
12010     if test "$no_x" = yes; then
12011         { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
12012 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
12013    { (exit 1); exit 1; }; }
12014     fi
12015         echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
12016 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
12017 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   ac_check_lib_save_LIBS=$LIBS
12021 LIBS="-lXtst ${X_LIBS} $LIBS"
12022 if test x$gcc_no_link = xyes; then
12023   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12024 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12025    { (exit 1); exit 1; }; }
12026 fi
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033
12034 /* Override any gcc2 internal prototype to avoid an error.  */
12035 #ifdef __cplusplus
12036 extern "C"
12037 #endif
12038 /* We use char because int might match the return type of a gcc2
12039    builtin and then its argument prototype would still apply.  */
12040 char XTestQueryExtension ();
12041 int
12042 main ()
12043 {
12044 XTestQueryExtension ();
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051   (eval $ac_link) 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -z "$ac_c_werror_flag"
12059                          || test ! -s conftest.err'
12060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061   (eval $ac_try) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; } &&
12065          { ac_try='test -s conftest$ac_exeext'
12066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067   (eval $ac_try) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); }; }; then
12071   ac_cv_lib_Xtst_XTestQueryExtension=yes
12072 else
12073   echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_cv_lib_Xtst_XTestQueryExtension=no
12077 fi
12078 rm -f conftest.err conftest.$ac_objext \
12079       conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
12083 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
12084 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
12085   XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
12086 else
12087   { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
12088 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
12089    { (exit 1); exit 1; }; }
12090 fi
12091
12092
12093
12094   succeeded=no
12095
12096   if test -z "$PKG_CONFIG"; then
12097     # Extract the first word of "pkg-config", so it can be a program name with args.
12098 set dummy pkg-config; ac_word=$2
12099 echo "$as_me:$LINENO: checking for $ac_word" >&5
12100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   case $PKG_CONFIG in
12105   [\\/]* | ?:[\\/]*)
12106   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12107   ;;
12108   *)
12109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114   for ac_exec_ext in '' $ac_executable_extensions; do
12115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121 done
12122
12123   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12124   ;;
12125 esac
12126 fi
12127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12128
12129 if test -n "$PKG_CONFIG"; then
12130   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12131 echo "${ECHO_T}$PKG_CONFIG" >&6
12132 else
12133   echo "$as_me:$LINENO: result: no" >&5
12134 echo "${ECHO_T}no" >&6
12135 fi
12136
12137   fi
12138
12139   if test "$PKG_CONFIG" = "no" ; then
12140      echo "*** The pkg-config script could not be found. Make sure it is"
12141      echo "*** in your path, or set the PKG_CONFIG environment variable"
12142      echo "*** to the full path to pkg-config."
12143      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12144   else
12145      PKG_CONFIG_MIN_VERSION=0.9.0
12146      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12147         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
12148 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
12149
12150         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
12151             echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6
12153             succeeded=yes
12154
12155             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12156 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12157             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12158             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12159 echo "${ECHO_T}$GTK_CFLAGS" >&6
12160
12161             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12162 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12163             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12164             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12165 echo "${ECHO_T}$GTK_LIBS" >&6
12166         else
12167             GTK_CFLAGS=""
12168             GTK_LIBS=""
12169             ## If we have a custom action on failure, don't print errors, but
12170             ## do set a variable so people can do so.
12171             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12172             echo $GTK_PKG_ERRORS
12173         fi
12174
12175
12176
12177      else
12178         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12179         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12180      fi
12181   fi
12182
12183   if test $succeeded = yes; then
12184      :
12185   else
12186      { { 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
12187 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;}
12188    { (exit 1); exit 1; }; }
12189   fi
12190
12191
12192   succeeded=no
12193
12194   if test -z "$PKG_CONFIG"; then
12195     # Extract the first word of "pkg-config", so it can be a program name with args.
12196 set dummy pkg-config; ac_word=$2
12197 echo "$as_me:$LINENO: checking for $ac_word" >&5
12198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12199 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12200   echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202   case $PKG_CONFIG in
12203   [\\/]* | ?:[\\/]*)
12204   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12205   ;;
12206   *)
12207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208 for as_dir in $PATH
12209 do
12210   IFS=$as_save_IFS
12211   test -z "$as_dir" && as_dir=.
12212   for ac_exec_ext in '' $ac_executable_extensions; do
12213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12214     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12216     break 2
12217   fi
12218 done
12219 done
12220
12221   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12222   ;;
12223 esac
12224 fi
12225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12226
12227 if test -n "$PKG_CONFIG"; then
12228   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12229 echo "${ECHO_T}$PKG_CONFIG" >&6
12230 else
12231   echo "$as_me:$LINENO: result: no" >&5
12232 echo "${ECHO_T}no" >&6
12233 fi
12234
12235   fi
12236
12237   if test "$PKG_CONFIG" = "no" ; then
12238      echo "*** The pkg-config script could not be found. Make sure it is"
12239      echo "*** in your path, or set the PKG_CONFIG environment variable"
12240      echo "*** to the full path to pkg-config."
12241      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12242   else
12243      PKG_CONFIG_MIN_VERSION=0.9.0
12244      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12245         echo "$as_me:$LINENO: checking for freetype2" >&5
12246 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12247
12248         if $PKG_CONFIG --exists "freetype2" ; then
12249             echo "$as_me:$LINENO: result: yes" >&5
12250 echo "${ECHO_T}yes" >&6
12251             succeeded=yes
12252
12253             echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12254 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
12255             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12256             echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12257 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
12258
12259             echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12260 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
12261             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
12262             echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12263 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
12264         else
12265             FREETYPE2_CFLAGS=""
12266             FREETYPE2_LIBS=""
12267             ## If we have a custom action on failure, don't print errors, but
12268             ## do set a variable so people can do so.
12269             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12270             echo $FREETYPE2_PKG_ERRORS
12271         fi
12272
12273
12274
12275      else
12276         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12277         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12278      fi
12279   fi
12280
12281   if test $succeeded = yes; then
12282      :
12283   else
12284      { { 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
12285 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;}
12286    { (exit 1); exit 1; }; }
12287   fi
12288
12289
12290   succeeded=no
12291
12292   if test -z "$PKG_CONFIG"; then
12293     # Extract the first word of "pkg-config", so it can be a program name with args.
12294 set dummy pkg-config; ac_word=$2
12295 echo "$as_me:$LINENO: checking for $ac_word" >&5
12296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   case $PKG_CONFIG in
12301   [\\/]* | ?:[\\/]*)
12302   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12303   ;;
12304   *)
12305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310   for ac_exec_ext in '' $ac_executable_extensions; do
12311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317 done
12318
12319   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12320   ;;
12321 esac
12322 fi
12323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12324
12325 if test -n "$PKG_CONFIG"; then
12326   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12327 echo "${ECHO_T}$PKG_CONFIG" >&6
12328 else
12329   echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6
12331 fi
12332
12333   fi
12334
12335   if test "$PKG_CONFIG" = "no" ; then
12336      echo "*** The pkg-config script could not be found. Make sure it is"
12337      echo "*** in your path, or set the PKG_CONFIG environment variable"
12338      echo "*** to the full path to pkg-config."
12339      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12340   else
12341      PKG_CONFIG_MIN_VERSION=0.9.0
12342      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12343         echo "$as_me:$LINENO: checking for pangoft2" >&5
12344 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
12345
12346         if $PKG_CONFIG --exists "pangoft2" ; then
12347             echo "$as_me:$LINENO: result: yes" >&5
12348 echo "${ECHO_T}yes" >&6
12349             succeeded=yes
12350
12351             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
12352 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
12353             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12354             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
12355 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
12356
12357             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
12358 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
12359             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12360             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
12361 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
12362         else
12363             PANGOFT2_CFLAGS=""
12364             PANGOFT2_LIBS=""
12365             ## If we have a custom action on failure, don't print errors, but
12366             ## do set a variable so people can do so.
12367             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12368             echo $PANGOFT2_PKG_ERRORS
12369         fi
12370
12371
12372
12373      else
12374         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12375         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12376      fi
12377   fi
12378
12379   if test $succeeded = yes; then
12380      :
12381   else
12382      { { 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
12383 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;}
12384    { (exit 1); exit 1; }; }
12385   fi
12386
12387             echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
12388 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
12389 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-lXrender ${X_LIBS} $LIBS"
12394 if test x$gcc_no_link = xyes; then
12395   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12397    { (exit 1); exit 1; }; }
12398 fi
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any gcc2 internal prototype to avoid an error.  */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 /* We use char because int might match the return type of a gcc2
12411    builtin and then its argument prototype would still apply.  */
12412 char XRenderQueryExtension ();
12413 int
12414 main ()
12415 {
12416 XRenderQueryExtension ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423   (eval $ac_link) 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } &&
12430          { ac_try='test -z "$ac_c_werror_flag"
12431                          || test ! -s conftest.err'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; } &&
12437          { ac_try='test -s conftest$ac_exeext'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   ac_cv_lib_Xrender_XRenderQueryExtension=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_cv_lib_Xrender_XRenderQueryExtension=no
12449 fi
12450 rm -f conftest.err conftest.$ac_objext \
12451       conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12453 fi
12454 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12455 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
12456 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
12457
12458 cat >>confdefs.h <<\_ACEOF
12459 #define HAVE_XRENDER 1
12460 _ACEOF
12461 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
12462 else
12463   true
12464 fi
12465
12466
12467             echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
12468 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
12469 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   ac_check_lib_save_LIBS=$LIBS
12473 LIBS="-lXrandr ${X_LIBS} $LIBS"
12474 if test x$gcc_no_link = xyes; then
12475   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12477    { (exit 1); exit 1; }; }
12478 fi
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485
12486 /* Override any gcc2 internal prototype to avoid an error.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 /* We use char because int might match the return type of a gcc2
12491    builtin and then its argument prototype would still apply.  */
12492 char XRRQueryExtension ();
12493 int
12494 main ()
12495 {
12496 XRRQueryExtension ();
12497   ;
12498   return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12503   (eval $ac_link) 2>conftest.er1
12504   ac_status=$?
12505   grep -v '^ *+' conftest.er1 >conftest.err
12506   rm -f conftest.er1
12507   cat conftest.err >&5
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); } &&
12510          { ac_try='test -z "$ac_c_werror_flag"
12511                          || test ! -s conftest.err'
12512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513   (eval $ac_try) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; }; then
12523   ac_cv_lib_Xrandr_XRRQueryExtension=yes
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528 ac_cv_lib_Xrandr_XRRQueryExtension=no
12529 fi
12530 rm -f conftest.err conftest.$ac_objext \
12531       conftest$ac_exeext conftest.$ac_ext
12532 LIBS=$ac_check_lib_save_LIBS
12533 fi
12534 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
12535 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
12536 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_XRANDR 1
12540 _ACEOF
12541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
12542 else
12543   true
12544 fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554   fi
12555
12556     if  test "x${COMPILE_GCONF_PEER}" = xyes; then
12557
12558   succeeded=no
12559
12560   if test -z "$PKG_CONFIG"; then
12561     # Extract the first word of "pkg-config", so it can be a program name with args.
12562 set dummy pkg-config; ac_word=$2
12563 echo "$as_me:$LINENO: checking for $ac_word" >&5
12564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12565 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12566   echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568   case $PKG_CONFIG in
12569   [\\/]* | ?:[\\/]*)
12570   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12571   ;;
12572   *)
12573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576   IFS=$as_save_IFS
12577   test -z "$as_dir" && as_dir=.
12578   for ac_exec_ext in '' $ac_executable_extensions; do
12579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12582     break 2
12583   fi
12584 done
12585 done
12586
12587   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12588   ;;
12589 esac
12590 fi
12591 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12592
12593 if test -n "$PKG_CONFIG"; then
12594   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12595 echo "${ECHO_T}$PKG_CONFIG" >&6
12596 else
12597   echo "$as_me:$LINENO: result: no" >&5
12598 echo "${ECHO_T}no" >&6
12599 fi
12600
12601   fi
12602
12603   if test "$PKG_CONFIG" = "no" ; then
12604      echo "*** The pkg-config script could not be found. Make sure it is"
12605      echo "*** in your path, or set the PKG_CONFIG environment variable"
12606      echo "*** to the full path to pkg-config."
12607      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12608   else
12609      PKG_CONFIG_MIN_VERSION=0.9.0
12610      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12611         echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
12612 echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
12613
12614         if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
12615             echo "$as_me:$LINENO: result: yes" >&5
12616 echo "${ECHO_T}yes" >&6
12617             succeeded=yes
12618
12619             echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12620 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
12621             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
12622             echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12623 echo "${ECHO_T}$GCONF_CFLAGS" >&6
12624
12625             echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12626 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
12627             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
12628             echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12629 echo "${ECHO_T}$GCONF_LIBS" >&6
12630         else
12631             GCONF_CFLAGS=""
12632             GCONF_LIBS=""
12633             ## If we have a custom action on failure, don't print errors, but
12634             ## do set a variable so people can do so.
12635             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
12636             echo $GCONF_PKG_ERRORS
12637         fi
12638
12639
12640
12641      else
12642         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12643         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12644      fi
12645   fi
12646
12647   if test $succeeded = yes; then
12648      :
12649   else
12650      { { 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
12651 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;}
12652    { (exit 1); exit 1; }; }
12653   fi
12654
12655
12656
12657
12658   succeeded=no
12659
12660   if test -z "$PKG_CONFIG"; then
12661     # Extract the first word of "pkg-config", so it can be a program name with args.
12662 set dummy pkg-config; ac_word=$2
12663 echo "$as_me:$LINENO: checking for $ac_word" >&5
12664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12665 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   case $PKG_CONFIG in
12669   [\\/]* | ?:[\\/]*)
12670   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12671   ;;
12672   *)
12673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678   for ac_exec_ext in '' $ac_executable_extensions; do
12679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685 done
12686
12687   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12688   ;;
12689 esac
12690 fi
12691 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12692
12693 if test -n "$PKG_CONFIG"; then
12694   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12695 echo "${ECHO_T}$PKG_CONFIG" >&6
12696 else
12697   echo "$as_me:$LINENO: result: no" >&5
12698 echo "${ECHO_T}no" >&6
12699 fi
12700
12701   fi
12702
12703   if test "$PKG_CONFIG" = "no" ; then
12704      echo "*** The pkg-config script could not be found. Make sure it is"
12705      echo "*** in your path, or set the PKG_CONFIG environment variable"
12706      echo "*** to the full path to pkg-config."
12707      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12708   else
12709      PKG_CONFIG_MIN_VERSION=0.9.0
12710      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12711         echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
12712 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
12713
12714         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
12715             echo "$as_me:$LINENO: result: yes" >&5
12716 echo "${ECHO_T}yes" >&6
12717             succeeded=yes
12718
12719             echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
12720 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
12721             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
12722             echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
12723 echo "${ECHO_T}$GDK_CFLAGS" >&6
12724
12725             echo "$as_me:$LINENO: checking GDK_LIBS" >&5
12726 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
12727             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
12728             echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
12729 echo "${ECHO_T}$GDK_LIBS" >&6
12730         else
12731             GDK_CFLAGS=""
12732             GDK_LIBS=""
12733             ## If we have a custom action on failure, don't print errors, but
12734             ## do set a variable so people can do so.
12735             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
12736             echo $GDK_PKG_ERRORS
12737         fi
12738
12739
12740
12741      else
12742         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12743         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12744      fi
12745   fi
12746
12747   if test $succeeded = yes; then
12748      :
12749   else
12750      { { 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
12751 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;}
12752    { (exit 1); exit 1; }; }
12753   fi
12754
12755
12756
12757                 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
12758     if test "$USE_GCONF_PREFS_PEER" = ""; then
12759         DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
12760     fi
12761   fi
12762
12763     if test "x${COMPILE_QT_PEER}" = xyes; then
12764
12765   succeeded=no
12766
12767   if test -z "$PKG_CONFIG"; then
12768     # Extract the first word of "pkg-config", so it can be a program name with args.
12769 set dummy pkg-config; ac_word=$2
12770 echo "$as_me:$LINENO: checking for $ac_word" >&5
12771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12772 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   case $PKG_CONFIG in
12776   [\\/]* | ?:[\\/]*)
12777   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12778   ;;
12779   *)
12780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12782 do
12783   IFS=$as_save_IFS
12784   test -z "$as_dir" && as_dir=.
12785   for ac_exec_ext in '' $ac_executable_extensions; do
12786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12787     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12789     break 2
12790   fi
12791 done
12792 done
12793
12794   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12795   ;;
12796 esac
12797 fi
12798 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12799
12800 if test -n "$PKG_CONFIG"; then
12801   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12802 echo "${ECHO_T}$PKG_CONFIG" >&6
12803 else
12804   echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6
12806 fi
12807
12808   fi
12809
12810   if test "$PKG_CONFIG" = "no" ; then
12811      echo "*** The pkg-config script could not be found. Make sure it is"
12812      echo "*** in your path, or set the PKG_CONFIG environment variable"
12813      echo "*** to the full path to pkg-config."
12814      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12815   else
12816      PKG_CONFIG_MIN_VERSION=0.9.0
12817      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12818         echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
12819 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
12820
12821         if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
12822             echo "$as_me:$LINENO: result: yes" >&5
12823 echo "${ECHO_T}yes" >&6
12824             succeeded=yes
12825
12826             echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
12827 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
12828             QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
12829             echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
12830 echo "${ECHO_T}$QT_CFLAGS" >&6
12831
12832             echo "$as_me:$LINENO: checking QT_LIBS" >&5
12833 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
12834             QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
12835             echo "$as_me:$LINENO: result: $QT_LIBS" >&5
12836 echo "${ECHO_T}$QT_LIBS" >&6
12837         else
12838             QT_CFLAGS=""
12839             QT_LIBS=""
12840             ## If we have a custom action on failure, don't print errors, but
12841             ## do set a variable so people can do so.
12842             QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
12843
12844         fi
12845
12846
12847
12848      else
12849         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12850         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12851      fi
12852   fi
12853
12854   if test $succeeded = yes; then
12855      HAVE_QT4="yes"
12856   else
12857      HAVE_QT4="no"
12858   fi
12859
12860     if test "x$HAVE_QT4" = "xyes"; then
12861                   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
12862       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
12863       as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12864 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
12865 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_File+set}\" = set"; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   test "$cross_compiling" = yes &&
12870   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12871 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12872    { (exit 1); exit 1; }; }
12873 if test -r "$QT_INCLUDE_DIR/QWidget"; then
12874   eval "$as_ac_File=yes"
12875 else
12876   eval "$as_ac_File=no"
12877 fi
12878 fi
12879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12880 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12881 if test `eval echo '${'$as_ac_File'}'` = yes; then
12882   { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
12883 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
12884 else
12885   as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12886 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
12887 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_File+set}\" = set"; then
12889   echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891   test "$cross_compiling" = yes &&
12892   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12893 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12894    { (exit 1); exit 1; }; }
12895 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
12896   eval "$as_ac_File=yes"
12897 else
12898   eval "$as_ac_File=no"
12899 fi
12900 fi
12901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12902 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12903 if test `eval echo '${'$as_ac_File'}'` = yes; then
12904   QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
12905 else
12906   { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
12907 echo "$as_me: WARNING: QWidget not found" >&2;}
12908 fi
12909
12910 fi
12911
12912         # Extract the first word of "moc", so it can be a program name with args.
12913 set dummy moc; ac_word=$2
12914 echo "$as_me:$LINENO: checking for $ac_word" >&5
12915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12916 if test "${ac_cv_prog_MOC+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   if test -n "$MOC"; then
12920   ac_cv_prog_MOC="$MOC" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927   for ac_exec_ext in '' $ac_executable_extensions; do
12928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929     ac_cv_prog_MOC="moc"
12930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931     break 2
12932   fi
12933 done
12934 done
12935
12936 fi
12937 fi
12938 MOC=$ac_cv_prog_MOC
12939 if test -n "$MOC"; then
12940   echo "$as_me:$LINENO: result: $MOC" >&5
12941 echo "${ECHO_T}$MOC" >&6
12942 else
12943   echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12945 fi
12946
12947         # Extract the first word of "moc-qt4", so it can be a program name with args.
12948 set dummy moc-qt4; ac_word=$2
12949 echo "$as_me:$LINENO: checking for $ac_word" >&5
12950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12951 if test "${ac_cv_prog_MOC+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   if test -n "$MOC"; then
12955   ac_cv_prog_MOC="$MOC" # Let the user override the test.
12956 else
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960   IFS=$as_save_IFS
12961   test -z "$as_dir" && as_dir=.
12962   for ac_exec_ext in '' $ac_executable_extensions; do
12963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964     ac_cv_prog_MOC="moc-qt4"
12965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12966     break 2
12967   fi
12968 done
12969 done
12970
12971 fi
12972 fi
12973 MOC=$ac_cv_prog_MOC
12974 if test -n "$MOC"; then
12975   echo "$as_me:$LINENO: result: $MOC" >&5
12976 echo "${ECHO_T}$MOC" >&6
12977 else
12978   echo "$as_me:$LINENO: result: no" >&5
12979 echo "${ECHO_T}no" >&6
12980 fi
12981
12982     fi
12983     if test "x$HAVE_QT4" = "xno"; then
12984       { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
12985 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
12986       case "$host_os" in
12987         darwin*)
12988
12989 # Check whether --with-qt4dir or --without-qt4dir was given.
12990 if test "${with_qt4dir+set}" = set; then
12991   withval="$with_qt4dir"
12992   QT4DIR=$withval
12993
12994 fi;
12995           if test x"$QT4DIR" = x ; then
12996             { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
12997 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
12998    { (exit 1); exit 1; }; }
12999           fi
13000           echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
13001 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
13002           # Extract the first word of "moc", so it can be a program name with args.
13003 set dummy moc; ac_word=$2
13004 echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13006 if test "${ac_cv_prog_MOC+set}" = set; then
13007   echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009   if test -n "$MOC"; then
13010   ac_cv_prog_MOC="$MOC" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $QT4DIR/bin
13014 do
13015   IFS=$as_save_IFS
13016   test -z "$as_dir" && as_dir=.
13017   for ac_exec_ext in '' $ac_executable_extensions; do
13018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13019     ac_cv_prog_MOC="$QT4DIR/bin/moc"
13020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021     break 2
13022   fi
13023 done
13024 done
13025
13026 fi
13027 fi
13028 MOC=$ac_cv_prog_MOC
13029 if test -n "$MOC"; then
13030   echo "$as_me:$LINENO: result: $MOC" >&5
13031 echo "${ECHO_T}$MOC" >&6
13032 else
13033   echo "$as_me:$LINENO: result: no" >&5
13034 echo "${ECHO_T}no" >&6
13035 fi
13036
13037           if test x"$MOC" = x; then
13038             { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
13039 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
13040    { (exit 1); exit 1; }; }
13041           fi
13042           QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
13043           QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
13044           QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
13045           QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
13046           ;;
13047         *)
13048           { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
13049           of your installed Qt4 installation." >&5
13050 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
13051           of your installed Qt4 installation." >&2;}
13052    { (exit 1); exit 1; }; }
13053           ;;
13054       esac
13055     fi
13056     { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
13057 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
13058
13059
13060   fi
13061         echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
13062 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
13063   cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069 #include <sys/socket.h>
13070 int
13071 main ()
13072 {
13073  int f = MSG_NOSIGNAL;
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 rm -f conftest.$ac_objext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080   (eval $ac_compile) 2>conftest.er1
13081   ac_status=$?
13082   grep -v '^ *+' conftest.er1 >conftest.err
13083   rm -f conftest.er1
13084   cat conftest.err >&5
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); } &&
13087          { ac_try='test -z "$ac_c_werror_flag"
13088                          || test ! -s conftest.err'
13089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090   (eval $ac_try) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; } &&
13094          { ac_try='test -s conftest.$ac_objext'
13095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096   (eval $ac_try) 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; }; then
13100    echo "$as_me:$LINENO: result: yes" >&5
13101 echo "${ECHO_T}yes" >&6
13102
13103 cat >>confdefs.h <<\_ACEOF
13104 #define HAVE_MSG_NOSIGNAL 1
13105 _ACEOF
13106
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111  echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6
13113
13114 fi
13115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13116     echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
13117 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
13118  cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 #include <sys/socket.h>
13125 int
13126 main ()
13127 {
13128  int f = SO_NOSIGPIPE;
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135   (eval $ac_compile) 2>conftest.er1
13136   ac_status=$?
13137   grep -v '^ *+' conftest.er1 >conftest.err
13138   rm -f conftest.er1
13139   cat conftest.err >&5
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -z "$ac_c_werror_flag"
13143                          || test ! -s conftest.err'
13144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145   (eval $ac_try) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; } &&
13149          { ac_try='test -s conftest.$ac_objext'
13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; }; then
13155    echo "$as_me:$LINENO: result: yes" >&5
13156 echo "${ECHO_T}yes" >&6
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_SO_NOSIGPIPE 1
13160 _ACEOF
13161
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166  echo "$as_me:$LINENO: result: no" >&5
13167 echo "${ECHO_T}no" >&6
13168
13169 fi
13170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13171
13172     if test "x${COMPILE_PLUGIN}" = xyes; then
13173
13174   succeeded=no
13175
13176   if test -z "$PKG_CONFIG"; then
13177     # Extract the first word of "pkg-config", so it can be a program name with args.
13178 set dummy pkg-config; ac_word=$2
13179 echo "$as_me:$LINENO: checking for $ac_word" >&5
13180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13181 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184   case $PKG_CONFIG in
13185   [\\/]* | ?:[\\/]*)
13186   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13187   ;;
13188   *)
13189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194   for ac_exec_ext in '' $ac_executable_extensions; do
13195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201 done
13202
13203   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13204   ;;
13205 esac
13206 fi
13207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13208
13209 if test -n "$PKG_CONFIG"; then
13210   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13211 echo "${ECHO_T}$PKG_CONFIG" >&6
13212 else
13213   echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6
13215 fi
13216
13217   fi
13218
13219   if test "$PKG_CONFIG" = "no" ; then
13220      echo "*** The pkg-config script could not be found. Make sure it is"
13221      echo "*** in your path, or set the PKG_CONFIG environment variable"
13222      echo "*** to the full path to pkg-config."
13223      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13224   else
13225      PKG_CONFIG_MIN_VERSION=0.9.0
13226      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13227         echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
13228 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
13229
13230         if $PKG_CONFIG --exists "mozilla-plugin" ; then
13231             echo "$as_me:$LINENO: result: yes" >&5
13232 echo "${ECHO_T}yes" >&6
13233             succeeded=yes
13234
13235             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13236 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13237             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
13238             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13239 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13240
13241             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13242 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13243             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
13244             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13245 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13246         else
13247             MOZILLA_CFLAGS=""
13248             MOZILLA_LIBS=""
13249             ## If we have a custom action on failure, don't print errors, but
13250             ## do set a variable so people can do so.
13251             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
13252
13253         fi
13254
13255
13256
13257      else
13258         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13259         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13260      fi
13261   fi
13262
13263   if test $succeeded = yes; then
13264      MOZILLA_FOUND=yes
13265   else
13266      MOZILLA_FOUND=no
13267   fi
13268
13269     if test "x${MOZILLA_FOUND}" = xno; then
13270
13271   succeeded=no
13272
13273   if test -z "$PKG_CONFIG"; then
13274     # Extract the first word of "pkg-config", so it can be a program name with args.
13275 set dummy pkg-config; ac_word=$2
13276 echo "$as_me:$LINENO: checking for $ac_word" >&5
13277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   case $PKG_CONFIG in
13282   [\\/]* | ?:[\\/]*)
13283   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13284   ;;
13285   *)
13286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289   IFS=$as_save_IFS
13290   test -z "$as_dir" && as_dir=.
13291   for ac_exec_ext in '' $ac_executable_extensions; do
13292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13295     break 2
13296   fi
13297 done
13298 done
13299
13300   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13301   ;;
13302 esac
13303 fi
13304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13305
13306 if test -n "$PKG_CONFIG"; then
13307   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13308 echo "${ECHO_T}$PKG_CONFIG" >&6
13309 else
13310   echo "$as_me:$LINENO: result: no" >&5
13311 echo "${ECHO_T}no" >&6
13312 fi
13313
13314   fi
13315
13316   if test "$PKG_CONFIG" = "no" ; then
13317      echo "*** The pkg-config script could not be found. Make sure it is"
13318      echo "*** in your path, or set the PKG_CONFIG environment variable"
13319      echo "*** to the full path to pkg-config."
13320      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13321   else
13322      PKG_CONFIG_MIN_VERSION=0.9.0
13323      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13324         echo "$as_me:$LINENO: checking for firefox-plugin" >&5
13325 echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
13326
13327         if $PKG_CONFIG --exists "firefox-plugin" ; then
13328             echo "$as_me:$LINENO: result: yes" >&5
13329 echo "${ECHO_T}yes" >&6
13330             succeeded=yes
13331
13332             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13333 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13334             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
13335             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13336 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13337
13338             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13339 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13340             MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
13341             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13342 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13343         else
13344             MOZILLA_CFLAGS=""
13345             MOZILLA_LIBS=""
13346             ## If we have a custom action on failure, don't print errors, but
13347             ## do set a variable so people can do so.
13348             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
13349
13350         fi
13351
13352
13353
13354      else
13355         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13356         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13357      fi
13358   fi
13359
13360   if test $succeeded = yes; then
13361      MOZILLA_FOUND=yes
13362   else
13363      MOZILLA_FOUND=no
13364   fi
13365
13366     fi
13367     if test "x${MOZILLA_FOUND}" = xno; then
13368
13369   succeeded=no
13370
13371   if test -z "$PKG_CONFIG"; then
13372     # Extract the first word of "pkg-config", so it can be a program name with args.
13373 set dummy pkg-config; ac_word=$2
13374 echo "$as_me:$LINENO: checking for $ac_word" >&5
13375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13376 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13377   echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379   case $PKG_CONFIG in
13380   [\\/]* | ?:[\\/]*)
13381   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13382   ;;
13383   *)
13384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13386 do
13387   IFS=$as_save_IFS
13388   test -z "$as_dir" && as_dir=.
13389   for ac_exec_ext in '' $ac_executable_extensions; do
13390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13393     break 2
13394   fi
13395 done
13396 done
13397
13398   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13399   ;;
13400 esac
13401 fi
13402 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13403
13404 if test -n "$PKG_CONFIG"; then
13405   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13406 echo "${ECHO_T}$PKG_CONFIG" >&6
13407 else
13408   echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13410 fi
13411
13412   fi
13413
13414   if test "$PKG_CONFIG" = "no" ; then
13415      echo "*** The pkg-config script could not be found. Make sure it is"
13416      echo "*** in your path, or set the PKG_CONFIG environment variable"
13417      echo "*** to the full path to pkg-config."
13418      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13419   else
13420      PKG_CONFIG_MIN_VERSION=0.9.0
13421      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13422         echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
13423 echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
13424
13425         if $PKG_CONFIG --exists "xulrunner-plugin" ; then
13426             echo "$as_me:$LINENO: result: yes" >&5
13427 echo "${ECHO_T}yes" >&6
13428             succeeded=yes
13429
13430             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13431 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13432             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
13433             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13434 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13435
13436             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13437 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13438             MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
13439             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13440 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13441         else
13442             MOZILLA_CFLAGS=""
13443             MOZILLA_LIBS=""
13444             ## If we have a custom action on failure, don't print errors, but
13445             ## do set a variable so people can do so.
13446             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
13447
13448         fi
13449
13450
13451
13452      else
13453         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13454         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13455      fi
13456   fi
13457
13458   if test $succeeded = yes; then
13459      MOZILLA_FOUND=yes
13460   else
13461      MOZILLA_FOUND=no
13462   fi
13463
13464     fi
13465     if test "x${MOZILLA_FOUND}" = xno; then
13466
13467   succeeded=no
13468
13469   if test -z "$PKG_CONFIG"; then
13470     # Extract the first word of "pkg-config", so it can be a program name with args.
13471 set dummy pkg-config; ac_word=$2
13472 echo "$as_me:$LINENO: checking for $ac_word" >&5
13473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   case $PKG_CONFIG in
13478   [\\/]* | ?:[\\/]*)
13479   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13480   ;;
13481   *)
13482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487   for ac_exec_ext in '' $ac_executable_extensions; do
13488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13491     break 2
13492   fi
13493 done
13494 done
13495
13496   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13497   ;;
13498 esac
13499 fi
13500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13501
13502 if test -n "$PKG_CONFIG"; then
13503   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13504 echo "${ECHO_T}$PKG_CONFIG" >&6
13505 else
13506   echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13508 fi
13509
13510   fi
13511
13512   if test "$PKG_CONFIG" = "no" ; then
13513      echo "*** The pkg-config script could not be found. Make sure it is"
13514      echo "*** in your path, or set the PKG_CONFIG environment variable"
13515      echo "*** to the full path to pkg-config."
13516      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13517   else
13518      PKG_CONFIG_MIN_VERSION=0.9.0
13519      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13520         echo "$as_me:$LINENO: checking for mozilla-firefox-plugin" >&5
13521 echo $ECHO_N "checking for mozilla-firefox-plugin... $ECHO_C" >&6
13522
13523         if $PKG_CONFIG --exists "mozilla-firefox-plugin" ; then
13524             echo "$as_me:$LINENO: result: yes" >&5
13525 echo "${ECHO_T}yes" >&6
13526             succeeded=yes
13527
13528             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13529 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13530             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin"`
13531             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13532 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13533
13534             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13535 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13536             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin"`
13537             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13538 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13539         else
13540             MOZILLA_CFLAGS=""
13541             MOZILLA_LIBS=""
13542             ## If we have a custom action on failure, don't print errors, but
13543             ## do set a variable so people can do so.
13544             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin"`
13545
13546         fi
13547
13548
13549
13550      else
13551         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13552         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13553      fi
13554   fi
13555
13556   if test $succeeded = yes; then
13557      MOZILLA_FOUND=yes
13558   else
13559      MOZILLA_FOUND=no
13560   fi
13561
13562     fi
13563     if test "x${MOZILLA_FOUND}" = xno; then
13564
13565   succeeded=no
13566
13567   if test -z "$PKG_CONFIG"; then
13568     # Extract the first word of "pkg-config", so it can be a program name with args.
13569 set dummy pkg-config; ac_word=$2
13570 echo "$as_me:$LINENO: checking for $ac_word" >&5
13571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13572 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   case $PKG_CONFIG in
13576   [\\/]* | ?:[\\/]*)
13577   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13578   ;;
13579   *)
13580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583   IFS=$as_save_IFS
13584   test -z "$as_dir" && as_dir=.
13585   for ac_exec_ext in '' $ac_executable_extensions; do
13586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13589     break 2
13590   fi
13591 done
13592 done
13593
13594   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13595   ;;
13596 esac
13597 fi
13598 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13599
13600 if test -n "$PKG_CONFIG"; then
13601   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13602 echo "${ECHO_T}$PKG_CONFIG" >&6
13603 else
13604   echo "$as_me:$LINENO: result: no" >&5
13605 echo "${ECHO_T}no" >&6
13606 fi
13607
13608   fi
13609
13610   if test "$PKG_CONFIG" = "no" ; then
13611      echo "*** The pkg-config script could not be found. Make sure it is"
13612      echo "*** in your path, or set the PKG_CONFIG environment variable"
13613      echo "*** to the full path to pkg-config."
13614      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13615   else
13616      PKG_CONFIG_MIN_VERSION=0.9.0
13617      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13618         echo "$as_me:$LINENO: checking for seamonkey-plugin" >&5
13619 echo $ECHO_N "checking for seamonkey-plugin... $ECHO_C" >&6
13620
13621         if $PKG_CONFIG --exists "seamonkey-plugin" ; then
13622             echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13624             succeeded=yes
13625
13626             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13627 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13628             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin"`
13629             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13630 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13631
13632             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13633 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13634             MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin"`
13635             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13636 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13637         else
13638             MOZILLA_CFLAGS=""
13639             MOZILLA_LIBS=""
13640             ## If we have a custom action on failure, don't print errors, but
13641             ## do set a variable so people can do so.
13642             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin"`
13643
13644         fi
13645
13646
13647
13648      else
13649         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13650         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13651      fi
13652   fi
13653
13654   if test $succeeded = yes; then
13655      MOZILLA_FOUND=yes
13656   else
13657      MOZILLA_FOUND=no
13658   fi
13659
13660     fi
13661
13662   succeeded=no
13663
13664   if test -z "$PKG_CONFIG"; then
13665     # Extract the first word of "pkg-config", so it can be a program name with args.
13666 set dummy pkg-config; ac_word=$2
13667 echo "$as_me:$LINENO: checking for $ac_word" >&5
13668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   case $PKG_CONFIG in
13673   [\\/]* | ?:[\\/]*)
13674   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13675   ;;
13676   *)
13677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680   IFS=$as_save_IFS
13681   test -z "$as_dir" && as_dir=.
13682   for ac_exec_ext in '' $ac_executable_extensions; do
13683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686     break 2
13687   fi
13688 done
13689 done
13690
13691   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13692   ;;
13693 esac
13694 fi
13695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13696
13697 if test -n "$PKG_CONFIG"; then
13698   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13699 echo "${ECHO_T}$PKG_CONFIG" >&6
13700 else
13701   echo "$as_me:$LINENO: result: no" >&5
13702 echo "${ECHO_T}no" >&6
13703 fi
13704
13705   fi
13706
13707   if test "$PKG_CONFIG" = "no" ; then
13708      echo "*** The pkg-config script could not be found. Make sure it is"
13709      echo "*** in your path, or set the PKG_CONFIG environment variable"
13710      echo "*** to the full path to pkg-config."
13711      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13712   else
13713      PKG_CONFIG_MIN_VERSION=0.9.0
13714      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13715         echo "$as_me:$LINENO: checking for glib-2.0" >&5
13716 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
13717
13718         if $PKG_CONFIG --exists "glib-2.0" ; then
13719             echo "$as_me:$LINENO: result: yes" >&5
13720 echo "${ECHO_T}yes" >&6
13721             succeeded=yes
13722
13723             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13724 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13725             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
13726             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13727 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13728
13729             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13730 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13731             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
13732             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13733 echo "${ECHO_T}$GLIB_LIBS" >&6
13734         else
13735             GLIB_CFLAGS=""
13736             GLIB_LIBS=""
13737             ## If we have a custom action on failure, don't print errors, but
13738             ## do set a variable so people can do so.
13739             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
13740             echo $GLIB_PKG_ERRORS
13741         fi
13742
13743
13744
13745      else
13746         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13747         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13748      fi
13749   fi
13750
13751   if test $succeeded = yes; then
13752      :
13753   else
13754      { { 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
13755 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;}
13756    { (exit 1); exit 1; }; }
13757   fi
13758
13759
13760
13761
13762
13763
13764
13765     PLUGIN_DIR=$HOME/.mozilla/plugins/
13766
13767   fi
13768 fi
13769
13770
13771
13772 # Check whether --with-javah or --without-javah was given.
13773 if test "${with_javah+set}" = set; then
13774   withval="$with_javah"
13775
13776     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13777
13778   if test "x${withval}" != x; then
13779     if test -f "${withval}"; then
13780       USER_JAVAH="${withval}"
13781     else
13782       # Extract the first word of ""${withval}"", so it can be a program name with args.
13783 set dummy "${withval}"; 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_USER_JAVAH+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   case $USER_JAVAH in
13790   [\\/]* | ?:[\\/]*)
13791   ac_cv_path_USER_JAVAH="$USER_JAVAH" # 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_USER_JAVAH="$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 USER_JAVAH=$ac_cv_path_USER_JAVAH
13812
13813 if test -n "$USER_JAVAH"; then
13814   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13815 echo "${ECHO_T}$USER_JAVAH" >&6
13816 else
13817   echo "$as_me:$LINENO: result: no" >&5
13818 echo "${ECHO_T}no" >&6
13819 fi
13820
13821     fi
13822   else
13823     for javah_name in gcjh javah; do
13824       # Extract the first word of ""$javah_name"", so it can be a program name with args.
13825 set dummy "$javah_name"; ac_word=$2
13826 echo "$as_me:$LINENO: checking for $ac_word" >&5
13827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13828 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   case $USER_JAVAH in
13832   [\\/]* | ?:[\\/]*)
13833   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13834   ;;
13835   *)
13836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13838 do
13839   IFS=$as_save_IFS
13840   test -z "$as_dir" && as_dir=.
13841   for ac_exec_ext in '' $ac_executable_extensions; do
13842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845     break 2
13846   fi
13847 done
13848 done
13849
13850   ;;
13851 esac
13852 fi
13853 USER_JAVAH=$ac_cv_path_USER_JAVAH
13854
13855 if test -n "$USER_JAVAH"; then
13856   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13857 echo "${ECHO_T}$USER_JAVAH" >&6
13858 else
13859   echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6
13861 fi
13862
13863       if test "x${USER_JAVAH}" != x; then
13864         break
13865       fi
13866     done
13867   fi
13868
13869 #  if test "x${USER_JAVAH}" = x; then
13870 #    echo "configure: cannot find javah" 1>&2
13871 #    exit 1
13872 #  fi
13873
13874     else
13875
13876   if test "x" != x; then
13877     if test -f ""; then
13878       USER_JAVAH=""
13879     else
13880       # Extract the first word of """", so it can be a program name with args.
13881 set dummy ""; ac_word=$2
13882 echo "$as_me:$LINENO: checking for $ac_word" >&5
13883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13884 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   case $USER_JAVAH in
13888   [\\/]* | ?:[\\/]*)
13889   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13890   ;;
13891   *)
13892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH
13894 do
13895   IFS=$as_save_IFS
13896   test -z "$as_dir" && as_dir=.
13897   for ac_exec_ext in '' $ac_executable_extensions; do
13898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13899     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13901     break 2
13902   fi
13903 done
13904 done
13905
13906   ;;
13907 esac
13908 fi
13909 USER_JAVAH=$ac_cv_path_USER_JAVAH
13910
13911 if test -n "$USER_JAVAH"; then
13912   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13913 echo "${ECHO_T}$USER_JAVAH" >&6
13914 else
13915   echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6
13917 fi
13918
13919     fi
13920   else
13921     for javah_name in gcjh javah; do
13922       # Extract the first word of ""$javah_name"", so it can be a program name with args.
13923 set dummy "$javah_name"; ac_word=$2
13924 echo "$as_me:$LINENO: checking for $ac_word" >&5
13925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13926 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   case $USER_JAVAH in
13930   [\\/]* | ?:[\\/]*)
13931   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13932   ;;
13933   *)
13934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937   IFS=$as_save_IFS
13938   test -z "$as_dir" && as_dir=.
13939   for ac_exec_ext in '' $ac_executable_extensions; do
13940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13943     break 2
13944   fi
13945 done
13946 done
13947
13948   ;;
13949 esac
13950 fi
13951 USER_JAVAH=$ac_cv_path_USER_JAVAH
13952
13953 if test -n "$USER_JAVAH"; then
13954   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13955 echo "${ECHO_T}$USER_JAVAH" >&6
13956 else
13957   echo "$as_me:$LINENO: result: no" >&5
13958 echo "${ECHO_T}no" >&6
13959 fi
13960
13961       if test "x${USER_JAVAH}" != x; then
13962         break
13963       fi
13964     done
13965   fi
13966
13967 #  if test "x${USER_JAVAH}" = x; then
13968 #    echo "configure: cannot find javah" 1>&2
13969 #    exit 1
13970 #  fi
13971
13972     fi
13973
13974 else
13975
13976
13977   if test "x" != x; then
13978     if test -f ""; then
13979       USER_JAVAH=""
13980     else
13981       # Extract the first word of """", so it can be a program name with args.
13982 set dummy ""; ac_word=$2
13983 echo "$as_me:$LINENO: checking for $ac_word" >&5
13984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13985 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   case $USER_JAVAH in
13989   [\\/]* | ?:[\\/]*)
13990   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13991   ;;
13992   *)
13993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996   IFS=$as_save_IFS
13997   test -z "$as_dir" && as_dir=.
13998   for ac_exec_ext in '' $ac_executable_extensions; do
13999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14000     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
14001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002     break 2
14003   fi
14004 done
14005 done
14006
14007   ;;
14008 esac
14009 fi
14010 USER_JAVAH=$ac_cv_path_USER_JAVAH
14011
14012 if test -n "$USER_JAVAH"; then
14013   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
14014 echo "${ECHO_T}$USER_JAVAH" >&6
14015 else
14016   echo "$as_me:$LINENO: result: no" >&5
14017 echo "${ECHO_T}no" >&6
14018 fi
14019
14020     fi
14021   else
14022     for javah_name in gcjh javah; do
14023       # Extract the first word of ""$javah_name"", so it can be a program name with args.
14024 set dummy "$javah_name"; ac_word=$2
14025 echo "$as_me:$LINENO: checking for $ac_word" >&5
14026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14027 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   case $USER_JAVAH in
14031   [\\/]* | ?:[\\/]*)
14032   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
14033   ;;
14034   *)
14035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14037 do
14038   IFS=$as_save_IFS
14039   test -z "$as_dir" && as_dir=.
14040   for ac_exec_ext in '' $ac_executable_extensions; do
14041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14042     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
14043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14044     break 2
14045   fi
14046 done
14047 done
14048
14049   ;;
14050 esac
14051 fi
14052 USER_JAVAH=$ac_cv_path_USER_JAVAH
14053
14054 if test -n "$USER_JAVAH"; then
14055   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
14056 echo "${ECHO_T}$USER_JAVAH" >&6
14057 else
14058   echo "$as_me:$LINENO: result: no" >&5
14059 echo "${ECHO_T}no" >&6
14060 fi
14061
14062       if test "x${USER_JAVAH}" != x; then
14063         break
14064       fi
14065     done
14066   fi
14067
14068 #  if test "x${USER_JAVAH}" = x; then
14069 #    echo "configure: cannot find javah" 1>&2
14070 #    exit 1
14071 #  fi
14072
14073
14074 fi;
14075
14076
14077 if test "x${USER_JAVAH}" != x; then
14078   USER_SPECIFIED_JAVAH_TRUE=
14079   USER_SPECIFIED_JAVAH_FALSE='#'
14080 else
14081   USER_SPECIFIED_JAVAH_TRUE='#'
14082   USER_SPECIFIED_JAVAH_FALSE=
14083 fi
14084
14085
14086
14087
14088 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
14089
14090
14091 if test "x${COMPILE_JNI}" = xyes; then
14092   echo "$as_me:$LINENO: checking jni_md.h support" >&5
14093 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
14094   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
14095     echo "$as_me:$LINENO: result: yes" >&5
14096 echo "${ECHO_T}yes" >&6
14097   else
14098     target_cpu=x86
14099     target_os=linux-gnu
14100     { echo "$as_me:$LINENO: WARNING: no" >&5
14101 echo "$as_me: WARNING: no" >&2;}
14102   fi
14103   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
14104   ac_dests="include/jni_md.h"
14105   while test -n "$ac_sources"; do
14106     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14107     set $ac_sources; ac_source=$1; shift; ac_sources=$*
14108     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14109   done
14110             ac_config_links="$ac_config_links $ac_config_links_1"
14111
14112 fi
14113
14114
14115   user_specified_javac=
14116
14117
14118
14119 # Check whether --with-gcj or --without-gcj was given.
14120 if test "${with_gcj+set}" = set; then
14121   withval="$with_gcj"
14122
14123     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14124
14125   if test "x${withval}" != x; then
14126     if test -f "${withval}"; then
14127       GCJ="${withval}"
14128     else
14129       # Extract the first word of ""${withval}"", so it can be a program name with args.
14130 set dummy "${withval}"; ac_word=$2
14131 echo "$as_me:$LINENO: checking for $ac_word" >&5
14132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14133 if test "${ac_cv_path_GCJ+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   case $GCJ in
14137   [\\/]* | ?:[\\/]*)
14138   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14139   ;;
14140   *)
14141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146   for ac_exec_ext in '' $ac_executable_extensions; do
14147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150     break 2
14151   fi
14152 done
14153 done
14154
14155   ;;
14156 esac
14157 fi
14158 GCJ=$ac_cv_path_GCJ
14159
14160 if test -n "$GCJ"; then
14161   echo "$as_me:$LINENO: result: $GCJ" >&5
14162 echo "${ECHO_T}$GCJ" >&6
14163 else
14164   echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6
14166 fi
14167
14168     fi
14169   else
14170     # Extract the first word of ""gcj"", so it can be a program name with args.
14171 set dummy "gcj"; ac_word=$2
14172 echo "$as_me:$LINENO: checking for $ac_word" >&5
14173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14174 if test "${ac_cv_path_GCJ+set}" = set; then
14175   echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
14177   case $GCJ in
14178   [\\/]* | ?:[\\/]*)
14179   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14180   ;;
14181   *)
14182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185   IFS=$as_save_IFS
14186   test -z "$as_dir" && as_dir=.
14187   for ac_exec_ext in '' $ac_executable_extensions; do
14188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191     break 2
14192   fi
14193 done
14194 done
14195
14196   ;;
14197 esac
14198 fi
14199 GCJ=$ac_cv_path_GCJ
14200
14201 if test -n "$GCJ"; then
14202   echo "$as_me:$LINENO: result: $GCJ" >&5
14203 echo "${ECHO_T}$GCJ" >&6
14204 else
14205   echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6
14207 fi
14208
14209   fi
14210     if test "x$GCJ" != x; then
14211     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14212 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14213     ac_ext=c
14214 ac_cpp='$CPP $CPPFLAGS'
14215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14218
14219     cat >conftest.$ac_ext <<_ACEOF
14220 #if __GNUC__ <= 3
14221     #error GCJ 4.0.0 or higher is required
14222     #endif
14223
14224 _ACEOF
14225     $GCJ -E conftest.c > /dev/null
14226     gcj_4_result=$?
14227     if test "x$gcj_4_result" = "x0"; then
14228       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14229 echo "${ECHO_T}4.0 or higher found" >&6
14230     else
14231       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14232 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14233     fi
14234     ac_ext=c
14235 ac_cpp='$CPP $CPPFLAGS'
14236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14239
14240   fi
14241
14242     else
14243       if test "x${withval}" != xno; then
14244
14245   if test "x" != x; then
14246     if test -f ""; then
14247       GCJ=""
14248     else
14249       # Extract the first word of """", so it can be a program name with args.
14250 set dummy ""; ac_word=$2
14251 echo "$as_me:$LINENO: checking for $ac_word" >&5
14252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14253 if test "${ac_cv_path_GCJ+set}" = set; then
14254   echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256   case $GCJ in
14257   [\\/]* | ?:[\\/]*)
14258   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14259   ;;
14260   *)
14261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14263 do
14264   IFS=$as_save_IFS
14265   test -z "$as_dir" && as_dir=.
14266   for ac_exec_ext in '' $ac_executable_extensions; do
14267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270     break 2
14271   fi
14272 done
14273 done
14274
14275   ;;
14276 esac
14277 fi
14278 GCJ=$ac_cv_path_GCJ
14279
14280 if test -n "$GCJ"; then
14281   echo "$as_me:$LINENO: result: $GCJ" >&5
14282 echo "${ECHO_T}$GCJ" >&6
14283 else
14284   echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6
14286 fi
14287
14288     fi
14289   else
14290     # Extract the first word of ""gcj"", so it can be a program name with args.
14291 set dummy "gcj"; ac_word=$2
14292 echo "$as_me:$LINENO: checking for $ac_word" >&5
14293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14294 if test "${ac_cv_path_GCJ+set}" = set; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   case $GCJ in
14298   [\\/]* | ?:[\\/]*)
14299   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14300   ;;
14301   *)
14302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305   IFS=$as_save_IFS
14306   test -z "$as_dir" && as_dir=.
14307   for ac_exec_ext in '' $ac_executable_extensions; do
14308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14311     break 2
14312   fi
14313 done
14314 done
14315
14316   ;;
14317 esac
14318 fi
14319 GCJ=$ac_cv_path_GCJ
14320
14321 if test -n "$GCJ"; then
14322   echo "$as_me:$LINENO: result: $GCJ" >&5
14323 echo "${ECHO_T}$GCJ" >&6
14324 else
14325   echo "$as_me:$LINENO: result: no" >&5
14326 echo "${ECHO_T}no" >&6
14327 fi
14328
14329   fi
14330     if test "x$GCJ" != x; then
14331     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14332 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14333     ac_ext=c
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
14339     cat >conftest.$ac_ext <<_ACEOF
14340 #if __GNUC__ <= 3
14341     #error GCJ 4.0.0 or higher is required
14342     #endif
14343
14344 _ACEOF
14345     $GCJ -E conftest.c > /dev/null
14346     gcj_4_result=$?
14347     if test "x$gcj_4_result" = "x0"; then
14348       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14349 echo "${ECHO_T}4.0 or higher found" >&6
14350     else
14351       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14352 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14353     fi
14354     ac_ext=c
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360   fi
14361
14362       fi
14363     fi
14364     user_specified_javac=gcj
14365
14366 else
14367
14368
14369   if test "x" != x; then
14370     if test -f ""; then
14371       GCJ=""
14372     else
14373       # Extract the first word of """", so it can be a program name with args.
14374 set dummy ""; ac_word=$2
14375 echo "$as_me:$LINENO: checking for $ac_word" >&5
14376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14377 if test "${ac_cv_path_GCJ+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   case $GCJ in
14381   [\\/]* | ?:[\\/]*)
14382   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14383   ;;
14384   *)
14385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14387 do
14388   IFS=$as_save_IFS
14389   test -z "$as_dir" && as_dir=.
14390   for ac_exec_ext in '' $ac_executable_extensions; do
14391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14392     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14394     break 2
14395   fi
14396 done
14397 done
14398
14399   ;;
14400 esac
14401 fi
14402 GCJ=$ac_cv_path_GCJ
14403
14404 if test -n "$GCJ"; then
14405   echo "$as_me:$LINENO: result: $GCJ" >&5
14406 echo "${ECHO_T}$GCJ" >&6
14407 else
14408   echo "$as_me:$LINENO: result: no" >&5
14409 echo "${ECHO_T}no" >&6
14410 fi
14411
14412     fi
14413   else
14414     # Extract the first word of ""gcj"", so it can be a program name with args.
14415 set dummy "gcj"; ac_word=$2
14416 echo "$as_me:$LINENO: checking for $ac_word" >&5
14417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14418 if test "${ac_cv_path_GCJ+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   case $GCJ in
14422   [\\/]* | ?:[\\/]*)
14423   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14424   ;;
14425   *)
14426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14428 do
14429   IFS=$as_save_IFS
14430   test -z "$as_dir" && as_dir=.
14431   for ac_exec_ext in '' $ac_executable_extensions; do
14432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14435     break 2
14436   fi
14437 done
14438 done
14439
14440   ;;
14441 esac
14442 fi
14443 GCJ=$ac_cv_path_GCJ
14444
14445 if test -n "$GCJ"; then
14446   echo "$as_me:$LINENO: result: $GCJ" >&5
14447 echo "${ECHO_T}$GCJ" >&6
14448 else
14449   echo "$as_me:$LINENO: result: no" >&5
14450 echo "${ECHO_T}no" >&6
14451 fi
14452
14453   fi
14454     if test "x$GCJ" != x; then
14455     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14456 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14457     ac_ext=c
14458 ac_cpp='$CPP $CPPFLAGS'
14459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14462
14463     cat >conftest.$ac_ext <<_ACEOF
14464 #if __GNUC__ <= 3
14465     #error GCJ 4.0.0 or higher is required
14466     #endif
14467
14468 _ACEOF
14469     $GCJ -E conftest.c > /dev/null
14470     gcj_4_result=$?
14471     if test "x$gcj_4_result" = "x0"; then
14472       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14473 echo "${ECHO_T}4.0 or higher found" >&6
14474     else
14475       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14476 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14477     fi
14478     ac_ext=c
14479 ac_cpp='$CPP $CPPFLAGS'
14480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14483
14484   fi
14485
14486
14487 fi;
14488
14489
14490
14491
14492 # Check whether --with-jikes or --without-jikes was given.
14493 if test "${with_jikes+set}" = set; then
14494   withval="$with_jikes"
14495
14496     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14497
14498   if test "x${withval}" != x; then
14499     if test -f "${withval}"; then
14500       JIKES="${withval}"
14501     else
14502       # Extract the first word of ""${withval}"", so it can be a program name with args.
14503 set dummy "${withval}"; ac_word=$2
14504 echo "$as_me:$LINENO: checking for $ac_word" >&5
14505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14506 if test "${ac_cv_path_JIKES+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   case $JIKES in
14510   [\\/]* | ?:[\\/]*)
14511   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14512   ;;
14513   *)
14514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14516 do
14517   IFS=$as_save_IFS
14518   test -z "$as_dir" && as_dir=.
14519   for ac_exec_ext in '' $ac_executable_extensions; do
14520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14521     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523     break 2
14524   fi
14525 done
14526 done
14527
14528   ;;
14529 esac
14530 fi
14531 JIKES=$ac_cv_path_JIKES
14532
14533 if test -n "$JIKES"; then
14534   echo "$as_me:$LINENO: result: $JIKES" >&5
14535 echo "${ECHO_T}$JIKES" >&6
14536 else
14537   echo "$as_me:$LINENO: result: no" >&5
14538 echo "${ECHO_T}no" >&6
14539 fi
14540
14541     fi
14542   else
14543     # Extract the first word of ""jikes"", so it can be a program name with args.
14544 set dummy "jikes"; ac_word=$2
14545 echo "$as_me:$LINENO: checking for $ac_word" >&5
14546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14547 if test "${ac_cv_path_JIKES+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   case $JIKES in
14551   [\\/]* | ?:[\\/]*)
14552   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14553   ;;
14554   *)
14555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14557 do
14558   IFS=$as_save_IFS
14559   test -z "$as_dir" && as_dir=.
14560   for ac_exec_ext in '' $ac_executable_extensions; do
14561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14562     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14564     break 2
14565   fi
14566 done
14567 done
14568
14569   ;;
14570 esac
14571 fi
14572 JIKES=$ac_cv_path_JIKES
14573
14574 if test -n "$JIKES"; then
14575   echo "$as_me:$LINENO: result: $JIKES" >&5
14576 echo "${ECHO_T}$JIKES" >&6
14577 else
14578   echo "$as_me:$LINENO: result: no" >&5
14579 echo "${ECHO_T}no" >&6
14580 fi
14581
14582   fi
14583   if test "x$JIKES" != "x"; then
14584         echo "$as_me:$LINENO: checking jikes version" >&5
14585 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14586     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14587     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14588     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14589     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14590       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14591         JIKES=""
14592       fi
14593     fi
14594     if test "x$JIKES" != "x"; then
14595       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14596 echo "${ECHO_T}$JIKES_VERSION" >&6
14597     else
14598       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14599 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14600     fi
14601
14602     JIKESENCODING=
14603     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14604       JIKESENCODING='-encoding UTF-8'
14605     fi
14606
14607
14608     JIKESWARNINGS="+Pno-switchcheck"
14609     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14610       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14611         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14612       fi
14613     fi
14614
14615
14616   fi
14617
14618     else
14619       if test "x${withval}" != xno; then
14620
14621   if test "x" != x; then
14622     if test -f ""; then
14623       JIKES=""
14624     else
14625       # Extract the first word of """", so it can be a program name with args.
14626 set dummy ""; ac_word=$2
14627 echo "$as_me:$LINENO: checking for $ac_word" >&5
14628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14629 if test "${ac_cv_path_JIKES+set}" = set; then
14630   echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632   case $JIKES in
14633   [\\/]* | ?:[\\/]*)
14634   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14635   ;;
14636   *)
14637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638 for as_dir in $PATH
14639 do
14640   IFS=$as_save_IFS
14641   test -z "$as_dir" && as_dir=.
14642   for ac_exec_ext in '' $ac_executable_extensions; do
14643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14644     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14646     break 2
14647   fi
14648 done
14649 done
14650
14651   ;;
14652 esac
14653 fi
14654 JIKES=$ac_cv_path_JIKES
14655
14656 if test -n "$JIKES"; then
14657   echo "$as_me:$LINENO: result: $JIKES" >&5
14658 echo "${ECHO_T}$JIKES" >&6
14659 else
14660   echo "$as_me:$LINENO: result: no" >&5
14661 echo "${ECHO_T}no" >&6
14662 fi
14663
14664     fi
14665   else
14666     # Extract the first word of ""jikes"", so it can be a program name with args.
14667 set dummy "jikes"; ac_word=$2
14668 echo "$as_me:$LINENO: checking for $ac_word" >&5
14669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14670 if test "${ac_cv_path_JIKES+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   case $JIKES in
14674   [\\/]* | ?:[\\/]*)
14675   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14676   ;;
14677   *)
14678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14680 do
14681   IFS=$as_save_IFS
14682   test -z "$as_dir" && as_dir=.
14683   for ac_exec_ext in '' $ac_executable_extensions; do
14684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14687     break 2
14688   fi
14689 done
14690 done
14691
14692   ;;
14693 esac
14694 fi
14695 JIKES=$ac_cv_path_JIKES
14696
14697 if test -n "$JIKES"; then
14698   echo "$as_me:$LINENO: result: $JIKES" >&5
14699 echo "${ECHO_T}$JIKES" >&6
14700 else
14701   echo "$as_me:$LINENO: result: no" >&5
14702 echo "${ECHO_T}no" >&6
14703 fi
14704
14705   fi
14706   if test "x$JIKES" != "x"; then
14707         echo "$as_me:$LINENO: checking jikes version" >&5
14708 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14709     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14710     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14711     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14712     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14713       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14714         JIKES=""
14715       fi
14716     fi
14717     if test "x$JIKES" != "x"; then
14718       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14719 echo "${ECHO_T}$JIKES_VERSION" >&6
14720     else
14721       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14722 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14723     fi
14724
14725     JIKESENCODING=
14726     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14727       JIKESENCODING='-encoding UTF-8'
14728     fi
14729
14730
14731     JIKESWARNINGS="+Pno-switchcheck"
14732     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14733       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14734         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14735       fi
14736     fi
14737
14738
14739   fi
14740
14741       fi
14742     fi
14743     user_specified_javac=jikes
14744
14745 else
14746
14747
14748   if test "x" != x; then
14749     if test -f ""; then
14750       JIKES=""
14751     else
14752       # Extract the first word of """", so it can be a program name with args.
14753 set dummy ""; ac_word=$2
14754 echo "$as_me:$LINENO: checking for $ac_word" >&5
14755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14756 if test "${ac_cv_path_JIKES+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   case $JIKES in
14760   [\\/]* | ?:[\\/]*)
14761   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14762   ;;
14763   *)
14764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14766 do
14767   IFS=$as_save_IFS
14768   test -z "$as_dir" && as_dir=.
14769   for ac_exec_ext in '' $ac_executable_extensions; do
14770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14771     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14773     break 2
14774   fi
14775 done
14776 done
14777
14778   ;;
14779 esac
14780 fi
14781 JIKES=$ac_cv_path_JIKES
14782
14783 if test -n "$JIKES"; then
14784   echo "$as_me:$LINENO: result: $JIKES" >&5
14785 echo "${ECHO_T}$JIKES" >&6
14786 else
14787   echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6
14789 fi
14790
14791     fi
14792   else
14793     # Extract the first word of ""jikes"", so it can be a program name with args.
14794 set dummy "jikes"; ac_word=$2
14795 echo "$as_me:$LINENO: checking for $ac_word" >&5
14796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14797 if test "${ac_cv_path_JIKES+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   case $JIKES in
14801   [\\/]* | ?:[\\/]*)
14802   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14803   ;;
14804   *)
14805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14807 do
14808   IFS=$as_save_IFS
14809   test -z "$as_dir" && as_dir=.
14810   for ac_exec_ext in '' $ac_executable_extensions; do
14811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14814     break 2
14815   fi
14816 done
14817 done
14818
14819   ;;
14820 esac
14821 fi
14822 JIKES=$ac_cv_path_JIKES
14823
14824 if test -n "$JIKES"; then
14825   echo "$as_me:$LINENO: result: $JIKES" >&5
14826 echo "${ECHO_T}$JIKES" >&6
14827 else
14828   echo "$as_me:$LINENO: result: no" >&5
14829 echo "${ECHO_T}no" >&6
14830 fi
14831
14832   fi
14833   if test "x$JIKES" != "x"; then
14834         echo "$as_me:$LINENO: checking jikes version" >&5
14835 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14836     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14837     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14838     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14839     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14840       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14841         JIKES=""
14842       fi
14843     fi
14844     if test "x$JIKES" != "x"; then
14845       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14846 echo "${ECHO_T}$JIKES_VERSION" >&6
14847     else
14848       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14849 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14850     fi
14851
14852     JIKESENCODING=
14853     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14854       JIKESENCODING='-encoding UTF-8'
14855     fi
14856
14857
14858     JIKESWARNINGS="+Pno-switchcheck"
14859     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14860       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14861         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14862       fi
14863     fi
14864
14865
14866   fi
14867
14868
14869 fi;
14870
14871
14872
14873
14874 # Check whether --with-kjc or --without-kjc was given.
14875 if test "${with_kjc+set}" = set; then
14876   withval="$with_kjc"
14877
14878     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14879
14880   if test "x${withval}" != x; then
14881     if test -f "${withval}"; then
14882       KJC="${withval}"
14883     else
14884       # Extract the first word of ""${withval}"", so it can be a program name with args.
14885 set dummy "${withval}"; ac_word=$2
14886 echo "$as_me:$LINENO: checking for $ac_word" >&5
14887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14888 if test "${ac_cv_path_KJC+set}" = set; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891   case $KJC in
14892   [\\/]* | ?:[\\/]*)
14893   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14894   ;;
14895   *)
14896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14897 for as_dir in $PATH
14898 do
14899   IFS=$as_save_IFS
14900   test -z "$as_dir" && as_dir=.
14901   for ac_exec_ext in '' $ac_executable_extensions; do
14902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14903     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14905     break 2
14906   fi
14907 done
14908 done
14909
14910   ;;
14911 esac
14912 fi
14913 KJC=$ac_cv_path_KJC
14914
14915 if test -n "$KJC"; then
14916   echo "$as_me:$LINENO: result: $KJC" >&5
14917 echo "${ECHO_T}$KJC" >&6
14918 else
14919   echo "$as_me:$LINENO: result: no" >&5
14920 echo "${ECHO_T}no" >&6
14921 fi
14922
14923     fi
14924   else
14925     # Extract the first word of ""kJC"", so it can be a program name with args.
14926 set dummy "kJC"; ac_word=$2
14927 echo "$as_me:$LINENO: checking for $ac_word" >&5
14928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14929 if test "${ac_cv_path_KJC+set}" = set; then
14930   echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932   case $KJC in
14933   [\\/]* | ?:[\\/]*)
14934   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14935   ;;
14936   *)
14937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940   IFS=$as_save_IFS
14941   test -z "$as_dir" && as_dir=.
14942   for ac_exec_ext in '' $ac_executable_extensions; do
14943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14946     break 2
14947   fi
14948 done
14949 done
14950
14951   ;;
14952 esac
14953 fi
14954 KJC=$ac_cv_path_KJC
14955
14956 if test -n "$KJC"; then
14957   echo "$as_me:$LINENO: result: $KJC" >&5
14958 echo "${ECHO_T}$KJC" >&6
14959 else
14960   echo "$as_me:$LINENO: result: no" >&5
14961 echo "${ECHO_T}no" >&6
14962 fi
14963
14964   fi
14965
14966     else
14967       if test "x${withval}" != xno; then
14968
14969   if test "x" != x; then
14970     if test -f ""; then
14971       KJC=""
14972     else
14973       # Extract the first word of """", so it can be a program name with args.
14974 set dummy ""; ac_word=$2
14975 echo "$as_me:$LINENO: checking for $ac_word" >&5
14976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14977 if test "${ac_cv_path_KJC+set}" = set; then
14978   echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980   case $KJC in
14981   [\\/]* | ?:[\\/]*)
14982   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14983   ;;
14984   *)
14985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14986 for as_dir in $PATH
14987 do
14988   IFS=$as_save_IFS
14989   test -z "$as_dir" && as_dir=.
14990   for ac_exec_ext in '' $ac_executable_extensions; do
14991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14992     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14994     break 2
14995   fi
14996 done
14997 done
14998
14999   ;;
15000 esac
15001 fi
15002 KJC=$ac_cv_path_KJC
15003
15004 if test -n "$KJC"; then
15005   echo "$as_me:$LINENO: result: $KJC" >&5
15006 echo "${ECHO_T}$KJC" >&6
15007 else
15008   echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15010 fi
15011
15012     fi
15013   else
15014     # Extract the first word of ""kJC"", so it can be a program name with args.
15015 set dummy "kJC"; ac_word=$2
15016 echo "$as_me:$LINENO: checking for $ac_word" >&5
15017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15018 if test "${ac_cv_path_KJC+set}" = set; then
15019   echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021   case $KJC in
15022   [\\/]* | ?:[\\/]*)
15023   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15024   ;;
15025   *)
15026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15028 do
15029   IFS=$as_save_IFS
15030   test -z "$as_dir" && as_dir=.
15031   for ac_exec_ext in '' $ac_executable_extensions; do
15032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15035     break 2
15036   fi
15037 done
15038 done
15039
15040   ;;
15041 esac
15042 fi
15043 KJC=$ac_cv_path_KJC
15044
15045 if test -n "$KJC"; then
15046   echo "$as_me:$LINENO: result: $KJC" >&5
15047 echo "${ECHO_T}$KJC" >&6
15048 else
15049   echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15051 fi
15052
15053   fi
15054
15055       fi
15056     fi
15057     user_specified_javac=kjc
15058
15059 else
15060
15061
15062   if test "x" != x; then
15063     if test -f ""; then
15064       KJC=""
15065     else
15066       # Extract the first word of """", so it can be a program name with args.
15067 set dummy ""; ac_word=$2
15068 echo "$as_me:$LINENO: checking for $ac_word" >&5
15069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15070 if test "${ac_cv_path_KJC+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   case $KJC in
15074   [\\/]* | ?:[\\/]*)
15075   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15076   ;;
15077   *)
15078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15079 for as_dir in $PATH
15080 do
15081   IFS=$as_save_IFS
15082   test -z "$as_dir" && as_dir=.
15083   for ac_exec_ext in '' $ac_executable_extensions; do
15084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15085     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15087     break 2
15088   fi
15089 done
15090 done
15091
15092   ;;
15093 esac
15094 fi
15095 KJC=$ac_cv_path_KJC
15096
15097 if test -n "$KJC"; then
15098   echo "$as_me:$LINENO: result: $KJC" >&5
15099 echo "${ECHO_T}$KJC" >&6
15100 else
15101   echo "$as_me:$LINENO: result: no" >&5
15102 echo "${ECHO_T}no" >&6
15103 fi
15104
15105     fi
15106   else
15107     # Extract the first word of ""kJC"", so it can be a program name with args.
15108 set dummy "kJC"; ac_word=$2
15109 echo "$as_me:$LINENO: checking for $ac_word" >&5
15110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15111 if test "${ac_cv_path_KJC+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   case $KJC in
15115   [\\/]* | ?:[\\/]*)
15116   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15117   ;;
15118   *)
15119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15121 do
15122   IFS=$as_save_IFS
15123   test -z "$as_dir" && as_dir=.
15124   for ac_exec_ext in '' $ac_executable_extensions; do
15125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15128     break 2
15129   fi
15130 done
15131 done
15132
15133   ;;
15134 esac
15135 fi
15136 KJC=$ac_cv_path_KJC
15137
15138 if test -n "$KJC"; then
15139   echo "$as_me:$LINENO: result: $KJC" >&5
15140 echo "${ECHO_T}$KJC" >&6
15141 else
15142   echo "$as_me:$LINENO: result: no" >&5
15143 echo "${ECHO_T}no" >&6
15144 fi
15145
15146   fi
15147
15148
15149 fi;
15150
15151
15152
15153
15154 # Check whether --with-gcjx or --without-gcjx was given.
15155 if test "${with_gcjx+set}" = set; then
15156   withval="$with_gcjx"
15157
15158     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
15159
15160   if test "x${withval}" != x; then
15161     if test -f "${withval}"; then
15162       GCJX="${withval}"
15163     else
15164       # Extract the first word of ""${withval}"", so it can be a program name with args.
15165 set dummy "${withval}"; ac_word=$2
15166 echo "$as_me:$LINENO: checking for $ac_word" >&5
15167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15168 if test "${ac_cv_path_GCJX+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   case $GCJX in
15172   [\\/]* | ?:[\\/]*)
15173   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15174   ;;
15175   *)
15176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177 for as_dir in $PATH
15178 do
15179   IFS=$as_save_IFS
15180   test -z "$as_dir" && as_dir=.
15181   for ac_exec_ext in '' $ac_executable_extensions; do
15182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15183     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15185     break 2
15186   fi
15187 done
15188 done
15189
15190   ;;
15191 esac
15192 fi
15193 GCJX=$ac_cv_path_GCJX
15194
15195 if test -n "$GCJX"; then
15196   echo "$as_me:$LINENO: result: $GCJX" >&5
15197 echo "${ECHO_T}$GCJX" >&6
15198 else
15199   echo "$as_me:$LINENO: result: no" >&5
15200 echo "${ECHO_T}no" >&6
15201 fi
15202
15203     fi
15204   else
15205     # Extract the first word of ""gcjx"", so it can be a program name with args.
15206 set dummy "gcjx"; ac_word=$2
15207 echo "$as_me:$LINENO: checking for $ac_word" >&5
15208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15209 if test "${ac_cv_path_GCJX+set}" = set; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   case $GCJX in
15213   [\\/]* | ?:[\\/]*)
15214   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15215   ;;
15216   *)
15217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $PATH
15219 do
15220   IFS=$as_save_IFS
15221   test -z "$as_dir" && as_dir=.
15222   for ac_exec_ext in '' $ac_executable_extensions; do
15223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15226     break 2
15227   fi
15228 done
15229 done
15230
15231   ;;
15232 esac
15233 fi
15234 GCJX=$ac_cv_path_GCJX
15235
15236 if test -n "$GCJX"; then
15237   echo "$as_me:$LINENO: result: $GCJX" >&5
15238 echo "${ECHO_T}$GCJX" >&6
15239 else
15240   echo "$as_me:$LINENO: result: no" >&5
15241 echo "${ECHO_T}no" >&6
15242 fi
15243
15244   fi
15245
15246     else
15247       if test "x${withval}" != xno; then
15248
15249   if test "x" != x; then
15250     if test -f ""; then
15251       GCJX=""
15252     else
15253       # Extract the first word of """", so it can be a program name with args.
15254 set dummy ""; ac_word=$2
15255 echo "$as_me:$LINENO: checking for $ac_word" >&5
15256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15257 if test "${ac_cv_path_GCJX+set}" = set; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   case $GCJX in
15261   [\\/]* | ?:[\\/]*)
15262   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15263   ;;
15264   *)
15265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15266 for as_dir in $PATH
15267 do
15268   IFS=$as_save_IFS
15269   test -z "$as_dir" && as_dir=.
15270   for ac_exec_ext in '' $ac_executable_extensions; do
15271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15272     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15274     break 2
15275   fi
15276 done
15277 done
15278
15279   ;;
15280 esac
15281 fi
15282 GCJX=$ac_cv_path_GCJX
15283
15284 if test -n "$GCJX"; then
15285   echo "$as_me:$LINENO: result: $GCJX" >&5
15286 echo "${ECHO_T}$GCJX" >&6
15287 else
15288   echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6
15290 fi
15291
15292     fi
15293   else
15294     # Extract the first word of ""gcjx"", so it can be a program name with args.
15295 set dummy "gcjx"; ac_word=$2
15296 echo "$as_me:$LINENO: checking for $ac_word" >&5
15297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15298 if test "${ac_cv_path_GCJX+set}" = set; then
15299   echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301   case $GCJX in
15302   [\\/]* | ?:[\\/]*)
15303   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15304   ;;
15305   *)
15306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15307 for as_dir in $PATH
15308 do
15309   IFS=$as_save_IFS
15310   test -z "$as_dir" && as_dir=.
15311   for ac_exec_ext in '' $ac_executable_extensions; do
15312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15313     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15315     break 2
15316   fi
15317 done
15318 done
15319
15320   ;;
15321 esac
15322 fi
15323 GCJX=$ac_cv_path_GCJX
15324
15325 if test -n "$GCJX"; then
15326   echo "$as_me:$LINENO: result: $GCJX" >&5
15327 echo "${ECHO_T}$GCJX" >&6
15328 else
15329   echo "$as_me:$LINENO: result: no" >&5
15330 echo "${ECHO_T}no" >&6
15331 fi
15332
15333   fi
15334
15335       fi
15336     fi
15337     user_specified_javac=gcjx
15338
15339 else
15340
15341
15342   if test "x" != x; then
15343     if test -f ""; then
15344       GCJX=""
15345     else
15346       # Extract the first word of """", so it can be a program name with args.
15347 set dummy ""; ac_word=$2
15348 echo "$as_me:$LINENO: checking for $ac_word" >&5
15349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350 if test "${ac_cv_path_GCJX+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353   case $GCJX in
15354   [\\/]* | ?:[\\/]*)
15355   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15356   ;;
15357   *)
15358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15359 for as_dir in $PATH
15360 do
15361   IFS=$as_save_IFS
15362   test -z "$as_dir" && as_dir=.
15363   for ac_exec_ext in '' $ac_executable_extensions; do
15364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15365     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15367     break 2
15368   fi
15369 done
15370 done
15371
15372   ;;
15373 esac
15374 fi
15375 GCJX=$ac_cv_path_GCJX
15376
15377 if test -n "$GCJX"; then
15378   echo "$as_me:$LINENO: result: $GCJX" >&5
15379 echo "${ECHO_T}$GCJX" >&6
15380 else
15381   echo "$as_me:$LINENO: result: no" >&5
15382 echo "${ECHO_T}no" >&6
15383 fi
15384
15385     fi
15386   else
15387     # Extract the first word of ""gcjx"", so it can be a program name with args.
15388 set dummy "gcjx"; ac_word=$2
15389 echo "$as_me:$LINENO: checking for $ac_word" >&5
15390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15391 if test "${ac_cv_path_GCJX+set}" = set; then
15392   echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394   case $GCJX in
15395   [\\/]* | ?:[\\/]*)
15396   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15397   ;;
15398   *)
15399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15401 do
15402   IFS=$as_save_IFS
15403   test -z "$as_dir" && as_dir=.
15404   for ac_exec_ext in '' $ac_executable_extensions; do
15405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15408     break 2
15409   fi
15410 done
15411 done
15412
15413   ;;
15414 esac
15415 fi
15416 GCJX=$ac_cv_path_GCJX
15417
15418 if test -n "$GCJX"; then
15419   echo "$as_me:$LINENO: result: $GCJX" >&5
15420 echo "${ECHO_T}$GCJX" >&6
15421 else
15422   echo "$as_me:$LINENO: result: no" >&5
15423 echo "${ECHO_T}no" >&6
15424 fi
15425
15426   fi
15427
15428
15429 fi;
15430
15431
15432
15433
15434 # Check whether --with-ecj or --without-ecj was given.
15435 if test "${with_ecj+set}" = set; then
15436   withval="$with_ecj"
15437
15438     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
15439
15440   if test "x${withval}" != x; then
15441     if test -f "${withval}"; then
15442       ECJ="${withval}"
15443     else
15444       # Extract the first word of ""${withval}"", so it can be a program name with args.
15445 set dummy "${withval}"; ac_word=$2
15446 echo "$as_me:$LINENO: checking for $ac_word" >&5
15447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15448 if test "${ac_cv_path_ECJ+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   case $ECJ in
15452   [\\/]* | ?:[\\/]*)
15453   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15454   ;;
15455   *)
15456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457 for as_dir in $PATH
15458 do
15459   IFS=$as_save_IFS
15460   test -z "$as_dir" && as_dir=.
15461   for ac_exec_ext in '' $ac_executable_extensions; do
15462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15463     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15465     break 2
15466   fi
15467 done
15468 done
15469
15470   ;;
15471 esac
15472 fi
15473 ECJ=$ac_cv_path_ECJ
15474
15475 if test -n "$ECJ"; then
15476   echo "$as_me:$LINENO: result: $ECJ" >&5
15477 echo "${ECHO_T}$ECJ" >&6
15478 else
15479   echo "$as_me:$LINENO: result: no" >&5
15480 echo "${ECHO_T}no" >&6
15481 fi
15482
15483     fi
15484   else
15485     # Extract the first word of ""ecj"", so it can be a program name with args.
15486 set dummy "ecj"; ac_word=$2
15487 echo "$as_me:$LINENO: checking for $ac_word" >&5
15488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15489 if test "${ac_cv_path_ECJ+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   case $ECJ in
15493   [\\/]* | ?:[\\/]*)
15494   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15495   ;;
15496   *)
15497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15499 do
15500   IFS=$as_save_IFS
15501   test -z "$as_dir" && as_dir=.
15502   for ac_exec_ext in '' $ac_executable_extensions; do
15503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15506     break 2
15507   fi
15508 done
15509 done
15510
15511   ;;
15512 esac
15513 fi
15514 ECJ=$ac_cv_path_ECJ
15515
15516 if test -n "$ECJ"; then
15517   echo "$as_me:$LINENO: result: $ECJ" >&5
15518 echo "${ECHO_T}$ECJ" >&6
15519 else
15520   echo "$as_me:$LINENO: result: no" >&5
15521 echo "${ECHO_T}no" >&6
15522 fi
15523
15524   fi
15525
15526     else
15527       if test "x${withval}" != xno; then
15528
15529   if test "x" != x; then
15530     if test -f ""; then
15531       ECJ=""
15532     else
15533       # Extract the first word of """", so it can be a program name with args.
15534 set dummy ""; ac_word=$2
15535 echo "$as_me:$LINENO: checking for $ac_word" >&5
15536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15537 if test "${ac_cv_path_ECJ+set}" = set; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   case $ECJ in
15541   [\\/]* | ?:[\\/]*)
15542   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15543   ;;
15544   *)
15545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15546 for as_dir in $PATH
15547 do
15548   IFS=$as_save_IFS
15549   test -z "$as_dir" && as_dir=.
15550   for ac_exec_ext in '' $ac_executable_extensions; do
15551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15552     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15554     break 2
15555   fi
15556 done
15557 done
15558
15559   ;;
15560 esac
15561 fi
15562 ECJ=$ac_cv_path_ECJ
15563
15564 if test -n "$ECJ"; then
15565   echo "$as_me:$LINENO: result: $ECJ" >&5
15566 echo "${ECHO_T}$ECJ" >&6
15567 else
15568   echo "$as_me:$LINENO: result: no" >&5
15569 echo "${ECHO_T}no" >&6
15570 fi
15571
15572     fi
15573   else
15574     # Extract the first word of ""ecj"", so it can be a program name with args.
15575 set dummy "ecj"; ac_word=$2
15576 echo "$as_me:$LINENO: checking for $ac_word" >&5
15577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15578 if test "${ac_cv_path_ECJ+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   case $ECJ in
15582   [\\/]* | ?:[\\/]*)
15583   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15584   ;;
15585   *)
15586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15588 do
15589   IFS=$as_save_IFS
15590   test -z "$as_dir" && as_dir=.
15591   for ac_exec_ext in '' $ac_executable_extensions; do
15592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15593     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15595     break 2
15596   fi
15597 done
15598 done
15599
15600   ;;
15601 esac
15602 fi
15603 ECJ=$ac_cv_path_ECJ
15604
15605 if test -n "$ECJ"; then
15606   echo "$as_me:$LINENO: result: $ECJ" >&5
15607 echo "${ECHO_T}$ECJ" >&6
15608 else
15609   echo "$as_me:$LINENO: result: no" >&5
15610 echo "${ECHO_T}no" >&6
15611 fi
15612
15613   fi
15614
15615       fi
15616     fi
15617     user_specified_javac=ecj
15618
15619 else
15620
15621
15622   if test "x" != x; then
15623     if test -f ""; then
15624       ECJ=""
15625     else
15626       # Extract the first word of """", so it can be a program name with args.
15627 set dummy ""; ac_word=$2
15628 echo "$as_me:$LINENO: checking for $ac_word" >&5
15629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15630 if test "${ac_cv_path_ECJ+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   case $ECJ in
15634   [\\/]* | ?:[\\/]*)
15635   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15636   ;;
15637   *)
15638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 for as_dir in $PATH
15640 do
15641   IFS=$as_save_IFS
15642   test -z "$as_dir" && as_dir=.
15643   for ac_exec_ext in '' $ac_executable_extensions; do
15644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15645     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15647     break 2
15648   fi
15649 done
15650 done
15651
15652   ;;
15653 esac
15654 fi
15655 ECJ=$ac_cv_path_ECJ
15656
15657 if test -n "$ECJ"; then
15658   echo "$as_me:$LINENO: result: $ECJ" >&5
15659 echo "${ECHO_T}$ECJ" >&6
15660 else
15661   echo "$as_me:$LINENO: result: no" >&5
15662 echo "${ECHO_T}no" >&6
15663 fi
15664
15665     fi
15666   else
15667     # Extract the first word of ""ecj"", so it can be a program name with args.
15668 set dummy "ecj"; ac_word=$2
15669 echo "$as_me:$LINENO: checking for $ac_word" >&5
15670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15671 if test "${ac_cv_path_ECJ+set}" = set; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   case $ECJ in
15675   [\\/]* | ?:[\\/]*)
15676   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15677   ;;
15678   *)
15679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15680 for as_dir in $PATH
15681 do
15682   IFS=$as_save_IFS
15683   test -z "$as_dir" && as_dir=.
15684   for ac_exec_ext in '' $ac_executable_extensions; do
15685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15686     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15688     break 2
15689   fi
15690 done
15691 done
15692
15693   ;;
15694 esac
15695 fi
15696 ECJ=$ac_cv_path_ECJ
15697
15698 if test -n "$ECJ"; then
15699   echo "$as_me:$LINENO: result: $ECJ" >&5
15700 echo "${ECHO_T}$ECJ" >&6
15701 else
15702   echo "$as_me:$LINENO: result: no" >&5
15703 echo "${ECHO_T}no" >&6
15704 fi
15705
15706   fi
15707
15708
15709 fi;
15710
15711
15712
15713   if test "x${user_specified_javac}" = x; then
15714
15715
15716 if test "x${GCJ}" != x; then
15717   FOUND_GCJ_TRUE=
15718   FOUND_GCJ_FALSE='#'
15719 else
15720   FOUND_GCJ_TRUE='#'
15721   FOUND_GCJ_FALSE=
15722 fi
15723
15724
15725
15726 if test "x${JIKES}" != x; then
15727   FOUND_JIKES_TRUE=
15728   FOUND_JIKES_FALSE='#'
15729 else
15730   FOUND_JIKES_TRUE='#'
15731   FOUND_JIKES_FALSE=
15732 fi
15733
15734
15735
15736 if test "x${ECJ}" != x; then
15737   FOUND_ECJ_TRUE=
15738   FOUND_ECJ_FALSE='#'
15739 else
15740   FOUND_ECJ_TRUE='#'
15741   FOUND_ECJ_FALSE=
15742 fi
15743
15744   else
15745
15746
15747 if test "x${user_specified_javac}" = xgcj; then
15748   FOUND_GCJ_TRUE=
15749   FOUND_GCJ_FALSE='#'
15750 else
15751   FOUND_GCJ_TRUE='#'
15752   FOUND_GCJ_FALSE=
15753 fi
15754
15755
15756
15757 if test "x${user_specified_javac}" = xjikes; then
15758   FOUND_JIKES_TRUE=
15759   FOUND_JIKES_FALSE='#'
15760 else
15761   FOUND_JIKES_TRUE='#'
15762   FOUND_JIKES_FALSE=
15763 fi
15764
15765
15766
15767 if test "x${user_specified_javac}" = xecj; then
15768   FOUND_ECJ_TRUE=
15769   FOUND_ECJ_FALSE='#'
15770 else
15771   FOUND_ECJ_TRUE='#'
15772   FOUND_ECJ_FALSE=
15773 fi
15774
15775   fi
15776
15777
15778 if test "x${user_specified_javac}" = xkjc; then
15779   FOUND_KJC_TRUE=
15780   FOUND_KJC_FALSE='#'
15781 else
15782   FOUND_KJC_TRUE='#'
15783   FOUND_KJC_FALSE=
15784 fi
15785
15786
15787
15788 if test "x${user_specified_javac}" = xgcjx; then
15789   FOUND_GCJX_TRUE=
15790   FOUND_GCJX_FALSE='#'
15791 else
15792   FOUND_GCJX_TRUE='#'
15793   FOUND_GCJX_FALSE=
15794 fi
15795
15796
15797   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
15798       { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
15799 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
15800    { (exit 1); exit 1; }; }
15801   fi
15802
15803
15804
15805
15806 # Check whether --with-classpath or --without-classpath was given.
15807 if test "${with_classpath+set}" = set; then
15808   withval="$with_classpath"
15809
15810     if test "x${withval}" = xyes; then
15811       # set user classpath to CLASSPATH from env
15812       echo "$as_me:$LINENO: checking for classlib" >&5
15813 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
15814       USER_CLASSLIB=${CLASSPATH}
15815
15816       echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
15817 echo "${ECHO_T}${USER_CLASSLIB}" >&6
15818       conditional_with_classlib=true
15819     elif test "x${withval}" != x && test "x${withval}" != xno; then
15820       # set user classpath to specified value
15821       echo "$as_me:$LINENO: checking for classlib" >&5
15822 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
15823       USER_CLASSLIB=${withval}
15824
15825       echo "$as_me:$LINENO: result: ${withval}" >&5
15826 echo "${ECHO_T}${withval}" >&6
15827       conditional_with_classlib=true
15828     fi
15829
15830 else
15831    conditional_with_classlib=false
15832 fi;
15833
15834
15835 if test "x${conditional_with_classlib}" = xtrue; then
15836   USER_SPECIFIED_CLASSLIB_TRUE=
15837   USER_SPECIFIED_CLASSLIB_FALSE='#'
15838 else
15839   USER_SPECIFIED_CLASSLIB_TRUE='#'
15840   USER_SPECIFIED_CLASSLIB_FALSE=
15841 fi
15842
15843
15844
15845 # Check whether --with-vm-classes or --without-vm-classes was given.
15846 if test "${with_vm_classes+set}" = set; then
15847   withval="$with_vm_classes"
15848   vm_classes="$with_vm_classes"
15849 else
15850   vm_classes='${top_srcdir}/vm/reference'
15851 fi;
15852
15853
15854
15855 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15856 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15857     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15858 if test "${enable_maintainer_mode+set}" = set; then
15859   enableval="$enable_maintainer_mode"
15860   USE_MAINTAINER_MODE=$enableval
15861 else
15862   USE_MAINTAINER_MODE=no
15863 fi;
15864   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
15865 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
15866
15867
15868 if test $USE_MAINTAINER_MODE = yes; then
15869   MAINTAINER_MODE_TRUE=
15870   MAINTAINER_MODE_FALSE='#'
15871 else
15872   MAINTAINER_MODE_TRUE='#'
15873   MAINTAINER_MODE_FALSE=
15874 fi
15875
15876   MAINT=$MAINTAINER_MODE_TRUE
15877
15878
15879
15880 # Check whether --enable-debug or --disable-debug was given.
15881 if test "${enable_debug+set}" = set; then
15882   enableval="$enable_debug"
15883   case "${enableval}" in
15884                 yes)
15885                 LIBDEBUG="true"
15886
15887 cat >>confdefs.h <<\_ACEOF
15888 #define DEBUG 1
15889 _ACEOF
15890
15891                 ;;
15892                 no)   LIBDEBUG="false" ;;
15893                 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
15894 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
15895    { (exit 1); exit 1; }; } ;;
15896               esac
15897 else
15898   LIBDEBUG="false"
15899 fi;
15900
15901
15902 # Check whether --enable-load-library or --disable-load-library was given.
15903 if test "${enable_load_library+set}" = set; then
15904   enableval="$enable_load_library"
15905   case "${enableval}" in
15906                 yes) INIT_LOAD_LIBRARY="true" ;;
15907                 no) INIT_LOAD_LIBRARY="false" ;;
15908                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
15909 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
15910    { (exit 1); exit 1; }; } ;;
15911               esac
15912 else
15913   INIT_LOAD_LIBRARY="true"
15914 fi;
15915
15916
15917
15918 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
15919 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
15920   enableval="$enable_java_lang_system_explicit_initialization"
15921   case "${enableval}" in
15922                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
15923                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
15924                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
15925 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
15926    { (exit 1); exit 1; }; } ;;
15927               esac
15928 else
15929   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
15930 fi;
15931
15932
15933
15934 REMOVE=""
15935
15936
15937 # Extract the first word of "mkdir", so it can be a program name with args.
15938 set dummy mkdir; ac_word=$2
15939 echo "$as_me:$LINENO: checking for $ac_word" >&5
15940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15941 if test "${ac_cv_path_MKDIR+set}" = set; then
15942   echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944   case $MKDIR in
15945   [\\/]* | ?:[\\/]*)
15946   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
15947   ;;
15948   *)
15949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15950 for as_dir in $PATH
15951 do
15952   IFS=$as_save_IFS
15953   test -z "$as_dir" && as_dir=.
15954   for ac_exec_ext in '' $ac_executable_extensions; do
15955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15956     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
15957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15958     break 2
15959   fi
15960 done
15961 done
15962
15963   ;;
15964 esac
15965 fi
15966 MKDIR=$ac_cv_path_MKDIR
15967
15968 if test -n "$MKDIR"; then
15969   echo "$as_me:$LINENO: result: $MKDIR" >&5
15970 echo "${ECHO_T}$MKDIR" >&6
15971 else
15972   echo "$as_me:$LINENO: result: no" >&5
15973 echo "${ECHO_T}no" >&6
15974 fi
15975
15976 # Extract the first word of "cp", so it can be a program name with args.
15977 set dummy cp; ac_word=$2
15978 echo "$as_me:$LINENO: checking for $ac_word" >&5
15979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15980 if test "${ac_cv_path_CP+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   case $CP in
15984   [\\/]* | ?:[\\/]*)
15985   ac_cv_path_CP="$CP" # Let the user override the test with a path.
15986   ;;
15987   *)
15988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15990 do
15991   IFS=$as_save_IFS
15992   test -z "$as_dir" && as_dir=.
15993   for ac_exec_ext in '' $ac_executable_extensions; do
15994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15995     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
15996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15997     break 2
15998   fi
15999 done
16000 done
16001
16002   ;;
16003 esac
16004 fi
16005 CP=$ac_cv_path_CP
16006
16007 if test -n "$CP"; then
16008   echo "$as_me:$LINENO: result: $CP" >&5
16009 echo "${ECHO_T}$CP" >&6
16010 else
16011   echo "$as_me:$LINENO: result: no" >&5
16012 echo "${ECHO_T}no" >&6
16013 fi
16014
16015 # Extract the first word of "date", so it can be a program name with args.
16016 set dummy date; ac_word=$2
16017 echo "$as_me:$LINENO: checking for $ac_word" >&5
16018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16019 if test "${ac_cv_path_DATE+set}" = set; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   case $DATE in
16023   [\\/]* | ?:[\\/]*)
16024   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
16025   ;;
16026   *)
16027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028 for as_dir in $PATH
16029 do
16030   IFS=$as_save_IFS
16031   test -z "$as_dir" && as_dir=.
16032   for ac_exec_ext in '' $ac_executable_extensions; do
16033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16034     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
16035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16036     break 2
16037   fi
16038 done
16039 done
16040
16041   ;;
16042 esac
16043 fi
16044 DATE=$ac_cv_path_DATE
16045
16046 if test -n "$DATE"; then
16047   echo "$as_me:$LINENO: result: $DATE" >&5
16048 echo "${ECHO_T}$DATE" >&6
16049 else
16050   echo "$as_me:$LINENO: result: no" >&5
16051 echo "${ECHO_T}no" >&6
16052 fi
16053
16054
16055 # Extract the first word of "find", so it can be a program name with args.
16056 set dummy find; ac_word=$2
16057 echo "$as_me:$LINENO: checking for $ac_word" >&5
16058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16059 if test "${ac_cv_path_FIND+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   case $FIND in
16063   [\\/]* | ?:[\\/]*)
16064   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
16065   ;;
16066   *)
16067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16068 for as_dir in $PATH
16069 do
16070   IFS=$as_save_IFS
16071   test -z "$as_dir" && as_dir=.
16072   for ac_exec_ext in '' $ac_executable_extensions; do
16073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16074     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
16075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16076     break 2
16077   fi
16078 done
16079 done
16080
16081   ;;
16082 esac
16083 fi
16084 FIND=$ac_cv_path_FIND
16085
16086 if test -n "$FIND"; then
16087   echo "$as_me:$LINENO: result: $FIND" >&5
16088 echo "${ECHO_T}$FIND" >&6
16089 else
16090   echo "$as_me:$LINENO: result: no" >&5
16091 echo "${ECHO_T}no" >&6
16092 fi
16093
16094
16095
16096   # Extract the first word of "zip", so it can be a program name with args.
16097 set dummy zip; ac_word=$2
16098 echo "$as_me:$LINENO: checking for $ac_word" >&5
16099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16100 if test "${ac_cv_path_ZIP+set}" = set; then
16101   echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103   case $ZIP in
16104   [\\/]* | ?:[\\/]*)
16105   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16106   ;;
16107   *)
16108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16110 do
16111   IFS=$as_save_IFS
16112   test -z "$as_dir" && as_dir=.
16113   for ac_exec_ext in '' $ac_executable_extensions; do
16114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16115     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16117     break 2
16118   fi
16119 done
16120 done
16121
16122   ;;
16123 esac
16124 fi
16125 ZIP=$ac_cv_path_ZIP
16126
16127 if test -n "$ZIP"; then
16128   echo "$as_me:$LINENO: result: $ZIP" >&5
16129 echo "${ECHO_T}$ZIP" >&6
16130 else
16131   echo "$as_me:$LINENO: result: no" >&5
16132 echo "${ECHO_T}no" >&6
16133 fi
16134
16135
16136 # Check whether --with-fastjar or --without-fastjar was given.
16137 if test "${with_fastjar+set}" = set; then
16138   withval="$with_fastjar"
16139
16140                 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
16141 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
16142                 FASTJAR=${withval}
16143                 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
16144 echo "${ECHO_T}${FASTJAR}" >&6
16145
16146 else
16147   # Extract the first word of "fastjar", so it can be a program name with args.
16148 set dummy fastjar; ac_word=$2
16149 echo "$as_me:$LINENO: checking for $ac_word" >&5
16150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16151 if test "${ac_cv_path_FASTJAR+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   case $FASTJAR in
16155   [\\/]* | ?:[\\/]*)
16156   ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
16157   ;;
16158   *)
16159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16160 for as_dir in $PATH
16161 do
16162   IFS=$as_save_IFS
16163   test -z "$as_dir" && as_dir=.
16164   for ac_exec_ext in '' $ac_executable_extensions; do
16165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16166     ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
16167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16168     break 2
16169   fi
16170 done
16171 done
16172
16173   ;;
16174 esac
16175 fi
16176 FASTJAR=$ac_cv_path_FASTJAR
16177
16178 if test -n "$FASTJAR"; then
16179   echo "$as_me:$LINENO: result: $FASTJAR" >&5
16180 echo "${ECHO_T}$FASTJAR" >&6
16181 else
16182   echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6
16184 fi
16185
16186 fi;
16187   if test x"${FASTJAR}" != x; then
16188     ZIP=""
16189   fi
16190
16191
16192 # Check whether --with-glibj or --without-glibj was given.
16193 if test "${with_glibj+set}" = set; then
16194   withval="$with_glibj"
16195
16196                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
16197                   install_class_files=no
16198                   build_class_files=yes
16199                   use_zip=yes
16200                 elif test "x${withval}" = xboth; then
16201                   install_class_files=yes
16202                   build_class_files=yes
16203                   use_zip=yes
16204                 elif test "x${withval}" = xflat; then
16205                   install_class_files=yes
16206                   build_class_files=yes
16207                   use_zip=no
16208                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
16209                   install_class_files=no
16210                   build_class_files=no
16211                   use_zip=no
16212                 elif test "x${withval}" = xbuild; then
16213                   install_class_files=no
16214                   build_class_files=yes
16215                   use_zip=no
16216                 else
16217                   { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
16218 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
16219    { (exit 1); exit 1; }; }
16220                 fi
16221
16222 else
16223
16224                 install_class_files=no
16225                 use_zip=yes
16226
16227 fi;
16228
16229
16230 if test "x${use_zip}" = xyes; then
16231   INSTALL_GLIBJ_ZIP_TRUE=
16232   INSTALL_GLIBJ_ZIP_FALSE='#'
16233 else
16234   INSTALL_GLIBJ_ZIP_TRUE='#'
16235   INSTALL_GLIBJ_ZIP_FALSE=
16236 fi
16237
16238
16239
16240 if test "x${install_class_files}" = xyes; then
16241   INSTALL_CLASS_FILES_TRUE=
16242   INSTALL_CLASS_FILES_FALSE='#'
16243 else
16244   INSTALL_CLASS_FILES_TRUE='#'
16245   INSTALL_CLASS_FILES_FALSE=
16246 fi
16247
16248
16249
16250 if test "x${build_class_files}" = xyes; then
16251   BUILD_CLASS_FILES_TRUE=
16252   BUILD_CLASS_FILES_FALSE='#'
16253 else
16254   BUILD_CLASS_FILES_TRUE='#'
16255   BUILD_CLASS_FILES_FALSE=
16256 fi
16257
16258
16259   # Check whether --enable-examples or --disable-examples was given.
16260 if test "${enable_examples+set}" = set; then
16261   enableval="$enable_examples"
16262   case "${enableval}" in
16263                   yes) EXAMPLESDIR="examples" ;;
16264                   no) EXAMPLESDIR="" ;;
16265                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
16266 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
16267    { (exit 1); exit 1; }; } ;;
16268                 esac
16269 else
16270   EXAMPLESDIR="examples"
16271 fi;
16272   if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
16273     EXAMPLESDIR=""
16274   fi
16275
16276
16277
16278
16279
16280 # Check whether --with-gjdoc or --without-gjdoc was given.
16281 if test "${with_gjdoc+set}" = set; then
16282   withval="$with_gjdoc"
16283   if test "x${withval}" = xno; then
16284                  WITH_GJDOC=no;
16285                elif test "x${withval}" = xyes -o "x{withval}" = x; then
16286                  WITH_GJDOC=yes;
16287                  # Extract the first word of "gjdoc", so it can be a program name with args.
16288 set dummy gjdoc; ac_word=$2
16289 echo "$as_me:$LINENO: checking for $ac_word" >&5
16290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16291 if test "${ac_cv_path_GJDOC+set}" = set; then
16292   echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294   case $GJDOC in
16295   [\\/]* | ?:[\\/]*)
16296   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
16297   ;;
16298   *)
16299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $PATH
16301 do
16302   IFS=$as_save_IFS
16303   test -z "$as_dir" && as_dir=.
16304   for ac_exec_ext in '' $ac_executable_extensions; do
16305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
16307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16308     break 2
16309   fi
16310 done
16311 done
16312
16313   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
16314   ;;
16315 esac
16316 fi
16317 GJDOC=$ac_cv_path_GJDOC
16318
16319 if test -n "$GJDOC"; then
16320   echo "$as_me:$LINENO: result: $GJDOC" >&5
16321 echo "${ECHO_T}$GJDOC" >&6
16322 else
16323   echo "$as_me:$LINENO: result: no" >&5
16324 echo "${ECHO_T}no" >&6
16325 fi
16326
16327                  if test "x${GJDOC}" = xno; then
16328                    { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
16329 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
16330    { (exit 1); exit 1; }; };
16331                  fi
16332                else
16333                  WITH_GJDOC=yes
16334                  GJDOC="${withval}"
16335                  as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
16336 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
16337 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
16338 if eval "test \"\${$as_ac_File+set}\" = set"; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   test "$cross_compiling" = yes &&
16342   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16343 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16344    { (exit 1); exit 1; }; }
16345 if test -r "${GJDOC}"; then
16346   eval "$as_ac_File=yes"
16347 else
16348   eval "$as_ac_File=no"
16349 fi
16350 fi
16351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
16352 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
16353 if test `eval echo '${'$as_ac_File'}'` = yes; then
16354   :
16355 else
16356   { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
16357 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
16358    { (exit 1); exit 1; }; }
16359 fi
16360
16361                fi
16362 else
16363   WITH_GJDOC=no
16364 fi;
16365
16366
16367
16368 if test "x${WITH_GJDOC}" = xyes; then
16369   CREATE_API_DOCS_TRUE=
16370   CREATE_API_DOCS_FALSE='#'
16371 else
16372   CREATE_API_DOCS_TRUE='#'
16373   CREATE_API_DOCS_FALSE=
16374 fi
16375
16376
16377
16378
16379
16380 # Check whether --with-jay or --without-jay was given.
16381 if test "${with_jay+set}" = set; then
16382   withval="$with_jay"
16383
16384     if test -d "${withval}"; then
16385       JAY_DIR_PATH="${withval}"
16386       # Extract the first word of "jay", so it can be a program name with args.
16387 set dummy jay; ac_word=$2
16388 echo "$as_me:$LINENO: checking for $ac_word" >&5
16389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16390 if test "${ac_cv_path_JAY+set}" = set; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   case $JAY in
16394   [\\/]* | ?:[\\/]*)
16395   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
16396   ;;
16397   *)
16398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in ${JAY_DIR_PATH}
16400 do
16401   IFS=$as_save_IFS
16402   test -z "$as_dir" && as_dir=.
16403   for ac_exec_ext in '' $ac_executable_extensions; do
16404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
16406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16407     break 2
16408   fi
16409 done
16410 done
16411
16412   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
16413   ;;
16414 esac
16415 fi
16416 JAY=$ac_cv_path_JAY
16417
16418 if test -n "$JAY"; then
16419   echo "$as_me:$LINENO: result: $JAY" >&5
16420 echo "${ECHO_T}$JAY" >&6
16421 else
16422   echo "$as_me:$LINENO: result: no" >&5
16423 echo "${ECHO_T}no" >&6
16424 fi
16425
16426       if test "x${JAY}" = xno; then
16427         { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
16428 echo "$as_me: error: \"jay executable not found\"" >&2;}
16429    { (exit 1); exit 1; }; };
16430       fi
16431     else
16432       JAY_DIR_PATH=`dirname "${withval}"`
16433       JAY="${withval}"
16434
16435     fi
16436     JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
16437     as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
16438 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
16439 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
16440 if eval "test \"\${$as_ac_File+set}\" = set"; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   test "$cross_compiling" = yes &&
16444   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16445 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16446    { (exit 1); exit 1; }; }
16447 if test -r "${JAY_SKELETON}"; then
16448   eval "$as_ac_File=yes"
16449 else
16450   eval "$as_ac_File=no"
16451 fi
16452 fi
16453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
16454 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
16455 if test `eval echo '${'$as_ac_File'}'` = yes; then
16456   :
16457 else
16458   { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
16459 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
16460    { (exit 1); exit 1; }; }
16461 fi
16462
16463     JAY_FOUND=yes
16464
16465 else
16466
16467     JAY_FOUND=no
16468
16469 fi;
16470
16471
16472 if test "x${JAY_FOUND}" = xyes; then
16473   REGEN_PARSERS_TRUE=
16474   REGEN_PARSERS_FALSE='#'
16475 else
16476   REGEN_PARSERS_TRUE='#'
16477   REGEN_PARSERS_FALSE=
16478 fi
16479
16480
16481
16482 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
16483 if test "${enable_portable_native_sync+set}" = set; then
16484   enableval="$enable_portable_native_sync"
16485   case "${enableval}" in
16486                 yes)
16487
16488 cat >>confdefs.h <<\_ACEOF
16489 #define PORTABLE_NATIVE_SYNC 1
16490 _ACEOF
16491
16492                      ;;
16493                 no)  ;;
16494                 *)
16495                      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
16496 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
16497    { (exit 1); exit 1; }; }
16498                      ;;
16499               esac
16500 fi;
16501
16502 # ------ AX CREATE STDINT H -------------------------------------
16503 echo "$as_me:$LINENO: checking for stdint types" >&5
16504 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
16505 ac_stdint_h=`echo include/config-int.h`
16506 # try to shortcircuit - if the default include path of the compiler
16507 # can find a "stdint.h" header then we assume that all compilers can.
16508 if test "${ac_cv_header_stdint_t+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511
16512 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
16513 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
16514 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 #include <stdint.h>
16522 int
16523 main ()
16524 {
16525 int_least32_t v = 0;
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16532   (eval $ac_compile) 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } &&
16539          { ac_try='test -z "$ac_c_werror_flag"
16540                          || test ! -s conftest.err'
16541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542   (eval $ac_try) 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; } &&
16546          { ac_try='test -s conftest.$ac_objext'
16547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548   (eval $ac_try) 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); }; }; then
16552   ac_cv_stdint_result="(assuming C99 compatible system)"
16553  ac_cv_header_stdint_t="stdint.h";
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_cv_header_stdint_t=""
16559 fi
16560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16561 CXXFLAGS="$old_CXXFLAGS"
16562 CPPFLAGS="$old_CPPFLAGS"
16563 CFLAGS="$old_CFLAGS"
16564 fi
16565
16566
16567 v="... $ac_cv_header_stdint_h"
16568 if test "$ac_stdint_h" = "stdint.h" ; then
16569  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
16570 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
16571 elif test "$ac_stdint_h" = "inttypes.h" ; then
16572  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
16573 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
16574 elif test "_$ac_cv_header_stdint_t" = "_" ; then
16575  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
16576 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
16577 else
16578  ac_cv_header_stdint="$ac_cv_header_stdint_t"
16579  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
16580 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
16581 fi
16582
16583 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
16584
16585
16586 inttype_headers=`echo  | sed -e 's/,/ /g'`
16587
16588 ac_cv_stdint_result="(no helpful system typedefs seen)"
16589
16590 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
16591 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
16592 if test "${ac_cv_header_stdint_x+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595
16596  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
16597   echo "$as_me:$LINENO: result: (..)" >&5
16598 echo "${ECHO_T}(..)" >&6
16599   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
16600    unset ac_cv_type_uintptr_t
16601    unset ac_cv_type_uint64_t
16602    echo "$as_me:$LINENO: checking for uintptr_t" >&5
16603 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16604 if test "${ac_cv_type_uintptr_t+set}" = set; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607   cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h.  */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h.  */
16613 #include <$i>
16614
16615 int
16616 main ()
16617 {
16618 if ((uintptr_t *) 0)
16619   return 0;
16620 if (sizeof (uintptr_t))
16621   return 0;
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_type_uintptr_t=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_cv_type_uintptr_t=no
16654 fi
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656 fi
16657 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16658 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16659 if test $ac_cv_type_uintptr_t = yes; then
16660   ac_cv_header_stdint_x=$i
16661 else
16662   continue
16663 fi
16664
16665    echo "$as_me:$LINENO: checking for uint64_t" >&5
16666 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16667 if test "${ac_cv_type_uint64_t+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676 #include<$i>
16677
16678 int
16679 main ()
16680 {
16681 if ((uint64_t *) 0)
16682   return 0;
16683 if (sizeof (uint64_t))
16684   return 0;
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691   (eval $ac_compile) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } &&
16698          { ac_try='test -z "$ac_c_werror_flag"
16699                          || test ! -s conftest.err'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest.$ac_objext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_cv_type_uint64_t=yes
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_cv_type_uint64_t=no
16717 fi
16718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16719 fi
16720 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16721 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16722 if test $ac_cv_type_uint64_t = yes; then
16723   and64="/uint64_t"
16724 else
16725   and64=""
16726 fi
16727
16728       stdint.h inttypes.h sys/inttypes.h $inttype_headers
16729  break
16730   done
16731   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
16732 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
16733
16734 fi
16735 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
16736 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
16737
16738
16739 if test "_$ac_cv_header_stdint_x" = "_" ; then
16740
16741 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16742 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16743 if test "${ac_cv_header_stdint_o+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746
16747  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
16748   echo "$as_me:$LINENO: result: (..)" >&5
16749 echo "${ECHO_T}(..)" >&6
16750   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
16751    unset ac_cv_type_uint32_t
16752    unset ac_cv_type_uint64_t
16753    echo "$as_me:$LINENO: checking for uint32_t" >&5
16754 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16755 if test "${ac_cv_type_uint32_t+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764 #include <$i>
16765
16766 int
16767 main ()
16768 {
16769 if ((uint32_t *) 0)
16770   return 0;
16771 if (sizeof (uint32_t))
16772   return 0;
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779   (eval $ac_compile) 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } &&
16786          { ac_try='test -z "$ac_c_werror_flag"
16787                          || test ! -s conftest.err'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; } &&
16793          { ac_try='test -s conftest.$ac_objext'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_type_uint32_t=yes
16800 else
16801   echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 ac_cv_type_uint32_t=no
16805 fi
16806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16807 fi
16808 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16809 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16810 if test $ac_cv_type_uint32_t = yes; then
16811   ac_cv_header_stdint_o=$i
16812 else
16813   continue
16814 fi
16815
16816    echo "$as_me:$LINENO: checking for uint64_t" >&5
16817 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16818 if test "${ac_cv_type_uint64_t+set}" = set; then
16819   echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821   cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827 #include<$i>
16828
16829 int
16830 main ()
16831 {
16832 if ((uint64_t *) 0)
16833   return 0;
16834 if (sizeof (uint64_t))
16835   return 0;
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842   (eval $ac_compile) 2>conftest.er1
16843   ac_status=$?
16844   grep -v '^ *+' conftest.er1 >conftest.err
16845   rm -f conftest.er1
16846   cat conftest.err >&5
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } &&
16849          { ac_try='test -z "$ac_c_werror_flag"
16850                          || test ! -s conftest.err'
16851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852   (eval $ac_try) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; } &&
16856          { ac_try='test -s conftest.$ac_objext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_cv_type_uint64_t=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 ac_cv_type_uint64_t=no
16868 fi
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16872 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16873 if test $ac_cv_type_uint64_t = yes; then
16874   and64="/uint64_t"
16875 else
16876   and64=""
16877 fi
16878
16879       inttypes.h sys/inttypes.h stdint.h $inttype_headers
16880  break
16881    break;
16882   done
16883   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16884 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16885
16886 fi
16887 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
16888 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
16889
16890 fi
16891
16892 if test "_$ac_cv_header_stdint_x" = "_" ; then
16893 if test "_$ac_cv_header_stdint_o" = "_" ; then
16894
16895 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16896 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16897 if test "${ac_cv_header_stdint_u+set}" = set; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900
16901  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16902   echo "$as_me:$LINENO: result: (..)" >&5
16903 echo "${ECHO_T}(..)" >&6
16904   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16905    unset ac_cv_type_u_int32_t
16906    unset ac_cv_type_u_int64_t
16907    echo "$as_me:$LINENO: checking for u_int32_t" >&5
16908 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16909 if test "${ac_cv_type_u_int32_t+set}" = set; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h.  */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h.  */
16918 #include <$i>
16919
16920 int
16921 main ()
16922 {
16923 if ((u_int32_t *) 0)
16924   return 0;
16925 if (sizeof (u_int32_t))
16926   return 0;
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933   (eval $ac_compile) 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag"
16941                          || test ! -s conftest.err'
16942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943   (eval $ac_try) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest.$ac_objext'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   ac_cv_type_u_int32_t=yes
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 ac_cv_type_u_int32_t=no
16959 fi
16960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16963 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16964 if test $ac_cv_type_u_int32_t = yes; then
16965   ac_cv_header_stdint_u=$i
16966 else
16967   continue
16968 fi
16969
16970    echo "$as_me:$LINENO: checking for u_int64_t" >&5
16971 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16972 if test "${ac_cv_type_u_int64_t+set}" = set; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 #include<$i>
16982
16983 int
16984 main ()
16985 {
16986 if ((u_int64_t *) 0)
16987   return 0;
16988 if (sizeof (u_int64_t))
16989   return 0;
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16996   (eval $ac_compile) 2>conftest.er1
16997   ac_status=$?
16998   grep -v '^ *+' conftest.er1 >conftest.err
16999   rm -f conftest.er1
17000   cat conftest.err >&5
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } &&
17003          { ac_try='test -z "$ac_c_werror_flag"
17004                          || test ! -s conftest.err'
17005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006   (eval $ac_try) 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; } &&
17010          { ac_try='test -s conftest.$ac_objext'
17011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012   (eval $ac_try) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; }; then
17016   ac_cv_type_u_int64_t=yes
17017 else
17018   echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_cv_type_u_int64_t=no
17022 fi
17023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17024 fi
17025 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17026 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
17027 if test $ac_cv_type_u_int64_t = yes; then
17028   and64="/u_int64_t"
17029 else
17030   and64=""
17031 fi
17032
17033       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
17034  break
17035    break;
17036   done
17037   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
17038 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
17039
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
17042 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
17043
17044 fi fi
17045
17046 if test "_$ac_cv_header_stdint_x" = "_" ; then
17047    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
17048 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
17049    echo "$as_me:$LINENO: result: (..)" >&5
17050 echo "${ECHO_T}(..)" >&6
17051
17052    echo "$as_me:$LINENO: checking for char" >&5
17053 echo $ECHO_N "checking for char... $ECHO_C" >&6
17054 if test "${ac_cv_type_char+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 $ac_includes_default
17064 int
17065 main ()
17066 {
17067 if ((char *) 0)
17068   return 0;
17069 if (sizeof (char))
17070   return 0;
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077   (eval $ac_compile) 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } &&
17084          { ac_try='test -z "$ac_c_werror_flag"
17085                          || test ! -s conftest.err'
17086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087   (eval $ac_try) 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; } &&
17091          { ac_try='test -s conftest.$ac_objext'
17092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093   (eval $ac_try) 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; }; then
17097   ac_cv_type_char=yes
17098 else
17099   echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 ac_cv_type_char=no
17103 fi
17104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17105 fi
17106 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17107 echo "${ECHO_T}$ac_cv_type_char" >&6
17108
17109 echo "$as_me:$LINENO: checking size of char" >&5
17110 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17111 if test "${ac_cv_sizeof_char+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   if test "$ac_cv_type_char" = yes; then
17115   # The cast to unsigned long works around a bug in the HP C Compiler
17116   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17117   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17118   # This bug is HP SR number 8606223364.
17119   if test "$cross_compiling" = yes; then
17120   # Depending upon the size, compute the lo and hi bounds.
17121 cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 $ac_includes_default
17128 int
17129 main ()
17130 {
17131 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17132 test_array [0] = 0
17133
17134   ;
17135   return 0;
17136 }
17137 _ACEOF
17138 rm -f conftest.$ac_objext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17140   (eval $ac_compile) 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -z "$ac_c_werror_flag"
17148                          || test ! -s conftest.err'
17149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150   (eval $ac_try) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; } &&
17154          { ac_try='test -s conftest.$ac_objext'
17155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156   (eval $ac_try) 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160   ac_lo=0 ac_mid=0
17161   while :; do
17162     cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 $ac_includes_default
17169 int
17170 main ()
17171 {
17172 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17173 test_array [0] = 0
17174
17175   ;
17176   return 0;
17177 }
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181   (eval $ac_compile) 2>conftest.er1
17182   ac_status=$?
17183   grep -v '^ *+' conftest.er1 >conftest.err
17184   rm -f conftest.er1
17185   cat conftest.err >&5
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); } &&
17188          { ac_try='test -z "$ac_c_werror_flag"
17189                          || test ! -s conftest.err'
17190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191   (eval $ac_try) 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); }; } &&
17195          { ac_try='test -s conftest.$ac_objext'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; }; then
17201   ac_hi=$ac_mid; break
17202 else
17203   echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206 ac_lo=`expr $ac_mid + 1`
17207                     if test $ac_lo -le $ac_mid; then
17208                       ac_lo= ac_hi=
17209                       break
17210                     fi
17211                     ac_mid=`expr 2 '*' $ac_mid + 1`
17212 fi
17213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17214   done
17215 else
17216   echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 $ac_includes_default
17226 int
17227 main ()
17228 {
17229 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17230 test_array [0] = 0
17231
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17238   (eval $ac_compile) 2>conftest.er1
17239   ac_status=$?
17240   grep -v '^ *+' conftest.er1 >conftest.err
17241   rm -f conftest.er1
17242   cat conftest.err >&5
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); } &&
17245          { ac_try='test -z "$ac_c_werror_flag"
17246                          || test ! -s conftest.err'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; } &&
17252          { ac_try='test -s conftest.$ac_objext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_hi=-1 ac_mid=-1
17259   while :; do
17260     cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 $ac_includes_default
17267 int
17268 main ()
17269 {
17270 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17271 test_array [0] = 0
17272
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279   (eval $ac_compile) 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -z "$ac_c_werror_flag"
17287                          || test ! -s conftest.err'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; } &&
17293          { ac_try='test -s conftest.$ac_objext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   ac_lo=$ac_mid; break
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 ac_hi=`expr '(' $ac_mid ')' - 1`
17305                        if test $ac_mid -le $ac_hi; then
17306                          ac_lo= ac_hi=
17307                          break
17308                        fi
17309                        ac_mid=`expr 2 '*' $ac_mid`
17310 fi
17311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312   done
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ac_lo= ac_hi=
17318 fi
17319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320 fi
17321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17322 # Binary search between lo and hi bounds.
17323 while test "x$ac_lo" != "x$ac_hi"; do
17324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17325   cat >conftest.$ac_ext <<_ACEOF
17326 /* confdefs.h.  */
17327 _ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h.  */
17331 $ac_includes_default
17332 int
17333 main ()
17334 {
17335 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17336 test_array [0] = 0
17337
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17344   (eval $ac_compile) 2>conftest.er1
17345   ac_status=$?
17346   grep -v '^ *+' conftest.er1 >conftest.err
17347   rm -f conftest.er1
17348   cat conftest.err >&5
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); } &&
17351          { ac_try='test -z "$ac_c_werror_flag"
17352                          || test ! -s conftest.err'
17353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354   (eval $ac_try) 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest.$ac_objext'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; }; then
17364   ac_hi=$ac_mid
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 ac_lo=`expr '(' $ac_mid ')' + 1`
17370 fi
17371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17372 done
17373 case $ac_lo in
17374 ?*) ac_cv_sizeof_char=$ac_lo;;
17375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17376 See \`config.log' for more details." >&5
17377 echo "$as_me: error: cannot compute sizeof (char), 77
17378 See \`config.log' for more details." >&2;}
17379    { (exit 1); exit 1; }; } ;;
17380 esac
17381 else
17382   if test "$cross_compiling" = yes; then
17383   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17384 See \`config.log' for more details." >&5
17385 echo "$as_me: error: cannot run test program while cross compiling
17386 See \`config.log' for more details." >&2;}
17387    { (exit 1); exit 1; }; }
17388 else
17389   cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h.  */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h.  */
17395 $ac_includes_default
17396 long longval () { return (long) (sizeof (char)); }
17397 unsigned long ulongval () { return (long) (sizeof (char)); }
17398 #include <stdio.h>
17399 #include <stdlib.h>
17400 int
17401 main ()
17402 {
17403
17404   FILE *f = fopen ("conftest.val", "w");
17405   if (! f)
17406     exit (1);
17407   if (((long) (sizeof (char))) < 0)
17408     {
17409       long i = longval ();
17410       if (i != ((long) (sizeof (char))))
17411         exit (1);
17412       fprintf (f, "%ld\n", i);
17413     }
17414   else
17415     {
17416       unsigned long i = ulongval ();
17417       if (i != ((long) (sizeof (char))))
17418         exit (1);
17419       fprintf (f, "%lu\n", i);
17420     }
17421   exit (ferror (f) || fclose (f) != 0);
17422
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest$ac_exeext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17429   (eval $ac_link) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438   ac_cv_sizeof_char=`cat conftest.val`
17439 else
17440   echo "$as_me: program exited with status $ac_status" >&5
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444 ( exit $ac_status )
17445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17446 See \`config.log' for more details." >&5
17447 echo "$as_me: error: cannot compute sizeof (char), 77
17448 See \`config.log' for more details." >&2;}
17449    { (exit 1); exit 1; }; }
17450 fi
17451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17452 fi
17453 fi
17454 rm -f conftest.val
17455 else
17456   ac_cv_sizeof_char=0
17457 fi
17458 fi
17459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17460 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17461 cat >>confdefs.h <<_ACEOF
17462 #define SIZEOF_CHAR $ac_cv_sizeof_char
17463 _ACEOF
17464
17465
17466    echo "$as_me:$LINENO: checking for short" >&5
17467 echo $ECHO_N "checking for short... $ECHO_C" >&6
17468 if test "${ac_cv_type_short+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471   cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477 $ac_includes_default
17478 int
17479 main ()
17480 {
17481 if ((short *) 0)
17482   return 0;
17483 if (sizeof (short))
17484   return 0;
17485   ;
17486   return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491   (eval $ac_compile) 2>conftest.er1
17492   ac_status=$?
17493   grep -v '^ *+' conftest.er1 >conftest.err
17494   rm -f conftest.er1
17495   cat conftest.err >&5
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); } &&
17498          { ac_try='test -z "$ac_c_werror_flag"
17499                          || test ! -s conftest.err'
17500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501   (eval $ac_try) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; } &&
17505          { ac_try='test -s conftest.$ac_objext'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; }; then
17511   ac_cv_type_short=yes
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 ac_cv_type_short=no
17517 fi
17518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17519 fi
17520 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17521 echo "${ECHO_T}$ac_cv_type_short" >&6
17522
17523 echo "$as_me:$LINENO: checking size of short" >&5
17524 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17525 if test "${ac_cv_sizeof_short+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528   if test "$ac_cv_type_short" = yes; then
17529   # The cast to unsigned long works around a bug in the HP C Compiler
17530   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17531   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17532   # This bug is HP SR number 8606223364.
17533   if test "$cross_compiling" = yes; then
17534   # Depending upon the size, compute the lo and hi bounds.
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h.  */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h.  */
17541 $ac_includes_default
17542 int
17543 main ()
17544 {
17545 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17546 test_array [0] = 0
17547
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554   (eval $ac_compile) 2>conftest.er1
17555   ac_status=$?
17556   grep -v '^ *+' conftest.er1 >conftest.err
17557   rm -f conftest.er1
17558   cat conftest.err >&5
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } &&
17561          { ac_try='test -z "$ac_c_werror_flag"
17562                          || test ! -s conftest.err'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; } &&
17568          { ac_try='test -s conftest.$ac_objext'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; }; then
17574   ac_lo=0 ac_mid=0
17575   while :; do
17576     cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582 $ac_includes_default
17583 int
17584 main ()
17585 {
17586 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17587 test_array [0] = 0
17588
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595   (eval $ac_compile) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest.$ac_objext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   ac_hi=$ac_mid; break
17616 else
17617   echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ac_lo=`expr $ac_mid + 1`
17621                     if test $ac_lo -le $ac_mid; then
17622                       ac_lo= ac_hi=
17623                       break
17624                     fi
17625                     ac_mid=`expr 2 '*' $ac_mid + 1`
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628   done
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639 $ac_includes_default
17640 int
17641 main ()
17642 {
17643 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17644 test_array [0] = 0
17645
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652   (eval $ac_compile) 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_c_werror_flag"
17660                          || test ! -s conftest.err'
17661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662   (eval $ac_try) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; } &&
17666          { ac_try='test -s conftest.$ac_objext'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   ac_hi=-1 ac_mid=-1
17673   while :; do
17674     cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h.  */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h.  */
17680 $ac_includes_default
17681 int
17682 main ()
17683 {
17684 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17685 test_array [0] = 0
17686
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693   (eval $ac_compile) 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } &&
17700          { ac_try='test -z "$ac_c_werror_flag"
17701                          || test ! -s conftest.err'
17702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703   (eval $ac_try) 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); }; } &&
17707          { ac_try='test -s conftest.$ac_objext'
17708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709   (eval $ac_try) 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; }; then
17713   ac_lo=$ac_mid; break
17714 else
17715   echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17717
17718 ac_hi=`expr '(' $ac_mid ')' - 1`
17719                        if test $ac_mid -le $ac_hi; then
17720                          ac_lo= ac_hi=
17721                          break
17722                        fi
17723                        ac_mid=`expr 2 '*' $ac_mid`
17724 fi
17725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17726   done
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_lo= ac_hi=
17732 fi
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736 # Binary search between lo and hi bounds.
17737 while test "x$ac_lo" != "x$ac_hi"; do
17738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17739   cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h.  */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h.  */
17745 $ac_includes_default
17746 int
17747 main ()
17748 {
17749 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17750 test_array [0] = 0
17751
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758   (eval $ac_compile) 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } &&
17765          { ac_try='test -z "$ac_c_werror_flag"
17766                          || test ! -s conftest.err'
17767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768   (eval $ac_try) 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; } &&
17772          { ac_try='test -s conftest.$ac_objext'
17773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774   (eval $ac_try) 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; }; then
17778   ac_hi=$ac_mid
17779 else
17780   echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_lo=`expr '(' $ac_mid ')' + 1`
17784 fi
17785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17786 done
17787 case $ac_lo in
17788 ?*) ac_cv_sizeof_short=$ac_lo;;
17789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17790 See \`config.log' for more details." >&5
17791 echo "$as_me: error: cannot compute sizeof (short), 77
17792 See \`config.log' for more details." >&2;}
17793    { (exit 1); exit 1; }; } ;;
17794 esac
17795 else
17796   if test "$cross_compiling" = yes; then
17797   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17798 See \`config.log' for more details." >&5
17799 echo "$as_me: error: cannot run test program while cross compiling
17800 See \`config.log' for more details." >&2;}
17801    { (exit 1); exit 1; }; }
17802 else
17803   cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809 $ac_includes_default
17810 long longval () { return (long) (sizeof (short)); }
17811 unsigned long ulongval () { return (long) (sizeof (short)); }
17812 #include <stdio.h>
17813 #include <stdlib.h>
17814 int
17815 main ()
17816 {
17817
17818   FILE *f = fopen ("conftest.val", "w");
17819   if (! f)
17820     exit (1);
17821   if (((long) (sizeof (short))) < 0)
17822     {
17823       long i = longval ();
17824       if (i != ((long) (sizeof (short))))
17825         exit (1);
17826       fprintf (f, "%ld\n", i);
17827     }
17828   else
17829     {
17830       unsigned long i = ulongval ();
17831       if (i != ((long) (sizeof (short))))
17832         exit (1);
17833       fprintf (f, "%lu\n", i);
17834     }
17835   exit (ferror (f) || fclose (f) != 0);
17836
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   ac_cv_sizeof_short=`cat conftest.val`
17853 else
17854   echo "$as_me: program exited with status $ac_status" >&5
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ( exit $ac_status )
17859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17860 See \`config.log' for more details." >&5
17861 echo "$as_me: error: cannot compute sizeof (short), 77
17862 See \`config.log' for more details." >&2;}
17863    { (exit 1); exit 1; }; }
17864 fi
17865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17866 fi
17867 fi
17868 rm -f conftest.val
17869 else
17870   ac_cv_sizeof_short=0
17871 fi
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17874 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17875 cat >>confdefs.h <<_ACEOF
17876 #define SIZEOF_SHORT $ac_cv_sizeof_short
17877 _ACEOF
17878
17879
17880    echo "$as_me:$LINENO: checking for int" >&5
17881 echo $ECHO_N "checking for int... $ECHO_C" >&6
17882 if test "${ac_cv_type_int+set}" = set; then
17883   echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885   cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891 $ac_includes_default
17892 int
17893 main ()
17894 {
17895 if ((int *) 0)
17896   return 0;
17897 if (sizeof (int))
17898   return 0;
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905   (eval $ac_compile) 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -z "$ac_c_werror_flag"
17913                          || test ! -s conftest.err'
17914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915   (eval $ac_try) 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; } &&
17919          { ac_try='test -s conftest.$ac_objext'
17920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921   (eval $ac_try) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; }; then
17925   ac_cv_type_int=yes
17926 else
17927   echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930 ac_cv_type_int=no
17931 fi
17932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17933 fi
17934 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17935 echo "${ECHO_T}$ac_cv_type_int" >&6
17936
17937 echo "$as_me:$LINENO: checking size of int" >&5
17938 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17939 if test "${ac_cv_sizeof_int+set}" = set; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   if test "$ac_cv_type_int" = yes; then
17943   # The cast to unsigned long works around a bug in the HP C Compiler
17944   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17945   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17946   # This bug is HP SR number 8606223364.
17947   if test "$cross_compiling" = yes; then
17948   # Depending upon the size, compute the lo and hi bounds.
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955 $ac_includes_default
17956 int
17957 main ()
17958 {
17959 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17960 test_array [0] = 0
17961
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968   (eval $ac_compile) 2>conftest.er1
17969   ac_status=$?
17970   grep -v '^ *+' conftest.er1 >conftest.err
17971   rm -f conftest.er1
17972   cat conftest.err >&5
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -z "$ac_c_werror_flag"
17976                          || test ! -s conftest.err'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; } &&
17982          { ac_try='test -s conftest.$ac_objext'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; }; then
17988   ac_lo=0 ac_mid=0
17989   while :; do
17990     cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 int
17998 main ()
17999 {
18000 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18001 test_array [0] = 0
18002
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009   (eval $ac_compile) 2>conftest.er1
18010   ac_status=$?
18011   grep -v '^ *+' conftest.er1 >conftest.err
18012   rm -f conftest.er1
18013   cat conftest.err >&5
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); } &&
18016          { ac_try='test -z "$ac_c_werror_flag"
18017                          || test ! -s conftest.err'
18018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019   (eval $ac_try) 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; } &&
18023          { ac_try='test -s conftest.$ac_objext'
18024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025   (eval $ac_try) 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); }; }; then
18029   ac_hi=$ac_mid; break
18030 else
18031   echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_lo=`expr $ac_mid + 1`
18035                     if test $ac_lo -le $ac_mid; then
18036                       ac_lo= ac_hi=
18037                       break
18038                     fi
18039                     ac_mid=`expr 2 '*' $ac_mid + 1`
18040 fi
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18042   done
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053 $ac_includes_default
18054 int
18055 main ()
18056 {
18057 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18058 test_array [0] = 0
18059
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066   (eval $ac_compile) 2>conftest.er1
18067   ac_status=$?
18068   grep -v '^ *+' conftest.er1 >conftest.err
18069   rm -f conftest.er1
18070   cat conftest.err >&5
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); } &&
18073          { ac_try='test -z "$ac_c_werror_flag"
18074                          || test ! -s conftest.err'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; } &&
18080          { ac_try='test -s conftest.$ac_objext'
18081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082   (eval $ac_try) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; }; then
18086   ac_hi=-1 ac_mid=-1
18087   while :; do
18088     cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h.  */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h.  */
18094 $ac_includes_default
18095 int
18096 main ()
18097 {
18098 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18099 test_array [0] = 0
18100
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107   (eval $ac_compile) 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag"
18115                          || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest.$ac_objext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_lo=$ac_mid; break
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_hi=`expr '(' $ac_mid ')' - 1`
18133                        if test $ac_mid -le $ac_hi; then
18134                          ac_lo= ac_hi=
18135                          break
18136                        fi
18137                        ac_mid=`expr 2 '*' $ac_mid`
18138 fi
18139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18140   done
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145 ac_lo= ac_hi=
18146 fi
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148 fi
18149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18150 # Binary search between lo and hi bounds.
18151 while test "x$ac_lo" != "x$ac_hi"; do
18152   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18153   cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 $ac_includes_default
18160 int
18161 main ()
18162 {
18163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18164 test_array [0] = 0
18165
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172   (eval $ac_compile) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"
18180                          || test ! -s conftest.err'
18181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182   (eval $ac_try) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188   (eval $ac_try) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_hi=$ac_mid
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 ac_lo=`expr '(' $ac_mid ')' + 1`
18198 fi
18199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200 done
18201 case $ac_lo in
18202 ?*) ac_cv_sizeof_int=$ac_lo;;
18203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18204 See \`config.log' for more details." >&5
18205 echo "$as_me: error: cannot compute sizeof (int), 77
18206 See \`config.log' for more details." >&2;}
18207    { (exit 1); exit 1; }; } ;;
18208 esac
18209 else
18210   if test "$cross_compiling" = yes; then
18211   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18212 See \`config.log' for more details." >&5
18213 echo "$as_me: error: cannot run test program while cross compiling
18214 See \`config.log' for more details." >&2;}
18215    { (exit 1); exit 1; }; }
18216 else
18217   cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223 $ac_includes_default
18224 long longval () { return (long) (sizeof (int)); }
18225 unsigned long ulongval () { return (long) (sizeof (int)); }
18226 #include <stdio.h>
18227 #include <stdlib.h>
18228 int
18229 main ()
18230 {
18231
18232   FILE *f = fopen ("conftest.val", "w");
18233   if (! f)
18234     exit (1);
18235   if (((long) (sizeof (int))) < 0)
18236     {
18237       long i = longval ();
18238       if (i != ((long) (sizeof (int))))
18239         exit (1);
18240       fprintf (f, "%ld\n", i);
18241     }
18242   else
18243     {
18244       unsigned long i = ulongval ();
18245       if (i != ((long) (sizeof (int))))
18246         exit (1);
18247       fprintf (f, "%lu\n", i);
18248     }
18249   exit (ferror (f) || fclose (f) != 0);
18250
18251   ;
18252   return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest$ac_exeext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257   (eval $ac_link) 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; }; then
18266   ac_cv_sizeof_int=`cat conftest.val`
18267 else
18268   echo "$as_me: program exited with status $ac_status" >&5
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 ( exit $ac_status )
18273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18274 See \`config.log' for more details." >&5
18275 echo "$as_me: error: cannot compute sizeof (int), 77
18276 See \`config.log' for more details." >&2;}
18277    { (exit 1); exit 1; }; }
18278 fi
18279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18280 fi
18281 fi
18282 rm -f conftest.val
18283 else
18284   ac_cv_sizeof_int=0
18285 fi
18286 fi
18287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18288 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18289 cat >>confdefs.h <<_ACEOF
18290 #define SIZEOF_INT $ac_cv_sizeof_int
18291 _ACEOF
18292
18293
18294    echo "$as_me:$LINENO: checking for long" >&5
18295 echo $ECHO_N "checking for long... $ECHO_C" >&6
18296 if test "${ac_cv_type_long+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299   cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305 $ac_includes_default
18306 int
18307 main ()
18308 {
18309 if ((long *) 0)
18310   return 0;
18311 if (sizeof (long))
18312   return 0;
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319   (eval $ac_compile) 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } &&
18326          { ac_try='test -z "$ac_c_werror_flag"
18327                          || test ! -s conftest.err'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest.$ac_objext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_type_long=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_type_long=no
18345 fi
18346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18347 fi
18348 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18349 echo "${ECHO_T}$ac_cv_type_long" >&6
18350
18351 echo "$as_me:$LINENO: checking size of long" >&5
18352 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18353 if test "${ac_cv_sizeof_long+set}" = set; then
18354   echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356   if test "$ac_cv_type_long" = yes; then
18357   # The cast to unsigned long works around a bug in the HP C Compiler
18358   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18359   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18360   # This bug is HP SR number 8606223364.
18361   if test "$cross_compiling" = yes; then
18362   # Depending upon the size, compute the lo and hi bounds.
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h.  */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h.  */
18369 $ac_includes_default
18370 int
18371 main ()
18372 {
18373 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18374 test_array [0] = 0
18375
18376   ;
18377   return 0;
18378 }
18379 _ACEOF
18380 rm -f conftest.$ac_objext
18381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18382   (eval $ac_compile) 2>conftest.er1
18383   ac_status=$?
18384   grep -v '^ *+' conftest.er1 >conftest.err
18385   rm -f conftest.er1
18386   cat conftest.err >&5
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); } &&
18389          { ac_try='test -z "$ac_c_werror_flag"
18390                          || test ! -s conftest.err'
18391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392   (eval $ac_try) 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; } &&
18396          { ac_try='test -s conftest.$ac_objext'
18397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398   (eval $ac_try) 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; }; then
18402   ac_lo=0 ac_mid=0
18403   while :; do
18404     cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410 $ac_includes_default
18411 int
18412 main ()
18413 {
18414 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18415 test_array [0] = 0
18416
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423   (eval $ac_compile) 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag"
18431                          || test ! -s conftest.err'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest.$ac_objext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_hi=$ac_mid; break
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 ac_lo=`expr $ac_mid + 1`
18449                     if test $ac_lo -le $ac_mid; then
18450                       ac_lo= ac_hi=
18451                       break
18452                     fi
18453                     ac_mid=`expr 2 '*' $ac_mid + 1`
18454 fi
18455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18456   done
18457 else
18458   echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467 $ac_includes_default
18468 int
18469 main ()
18470 {
18471 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18472 test_array [0] = 0
18473
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18480   (eval $ac_compile) 2>conftest.er1
18481   ac_status=$?
18482   grep -v '^ *+' conftest.er1 >conftest.err
18483   rm -f conftest.er1
18484   cat conftest.err >&5
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } &&
18487          { ac_try='test -z "$ac_c_werror_flag"
18488                          || test ! -s conftest.err'
18489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490   (eval $ac_try) 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; } &&
18494          { ac_try='test -s conftest.$ac_objext'
18495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496   (eval $ac_try) 2>&5
18497   ac_status=$?
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); }; }; then
18500   ac_hi=-1 ac_mid=-1
18501   while :; do
18502     cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h.  */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h.  */
18508 $ac_includes_default
18509 int
18510 main ()
18511 {
18512 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18513 test_array [0] = 0
18514
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521   (eval $ac_compile) 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_c_werror_flag"
18529                          || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_lo=$ac_mid; break
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_hi=`expr '(' $ac_mid ')' - 1`
18547                        if test $ac_mid -le $ac_hi; then
18548                          ac_lo= ac_hi=
18549                          break
18550                        fi
18551                        ac_mid=`expr 2 '*' $ac_mid`
18552 fi
18553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18554   done
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_lo= ac_hi=
18560 fi
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18562 fi
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 # Binary search between lo and hi bounds.
18565 while test "x$ac_lo" != "x$ac_hi"; do
18566   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18567   cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 $ac_includes_default
18574 int
18575 main ()
18576 {
18577 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18578 test_array [0] = 0
18579
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest.$ac_objext
18585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18586   (eval $ac_compile) 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } &&
18593          { ac_try='test -z "$ac_c_werror_flag"
18594                          || test ! -s conftest.err'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; } &&
18600          { ac_try='test -s conftest.$ac_objext'
18601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602   (eval $ac_try) 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; }; then
18606   ac_hi=$ac_mid
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_lo=`expr '(' $ac_mid ')' + 1`
18612 fi
18613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18614 done
18615 case $ac_lo in
18616 ?*) ac_cv_sizeof_long=$ac_lo;;
18617 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18618 See \`config.log' for more details." >&5
18619 echo "$as_me: error: cannot compute sizeof (long), 77
18620 See \`config.log' for more details." >&2;}
18621    { (exit 1); exit 1; }; } ;;
18622 esac
18623 else
18624   if test "$cross_compiling" = yes; then
18625   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18626 See \`config.log' for more details." >&5
18627 echo "$as_me: error: cannot run test program while cross compiling
18628 See \`config.log' for more details." >&2;}
18629    { (exit 1); exit 1; }; }
18630 else
18631   cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637 $ac_includes_default
18638 long longval () { return (long) (sizeof (long)); }
18639 unsigned long ulongval () { return (long) (sizeof (long)); }
18640 #include <stdio.h>
18641 #include <stdlib.h>
18642 int
18643 main ()
18644 {
18645
18646   FILE *f = fopen ("conftest.val", "w");
18647   if (! f)
18648     exit (1);
18649   if (((long) (sizeof (long))) < 0)
18650     {
18651       long i = longval ();
18652       if (i != ((long) (sizeof (long))))
18653         exit (1);
18654       fprintf (f, "%ld\n", i);
18655     }
18656   else
18657     {
18658       unsigned long i = ulongval ();
18659       if (i != ((long) (sizeof (long))))
18660         exit (1);
18661       fprintf (f, "%lu\n", i);
18662     }
18663   exit (ferror (f) || fclose (f) != 0);
18664
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671   (eval $ac_link) 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676   (eval $ac_try) 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; }; then
18680   ac_cv_sizeof_long=`cat conftest.val`
18681 else
18682   echo "$as_me: program exited with status $ac_status" >&5
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ( exit $ac_status )
18687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18688 See \`config.log' for more details." >&5
18689 echo "$as_me: error: cannot compute sizeof (long), 77
18690 See \`config.log' for more details." >&2;}
18691    { (exit 1); exit 1; }; }
18692 fi
18693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18694 fi
18695 fi
18696 rm -f conftest.val
18697 else
18698   ac_cv_sizeof_long=0
18699 fi
18700 fi
18701 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18702 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18703 cat >>confdefs.h <<_ACEOF
18704 #define SIZEOF_LONG $ac_cv_sizeof_long
18705 _ACEOF
18706
18707
18708    echo "$as_me:$LINENO: checking for void*" >&5
18709 echo $ECHO_N "checking for void*... $ECHO_C" >&6
18710 if test "${ac_cv_type_voidp+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719 $ac_includes_default
18720 int
18721 main ()
18722 {
18723 if ((void* *) 0)
18724   return 0;
18725 if (sizeof (void*))
18726   return 0;
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733   (eval $ac_compile) 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -z "$ac_c_werror_flag"
18741                          || test ! -s conftest.err'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; } &&
18747          { ac_try='test -s conftest.$ac_objext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_type_voidp=yes
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_cv_type_voidp=no
18759 fi
18760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761 fi
18762 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
18763 echo "${ECHO_T}$ac_cv_type_voidp" >&6
18764
18765 echo "$as_me:$LINENO: checking size of void*" >&5
18766 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
18767 if test "${ac_cv_sizeof_voidp+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   if test "$ac_cv_type_voidp" = yes; then
18771   # The cast to unsigned long works around a bug in the HP C Compiler
18772   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18773   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18774   # This bug is HP SR number 8606223364.
18775   if test "$cross_compiling" = yes; then
18776   # Depending upon the size, compute the lo and hi bounds.
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 $ac_includes_default
18784 int
18785 main ()
18786 {
18787 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
18788 test_array [0] = 0
18789
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest.$ac_objext
18795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18796   (eval $ac_compile) 2>conftest.er1
18797   ac_status=$?
18798   grep -v '^ *+' conftest.er1 >conftest.err
18799   rm -f conftest.er1
18800   cat conftest.err >&5
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); } &&
18803          { ac_try='test -z "$ac_c_werror_flag"
18804                          || test ! -s conftest.err'
18805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806   (eval $ac_try) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; } &&
18810          { ac_try='test -s conftest.$ac_objext'
18811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812   (eval $ac_try) 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; }; then
18816   ac_lo=0 ac_mid=0
18817   while :; do
18818     cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 $ac_includes_default
18825 int
18826 main ()
18827 {
18828 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
18829 test_array [0] = 0
18830
18831   ;
18832   return 0;
18833 }
18834 _ACEOF
18835 rm -f conftest.$ac_objext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18837   (eval $ac_compile) 2>conftest.er1
18838   ac_status=$?
18839   grep -v '^ *+' conftest.er1 >conftest.err
18840   rm -f conftest.er1
18841   cat conftest.err >&5
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); } &&
18844          { ac_try='test -z "$ac_c_werror_flag"
18845                          || test ! -s conftest.err'
18846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847   (eval $ac_try) 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; } &&
18851          { ac_try='test -s conftest.$ac_objext'
18852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853   (eval $ac_try) 2>&5
18854   ac_status=$?
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); }; }; then
18857   ac_hi=$ac_mid; break
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_lo=`expr $ac_mid + 1`
18863                     if test $ac_lo -le $ac_mid; then
18864                       ac_lo= ac_hi=
18865                       break
18866                     fi
18867                     ac_mid=`expr 2 '*' $ac_mid + 1`
18868 fi
18869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18870   done
18871 else
18872   echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881 $ac_includes_default
18882 int
18883 main ()
18884 {
18885 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
18886 test_array [0] = 0
18887
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 rm -f conftest.$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894   (eval $ac_compile) 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } &&
18901          { ac_try='test -z "$ac_c_werror_flag"
18902                          || test ! -s conftest.err'
18903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904   (eval $ac_try) 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; } &&
18908          { ac_try='test -s conftest.$ac_objext'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914   ac_hi=-1 ac_mid=-1
18915   while :; do
18916     cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 $ac_includes_default
18923 int
18924 main ()
18925 {
18926 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
18927 test_array [0] = 0
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935   (eval $ac_compile) 2>conftest.er1
18936   ac_status=$?
18937   grep -v '^ *+' conftest.er1 >conftest.err
18938   rm -f conftest.er1
18939   cat conftest.err >&5
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); } &&
18942          { ac_try='test -z "$ac_c_werror_flag"
18943                          || test ! -s conftest.err'
18944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945   (eval $ac_try) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; } &&
18949          { ac_try='test -s conftest.$ac_objext'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; }; then
18955   ac_lo=$ac_mid; break
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_hi=`expr '(' $ac_mid ')' - 1`
18961                        if test $ac_mid -le $ac_hi; then
18962                          ac_lo= ac_hi=
18963                          break
18964                        fi
18965                        ac_mid=`expr 2 '*' $ac_mid`
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968   done
18969 else
18970   echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18972
18973 ac_lo= ac_hi=
18974 fi
18975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 fi
18977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18978 # Binary search between lo and hi bounds.
18979 while test "x$ac_lo" != "x$ac_hi"; do
18980   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18981   cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 $ac_includes_default
18988 int
18989 main ()
18990 {
18991 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
18992 test_array [0] = 0
18993
18994   ;
18995   return 0;
18996 }
18997 _ACEOF
18998 rm -f conftest.$ac_objext
18999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19000   (eval $ac_compile) 2>conftest.er1
19001   ac_status=$?
19002   grep -v '^ *+' conftest.er1 >conftest.err
19003   rm -f conftest.er1
19004   cat conftest.err >&5
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } &&
19007          { ac_try='test -z "$ac_c_werror_flag"
19008                          || test ! -s conftest.err'
19009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010   (eval $ac_try) 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; } &&
19014          { ac_try='test -s conftest.$ac_objext'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; }; then
19020   ac_hi=$ac_mid
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_lo=`expr '(' $ac_mid ')' + 1`
19026 fi
19027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19028 done
19029 case $ac_lo in
19030 ?*) ac_cv_sizeof_voidp=$ac_lo;;
19031 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
19032 See \`config.log' for more details." >&5
19033 echo "$as_me: error: cannot compute sizeof (void*), 77
19034 See \`config.log' for more details." >&2;}
19035    { (exit 1); exit 1; }; } ;;
19036 esac
19037 else
19038   if test "$cross_compiling" = yes; then
19039   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19040 See \`config.log' for more details." >&5
19041 echo "$as_me: error: cannot run test program while cross compiling
19042 See \`config.log' for more details." >&2;}
19043    { (exit 1); exit 1; }; }
19044 else
19045   cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 $ac_includes_default
19052 long longval () { return (long) (sizeof (void*)); }
19053 unsigned long ulongval () { return (long) (sizeof (void*)); }
19054 #include <stdio.h>
19055 #include <stdlib.h>
19056 int
19057 main ()
19058 {
19059
19060   FILE *f = fopen ("conftest.val", "w");
19061   if (! f)
19062     exit (1);
19063   if (((long) (sizeof (void*))) < 0)
19064     {
19065       long i = longval ();
19066       if (i != ((long) (sizeof (void*))))
19067         exit (1);
19068       fprintf (f, "%ld\n", i);
19069     }
19070   else
19071     {
19072       unsigned long i = ulongval ();
19073       if (i != ((long) (sizeof (void*))))
19074         exit (1);
19075       fprintf (f, "%lu\n", i);
19076     }
19077   exit (ferror (f) || fclose (f) != 0);
19078
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest$ac_exeext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085   (eval $ac_link) 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090   (eval $ac_try) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); }; }; then
19094   ac_cv_sizeof_voidp=`cat conftest.val`
19095 else
19096   echo "$as_me: program exited with status $ac_status" >&5
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ( exit $ac_status )
19101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
19102 See \`config.log' for more details." >&5
19103 echo "$as_me: error: cannot compute sizeof (void*), 77
19104 See \`config.log' for more details." >&2;}
19105    { (exit 1); exit 1; }; }
19106 fi
19107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19108 fi
19109 fi
19110 rm -f conftest.val
19111 else
19112   ac_cv_sizeof_voidp=0
19113 fi
19114 fi
19115 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
19116 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
19117 cat >>confdefs.h <<_ACEOF
19118 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
19119 _ACEOF
19120
19121
19122    ac_cv_char_data_model=""
19123    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
19124    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
19125    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
19126    ac_cv_long_data_model=""
19127    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
19128    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
19129    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
19130    echo "$as_me:$LINENO: checking data model" >&5
19131 echo $ECHO_N "checking data model... $ECHO_C" >&6
19132    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
19133     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
19134     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
19135     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
19136     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
19137     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
19138     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
19139     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
19140     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
19141     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
19142     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
19143     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
19144     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
19145     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
19146     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
19147     222/*|333/*|444/*|666/*|888/*) :
19148                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
19149      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
19150    esac
19151    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
19152 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
19153
19154 fi
19155
19156 if test "_$ac_cv_header_stdint_x" != "_" ; then
19157    ac_cv_header_stdint="$ac_cv_header_stdint_x"
19158 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
19159    ac_cv_header_stdint="$ac_cv_header_stdint_o"
19160 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
19161    ac_cv_header_stdint="$ac_cv_header_stdint_u"
19162 else
19163    ac_cv_header_stdint="stddef.h"
19164 fi
19165
19166 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
19167 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
19168 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
19169 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
19170 unset ac_cv_type_int_least32_t
19171 unset ac_cv_type_int_fast32_t
19172 echo "$as_me:$LINENO: checking for int_least32_t" >&5
19173 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
19174 if test "${ac_cv_type_int_least32_t+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #include <$ac_cv_header_stdint>
19184
19185 int
19186 main ()
19187 {
19188 if ((int_least32_t *) 0)
19189   return 0;
19190 if (sizeof (int_least32_t))
19191   return 0;
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198   (eval $ac_compile) 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -z "$ac_c_werror_flag"
19206                          || test ! -s conftest.err'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest.$ac_objext'
19213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214   (eval $ac_try) 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; }; then
19218   ac_cv_type_int_least32_t=yes
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 ac_cv_type_int_least32_t=no
19224 fi
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 fi
19227 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
19228 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
19229
19230 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
19231 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
19232 if test "${ac_cv_type_int_fast32_t+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 #include<$ac_cv_header_stdint>
19242
19243 int
19244 main ()
19245 {
19246 if ((int_fast32_t *) 0)
19247   return 0;
19248 if (sizeof (int_fast32_t))
19249   return 0;
19250   ;
19251   return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256   (eval $ac_compile) 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } &&
19263          { ac_try='test -z "$ac_c_werror_flag"
19264                          || test ! -s conftest.err'
19265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266   (eval $ac_try) 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; } &&
19270          { ac_try='test -s conftest.$ac_objext'
19271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272   (eval $ac_try) 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276   ac_cv_type_int_fast32_t=yes
19277 else
19278   echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ac_cv_type_int_fast32_t=no
19282 fi
19283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19284 fi
19285 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
19286 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
19287
19288 echo "$as_me:$LINENO: checking for intmax_t" >&5
19289 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
19290 if test "${ac_cv_type_intmax_t+set}" = set; then
19291   echo $ECHO_N "(cached) $ECHO_C" >&6
19292 else
19293   cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <$ac_cv_header_stdint>
19300
19301 int
19302 main ()
19303 {
19304 if ((intmax_t *) 0)
19305   return 0;
19306 if (sizeof (intmax_t))
19307   return 0;
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest.$ac_objext
19313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19314   (eval $ac_compile) 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } &&
19321          { ac_try='test -z "$ac_c_werror_flag"
19322                          || test ! -s conftest.err'
19323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324   (eval $ac_try) 2>&5
19325   ac_status=$?
19326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); }; } &&
19328          { ac_try='test -s conftest.$ac_objext'
19329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330   (eval $ac_try) 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; }; then
19334   ac_cv_type_intmax_t=yes
19335 else
19336   echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 ac_cv_type_intmax_t=no
19340 fi
19341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342 fi
19343 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
19344 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
19345
19346
19347 fi # shortcircut to system "stdint.h"
19348 # ------------------ PREPARE VARIABLES ------------------------------
19349 if test "$GCC" = "yes" ; then
19350 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
19351 else
19352 ac_cv_stdint_message="using $CC"
19353 fi
19354
19355 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
19356 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
19357
19358 # ----------------- DONE inttypes.h checks START header -------------
19359           ac_config_commands="$ac_config_commands $ac_stdint_h"
19360
19361
19362
19363
19364 # Check whether --with-glibj_zip or --without-glibj_zip was given.
19365 if test "${with_glibj_zip+set}" = set; then
19366   withval="$with_glibj_zip"
19367
19368 fi;
19369
19370 case "$with_glibj_zip" in
19371 "")
19372         use_glibj_zip=false
19373         ;;
19374 "no" )
19375         use_glibj_zip=false
19376         ;;
19377 "yes")
19378         { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
19379 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
19380    { (exit 1); exit 1; }; }
19381         ;;
19382 *)
19383         use_glibj_zip=true
19384         PATH_TO_GLIBJ_ZIP=$with_glibj_zip
19385         ;;
19386 esac;
19387
19388
19389
19390 if test x$use_glibj_zip = xtrue; then
19391   USE_PREBUILT_GLIBJ_ZIP_TRUE=
19392   USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
19393 else
19394   USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
19395   USE_PREBUILT_GLIBJ_ZIP_FALSE=
19396 fi
19397
19398
19399
19400
19401 # Check whether --with-escher or --without-escher was given.
19402 if test "${with_escher+set}" = set; then
19403   withval="$with_escher"
19404
19405 fi;
19406 case "$with_escher" in
19407 "")
19408         use_escher=false
19409         ;;
19410 "no")
19411         use_escher=false
19412         ;;
19413 "yes")
19414         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
19415 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
19416    { (exit 1); exit 1; }; }
19417         ;;
19418 *)
19419         use_escher=true
19420         PATH_TO_ESCHER=$with_escher
19421         ;;
19422 esac
19423
19424
19425
19426 if test x$use_escher = xtrue; then
19427   USE_ESCHER_TRUE=
19428   USE_ESCHER_FALSE='#'
19429 else
19430   USE_ESCHER_TRUE='#'
19431   USE_ESCHER_FALSE=
19432 fi
19433
19434
19435
19436 # Check whether --enable-local-sockets or --disable-local-sockets was given.
19437 if test "${enable_local_sockets+set}" = set; then
19438   enableval="$enable_local_sockets"
19439   case "${enableval}" in
19440                 yes)
19441                   ENABLE_LOCAL_SOCKETS=yes
19442                   ;;
19443                 *)
19444                   ENABLE_LOCAL_SOCKETS=no
19445                   ;;
19446                esac
19447 fi;
19448 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
19449 then
19450   if test "${ac_cv_header_sys_un_h+set}" = set; then
19451   echo "$as_me:$LINENO: checking for sys/un.h" >&5
19452 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
19453 if test "${ac_cv_header_sys_un_h+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 fi
19456 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
19457 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
19458 else
19459   # Is the header compilable?
19460 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
19461 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 $ac_includes_default
19469 #include <sys/un.h>
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19473   (eval $ac_compile) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -z "$ac_c_werror_flag"
19481                          || test ! -s conftest.err'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; } &&
19487          { ac_try='test -s conftest.$ac_objext'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   ac_header_compiler=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498 ac_header_compiler=no
19499 fi
19500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19502 echo "${ECHO_T}$ac_header_compiler" >&6
19503
19504 # Is the header present?
19505 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
19506 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513 #include <sys/un.h>
19514 _ACEOF
19515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19517   ac_status=$?
19518   grep -v '^ *+' conftest.er1 >conftest.err
19519   rm -f conftest.er1
19520   cat conftest.err >&5
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } >/dev/null; then
19523   if test -s conftest.err; then
19524     ac_cpp_err=$ac_c_preproc_warn_flag
19525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19526   else
19527     ac_cpp_err=
19528   fi
19529 else
19530   ac_cpp_err=yes
19531 fi
19532 if test -z "$ac_cpp_err"; then
19533   ac_header_preproc=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538   ac_header_preproc=no
19539 fi
19540 rm -f conftest.err conftest.$ac_ext
19541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19542 echo "${ECHO_T}$ac_header_preproc" >&6
19543
19544 # So?  What about this header?
19545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19546   yes:no: )
19547     { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
19548 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19549     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
19550 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
19551     ac_header_preproc=yes
19552     ;;
19553   no:yes:* )
19554     { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
19555 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
19556     { echo "$as_me:$LINENO: WARNING: sys/un.h:     check for missing prerequisite headers?" >&5
19557 echo "$as_me: WARNING: sys/un.h:     check for missing prerequisite headers?" >&2;}
19558     { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
19559 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
19560     { echo "$as_me:$LINENO: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&5
19561 echo "$as_me: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19562     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
19563 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
19564     { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
19565 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
19566     (
19567       cat <<\_ASBOX
19568 ## -------------------------------- ##
19569 ## Report this to classpath@gnu.org ##
19570 ## -------------------------------- ##
19571 _ASBOX
19572     ) |
19573       sed "s/^/$as_me: WARNING:     /" >&2
19574     ;;
19575 esac
19576 echo "$as_me:$LINENO: checking for sys/un.h" >&5
19577 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
19578 if test "${ac_cv_header_sys_un_h+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   ac_cv_header_sys_un_h=$ac_header_preproc
19582 fi
19583 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
19584 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
19585
19586 fi
19587
19588
19589
19590
19591
19592
19593
19594
19595 for ac_func in read write bind listen accept shutdown
19596 do
19597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19598 echo "$as_me:$LINENO: checking for $ac_func" >&5
19599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19600 if eval "test \"\${$as_ac_var+set}\" = set"; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   if test x$gcc_no_link = xyes; then
19604   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19606    { (exit 1); exit 1; }; }
19607 fi
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19616 #define $ac_func innocuous_$ac_func
19617
19618 /* System header to define __stub macros and hopefully few prototypes,
19619     which can conflict with char $ac_func (); below.
19620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19621     <limits.h> exists even on freestanding compilers.  */
19622
19623 #ifdef __STDC__
19624 # include <limits.h>
19625 #else
19626 # include <assert.h>
19627 #endif
19628
19629 #undef $ac_func
19630
19631 /* Override any gcc2 internal prototype to avoid an error.  */
19632 #ifdef __cplusplus
19633 extern "C"
19634 {
19635 #endif
19636 /* We use char because int might match the return type of a gcc2
19637    builtin and then its argument prototype would still apply.  */
19638 char $ac_func ();
19639 /* The GNU C library defines this for functions which it implements
19640     to always fail with ENOSYS.  Some functions are actually named
19641     something starting with __ and the normal name is an alias.  */
19642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19643 choke me
19644 #else
19645 char (*f) () = $ac_func;
19646 #endif
19647 #ifdef __cplusplus
19648 }
19649 #endif
19650
19651 int
19652 main ()
19653 {
19654 return f != $ac_func;
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661   (eval $ac_link) 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } &&
19668          { ac_try='test -z "$ac_c_werror_flag"
19669                          || test ! -s conftest.err'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; } &&
19675          { ac_try='test -s conftest$ac_exeext'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   eval "$as_ac_var=yes"
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 eval "$as_ac_var=no"
19687 fi
19688 rm -f conftest.err conftest.$ac_objext \
19689       conftest$ac_exeext conftest.$ac_ext
19690 fi
19691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19693 if test `eval echo '${'$as_ac_var'}'` = yes; then
19694   cat >>confdefs.h <<_ACEOF
19695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19696 _ACEOF
19697
19698 else
19699   { { echo "$as_me:$LINENO: error: networking support not available" >&5
19700 echo "$as_me: error: networking support not available" >&2;}
19701    { (exit 1); exit 1; }; }
19702 fi
19703 done
19704
19705
19706 cat >>confdefs.h <<\_ACEOF
19707 #define ENABLE_LOCAL_SOCKETS 1
19708 _ACEOF
19709
19710 fi
19711
19712
19713 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
19714   ENABLE_LOCAL_SOCKETS_TRUE=
19715   ENABLE_LOCAL_SOCKETS_FALSE='#'
19716 else
19717   ENABLE_LOCAL_SOCKETS_TRUE='#'
19718   ENABLE_LOCAL_SOCKETS_FALSE=
19719 fi
19720
19721
19722
19723
19724                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/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/jni/native-lib/Makefile native/plugin/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"
19725
19726
19727 if test "x${COMPILE_WRAPPERS}" = xno
19728 then
19729                                                                                                                         ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
19730
19731           ac_config_commands="$ac_config_commands gappletviewer"
19732
19733           ac_config_commands="$ac_config_commands gjarsigner"
19734
19735           ac_config_commands="$ac_config_commands gkeytool"
19736
19737           ac_config_commands="$ac_config_commands gjar"
19738
19739           ac_config_commands="$ac_config_commands gnative2ascii"
19740
19741           ac_config_commands="$ac_config_commands gserialver"
19742
19743           ac_config_commands="$ac_config_commands grmiregistry"
19744
19745           ac_config_commands="$ac_config_commands gtnameserv"
19746
19747           ac_config_commands="$ac_config_commands gorbd"
19748
19749           ac_config_commands="$ac_config_commands grmid"
19750
19751           ac_config_commands="$ac_config_commands grmic"
19752
19753           ac_config_commands="$ac_config_commands gjavah"
19754
19755 fi
19756
19757           ac_config_commands="$ac_config_commands gen-classlist"
19758
19759           ac_config_commands="$ac_config_commands copy-vmresources"
19760
19761 cat >confcache <<\_ACEOF
19762 # This file is a shell script that caches the results of configure
19763 # tests run on this system so they can be shared between configure
19764 # scripts and configure runs, see configure's option --config-cache.
19765 # It is not useful on other systems.  If it contains results you don't
19766 # want to keep, you may remove or edit it.
19767 #
19768 # config.status only pays attention to the cache file if you give it
19769 # the --recheck option to rerun configure.
19770 #
19771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19773 # following values.
19774
19775 _ACEOF
19776
19777 # The following way of writing the cache mishandles newlines in values,
19778 # but we know of no workaround that is simple, portable, and efficient.
19779 # So, don't put newlines in cache variables' values.
19780 # Ultrix sh set writes to stderr and can't be redirected directly,
19781 # and sets the high bit in the cache file unless we assign to the vars.
19782 {
19783   (set) 2>&1 |
19784     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19785     *ac_space=\ *)
19786       # `set' does not quote correctly, so add quotes (double-quote
19787       # substitution turns \\\\ into \\, and sed turns \\ into \).
19788       sed -n \
19789         "s/'/'\\\\''/g;
19790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19791       ;;
19792     *)
19793       # `set' quotes correctly as required by POSIX, so do not add quotes.
19794       sed -n \
19795         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19796       ;;
19797     esac;
19798 } |
19799   sed '
19800      t clear
19801      : clear
19802      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19803      t end
19804      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19805      : end' >>confcache
19806 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19807   if test -w $cache_file; then
19808     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19809     cat confcache >$cache_file
19810   else
19811     echo "not updating unwritable cache $cache_file"
19812   fi
19813 fi
19814 rm -f confcache
19815
19816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19817 # Let make expand exec_prefix.
19818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19819
19820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19822 # trailing colons and then remove the whole line if VPATH becomes empty
19823 # (actually we leave an empty line to preserve line numbers).
19824 if test "x$srcdir" = x.; then
19825   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19826 s/:*\$(srcdir):*/:/;
19827 s/:*\${srcdir}:*/:/;
19828 s/:*@srcdir@:*/:/;
19829 s/^\([^=]*=[     ]*\):*/\1/;
19830 s/:*$//;
19831 s/^[^=]*=[       ]*$//;
19832 }'
19833 fi
19834
19835 DEFS=-DHAVE_CONFIG_H
19836
19837 ac_libobjs=
19838 ac_ltlibobjs=
19839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19840   # 1. Remove the extension, and $U if already installed.
19841   ac_i=`echo "$ac_i" |
19842          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19843   # 2. Add them.
19844   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19845   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19846 done
19847 LIBOBJS=$ac_libobjs
19848
19849 LTLIBOBJS=$ac_ltlibobjs
19850
19851
19852 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
19853   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
19854 Usually this means the macro was only invoked conditionally." >&5
19855 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
19856 Usually this means the macro was only invoked conditionally." >&2;}
19857    { (exit 1); exit 1; }; }
19858 fi
19859 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
19860   { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
19861 Usually this means the macro was only invoked conditionally." >&5
19862 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
19863 Usually this means the macro was only invoked conditionally." >&2;}
19864    { (exit 1); exit 1; }; }
19865 fi
19866 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
19867   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
19868 Usually this means the macro was only invoked conditionally." >&5
19869 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
19870 Usually this means the macro was only invoked conditionally." >&2;}
19871    { (exit 1); exit 1; }; }
19872 fi
19873 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
19874   { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
19875 Usually this means the macro was only invoked conditionally." >&5
19876 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
19877 Usually this means the macro was only invoked conditionally." >&2;}
19878    { (exit 1); exit 1; }; }
19879 fi
19880 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
19881   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
19882 Usually this means the macro was only invoked conditionally." >&5
19883 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
19884 Usually this means the macro was only invoked conditionally." >&2;}
19885    { (exit 1); exit 1; }; }
19886 fi
19887 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
19888   { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19889 Usually this means the macro was only invoked conditionally." >&5
19890 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19891 Usually this means the macro was only invoked conditionally." >&2;}
19892    { (exit 1); exit 1; }; }
19893 fi
19894 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19895   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19896 Usually this means the macro was only invoked conditionally." >&5
19897 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&2;}
19899    { (exit 1); exit 1; }; }
19900 fi
19901 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19902   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19903 Usually this means the macro was only invoked conditionally." >&5
19904 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&2;}
19906    { (exit 1); exit 1; }; }
19907 fi
19908 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
19909   { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19910 Usually this means the macro was only invoked conditionally." >&5
19911 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&2;}
19913    { (exit 1); exit 1; }; }
19914 fi
19915 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
19916   { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19917 Usually this means the macro was only invoked conditionally." >&5
19918 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&2;}
19920    { (exit 1); exit 1; }; }
19921 fi
19922 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
19923   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19924 Usually this means the macro was only invoked conditionally." >&5
19925 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19926 Usually this means the macro was only invoked conditionally." >&2;}
19927    { (exit 1); exit 1; }; }
19928 fi
19929 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
19930   { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19931 Usually this means the macro was only invoked conditionally." >&5
19932 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19933 Usually this means the macro was only invoked conditionally." >&2;}
19934    { (exit 1); exit 1; }; }
19935 fi
19936 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
19937   { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
19938 Usually this means the macro was only invoked conditionally." >&5
19939 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
19940 Usually this means the macro was only invoked conditionally." >&2;}
19941    { (exit 1); exit 1; }; }
19942 fi
19943 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
19944   { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
19945 Usually this means the macro was only invoked conditionally." >&5
19946 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
19947 Usually this means the macro was only invoked conditionally." >&2;}
19948    { (exit 1); exit 1; }; }
19949 fi
19950 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
19951   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19952 Usually this means the macro was only invoked conditionally." >&5
19953 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19954 Usually this means the macro was only invoked conditionally." >&2;}
19955    { (exit 1); exit 1; }; }
19956 fi
19957 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
19958   { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
19959 Usually this means the macro was only invoked conditionally." >&5
19960 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
19961 Usually this means the macro was only invoked conditionally." >&2;}
19962    { (exit 1); exit 1; }; }
19963 fi
19964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19965   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19966 Usually this means the macro was only invoked conditionally." >&5
19967 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19968 Usually this means the macro was only invoked conditionally." >&2;}
19969    { (exit 1); exit 1; }; }
19970 fi
19971 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19972   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19973 Usually this means the macro was only invoked conditionally." >&5
19974 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19975 Usually this means the macro was only invoked conditionally." >&2;}
19976    { (exit 1); exit 1; }; }
19977 fi
19978 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
19979   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19980 Usually this means the macro was only invoked conditionally." >&5
19981 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19982 Usually this means the macro was only invoked conditionally." >&2;}
19983    { (exit 1); exit 1; }; }
19984 fi
19985 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
19986   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
19987 Usually this means the macro was only invoked conditionally." >&5
19988 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
19989 Usually this means the macro was only invoked conditionally." >&2;}
19990    { (exit 1); exit 1; }; }
19991 fi
19992 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
19993   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
19994 Usually this means the macro was only invoked conditionally." >&5
19995 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
19996 Usually this means the macro was only invoked conditionally." >&2;}
19997    { (exit 1); exit 1; }; }
19998 fi
19999 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
20000   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
20001 Usually this means the macro was only invoked conditionally." >&5
20002 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&2;}
20004    { (exit 1); exit 1; }; }
20005 fi
20006 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
20007   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&5
20009 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&2;}
20011    { (exit 1); exit 1; }; }
20012 fi
20013 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
20014   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&5
20016 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&2;}
20018    { (exit 1); exit 1; }; }
20019 fi
20020 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
20021   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
20022 Usually this means the macro was only invoked conditionally." >&5
20023 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&2;}
20025    { (exit 1); exit 1; }; }
20026 fi
20027 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
20028   { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
20029 Usually this means the macro was only invoked conditionally." >&5
20030 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&2;}
20032    { (exit 1); exit 1; }; }
20033 fi
20034 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
20035   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
20036 Usually this means the macro was only invoked conditionally." >&5
20037 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&2;}
20039    { (exit 1); exit 1; }; }
20040 fi
20041 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
20042   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
20043 Usually this means the macro was only invoked conditionally." >&5
20044 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
20045 Usually this means the macro was only invoked conditionally." >&2;}
20046    { (exit 1); exit 1; }; }
20047 fi
20048 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20049   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20050 Usually this means the macro was only invoked conditionally." >&5
20051 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20052 Usually this means the macro was only invoked conditionally." >&2;}
20053    { (exit 1); exit 1; }; }
20054 fi
20055 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
20056   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
20057 Usually this means the macro was only invoked conditionally." >&5
20058 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
20059 Usually this means the macro was only invoked conditionally." >&2;}
20060    { (exit 1); exit 1; }; }
20061 fi
20062 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
20063   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
20064 Usually this means the macro was only invoked conditionally." >&5
20065 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
20066 Usually this means the macro was only invoked conditionally." >&2;}
20067    { (exit 1); exit 1; }; }
20068 fi
20069 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
20070   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
20071 Usually this means the macro was only invoked conditionally." >&5
20072 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
20073 Usually this means the macro was only invoked conditionally." >&2;}
20074    { (exit 1); exit 1; }; }
20075 fi
20076 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
20077   { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
20078 Usually this means the macro was only invoked conditionally." >&5
20079 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
20080 Usually this means the macro was only invoked conditionally." >&2;}
20081    { (exit 1); exit 1; }; }
20082 fi
20083 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
20084   { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
20085 Usually this means the macro was only invoked conditionally." >&5
20086 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
20087 Usually this means the macro was only invoked conditionally." >&2;}
20088    { (exit 1); exit 1; }; }
20089 fi
20090 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
20091   { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
20092 Usually this means the macro was only invoked conditionally." >&5
20093 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
20094 Usually this means the macro was only invoked conditionally." >&2;}
20095    { (exit 1); exit 1; }; }
20096 fi
20097 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
20098   { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
20099 Usually this means the macro was only invoked conditionally." >&5
20100 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
20101 Usually this means the macro was only invoked conditionally." >&2;}
20102    { (exit 1); exit 1; }; }
20103 fi
20104 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
20105   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
20106 Usually this means the macro was only invoked conditionally." >&5
20107 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
20108 Usually this means the macro was only invoked conditionally." >&2;}
20109    { (exit 1); exit 1; }; }
20110 fi
20111
20112 : ${CONFIG_STATUS=./config.status}
20113 ac_clean_files_save=$ac_clean_files
20114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20115 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20116 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20117 cat >$CONFIG_STATUS <<_ACEOF
20118 #! $SHELL
20119 # Generated by $as_me.
20120 # Run this file to recreate the current configuration.
20121 # Compiler output produced by configure, useful for debugging
20122 # configure, is in config.log if it exists.
20123
20124 debug=false
20125 ac_cs_recheck=false
20126 ac_cs_silent=false
20127 SHELL=\${CONFIG_SHELL-$SHELL}
20128 _ACEOF
20129
20130 cat >>$CONFIG_STATUS <<\_ACEOF
20131 ## --------------------- ##
20132 ## M4sh Initialization.  ##
20133 ## --------------------- ##
20134
20135 # Be Bourne compatible
20136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20137   emulate sh
20138   NULLCMD=:
20139   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20140   # is contrary to our usage.  Disable this feature.
20141   alias -g '${1+"$@"}'='"$@"'
20142 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20143   set -o posix
20144 fi
20145 DUALCASE=1; export DUALCASE # for MKS sh
20146
20147 # Support unset when possible.
20148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20149   as_unset=unset
20150 else
20151   as_unset=false
20152 fi
20153
20154
20155 # Work around bugs in pre-3.0 UWIN ksh.
20156 $as_unset ENV MAIL MAILPATH
20157 PS1='$ '
20158 PS2='> '
20159 PS4='+ '
20160
20161 # NLS nuisances.
20162 for as_var in \
20163   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20164   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20165   LC_TELEPHONE LC_TIME
20166 do
20167   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20168     eval $as_var=C; export $as_var
20169   else
20170     $as_unset $as_var
20171   fi
20172 done
20173
20174 # Required to use basename.
20175 if expr a : '\(a\)' >/dev/null 2>&1; then
20176   as_expr=expr
20177 else
20178   as_expr=false
20179 fi
20180
20181 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20182   as_basename=basename
20183 else
20184   as_basename=false
20185 fi
20186
20187
20188 # Name of the executable.
20189 as_me=`$as_basename "$0" ||
20190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20191          X"$0" : 'X\(//\)$' \| \
20192          X"$0" : 'X\(/\)$' \| \
20193          .     : '\(.\)' 2>/dev/null ||
20194 echo X/"$0" |
20195     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20196           /^X\/\(\/\/\)$/{ s//\1/; q; }
20197           /^X\/\(\/\).*/{ s//\1/; q; }
20198           s/.*/./; q'`
20199
20200
20201 # PATH needs CR, and LINENO needs CR and PATH.
20202 # Avoid depending upon Character Ranges.
20203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20206 as_cr_digits='0123456789'
20207 as_cr_alnum=$as_cr_Letters$as_cr_digits
20208
20209 # The user is always right.
20210 if test "${PATH_SEPARATOR+set}" != set; then
20211   echo "#! /bin/sh" >conf$$.sh
20212   echo  "exit 0"   >>conf$$.sh
20213   chmod +x conf$$.sh
20214   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20215     PATH_SEPARATOR=';'
20216   else
20217     PATH_SEPARATOR=:
20218   fi
20219   rm -f conf$$.sh
20220 fi
20221
20222
20223   as_lineno_1=$LINENO
20224   as_lineno_2=$LINENO
20225   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20226   test "x$as_lineno_1" != "x$as_lineno_2" &&
20227   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20228   # Find who we are.  Look in the path if we contain no path at all
20229   # relative or not.
20230   case $0 in
20231     *[\\/]* ) as_myself=$0 ;;
20232     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20233 for as_dir in $PATH
20234 do
20235   IFS=$as_save_IFS
20236   test -z "$as_dir" && as_dir=.
20237   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20238 done
20239
20240        ;;
20241   esac
20242   # We did not find ourselves, most probably we were run as `sh COMMAND'
20243   # in which case we are not to be found in the path.
20244   if test "x$as_myself" = x; then
20245     as_myself=$0
20246   fi
20247   if test ! -f "$as_myself"; then
20248     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20249 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20250    { (exit 1); exit 1; }; }
20251   fi
20252   case $CONFIG_SHELL in
20253   '')
20254     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20255 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20256 do
20257   IFS=$as_save_IFS
20258   test -z "$as_dir" && as_dir=.
20259   for as_base in sh bash ksh sh5; do
20260          case $as_dir in
20261          /*)
20262            if ("$as_dir/$as_base" -c '
20263   as_lineno_1=$LINENO
20264   as_lineno_2=$LINENO
20265   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20266   test "x$as_lineno_1" != "x$as_lineno_2" &&
20267   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20268              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20269              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20270              CONFIG_SHELL=$as_dir/$as_base
20271              export CONFIG_SHELL
20272              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20273            fi;;
20274          esac
20275        done
20276 done
20277 ;;
20278   esac
20279
20280   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20281   # uniformly replaced by the line number.  The first 'sed' inserts a
20282   # line-number line before each line; the second 'sed' does the real
20283   # work.  The second script uses 'N' to pair each line-number line
20284   # with the numbered line, and appends trailing '-' during
20285   # substitution so that $LINENO is not a special case at line end.
20286   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20287   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20288   sed '=' <$as_myself |
20289     sed '
20290       N
20291       s,$,-,
20292       : loop
20293       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20294       t loop
20295       s,-$,,
20296       s,^['$as_cr_digits']*\n,,
20297     ' >$as_me.lineno &&
20298   chmod +x $as_me.lineno ||
20299     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20300 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20301    { (exit 1); exit 1; }; }
20302
20303   # Don't try to exec as it changes $[0], causing all sort of problems
20304   # (the dirname of $[0] is not the place where we might find the
20305   # original and so on.  Autoconf is especially sensible to this).
20306   . ./$as_me.lineno
20307   # Exit status is that of the last command.
20308   exit
20309 }
20310
20311
20312 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20313   *c*,-n*) ECHO_N= ECHO_C='
20314 ' ECHO_T='      ' ;;
20315   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20316   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20317 esac
20318
20319 if expr a : '\(a\)' >/dev/null 2>&1; then
20320   as_expr=expr
20321 else
20322   as_expr=false
20323 fi
20324
20325 rm -f conf$$ conf$$.exe conf$$.file
20326 echo >conf$$.file
20327 if ln -s conf$$.file conf$$ 2>/dev/null; then
20328   # We could just check for DJGPP; but this test a) works b) is more generic
20329   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20330   if test -f conf$$.exe; then
20331     # Don't use ln at all; we don't have any links
20332     as_ln_s='cp -p'
20333   else
20334     as_ln_s='ln -s'
20335   fi
20336 elif ln conf$$.file conf$$ 2>/dev/null; then
20337   as_ln_s=ln
20338 else
20339   as_ln_s='cp -p'
20340 fi
20341 rm -f conf$$ conf$$.exe conf$$.file
20342
20343 if mkdir -p . 2>/dev/null; then
20344   as_mkdir_p=:
20345 else
20346   test -d ./-p && rmdir ./-p
20347   as_mkdir_p=false
20348 fi
20349
20350 as_executable_p="test -f"
20351
20352 # Sed expression to map a string onto a valid CPP name.
20353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20354
20355 # Sed expression to map a string onto a valid variable name.
20356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20357
20358
20359 # IFS
20360 # We need space, tab and new line, in precisely that order.
20361 as_nl='
20362 '
20363 IFS="   $as_nl"
20364
20365 # CDPATH.
20366 $as_unset CDPATH
20367
20368 exec 6>&1
20369
20370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20371 # report actual input values of CONFIG_FILES etc. instead of their
20372 # values after options handling.  Logging --version etc. is OK.
20373 exec 5>>config.log
20374 {
20375   echo
20376   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20377 ## Running $as_me. ##
20378 _ASBOX
20379 } >&5
20380 cat >&5 <<_CSEOF
20381
20382 This file was extended by GNU Classpath $as_me 0.94-pre, which was
20383 generated by GNU Autoconf 2.59.  Invocation command line was
20384
20385   CONFIG_FILES    = $CONFIG_FILES
20386   CONFIG_HEADERS  = $CONFIG_HEADERS
20387   CONFIG_LINKS    = $CONFIG_LINKS
20388   CONFIG_COMMANDS = $CONFIG_COMMANDS
20389   $ $0 $@
20390
20391 _CSEOF
20392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20393 echo >&5
20394 _ACEOF
20395
20396 # Files that config.status was made for.
20397 if test -n "$ac_config_files"; then
20398   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20399 fi
20400
20401 if test -n "$ac_config_headers"; then
20402   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20403 fi
20404
20405 if test -n "$ac_config_links"; then
20406   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20407 fi
20408
20409 if test -n "$ac_config_commands"; then
20410   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20411 fi
20412
20413 cat >>$CONFIG_STATUS <<\_ACEOF
20414
20415 ac_cs_usage="\
20416 \`$as_me' instantiates files from templates according to the
20417 current configuration.
20418
20419 Usage: $0 [OPTIONS] [FILE]...
20420
20421   -h, --help       print this help, then exit
20422   -V, --version    print version number, then exit
20423   -q, --quiet      do not print progress messages
20424   -d, --debug      don't remove temporary files
20425       --recheck    update $as_me by reconfiguring in the same conditions
20426   --file=FILE[:TEMPLATE]
20427                    instantiate the configuration file FILE
20428   --header=FILE[:TEMPLATE]
20429                    instantiate the configuration header FILE
20430
20431 Configuration files:
20432 $config_files
20433
20434 Configuration headers:
20435 $config_headers
20436
20437 Configuration links:
20438 $config_links
20439
20440 Configuration commands:
20441 $config_commands
20442
20443 Report bugs to <bug-autoconf@gnu.org>."
20444 _ACEOF
20445
20446 cat >>$CONFIG_STATUS <<_ACEOF
20447 ac_cs_version="\\
20448 GNU Classpath config.status 0.94-pre
20449 configured by $0, generated by GNU Autoconf 2.59,
20450   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20451
20452 Copyright (C) 2003 Free Software Foundation, Inc.
20453 This config.status script is free software; the Free Software Foundation
20454 gives unlimited permission to copy, distribute and modify it."
20455 srcdir=$srcdir
20456 INSTALL="$INSTALL"
20457 _ACEOF
20458
20459 cat >>$CONFIG_STATUS <<\_ACEOF
20460 # If no file are specified by the user, then we need to provide default
20461 # value.  By we need to know if files were specified by the user.
20462 ac_need_defaults=:
20463 while test $# != 0
20464 do
20465   case $1 in
20466   --*=*)
20467     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20468     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20469     ac_shift=:
20470     ;;
20471   -*)
20472     ac_option=$1
20473     ac_optarg=$2
20474     ac_shift=shift
20475     ;;
20476   *) # This is not an option, so the user has probably given explicit
20477      # arguments.
20478      ac_option=$1
20479      ac_need_defaults=false;;
20480   esac
20481
20482   case $ac_option in
20483   # Handling of the options.
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<\_ACEOF
20486   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20487     ac_cs_recheck=: ;;
20488   --version | --vers* | -V )
20489     echo "$ac_cs_version"; exit 0 ;;
20490   --he | --h)
20491     # Conflict between --help and --header
20492     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20493 Try \`$0 --help' for more information." >&5
20494 echo "$as_me: error: ambiguous option: $1
20495 Try \`$0 --help' for more information." >&2;}
20496    { (exit 1); exit 1; }; };;
20497   --help | --hel | -h )
20498     echo "$ac_cs_usage"; exit 0 ;;
20499   --debug | --d* | -d )
20500     debug=: ;;
20501   --file | --fil | --fi | --f )
20502     $ac_shift
20503     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20504     ac_need_defaults=false;;
20505   --header | --heade | --head | --hea )
20506     $ac_shift
20507     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20508     ac_need_defaults=false;;
20509   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20510   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20511     ac_cs_silent=: ;;
20512
20513   # This is an error.
20514   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20515 Try \`$0 --help' for more information." >&5
20516 echo "$as_me: error: unrecognized option: $1
20517 Try \`$0 --help' for more information." >&2;}
20518    { (exit 1); exit 1; }; } ;;
20519
20520   *) ac_config_targets="$ac_config_targets $1" ;;
20521
20522   esac
20523   shift
20524 done
20525
20526 ac_configure_extra_args=
20527
20528 if $ac_cs_silent; then
20529   exec 6>/dev/null
20530   ac_configure_extra_args="$ac_configure_extra_args --silent"
20531 fi
20532
20533 _ACEOF
20534 cat >>$CONFIG_STATUS <<_ACEOF
20535 if \$ac_cs_recheck; then
20536   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20537   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20538 fi
20539
20540 _ACEOF
20541
20542 cat >>$CONFIG_STATUS <<_ACEOF
20543 #
20544 # INIT-COMMANDS section.
20545 #
20546
20547 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20548 # variables for create stdint.h replacement
20549 PACKAGE="$PACKAGE"
20550 VERSION="$VERSION"
20551 ac_stdint_h="$ac_stdint_h"
20552 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
20553 ac_cv_stdint_message="$ac_cv_stdint_message"
20554 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
20555 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
20556 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
20557 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
20558 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20559 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20560 ac_cv_char_data_model="$ac_cv_char_data_model"
20561 ac_cv_long_data_model="$ac_cv_long_data_model"
20562 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20563 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20564 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
20565
20566
20567 _ACEOF
20568
20569
20570
20571 cat >>$CONFIG_STATUS <<\_ACEOF
20572 for ac_config_target in $ac_config_targets
20573 do
20574   case "$ac_config_target" in
20575   # Handling of arguments.
20576   "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
20577   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20578   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20579   "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
20580   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
20581   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
20582   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
20583   "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
20584   "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
20585   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
20586   "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
20587   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20588   "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
20589   "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
20590   "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
20591   "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
20592   "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
20593   "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
20594   "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
20595   "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
20596   "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
20597   "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
20598   "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
20599   "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
20600   "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
20601   "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
20602   "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
20603   "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
20604   "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
20605   "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
20606   "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
20607   "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
20608   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20609   "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
20610   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20611   "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
20612   "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
20613   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20614   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20615   "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
20616   "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
20617   "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
20618   "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
20619   "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
20620   "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
20621   "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
20622   "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
20623   "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
20624   "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
20625   "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
20626   "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
20627   "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
20628   "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
20629   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
20630   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20631   "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
20632   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
20633   "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
20634   "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
20635   "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
20636   "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
20637   "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
20638   "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
20639   "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
20640   "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
20641   "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
20642   "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
20643   "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
20644   "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
20645   "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
20646   "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
20647   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20648   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20650    { (exit 1); exit 1; }; };;
20651   esac
20652 done
20653
20654 # If the user did not use the arguments to specify the items to instantiate,
20655 # then the envvar interface is used.  Set only those that are not.
20656 # We use the long form for the default assignment because of an extremely
20657 # bizarre bug on SunOS 4.1.3.
20658 if $ac_need_defaults; then
20659   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20660   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20661   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20662   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20663 fi
20664
20665 # Have a temporary directory for convenience.  Make it in the build tree
20666 # simply because there is no reason to put it here, and in addition,
20667 # creating and moving files from /tmp can sometimes cause problems.
20668 # Create a temporary directory, and hook for its removal unless debugging.
20669 $debug ||
20670 {
20671   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20672   trap '{ (exit 1); exit 1; }' 1 2 13 15
20673 }
20674
20675 # Create a (secure) tmp directory for tmp files.
20676
20677 {
20678   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20679   test -n "$tmp" && test -d "$tmp"
20680 }  ||
20681 {
20682   tmp=./confstat$$-$RANDOM
20683   (umask 077 && mkdir $tmp)
20684 } ||
20685 {
20686    echo "$me: cannot create a temporary directory in ." >&2
20687    { (exit 1); exit 1; }
20688 }
20689
20690 _ACEOF
20691
20692 cat >>$CONFIG_STATUS <<_ACEOF
20693
20694 #
20695 # CONFIG_FILES section.
20696 #
20697
20698 # No need to generate the scripts if there are no CONFIG_FILES.
20699 # This happens for instance when ./config.status config.h
20700 if test -n "\$CONFIG_FILES"; then
20701   # Protect against being on the right side of a sed subst in config.status.
20702   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20703    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20704 s,@SHELL@,$SHELL,;t t
20705 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20706 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20707 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20708 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20709 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20710 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20711 s,@exec_prefix@,$exec_prefix,;t t
20712 s,@prefix@,$prefix,;t t
20713 s,@program_transform_name@,$program_transform_name,;t t
20714 s,@bindir@,$bindir,;t t
20715 s,@sbindir@,$sbindir,;t t
20716 s,@libexecdir@,$libexecdir,;t t
20717 s,@datadir@,$datadir,;t t
20718 s,@sysconfdir@,$sysconfdir,;t t
20719 s,@sharedstatedir@,$sharedstatedir,;t t
20720 s,@localstatedir@,$localstatedir,;t t
20721 s,@libdir@,$libdir,;t t
20722 s,@includedir@,$includedir,;t t
20723 s,@oldincludedir@,$oldincludedir,;t t
20724 s,@infodir@,$infodir,;t t
20725 s,@mandir@,$mandir,;t t
20726 s,@build_alias@,$build_alias,;t t
20727 s,@host_alias@,$host_alias,;t t
20728 s,@target_alias@,$target_alias,;t t
20729 s,@DEFS@,$DEFS,;t t
20730 s,@ECHO_C@,$ECHO_C,;t t
20731 s,@ECHO_N@,$ECHO_N,;t t
20732 s,@ECHO_T@,$ECHO_T,;t t
20733 s,@LIBS@,$LIBS,;t t
20734 s,@build@,$build,;t t
20735 s,@build_cpu@,$build_cpu,;t t
20736 s,@build_vendor@,$build_vendor,;t t
20737 s,@build_os@,$build_os,;t t
20738 s,@host@,$host,;t t
20739 s,@host_cpu@,$host_cpu,;t t
20740 s,@host_vendor@,$host_vendor,;t t
20741 s,@host_os@,$host_os,;t t
20742 s,@target@,$target,;t t
20743 s,@target_cpu@,$target_cpu,;t t
20744 s,@target_vendor@,$target_vendor,;t t
20745 s,@target_os@,$target_os,;t t
20746 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
20747 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
20748 s,@LIBVERSION@,$LIBVERSION,;t t
20749 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
20750 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
20751 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20752 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20753 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20754 s,@CYGPATH_W@,$CYGPATH_W,;t t
20755 s,@PACKAGE@,$PACKAGE,;t t
20756 s,@VERSION@,$VERSION,;t t
20757 s,@ACLOCAL@,$ACLOCAL,;t t
20758 s,@AUTOCONF@,$AUTOCONF,;t t
20759 s,@AUTOMAKE@,$AUTOMAKE,;t t
20760 s,@AUTOHEADER@,$AUTOHEADER,;t t
20761 s,@MAKEINFO@,$MAKEINFO,;t t
20762 s,@install_sh@,$install_sh,;t t
20763 s,@STRIP@,$STRIP,;t t
20764 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20765 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20766 s,@mkdir_p@,$mkdir_p,;t t
20767 s,@AWK@,$AWK,;t t
20768 s,@SET_MAKE@,$SET_MAKE,;t t
20769 s,@am__leading_dot@,$am__leading_dot,;t t
20770 s,@AMTAR@,$AMTAR,;t t
20771 s,@am__tar@,$am__tar,;t t
20772 s,@am__untar@,$am__untar,;t t
20773 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
20774 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
20775 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
20776 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
20777 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
20778 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
20779 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
20780 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
20781 s,@default_toolkit@,$default_toolkit,;t t
20782 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
20783 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
20784 s,@CC@,$CC,;t t
20785 s,@CFLAGS@,$CFLAGS,;t t
20786 s,@LDFLAGS@,$LDFLAGS,;t t
20787 s,@CPPFLAGS@,$CPPFLAGS,;t t
20788 s,@ac_ct_CC@,$ac_ct_CC,;t t
20789 s,@EXEEXT@,$EXEEXT,;t t
20790 s,@OBJEXT@,$OBJEXT,;t t
20791 s,@DEPDIR@,$DEPDIR,;t t
20792 s,@am__include@,$am__include,;t t
20793 s,@am__quote@,$am__quote,;t t
20794 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20795 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20796 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20797 s,@CCDEPMODE@,$CCDEPMODE,;t t
20798 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20799 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20800 s,@CPP@,$CPP,;t t
20801 s,@EGREP@,$EGREP,;t t
20802 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
20803 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
20804 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
20805 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
20806 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
20807 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
20808 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
20809 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
20810 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
20811 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
20812 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
20813 s,@glibjdir@,$glibjdir,;t t
20814 s,@VM_BINARY@,$VM_BINARY,;t t
20815 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
20816 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
20817 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
20818 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
20819 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
20820 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
20821 s,@LN_S@,$LN_S,;t t
20822 s,@RANLIB@,$RANLIB,;t t
20823 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20824 s,@LIBTOOL@,$LIBTOOL,;t t
20825 s,@CXX@,$CXX,;t t
20826 s,@CXXFLAGS@,$CXXFLAGS,;t t
20827 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20828 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20829 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20830 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20831 s,@CXXCPP@,$CXXCPP,;t t
20832 s,@PERL@,$PERL,;t t
20833 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
20834 s,@LIBMAGIC@,$LIBMAGIC,;t t
20835 s,@LIBICONV@,$LIBICONV,;t t
20836 s,@LTLIBICONV@,$LTLIBICONV,;t t
20837 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
20838 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
20839 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
20840 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20841 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
20842 s,@XML_LIBS@,$XML_LIBS,;t t
20843 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
20844 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
20845 s,@X_CFLAGS@,$X_CFLAGS,;t t
20846 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20847 s,@X_LIBS@,$X_LIBS,;t t
20848 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20849 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20850 s,@GTK_LIBS@,$GTK_LIBS,;t t
20851 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
20852 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
20853 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
20854 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
20855 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
20856 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
20857 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
20858 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
20859 s,@GDK_LIBS@,$GDK_LIBS,;t t
20860 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
20861 s,@QT_LIBS@,$QT_LIBS,;t t
20862 s,@MOC@,$MOC,;t t
20863 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
20864 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
20865 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
20866 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
20867 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
20868 s,@USER_JAVAH@,$USER_JAVAH,;t t
20869 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
20870 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
20871 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
20872 s,@GCJ@,$GCJ,;t t
20873 s,@JIKES@,$JIKES,;t t
20874 s,@JIKESENCODING@,$JIKESENCODING,;t t
20875 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
20876 s,@KJC@,$KJC,;t t
20877 s,@GCJX@,$GCJX,;t t
20878 s,@ECJ@,$ECJ,;t t
20879 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
20880 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
20881 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
20882 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
20883 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
20884 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
20885 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
20886 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
20887 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
20888 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
20889 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
20890 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
20891 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
20892 s,@vm_classes@,$vm_classes,;t t
20893 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20894 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20895 s,@MAINT@,$MAINT,;t t
20896 s,@LIBDEBUG@,$LIBDEBUG,;t t
20897 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
20898 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
20899 s,@REMOVE@,$REMOVE,;t t
20900 s,@MKDIR@,$MKDIR,;t t
20901 s,@CP@,$CP,;t t
20902 s,@DATE@,$DATE,;t t
20903 s,@FIND@,$FIND,;t t
20904 s,@ZIP@,$ZIP,;t t
20905 s,@FASTJAR@,$FASTJAR,;t t
20906 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
20907 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
20908 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
20909 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
20910 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
20911 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
20912 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
20913 s,@GJDOC@,$GJDOC,;t t
20914 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
20915 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
20916 s,@JAY@,$JAY,;t t
20917 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
20918 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
20919 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
20920 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
20921 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
20922 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
20923 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
20924 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
20925 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
20926 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
20927 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
20928 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
20929 s,@LIBOBJS@,$LIBOBJS,;t t
20930 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20931 CEOF
20932
20933 _ACEOF
20934
20935   cat >>$CONFIG_STATUS <<\_ACEOF
20936   # Split the substitutions into bite-sized pieces for seds with
20937   # small command number limits, like on Digital OSF/1 and HP-UX.
20938   ac_max_sed_lines=48
20939   ac_sed_frag=1 # Number of current file.
20940   ac_beg=1 # First line for current file.
20941   ac_end=$ac_max_sed_lines # Line after last line for current file.
20942   ac_more_lines=:
20943   ac_sed_cmds=
20944   while $ac_more_lines; do
20945     if test $ac_beg -gt 1; then
20946       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20947     else
20948       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20949     fi
20950     if test ! -s $tmp/subs.frag; then
20951       ac_more_lines=false
20952     else
20953       # The purpose of the label and of the branching condition is to
20954       # speed up the sed processing (if there are no `@' at all, there
20955       # is no need to browse any of the substitutions).
20956       # These are the two extra sed commands mentioned above.
20957       (echo ':t
20958   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20959       if test -z "$ac_sed_cmds"; then
20960         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20961       else
20962         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20963       fi
20964       ac_sed_frag=`expr $ac_sed_frag + 1`
20965       ac_beg=$ac_end
20966       ac_end=`expr $ac_end + $ac_max_sed_lines`
20967     fi
20968   done
20969   if test -z "$ac_sed_cmds"; then
20970     ac_sed_cmds=cat
20971   fi
20972 fi # test -n "$CONFIG_FILES"
20973
20974 _ACEOF
20975 cat >>$CONFIG_STATUS <<\_ACEOF
20976 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20977   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20978   case $ac_file in
20979   - | *:- | *:-:* ) # input from stdin
20980         cat >$tmp/stdin
20981         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20982         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20983   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20985   * )   ac_file_in=$ac_file.in ;;
20986   esac
20987
20988   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20989   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991          X"$ac_file" : 'X\(//\)[^/]' \| \
20992          X"$ac_file" : 'X\(//\)$' \| \
20993          X"$ac_file" : 'X\(/\)' \| \
20994          .     : '\(.\)' 2>/dev/null ||
20995 echo X"$ac_file" |
20996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20997           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20998           /^X\(\/\/\)$/{ s//\1/; q; }
20999           /^X\(\/\).*/{ s//\1/; q; }
21000           s/.*/./; q'`
21001   { if $as_mkdir_p; then
21002     mkdir -p "$ac_dir"
21003   else
21004     as_dir="$ac_dir"
21005     as_dirs=
21006     while test ! -d "$as_dir"; do
21007       as_dirs="$as_dir $as_dirs"
21008       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21010          X"$as_dir" : 'X\(//\)[^/]' \| \
21011          X"$as_dir" : 'X\(//\)$' \| \
21012          X"$as_dir" : 'X\(/\)' \| \
21013          .     : '\(.\)' 2>/dev/null ||
21014 echo X"$as_dir" |
21015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21016           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21017           /^X\(\/\/\)$/{ s//\1/; q; }
21018           /^X\(\/\).*/{ s//\1/; q; }
21019           s/.*/./; q'`
21020     done
21021     test ! -n "$as_dirs" || mkdir $as_dirs
21022   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21023 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21024    { (exit 1); exit 1; }; }; }
21025
21026   ac_builddir=.
21027
21028 if test "$ac_dir" != .; then
21029   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21030   # A "../" for each directory in $ac_dir_suffix.
21031   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21032 else
21033   ac_dir_suffix= ac_top_builddir=
21034 fi
21035
21036 case $srcdir in
21037   .)  # No --srcdir option.  We are building in place.
21038     ac_srcdir=.
21039     if test -z "$ac_top_builddir"; then
21040        ac_top_srcdir=.
21041     else
21042        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21043     fi ;;
21044   [\\/]* | ?:[\\/]* )  # Absolute path.
21045     ac_srcdir=$srcdir$ac_dir_suffix;
21046     ac_top_srcdir=$srcdir ;;
21047   *) # Relative path.
21048     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21049     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21050 esac
21051
21052 # Do not use `cd foo && pwd` to compute absolute paths, because
21053 # the directories may not exist.
21054 case `pwd` in
21055 .) ac_abs_builddir="$ac_dir";;
21056 *)
21057   case "$ac_dir" in
21058   .) ac_abs_builddir=`pwd`;;
21059   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21060   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21061   esac;;
21062 esac
21063 case $ac_abs_builddir in
21064 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21065 *)
21066   case ${ac_top_builddir}. in
21067   .) ac_abs_top_builddir=$ac_abs_builddir;;
21068   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21069   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21070   esac;;
21071 esac
21072 case $ac_abs_builddir in
21073 .) ac_abs_srcdir=$ac_srcdir;;
21074 *)
21075   case $ac_srcdir in
21076   .) ac_abs_srcdir=$ac_abs_builddir;;
21077   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21078   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21079   esac;;
21080 esac
21081 case $ac_abs_builddir in
21082 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21083 *)
21084   case $ac_top_srcdir in
21085   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21086   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21087   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21088   esac;;
21089 esac
21090
21091
21092   case $INSTALL in
21093   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21094   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21095   esac
21096
21097   if test x"$ac_file" != x-; then
21098     { echo "$as_me:$LINENO: creating $ac_file" >&5
21099 echo "$as_me: creating $ac_file" >&6;}
21100     rm -f "$ac_file"
21101   fi
21102   # Let's still pretend it is `configure' which instantiates (i.e., don't
21103   # use $as_me), people would be surprised to read:
21104   #    /* config.h.  Generated by config.status.  */
21105   if test x"$ac_file" = x-; then
21106     configure_input=
21107   else
21108     configure_input="$ac_file.  "
21109   fi
21110   configure_input=$configure_input"Generated from `echo $ac_file_in |
21111                                      sed 's,.*/,,'` by configure."
21112
21113   # First look for the input files in the build tree, otherwise in the
21114   # src tree.
21115   ac_file_inputs=`IFS=:
21116     for f in $ac_file_in; do
21117       case $f in
21118       -) echo $tmp/stdin ;;
21119       [\\/$]*)
21120          # Absolute (can't be DOS-style, as IFS=:)
21121          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21122 echo "$as_me: error: cannot find input file: $f" >&2;}
21123    { (exit 1); exit 1; }; }
21124          echo "$f";;
21125       *) # Relative
21126          if test -f "$f"; then
21127            # Build tree
21128            echo "$f"
21129          elif test -f "$srcdir/$f"; then
21130            # Source tree
21131            echo "$srcdir/$f"
21132          else
21133            # /dev/null tree
21134            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21135 echo "$as_me: error: cannot find input file: $f" >&2;}
21136    { (exit 1); exit 1; }; }
21137          fi;;
21138       esac
21139     done` || { (exit 1); exit 1; }
21140 _ACEOF
21141 cat >>$CONFIG_STATUS <<_ACEOF
21142   sed "$ac_vpsub
21143 $extrasub
21144 _ACEOF
21145 cat >>$CONFIG_STATUS <<\_ACEOF
21146 :t
21147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21148 s,@configure_input@,$configure_input,;t t
21149 s,@srcdir@,$ac_srcdir,;t t
21150 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21151 s,@top_srcdir@,$ac_top_srcdir,;t t
21152 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21153 s,@builddir@,$ac_builddir,;t t
21154 s,@abs_builddir@,$ac_abs_builddir,;t t
21155 s,@top_builddir@,$ac_top_builddir,;t t
21156 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21157 s,@INSTALL@,$ac_INSTALL,;t t
21158 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21159   rm -f $tmp/stdin
21160   if test x"$ac_file" != x-; then
21161     mv $tmp/out $ac_file
21162   else
21163     cat $tmp/out
21164     rm -f $tmp/out
21165   fi
21166
21167 done
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<\_ACEOF
21170
21171 #
21172 # CONFIG_HEADER section.
21173 #
21174
21175 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21176 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21177 #
21178 # ac_d sets the value in "#define NAME VALUE" lines.
21179 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21180 ac_dB='[         ].*$,\1#\2'
21181 ac_dC=' '
21182 ac_dD=',;t'
21183 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21184 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21185 ac_uB='$,\1#\2define\3'
21186 ac_uC=' '
21187 ac_uD=',;t'
21188
21189 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21190   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21191   case $ac_file in
21192   - | *:- | *:-:* ) # input from stdin
21193         cat >$tmp/stdin
21194         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21195         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21196   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21198   * )   ac_file_in=$ac_file.in ;;
21199   esac
21200
21201   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21202 echo "$as_me: creating $ac_file" >&6;}
21203
21204   # First look for the input files in the build tree, otherwise in the
21205   # src tree.
21206   ac_file_inputs=`IFS=:
21207     for f in $ac_file_in; do
21208       case $f in
21209       -) echo $tmp/stdin ;;
21210       [\\/$]*)
21211          # Absolute (can't be DOS-style, as IFS=:)
21212          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21213 echo "$as_me: error: cannot find input file: $f" >&2;}
21214    { (exit 1); exit 1; }; }
21215          # Do quote $f, to prevent DOS paths from being IFS'd.
21216          echo "$f";;
21217       *) # Relative
21218          if test -f "$f"; then
21219            # Build tree
21220            echo "$f"
21221          elif test -f "$srcdir/$f"; then
21222            # Source tree
21223            echo "$srcdir/$f"
21224          else
21225            # /dev/null tree
21226            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21227 echo "$as_me: error: cannot find input file: $f" >&2;}
21228    { (exit 1); exit 1; }; }
21229          fi;;
21230       esac
21231     done` || { (exit 1); exit 1; }
21232   # Remove the trailing spaces.
21233   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21234
21235 _ACEOF
21236
21237 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21238 # `conftest.undefs', that substitutes the proper values into
21239 # config.h.in to produce config.h.  The first handles `#define'
21240 # templates, and the second `#undef' templates.
21241 # And first: Protect against being on the right side of a sed subst in
21242 # config.status.  Protect against being in an unquoted here document
21243 # in config.status.
21244 rm -f conftest.defines conftest.undefs
21245 # Using a here document instead of a string reduces the quoting nightmare.
21246 # Putting comments in sed scripts is not portable.
21247 #
21248 # `end' is used to avoid that the second main sed command (meant for
21249 # 0-ary CPP macros) applies to n-ary macro definitions.
21250 # See the Autoconf documentation for `clear'.
21251 cat >confdef2sed.sed <<\_ACEOF
21252 s/[\\&,]/\\&/g
21253 s,[\\$`],\\&,g
21254 t clear
21255 : clear
21256 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21257 t end
21258 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21259 : end
21260 _ACEOF
21261 # If some macros were called several times there might be several times
21262 # the same #defines, which is useless.  Nevertheless, we may not want to
21263 # sort them, since we want the *last* AC-DEFINE to be honored.
21264 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21265 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21266 rm -f confdef2sed.sed
21267
21268 # This sed command replaces #undef with comments.  This is necessary, for
21269 # example, in the case of _POSIX_SOURCE, which is predefined and required
21270 # on some systems where configure will not decide to define it.
21271 cat >>conftest.undefs <<\_ACEOF
21272 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21273 _ACEOF
21274
21275 # Break up conftest.defines because some shells have a limit on the size
21276 # of here documents, and old seds have small limits too (100 cmds).
21277 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21278 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21279 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21280 echo '  :' >>$CONFIG_STATUS
21281 rm -f conftest.tail
21282 while grep . conftest.defines >/dev/null
21283 do
21284   # Write a limited-size here document to $tmp/defines.sed.
21285   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21286   # Speed up: don't consider the non `#define' lines.
21287   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21288   # Work around the forget-to-reset-the-flag bug.
21289   echo 't clr' >>$CONFIG_STATUS
21290   echo ': clr' >>$CONFIG_STATUS
21291   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21292   echo 'CEOF
21293   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21294   rm -f $tmp/in
21295   mv $tmp/out $tmp/in
21296 ' >>$CONFIG_STATUS
21297   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21298   rm -f conftest.defines
21299   mv conftest.tail conftest.defines
21300 done
21301 rm -f conftest.defines
21302 echo '  fi # grep' >>$CONFIG_STATUS
21303 echo >>$CONFIG_STATUS
21304
21305 # Break up conftest.undefs because some shells have a limit on the size
21306 # of here documents, and old seds have small limits too (100 cmds).
21307 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21308 rm -f conftest.tail
21309 while grep . conftest.undefs >/dev/null
21310 do
21311   # Write a limited-size here document to $tmp/undefs.sed.
21312   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21313   # Speed up: don't consider the non `#undef'
21314   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21315   # Work around the forget-to-reset-the-flag bug.
21316   echo 't clr' >>$CONFIG_STATUS
21317   echo ': clr' >>$CONFIG_STATUS
21318   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21319   echo 'CEOF
21320   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21321   rm -f $tmp/in
21322   mv $tmp/out $tmp/in
21323 ' >>$CONFIG_STATUS
21324   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21325   rm -f conftest.undefs
21326   mv conftest.tail conftest.undefs
21327 done
21328 rm -f conftest.undefs
21329
21330 cat >>$CONFIG_STATUS <<\_ACEOF
21331   # Let's still pretend it is `configure' which instantiates (i.e., don't
21332   # use $as_me), people would be surprised to read:
21333   #    /* config.h.  Generated by config.status.  */
21334   if test x"$ac_file" = x-; then
21335     echo "/* Generated by configure.  */" >$tmp/config.h
21336   else
21337     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21338   fi
21339   cat $tmp/in >>$tmp/config.h
21340   rm -f $tmp/in
21341   if test x"$ac_file" != x-; then
21342     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21343       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21344 echo "$as_me: $ac_file is unchanged" >&6;}
21345     else
21346       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348          X"$ac_file" : 'X\(//\)[^/]' \| \
21349          X"$ac_file" : 'X\(//\)$' \| \
21350          X"$ac_file" : 'X\(/\)' \| \
21351          .     : '\(.\)' 2>/dev/null ||
21352 echo X"$ac_file" |
21353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21354           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21355           /^X\(\/\/\)$/{ s//\1/; q; }
21356           /^X\(\/\).*/{ s//\1/; q; }
21357           s/.*/./; q'`
21358       { if $as_mkdir_p; then
21359     mkdir -p "$ac_dir"
21360   else
21361     as_dir="$ac_dir"
21362     as_dirs=
21363     while test ! -d "$as_dir"; do
21364       as_dirs="$as_dir $as_dirs"
21365       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21367          X"$as_dir" : 'X\(//\)[^/]' \| \
21368          X"$as_dir" : 'X\(//\)$' \| \
21369          X"$as_dir" : 'X\(/\)' \| \
21370          .     : '\(.\)' 2>/dev/null ||
21371 echo X"$as_dir" |
21372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21373           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21374           /^X\(\/\/\)$/{ s//\1/; q; }
21375           /^X\(\/\).*/{ s//\1/; q; }
21376           s/.*/./; q'`
21377     done
21378     test ! -n "$as_dirs" || mkdir $as_dirs
21379   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21380 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21381    { (exit 1); exit 1; }; }; }
21382
21383       rm -f $ac_file
21384       mv $tmp/config.h $ac_file
21385     fi
21386   else
21387     cat $tmp/config.h
21388     rm -f $tmp/config.h
21389   fi
21390 # Compute $ac_file's index in $config_headers.
21391 _am_stamp_count=1
21392 for _am_header in $config_headers :; do
21393   case $_am_header in
21394     $ac_file | $ac_file:* )
21395       break ;;
21396     * )
21397       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21398   esac
21399 done
21400 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21401 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21402          X$ac_file : 'X\(//\)[^/]' \| \
21403          X$ac_file : 'X\(//\)$' \| \
21404          X$ac_file : 'X\(/\)' \| \
21405          .     : '\(.\)' 2>/dev/null ||
21406 echo X$ac_file |
21407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21408           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21409           /^X\(\/\/\)$/{ s//\1/; q; }
21410           /^X\(\/\).*/{ s//\1/; q; }
21411           s/.*/./; q'`/stamp-h$_am_stamp_count
21412 done
21413 _ACEOF
21414 cat >>$CONFIG_STATUS <<\_ACEOF
21415
21416 #
21417 # CONFIG_LINKS section.
21418 #
21419
21420 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21421   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21422   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21423
21424   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21425 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21426
21427   if test ! -r $srcdir/$ac_source; then
21428     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21429 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21430    { (exit 1); exit 1; }; }
21431   fi
21432   rm -f $ac_dest
21433
21434   # Make relative symlinks.
21435   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21436 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21437          X"$ac_dest" : 'X\(//\)[^/]' \| \
21438          X"$ac_dest" : 'X\(//\)$' \| \
21439          X"$ac_dest" : 'X\(/\)' \| \
21440          .     : '\(.\)' 2>/dev/null ||
21441 echo X"$ac_dest" |
21442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21444           /^X\(\/\/\)$/{ s//\1/; q; }
21445           /^X\(\/\).*/{ s//\1/; q; }
21446           s/.*/./; q'`
21447   { if $as_mkdir_p; then
21448     mkdir -p "$ac_dest_dir"
21449   else
21450     as_dir="$ac_dest_dir"
21451     as_dirs=
21452     while test ! -d "$as_dir"; do
21453       as_dirs="$as_dir $as_dirs"
21454       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21456          X"$as_dir" : 'X\(//\)[^/]' \| \
21457          X"$as_dir" : 'X\(//\)$' \| \
21458          X"$as_dir" : 'X\(/\)' \| \
21459          .     : '\(.\)' 2>/dev/null ||
21460 echo X"$as_dir" |
21461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21463           /^X\(\/\/\)$/{ s//\1/; q; }
21464           /^X\(\/\).*/{ s//\1/; q; }
21465           s/.*/./; q'`
21466     done
21467     test ! -n "$as_dirs" || mkdir $as_dirs
21468   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21469 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21470    { (exit 1); exit 1; }; }; }
21471
21472   ac_builddir=.
21473
21474 if test "$ac_dest_dir" != .; then
21475   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21476   # A "../" for each directory in $ac_dir_suffix.
21477   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21478 else
21479   ac_dir_suffix= ac_top_builddir=
21480 fi
21481
21482 case $srcdir in
21483   .)  # No --srcdir option.  We are building in place.
21484     ac_srcdir=.
21485     if test -z "$ac_top_builddir"; then
21486        ac_top_srcdir=.
21487     else
21488        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21489     fi ;;
21490   [\\/]* | ?:[\\/]* )  # Absolute path.
21491     ac_srcdir=$srcdir$ac_dir_suffix;
21492     ac_top_srcdir=$srcdir ;;
21493   *) # Relative path.
21494     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21495     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21496 esac
21497
21498 # Do not use `cd foo && pwd` to compute absolute paths, because
21499 # the directories may not exist.
21500 case `pwd` in
21501 .) ac_abs_builddir="$ac_dest_dir";;
21502 *)
21503   case "$ac_dest_dir" in
21504   .) ac_abs_builddir=`pwd`;;
21505   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
21506   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
21507   esac;;
21508 esac
21509 case $ac_abs_builddir in
21510 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21511 *)
21512   case ${ac_top_builddir}. in
21513   .) ac_abs_top_builddir=$ac_abs_builddir;;
21514   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21515   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21516   esac;;
21517 esac
21518 case $ac_abs_builddir in
21519 .) ac_abs_srcdir=$ac_srcdir;;
21520 *)
21521   case $ac_srcdir in
21522   .) ac_abs_srcdir=$ac_abs_builddir;;
21523   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21524   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21525   esac;;
21526 esac
21527 case $ac_abs_builddir in
21528 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21529 *)
21530   case $ac_top_srcdir in
21531   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21532   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21533   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21534   esac;;
21535 esac
21536
21537
21538   case $srcdir in
21539   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21540       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21541   esac
21542
21543   # Try a symlink, then a hard link, then a copy.
21544   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21545     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21546     cp -p $srcdir/$ac_source $ac_dest ||
21547     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21548 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21549    { (exit 1); exit 1; }; }
21550 done
21551 _ACEOF
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21553
21554 #
21555 # CONFIG_COMMANDS section.
21556 #
21557 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21558   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21559   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21560   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21561 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21562          X"$ac_dest" : 'X\(//\)[^/]' \| \
21563          X"$ac_dest" : 'X\(//\)$' \| \
21564          X"$ac_dest" : 'X\(/\)' \| \
21565          .     : '\(.\)' 2>/dev/null ||
21566 echo X"$ac_dest" |
21567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21569           /^X\(\/\/\)$/{ s//\1/; q; }
21570           /^X\(\/\).*/{ s//\1/; q; }
21571           s/.*/./; q'`
21572   { if $as_mkdir_p; then
21573     mkdir -p "$ac_dir"
21574   else
21575     as_dir="$ac_dir"
21576     as_dirs=
21577     while test ! -d "$as_dir"; do
21578       as_dirs="$as_dir $as_dirs"
21579       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21581          X"$as_dir" : 'X\(//\)[^/]' \| \
21582          X"$as_dir" : 'X\(//\)$' \| \
21583          X"$as_dir" : 'X\(/\)' \| \
21584          .     : '\(.\)' 2>/dev/null ||
21585 echo X"$as_dir" |
21586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21587           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21588           /^X\(\/\/\)$/{ s//\1/; q; }
21589           /^X\(\/\).*/{ s//\1/; q; }
21590           s/.*/./; q'`
21591     done
21592     test ! -n "$as_dirs" || mkdir $as_dirs
21593   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21594 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21595    { (exit 1); exit 1; }; }; }
21596
21597   ac_builddir=.
21598
21599 if test "$ac_dir" != .; then
21600   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21601   # A "../" for each directory in $ac_dir_suffix.
21602   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21603 else
21604   ac_dir_suffix= ac_top_builddir=
21605 fi
21606
21607 case $srcdir in
21608   .)  # No --srcdir option.  We are building in place.
21609     ac_srcdir=.
21610     if test -z "$ac_top_builddir"; then
21611        ac_top_srcdir=.
21612     else
21613        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21614     fi ;;
21615   [\\/]* | ?:[\\/]* )  # Absolute path.
21616     ac_srcdir=$srcdir$ac_dir_suffix;
21617     ac_top_srcdir=$srcdir ;;
21618   *) # Relative path.
21619     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21620     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21621 esac
21622
21623 # Do not use `cd foo && pwd` to compute absolute paths, because
21624 # the directories may not exist.
21625 case `pwd` in
21626 .) ac_abs_builddir="$ac_dir";;
21627 *)
21628   case "$ac_dir" in
21629   .) ac_abs_builddir=`pwd`;;
21630   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21631   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21632   esac;;
21633 esac
21634 case $ac_abs_builddir in
21635 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21636 *)
21637   case ${ac_top_builddir}. in
21638   .) ac_abs_top_builddir=$ac_abs_builddir;;
21639   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21640   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21641   esac;;
21642 esac
21643 case $ac_abs_builddir in
21644 .) ac_abs_srcdir=$ac_srcdir;;
21645 *)
21646   case $ac_srcdir in
21647   .) ac_abs_srcdir=$ac_abs_builddir;;
21648   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21649   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21650   esac;;
21651 esac
21652 case $ac_abs_builddir in
21653 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21654 *)
21655   case $ac_top_srcdir in
21656   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21657   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21658   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21659   esac;;
21660 esac
21661
21662
21663   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21664 echo "$as_me: executing $ac_dest commands" >&6;}
21665   case $ac_dest in
21666     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21667   # Strip MF so we end up with the name of the file.
21668   mf=`echo "$mf" | sed -e 's/:.*$//'`
21669   # Check whether this is an Automake generated Makefile or not.
21670   # We used to match only the files named `Makefile.in', but
21671   # some people rename them; so instead we look at the file content.
21672   # Grep'ing the first line is not enough: some people post-process
21673   # each Makefile.in and add a new line on top of each file to say so.
21674   # So let's grep whole file.
21675   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21676     dirpart=`(dirname "$mf") 2>/dev/null ||
21677 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21678          X"$mf" : 'X\(//\)[^/]' \| \
21679          X"$mf" : 'X\(//\)$' \| \
21680          X"$mf" : 'X\(/\)' \| \
21681          .     : '\(.\)' 2>/dev/null ||
21682 echo X"$mf" |
21683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21685           /^X\(\/\/\)$/{ s//\1/; q; }
21686           /^X\(\/\).*/{ s//\1/; q; }
21687           s/.*/./; q'`
21688   else
21689     continue
21690   fi
21691   # Extract the definition of DEPDIR, am__include, and am__quote
21692   # from the Makefile without running `make'.
21693   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21694   test -z "$DEPDIR" && continue
21695   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21696   test -z "am__include" && continue
21697   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21698   # When using ansi2knr, U may be empty or an underscore; expand it
21699   U=`sed -n 's/^U = //p' < "$mf"`
21700   # Find all dependency output files, they are included files with
21701   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21702   # simplest approach to changing $(DEPDIR) to its actual value in the
21703   # expansion.
21704   for file in `sed -n "
21705     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21706        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21707     # Make sure the directory exists.
21708     test -f "$dirpart/$file" && continue
21709     fdir=`(dirname "$file") 2>/dev/null ||
21710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21711          X"$file" : 'X\(//\)[^/]' \| \
21712          X"$file" : 'X\(//\)$' \| \
21713          X"$file" : 'X\(/\)' \| \
21714          .     : '\(.\)' 2>/dev/null ||
21715 echo X"$file" |
21716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21718           /^X\(\/\/\)$/{ s//\1/; q; }
21719           /^X\(\/\).*/{ s//\1/; q; }
21720           s/.*/./; q'`
21721     { if $as_mkdir_p; then
21722     mkdir -p $dirpart/$fdir
21723   else
21724     as_dir=$dirpart/$fdir
21725     as_dirs=
21726     while test ! -d "$as_dir"; do
21727       as_dirs="$as_dir $as_dirs"
21728       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730          X"$as_dir" : 'X\(//\)[^/]' \| \
21731          X"$as_dir" : 'X\(//\)$' \| \
21732          X"$as_dir" : 'X\(/\)' \| \
21733          .     : '\(.\)' 2>/dev/null ||
21734 echo X"$as_dir" |
21735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21737           /^X\(\/\/\)$/{ s//\1/; q; }
21738           /^X\(\/\).*/{ s//\1/; q; }
21739           s/.*/./; q'`
21740     done
21741     test ! -n "$as_dirs" || mkdir $as_dirs
21742   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21743 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21744    { (exit 1); exit 1; }; }; }
21745
21746     # echo "creating $dirpart/$file"
21747     echo '# dummy' > "$dirpart/$file"
21748   done
21749 done
21750  ;;
21751     mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
21752     $ac_stdint_h )
21753 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
21754 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21755 ac_stdint=$tmp/_stdint.h
21756
21757 echo "#ifndef" $_ac_stdint_h >$ac_stdint
21758 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
21759 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
21760 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
21761 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
21762 if test "_$ac_cv_header_stdint_t" != "_" ; then
21763 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
21764 echo "#include <stdint.h>" >>$ac_stdint
21765 echo "#endif" >>$ac_stdint
21766 echo "#endif" >>$ac_stdint
21767 else
21768
21769 cat >>$ac_stdint <<STDINT_EOF
21770
21771 /* ................... shortcircuit part ........................... */
21772
21773 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
21774 #include <stdint.h>
21775 #else
21776 #include <stddef.h>
21777
21778 /* .................... configured part ............................ */
21779
21780 STDINT_EOF
21781
21782 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
21783 if test "_$ac_cv_header_stdint_x" != "_" ; then
21784   ac_header="$ac_cv_header_stdint_x"
21785   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
21786 else
21787   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
21788 fi
21789
21790 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
21791 if  test "_$ac_cv_header_stdint_o" != "_" ; then
21792   ac_header="$ac_cv_header_stdint_o"
21793   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
21794 else
21795   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
21796 fi
21797
21798 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
21799 if  test "_$ac_cv_header_stdint_u" != "_" ; then
21800   ac_header="$ac_cv_header_stdint_u"
21801   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
21802 else
21803   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
21804 fi
21805
21806 echo "" >>$ac_stdint
21807
21808 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
21809   echo "#include <$ac_header>" >>$ac_stdint
21810   echo "" >>$ac_stdint
21811 fi fi
21812
21813 echo "/* which 64bit typedef has been found */" >>$ac_stdint
21814 if test "$ac_cv_type_uint64_t" = "yes" ; then
21815 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
21816 else
21817 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
21818 fi
21819 if test "$ac_cv_type_u_int64_t" = "yes" ; then
21820 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
21821 else
21822 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
21823 fi
21824 echo "" >>$ac_stdint
21825
21826 echo "/* which type model has been detected */" >>$ac_stdint
21827 if test "_$ac_cv_char_data_model" != "_" ; then
21828 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
21829 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
21830 else
21831 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
21832 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
21833 fi
21834 echo "" >>$ac_stdint
21835
21836 echo "/* whether int_least types were detected */" >>$ac_stdint
21837 if test "$ac_cv_type_int_least32_t" = "yes"; then
21838 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
21839 else
21840 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
21841 fi
21842 echo "/* whether int_fast types were detected */" >>$ac_stdint
21843 if test "$ac_cv_type_int_fast32_t" = "yes"; then
21844 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
21845 else
21846 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
21847 fi
21848 echo "/* whether intmax_t type was detected */" >>$ac_stdint
21849 if test "$ac_cv_type_intmax_t" = "yes"; then
21850 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
21851 else
21852 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
21853 fi
21854 echo "" >>$ac_stdint
21855
21856   cat >>$ac_stdint <<STDINT_EOF
21857 /* .................... detections part ............................ */
21858
21859 /* whether we need to define bitspecific types from compiler base types */
21860 #ifndef _STDINT_HEADER_INTPTR
21861 #ifndef _STDINT_HEADER_UINT32
21862 #ifndef _STDINT_HEADER_U_INT32
21863 #define _STDINT_NEED_INT_MODEL_T
21864 #else
21865 #define _STDINT_HAVE_U_INT_TYPES
21866 #endif
21867 #endif
21868 #endif
21869
21870 #ifdef _STDINT_HAVE_U_INT_TYPES
21871 #undef _STDINT_NEED_INT_MODEL_T
21872 #endif
21873
21874 #ifdef  _STDINT_CHAR_MODEL
21875 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
21876 #ifndef _STDINT_BYTE_MODEL
21877 #define _STDINT_BYTE_MODEL 12
21878 #endif
21879 #endif
21880 #endif
21881
21882 #ifndef _STDINT_HAVE_INT_LEAST32_T
21883 #define _STDINT_NEED_INT_LEAST_T
21884 #endif
21885
21886 #ifndef _STDINT_HAVE_INT_FAST32_T
21887 #define _STDINT_NEED_INT_FAST_T
21888 #endif
21889
21890 #ifndef _STDINT_HEADER_INTPTR
21891 #define _STDINT_NEED_INTPTR_T
21892 #ifndef _STDINT_HAVE_INTMAX_T
21893 #define _STDINT_NEED_INTMAX_T
21894 #endif
21895 #endif
21896
21897
21898 /* .................... definition part ............................ */
21899
21900 /* some system headers have good uint64_t */
21901 #ifndef _HAVE_UINT64_T
21902 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
21903 #define _HAVE_UINT64_T
21904 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21905 #define _HAVE_UINT64_T
21906 typedef u_int64_t uint64_t;
21907 #endif
21908 #endif
21909
21910 #ifndef _HAVE_UINT64_T
21911 /* .. here are some common heuristics using compiler runtime specifics */
21912 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21913 #define _HAVE_UINT64_T
21914 #define _HAVE_LONGLONG_UINT64_T
21915 typedef long long int64_t;
21916 typedef unsigned long long uint64_t;
21917
21918 #elif !defined __STRICT_ANSI__
21919 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21920 #define _HAVE_UINT64_T
21921 typedef __int64 int64_t;
21922 typedef unsigned __int64 uint64_t;
21923
21924 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21925 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21926 #if !defined _NO_LONGLONG
21927 #define _HAVE_UINT64_T
21928 #define _HAVE_LONGLONG_UINT64_T
21929 typedef long long int64_t;
21930 typedef unsigned long long uint64_t;
21931 #endif
21932
21933 #elif defined __alpha || (defined __mips && defined _ABIN32)
21934 #if !defined _NO_LONGLONG
21935 typedef long int64_t;
21936 typedef unsigned long uint64_t;
21937 #endif
21938   /* compiler/cpu type to define int64_t */
21939 #endif
21940 #endif
21941 #endif
21942
21943 #if defined _STDINT_HAVE_U_INT_TYPES
21944 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21945 typedef u_int8_t uint8_t;
21946 typedef u_int16_t uint16_t;
21947 typedef u_int32_t uint32_t;
21948
21949 /* glibc compatibility */
21950 #ifndef __int8_t_defined
21951 #define __int8_t_defined
21952 #endif
21953 #endif
21954
21955 #ifdef _STDINT_NEED_INT_MODEL_T
21956 /* we must guess all the basic types. Apart from byte-adressable system, */
21957 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21958 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21959
21960
21961 #if defined _STDINT_BYTE_MODEL
21962 #if _STDINT_LONG_MODEL+0 == 242
21963 /* 2:4:2 =  IP16 = a normal 16-bit system                */
21964 typedef unsigned char   uint8_t;
21965 typedef unsigned short  uint16_t;
21966 typedef unsigned long   uint32_t;
21967 #ifndef __int8_t_defined
21968 #define __int8_t_defined
21969 typedef          char    int8_t;
21970 typedef          short   int16_t;
21971 typedef          long    int32_t;
21972 #endif
21973 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21974 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
21975 /* 4:4:4 = ILP32 = a normal 32-bit system                */
21976 typedef unsigned char   uint8_t;
21977 typedef unsigned short  uint16_t;
21978 typedef unsigned int    uint32_t;
21979 #ifndef __int8_t_defined
21980 #define __int8_t_defined
21981 typedef          char    int8_t;
21982 typedef          short   int16_t;
21983 typedef          int     int32_t;
21984 #endif
21985 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21986 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
21987 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
21988 typedef unsigned char   uint8_t;
21989 typedef unsigned short  uint16_t;
21990 typedef unsigned int    uint32_t;
21991 #ifndef __int8_t_defined
21992 #define __int8_t_defined
21993 typedef          char    int8_t;
21994 typedef          short   int16_t;
21995 typedef          int     int32_t;
21996 #endif
21997 /* this system has a "long" of 64bit */
21998 #ifndef _HAVE_UINT64_T
21999 #define _HAVE_UINT64_T
22000 typedef unsigned long   uint64_t;
22001 typedef          long    int64_t;
22002 #endif
22003 #elif _STDINT_LONG_MODEL+0 == 448
22004 /*      LLP64   a 64-bit system derived from a 32-bit system */
22005 typedef unsigned char   uint8_t;
22006 typedef unsigned short  uint16_t;
22007 typedef unsigned int    uint32_t;
22008 #ifndef __int8_t_defined
22009 #define __int8_t_defined
22010 typedef          char    int8_t;
22011 typedef          short   int16_t;
22012 typedef          int     int32_t;
22013 #endif
22014 /* assuming the system has a "long long" */
22015 #ifndef _HAVE_UINT64_T
22016 #define _HAVE_UINT64_T
22017 #define _HAVE_LONGLONG_UINT64_T
22018 typedef unsigned long long uint64_t;
22019 typedef          long long  int64_t;
22020 #endif
22021 #else
22022 #define _STDINT_NO_INT32_T
22023 #endif
22024 #else
22025 #define _STDINT_NO_INT8_T
22026 #define _STDINT_NO_INT32_T
22027 #endif
22028 #endif
22029
22030 /*
22031  * quote from SunOS-5.8 sys/inttypes.h:
22032  * Use at your own risk.  As of February 1996, the committee is squarely
22033  * behind the fixed sized types; the "least" and "fast" types are still being
22034  * discussed.  The probability that the "fast" types may be removed before
22035  * the standard is finalized is high enough that they are not currently
22036  * implemented.
22037  */
22038
22039 #if defined _STDINT_NEED_INT_LEAST_T
22040 typedef  int8_t    int_least8_t;
22041 typedef  int16_t   int_least16_t;
22042 typedef  int32_t   int_least32_t;
22043 #ifdef _HAVE_UINT64_T
22044 typedef  int64_t   int_least64_t;
22045 #endif
22046
22047 typedef uint8_t   uint_least8_t;
22048 typedef uint16_t  uint_least16_t;
22049 typedef uint32_t  uint_least32_t;
22050 #ifdef _HAVE_UINT64_T
22051 typedef uint64_t  uint_least64_t;
22052 #endif
22053   /* least types */
22054 #endif
22055
22056 #if defined _STDINT_NEED_INT_FAST_T
22057 typedef  int8_t    int_fast8_t;
22058 typedef  int       int_fast16_t;
22059 typedef  int32_t   int_fast32_t;
22060 #ifdef _HAVE_UINT64_T
22061 typedef  int64_t   int_fast64_t;
22062 #endif
22063
22064 typedef uint8_t   uint_fast8_t;
22065 typedef unsigned  uint_fast16_t;
22066 typedef uint32_t  uint_fast32_t;
22067 #ifdef _HAVE_UINT64_T
22068 typedef uint64_t  uint_fast64_t;
22069 #endif
22070   /* fast types */
22071 #endif
22072
22073 #ifdef _STDINT_NEED_INTMAX_T
22074 #ifdef _HAVE_UINT64_T
22075 typedef  int64_t       intmax_t;
22076 typedef uint64_t      uintmax_t;
22077 #else
22078 typedef          long  intmax_t;
22079 typedef unsigned long uintmax_t;
22080 #endif
22081 #endif
22082
22083 #ifdef _STDINT_NEED_INTPTR_T
22084 #ifndef __intptr_t_defined
22085 #define __intptr_t_defined
22086 /* we encourage using "long" to store pointer values, never use "int" ! */
22087 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
22088 typedef  unsigned int   uintptr_t;
22089 typedef           int    intptr_t;
22090 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
22091 typedef  unsigned long  uintptr_t;
22092 typedef           long   intptr_t;
22093 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
22094 typedef        uint64_t uintptr_t;
22095 typedef         int64_t  intptr_t;
22096 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
22097 typedef  unsigned long  uintptr_t;
22098 typedef           long   intptr_t;
22099 #endif
22100 #endif
22101 #endif
22102
22103 /* The ISO C99 standard specifies that in C++ implementations these
22104    should only be defined if explicitly requested.  */
22105 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
22106 #ifndef UINT32_C
22107
22108 /* Signed.  */
22109 # define INT8_C(c)      c
22110 # define INT16_C(c)     c
22111 # define INT32_C(c)     c
22112 # ifdef _HAVE_LONGLONG_UINT64_T
22113 #  define INT64_C(c)    c ## L
22114 # else
22115 #  define INT64_C(c)    c ## LL
22116 # endif
22117
22118 /* Unsigned.  */
22119 # define UINT8_C(c)     c ## U
22120 # define UINT16_C(c)    c ## U
22121 # define UINT32_C(c)    c ## U
22122 # ifdef _HAVE_LONGLONG_UINT64_T
22123 #  define UINT64_C(c)   c ## UL
22124 # else
22125 #  define UINT64_C(c)   c ## ULL
22126 # endif
22127
22128 /* Maximal type.  */
22129 # ifdef _HAVE_LONGLONG_UINT64_T
22130 #  define INTMAX_C(c)   c ## L
22131 #  define UINTMAX_C(c)  c ## UL
22132 # else
22133 #  define INTMAX_C(c)   c ## LL
22134 #  define UINTMAX_C(c)  c ## ULL
22135 # endif
22136
22137   /* literalnumbers */
22138 #endif
22139 #endif
22140
22141 /* These limits are merily those of a two complement byte-oriented system */
22142
22143 /* Minimum of signed integral types.  */
22144 # define INT8_MIN               (-128)
22145 # define INT16_MIN              (-32767-1)
22146 # define INT32_MIN              (-2147483647-1)
22147 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
22148 /* Maximum of signed integral types.  */
22149 # define INT8_MAX               (127)
22150 # define INT16_MAX              (32767)
22151 # define INT32_MAX              (2147483647)
22152 # define INT64_MAX              (__INT64_C(9223372036854775807))
22153
22154 /* Maximum of unsigned integral types.  */
22155 # define UINT8_MAX              (255)
22156 # define UINT16_MAX             (65535)
22157 # define UINT32_MAX             (4294967295U)
22158 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
22159
22160 /* Minimum of signed integral types having a minimum size.  */
22161 # define INT_LEAST8_MIN         INT8_MIN
22162 # define INT_LEAST16_MIN        INT16_MIN
22163 # define INT_LEAST32_MIN        INT32_MIN
22164 # define INT_LEAST64_MIN        INT64_MIN
22165 /* Maximum of signed integral types having a minimum size.  */
22166 # define INT_LEAST8_MAX         INT8_MAX
22167 # define INT_LEAST16_MAX        INT16_MAX
22168 # define INT_LEAST32_MAX        INT32_MAX
22169 # define INT_LEAST64_MAX        INT64_MAX
22170
22171 /* Maximum of unsigned integral types having a minimum size.  */
22172 # define UINT_LEAST8_MAX        UINT8_MAX
22173 # define UINT_LEAST16_MAX       UINT16_MAX
22174 # define UINT_LEAST32_MAX       UINT32_MAX
22175 # define UINT_LEAST64_MAX       UINT64_MAX
22176
22177   /* shortcircuit*/
22178 #endif
22179   /* once */
22180 #endif
22181 #endif
22182 STDINT_EOF
22183 fi
22184     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
22185       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
22186 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
22187     else
22188       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
22189 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22190          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
22191          X"$ac_stdint_h" : 'X\(//\)$' \| \
22192          X"$ac_stdint_h" : 'X\(/\)' \| \
22193          .     : '\(.\)' 2>/dev/null ||
22194 echo X"$ac_stdint_h" |
22195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22197           /^X\(\/\/\)$/{ s//\1/; q; }
22198           /^X\(\/\).*/{ s//\1/; q; }
22199           s/.*/./; q'`
22200       { if $as_mkdir_p; then
22201     mkdir -p "$ac_dir"
22202   else
22203     as_dir="$ac_dir"
22204     as_dirs=
22205     while test ! -d "$as_dir"; do
22206       as_dirs="$as_dir $as_dirs"
22207       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22209          X"$as_dir" : 'X\(//\)[^/]' \| \
22210          X"$as_dir" : 'X\(//\)$' \| \
22211          X"$as_dir" : 'X\(/\)' \| \
22212          .     : '\(.\)' 2>/dev/null ||
22213 echo X"$as_dir" |
22214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22215           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22216           /^X\(\/\/\)$/{ s//\1/; q; }
22217           /^X\(\/\).*/{ s//\1/; q; }
22218           s/.*/./; q'`
22219     done
22220     test ! -n "$as_dirs" || mkdir $as_dirs
22221   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22223    { (exit 1); exit 1; }; }; }
22224
22225       rm -f $ac_stdint_h
22226       mv $ac_stdint $ac_stdint_h
22227     fi
22228  ;;
22229     gappletviewer ) chmod 755 tools/gappletviewer ;;
22230     gjarsigner ) chmod 755 tools/gjarsigner ;;
22231     gkeytool ) chmod 755 tools/gkeytool ;;
22232     gjar ) chmod 755 tools/gjar ;;
22233     gnative2ascii ) chmod 755 tools/gnative2ascii ;;
22234     gserialver ) chmod 755 tools/gserialver ;;
22235     grmiregistry ) chmod 755 tools/grmiregistry ;;
22236     gtnameserv ) chmod 755 tools/gtnameserv ;;
22237     gorbd ) chmod 755 tools/gorbd ;;
22238     grmid ) chmod 755 tools/grmid ;;
22239     grmic ) chmod 755 tools/grmic ;;
22240     gjavah ) chmod 755 tools/gjavah ;;
22241     gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
22242     copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
22243   esac
22244 done
22245 _ACEOF
22246
22247 cat >>$CONFIG_STATUS <<\_ACEOF
22248
22249 { (exit 0); exit 0; }
22250 _ACEOF
22251 chmod +x $CONFIG_STATUS
22252 ac_clean_files=$ac_clean_files_save
22253
22254
22255 # configure is writing to config.log, and then calls config.status.
22256 # config.status does its own redirection, appending to config.log.
22257 # Unfortunately, on DOS this fails, as config.log is still kept open
22258 # by configure, so config.status won't be able to write to it; its
22259 # output is simply discarded.  So we exec the FD to /dev/null,
22260 # effectively closing config.log, so it can be properly (re)opened and
22261 # appended to by config.status.  When coming back to configure, we
22262 # need to make the FD available again.
22263 if test "$no_create" != yes; then
22264   ac_cs_success=:
22265   ac_config_status_args=
22266   test "$silent" = yes &&
22267     ac_config_status_args="$ac_config_status_args --quiet"
22268   exec 5>/dev/null
22269   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22270   exec 5>>config.log
22271   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22272   # would make configure fail if this is the last instruction.
22273   $ac_cs_success || { (exit 1); exit 1; }
22274 fi
22275
22276
22277 # Create standard.omit based on decisions we just made.
22278 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
22279 if test x$use_escher != xtrue; then
22280    echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
22281 fi