OSDN Git Service

8122af23dbb2788ef24aa42383294e58b9dd8ed7
[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 multi_basedir 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 toolexeclibdir 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-multilib       build many library versions (default)
877   --enable-collections    create collections.jar default=no
878   --enable-jni            compile JNI source default=yes
879   --enable-core-jni       compile JNI sources for core default=yes
880   --enable-default-preferences-peer[=peer type or class name]
881                           specify one of: "gconf" [default] for a GConf based
882                           backend, "file" for a file based one, "memory" for a
883                           transient one, or a fully qualified class name
884                           implementing java.util.prefs.PreferencesFactory
885   --disable-gconf-peer    compile GConf native peers (disabled by
886                           --disable-jni) default=yes
887
888   --enable-Werror         whether to compile C code with -Werror which turns
889                           any compiler warning into a compilation failure
890                           default=no
891   --enable-default-toolkit
892                           fully qualified class name of default AWT toolkit
893   --enable-xmlj           compile native libxml/xslt library default=no
894   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
895                           default=yes
896   --disable-dependency-tracking  speeds up one-time build
897   --enable-dependency-tracking   do not reject slow dependency extractors
898   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
899                           default=yes
900   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
901                           default=yes
902   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
903                           default=no
904   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
905                           default=yes
906   --enable-regen-headers  automatically regenerate JNI headers default=no
907   --enable-tool-wrappers  create tool wrapper binaries default=no
908   --enable-static=PKGS  build static libraries default=no
909   --enable-shared=PKGS  build shared libraries default=yes
910   --enable-fast-install=PKGS  optimize for fast installation default=yes
911   --disable-libtool-lock  avoid locking (might break parallel builds)
912   --disable-rpath         do not hardcode runtime library paths
913   --enable-maintainer-mode  enable make rules and dependencies not useful
914                           (and sometimes confusing) to the casual installer
915   --enable-debug          enable runtime debugging code
916   --enable-load-library   enable to use JNI native methods default=yes
917   --enable-java-lang-system-explicit-initialization
918                           will the VM explicitly invoke java.lang.System's
919                           static initialization methods default=no
920   --enable-examples       enable build of the examples default=yes
921   --enable-portable-native-sync
922                           synchronize VM threads portably
923   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
924
925 Optional Packages:
926   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
927   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
928   --with-native-libdir    sets the installation directory for native libraries
929                           default='${libdir}/${PACKAGE}'
930   --with-glibj-dir        sets the installation directory for glibj.zip
931                           default='${libdir}/${PACKAGE}'
932   --with-vm               sets the VM binary name
933                           default='${prefix}/bin/jamvm'
934   --with-gnu-ld           assume the C compiler uses GNU ld default=no
935   --with-pic              try to use only PIC/non-PIC objects default=use both
936   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
937   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
938   --with-x                use the X Window System
939   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
940                           systems use pkg-config.
941   --with-javah            specify path or name of a javah-like program
942   --with-gcj              bytecode compilation with gcj
943   --with-jikes            bytecode compilation with jikes
944   --with-kjc              bytecode compilation with kjc
945   --with-gcjx             bytecode compilation with gcjx
946   --with-ecj              bytecode compilation with ecj
947   --with-classpath        specify path to a classes.zip like file
948   --with-vm-classes       specify path to VM override source files
949   --with-fastjar=PATH     define to use a fastjar style tool
950   --with-glibj            define what to install (zip|flat|both|none|build)
951                           [default=zip]
952   --with-gjdoc            generate documentation using gjdoc (default is NO)
953   --with-jay              Regenerate the parsers with jay must be given the
954                           path to the jay executable
955   --with-glibj-zip=ABS.PATH
956                           use prebuilt glibj.zip class library
957   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
958
959 Some influential environment variables:
960   CC          C compiler command
961   CFLAGS      C compiler flags
962   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
963               nonstandard directory <lib dir>
964   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
965               headers in a nonstandard directory <include dir>
966   CPP         C preprocessor
967   CXX         C++ compiler command
968   CXXFLAGS    C++ compiler flags
969   CXXCPP      C++ preprocessor
970
971 Use these variables to override the choices made by `configure' or to help
972 it to find libraries and programs with nonstandard names/locations.
973
974 Report bugs to <classpath@gnu.org>.
975 _ACEOF
976 fi
977
978 if test "$ac_init_help" = "recursive"; then
979   # If there are subdirs, report their specific --help.
980   ac_popdir=`pwd`
981   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
982     test -d $ac_dir || continue
983     ac_builddir=.
984
985 if test "$ac_dir" != .; then
986   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
987   # A "../" for each directory in $ac_dir_suffix.
988   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
989 else
990   ac_dir_suffix= ac_top_builddir=
991 fi
992
993 case $srcdir in
994   .)  # No --srcdir option.  We are building in place.
995     ac_srcdir=.
996     if test -z "$ac_top_builddir"; then
997        ac_top_srcdir=.
998     else
999        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1000     fi ;;
1001   [\\/]* | ?:[\\/]* )  # Absolute path.
1002     ac_srcdir=$srcdir$ac_dir_suffix;
1003     ac_top_srcdir=$srcdir ;;
1004   *) # Relative path.
1005     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1006     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1007 esac
1008
1009 # Do not use `cd foo && pwd` to compute absolute paths, because
1010 # the directories may not exist.
1011 case `pwd` in
1012 .) ac_abs_builddir="$ac_dir";;
1013 *)
1014   case "$ac_dir" in
1015   .) ac_abs_builddir=`pwd`;;
1016   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1017   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1018   esac;;
1019 esac
1020 case $ac_abs_builddir in
1021 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1022 *)
1023   case ${ac_top_builddir}. in
1024   .) ac_abs_top_builddir=$ac_abs_builddir;;
1025   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1026   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1027   esac;;
1028 esac
1029 case $ac_abs_builddir in
1030 .) ac_abs_srcdir=$ac_srcdir;;
1031 *)
1032   case $ac_srcdir in
1033   .) ac_abs_srcdir=$ac_abs_builddir;;
1034   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1035   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1036   esac;;
1037 esac
1038 case $ac_abs_builddir in
1039 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1040 *)
1041   case $ac_top_srcdir in
1042   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1043   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1044   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1045   esac;;
1046 esac
1047
1048     cd $ac_dir
1049     # Check for guested configure; otherwise get Cygnus style configure.
1050     if test -f $ac_srcdir/configure.gnu; then
1051       echo
1052       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1053     elif test -f $ac_srcdir/configure; then
1054       echo
1055       $SHELL $ac_srcdir/configure  --help=recursive
1056     elif test -f $ac_srcdir/configure.ac ||
1057            test -f $ac_srcdir/configure.in; then
1058       echo
1059       $ac_configure --help
1060     else
1061       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1062     fi
1063     cd $ac_popdir
1064   done
1065 fi
1066
1067 test -n "$ac_init_help" && exit 0
1068 if $ac_init_version; then
1069   cat <<\_ACEOF
1070 GNU Classpath configure 0.94-pre
1071 generated by GNU Autoconf 2.59
1072
1073 Copyright (C) 2003 Free Software Foundation, Inc.
1074 This configure script is free software; the Free Software Foundation
1075 gives unlimited permission to copy, distribute and modify it.
1076 _ACEOF
1077   exit 0
1078 fi
1079 exec 5>config.log
1080 cat >&5 <<_ACEOF
1081 This file contains any messages produced by compilers while
1082 running configure, to aid debugging if configure makes a mistake.
1083
1084 It was created by GNU Classpath $as_me 0.94-pre, which was
1085 generated by GNU Autoconf 2.59.  Invocation command line was
1086
1087   $ $0 $@
1088
1089 _ACEOF
1090 {
1091 cat <<_ASUNAME
1092 ## --------- ##
1093 ## Platform. ##
1094 ## --------- ##
1095
1096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1101
1102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1103 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1104
1105 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1106 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1108 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1109 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1110 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1111 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1112
1113 _ASUNAME
1114
1115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1116 for as_dir in $PATH
1117 do
1118   IFS=$as_save_IFS
1119   test -z "$as_dir" && as_dir=.
1120   echo "PATH: $as_dir"
1121 done
1122
1123 } >&5
1124
1125 cat >&5 <<_ACEOF
1126
1127
1128 ## ----------- ##
1129 ## Core tests. ##
1130 ## ----------- ##
1131
1132 _ACEOF
1133
1134
1135 # Keep a trace of the command line.
1136 # Strip out --no-create and --no-recursion so they do not pile up.
1137 # Strip out --silent because we don't want to record it for future runs.
1138 # Also quote any args containing shell meta-characters.
1139 # Make two passes to allow for proper duplicate-argument suppression.
1140 ac_configure_args=
1141 ac_configure_args0=
1142 ac_configure_args1=
1143 ac_sep=
1144 ac_must_keep_next=false
1145 for ac_pass in 1 2
1146 do
1147   for ac_arg
1148   do
1149     case $ac_arg in
1150     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1151     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152     | -silent | --silent | --silen | --sile | --sil)
1153       continue ;;
1154     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1155       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1156     esac
1157     case $ac_pass in
1158     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1159     2)
1160       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1161       if test $ac_must_keep_next = true; then
1162         ac_must_keep_next=false # Got value, back to normal.
1163       else
1164         case $ac_arg in
1165           *=* | --config-cache | -C | -disable-* | --disable-* \
1166           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1167           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1168           | -with-* | --with-* | -without-* | --without-* | --x)
1169             case "$ac_configure_args0 " in
1170               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1171             esac
1172             ;;
1173           -* ) ac_must_keep_next=true ;;
1174         esac
1175       fi
1176       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177       # Get rid of the leading space.
1178       ac_sep=" "
1179       ;;
1180     esac
1181   done
1182 done
1183 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1184 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1185
1186 # When interrupted or exit'd, cleanup temporary files, and complete
1187 # config.log.  We remove comments because anyway the quotes in there
1188 # would cause problems or look ugly.
1189 # WARNING: Be sure not to use single quotes in there, as some shells,
1190 # such as our DU 5.0 friend, will then `close' the trap.
1191 trap 'exit_status=$?
1192   # Save into config.log some information that might help in debugging.
1193   {
1194     echo
1195
1196     cat <<\_ASBOX
1197 ## ---------------- ##
1198 ## Cache variables. ##
1199 ## ---------------- ##
1200 _ASBOX
1201     echo
1202     # The following way of writing the cache mishandles newlines in values,
1203 {
1204   (set) 2>&1 |
1205     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1206     *ac_space=\ *)
1207       sed -n \
1208         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1210       ;;
1211     *)
1212       sed -n \
1213         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1214       ;;
1215     esac;
1216 }
1217     echo
1218
1219     cat <<\_ASBOX
1220 ## ----------------- ##
1221 ## Output variables. ##
1222 ## ----------------- ##
1223 _ASBOX
1224     echo
1225     for ac_var in $ac_subst_vars
1226     do
1227       eval ac_val=$`echo $ac_var`
1228       echo "$ac_var='"'"'$ac_val'"'"'"
1229     done | sort
1230     echo
1231
1232     if test -n "$ac_subst_files"; then
1233       cat <<\_ASBOX
1234 ## ------------- ##
1235 ## Output files. ##
1236 ## ------------- ##
1237 _ASBOX
1238       echo
1239       for ac_var in $ac_subst_files
1240       do
1241         eval ac_val=$`echo $ac_var`
1242         echo "$ac_var='"'"'$ac_val'"'"'"
1243       done | sort
1244       echo
1245     fi
1246
1247     if test -s confdefs.h; then
1248       cat <<\_ASBOX
1249 ## ----------- ##
1250 ## confdefs.h. ##
1251 ## ----------- ##
1252 _ASBOX
1253       echo
1254       sed "/^$/d" confdefs.h | sort
1255       echo
1256     fi
1257     test "$ac_signal" != 0 &&
1258       echo "$as_me: caught signal $ac_signal"
1259     echo "$as_me: exit $exit_status"
1260   } >&5
1261   rm -f core *.core &&
1262   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1263     exit $exit_status
1264      ' 0
1265 for ac_signal in 1 2 13 15; do
1266   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1267 done
1268 ac_signal=0
1269
1270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1271 rm -rf conftest* confdefs.h
1272 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1273 echo >confdefs.h
1274
1275 # Predefined preprocessor variables.
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_NAME "$PACKAGE_NAME"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1284 _ACEOF
1285
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1289 _ACEOF
1290
1291
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_STRING "$PACKAGE_STRING"
1294 _ACEOF
1295
1296
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1299 _ACEOF
1300
1301
1302 # Let the site file select an alternate cache file if it wants to.
1303 # Prefer explicitly selected file to automatically selected ones.
1304 if test -z "$CONFIG_SITE"; then
1305   if test "x$prefix" != xNONE; then
1306     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1307   else
1308     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1309   fi
1310 fi
1311 for ac_site_file in $CONFIG_SITE; do
1312   if test -r "$ac_site_file"; then
1313     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1314 echo "$as_me: loading site script $ac_site_file" >&6;}
1315     sed 's/^/| /' "$ac_site_file" >&5
1316     . "$ac_site_file"
1317   fi
1318 done
1319
1320 if test -r "$cache_file"; then
1321   # Some versions of bash will fail to source /dev/null (special
1322   # files actually), so we avoid doing that.
1323   if test -f "$cache_file"; then
1324     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1325 echo "$as_me: loading cache $cache_file" >&6;}
1326     case $cache_file in
1327       [\\/]* | ?:[\\/]* ) . $cache_file;;
1328       *)                      . ./$cache_file;;
1329     esac
1330   fi
1331 else
1332   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1333 echo "$as_me: creating cache $cache_file" >&6;}
1334   >$cache_file
1335 fi
1336
1337 # Check that the precious variables saved in the cache have kept the same
1338 # value.
1339 ac_cache_corrupted=false
1340 for ac_var in `(set) 2>&1 |
1341                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1342   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1343   eval ac_new_set=\$ac_env_${ac_var}_set
1344   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1345   eval ac_new_val="\$ac_env_${ac_var}_value"
1346   case $ac_old_set,$ac_new_set in
1347     set,)
1348       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1349 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1350       ac_cache_corrupted=: ;;
1351     ,set)
1352       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1354       ac_cache_corrupted=: ;;
1355     ,);;
1356     *)
1357       if test "x$ac_old_val" != "x$ac_new_val"; then
1358         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1359 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1360         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1361 echo "$as_me:   former value:  $ac_old_val" >&2;}
1362         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1363 echo "$as_me:   current value: $ac_new_val" >&2;}
1364         ac_cache_corrupted=:
1365       fi;;
1366   esac
1367   # Pass precious variables to config.status.
1368   if test "$ac_new_set" = set; then
1369     case $ac_new_val in
1370     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1371       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1372     *) ac_arg=$ac_var=$ac_new_val ;;
1373     esac
1374     case " $ac_configure_args " in
1375       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1376       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1377     esac
1378   fi
1379 done
1380 if $ac_cache_corrupted; then
1381   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1382 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1383   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1384 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387
1388 ac_ext=c
1389 ac_cpp='$CPP $CPPFLAGS'
1390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1422 ac_aux_dir=
1423 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1424   if test -f $ac_dir/install-sh; then
1425     ac_aux_dir=$ac_dir
1426     ac_install_sh="$ac_aux_dir/install-sh -c"
1427     break
1428   elif test -f $ac_dir/install.sh; then
1429     ac_aux_dir=$ac_dir
1430     ac_install_sh="$ac_aux_dir/install.sh -c"
1431     break
1432   elif test -f $ac_dir/shtool; then
1433     ac_aux_dir=$ac_dir
1434     ac_install_sh="$ac_aux_dir/shtool install -c"
1435     break
1436   fi
1437 done
1438 if test -z "$ac_aux_dir"; then
1439   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1440 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1444 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1445 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1446
1447 # Make sure we can run config.sub.
1448 $ac_config_sub sun4 >/dev/null 2>&1 ||
1449   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1450 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 echo "$as_me:$LINENO: checking build system type" >&5
1454 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1455 if test "${ac_cv_build+set}" = set; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   ac_cv_build_alias=$build_alias
1459 test -z "$ac_cv_build_alias" &&
1460   ac_cv_build_alias=`$ac_config_guess`
1461 test -z "$ac_cv_build_alias" &&
1462   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1463 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1464    { (exit 1); exit 1; }; }
1465 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1466   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1468    { (exit 1); exit 1; }; }
1469
1470 fi
1471 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1472 echo "${ECHO_T}$ac_cv_build" >&6
1473 build=$ac_cv_build
1474 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477
1478
1479 echo "$as_me:$LINENO: checking host system type" >&5
1480 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1481 if test "${ac_cv_host+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   ac_cv_host_alias=$host_alias
1485 test -z "$ac_cv_host_alias" &&
1486   ac_cv_host_alias=$ac_cv_build_alias
1487 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1488   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1490    { (exit 1); exit 1; }; }
1491
1492 fi
1493 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1494 echo "${ECHO_T}$ac_cv_host" >&6
1495 host=$ac_cv_host
1496 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499
1500
1501 echo "$as_me:$LINENO: checking target system type" >&5
1502 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1503 if test "${ac_cv_target+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   ac_cv_target_alias=$target_alias
1507 test "x$ac_cv_target_alias" = "x" &&
1508   ac_cv_target_alias=$ac_cv_host_alias
1509 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1510   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1511 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1512    { (exit 1); exit 1; }; }
1513
1514 fi
1515 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1516 echo "${ECHO_T}$ac_cv_target" >&6
1517 target=$ac_cv_target
1518 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1519 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1520 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1521
1522
1523 # The aliases save the names the user supplied, while $host etc.
1524 # will get canonicalized.
1525 test -n "$target_alias" &&
1526   test "$program_prefix$program_suffix$program_transform_name" = \
1527     NONENONEs,x,x, &&
1528   program_prefix=${target_alias}-
1529
1530 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1531 if test "${enable_java_maintainer_mode+set}" = set; then
1532   enableval="$enable_java_maintainer_mode"
1533
1534 fi;
1535
1536
1537 if test "$enable_java_maintainer_mode" = yes; then
1538   JAVA_MAINTAINER_MODE_TRUE=
1539   JAVA_MAINTAINER_MODE_FALSE='#'
1540 else
1541   JAVA_MAINTAINER_MODE_TRUE='#'
1542   JAVA_MAINTAINER_MODE_FALSE=
1543 fi
1544
1545
1546 # Find the rest of the source tree framework.
1547 # Default to --enable-multilib
1548 # Check whether --enable-multilib or --disable-multilib was given.
1549 if test "${enable_multilib+set}" = set; then
1550   enableval="$enable_multilib"
1551   case "$enableval" in
1552   yes) multilib=yes ;;
1553   no)  multilib=no ;;
1554   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1555 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1556    { (exit 1); exit 1; }; } ;;
1557  esac
1558 else
1559   multilib=yes
1560 fi;
1561
1562 # We may get other options which we leave undocumented:
1563 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1564 # See config-ml.in if you want the gory details.
1565
1566 if test "$srcdir" = "."; then
1567   if test "$with_target_subdir" != "."; then
1568     multi_basedir="$srcdir/$with_multisrctop../../.."
1569   else
1570     multi_basedir="$srcdir/$with_multisrctop../.."
1571   fi
1572 else
1573   multi_basedir="$srcdir/../.."
1574 fi
1575
1576
1577 # Even if the default multilib is not a cross compilation,
1578 # it may be that some of the other multilibs are.
1579 if test $cross_compiling = no && test $multilib = yes \
1580    && test "x${with_multisubdir}" != x ; then
1581    cross_compiling=maybe
1582 fi
1583
1584           ac_config_commands="$ac_config_commands default-1"
1585
1586
1587 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1588
1589 LIBVERSION="0:0:0"
1590
1591 case "$host_os" in
1592      darwin*)
1593         cp_module=""
1594         ;;
1595         *)
1596         cp_module="-module"
1597         ;;
1598 esac
1599
1600 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1601
1602
1603 CLASSPATH_CONVENIENCE="-no-undefined"
1604
1605
1606
1607 am__api_version="1.9"
1608 # Find a good install program.  We prefer a C program (faster),
1609 # so one script is as good as another.  But avoid the broken or
1610 # incompatible versions:
1611 # SysV /etc/install, /usr/sbin/install
1612 # SunOS /usr/etc/install
1613 # IRIX /sbin/install
1614 # AIX /bin/install
1615 # AmigaOS /C/install, which installs bootblocks on floppy discs
1616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1619 # OS/2's system install, which has a completely different semantic
1620 # ./install, which can be erroneously created by make from ./install.sh.
1621 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1622 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1623 if test -z "$INSTALL"; then
1624 if test "${ac_cv_path_install+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   # Account for people who put trailing slashes in PATH elements.
1633 case $as_dir/ in
1634   ./ | .// | /cC/* | \
1635   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1636   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1637   /usr/ucb/* ) ;;
1638   *)
1639     # OSF1 and SCO ODT 3.0 have their own names for install.
1640     # Don't use installbsd from OSF since it installs stuff as root
1641     # by default.
1642     for ac_prog in ginstall scoinst install; do
1643       for ac_exec_ext in '' $ac_executable_extensions; do
1644         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645           if test $ac_prog = install &&
1646             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647             # AIX install.  It has an incompatible calling convention.
1648             :
1649           elif test $ac_prog = install &&
1650             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651             # program-specific install script used by HP pwplus--don't use.
1652             :
1653           else
1654             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655             break 3
1656           fi
1657         fi
1658       done
1659     done
1660     ;;
1661 esac
1662 done
1663
1664
1665 fi
1666   if test "${ac_cv_path_install+set}" = set; then
1667     INSTALL=$ac_cv_path_install
1668   else
1669     # As a last resort, use the slow shell script.  We don't cache a
1670     # path for INSTALL within a source directory, because that will
1671     # break other packages using the cache if that directory is
1672     # removed, or if the path is relative.
1673     INSTALL=$ac_install_sh
1674   fi
1675 fi
1676 echo "$as_me:$LINENO: result: $INSTALL" >&5
1677 echo "${ECHO_T}$INSTALL" >&6
1678
1679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680 # It thinks the first close brace ends the variable substitution.
1681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1682
1683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1684
1685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1686
1687 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1688 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1689 # Just in case
1690 sleep 1
1691 echo timestamp > conftest.file
1692 # Do `set' in a subshell so we don't clobber the current shell's
1693 # arguments.  Must try -L first in case configure is actually a
1694 # symlink; some systems play weird games with the mod time of symlinks
1695 # (eg FreeBSD returns the mod time of the symlink's containing
1696 # directory).
1697 if (
1698    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1699    if test "$*" = "X"; then
1700       # -L didn't work.
1701       set X `ls -t $srcdir/configure conftest.file`
1702    fi
1703    rm -f conftest.file
1704    if test "$*" != "X $srcdir/configure conftest.file" \
1705       && test "$*" != "X conftest.file $srcdir/configure"; then
1706
1707       # If neither matched, then we have a broken ls.  This can happen
1708       # if, for instance, CONFIG_SHELL is bash and it inherits a
1709       # broken ls alias from the environment.  This has actually
1710       # happened.  Such a system could not be considered "sane".
1711       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1712 alias in your environment" >&5
1713 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1714 alias in your environment" >&2;}
1715    { (exit 1); exit 1; }; }
1716    fi
1717
1718    test "$2" = conftest.file
1719    )
1720 then
1721    # Ok.
1722    :
1723 else
1724    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1725 Check your system clock" >&5
1726 echo "$as_me: error: newly created file is older than distributed files!
1727 Check your system clock" >&2;}
1728    { (exit 1); exit 1; }; }
1729 fi
1730 echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732 test "$program_prefix" != NONE &&
1733   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1734 # Use a double $ so make ignores it.
1735 test "$program_suffix" != NONE &&
1736   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1737 # Double any \ or $.  echo might interpret backslashes.
1738 # By default was `s,x,x', remove it if useless.
1739 cat <<\_ACEOF >conftest.sed
1740 s/[\\$]/&&/g;s/;s,x,x,$//
1741 _ACEOF
1742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1743 rm conftest.sed
1744
1745 # expand $ac_aux_dir to an absolute path
1746 am_aux_dir=`cd $ac_aux_dir && pwd`
1747
1748 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1749 # Use eval to expand $SHELL
1750 if eval "$MISSING --run true"; then
1751   am_missing_run="$MISSING --run "
1752 else
1753   am_missing_run=
1754   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1755 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1756 fi
1757
1758 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1759   # We used to keeping the `.' as first argument, in order to
1760   # allow $(mkdir_p) to be used without argument.  As in
1761   #   $(mkdir_p) $(somedir)
1762   # where $(somedir) is conditionally defined.  However this is wrong
1763   # for two reasons:
1764   #  1. if the package is installed by a user who cannot write `.'
1765   #     make install will fail,
1766   #  2. the above comment should most certainly read
1767   #     $(mkdir_p) $(DESTDIR)$(somedir)
1768   #     so it does not work when $(somedir) is undefined and
1769   #     $(DESTDIR) is not.
1770   #  To support the latter case, we have to write
1771   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1772   #  so the `.' trick is pointless.
1773   mkdir_p='mkdir -p --'
1774 else
1775   # On NextStep and OpenStep, the `mkdir' command does not
1776   # recognize any option.  It will interpret all options as
1777   # directories to create, and then abort because `.' already
1778   # exists.
1779   for d in ./-p ./--version;
1780   do
1781     test -d $d && rmdir $d
1782   done
1783   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1784   if test -f "$ac_aux_dir/mkinstalldirs"; then
1785     mkdir_p='$(mkinstalldirs)'
1786   else
1787     mkdir_p='$(install_sh) -d'
1788   fi
1789 fi
1790
1791 for ac_prog in gawk mawk nawk awk
1792 do
1793   # Extract the first word of "$ac_prog", so it can be a program name with args.
1794 set dummy $ac_prog; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_AWK+set}" = set; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   if test -n "$AWK"; then
1801   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1805 do
1806   IFS=$as_save_IFS
1807   test -z "$as_dir" && as_dir=.
1808   for ac_exec_ext in '' $ac_executable_extensions; do
1809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810     ac_cv_prog_AWK="$ac_prog"
1811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812     break 2
1813   fi
1814 done
1815 done
1816
1817 fi
1818 fi
1819 AWK=$ac_cv_prog_AWK
1820 if test -n "$AWK"; then
1821   echo "$as_me:$LINENO: result: $AWK" >&5
1822 echo "${ECHO_T}$AWK" >&6
1823 else
1824   echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
1828   test -n "$AWK" && break
1829 done
1830
1831 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1832 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1833 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1834 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   cat >conftest.make <<\_ACEOF
1838 all:
1839         @echo 'ac_maketemp="$(MAKE)"'
1840 _ACEOF
1841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1842 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1843 if test -n "$ac_maketemp"; then
1844   eval ac_cv_prog_make_${ac_make}_set=yes
1845 else
1846   eval ac_cv_prog_make_${ac_make}_set=no
1847 fi
1848 rm -f conftest.make
1849 fi
1850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1851   echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853   SET_MAKE=
1854 else
1855   echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857   SET_MAKE="MAKE=${MAKE-make}"
1858 fi
1859
1860 rm -rf .tst 2>/dev/null
1861 mkdir .tst 2>/dev/null
1862 if test -d .tst; then
1863   am__leading_dot=.
1864 else
1865   am__leading_dot=_
1866 fi
1867 rmdir .tst 2>/dev/null
1868
1869 # test to see if srcdir already configured
1870 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1871    test -f $srcdir/config.status; then
1872   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1873 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1874    { (exit 1); exit 1; }; }
1875 fi
1876
1877 # test whether we have cygpath
1878 if test -z "$CYGPATH_W"; then
1879   if (cygpath --version) >/dev/null 2>/dev/null; then
1880     CYGPATH_W='cygpath -w'
1881   else
1882     CYGPATH_W=echo
1883   fi
1884 fi
1885
1886
1887 # Define the identity of the package.
1888  PACKAGE='classpath'
1889  VERSION='0.94-pre'
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE "$PACKAGE"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define VERSION "$VERSION"
1899 _ACEOF
1900
1901 # Some tools Automake needs.
1902
1903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1904
1905
1906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1907
1908
1909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1910
1911
1912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1913
1914
1915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1916
1917 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1918
1919 # Installed binaries are usually stripped using `strip' when the user
1920 # run `make install-strip'.  However `strip' might not be the right
1921 # tool to use in cross-compilation environments, therefore Automake
1922 # will honor the `STRIP' environment variable to overrule this program.
1923 if test "$cross_compiling" != no; then
1924   if test -n "$ac_tool_prefix"; then
1925   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}strip; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_STRIP+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$STRIP"; then
1933   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 STRIP=$ac_cv_prog_STRIP
1952 if test -n "$STRIP"; then
1953   echo "$as_me:$LINENO: result: $STRIP" >&5
1954 echo "${ECHO_T}$STRIP" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960 fi
1961 if test -z "$ac_cv_prog_STRIP"; then
1962   ac_ct_STRIP=$STRIP
1963   # Extract the first word of "strip", so it can be a program name with args.
1964 set dummy strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$ac_ct_STRIP"; then
1971   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_ac_ct_STRIP="strip"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1988 fi
1989 fi
1990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1991 if test -n "$ac_ct_STRIP"; then
1992   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1993 echo "${ECHO_T}$ac_ct_STRIP" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999   STRIP=$ac_ct_STRIP
2000 else
2001   STRIP="$ac_cv_prog_STRIP"
2002 fi
2003
2004 fi
2005 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2006
2007 # We need awk for the "check" target.  The system "awk" is bad on
2008 # some platforms.
2009 # Always define AMTAR for backward compatibility.
2010
2011 AMTAR=${AMTAR-"${am_missing_run}tar"}
2012
2013
2014 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2015 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2016 # Loop over all known methods to create a tar archive until one works.
2017 _am_tools='gnutar plaintar pax cpio none'
2018 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2019 # Do not fold the above two line into one, because Tru64 sh and
2020 # Solaris sh will not grok spaces in the rhs of `-'.
2021 for _am_tool in $_am_tools
2022 do
2023   case $_am_tool in
2024   gnutar)
2025     for _am_tar in tar gnutar gtar;
2026     do
2027       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2028    ($_am_tar --version) >&5 2>&5
2029    ac_status=$?
2030    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031    (exit $ac_status); } && break
2032     done
2033     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2034     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2035     am__untar="$_am_tar -xf -"
2036     ;;
2037   plaintar)
2038     # Must skip GNU tar: if it does not support --format= it doesn't create
2039     # ustar tarball either.
2040     (tar --version) >/dev/null 2>&1 && continue
2041     am__tar='tar chf - "$$tardir"'
2042     am__tar_='tar chf - "$tardir"'
2043     am__untar='tar xf -'
2044     ;;
2045   pax)
2046     am__tar='pax -L -x ustar -w "$$tardir"'
2047     am__tar_='pax -L -x ustar -w "$tardir"'
2048     am__untar='pax -r'
2049     ;;
2050   cpio)
2051     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2052     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2053     am__untar='cpio -i -H ustar -d'
2054     ;;
2055   none)
2056     am__tar=false
2057     am__tar_=false
2058     am__untar=false
2059     ;;
2060   esac
2061
2062   # If the value was cached, stop now.  We just wanted to have am__tar
2063   # and am__untar set.
2064   test -n "${am_cv_prog_tar_ustar}" && break
2065
2066   # tar/untar a dummy directory, and stop if the command works
2067   rm -rf conftest.dir
2068   mkdir conftest.dir
2069   echo GrepMe > conftest.dir/file
2070   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2071    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2072    ac_status=$?
2073    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074    (exit $ac_status); }
2075   rm -rf conftest.dir
2076   if test -s conftest.tar; then
2077     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2078    ($am__untar <conftest.tar) >&5 2>&5
2079    ac_status=$?
2080    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081    (exit $ac_status); }
2082     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2083   fi
2084 done
2085 rm -rf conftest.dir
2086
2087 if test "${am_cv_prog_tar_ustar+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   am_cv_prog_tar_ustar=$_am_tool
2091 fi
2092
2093 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2094 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2095
2096
2097
2098
2099
2100           ac_config_headers="$ac_config_headers include/config.h"
2101
2102
2103
2104
2105
2106 # Check whether --enable-collections or --disable-collections was given.
2107 if test "${enable_collections+set}" = set; then
2108   enableval="$enable_collections"
2109   case x"${enableval}" in
2110                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2111                 xno) COMPILE_COLLECTIONS=no ;;
2112                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2113                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2114               esac
2115 else
2116   COMPILE_COLLECTIONS=no
2117 fi;
2118
2119
2120 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2121   CREATE_COLLECTIONS_TRUE=
2122   CREATE_COLLECTIONS_FALSE='#'
2123 else
2124   CREATE_COLLECTIONS_TRUE='#'
2125   CREATE_COLLECTIONS_FALSE=
2126 fi
2127
2128
2129 # Check whether --enable-jni or --disable-jni was given.
2130 if test "${enable_jni+set}" = set; then
2131   enableval="$enable_jni"
2132   case "${enableval}" in
2133                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2134                 no) COMPILE_JNI=no ;;
2135                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2136               esac
2137 else
2138   COMPILE_JNI=yes
2139 fi;
2140
2141
2142 if test "x${COMPILE_JNI}" = xyes; then
2143   CREATE_JNI_LIBRARIES_TRUE=
2144   CREATE_JNI_LIBRARIES_FALSE='#'
2145 else
2146   CREATE_JNI_LIBRARIES_TRUE='#'
2147   CREATE_JNI_LIBRARIES_FALSE=
2148 fi
2149
2150
2151 # Check whether --enable-core-jni or --disable-core-jni was given.
2152 if test "${enable_core_jni+set}" = set; then
2153   enableval="$enable_core_jni"
2154   case "${enableval}" in
2155                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2156                 no) COMPILE_CORE_JNI=no ;;
2157                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2158               esac
2159 else
2160   COMPILE_CORE_JNI=yes
2161 fi;
2162
2163
2164 if test "x${COMPILE_CORE_JNI}" = xyes; then
2165   CREATE_CORE_JNI_LIBRARIES_TRUE=
2166   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2167 else
2168   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2169   CREATE_CORE_JNI_LIBRARIES_FALSE=
2170 fi
2171
2172
2173 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2174 if test "${enable_default_preferences_peer+set}" = set; then
2175   enableval="$enable_default_preferences_peer"
2176   case "${enableval}" in
2177                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
2178                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
2179                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
2180                 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2181 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2182    { (exit 1); exit 1; }; } ;;
2183                 *) DEFAULT_PREFS_PEER=${enableval} ;;
2184               esac
2185 else
2186   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2187 fi;
2188
2189 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2190 if test "${enable_gconf_peer+set}" = set; then
2191   enableval="$enable_gconf_peer"
2192   case "${enableval}" in
2193                 yes) COMPILE_GCONF_PEER=yes ;;
2194                 no) COMPILE_GCONF_PEER=no ;;
2195                 *) COMPILE_GCONF_PEER=yes ;;
2196               esac
2197 else
2198   COMPILE_GCONF_PEER=yes
2199 fi;
2200
2201
2202 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2203   CREATE_GCONF_PEER_LIBRARIES_TRUE=
2204   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2205 else
2206   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2207   CREATE_GCONF_PEER_LIBRARIES_FALSE=
2208 fi
2209
2210
2211 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2212 if test "${enable_gconf_peers+set}" = set; then
2213   enableval="$enable_gconf_peers"
2214   { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2215 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi;
2218
2219 # Check whether --enable-Werror or --disable-Werror was given.
2220 if test "${enable_Werror+set}" = set; then
2221   enableval="$enable_Werror"
2222   case "${enableval}" in
2223                 yes) ENABLE_WERROR=yes ;;
2224                 no) ENABLE_WERROR=no ;;
2225                 *) ENABLE_WERROR=default ;;
2226               esac
2227 else
2228   ENABLE_WERROR=default
2229 fi;
2230
2231 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2232 if test "${enable_default_toolkit+set}" = set; then
2233   enableval="$enable_default_toolkit"
2234
2235 fi;
2236 default_toolkit=$enable_default_toolkit
2237 if test "$default_toolkit" = ""; then
2238    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2239 fi
2240
2241
2242 # Check whether --enable-xmlj or --disable-xmlj was given.
2243 if test "${enable_xmlj+set}" = set; then
2244   enableval="$enable_xmlj"
2245   case "${enableval}" in
2246                 yes) COMPILE_XMLJ=yes ;;
2247                 no) COMPILE_XMLJ=no ;;
2248                 *) COMPILE_XMLJ=no ;;
2249               esac
2250 else
2251   COMPILE_XMLJ=no
2252 fi;
2253
2254
2255 if test "x${COMPILE_XMLJ}" = xyes; then
2256   CREATE_XMLJ_LIBRARY_TRUE=
2257   CREATE_XMLJ_LIBRARY_FALSE='#'
2258 else
2259   CREATE_XMLJ_LIBRARY_TRUE='#'
2260   CREATE_XMLJ_LIBRARY_FALSE=
2261 fi
2262
2263
2264 DEPDIR="${am__leading_dot}deps"
2265
2266           ac_config_commands="$ac_config_commands depfiles"
2267
2268
2269 am_make=${MAKE-make}
2270 cat > confinc << 'END'
2271 am__doit:
2272         @echo done
2273 .PHONY: am__doit
2274 END
2275 # If we don't find an include directive, just comment out the code.
2276 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2277 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2278 am__include="#"
2279 am__quote=
2280 _am_result=none
2281 # First try GNU make style include.
2282 echo "include confinc" > confmf
2283 # We grep out `Entering directory' and `Leaving directory'
2284 # messages which can occur if `w' ends up in MAKEFLAGS.
2285 # In particular we don't look at `^make:' because GNU make might
2286 # be invoked under some other name (usually "gmake"), in which
2287 # case it prints its new name instead of `make'.
2288 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2289    am__include=include
2290    am__quote=
2291    _am_result=GNU
2292 fi
2293 # Now try BSD make style include.
2294 if test "$am__include" = "#"; then
2295    echo '.include "confinc"' > confmf
2296    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2297       am__include=.include
2298       am__quote="\""
2299       _am_result=BSD
2300    fi
2301 fi
2302
2303
2304 echo "$as_me:$LINENO: result: $_am_result" >&5
2305 echo "${ECHO_T}$_am_result" >&6
2306 rm -f confinc confmf
2307
2308 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2309 if test "${enable_dependency_tracking+set}" = set; then
2310   enableval="$enable_dependency_tracking"
2311
2312 fi;
2313 if test "x$enable_dependency_tracking" != xno; then
2314   am_depcomp="$ac_aux_dir/depcomp"
2315   AMDEPBACKSLASH='\'
2316 fi
2317
2318
2319 if test "x$enable_dependency_tracking" != xno; then
2320   AMDEP_TRUE=
2321   AMDEP_FALSE='#'
2322 else
2323   AMDEP_TRUE='#'
2324   AMDEP_FALSE=
2325 fi
2326
2327
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$CC"; then
2343   ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358
2359 fi
2360 fi
2361 CC=$ac_cv_prog_CC
2362 if test -n "$CC"; then
2363   echo "$as_me:$LINENO: result: $CC" >&5
2364 echo "${ECHO_T}$CC" >&6
2365 else
2366   echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2368 fi
2369
2370 fi
2371 if test -z "$ac_cv_prog_CC"; then
2372   ac_ct_CC=$CC
2373   # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; 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_ac_ct_CC+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   if test -n "$ac_ct_CC"; then
2381   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2400 if test -n "$ac_ct_CC"; then
2401   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2402 echo "${ECHO_T}$ac_ct_CC" >&6
2403 else
2404   echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2406 fi
2407
2408   CC=$ac_ct_CC
2409 else
2410   CC="$ac_cv_prog_CC"
2411 fi
2412
2413 if test -z "$CC"; then
2414   if test -n "$ac_tool_prefix"; then
2415   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}cc; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   if test -n "$CC"; then
2423   ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432     ac_cv_prog_CC="${ac_tool_prefix}cc"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443   echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446   echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 fi
2449
2450 fi
2451 if test -z "$ac_cv_prog_CC"; then
2452   ac_ct_CC=$CC
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_ac_ct_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$ac_ct_CC"; then
2461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470     ac_cv_prog_ac_ct_CC="cc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476
2477 fi
2478 fi
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 echo "${ECHO_T}$ac_ct_CC" >&6
2483 else
2484   echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 fi
2487
2488   CC=$ac_ct_CC
2489 else
2490   CC="$ac_cv_prog_CC"
2491 fi
2492
2493 fi
2494 if test -z "$CC"; then
2495   # Extract the first word of "cc", so it can be a program name with args.
2496 set dummy cc; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505   ac_prog_rejected=no
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514        ac_prog_rejected=yes
2515        continue
2516      fi
2517     ac_cv_prog_CC="cc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524 if test $ac_prog_rejected = yes; then
2525   # We found a bogon in the path, so make sure we never use it.
2526   set dummy $ac_cv_prog_CC
2527   shift
2528   if test $# != 0; then
2529     # We chose a different compiler from the bogus one.
2530     # However, it has the same basename, so the bogon will be chosen
2531     # first if we set CC to just the basename; use the full file name.
2532     shift
2533     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534   fi
2535 fi
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6
2582 else
2583   echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2585 fi
2586
2587     test -n "$CC" && break
2588   done
2589 fi
2590 if test -z "$CC"; then
2591   ac_ct_CC=$CC
2592   for ac_prog in cl
2593 do
2594   # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$ac_ct_CC"; then
2602   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611     ac_cv_prog_ac_ct_CC="$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6
2624 else
2625   echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2627 fi
2628
2629   test -n "$ac_ct_CC" && break
2630 done
2631
2632   CC=$ac_ct_CC
2633 fi
2634
2635 fi
2636
2637
2638 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: no acceptable C compiler found in \$PATH
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643
2644 # Provide some information about the compiler.
2645 echo "$as_me:$LINENO:" \
2646      "checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2649   (eval $ac_compiler --version </dev/null >&5) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }
2653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2654   (eval $ac_compiler -v </dev/null >&5) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2659   (eval $ac_compiler -V </dev/null >&5) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }
2663
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670
2671 int
2672 main ()
2673 {
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 # FIXME: Cleanup?
2680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2681   (eval $ac_link) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; then
2685   gcc_no_link=no
2686 else
2687   gcc_no_link=yes
2688 fi
2689
2690 if test x$gcc_no_link = xyes; then
2691   # Setting cross_compile will disable run tests; it will
2692   # also disable AC_CHECK_FILE but that's generally
2693   # correct if we can't link.
2694   cross_compiling=yes
2695   EXEEXT=
2696 else
2697   cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 ac_clean_files_save=$ac_clean_files
2713 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2714 # Try to create an executable without -o first, disregard a.out.
2715 # It will help us diagnose broken compilers, and finding out an intuition
2716 # of exeext.
2717 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2721   (eval $ac_link_default) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; then
2725   # Find the output, starting from the most likely.  This scheme is
2726 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2727 # resort.
2728
2729 # Be careful to initialize this variable, since it used to be cached.
2730 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2731 ac_cv_exeext=
2732 # b.out is created by i960 compilers.
2733 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2734 do
2735   test -f "$ac_file" || continue
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2738         ;;
2739     conftest.$ac_ext )
2740         # This is the source file.
2741         ;;
2742     [ab].out )
2743         # We found the default executable, but exeext='' is most
2744         # certainly right.
2745         break;;
2746     *.* )
2747         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748         # FIXME: I believe we export ac_cv_exeext for Libtool,
2749         # but it would be cool to find out if it's true.  Does anybody
2750         # maintain Libtool? --akim.
2751         export ac_cv_exeext
2752         break;;
2753     * )
2754         break;;
2755   esac
2756 done
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2762 See \`config.log' for more details." >&5
2763 echo "$as_me: error: C compiler cannot create executables
2764 See \`config.log' for more details." >&2;}
2765    { (exit 77); exit 77; }; }
2766 fi
2767
2768 ac_exeext=$ac_cv_exeext
2769 echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6
2771
2772 # Check the compiler produces executables we can run.  If not, either
2773 # the compiler is broken, or we cross compile.
2774 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2775 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2776 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2777 # If not cross compiling, check that we can run a simple program.
2778 if test "$cross_compiling" != yes; then
2779   if { ac_try='./$ac_file'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785     cross_compiling=no
2786   else
2787     if test "$cross_compiling" = maybe; then
2788         cross_compiling=yes
2789     else
2790         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot run C compiled programs.
2794 If you meant to cross compile, use \`--host'.
2795 See \`config.log' for more details." >&2;}
2796    { (exit 1); exit 1; }; }
2797     fi
2798   fi
2799 fi
2800 echo "$as_me:$LINENO: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802
2803 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2804 ac_clean_files=$ac_clean_files_save
2805 # Check the compiler produces executables we can run.  If not, either
2806 # the compiler is broken, or we cross compile.
2807 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2809 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2810 echo "${ECHO_T}$cross_compiling" >&6
2811
2812 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2813 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815   (eval $ac_link) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; then
2819   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2821 # work properly (i.e., refer to `conftest.exe'), while it won't with
2822 # `rm'.
2823 for ac_file in conftest.exe conftest conftest.*; do
2824   test -f "$ac_file" || continue
2825   case $ac_file in
2826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2827     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828           export ac_cv_exeext
2829           break;;
2830     * ) break;;
2831   esac
2832 done
2833 else
2834   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2837 See \`config.log' for more details." >&2;}
2838    { (exit 1); exit 1; }; }
2839 fi
2840
2841 rm -f conftest$ac_cv_exeext
2842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2843 echo "${ECHO_T}$ac_cv_exeext" >&6
2844
2845 rm -f conftest.$ac_ext
2846 EXEEXT=$ac_cv_exeext
2847 ac_exeext=$EXEEXT
2848 fi
2849 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2851 if test "${ac_cv_objext+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871   (eval $ac_compile) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; then
2875   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2876   case $ac_file in
2877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2878     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2879        break;;
2880   esac
2881 done
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2889 See \`config.log' for more details." >&2;}
2890    { (exit 1); exit 1; }; }
2891 fi
2892
2893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896 echo "${ECHO_T}$ac_cv_objext" >&6
2897 OBJEXT=$ac_cv_objext
2898 ac_objext=$OBJEXT
2899 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914 #ifndef __GNUC__
2915        choke me
2916 #endif
2917
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924   (eval $ac_compile) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -z "$ac_c_werror_flag"
2932                          || test ! -s conftest.err'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; } &&
2938          { ac_try='test -s conftest.$ac_objext'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; }; then
2944   ac_compiler_gnu=yes
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 ac_compiler_gnu=no
2950 fi
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2953
2954 fi
2955 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2957 GCC=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS=${CFLAGS+set}
2959 ac_save_CFLAGS=$CFLAGS
2960 CFLAGS="-g"
2961 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2962 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2963 if test "${ac_cv_prog_cc_g+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972
2973 int
2974 main ()
2975 {
2976
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983   (eval $ac_compile) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_c_werror_flag"
2991                          || test ! -s conftest.err'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_cv_prog_cc_g=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 ac_cv_prog_cc_g=no
3009 fi
3010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3013 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3014 if test "$ac_test_CFLAGS" = set; then
3015   CFLAGS=$ac_save_CFLAGS
3016 elif test $ac_cv_prog_cc_g = yes; then
3017   if test "$GCC" = yes; then
3018     CFLAGS="-g -O2"
3019   else
3020     CFLAGS="-g"
3021   fi
3022 else
3023   if test "$GCC" = yes; then
3024     CFLAGS="-O2"
3025   else
3026     CFLAGS=
3027   fi
3028 fi
3029 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3030 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3031 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_cv_prog_cc_stdc=no
3035 ac_save_CC=$CC
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #include <stdarg.h>
3043 #include <stdio.h>
3044 #include <sys/types.h>
3045 #include <sys/stat.h>
3046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3047 struct buf { int x; };
3048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3049 static char *e (p, i)
3050      char **p;
3051      int i;
3052 {
3053   return p[i];
3054 }
3055 static char *f (char * (*g) (char **, int), char **p, ...)
3056 {
3057   char *s;
3058   va_list v;
3059   va_start (v,p);
3060   s = g (p, va_arg (v,int));
3061   va_end (v);
3062   return s;
3063 }
3064
3065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3066    function prototypes and stuff, but not '\xHH' hex character constants.
3067    These don't provoke an error unfortunately, instead are silently treated
3068    as 'x'.  The following induces an error, until -std1 is added to get
3069    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3070    array size at least.  It's necessary to write '\x00'==0 to get something
3071    that's true only with -std1.  */
3072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073
3074 int test (int i, double x);
3075 struct s1 {int (*f) (int a);};
3076 struct s2 {int (*f) (double a);};
3077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3078 int argc;
3079 char **argv;
3080 int
3081 main ()
3082 {
3083 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 # Don't try gcc -ansi; that turns off useful extensions and
3089 # breaks some systems' header files.
3090 # AIX                   -qlanglvl=ansi
3091 # Ultrix and OSF/1      -std1
3092 # HP-UX 10.20 and later -Ae
3093 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3094 # SVR4                  -Xc -D__EXTENSIONS__
3095 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3096 do
3097   CC="$ac_save_CC $ac_arg"
3098   rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100   (eval $ac_compile) 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -z "$ac_c_werror_flag"
3108                          || test ! -s conftest.err'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; } &&
3114          { ac_try='test -s conftest.$ac_objext'
3115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116   (eval $ac_try) 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; }; then
3120   ac_cv_prog_cc_stdc=$ac_arg
3121 break
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 fi
3127 rm -f conftest.err conftest.$ac_objext
3128 done
3129 rm -f conftest.$ac_ext conftest.$ac_objext
3130 CC=$ac_save_CC
3131
3132 fi
3133
3134 case "x$ac_cv_prog_cc_stdc" in
3135   x|xno)
3136     echo "$as_me:$LINENO: result: none needed" >&5
3137 echo "${ECHO_T}none needed" >&6 ;;
3138   *)
3139     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3140 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3141     CC="$CC $ac_cv_prog_cc_stdc" ;;
3142 esac
3143
3144 # Some people use a C++ compiler to compile C.  Since we use `exit',
3145 # in C++ we need to declare it.  In case someone uses the same compiler
3146 # for both compiling C and C++ we need to have the C++ compiler decide
3147 # the declaration of exit, since it's the most demanding environment.
3148 cat >conftest.$ac_ext <<_ACEOF
3149 #ifndef __cplusplus
3150   choke me
3151 #endif
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag"
3163                          || test ! -s conftest.err'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   for ac_declaration in \
3176    '' \
3177    'extern "C" void std::exit (int) throw (); using std::exit;' \
3178    'extern "C" void std::exit (int); using std::exit;' \
3179    'extern "C" void exit (int) throw ();' \
3180    'extern "C" void exit (int);' \
3181    'void exit (int);'
3182 do
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 $ac_declaration
3190 #include <stdlib.h>
3191 int
3192 main ()
3193 {
3194 exit (42);
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201   (eval $ac_compile) 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } &&
3208          { ac_try='test -z "$ac_c_werror_flag"
3209                          || test ! -s conftest.err'
3210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211   (eval $ac_try) 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; } &&
3215          { ac_try='test -s conftest.$ac_objext'
3216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217   (eval $ac_try) 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }; }; then
3221   :
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 continue
3227 fi
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 $ac_declaration
3236 int
3237 main ()
3238 {
3239 exit (42);
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246   (eval $ac_compile) 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } &&
3253          { ac_try='test -z "$ac_c_werror_flag"
3254                          || test ! -s conftest.err'
3255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256   (eval $ac_try) 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; } &&
3260          { ac_try='test -s conftest.$ac_objext'
3261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262   (eval $ac_try) 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }; }; then
3266   break
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 fi
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273 done
3274 rm -f conftest*
3275 if test -n "$ac_declaration"; then
3276   echo '#ifdef __cplusplus' >>confdefs.h
3277   echo $ac_declaration      >>confdefs.h
3278   echo '#endif'             >>confdefs.h
3279 fi
3280
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 fi
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
3293 depcc="$CC"   am_compiler_list=
3294
3295 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3296 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3297 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3301   # We make a subdir and do the tests there.  Otherwise we can end up
3302   # making bogus files that we don't know about and never remove.  For
3303   # instance it was reported that on HP-UX the gcc test will end up
3304   # making a dummy file named `D' -- because `-MD' means `put the output
3305   # in D'.
3306   mkdir conftest.dir
3307   # Copy depcomp to subdir because otherwise we won't find it if we're
3308   # using a relative directory.
3309   cp "$am_depcomp" conftest.dir
3310   cd conftest.dir
3311   # We will build objects and dependencies in a subdirectory because
3312   # it helps to detect inapplicable dependency modes.  For instance
3313   # both Tru64's cc and ICC support -MD to output dependencies as a
3314   # side effect of compilation, but ICC will put the dependencies in
3315   # the current directory while Tru64 will put them in the object
3316   # directory.
3317   mkdir sub
3318
3319   am_cv_CC_dependencies_compiler_type=none
3320   if test "$am_compiler_list" = ""; then
3321      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3322   fi
3323   for depmode in $am_compiler_list; do
3324     # Setup a source with many dependencies, because some compilers
3325     # like to wrap large dependency lists on column 80 (with \), and
3326     # we should not choose a depcomp mode which is confused by this.
3327     #
3328     # We need to recreate these files for each test, as the compiler may
3329     # overwrite some of them when testing with obscure command lines.
3330     # This happens at least with the AIX C compiler.
3331     : > sub/conftest.c
3332     for i in 1 2 3 4 5 6; do
3333       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3334       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3335       # Solaris 8's {/usr,}/bin/sh.
3336       touch sub/conftst$i.h
3337     done
3338     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3339
3340     case $depmode in
3341     nosideeffect)
3342       # after this tag, mechanisms are not by side-effect, so they'll
3343       # only be used when explicitly requested
3344       if test "x$enable_dependency_tracking" = xyes; then
3345         continue
3346       else
3347         break
3348       fi
3349       ;;
3350     none) break ;;
3351     esac
3352     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3353     # mode.  It turns out that the SunPro C++ compiler does not properly
3354     # handle `-M -o', and we need to detect this.
3355     if depmode=$depmode \
3356        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3357        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3358        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3359          >/dev/null 2>conftest.err &&
3360        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3361        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3362        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3363       # icc doesn't choke on unknown options, it will just issue warnings
3364       # or remarks (even with -Werror).  So we grep stderr for any message
3365       # that says an option was ignored or not supported.
3366       # When given -MP, icc 7.0 and 7.1 complain thusly:
3367       #   icc: Command line warning: ignoring option '-M'; no argument required
3368       # The diagnosis changed in icc 8.0:
3369       #   icc: Command line remark: option '-MP' not supported
3370       if (grep 'ignoring option' conftest.err ||
3371           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3372         am_cv_CC_dependencies_compiler_type=$depmode
3373         break
3374       fi
3375     fi
3376   done
3377
3378   cd ..
3379   rm -rf conftest.dir
3380 else
3381   am_cv_CC_dependencies_compiler_type=none
3382 fi
3383
3384 fi
3385 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3386 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3387 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3388
3389
3390
3391 if
3392   test "x$enable_dependency_tracking" != xno \
3393   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3394   am__fastdepCC_TRUE=
3395   am__fastdepCC_FALSE='#'
3396 else
3397   am__fastdepCC_TRUE='#'
3398   am__fastdepCC_FALSE=
3399 fi
3400
3401
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3409 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3410 # On Suns, sometimes $CPP names a directory.
3411 if test -n "$CPP" && test -d "$CPP"; then
3412   CPP=
3413 fi
3414 if test -z "$CPP"; then
3415   if test "${ac_cv_prog_CPP+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418       # Double quotes because CPP needs to be expanded
3419     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3420     do
3421       ac_preproc_ok=false
3422 for ac_c_preproc_warn_flag in '' yes
3423 do
3424   # Use a header file that comes with gcc, so configuring glibc
3425   # with a fresh cross-compiler works.
3426   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427   # <limits.h> exists even on freestanding compilers.
3428   # On the NeXT, cc -E runs the code through the compiler's parser,
3429   # not just through cpp. "Syntax error" is here to catch this case.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #ifdef __STDC__
3437 # include <limits.h>
3438 #else
3439 # include <assert.h>
3440 #endif
3441                      Syntax error
3442 _ACEOF
3443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } >/dev/null; then
3451   if test -s conftest.err; then
3452     ac_cpp_err=$ac_c_preproc_warn_flag
3453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454   else
3455     ac_cpp_err=
3456   fi
3457 else
3458   ac_cpp_err=yes
3459 fi
3460 if test -z "$ac_cpp_err"; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466   # Broken: fails on valid input.
3467 continue
3468 fi
3469 rm -f conftest.err conftest.$ac_ext
3470
3471   # OK, works on sane cases.  Now check whether non-existent headers
3472   # can be detected and how.
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479 #include <ac_nonexistent.h>
3480 _ACEOF
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492   else
3493     ac_cpp_err=
3494   fi
3495 else
3496   ac_cpp_err=yes
3497 fi
3498 if test -z "$ac_cpp_err"; then
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505   # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3508 fi
3509 rm -f conftest.err conftest.$ac_ext
3510
3511 done
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3515   break
3516 fi
3517
3518     done
3519     ac_cv_prog_CPP=$CPP
3520
3521 fi
3522   CPP=$ac_cv_prog_CPP
3523 else
3524   ac_cv_prog_CPP=$CPP
3525 fi
3526 echo "$as_me:$LINENO: result: $CPP" >&5
3527 echo "${ECHO_T}$CPP" >&6
3528 ac_preproc_ok=false
3529 for ac_c_preproc_warn_flag in '' yes
3530 do
3531   # Use a header file that comes with gcc, so configuring glibc
3532   # with a fresh cross-compiler works.
3533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534   # <limits.h> exists even on freestanding compilers.
3535   # On the NeXT, cc -E runs the code through the compiler's parser,
3536   # not just through cpp. "Syntax error" is here to catch this case.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #ifdef __STDC__
3544 # include <limits.h>
3545 #else
3546 # include <assert.h>
3547 #endif
3548                      Syntax error
3549 _ACEOF
3550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } >/dev/null; then
3558   if test -s conftest.err; then
3559     ac_cpp_err=$ac_c_preproc_warn_flag
3560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561   else
3562     ac_cpp_err=
3563   fi
3564 else
3565   ac_cpp_err=yes
3566 fi
3567 if test -z "$ac_cpp_err"; then
3568   :
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573   # Broken: fails on valid input.
3574 continue
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577
3578   # OK, works on sane cases.  Now check whether non-existent headers
3579   # can be detected and how.
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } >/dev/null; then
3596   if test -s conftest.err; then
3597     ac_cpp_err=$ac_c_preproc_warn_flag
3598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599   else
3600     ac_cpp_err=
3601   fi
3602 else
3603   ac_cpp_err=yes
3604 fi
3605 if test -z "$ac_cpp_err"; then
3606   # Broken: success on invalid input.
3607 continue
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612   # Passes both tests.
3613 ac_preproc_ok=:
3614 break
3615 fi
3616 rm -f conftest.err conftest.$ac_ext
3617
3618 done
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then
3622   :
3623 else
3624   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3625 See \`config.log' for more details." >&5
3626 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637
3638 echo "$as_me:$LINENO: checking for egrep" >&5
3639 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3640 if test "${ac_cv_prog_egrep+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3644     then ac_cv_prog_egrep='grep -E'
3645     else ac_cv_prog_egrep='egrep'
3646     fi
3647 fi
3648 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3649 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3650  EGREP=$ac_cv_prog_egrep
3651
3652
3653 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3654 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3655 if test "${ac_cv_header_stdc+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #include <stdlib.h>
3665 #include <stdarg.h>
3666 #include <string.h>
3667 #include <float.h>
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679   (eval $ac_compile) 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } &&
3686          { ac_try='test -z "$ac_c_werror_flag"
3687                          || test ! -s conftest.err'
3688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689   (eval $ac_try) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; } &&
3693          { ac_try='test -s conftest.$ac_objext'
3694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695   (eval $ac_try) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; }; then
3699   ac_cv_header_stdc=yes
3700 else
3701   echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 ac_cv_header_stdc=no
3705 fi
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707
3708 if test $ac_cv_header_stdc = yes; then
3709   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710   cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h.  */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h.  */
3716 #include <string.h>
3717
3718 _ACEOF
3719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720   $EGREP "memchr" >/dev/null 2>&1; then
3721   :
3722 else
3723   ac_cv_header_stdc=no
3724 fi
3725 rm -f conftest*
3726
3727 fi
3728
3729 if test $ac_cv_header_stdc = yes; then
3730   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 #include <stdlib.h>
3738
3739 _ACEOF
3740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3741   $EGREP "free" >/dev/null 2>&1; then
3742   :
3743 else
3744   ac_cv_header_stdc=no
3745 fi
3746 rm -f conftest*
3747
3748 fi
3749
3750 if test $ac_cv_header_stdc = yes; then
3751   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3752   if test "$cross_compiling" = yes; then
3753   :
3754 else
3755   cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <ctype.h>
3762 #if ((' ' & 0x0FF) == 0x020)
3763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3765 #else
3766 # define ISLOWER(c) \
3767                    (('a' <= (c) && (c) <= 'i') \
3768                      || ('j' <= (c) && (c) <= 'r') \
3769                      || ('s' <= (c) && (c) <= 'z'))
3770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3771 #endif
3772
3773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3774 int
3775 main ()
3776 {
3777   int i;
3778   for (i = 0; i < 256; i++)
3779     if (XOR (islower (i), ISLOWER (i))
3780         || toupper (i) != TOUPPER (i))
3781       exit(2);
3782   exit (0);
3783 }
3784 _ACEOF
3785 rm -f conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787   (eval $ac_link) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; }; then
3796   :
3797 else
3798   echo "$as_me: program exited with status $ac_status" >&5
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ( exit $ac_status )
3803 ac_cv_header_stdc=no
3804 fi
3805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 fi
3808 fi
3809 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3810 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3811 if test $ac_cv_header_stdc = yes; then
3812
3813 cat >>confdefs.h <<\_ACEOF
3814 #define STDC_HEADERS 1
3815 _ACEOF
3816
3817 fi
3818
3819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3830                   inttypes.h stdint.h unistd.h
3831 do
3832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 echo "$as_me:$LINENO: checking for $ac_header" >&5
3834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 $ac_includes_default
3845
3846 #include <$ac_header>
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850   (eval $ac_compile) 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } &&
3857          { ac_try='test -z "$ac_c_werror_flag"
3858                          || test ! -s conftest.err'
3859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860   (eval $ac_try) 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); }; } &&
3864          { ac_try='test -s conftest.$ac_objext'
3865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866   (eval $ac_try) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   eval "$as_ac_Header=yes"
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 eval "$as_ac_Header=no"
3876 fi
3877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3878 fi
3879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3882   cat >>confdefs.h <<_ACEOF
3883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884 _ACEOF
3885
3886 fi
3887
3888 done
3889
3890
3891 # Check whether --enable-alsa or --disable-alsa was given.
3892 if test "${enable_alsa+set}" = set; then
3893   enableval="$enable_alsa"
3894   case "${enableval}" in
3895                 yes) COMPILE_ALSA=yes ;;
3896                 no) COMPILE_ALSA=no ;;
3897                 *) COMPILE_ALSA=yes ;;
3898               esac
3899 else
3900
3901 for ac_header in alsa/asoundlib.h
3902 do
3903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3905   echo "$as_me:$LINENO: checking for $ac_header" >&5
3906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 fi
3910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3912 else
3913   # Is the header compilable?
3914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 $ac_includes_default
3923 #include <$ac_header>
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927   (eval $ac_compile) 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } &&
3934          { ac_try='test -z "$ac_c_werror_flag"
3935                          || test ! -s conftest.err'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; } &&
3941          { ac_try='test -s conftest.$ac_objext'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   ac_header_compiler=yes
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_header_compiler=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3956 echo "${ECHO_T}$ac_header_compiler" >&6
3957
3958 # Is the header present?
3959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #include <$ac_header>
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } >/dev/null; then
3977   if test -s conftest.err; then
3978     ac_cpp_err=$ac_c_preproc_warn_flag
3979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980   else
3981     ac_cpp_err=
3982   fi
3983 else
3984   ac_cpp_err=yes
3985 fi
3986 if test -z "$ac_cpp_err"; then
3987   ac_header_preproc=yes
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992   ac_header_preproc=no
3993 fi
3994 rm -f conftest.err conftest.$ac_ext
3995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3996 echo "${ECHO_T}$ac_header_preproc" >&6
3997
3998 # So?  What about this header?
3999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4000   yes:no: )
4001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4005     ac_header_preproc=yes
4006     ;;
4007   no:yes:* )
4008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4020     (
4021       cat <<\_ASBOX
4022 ## -------------------------------- ##
4023 ## Report this to classpath@gnu.org ##
4024 ## -------------------------------- ##
4025 _ASBOX
4026     ) |
4027       sed "s/^/$as_me: WARNING:     /" >&2
4028     ;;
4029 esac
4030 echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   eval "$as_ac_Header=\$ac_header_preproc"
4036 fi
4037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4039
4040 fi
4041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042   cat >>confdefs.h <<_ACEOF
4043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4044 _ACEOF
4045  echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4046 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4047 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_check_lib_save_LIBS=$LIBS
4051 LIBS="-lasound  $LIBS"
4052 if test x$gcc_no_link = xyes; then
4053   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063
4064 /* Override any gcc2 internal prototype to avoid an error.  */
4065 #ifdef __cplusplus
4066 extern "C"
4067 #endif
4068 /* We use char because int might match the return type of a gcc2
4069    builtin and then its argument prototype would still apply.  */
4070 char snd_seq_open ();
4071 int
4072 main ()
4073 {
4074 snd_seq_open ();
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext conftest$ac_exeext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081   (eval $ac_link) 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } &&
4088          { ac_try='test -z "$ac_c_werror_flag"
4089                          || test ! -s conftest.err'
4090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; } &&
4095          { ac_try='test -s conftest$ac_exeext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_cv_lib_asound_snd_seq_open=yes
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_cv_lib_asound_snd_seq_open=no
4107 fi
4108 rm -f conftest.err conftest.$ac_objext \
4109       conftest$ac_exeext conftest.$ac_ext
4110 LIBS=$ac_check_lib_save_LIBS
4111 fi
4112 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4113 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4114 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4115   COMPILE_ALSA=yes
4116 else
4117   COMPILE_ALSA=no
4118 fi
4119
4120 else
4121   COMPILE_ALSA=no
4122 fi
4123
4124 done
4125
4126 fi;
4127
4128
4129 if test "x${COMPILE_ALSA}" = xyes; then
4130   CREATE_ALSA_LIBRARIES_TRUE=
4131   CREATE_ALSA_LIBRARIES_FALSE='#'
4132 else
4133   CREATE_ALSA_LIBRARIES_TRUE='#'
4134   CREATE_ALSA_LIBRARIES_FALSE=
4135 fi
4136
4137
4138 # Check whether --enable-dssi or --disable-dssi was given.
4139 if test "${enable_dssi+set}" = set; then
4140   enableval="$enable_dssi"
4141   case "${enableval}" in
4142                 yes) COMPILE_DSSI=yes ;;
4143                 no) COMPILE_DSSI=no ;;
4144                 *) COMPILE_DSSI=yes ;;
4145               esac
4146 else
4147
4148 for ac_header in dssi.h
4149 do
4150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4152   echo "$as_me:$LINENO: checking for $ac_header" >&5
4153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 fi
4157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4159 else
4160   # Is the header compilable?
4161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 $ac_includes_default
4170 #include <$ac_header>
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174   (eval $ac_compile) 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } &&
4181          { ac_try='test -z "$ac_c_werror_flag"
4182                          || test ! -s conftest.err'
4183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184   (eval $ac_try) 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); }; } &&
4188          { ac_try='test -s conftest.$ac_objext'
4189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190   (eval $ac_try) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; }; then
4194   ac_header_compiler=yes
4195 else
4196   echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_header_compiler=no
4200 fi
4201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4203 echo "${ECHO_T}$ac_header_compiler" >&6
4204
4205 # Is the header present?
4206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 #include <$ac_header>
4215 _ACEOF
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } >/dev/null; then
4224   if test -s conftest.err; then
4225     ac_cpp_err=$ac_c_preproc_warn_flag
4226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4227   else
4228     ac_cpp_err=
4229   fi
4230 else
4231   ac_cpp_err=yes
4232 fi
4233 if test -z "$ac_cpp_err"; then
4234   ac_header_preproc=yes
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239   ac_header_preproc=no
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4243 echo "${ECHO_T}$ac_header_preproc" >&6
4244
4245 # So?  What about this header?
4246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4247   yes:no: )
4248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4252     ac_header_preproc=yes
4253     ;;
4254   no:yes:* )
4255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4267     (
4268       cat <<\_ASBOX
4269 ## -------------------------------- ##
4270 ## Report this to classpath@gnu.org ##
4271 ## -------------------------------- ##
4272 _ASBOX
4273     ) |
4274       sed "s/^/$as_me: WARNING:     /" >&2
4275     ;;
4276 esac
4277 echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   eval "$as_ac_Header=\$ac_header_preproc"
4283 fi
4284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4286
4287 fi
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289   cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 _ACEOF
4292  COMPILE_DSSI=yes
4293 else
4294   COMPILE_DSSI=no
4295 fi
4296
4297 done
4298
4299 fi;
4300
4301
4302 if test "x${COMPILE_DSSI}" = xyes; then
4303   CREATE_DSSI_LIBRARIES_TRUE=
4304   CREATE_DSSI_LIBRARIES_FALSE='#'
4305 else
4306   CREATE_DSSI_LIBRARIES_TRUE='#'
4307   CREATE_DSSI_LIBRARIES_FALSE=
4308 fi
4309
4310
4311 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4312 if test "${enable_gtk_peer+set}" = set; then
4313   enableval="$enable_gtk_peer"
4314   case "${enableval}" in
4315                 yes) COMPILE_GTK_PEER=yes ;;
4316                 no) COMPILE_GTK_PEER=no ;;
4317                 *) COMPILE_GTK_PEER=yes ;;
4318               esac
4319 else
4320   COMPILE_GTK_PEER=yes
4321 fi;
4322
4323
4324 if test "x${COMPILE_GTK_PEER}" = xyes; then
4325   CREATE_GTK_PEER_LIBRARIES_TRUE=
4326   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4327 else
4328   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4329   CREATE_GTK_PEER_LIBRARIES_FALSE=
4330 fi
4331
4332
4333 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4334 if test "${enable_gtk_peers+set}" = set; then
4335   enableval="$enable_gtk_peers"
4336   { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4337 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4338    { (exit 1); exit 1; }; }
4339 fi;
4340
4341 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4342 if test "${enable_qt_peer+set}" = set; then
4343   enableval="$enable_qt_peer"
4344   case "${enableval}" in
4345                 yes) COMPILE_QT_PEER=yes ;;
4346                 no) COMPILE_QT_PEER=no ;;
4347                 *) COMPILE_QT_PEER=yes ;;
4348               esac
4349 else
4350   COMPILE_QT_PEER=no
4351 fi;
4352
4353
4354 if test "x${COMPILE_QT_PEER}" = xyes; then
4355   CREATE_QT_PEER_LIBRARIES_TRUE=
4356   CREATE_QT_PEER_LIBRARIES_FALSE='#'
4357 else
4358   CREATE_QT_PEER_LIBRARIES_TRUE='#'
4359   CREATE_QT_PEER_LIBRARIES_FALSE=
4360 fi
4361
4362
4363 # Check whether --enable-plugin or --disable-plugin was given.
4364 if test "${enable_plugin+set}" = set; then
4365   enableval="$enable_plugin"
4366   case "${enableval}" in
4367                 yes) COMPILE_PLUGIN=yes ;;
4368                 no) COMPILE_PLUGIN=no ;;
4369                 *) COMPILE_PLUGIN=yes ;;
4370               esac
4371 else
4372   COMPILE_PLUGIN=yes
4373 fi;
4374
4375
4376 if test "x${COMPILE_PLUGIN}" = xyes; then
4377   CREATE_PLUGIN_TRUE=
4378   CREATE_PLUGIN_FALSE='#'
4379 else
4380   CREATE_PLUGIN_TRUE='#'
4381   CREATE_PLUGIN_FALSE=
4382 fi
4383
4384
4385
4386   multi_os_directory=`$CC -print-multi-os-directory`
4387   case $multi_os_directory in
4388     .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4389     *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4390   esac
4391
4392
4393
4394
4395 # Check whether --with-native-libdir or --without-native-libdir was given.
4396 if test "${with_native_libdir+set}" = set; then
4397   withval="$with_native_libdir"
4398
4399              nativeexeclibdir=${withval}
4400
4401 else
4402
4403              nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`
4404
4405 fi;
4406
4407
4408
4409
4410 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4411 if test "${with_glibj_dir+set}" = set; then
4412   withval="$with_glibj_dir"
4413
4414              glibjdir=${withval}
4415
4416 else
4417
4418              glibjdir='${datadir}/${PACKAGE}'
4419
4420 fi;
4421
4422
4423
4424
4425 # Check whether --with-vm or --without-vm was given.
4426 if test "${with_vm+set}" = set; then
4427   withval="$with_vm"
4428
4429              VM_BINARY=${withval}
4430
4431 else
4432
4433              VM_BINARY='${prefix}/bin/jamvm'
4434
4435 fi;
4436
4437
4438
4439
4440 if test "x`basename $VM_BINARY`" = xcacao; then
4441   FOUND_CACAO_TRUE=
4442   FOUND_CACAO_FALSE='#'
4443 else
4444   FOUND_CACAO_TRUE='#'
4445   FOUND_CACAO_FALSE=
4446 fi
4447
4448
4449 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4450 if test "${enable_regen_headers+set}" = set; then
4451   enableval="$enable_regen_headers"
4452   case "${enableval}" in
4453                 yes) REGENERATE_JNI_HEADERS=yes ;;
4454                 no) REGENERATE_JNI_HEADERS=no ;;
4455                 *) REGENERATE_JNI_HEADERS=no ;;
4456               esac
4457 else
4458   REGENERATE_JNI_HEADERS=no
4459 fi;
4460
4461
4462 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4463   CREATE_JNI_HEADERS_TRUE=
4464   CREATE_JNI_HEADERS_FALSE='#'
4465 else
4466   CREATE_JNI_HEADERS_TRUE='#'
4467   CREATE_JNI_HEADERS_FALSE=
4468 fi
4469
4470
4471 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4472 if test "${enable_tool_wrappers+set}" = set; then
4473   enableval="$enable_tool_wrappers"
4474   case x"${enableval}" in
4475                 xyes)
4476                   COMPILE_WRAPPERS=yes;
4477
4478 for ac_header in ltdl.h
4479 do
4480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482   echo "$as_me:$LINENO: checking for $ac_header" >&5
4483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 fi
4487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4489 else
4490   # Is the header compilable?
4491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4493 cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 $ac_includes_default
4500 #include <$ac_header>
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -z "$ac_c_werror_flag"
4512                          || test ! -s conftest.err'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; } &&
4518          { ac_try='test -s conftest.$ac_objext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   ac_header_compiler=yes
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_header_compiler=no
4530 fi
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4533 echo "${ECHO_T}$ac_header_compiler" >&6
4534
4535 # Is the header present?
4536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544 #include <$ac_header>
4545 _ACEOF
4546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } >/dev/null; then
4554   if test -s conftest.err; then
4555     ac_cpp_err=$ac_c_preproc_warn_flag
4556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4557   else
4558     ac_cpp_err=
4559   fi
4560 else
4561   ac_cpp_err=yes
4562 fi
4563 if test -z "$ac_cpp_err"; then
4564   ac_header_preproc=yes
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569   ac_header_preproc=no
4570 fi
4571 rm -f conftest.err conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4573 echo "${ECHO_T}$ac_header_preproc" >&6
4574
4575 # So?  What about this header?
4576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4577   yes:no: )
4578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4582     ac_header_preproc=yes
4583     ;;
4584   no:yes:* )
4585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4597     (
4598       cat <<\_ASBOX
4599 ## -------------------------------- ##
4600 ## Report this to classpath@gnu.org ##
4601 ## -------------------------------- ##
4602 _ASBOX
4603     ) |
4604       sed "s/^/$as_me: WARNING:     /" >&2
4605     ;;
4606 esac
4607 echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   eval "$as_ac_Header=\$ac_header_preproc"
4613 fi
4614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616
4617 fi
4618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4619   cat >>confdefs.h <<_ACEOF
4620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4621 _ACEOF
4622
4623 else
4624   { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
4625 echo "$as_me: error: cannot find ltdl.h" >&2;}
4626    { (exit 1); exit 1; }; }
4627 fi
4628
4629 done
4630
4631
4632 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
4633 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
4634 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   ac_check_lib_save_LIBS=$LIBS
4638 LIBS="-lltdl  $LIBS"
4639 if test x$gcc_no_link = xyes; then
4640   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4642    { (exit 1); exit 1; }; }
4643 fi
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650
4651 /* Override any gcc2 internal prototype to avoid an error.  */
4652 #ifdef __cplusplus
4653 extern "C"
4654 #endif
4655 /* We use char because int might match the return type of a gcc2
4656    builtin and then its argument prototype would still apply.  */
4657 char lt_dlopen ();
4658 int
4659 main ()
4660 {
4661 lt_dlopen ();
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668   (eval $ac_link) 2>conftest.er1
4669   ac_status=$?
4670   grep -v '^ *+' conftest.er1 >conftest.err
4671   rm -f conftest.er1
4672   cat conftest.err >&5
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } &&
4675          { ac_try='test -z "$ac_c_werror_flag"
4676                          || test ! -s conftest.err'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest$ac_exeext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_cv_lib_ltdl_lt_dlopen=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_cv_lib_ltdl_lt_dlopen=no
4694 fi
4695 rm -f conftest.err conftest.$ac_objext \
4696       conftest$ac_exeext conftest.$ac_ext
4697 LIBS=$ac_check_lib_save_LIBS
4698 fi
4699 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
4700 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
4701 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
4702   cat >>confdefs.h <<_ACEOF
4703 #define HAVE_LIBLTDL 1
4704 _ACEOF
4705
4706   LIBS="-lltdl $LIBS"
4707
4708 else
4709   { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
4710 echo "$as_me: error: cannot find libltdl" >&2;}
4711    { (exit 1); exit 1; }; }
4712 fi
4713
4714                   ;;
4715                 xno) COMPILE_WRAPPERS=no ;;
4716                 x) COMPILE_WRAPPERS=yes ;;
4717                 *) COMPILE_WRAPPERS=yes ;;
4718               esac
4719 else
4720   COMPILE_WRAPPERS=no
4721 fi;
4722
4723
4724 if test "x${COMPILE_WRAPPERS}" = xyes; then
4725   CREATE_WRAPPERS_TRUE=
4726   CREATE_WRAPPERS_FALSE='#'
4727 else
4728   CREATE_WRAPPERS_TRUE='#'
4729   CREATE_WRAPPERS_FALSE=
4730 fi
4731
4732
4733 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4734 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4735 LN_S=$as_ln_s
4736 if test "$LN_S" = "ln -s"; then
4737   echo "$as_me:$LINENO: result: yes" >&5
4738 echo "${ECHO_T}yes" >&6
4739 else
4740   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4741 echo "${ECHO_T}no, using $LN_S" >&6
4742 fi
4743
4744 # Find a good install program.  We prefer a C program (faster),
4745 # so one script is as good as another.  But avoid the broken or
4746 # incompatible versions:
4747 # SysV /etc/install, /usr/sbin/install
4748 # SunOS /usr/etc/install
4749 # IRIX /sbin/install
4750 # AIX /bin/install
4751 # AmigaOS /C/install, which installs bootblocks on floppy discs
4752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755 # OS/2's system install, which has a completely different semantic
4756 # ./install, which can be erroneously created by make from ./install.sh.
4757 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4759 if test -z "$INSTALL"; then
4760 if test "${ac_cv_path_install+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768   # Account for people who put trailing slashes in PATH elements.
4769 case $as_dir/ in
4770   ./ | .// | /cC/* | \
4771   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4772   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4773   /usr/ucb/* ) ;;
4774   *)
4775     # OSF1 and SCO ODT 3.0 have their own names for install.
4776     # Don't use installbsd from OSF since it installs stuff as root
4777     # by default.
4778     for ac_prog in ginstall scoinst install; do
4779       for ac_exec_ext in '' $ac_executable_extensions; do
4780         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4781           if test $ac_prog = install &&
4782             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783             # AIX install.  It has an incompatible calling convention.
4784             :
4785           elif test $ac_prog = install &&
4786             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787             # program-specific install script used by HP pwplus--don't use.
4788             :
4789           else
4790             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4791             break 3
4792           fi
4793         fi
4794       done
4795     done
4796     ;;
4797 esac
4798 done
4799
4800
4801 fi
4802   if test "${ac_cv_path_install+set}" = set; then
4803     INSTALL=$ac_cv_path_install
4804   else
4805     # As a last resort, use the slow shell script.  We don't cache a
4806     # path for INSTALL within a source directory, because that will
4807     # break other packages using the cache if that directory is
4808     # removed, or if the path is relative.
4809     INSTALL=$ac_install_sh
4810   fi
4811 fi
4812 echo "$as_me:$LINENO: result: $INSTALL" >&5
4813 echo "${ECHO_T}$INSTALL" >&6
4814
4815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4816 # It thinks the first close brace ends the variable substitution.
4817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4818
4819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4820
4821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4822
4823
4824
4825 # Check whether --enable-static or --disable-static was given.
4826 if test "${enable_static+set}" = set; then
4827   enableval="$enable_static"
4828   p=${PACKAGE-default}
4829 case $enableval in
4830 yes) enable_static=yes ;;
4831 no) enable_static=no ;;
4832 *)
4833   enable_static=no
4834   # Look at the argument we got.  We use all the common list separators.
4835   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4836   for pkg in $enableval; do
4837     if test "X$pkg" = "X$p"; then
4838       enable_static=yes
4839     fi
4840   done
4841   IFS="$ac_save_ifs"
4842   ;;
4843 esac
4844 else
4845   enable_static=no
4846 fi;
4847 # Check whether --enable-shared or --disable-shared was given.
4848 if test "${enable_shared+set}" = set; then
4849   enableval="$enable_shared"
4850   p=${PACKAGE-default}
4851 case $enableval in
4852 yes) enable_shared=yes ;;
4853 no) enable_shared=no ;;
4854 *)
4855   enable_shared=no
4856   # Look at the argument we got.  We use all the common list separators.
4857   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4858   for pkg in $enableval; do
4859     if test "X$pkg" = "X$p"; then
4860       enable_shared=yes
4861     fi
4862   done
4863   IFS="$ac_save_ifs"
4864   ;;
4865 esac
4866 else
4867   enable_shared=yes
4868 fi;
4869 # Check whether --enable-fast-install or --disable-fast-install was given.
4870 if test "${enable_fast_install+set}" = set; then
4871   enableval="$enable_fast_install"
4872   p=${PACKAGE-default}
4873 case $enableval in
4874 yes) enable_fast_install=yes ;;
4875 no) enable_fast_install=no ;;
4876 *)
4877   enable_fast_install=no
4878   # Look at the argument we got.  We use all the common list separators.
4879   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4880   for pkg in $enableval; do
4881     if test "X$pkg" = "X$p"; then
4882       enable_fast_install=yes
4883     fi
4884   done
4885   IFS="$ac_save_ifs"
4886   ;;
4887 esac
4888 else
4889   enable_fast_install=yes
4890 fi;
4891
4892 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4893 if test "${with_gnu_ld+set}" = set; then
4894   withval="$with_gnu_ld"
4895   test "$withval" = no || with_gnu_ld=yes
4896 else
4897   with_gnu_ld=no
4898 fi;
4899 ac_prog=ld
4900 if test "$GCC" = yes; then
4901   # Check if gcc -print-prog-name=ld gives a path.
4902   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4903 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4904   case $host in
4905   *-*-mingw*)
4906     # gcc leaves a trailing carriage return which upsets mingw
4907     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4908   *)
4909     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4910   esac
4911   case $ac_prog in
4912     # Accept absolute paths.
4913     [\\/]* | [A-Za-z]:[\\/]*)
4914       re_direlt='/[^/][^/]*/\.\./'
4915       # Canonicalize the path of ld
4916       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4917       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4918         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4919       done
4920       test -z "$LD" && LD="$ac_prog"
4921       ;;
4922   "")
4923     # If it fails, then pretend we aren't using GCC.
4924     ac_prog=ld
4925     ;;
4926   *)
4927     # If it is relative, then search for the first ld in PATH.
4928     with_gnu_ld=unknown
4929     ;;
4930   esac
4931 elif test "$with_gnu_ld" = yes; then
4932   echo "$as_me:$LINENO: checking for GNU ld" >&5
4933 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4934 else
4935   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4936 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4937 fi
4938 if test "${lt_cv_path_LD+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   if test -z "$LD"; then
4942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4943   for ac_dir in $PATH; do
4944     test -z "$ac_dir" && ac_dir=.
4945     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4946       lt_cv_path_LD="$ac_dir/$ac_prog"
4947       # Check to see if the program is GNU ld.  I'd rather use --version,
4948       # but apparently some GNU ld's only accept -v.
4949       # Break only if it was the GNU/non-GNU ld that we prefer.
4950       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4951         test "$with_gnu_ld" != no && break
4952       else
4953         test "$with_gnu_ld" != yes && break
4954       fi
4955     fi
4956   done
4957   IFS="$ac_save_ifs"
4958 else
4959   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4960 fi
4961 fi
4962
4963 LD="$lt_cv_path_LD"
4964 if test -n "$LD"; then
4965   echo "$as_me:$LINENO: result: $LD" >&5
4966 echo "${ECHO_T}$LD" >&6
4967 else
4968   echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4970 fi
4971 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4972 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4973    { (exit 1); exit 1; }; }
4974 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4975 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4976 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4980 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4981   lt_cv_prog_gnu_ld=yes
4982 else
4983   lt_cv_prog_gnu_ld=no
4984 fi
4985 fi
4986 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4987 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4988 with_gnu_ld=$lt_cv_prog_gnu_ld
4989
4990
4991 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4992 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4993 if test "${lt_cv_ld_reload_flag+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   lt_cv_ld_reload_flag='-r'
4997 fi
4998 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4999 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5000 reload_flag=$lt_cv_ld_reload_flag
5001 test -n "$reload_flag" && reload_flag=" $reload_flag"
5002
5003 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5004 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5005 if test "${lt_cv_path_NM+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   if test -n "$NM"; then
5009   # Let the user override the test.
5010   lt_cv_path_NM="$NM"
5011 else
5012   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5013   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5014     test -z "$ac_dir" && ac_dir=.
5015     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5016     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5017       # Check to see if the nm accepts a BSD-compat flag.
5018       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5019       #   nm: unknown option "B" ignored
5020       # Tru64's nm complains that /dev/null is an invalid object file
5021       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5022         lt_cv_path_NM="$tmp_nm -B"
5023         break
5024       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5025         lt_cv_path_NM="$tmp_nm -p"
5026         break
5027       else
5028         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5029         continue # so that we can try to find one that supports BSD flags
5030       fi
5031     fi
5032   done
5033   IFS="$ac_save_ifs"
5034   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5035 fi
5036 fi
5037
5038 NM="$lt_cv_path_NM"
5039 echo "$as_me:$LINENO: result: $NM" >&5
5040 echo "${ECHO_T}$NM" >&6
5041
5042 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5043 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5044 if test "${lt_cv_deplibs_check_method+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   lt_cv_file_magic_cmd='$MAGIC_CMD'
5048 lt_cv_file_magic_test_file=
5049 lt_cv_deplibs_check_method='unknown'
5050 # Need to set the preceding variable on all platforms that support
5051 # interlibrary dependencies.
5052 # 'none' -- dependencies not supported.
5053 # `unknown' -- same as none, but documents that we really don't know.
5054 # 'pass_all' -- all dependencies passed with no checks.
5055 # 'test_compile' -- check by making test program.
5056 # 'file_magic [regex]' -- check by looking for files in library path
5057 # which responds to the $file_magic_cmd with a given egrep regex.
5058 # If you have `file' or equivalent on your system and you're not sure
5059 # whether `pass_all' will *always* work, you probably want this one.
5060
5061 case $host_os in
5062 aix*)
5063   lt_cv_deplibs_check_method=pass_all
5064   ;;
5065
5066 beos*)
5067   lt_cv_deplibs_check_method=pass_all
5068   ;;
5069
5070 bsdi4*)
5071   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5072   lt_cv_file_magic_cmd='/usr/bin/file -L'
5073   lt_cv_file_magic_test_file=/shlib/libc.so
5074   ;;
5075
5076 cygwin* | mingw* |pw32*)
5077   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5078   lt_cv_file_magic_cmd='$OBJDUMP -f'
5079   ;;
5080
5081 darwin* | rhapsody*)
5082   # this will be overwritten by pass_all, but leave it in just in case
5083   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5084   lt_cv_file_magic_cmd='/usr/bin/file -L'
5085   case "$host_os" in
5086   rhapsody* | darwin1.012)
5087     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5088     ;;
5089   *) # Darwin 1.3 on
5090     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5091     ;;
5092   esac
5093   lt_cv_deplibs_check_method=pass_all
5094   ;;
5095
5096 freebsd* | kfreebsd*-gnu)
5097   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5098     case $host_cpu in
5099     i*86 )
5100       # Not sure whether the presence of OpenBSD here was a mistake.
5101       # Let's accept both of them until this is cleared up.
5102       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5103       lt_cv_file_magic_cmd=/usr/bin/file
5104       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5105       ;;
5106     esac
5107   else
5108     lt_cv_deplibs_check_method=pass_all
5109   fi
5110   ;;
5111
5112 gnu*)
5113   lt_cv_deplibs_check_method=pass_all
5114   ;;
5115
5116 hpux10.20*|hpux11*)
5117   case $host_cpu in
5118   hppa*)
5119     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5120     lt_cv_file_magic_cmd=/usr/bin/file
5121     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5122     ;;
5123   ia64*)
5124     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5125     lt_cv_file_magic_cmd=/usr/bin/file
5126     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5127     ;;
5128   esac
5129   ;;
5130
5131 irix5* | irix6*)
5132   case $host_os in
5133   irix5*)
5134     # this will be overridden with pass_all, but let us keep it just in case
5135     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5136     ;;
5137   *)
5138     case $LD in
5139     *-32|*"-32 ") libmagic=32-bit;;
5140     *-n32|*"-n32 ") libmagic=N32;;
5141     *-64|*"-64 ") libmagic=64-bit;;
5142     *) libmagic=never-match;;
5143     esac
5144     # this will be overridden with pass_all, but let us keep it just in case
5145     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5146     ;;
5147   esac
5148   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 # This must be Linux ELF.
5153 linux-gnu*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 netbsd* | knetbsd*-gnu)
5158   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5159     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5160   else
5161     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5162   fi
5163   ;;
5164
5165 newsos6)
5166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5167   lt_cv_file_magic_cmd=/usr/bin/file
5168   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5169   ;;
5170
5171 osf3* | osf4* | osf5*)
5172   # this will be overridden with pass_all, but let us keep it just in case
5173   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5174   lt_cv_file_magic_test_file=/shlib/libc.so
5175   lt_cv_deplibs_check_method=pass_all
5176   ;;
5177
5178 sco3.2v5*)
5179   lt_cv_deplibs_check_method=pass_all
5180   ;;
5181
5182 solaris*)
5183   lt_cv_deplibs_check_method=pass_all
5184   lt_cv_file_magic_test_file=/lib/libc.so
5185   ;;
5186
5187 sysv5uw[78]* | sysv4*uw2*)
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5192   case $host_vendor in
5193   ncr)
5194     lt_cv_deplibs_check_method=pass_all
5195     ;;
5196   motorola)
5197     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]'
5198     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5199     ;;
5200   esac
5201   ;;
5202 esac
5203
5204 fi
5205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5207 file_magic_cmd=$lt_cv_file_magic_cmd
5208 deplibs_check_method=$lt_cv_deplibs_check_method
5209
5210
5211
5212
5213 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5214
5215 # find the maximum length of command line arguments
5216 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5217 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5218 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221     i=0
5222   teststring="ABCD"
5223
5224   case $build_os in
5225   msdosdjgpp*)
5226     # On DJGPP, this test can blow up pretty badly due to problems in libc
5227     # (any single argument exceeding 2000 bytes causes a buffer overrun
5228     # during glob expansion).  Even if it were fixed, the result of this
5229     # check would be larger than it should be.
5230     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5231     ;;
5232
5233   cygwin* | mingw*)
5234     # On Win9x/ME, this test blows up -- it succeeds, but takes
5235     # about 5 minutes as the teststring grows exponentially.
5236     # Worse, since 9x/ME are not pre-emptively multitasking,
5237     # you end up with a "frozen" computer, even though with patience
5238     # the test eventually succeeds (with a max line length of 256k).
5239     # Instead, let's just punt: use the minimum linelength reported by
5240     # all of the supported platforms: 8192 (on NT/2K/XP).
5241     lt_cv_sys_max_cmd_len=8192;
5242     ;;
5243
5244   amigaos*)
5245     # On AmigaOS with pdksh, this test takes hours, literally.
5246     # So we just punt and use a minimum line length of 8192.
5247     lt_cv_sys_max_cmd_len=8192;
5248     ;;
5249
5250   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5251     # This has been around since 386BSD, at least.  Likely further.
5252     if test -x /sbin/sysctl; then
5253       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254     elif test -x /usr/sbin/sysctl; then
5255       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256     else
5257       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258     fi
5259     # And add a safety zone
5260     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5262     ;;
5263   esac
5264
5265 fi
5266
5267 if test -n "$lt_cv_sys_max_cmd_len" ; then
5268   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5269 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5270 else
5271   echo "$as_me:$LINENO: result: none" >&5
5272 echo "${ECHO_T}none" >&6
5273 fi
5274
5275
5276 # Only perform the check for file, if the check method requires it
5277 case $deplibs_check_method in
5278 file_magic*)
5279   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5280     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   case $MAGIC_CMD in
5286   /*)
5287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5288   ;;
5289   ?:/*)
5290   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5291   ;;
5292   *)
5293   ac_save_MAGIC_CMD="$MAGIC_CMD"
5294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5295   ac_dummy="/usr/bin:$PATH"
5296   for ac_dir in $ac_dummy; do
5297     test -z "$ac_dir" && ac_dir=.
5298     if test -f $ac_dir/${ac_tool_prefix}file; then
5299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5300       if test -n "$file_magic_test_file"; then
5301         case $deplibs_check_method in
5302         "file_magic "*)
5303           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5306             egrep "$file_magic_regex" > /dev/null; then
5307             :
5308           else
5309             cat <<EOF 1>&2
5310
5311 *** Warning: the command libtool uses to detect shared libraries,
5312 *** $file_magic_cmd, produces output that libtool cannot recognize.
5313 *** The result is that libtool may fail to recognize shared libraries
5314 *** as such.  This will affect the creation of libtool libraries that
5315 *** depend on shared libraries, but programs linked with such libtool
5316 *** libraries will work regardless of this problem.  Nevertheless, you
5317 *** may want to report the problem to your system manager and/or to
5318 *** bug-libtool@gnu.org
5319
5320 EOF
5321           fi ;;
5322         esac
5323       fi
5324       break
5325     fi
5326   done
5327   IFS="$ac_save_ifs"
5328   MAGIC_CMD="$ac_save_MAGIC_CMD"
5329   ;;
5330 esac
5331 fi
5332
5333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5334 if test -n "$MAGIC_CMD"; then
5335   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5336 echo "${ECHO_T}$MAGIC_CMD" >&6
5337 else
5338   echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341
5342 if test -z "$lt_cv_path_MAGIC_CMD"; then
5343   if test -n "$ac_tool_prefix"; then
5344     echo "$as_me:$LINENO: checking for file" >&5
5345 echo $ECHO_N "checking for file... $ECHO_C" >&6
5346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   case $MAGIC_CMD in
5350   /*)
5351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5352   ;;
5353   ?:/*)
5354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5355   ;;
5356   *)
5357   ac_save_MAGIC_CMD="$MAGIC_CMD"
5358   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5359   ac_dummy="/usr/bin:$PATH"
5360   for ac_dir in $ac_dummy; do
5361     test -z "$ac_dir" && ac_dir=.
5362     if test -f $ac_dir/file; then
5363       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5364       if test -n "$file_magic_test_file"; then
5365         case $deplibs_check_method in
5366         "file_magic "*)
5367           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5368           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5369           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5370             egrep "$file_magic_regex" > /dev/null; then
5371             :
5372           else
5373             cat <<EOF 1>&2
5374
5375 *** Warning: the command libtool uses to detect shared libraries,
5376 *** $file_magic_cmd, produces output that libtool cannot recognize.
5377 *** The result is that libtool may fail to recognize shared libraries
5378 *** as such.  This will affect the creation of libtool libraries that
5379 *** depend on shared libraries, but programs linked with such libtool
5380 *** libraries will work regardless of this problem.  Nevertheless, you
5381 *** may want to report the problem to your system manager and/or to
5382 *** bug-libtool@gnu.org
5383
5384 EOF
5385           fi ;;
5386         esac
5387       fi
5388       break
5389     fi
5390   done
5391   IFS="$ac_save_ifs"
5392   MAGIC_CMD="$ac_save_MAGIC_CMD"
5393   ;;
5394 esac
5395 fi
5396
5397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5398 if test -n "$MAGIC_CMD"; then
5399   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5400 echo "${ECHO_T}$MAGIC_CMD" >&6
5401 else
5402   echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404 fi
5405
5406   else
5407     MAGIC_CMD=:
5408   fi
5409 fi
5410
5411   fi
5412   ;;
5413 esac
5414
5415 if test -n "$ac_tool_prefix"; then
5416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_prog_RANLIB+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   if test -n "$RANLIB"; then
5424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431   for ac_exec_ext in '' $ac_executable_extensions; do
5432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438 done
5439
5440 fi
5441 fi
5442 RANLIB=$ac_cv_prog_RANLIB
5443 if test -n "$RANLIB"; then
5444   echo "$as_me:$LINENO: result: $RANLIB" >&5
5445 echo "${ECHO_T}$RANLIB" >&6
5446 else
5447   echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5449 fi
5450
5451 fi
5452 if test -z "$ac_cv_prog_RANLIB"; then
5453   ac_ct_RANLIB=$RANLIB
5454   # Extract the first word of "ranlib", so it can be a program name with args.
5455 set dummy ranlib; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   if test -n "$ac_ct_RANLIB"; then
5462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_exec_ext in '' $ac_executable_extensions; do
5470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471     ac_cv_prog_ac_ct_RANLIB="ranlib"
5472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476 done
5477
5478   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5479 fi
5480 fi
5481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5482 if test -n "$ac_ct_RANLIB"; then
5483   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5485 else
5486   echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5488 fi
5489
5490   RANLIB=$ac_ct_RANLIB
5491 else
5492   RANLIB="$ac_cv_prog_RANLIB"
5493 fi
5494
5495 if test -n "$ac_tool_prefix"; then
5496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}strip; ac_word=$2
5498 echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500 if test "${ac_cv_prog_STRIP+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   if test -n "$STRIP"; then
5504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511   for ac_exec_ext in '' $ac_executable_extensions; do
5512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518 done
5519
5520 fi
5521 fi
5522 STRIP=$ac_cv_prog_STRIP
5523 if test -n "$STRIP"; then
5524   echo "$as_me:$LINENO: result: $STRIP" >&5
5525 echo "${ECHO_T}$STRIP" >&6
5526 else
5527   echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5529 fi
5530
5531 fi
5532 if test -z "$ac_cv_prog_STRIP"; then
5533   ac_ct_STRIP=$STRIP
5534   # Extract the first word of "strip", so it can be a program name with args.
5535 set dummy strip; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$ac_ct_STRIP"; then
5542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_ac_ct_STRIP="strip"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557
5558   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5559 fi
5560 fi
5561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562 if test -n "$ac_ct_STRIP"; then
5563   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5564 echo "${ECHO_T}$ac_ct_STRIP" >&6
5565 else
5566   echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568 fi
5569
5570   STRIP=$ac_ct_STRIP
5571 else
5572   STRIP="$ac_cv_prog_STRIP"
5573 fi
5574
5575
5576 # Check for any special flags to pass to ltconfig.
5577 libtool_flags="--cache-file=$cache_file"
5578 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5579 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5580 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5581 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5582 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5583
5584
5585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5586 if test "${enable_libtool_lock+set}" = set; then
5587   enableval="$enable_libtool_lock"
5588
5589 fi;
5590 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5591 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5592
5593
5594 # Check whether --with-pic or --without-pic was given.
5595 if test "${with_pic+set}" = set; then
5596   withval="$with_pic"
5597   pic_mode="$withval"
5598 else
5599   pic_mode=default
5600 fi;
5601 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5602 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5603
5604 # Some flags need to be propagated to the compiler or linker for good
5605 # libtool support.
5606 case $host in
5607 *-*-irix6*)
5608   # Find out which ABI we are using.
5609   echo '#line 5609 "configure"' > conftest.$ac_ext
5610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611   (eval $ac_compile) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; then
5615    if test "$lt_cv_prog_gnu_ld" = yes; then
5616     case `/usr/bin/file conftest.$ac_objext` in
5617     *32-bit*)
5618       LD="${LD-ld} -melf32bsmip"
5619       ;;
5620     *N32*)
5621       LD="${LD-ld} -melf32bmipn32"
5622       ;;
5623     *64-bit*)
5624       LD="${LD-ld} -melf64bmip"
5625       ;;
5626     esac
5627    else
5628     case `/usr/bin/file conftest.$ac_objext` in
5629     *32-bit*)
5630       LD="${LD-ld} -32"
5631       ;;
5632     *N32*)
5633       LD="${LD-ld} -n32"
5634       ;;
5635     *64-bit*)
5636       LD="${LD-ld} -64"
5637       ;;
5638     esac
5639    fi
5640   fi
5641   rm -rf conftest*
5642   ;;
5643
5644 ia64-*-hpux*)
5645   # Find out which ABI we are using.
5646   echo 'int i;' > conftest.$ac_ext
5647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648   (eval $ac_compile) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; then
5652     case "`/usr/bin/file conftest.o`" in
5653     *ELF-32*)
5654       HPUX_IA64_MODE="32"
5655       ;;
5656     *ELF-64*)
5657       HPUX_IA64_MODE="64"
5658       ;;
5659     esac
5660   fi
5661   rm -rf conftest*
5662   ;;
5663
5664 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5665   # Find out which ABI we are using.
5666   echo 'int i;' > conftest.$ac_ext
5667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668   (eval $ac_compile) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; then
5672     case "`/usr/bin/file conftest.o`" in
5673     *32-bit*)
5674       case $host in
5675         x86_64-*linux*)
5676           LD="${LD-ld} -m elf_i386"
5677           ;;
5678         ppc64-*linux*|powerpc64-*linux*)
5679           LD="${LD-ld} -m elf32ppclinux"
5680           ;;
5681         s390x-*linux*)
5682           LD="${LD-ld} -m elf_s390"
5683           ;;
5684         sparc64-*linux*)
5685           LD="${LD-ld} -m elf32_sparc"
5686           ;;
5687       esac
5688       ;;
5689     *64-bit*)
5690       case $host in
5691         x86_64-*linux*)
5692           LD="${LD-ld} -m elf_x86_64"
5693           ;;
5694         ppc*-*linux*|powerpc*-*linux*)
5695           LD="${LD-ld} -m elf64ppc"
5696           ;;
5697         s390*-*linux*)
5698           LD="${LD-ld} -m elf64_s390"
5699           ;;
5700         sparc*-*linux*)
5701           LD="${LD-ld} -m elf64_sparc"
5702           ;;
5703       esac
5704       ;;
5705     esac
5706   fi
5707   rm -rf conftest*
5708   ;;
5709
5710 *-*-sco3.2v5*)
5711   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5712   SAVE_CFLAGS="$CFLAGS"
5713   CFLAGS="$CFLAGS -belf"
5714   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5715 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5716 if test "${lt_cv_cc_needs_belf+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719
5720
5721      ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727      if test x$gcc_no_link = xyes; then
5728   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5730    { (exit 1); exit 1; }; }
5731 fi
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738
5739 int
5740 main ()
5741 {
5742
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749   (eval $ac_link) 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } &&
5756          { ac_try='test -z "$ac_c_werror_flag"
5757                          || test ! -s conftest.err'
5758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759   (eval $ac_try) 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }; } &&
5763          { ac_try='test -s conftest$ac_exeext'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; }; then
5769   lt_cv_cc_needs_belf=yes
5770 else
5771   echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 lt_cv_cc_needs_belf=no
5775 fi
5776 rm -f conftest.err conftest.$ac_objext \
5777       conftest$ac_exeext conftest.$ac_ext
5778      ac_ext=c
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784 fi
5785 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5786 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5787   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5788     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5789     CFLAGS="$SAVE_CFLAGS"
5790   fi
5791   ;;
5792
5793
5794 esac
5795
5796
5797 # Save cache, so that ltconfig can load it
5798 cat >confcache <<\_ACEOF
5799 # This file is a shell script that caches the results of configure
5800 # tests run on this system so they can be shared between configure
5801 # scripts and configure runs, see configure's option --config-cache.
5802 # It is not useful on other systems.  If it contains results you don't
5803 # want to keep, you may remove or edit it.
5804 #
5805 # config.status only pays attention to the cache file if you give it
5806 # the --recheck option to rerun configure.
5807 #
5808 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5809 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5810 # following values.
5811
5812 _ACEOF
5813
5814 # The following way of writing the cache mishandles newlines in values,
5815 # but we know of no workaround that is simple, portable, and efficient.
5816 # So, don't put newlines in cache variables' values.
5817 # Ultrix sh set writes to stderr and can't be redirected directly,
5818 # and sets the high bit in the cache file unless we assign to the vars.
5819 {
5820   (set) 2>&1 |
5821     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5822     *ac_space=\ *)
5823       # `set' does not quote correctly, so add quotes (double-quote
5824       # substitution turns \\\\ into \\, and sed turns \\ into \).
5825       sed -n \
5826         "s/'/'\\\\''/g;
5827           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5828       ;;
5829     *)
5830       # `set' quotes correctly as required by POSIX, so do not add quotes.
5831       sed -n \
5832         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5833       ;;
5834     esac;
5835 } |
5836   sed '
5837      t clear
5838      : clear
5839      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5840      t end
5841      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5842      : end' >>confcache
5843 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5844   if test -w $cache_file; then
5845     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5846     cat confcache >$cache_file
5847   else
5848     echo "not updating unwritable cache $cache_file"
5849   fi
5850 fi
5851 rm -f confcache
5852
5853 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5854 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5855 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5856 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5857 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5858 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5859 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5860 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5861 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5862 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5863 echo "$as_me: error: libtool configure failed" >&2;}
5864    { (exit 1); exit 1; }; }
5865
5866 # Reload cache, that may have been modified by ltconfig
5867 if test -r "$cache_file"; then
5868   # Some versions of bash will fail to source /dev/null (special
5869   # files actually), so we avoid doing that.
5870   if test -f "$cache_file"; then
5871     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5872 echo "$as_me: loading cache $cache_file" >&6;}
5873     case $cache_file in
5874       [\\/]* | ?:[\\/]* ) . $cache_file;;
5875       *)                      . ./$cache_file;;
5876     esac
5877   fi
5878 else
5879   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5880 echo "$as_me: creating cache $cache_file" >&6;}
5881   >$cache_file
5882 fi
5883
5884
5885 # This can be used to rebuild libtool when needed
5886 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5887
5888 # Always use our own libtool.
5889 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5890
5891 # Redirect the config.log output again, so that the ltconfig log is not
5892 # clobbered by the next message.
5893 exec 5>>./config.log
5894
5895
5896
5897
5898
5899
5900 ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905 if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_CC+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   if test -n "$CC"; then
5914   ac_cv_prog_CC="$CC" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929
5930 fi
5931 fi
5932 CC=$ac_cv_prog_CC
5933 if test -n "$CC"; then
5934   echo "$as_me:$LINENO: result: $CC" >&5
5935 echo "${ECHO_T}$CC" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941 fi
5942 if test -z "$ac_cv_prog_CC"; then
5943   ac_ct_CC=$CC
5944   # Extract the first word of "gcc", so it can be a program name with args.
5945 set dummy gcc; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$ac_ct_CC"; then
5952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_prog_ac_ct_CC="gcc"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967
5968 fi
5969 fi
5970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5971 if test -n "$ac_ct_CC"; then
5972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5973 echo "${ECHO_T}$ac_ct_CC" >&6
5974 else
5975   echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5977 fi
5978
5979   CC=$ac_ct_CC
5980 else
5981   CC="$ac_cv_prog_CC"
5982 fi
5983
5984 if test -z "$CC"; then
5985   if test -n "$ac_tool_prefix"; then
5986   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}cc; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_CC+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   if test -n "$CC"; then
5994   ac_cv_prog_CC="$CC" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_prog_CC="${ac_tool_prefix}cc"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009
6010 fi
6011 fi
6012 CC=$ac_cv_prog_CC
6013 if test -n "$CC"; then
6014   echo "$as_me:$LINENO: result: $CC" >&5
6015 echo "${ECHO_T}$CC" >&6
6016 else
6017   echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6019 fi
6020
6021 fi
6022 if test -z "$ac_cv_prog_CC"; then
6023   ac_ct_CC=$CC
6024   # Extract the first word of "cc", so it can be a program name with args.
6025 set dummy cc; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   if test -n "$ac_ct_CC"; then
6032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041     ac_cv_prog_ac_ct_CC="cc"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047
6048 fi
6049 fi
6050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6051 if test -n "$ac_ct_CC"; then
6052   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6053 echo "${ECHO_T}$ac_ct_CC" >&6
6054 else
6055   echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6057 fi
6058
6059   CC=$ac_ct_CC
6060 else
6061   CC="$ac_cv_prog_CC"
6062 fi
6063
6064 fi
6065 if test -z "$CC"; then
6066   # Extract the first word of "cc", so it can be a program name with args.
6067 set dummy cc; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_CC+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -n "$CC"; then
6074   ac_cv_prog_CC="$CC" # Let the user override the test.
6075 else
6076   ac_prog_rejected=no
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082   for ac_exec_ext in '' $ac_executable_extensions; do
6083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6085        ac_prog_rejected=yes
6086        continue
6087      fi
6088     ac_cv_prog_CC="cc"
6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093 done
6094
6095 if test $ac_prog_rejected = yes; then
6096   # We found a bogon in the path, so make sure we never use it.
6097   set dummy $ac_cv_prog_CC
6098   shift
6099   if test $# != 0; then
6100     # We chose a different compiler from the bogus one.
6101     # However, it has the same basename, so the bogon will be chosen
6102     # first if we set CC to just the basename; use the full file name.
6103     shift
6104     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6105   fi
6106 fi
6107 fi
6108 fi
6109 CC=$ac_cv_prog_CC
6110 if test -n "$CC"; then
6111   echo "$as_me:$LINENO: result: $CC" >&5
6112 echo "${ECHO_T}$CC" >&6
6113 else
6114   echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116 fi
6117
6118 fi
6119 if test -z "$CC"; then
6120   if test -n "$ac_tool_prefix"; then
6121   for ac_prog in cl
6122   do
6123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6127 if test "${ac_cv_prog_CC+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   if test -n "$CC"; then
6131   ac_cv_prog_CC="$CC" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138   for ac_exec_ext in '' $ac_executable_extensions; do
6139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145 done
6146
6147 fi
6148 fi
6149 CC=$ac_cv_prog_CC
6150 if test -n "$CC"; then
6151   echo "$as_me:$LINENO: result: $CC" >&5
6152 echo "${ECHO_T}$CC" >&6
6153 else
6154   echo "$as_me:$LINENO: result: no" >&5
6155 echo "${ECHO_T}no" >&6
6156 fi
6157
6158     test -n "$CC" && break
6159   done
6160 fi
6161 if test -z "$CC"; then
6162   ac_ct_CC=$CC
6163   for ac_prog in cl
6164 do
6165   # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   if test -n "$ac_ct_CC"; then
6173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180   for ac_exec_ext in '' $ac_executable_extensions; do
6181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182     ac_cv_prog_ac_ct_CC="$ac_prog"
6183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187 done
6188
6189 fi
6190 fi
6191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6192 if test -n "$ac_ct_CC"; then
6193   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6194 echo "${ECHO_T}$ac_ct_CC" >&6
6195 else
6196   echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6
6198 fi
6199
6200   test -n "$ac_ct_CC" && break
6201 done
6202
6203   CC=$ac_ct_CC
6204 fi
6205
6206 fi
6207
6208
6209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6210 See \`config.log' for more details." >&5
6211 echo "$as_me: error: no acceptable C compiler found in \$PATH
6212 See \`config.log' for more details." >&2;}
6213    { (exit 1); exit 1; }; }
6214
6215 # Provide some information about the compiler.
6216 echo "$as_me:$LINENO:" \
6217      "checking for C compiler version" >&5
6218 ac_compiler=`set X $ac_compile; echo $2`
6219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6220   (eval $ac_compiler --version </dev/null >&5) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }
6224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6225   (eval $ac_compiler -v </dev/null >&5) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }
6229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6230   (eval $ac_compiler -V </dev/null >&5) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }
6234
6235 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246
6247 int
6248 main ()
6249 {
6250 #ifndef __GNUC__
6251        choke me
6252 #endif
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260   (eval $ac_compile) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag"
6268                          || test ! -s conftest.err'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; } &&
6274          { ac_try='test -s conftest.$ac_objext'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; }; then
6280   ac_compiler_gnu=yes
6281 else
6282   echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_compiler_gnu=no
6286 fi
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6289
6290 fi
6291 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6292 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6293 GCC=`test $ac_compiler_gnu = yes && echo yes`
6294 ac_test_CFLAGS=${CFLAGS+set}
6295 ac_save_CFLAGS=$CFLAGS
6296 CFLAGS="-g"
6297 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6298 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6299 if test "${ac_cv_prog_cc_g+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308
6309 int
6310 main ()
6311 {
6312
6313   ;
6314   return 0;
6315 }
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319   (eval $ac_compile) 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } &&
6326          { ac_try='test -z "$ac_c_werror_flag"
6327                          || test ! -s conftest.err'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; } &&
6333          { ac_try='test -s conftest.$ac_objext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_prog_cc_g=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_cv_prog_cc_g=no
6345 fi
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6350 if test "$ac_test_CFLAGS" = set; then
6351   CFLAGS=$ac_save_CFLAGS
6352 elif test $ac_cv_prog_cc_g = yes; then
6353   if test "$GCC" = yes; then
6354     CFLAGS="-g -O2"
6355   else
6356     CFLAGS="-g"
6357   fi
6358 else
6359   if test "$GCC" = yes; then
6360     CFLAGS="-O2"
6361   else
6362     CFLAGS=
6363   fi
6364 fi
6365 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6366 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6367 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   ac_cv_prog_cc_stdc=no
6371 ac_save_CC=$CC
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378 #include <stdarg.h>
6379 #include <stdio.h>
6380 #include <sys/types.h>
6381 #include <sys/stat.h>
6382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6383 struct buf { int x; };
6384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6385 static char *e (p, i)
6386      char **p;
6387      int i;
6388 {
6389   return p[i];
6390 }
6391 static char *f (char * (*g) (char **, int), char **p, ...)
6392 {
6393   char *s;
6394   va_list v;
6395   va_start (v,p);
6396   s = g (p, va_arg (v,int));
6397   va_end (v);
6398   return s;
6399 }
6400
6401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6402    function prototypes and stuff, but not '\xHH' hex character constants.
6403    These don't provoke an error unfortunately, instead are silently treated
6404    as 'x'.  The following induces an error, until -std1 is added to get
6405    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6406    array size at least.  It's necessary to write '\x00'==0 to get something
6407    that's true only with -std1.  */
6408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6409
6410 int test (int i, double x);
6411 struct s1 {int (*f) (int a);};
6412 struct s2 {int (*f) (double a);};
6413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6414 int argc;
6415 char **argv;
6416 int
6417 main ()
6418 {
6419 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 # Don't try gcc -ansi; that turns off useful extensions and
6425 # breaks some systems' header files.
6426 # AIX                   -qlanglvl=ansi
6427 # Ultrix and OSF/1      -std1
6428 # HP-UX 10.20 and later -Ae
6429 # HP-UX older versions  -Aa -D_HPUX_SOURCE
6430 # SVR4                  -Xc -D__EXTENSIONS__
6431 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6432 do
6433   CC="$ac_save_CC $ac_arg"
6434   rm -f conftest.$ac_objext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436   (eval $ac_compile) 2>conftest.er1
6437   ac_status=$?
6438   grep -v '^ *+' conftest.er1 >conftest.err
6439   rm -f conftest.er1
6440   cat conftest.err >&5
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } &&
6443          { ac_try='test -z "$ac_c_werror_flag"
6444                          || test ! -s conftest.err'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; } &&
6450          { ac_try='test -s conftest.$ac_objext'
6451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452   (eval $ac_try) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; }; then
6456   ac_cv_prog_cc_stdc=$ac_arg
6457 break
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 fi
6463 rm -f conftest.err conftest.$ac_objext
6464 done
6465 rm -f conftest.$ac_ext conftest.$ac_objext
6466 CC=$ac_save_CC
6467
6468 fi
6469
6470 case "x$ac_cv_prog_cc_stdc" in
6471   x|xno)
6472     echo "$as_me:$LINENO: result: none needed" >&5
6473 echo "${ECHO_T}none needed" >&6 ;;
6474   *)
6475     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6477     CC="$CC $ac_cv_prog_cc_stdc" ;;
6478 esac
6479
6480 # Some people use a C++ compiler to compile C.  Since we use `exit',
6481 # in C++ we need to declare it.  In case someone uses the same compiler
6482 # for both compiling C and C++ we need to have the C++ compiler decide
6483 # the declaration of exit, since it's the most demanding environment.
6484 cat >conftest.$ac_ext <<_ACEOF
6485 #ifndef __cplusplus
6486   choke me
6487 #endif
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491   (eval $ac_compile) 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -z "$ac_c_werror_flag"
6499                          || test ! -s conftest.err'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; } &&
6505          { ac_try='test -s conftest.$ac_objext'
6506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507   (eval $ac_try) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   for ac_declaration in \
6512    '' \
6513    'extern "C" void std::exit (int) throw (); using std::exit;' \
6514    'extern "C" void std::exit (int); using std::exit;' \
6515    'extern "C" void exit (int) throw ();' \
6516    'extern "C" void exit (int);' \
6517    'void exit (int);'
6518 do
6519   cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525 $ac_declaration
6526 #include <stdlib.h>
6527 int
6528 main ()
6529 {
6530 exit (42);
6531   ;
6532   return 0;
6533 }
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537   (eval $ac_compile) 2>conftest.er1
6538   ac_status=$?
6539   grep -v '^ *+' conftest.er1 >conftest.err
6540   rm -f conftest.er1
6541   cat conftest.err >&5
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } &&
6544          { ac_try='test -z "$ac_c_werror_flag"
6545                          || test ! -s conftest.err'
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); }; } &&
6551          { ac_try='test -s conftest.$ac_objext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   :
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 continue
6563 fi
6564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565   cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571 $ac_declaration
6572 int
6573 main ()
6574 {
6575 exit (42);
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582   (eval $ac_compile) 2>conftest.er1
6583   ac_status=$?
6584   grep -v '^ *+' conftest.er1 >conftest.err
6585   rm -f conftest.er1
6586   cat conftest.err >&5
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } &&
6589          { ac_try='test -z "$ac_c_werror_flag"
6590                          || test ! -s conftest.err'
6591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592   (eval $ac_try) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }; } &&
6596          { ac_try='test -s conftest.$ac_objext'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   break
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 fi
6608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 done
6610 rm -f conftest*
6611 if test -n "$ac_declaration"; then
6612   echo '#ifdef __cplusplus' >>confdefs.h
6613   echo $ac_declaration      >>confdefs.h
6614   echo '#endif'             >>confdefs.h
6615 fi
6616
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 fi
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 ac_ext=c
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628
6629 depcc="$CC"   am_compiler_list=
6630
6631 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6632 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6633 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637   # We make a subdir and do the tests there.  Otherwise we can end up
6638   # making bogus files that we don't know about and never remove.  For
6639   # instance it was reported that on HP-UX the gcc test will end up
6640   # making a dummy file named `D' -- because `-MD' means `put the output
6641   # in D'.
6642   mkdir conftest.dir
6643   # Copy depcomp to subdir because otherwise we won't find it if we're
6644   # using a relative directory.
6645   cp "$am_depcomp" conftest.dir
6646   cd conftest.dir
6647   # We will build objects and dependencies in a subdirectory because
6648   # it helps to detect inapplicable dependency modes.  For instance
6649   # both Tru64's cc and ICC support -MD to output dependencies as a
6650   # side effect of compilation, but ICC will put the dependencies in
6651   # the current directory while Tru64 will put them in the object
6652   # directory.
6653   mkdir sub
6654
6655   am_cv_CC_dependencies_compiler_type=none
6656   if test "$am_compiler_list" = ""; then
6657      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6658   fi
6659   for depmode in $am_compiler_list; do
6660     # Setup a source with many dependencies, because some compilers
6661     # like to wrap large dependency lists on column 80 (with \), and
6662     # we should not choose a depcomp mode which is confused by this.
6663     #
6664     # We need to recreate these files for each test, as the compiler may
6665     # overwrite some of them when testing with obscure command lines.
6666     # This happens at least with the AIX C compiler.
6667     : > sub/conftest.c
6668     for i in 1 2 3 4 5 6; do
6669       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6670       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6671       # Solaris 8's {/usr,}/bin/sh.
6672       touch sub/conftst$i.h
6673     done
6674     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6675
6676     case $depmode in
6677     nosideeffect)
6678       # after this tag, mechanisms are not by side-effect, so they'll
6679       # only be used when explicitly requested
6680       if test "x$enable_dependency_tracking" = xyes; then
6681         continue
6682       else
6683         break
6684       fi
6685       ;;
6686     none) break ;;
6687     esac
6688     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6689     # mode.  It turns out that the SunPro C++ compiler does not properly
6690     # handle `-M -o', and we need to detect this.
6691     if depmode=$depmode \
6692        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6694        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6695          >/dev/null 2>conftest.err &&
6696        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6697        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6698        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6699       # icc doesn't choke on unknown options, it will just issue warnings
6700       # or remarks (even with -Werror).  So we grep stderr for any message
6701       # that says an option was ignored or not supported.
6702       # When given -MP, icc 7.0 and 7.1 complain thusly:
6703       #   icc: Command line warning: ignoring option '-M'; no argument required
6704       # The diagnosis changed in icc 8.0:
6705       #   icc: Command line remark: option '-MP' not supported
6706       if (grep 'ignoring option' conftest.err ||
6707           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6708         am_cv_CC_dependencies_compiler_type=$depmode
6709         break
6710       fi
6711     fi
6712   done
6713
6714   cd ..
6715   rm -rf conftest.dir
6716 else
6717   am_cv_CC_dependencies_compiler_type=none
6718 fi
6719
6720 fi
6721 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6722 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6723 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6724
6725
6726
6727 if
6728   test "x$enable_dependency_tracking" != xno \
6729   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6730   am__fastdepCC_TRUE=
6731   am__fastdepCC_FALSE='#'
6732 else
6733   am__fastdepCC_TRUE='#'
6734   am__fastdepCC_FALSE=
6735 fi
6736
6737
6738 ac_ext=c
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6744 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6745 # On Suns, sometimes $CPP names a directory.
6746 if test -n "$CPP" && test -d "$CPP"; then
6747   CPP=
6748 fi
6749 if test -z "$CPP"; then
6750   if test "${ac_cv_prog_CPP+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753       # Double quotes because CPP needs to be expanded
6754     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6755     do
6756       ac_preproc_ok=false
6757 for ac_c_preproc_warn_flag in '' yes
6758 do
6759   # Use a header file that comes with gcc, so configuring glibc
6760   # with a fresh cross-compiler works.
6761   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762   # <limits.h> exists even on freestanding compilers.
6763   # On the NeXT, cc -E runs the code through the compiler's parser,
6764   # not just through cpp. "Syntax error" is here to catch this case.
6765   cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771 #ifdef __STDC__
6772 # include <limits.h>
6773 #else
6774 # include <assert.h>
6775 #endif
6776                      Syntax error
6777 _ACEOF
6778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6780   ac_status=$?
6781   grep -v '^ *+' conftest.er1 >conftest.err
6782   rm -f conftest.er1
6783   cat conftest.err >&5
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); } >/dev/null; then
6786   if test -s conftest.err; then
6787     ac_cpp_err=$ac_c_preproc_warn_flag
6788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6789   else
6790     ac_cpp_err=
6791   fi
6792 else
6793   ac_cpp_err=yes
6794 fi
6795 if test -z "$ac_cpp_err"; then
6796   :
6797 else
6798   echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801   # Broken: fails on valid input.
6802 continue
6803 fi
6804 rm -f conftest.err conftest.$ac_ext
6805
6806   # OK, works on sane cases.  Now check whether non-existent headers
6807   # can be detected and how.
6808   cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h.  */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h.  */
6814 #include <ac_nonexistent.h>
6815 _ACEOF
6816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } >/dev/null; then
6824   if test -s conftest.err; then
6825     ac_cpp_err=$ac_c_preproc_warn_flag
6826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6827   else
6828     ac_cpp_err=
6829   fi
6830 else
6831   ac_cpp_err=yes
6832 fi
6833 if test -z "$ac_cpp_err"; then
6834   # Broken: success on invalid input.
6835 continue
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840   # Passes both tests.
6841 ac_preproc_ok=:
6842 break
6843 fi
6844 rm -f conftest.err conftest.$ac_ext
6845
6846 done
6847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6848 rm -f conftest.err conftest.$ac_ext
6849 if $ac_preproc_ok; then
6850   break
6851 fi
6852
6853     done
6854     ac_cv_prog_CPP=$CPP
6855
6856 fi
6857   CPP=$ac_cv_prog_CPP
6858 else
6859   ac_cv_prog_CPP=$CPP
6860 fi
6861 echo "$as_me:$LINENO: result: $CPP" >&5
6862 echo "${ECHO_T}$CPP" >&6
6863 ac_preproc_ok=false
6864 for ac_c_preproc_warn_flag in '' yes
6865 do
6866   # Use a header file that comes with gcc, so configuring glibc
6867   # with a fresh cross-compiler works.
6868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6869   # <limits.h> exists even on freestanding compilers.
6870   # On the NeXT, cc -E runs the code through the compiler's parser,
6871   # not just through cpp. "Syntax error" is here to catch this case.
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #ifdef __STDC__
6879 # include <limits.h>
6880 #else
6881 # include <assert.h>
6882 #endif
6883                      Syntax error
6884 _ACEOF
6885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6887   ac_status=$?
6888   grep -v '^ *+' conftest.er1 >conftest.err
6889   rm -f conftest.er1
6890   cat conftest.err >&5
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } >/dev/null; then
6893   if test -s conftest.err; then
6894     ac_cpp_err=$ac_c_preproc_warn_flag
6895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6896   else
6897     ac_cpp_err=
6898   fi
6899 else
6900   ac_cpp_err=yes
6901 fi
6902 if test -z "$ac_cpp_err"; then
6903   :
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908   # Broken: fails on valid input.
6909 continue
6910 fi
6911 rm -f conftest.err conftest.$ac_ext
6912
6913   # OK, works on sane cases.  Now check whether non-existent headers
6914   # can be detected and how.
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #include <ac_nonexistent.h>
6922 _ACEOF
6923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6925   ac_status=$?
6926   grep -v '^ *+' conftest.er1 >conftest.err
6927   rm -f conftest.er1
6928   cat conftest.err >&5
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } >/dev/null; then
6931   if test -s conftest.err; then
6932     ac_cpp_err=$ac_c_preproc_warn_flag
6933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6934   else
6935     ac_cpp_err=
6936   fi
6937 else
6938   ac_cpp_err=yes
6939 fi
6940 if test -z "$ac_cpp_err"; then
6941   # Broken: success on invalid input.
6942 continue
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947   # Passes both tests.
6948 ac_preproc_ok=:
6949 break
6950 fi
6951 rm -f conftest.err conftest.$ac_ext
6952
6953 done
6954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6955 rm -f conftest.err conftest.$ac_ext
6956 if $ac_preproc_ok; then
6957   :
6958 else
6959   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6960 See \`config.log' for more details." >&5
6961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6962 See \`config.log' for more details." >&2;}
6963    { (exit 1); exit 1; }; }
6964 fi
6965
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971
6972 ac_ext=cc
6973 ac_cpp='$CXXCPP $CPPFLAGS'
6974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6977 if test -n "$ac_tool_prefix"; then
6978   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6979   do
6980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6982 echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6984 if test "${ac_cv_prog_CXX+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   if test -n "$CXX"; then
6988   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003
7004 fi
7005 fi
7006 CXX=$ac_cv_prog_CXX
7007 if test -n "$CXX"; then
7008   echo "$as_me:$LINENO: result: $CXX" >&5
7009 echo "${ECHO_T}$CXX" >&6
7010 else
7011   echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7013 fi
7014
7015     test -n "$CXX" && break
7016   done
7017 fi
7018 if test -z "$CXX"; then
7019   ac_ct_CXX=$CXX
7020   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7021 do
7022   # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7026 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   if test -n "$ac_ct_CXX"; then
7030   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_prog_ac_ct_CXX="$ac_prog"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045
7046 fi
7047 fi
7048 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7049 if test -n "$ac_ct_CXX"; then
7050   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7051 echo "${ECHO_T}$ac_ct_CXX" >&6
7052 else
7053   echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7055 fi
7056
7057   test -n "$ac_ct_CXX" && break
7058 done
7059 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7060
7061   CXX=$ac_ct_CXX
7062 fi
7063
7064
7065 # Provide some information about the compiler.
7066 echo "$as_me:$LINENO:" \
7067      "checking for C++ compiler version" >&5
7068 ac_compiler=`set X $ac_compile; echo $2`
7069 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7070   (eval $ac_compiler --version </dev/null >&5) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }
7074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7075   (eval $ac_compiler -v </dev/null >&5) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }
7079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7080   (eval $ac_compiler -V </dev/null >&5) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }
7084
7085 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7086 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7087 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096
7097 int
7098 main ()
7099 {
7100 #ifndef __GNUC__
7101        choke me
7102 #endif
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110   (eval $ac_compile) 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } &&
7117          { ac_try='test -z "$ac_cxx_werror_flag"
7118                          || test ! -s conftest.err'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; } &&
7124          { ac_try='test -s conftest.$ac_objext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   ac_compiler_gnu=yes
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_compiler_gnu=no
7136 fi
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7139
7140 fi
7141 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7142 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7143 GXX=`test $ac_compiler_gnu = yes && echo yes`
7144 ac_test_CXXFLAGS=${CXXFLAGS+set}
7145 ac_save_CXXFLAGS=$CXXFLAGS
7146 CXXFLAGS="-g"
7147 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7148 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7149 if test "${ac_cv_prog_cxx_g+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158
7159 int
7160 main ()
7161 {
7162
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169   (eval $ac_compile) 2>conftest.er1
7170   ac_status=$?
7171   grep -v '^ *+' conftest.er1 >conftest.err
7172   rm -f conftest.er1
7173   cat conftest.err >&5
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -z "$ac_cxx_werror_flag"
7177                          || test ! -s conftest.err'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; } &&
7183          { ac_try='test -s conftest.$ac_objext'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   ac_cv_prog_cxx_g=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 ac_cv_prog_cxx_g=no
7195 fi
7196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7199 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7200 if test "$ac_test_CXXFLAGS" = set; then
7201   CXXFLAGS=$ac_save_CXXFLAGS
7202 elif test $ac_cv_prog_cxx_g = yes; then
7203   if test "$GXX" = yes; then
7204     CXXFLAGS="-g -O2"
7205   else
7206     CXXFLAGS="-g"
7207   fi
7208 else
7209   if test "$GXX" = yes; then
7210     CXXFLAGS="-O2"
7211   else
7212     CXXFLAGS=
7213   fi
7214 fi
7215 for ac_declaration in \
7216    '' \
7217    'extern "C" void std::exit (int) throw (); using std::exit;' \
7218    'extern "C" void std::exit (int); using std::exit;' \
7219    'extern "C" void exit (int) throw ();' \
7220    'extern "C" void exit (int);' \
7221    'void exit (int);'
7222 do
7223   cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 $ac_declaration
7230 #include <stdlib.h>
7231 int
7232 main ()
7233 {
7234 exit (42);
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7241   (eval $ac_compile) 2>conftest.er1
7242   ac_status=$?
7243   grep -v '^ *+' conftest.er1 >conftest.err
7244   rm -f conftest.er1
7245   cat conftest.err >&5
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } &&
7248          { ac_try='test -z "$ac_cxx_werror_flag"
7249                          || test ! -s conftest.err'
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); }; } &&
7255          { ac_try='test -s conftest.$ac_objext'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   :
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 continue
7267 fi
7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269   cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275 $ac_declaration
7276 int
7277 main ()
7278 {
7279 exit (42);
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286   (eval $ac_compile) 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } &&
7293          { ac_try='test -z "$ac_cxx_werror_flag"
7294                          || test ! -s conftest.err'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; } &&
7300          { ac_try='test -s conftest.$ac_objext'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; }; then
7306   break
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 fi
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 done
7314 rm -f conftest*
7315 if test -n "$ac_declaration"; then
7316   echo '#ifdef __cplusplus' >>confdefs.h
7317   echo $ac_declaration      >>confdefs.h
7318   echo '#endif'             >>confdefs.h
7319 fi
7320
7321 ac_ext=c
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326
7327 depcc="$CXX"  am_compiler_list=
7328
7329 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7330 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7331 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7332   echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7335   # We make a subdir and do the tests there.  Otherwise we can end up
7336   # making bogus files that we don't know about and never remove.  For
7337   # instance it was reported that on HP-UX the gcc test will end up
7338   # making a dummy file named `D' -- because `-MD' means `put the output
7339   # in D'.
7340   mkdir conftest.dir
7341   # Copy depcomp to subdir because otherwise we won't find it if we're
7342   # using a relative directory.
7343   cp "$am_depcomp" conftest.dir
7344   cd conftest.dir
7345   # We will build objects and dependencies in a subdirectory because
7346   # it helps to detect inapplicable dependency modes.  For instance
7347   # both Tru64's cc and ICC support -MD to output dependencies as a
7348   # side effect of compilation, but ICC will put the dependencies in
7349   # the current directory while Tru64 will put them in the object
7350   # directory.
7351   mkdir sub
7352
7353   am_cv_CXX_dependencies_compiler_type=none
7354   if test "$am_compiler_list" = ""; then
7355      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7356   fi
7357   for depmode in $am_compiler_list; do
7358     # Setup a source with many dependencies, because some compilers
7359     # like to wrap large dependency lists on column 80 (with \), and
7360     # we should not choose a depcomp mode which is confused by this.
7361     #
7362     # We need to recreate these files for each test, as the compiler may
7363     # overwrite some of them when testing with obscure command lines.
7364     # This happens at least with the AIX C compiler.
7365     : > sub/conftest.c
7366     for i in 1 2 3 4 5 6; do
7367       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7368       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7369       # Solaris 8's {/usr,}/bin/sh.
7370       touch sub/conftst$i.h
7371     done
7372     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7373
7374     case $depmode in
7375     nosideeffect)
7376       # after this tag, mechanisms are not by side-effect, so they'll
7377       # only be used when explicitly requested
7378       if test "x$enable_dependency_tracking" = xyes; then
7379         continue
7380       else
7381         break
7382       fi
7383       ;;
7384     none) break ;;
7385     esac
7386     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7387     # mode.  It turns out that the SunPro C++ compiler does not properly
7388     # handle `-M -o', and we need to detect this.
7389     if depmode=$depmode \
7390        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7391        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7392        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7393          >/dev/null 2>conftest.err &&
7394        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7395        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7396        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7397       # icc doesn't choke on unknown options, it will just issue warnings
7398       # or remarks (even with -Werror).  So we grep stderr for any message
7399       # that says an option was ignored or not supported.
7400       # When given -MP, icc 7.0 and 7.1 complain thusly:
7401       #   icc: Command line warning: ignoring option '-M'; no argument required
7402       # The diagnosis changed in icc 8.0:
7403       #   icc: Command line remark: option '-MP' not supported
7404       if (grep 'ignoring option' conftest.err ||
7405           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7406         am_cv_CXX_dependencies_compiler_type=$depmode
7407         break
7408       fi
7409     fi
7410   done
7411
7412   cd ..
7413   rm -rf conftest.dir
7414 else
7415   am_cv_CXX_dependencies_compiler_type=none
7416 fi
7417
7418 fi
7419 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7420 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7421 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7422
7423
7424
7425 if
7426   test "x$enable_dependency_tracking" != xno \
7427   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7428   am__fastdepCXX_TRUE=
7429   am__fastdepCXX_FALSE='#'
7430 else
7431   am__fastdepCXX_TRUE='#'
7432   am__fastdepCXX_FALSE=
7433 fi
7434
7435 ac_ext=cc
7436 ac_cpp='$CXXCPP $CPPFLAGS'
7437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7440 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7441 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7442 if test -z "$CXXCPP"; then
7443   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446       # Double quotes because CXXCPP needs to be expanded
7447     for CXXCPP in "$CXX -E" "/lib/cpp"
7448     do
7449       ac_preproc_ok=false
7450 for ac_cxx_preproc_warn_flag in '' yes
7451 do
7452   # Use a header file that comes with gcc, so configuring glibc
7453   # with a fresh cross-compiler works.
7454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7455   # <limits.h> exists even on freestanding compilers.
7456   # On the NeXT, cc -E runs the code through the compiler's parser,
7457   # not just through cpp. "Syntax error" is here to catch this case.
7458   cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 #ifdef __STDC__
7465 # include <limits.h>
7466 #else
7467 # include <assert.h>
7468 #endif
7469                      Syntax error
7470 _ACEOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } >/dev/null; then
7479   if test -s conftest.err; then
7480     ac_cpp_err=$ac_cxx_preproc_warn_flag
7481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7482   else
7483     ac_cpp_err=
7484   fi
7485 else
7486   ac_cpp_err=yes
7487 fi
7488 if test -z "$ac_cpp_err"; then
7489   :
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494   # Broken: fails on valid input.
7495 continue
7496 fi
7497 rm -f conftest.err conftest.$ac_ext
7498
7499   # OK, works on sane cases.  Now check whether non-existent headers
7500   # can be detected and how.
7501   cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 #include <ac_nonexistent.h>
7508 _ACEOF
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } >/dev/null; then
7517   if test -s conftest.err; then
7518     ac_cpp_err=$ac_cxx_preproc_warn_flag
7519     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7520   else
7521     ac_cpp_err=
7522   fi
7523 else
7524   ac_cpp_err=yes
7525 fi
7526 if test -z "$ac_cpp_err"; then
7527   # Broken: success on invalid input.
7528 continue
7529 else
7530   echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533   # Passes both tests.
7534 ac_preproc_ok=:
7535 break
7536 fi
7537 rm -f conftest.err conftest.$ac_ext
7538
7539 done
7540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7541 rm -f conftest.err conftest.$ac_ext
7542 if $ac_preproc_ok; then
7543   break
7544 fi
7545
7546     done
7547     ac_cv_prog_CXXCPP=$CXXCPP
7548
7549 fi
7550   CXXCPP=$ac_cv_prog_CXXCPP
7551 else
7552   ac_cv_prog_CXXCPP=$CXXCPP
7553 fi
7554 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7555 echo "${ECHO_T}$CXXCPP" >&6
7556 ac_preproc_ok=false
7557 for ac_cxx_preproc_warn_flag in '' yes
7558 do
7559   # Use a header file that comes with gcc, so configuring glibc
7560   # with a fresh cross-compiler works.
7561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562   # <limits.h> exists even on freestanding compilers.
7563   # On the NeXT, cc -E runs the code through the compiler's parser,
7564   # not just through cpp. "Syntax error" is here to catch this case.
7565   cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571 #ifdef __STDC__
7572 # include <limits.h>
7573 #else
7574 # include <assert.h>
7575 #endif
7576                      Syntax error
7577 _ACEOF
7578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } >/dev/null; then
7586   if test -s conftest.err; then
7587     ac_cpp_err=$ac_cxx_preproc_warn_flag
7588     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7589   else
7590     ac_cpp_err=
7591   fi
7592 else
7593   ac_cpp_err=yes
7594 fi
7595 if test -z "$ac_cpp_err"; then
7596   :
7597 else
7598   echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601   # Broken: fails on valid input.
7602 continue
7603 fi
7604 rm -f conftest.err conftest.$ac_ext
7605
7606   # OK, works on sane cases.  Now check whether non-existent headers
7607   # can be detected and how.
7608   cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 #include <ac_nonexistent.h>
7615 _ACEOF
7616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } >/dev/null; then
7624   if test -s conftest.err; then
7625     ac_cpp_err=$ac_cxx_preproc_warn_flag
7626     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7627   else
7628     ac_cpp_err=
7629   fi
7630 else
7631   ac_cpp_err=yes
7632 fi
7633 if test -z "$ac_cpp_err"; then
7634   # Broken: success on invalid input.
7635 continue
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640   # Passes both tests.
7641 ac_preproc_ok=:
7642 break
7643 fi
7644 rm -f conftest.err conftest.$ac_ext
7645
7646 done
7647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7648 rm -f conftest.err conftest.$ac_ext
7649 if $ac_preproc_ok; then
7650   :
7651 else
7652   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7653 See \`config.log' for more details." >&5
7654 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7655 See \`config.log' for more details." >&2;}
7656    { (exit 1); exit 1; }; }
7657 fi
7658
7659 ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665
7666
7667 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7668 lt_save_CC="$CC"
7669 lt_save_CFLAGS="$CFLAGS"
7670 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7671 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7672 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7673 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7674 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7675 deplibs_check_method="$deplibs_check_method" \
7676 file_magic_cmd="$file_magic_cmd" \
7677 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7678 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7679 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7680 echo "$as_me: error: libtool tag configuration failed" >&2;}
7681    { (exit 1); exit 1; }; }
7682 CC="$lt_save_CC"
7683 CFLAGS="$lt_save_CFLAGS"
7684
7685 # Redirect the config.log output again, so that the ltconfig log is not
7686 # clobbered by the next message.
7687 exec 5>>./config.log
7688
7689
7690
7691
7692 # Handle -Werror default case.
7693 if test "$ENABLE_WERROR" = default; then
7694   case "$host_os" in
7695     *linux*)
7696       if test "$GCC" = yes; then
7697         ENABLE_WERROR=yes
7698       fi
7699       ;;
7700   esac
7701 fi
7702
7703 if test "x${COMPILE_COLLECTIONS}" = xyes; then
7704   # Extract the first word of "perl", so it can be a program name with args.
7705 set dummy perl; ac_word=$2
7706 echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708 if test "${ac_cv_path_PERL+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $PERL in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729
7730   ;;
7731 esac
7732 fi
7733 PERL=$ac_cv_path_PERL
7734
7735 if test -n "$PERL"; then
7736   echo "$as_me:$LINENO: result: $PERL" >&5
7737 echo "${ECHO_T}$PERL" >&6
7738 else
7739   echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744
7745             ac_config_files="$ac_config_files lib/mkcollections.pl"
7746
7747             ac_config_commands="$ac_config_commands mkcollections.pl"
7748
7749 fi
7750
7751 if test "x${COMPILE_JNI}" = xyes; then
7752
7753
7754
7755  echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
7756 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
7757  if test "${cv_c_gcc_attribute_supported+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760
7761   cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767
7768 int
7769 main ()
7770 {
7771 extern int testfunction(int x) __attribute__((,,))
7772   ;
7773   return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778   (eval $ac_compile) 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -z "$ac_c_werror_flag"
7786                          || test ! -s conftest.err'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; } &&
7792          { ac_try='test -s conftest.$ac_objext'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; }; then
7798   cv_c_gcc_attribute_supported=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 cv_c_gcc_attribute_supported=no
7804 fi
7805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7806
7807 fi
7808
7809  if test "x$cv_c_gcc_attribute_supported" = xyes; then
7810   true
7811   echo "$as_me:$LINENO: result: yes" >&5
7812 echo "${ECHO_T}yes" >&6
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_GNUC25_ATTRIB
7816 _ACEOF
7817
7818
7819  else
7820   true
7821   echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7823
7824  fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835  echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
7836 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
7837  if test "${cv_c_gcc_attribute_unused+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840
7841   cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847
7848 int
7849 main ()
7850 {
7851 extern int testfunction(int x) __attribute__((unused))
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858   (eval $ac_compile) 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag"
7866                          || test ! -s conftest.err'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest.$ac_objext'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   cv_c_gcc_attribute_unused=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 cv_c_gcc_attribute_unused=no
7884 fi
7885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7886
7887 fi
7888
7889  if test "x$cv_c_gcc_attribute_unused" = xyes; then
7890   true
7891   echo "$as_me:$LINENO: result: yes" >&5
7892 echo "${ECHO_T}yes" >&6
7893
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_GNUC25_UNUSED
7896 _ACEOF
7897
7898
7899  else
7900   true
7901   echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6
7903
7904  fi
7905
7906
7907
7908
7909
7910
7911   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7913 if test "${ac_cv_header_stdc+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 #include <stdlib.h>
7923 #include <stdarg.h>
7924 #include <string.h>
7925 #include <float.h>
7926
7927 int
7928 main ()
7929 {
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>conftest.er1
7938   ac_status=$?
7939   grep -v '^ *+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } &&
7944          { ac_try='test -z "$ac_c_werror_flag"
7945                          || test ! -s conftest.err'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; } &&
7951          { ac_try='test -s conftest.$ac_objext'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; }; then
7957   ac_cv_header_stdc=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_header_stdc=no
7963 fi
7964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7965
7966 if test $ac_cv_header_stdc = yes; then
7967   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 #include <string.h>
7975
7976 _ACEOF
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978   $EGREP "memchr" >/dev/null 2>&1; then
7979   :
7980 else
7981   ac_cv_header_stdc=no
7982 fi
7983 rm -f conftest*
7984
7985 fi
7986
7987 if test $ac_cv_header_stdc = yes; then
7988   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989   cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995 #include <stdlib.h>
7996
7997 _ACEOF
7998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7999   $EGREP "free" >/dev/null 2>&1; then
8000   :
8001 else
8002   ac_cv_header_stdc=no
8003 fi
8004 rm -f conftest*
8005
8006 fi
8007
8008 if test $ac_cv_header_stdc = yes; then
8009   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8010   if test "$cross_compiling" = yes; then
8011   :
8012 else
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019 #include <ctype.h>
8020 #if ((' ' & 0x0FF) == 0x020)
8021 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8022 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8023 #else
8024 # define ISLOWER(c) \
8025                    (('a' <= (c) && (c) <= 'i') \
8026                      || ('j' <= (c) && (c) <= 'r') \
8027                      || ('s' <= (c) && (c) <= 'z'))
8028 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8029 #endif
8030
8031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8032 int
8033 main ()
8034 {
8035   int i;
8036   for (i = 0; i < 256; i++)
8037     if (XOR (islower (i), ISLOWER (i))
8038         || toupper (i) != TOUPPER (i))
8039       exit(2);
8040   exit (0);
8041 }
8042 _ACEOF
8043 rm -f conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; }; then
8054   :
8055 else
8056   echo "$as_me: program exited with status $ac_status" >&5
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ( exit $ac_status )
8061 ac_cv_header_stdc=no
8062 fi
8063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 fi
8066 fi
8067 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8068 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8069 if test $ac_cv_header_stdc = yes; then
8070
8071 cat >>confdefs.h <<\_ACEOF
8072 #define STDC_HEADERS 1
8073 _ACEOF
8074
8075 fi
8076
8077
8078       echo "$as_me:$LINENO: checking size of void *" >&5
8079 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
8080 if test "${ac_cv_sizeof_void_p+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8084   cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 #include "confdefs.h"
8091 #include <sys/types.h>
8092
8093
8094 int
8095 main ()
8096 {
8097 switch (0) case 0: case (sizeof (void *) == $ac_size):;
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104   (eval $ac_compile) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest.$ac_objext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   ac_cv_sizeof_void_p=$ac_size
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 fi
8130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8131   if test x$ac_cv_sizeof_void_p != x ; then break; fi
8132 done
8133
8134 fi
8135
8136 if test x$ac_cv_sizeof_void_p = x ; then
8137   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
8138 echo "$as_me: error: cannot determine a size for void *" >&2;}
8139    { (exit 1); exit 1; }; }
8140 fi
8141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8142 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
8143
8144 cat >>confdefs.h <<_ACEOF
8145 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8146 _ACEOF
8147
8148
8149
8150     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8151 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8152 if test "${ac_cv_c_bigendian+set}" = set; then
8153   echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155   ac_cv_c_bigendian=unknown
8156 # See if sys/param.h defines the BYTE_ORDER macro.
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 #include <sys/types.h>
8164 #include <sys/param.h>
8165 int
8166 main ()
8167 {
8168
8169 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8170  bogus endian macros
8171 #endif
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178   (eval $ac_compile) 2>conftest.er1
8179   ac_status=$?
8180   grep -v '^ *+' conftest.er1 >conftest.err
8181   rm -f conftest.er1
8182   cat conftest.err >&5
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -z "$ac_c_werror_flag"
8186                          || test ! -s conftest.err'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; } &&
8192          { ac_try='test -s conftest.$ac_objext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   # It does; now see whether it defined to BIG_ENDIAN or not.
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205 #include <sys/types.h>
8206 #include <sys/param.h>
8207 int
8208 main ()
8209 {
8210
8211 #if BYTE_ORDER != BIG_ENDIAN
8212  not big endian
8213 #endif
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220   (eval $ac_compile) 2>conftest.er1
8221   ac_status=$?
8222   grep -v '^ *+' conftest.er1 >conftest.err
8223   rm -f conftest.er1
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -z "$ac_c_werror_flag"
8228                          || test ! -s conftest.err'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest.$ac_objext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_c_bigendian=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_c_bigendian=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 fi
8253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254 if test $ac_cv_c_bigendian = unknown; then
8255 if test "$cross_compiling" = yes; then
8256    echo $ac_n "cross-compiling... " 2>&6
8257 else
8258   cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264 main () {
8265   /* Are we little or big endian?  From Harbison&Steele.  */
8266   union
8267   {
8268     long l;
8269     char c[sizeof (long)];
8270   } u;
8271   u.l = 1;
8272   exit (u.c[sizeof (long) - 1] == 1);
8273 }
8274 _ACEOF
8275 rm -f conftest$ac_exeext
8276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8277   (eval $ac_link) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282   (eval $ac_try) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; }; then
8286   ac_cv_c_bigendian=no
8287 else
8288   echo "$as_me: program exited with status $ac_status" >&5
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 ( exit $ac_status )
8293 ac_cv_c_bigendian=yes
8294 fi
8295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 fi
8298 fi
8299 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8300 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8301 if test $ac_cv_c_bigendian = unknown; then
8302 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8303 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8304
8305 cat >conftest.c <<EOF
8306 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8307 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8308 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8309 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8310 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8311 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8312 int main() { _ascii (); _ebcdic (); return 0; }
8313 EOF
8314  if test -f conftest.c ; then
8315      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8316         if test `grep -l BIGenDianSyS conftest.o` ; then
8317            echo $ac_n ' big endian probe OK, ' 1>&6
8318            ac_cv_c_bigendian=yes
8319         fi
8320         if test `grep -l LiTTleEnDian conftest.o` ; then
8321            echo $ac_n ' little endian probe OK, ' 1>&6
8322            if test $ac_cv_c_bigendian = yes ; then
8323             ac_cv_c_bigendian=unknown;
8324            else
8325             ac_cv_c_bigendian=no
8326            fi
8327         fi
8328         echo $ac_n 'guessing bigendian ...  ' >&6
8329      fi
8330   fi
8331 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8333 fi
8334 if test $ac_cv_c_bigendian = yes; then
8335
8336 cat >>confdefs.h <<\_ACEOF
8337 #define WORDS_BIGENDIAN 1
8338 _ACEOF
8339
8340
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HOST_WORDS_BIG_ENDIAN 1
8343 _ACEOF
8344
8345   BYTEORDER=4321
8346 else
8347   BYTEORDER=1234
8348 fi
8349
8350 cat >>confdefs.h <<_ACEOF
8351 #define BYTEORDER $BYTEORDER
8352 _ACEOF
8353
8354 if test $ac_cv_c_bigendian = unknown; then
8355   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8356 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8357    { (exit 1); exit 1; }; }
8358 fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
8381                     asm/ioctls.h \
8382                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
8383                     sys/time.h \
8384                     sys/select.h \
8385                     crt_externs.h \
8386                     fcntl.h \
8387                     sys/mman.h \
8388                     magic.h \
8389                     sys/event.h sys/epoll.h \
8390                     ifaddrs.h
8391 do
8392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394   echo "$as_me:$LINENO: checking for $ac_header" >&5
8395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 fi
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8401 else
8402   # Is the header compilable?
8403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 $ac_includes_default
8412 #include <$ac_header>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"
8424                          || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest.$ac_objext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_header_compiler=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_header_compiler=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8446
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 #include <$ac_header>
8457 _ACEOF
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } >/dev/null; then
8466   if test -s conftest.err; then
8467     ac_cpp_err=$ac_c_preproc_warn_flag
8468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8469   else
8470     ac_cpp_err=
8471   fi
8472 else
8473   ac_cpp_err=yes
8474 fi
8475 if test -z "$ac_cpp_err"; then
8476   ac_header_preproc=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481   ac_header_preproc=no
8482 fi
8483 rm -f conftest.err conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8486
8487 # So?  What about this header?
8488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8489   yes:no: )
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494     ac_header_preproc=yes
8495     ;;
8496   no:yes:* )
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8509     (
8510       cat <<\_ASBOX
8511 ## -------------------------------- ##
8512 ## Report this to classpath@gnu.org ##
8513 ## -------------------------------- ##
8514 _ASBOX
8515     ) |
8516       sed "s/^/$as_me: WARNING:     /" >&2
8517     ;;
8518 esac
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   eval "$as_ac_Header=\$ac_header_preproc"
8525 fi
8526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8528
8529 fi
8530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8531   cat >>confdefs.h <<_ACEOF
8532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8533 _ACEOF
8534
8535 fi
8536
8537 done
8538
8539
8540   cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546 #include <stdint.h>
8547
8548 _ACEOF
8549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550   $EGREP "uint32_t" >/dev/null 2>&1; then
8551
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_INT32_DEFINED 1
8554 _ACEOF
8555
8556 fi
8557 rm -f conftest*
8558
8559   cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565 #include <inttypes.h>
8566
8567 _ACEOF
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569   $EGREP "uint32_t" >/dev/null 2>&1; then
8570
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_INT32_DEFINED 1
8573 _ACEOF
8574
8575 fi
8576 rm -f conftest*
8577
8578   cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 #include <sys/types.h>
8585
8586 _ACEOF
8587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8588   $EGREP "u_int32_t" >/dev/null 2>&1; then
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_BSD_INT32_DEFINED 1
8592 _ACEOF
8593
8594 fi
8595 rm -f conftest*
8596
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 #include <sys/config.h>
8604
8605 _ACEOF
8606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607   $EGREP "u_int32_t" >/dev/null 2>&1; then
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_BSD_INT32_DEFINED 1
8611 _ACEOF
8612
8613 fi
8614 rm -f conftest*
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 for ac_func in ftruncate fsync select \
8672                   gethostname socket strerror fork pipe execve open close \
8673                   lseek fstat read readv write writev htonl memset htons connect \
8674                   getsockname getpeername bind listen accept \
8675                   recvfrom send sendto setsockopt getsockopt time mktime \
8676                   gethostbyname_r localtime_r \
8677                   strerror_r \
8678                   fcntl \
8679                   mmap munmap mincore msync madvise getpagesize sysconf \
8680                   lstat readlink \
8681                   inet_aton inet_addr inet_pton \
8682                   getifaddrs kqueue kevent epoll_create \
8683                   readdir_r
8684 do
8685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686 echo "$as_me:$LINENO: checking for $ac_func" >&5
8687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8688 if eval "test \"\${$as_ac_var+set}\" = set"; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   if test x$gcc_no_link = xyes; then
8692   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8694    { (exit 1); exit 1; }; }
8695 fi
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8704 #define $ac_func innocuous_$ac_func
8705
8706 /* System header to define __stub macros and hopefully few prototypes,
8707     which can conflict with char $ac_func (); below.
8708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709     <limits.h> exists even on freestanding compilers.  */
8710
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8716
8717 #undef $ac_func
8718
8719 /* Override any gcc2 internal prototype to avoid an error.  */
8720 #ifdef __cplusplus
8721 extern "C"
8722 {
8723 #endif
8724 /* We use char because int might match the return type of a gcc2
8725    builtin and then its argument prototype would still apply.  */
8726 char $ac_func ();
8727 /* The GNU C library defines this for functions which it implements
8728     to always fail with ENOSYS.  Some functions are actually named
8729     something starting with __ and the normal name is an alias.  */
8730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8731 choke me
8732 #else
8733 char (*f) () = $ac_func;
8734 #endif
8735 #ifdef __cplusplus
8736 }
8737 #endif
8738
8739 int
8740 main ()
8741 {
8742 return f != $ac_func;
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749   (eval $ac_link) 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -z "$ac_c_werror_flag"
8757                          || test ! -s conftest.err'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   eval "$as_ac_var=yes"
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 eval "$as_ac_var=no"
8775 fi
8776 rm -f conftest.err conftest.$ac_objext \
8777       conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8781 if test `eval echo '${'$as_ac_var'}'` = yes; then
8782   cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 fi
8787 done
8788
8789
8790   LIBMAGIC=
8791   echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
8792 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
8793 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   ac_check_lib_save_LIBS=$LIBS
8797 LIBS="-lmagic  $LIBS"
8798 if test x$gcc_no_link = xyes; then
8799   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8801    { (exit 1); exit 1; }; }
8802 fi
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809
8810 /* Override any gcc2 internal prototype to avoid an error.  */
8811 #ifdef __cplusplus
8812 extern "C"
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815    builtin and then its argument prototype would still apply.  */
8816 char magic_open ();
8817 int
8818 main ()
8819 {
8820 magic_open ();
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -z "$ac_c_werror_flag"
8835                          || test ! -s conftest.err'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; } &&
8841          { ac_try='test -s conftest$ac_exeext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   ac_cv_lib_magic_magic_open=yes
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852 ac_cv_lib_magic_magic_open=no
8853 fi
8854 rm -f conftest.err conftest.$ac_objext \
8855       conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8857 fi
8858 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
8859 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
8860 if test $ac_cv_lib_magic_magic_open = yes; then
8861   LIBMAGIC=-lmagic
8862 fi
8863
8864
8865
8866   echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
8867 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
8868   cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874 #include <netinet/in.h>
8875 int
8876 main ()
8877 {
8878 struct sockaddr_in6 addr6;
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885   (eval $ac_compile) 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } &&
8892          { ac_try='test -z "$ac_c_werror_flag"
8893                          || test ! -s conftest.err'
8894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; } &&
8899          { ac_try='test -s conftest.$ac_objext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_INET6 1
8908 _ACEOF
8909
8910                      echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8918 fi
8919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8920
8921   echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8922 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8923 if test "${ac_cv_header_time+set}" = set; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926   cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8932 #include <sys/types.h>
8933 #include <sys/time.h>
8934 #include <time.h>
8935
8936 int
8937 main ()
8938 {
8939 if ((struct tm *) 0)
8940 return 0;
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947   (eval $ac_compile) 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -z "$ac_c_werror_flag"
8955                          || test ! -s conftest.err'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest.$ac_objext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_cv_header_time=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_header_time=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8977 echo "${ECHO_T}$ac_cv_header_time" >&6
8978 if test $ac_cv_header_time = yes; then
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define TIME_WITH_SYS_TIME 1
8982 _ACEOF
8983
8984 fi
8985
8986   echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8987 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8988 if test "${ac_cv_struct_tm+set}" = set; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991   cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997 #include <sys/types.h>
8998 #include <time.h>
8999
9000 int
9001 main ()
9002 {
9003 struct tm *tp; tp->tm_sec;
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010   (eval $ac_compile) 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } &&
9017          { ac_try='test -z "$ac_c_werror_flag"
9018                          || test ! -s conftest.err'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; } &&
9024          { ac_try='test -s conftest.$ac_objext'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   ac_cv_struct_tm=time.h
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ac_cv_struct_tm=sys/time.h
9036 fi
9037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9038 fi
9039 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9040 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9041 if test $ac_cv_struct_tm = sys/time.h; then
9042
9043 cat >>confdefs.h <<\_ACEOF
9044 #define TM_IN_SYS_TIME 1
9045 _ACEOF
9046
9047 fi
9048
9049   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9050 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9051 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 #include <sys/types.h>
9061 #include <$ac_cv_struct_tm>
9062
9063
9064 int
9065 main ()
9066 {
9067 static struct tm ac_aggr;
9068 if (ac_aggr.tm_zone)
9069 return 0;
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076   (eval $ac_compile) 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag"
9084                          || test ! -s conftest.err'
9085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086   (eval $ac_try) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; } &&
9090          { ac_try='test -s conftest.$ac_objext'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_cv_member_struct_tm_tm_zone=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107 #include <sys/types.h>
9108 #include <$ac_cv_struct_tm>
9109
9110
9111 int
9112 main ()
9113 {
9114 static struct tm ac_aggr;
9115 if (sizeof ac_aggr.tm_zone)
9116 return 0;
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123   (eval $ac_compile) 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } &&
9130          { ac_try='test -z "$ac_c_werror_flag"
9131                          || test ! -s conftest.err'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; } &&
9137          { ac_try='test -s conftest.$ac_objext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_cv_member_struct_tm_tm_zone=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_cv_member_struct_tm_tm_zone=no
9149 fi
9150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9155 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9156 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9157
9158 cat >>confdefs.h <<_ACEOF
9159 #define HAVE_STRUCT_TM_TM_ZONE 1
9160 _ACEOF
9161
9162
9163 fi
9164
9165 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9166
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_TM_ZONE 1
9169 _ACEOF
9170
9171 else
9172   echo "$as_me:$LINENO: checking for tzname" >&5
9173 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9174 if test "${ac_cv_var_tzname+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   if test x$gcc_no_link = xyes; then
9178   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9180    { (exit 1); exit 1; }; }
9181 fi
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h.  */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h.  */
9188 #include <time.h>
9189 #ifndef tzname /* For SGI.  */
9190 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9191 #endif
9192
9193 int
9194 main ()
9195 {
9196 atoi(*tzname);
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203   (eval $ac_link) 2>conftest.er1
9204   ac_status=$?
9205   grep -v '^ *+' conftest.er1 >conftest.err
9206   rm -f conftest.er1
9207   cat conftest.err >&5
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); } &&
9210          { ac_try='test -z "$ac_c_werror_flag"
9211                          || test ! -s conftest.err'
9212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213   (eval $ac_try) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); }; } &&
9217          { ac_try='test -s conftest$ac_exeext'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; }; then
9223   ac_cv_var_tzname=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 ac_cv_var_tzname=no
9229 fi
9230 rm -f conftest.err conftest.$ac_objext \
9231       conftest$ac_exeext conftest.$ac_ext
9232 fi
9233 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9234 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9235   if test $ac_cv_var_tzname = yes; then
9236
9237 cat >>confdefs.h <<\_ACEOF
9238 #define HAVE_TZNAME 1
9239 _ACEOF
9240
9241   fi
9242 fi
9243
9244
9245   echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
9246 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
9247   cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 #include <time.h>
9254 int
9255 main ()
9256 {
9257 struct tm tim; tim.tm_gmtoff = 0;
9258   ;
9259   return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264   (eval $ac_compile) 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } &&
9271          { ac_try='test -z "$ac_c_werror_flag"
9272                          || test ! -s conftest.err'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest.$ac_objext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284
9285 cat >>confdefs.h <<\_ACEOF
9286 #define STRUCT_TM_HAS_GMTOFF 1
9287 _ACEOF
9288
9289    echo "$as_me:$LINENO: result: yes" >&5
9290 echo "${ECHO_T}yes" >&6
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9297    echo "$as_me:$LINENO: checking for global timezone variable" >&5
9298 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
9299                cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305 #include <time.h>
9306 int
9307 main ()
9308 {
9309 void i(){long z2 = 2*timezone;}
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316   (eval $ac_compile) 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -z "$ac_c_werror_flag"
9324                          || test ! -s conftest.err'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; } &&
9330          { ac_try='test -s conftest.$ac_objext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_TIMEZONE 1
9339 _ACEOF
9340
9341       echo "$as_me:$LINENO: result: yes" >&5
9342 echo "${ECHO_T}yes" >&6
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9349        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
9350 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
9351               cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 #include <time.h>
9358 int
9359 main ()
9360 {
9361 long z2 = _timezone;
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368   (eval $ac_compile) 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -z "$ac_c_werror_flag"
9376                          || test ! -s conftest.err'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; } &&
9382          { ac_try='test -s conftest.$ac_objext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388
9389 cat >>confdefs.h <<\_ACEOF
9390 #define HAVE_UNDERSCORE_TIMEZONE 1
9391 _ACEOF
9392
9393           echo "$as_me:$LINENO: result: yes" >&5
9394 echo "${ECHO_T}yes" >&6
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 echo "$as_me:$LINENO: result: no" >&5
9400 echo "${ECHO_T}no" >&6
9401 fi
9402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9405 fi
9406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9407
9408   echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9409 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9410 if test "${ac_cv_c_const+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419
9420 int
9421 main ()
9422 {
9423 /* FIXME: Include the comments suggested by Paul. */
9424 #ifndef __cplusplus
9425   /* Ultrix mips cc rejects this.  */
9426   typedef int charset[2];
9427   const charset x;
9428   /* SunOS 4.1.1 cc rejects this.  */
9429   char const *const *ccp;
9430   char **p;
9431   /* NEC SVR4.0.2 mips cc rejects this.  */
9432   struct point {int x, y;};
9433   static struct point const zero = {0,0};
9434   /* AIX XL C 1.02.0.0 rejects this.
9435      It does not let you subtract one const X* pointer from another in
9436      an arm of an if-expression whose if-part is not a constant
9437      expression */
9438   const char *g = "string";
9439   ccp = &g + (g ? g-g : 0);
9440   /* HPUX 7.0 cc rejects these. */
9441   ++ccp;
9442   p = (char**) ccp;
9443   ccp = (char const *const *) p;
9444   { /* SCO 3.2v4 cc rejects this.  */
9445     char *t;
9446     char const *s = 0 ? (char *) 0 : (char const *) 0;
9447
9448     *t++ = 0;
9449   }
9450   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9451     int x[] = {25, 17};
9452     const int *foo = &x[0];
9453     ++foo;
9454   }
9455   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9456     typedef const int *iptr;
9457     iptr p = 0;
9458     ++p;
9459   }
9460   { /* AIX XL C 1.02.0.0 rejects this saying
9461        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9462     struct s { int j; const int *ap[3]; };
9463     struct s *b; b->j = 5;
9464   }
9465   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9466     const int foo = 10;
9467   }
9468 #endif
9469
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9476   (eval $ac_compile) 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag"
9484                          || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest.$ac_objext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_c_const=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_cv_c_const=no
9502 fi
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9506 echo "${ECHO_T}$ac_cv_c_const" >&6
9507 if test $ac_cv_c_const = no; then
9508
9509 cat >>confdefs.h <<\_ACEOF
9510 #define const
9511 _ACEOF
9512
9513 fi
9514
9515   echo "$as_me:$LINENO: checking for __attribute__" >&5
9516 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
9517 if test "${ac_cv_c_attribute+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h.  */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h.  */
9527 void foo(void) __attribute__ ((__noreturn__));
9528
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532   (eval $ac_compile) 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag"
9540                          || test ! -s conftest.err'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest.$ac_objext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_cv_c_attribute=yes
9553 else
9554   echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_c_attribute=no
9558
9559 fi
9560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9561
9562 fi
9563 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
9564 echo "${ECHO_T}$ac_cv_c_attribute" >&6
9565
9566
9567 case $ac_cv_c_attribute in
9568   yes) ;;
9569   no)
9570     cat >>confdefs.h <<_ACEOF
9571 #define __attribute__(x)    /* nothing */
9572 _ACEOF
9573     ;;
9574 esac
9575
9576
9577
9578       if test "X$prefix" = "XNONE"; then
9579     acl_final_prefix="$ac_default_prefix"
9580   else
9581     acl_final_prefix="$prefix"
9582   fi
9583   if test "X$exec_prefix" = "XNONE"; then
9584     acl_final_exec_prefix='${prefix}'
9585   else
9586     acl_final_exec_prefix="$exec_prefix"
9587   fi
9588   acl_save_prefix="$prefix"
9589   prefix="$acl_final_prefix"
9590   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9591   prefix="$acl_save_prefix"
9592
9593
9594 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9595 if test "${with_gnu_ld+set}" = set; then
9596   withval="$with_gnu_ld"
9597   test "$withval" = no || with_gnu_ld=yes
9598 else
9599   with_gnu_ld=no
9600 fi;
9601 # Prepare PATH_SEPARATOR.
9602 # The user is always right.
9603 if test "${PATH_SEPARATOR+set}" != set; then
9604   echo "#! /bin/sh" >conf$$.sh
9605   echo  "exit 0"   >>conf$$.sh
9606   chmod +x conf$$.sh
9607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9608     PATH_SEPARATOR=';'
9609   else
9610     PATH_SEPARATOR=:
9611   fi
9612   rm -f conf$$.sh
9613 fi
9614 ac_prog=ld
9615 if test "$GCC" = yes; then
9616   # Check if gcc -print-prog-name=ld gives a path.
9617   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9618 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9619   case $host in
9620   *-*-mingw*)
9621     # gcc leaves a trailing carriage return which upsets mingw
9622     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9623   *)
9624     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9625   esac
9626   case $ac_prog in
9627     # Accept absolute paths.
9628     [\\/]* | [A-Za-z]:[\\/]*)
9629       re_direlt='/[^/][^/]*/\.\./'
9630       # Canonicalize the path of ld
9631       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9632       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9633         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9634       done
9635       test -z "$LD" && LD="$ac_prog"
9636       ;;
9637   "")
9638     # If it fails, then pretend we aren't using GCC.
9639     ac_prog=ld
9640     ;;
9641   *)
9642     # If it is relative, then search for the first ld in PATH.
9643     with_gnu_ld=unknown
9644     ;;
9645   esac
9646 elif test "$with_gnu_ld" = yes; then
9647   echo "$as_me:$LINENO: checking for GNU ld" >&5
9648 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9649 else
9650   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9651 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9652 fi
9653 if test "${acl_cv_path_LD+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   if test -z "$LD"; then
9657   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9658   for ac_dir in $PATH; do
9659     test -z "$ac_dir" && ac_dir=.
9660     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9661       acl_cv_path_LD="$ac_dir/$ac_prog"
9662       # Check to see if the program is GNU ld.  I'd rather use --version,
9663       # but apparently some GNU ld's only accept -v.
9664       # Break only if it was the GNU/non-GNU ld that we prefer.
9665       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9666         test "$with_gnu_ld" != no && break
9667       else
9668         test "$with_gnu_ld" != yes && break
9669       fi
9670     fi
9671   done
9672   IFS="$ac_save_ifs"
9673 else
9674   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9675 fi
9676 fi
9677
9678 LD="$acl_cv_path_LD"
9679 if test -n "$LD"; then
9680   echo "$as_me:$LINENO: result: $LD" >&5
9681 echo "${ECHO_T}$LD" >&6
9682 else
9683   echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9685 fi
9686 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9687 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9688    { (exit 1); exit 1; }; }
9689 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9690 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9691 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9695 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9696   acl_cv_prog_gnu_ld=yes
9697 else
9698   acl_cv_prog_gnu_ld=no
9699 fi
9700 fi
9701 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9702 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9703 with_gnu_ld=$acl_cv_prog_gnu_ld
9704
9705
9706
9707                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9708 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9709 if test "${acl_cv_rpath+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712
9713     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9714     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9715     . ./conftest.sh
9716     rm -f ./conftest.sh
9717     acl_cv_rpath=done
9718
9719 fi
9720 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9721 echo "${ECHO_T}$acl_cv_rpath" >&6
9722   wl="$acl_cv_wl"
9723   libext="$acl_cv_libext"
9724   shlibext="$acl_cv_shlibext"
9725   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9726   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9727   hardcode_direct="$acl_cv_hardcode_direct"
9728   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9729     # Check whether --enable-rpath or --disable-rpath was given.
9730 if test "${enable_rpath+set}" = set; then
9731   enableval="$enable_rpath"
9732   :
9733 else
9734   enable_rpath=yes
9735 fi;
9736
9737
9738
9739
9740
9741
9742
9743     use_additional=yes
9744
9745   acl_save_prefix="$prefix"
9746   prefix="$acl_final_prefix"
9747   acl_save_exec_prefix="$exec_prefix"
9748   exec_prefix="$acl_final_exec_prefix"
9749
9750     eval additional_includedir=\"$includedir\"
9751     eval additional_libdir=\"$libdir\"
9752
9753   exec_prefix="$acl_save_exec_prefix"
9754   prefix="$acl_save_prefix"
9755
9756
9757 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9758 if test "${with_libiconv_prefix+set}" = set; then
9759   withval="$with_libiconv_prefix"
9760
9761     if test "X$withval" = "Xno"; then
9762       use_additional=no
9763     else
9764       if test "X$withval" = "X"; then
9765
9766   acl_save_prefix="$prefix"
9767   prefix="$acl_final_prefix"
9768   acl_save_exec_prefix="$exec_prefix"
9769   exec_prefix="$acl_final_exec_prefix"
9770
9771           eval additional_includedir=\"$includedir\"
9772           eval additional_libdir=\"$libdir\"
9773
9774   exec_prefix="$acl_save_exec_prefix"
9775   prefix="$acl_save_prefix"
9776
9777       else
9778         additional_includedir="$withval/include"
9779         additional_libdir="$withval/lib"
9780       fi
9781     fi
9782
9783 fi;
9784       LIBICONV=
9785   LTLIBICONV=
9786   INCICONV=
9787   rpathdirs=
9788   ltrpathdirs=
9789   names_already_handled=
9790   names_next_round='iconv '
9791   while test -n "$names_next_round"; do
9792     names_this_round="$names_next_round"
9793     names_next_round=
9794     for name in $names_this_round; do
9795       already_handled=
9796       for n in $names_already_handled; do
9797         if test "$n" = "$name"; then
9798           already_handled=yes
9799           break
9800         fi
9801       done
9802       if test -z "$already_handled"; then
9803         names_already_handled="$names_already_handled $name"
9804                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9805         eval value=\"\$HAVE_LIB$uppername\"
9806         if test -n "$value"; then
9807           if test "$value" = yes; then
9808             eval value=\"\$LIB$uppername\"
9809             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9810             eval value=\"\$LTLIB$uppername\"
9811             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9812           else
9813                                     :
9814           fi
9815         else
9816                               found_dir=
9817           found_la=
9818           found_so=
9819           found_a=
9820           if test $use_additional = yes; then
9821             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9822               found_dir="$additional_libdir"
9823               found_so="$additional_libdir/lib$name.$shlibext"
9824               if test -f "$additional_libdir/lib$name.la"; then
9825                 found_la="$additional_libdir/lib$name.la"
9826               fi
9827             else
9828               if test -f "$additional_libdir/lib$name.$libext"; then
9829                 found_dir="$additional_libdir"
9830                 found_a="$additional_libdir/lib$name.$libext"
9831                 if test -f "$additional_libdir/lib$name.la"; then
9832                   found_la="$additional_libdir/lib$name.la"
9833                 fi
9834               fi
9835             fi
9836           fi
9837           if test "X$found_dir" = "X"; then
9838             for x in $LDFLAGS $LTLIBICONV; do
9839
9840   acl_save_prefix="$prefix"
9841   prefix="$acl_final_prefix"
9842   acl_save_exec_prefix="$exec_prefix"
9843   exec_prefix="$acl_final_exec_prefix"
9844   eval x=\"$x\"
9845   exec_prefix="$acl_save_exec_prefix"
9846   prefix="$acl_save_prefix"
9847
9848               case "$x" in
9849                 -L*)
9850                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9851                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9852                     found_dir="$dir"
9853                     found_so="$dir/lib$name.$shlibext"
9854                     if test -f "$dir/lib$name.la"; then
9855                       found_la="$dir/lib$name.la"
9856                     fi
9857                   else
9858                     if test -f "$dir/lib$name.$libext"; then
9859                       found_dir="$dir"
9860                       found_a="$dir/lib$name.$libext"
9861                       if test -f "$dir/lib$name.la"; then
9862                         found_la="$dir/lib$name.la"
9863                       fi
9864                     fi
9865                   fi
9866                   ;;
9867               esac
9868               if test "X$found_dir" != "X"; then
9869                 break
9870               fi
9871             done
9872           fi
9873           if test "X$found_dir" != "X"; then
9874                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9875             if test "X$found_so" != "X"; then
9876                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9877                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9878               else
9879                                                                                 haveit=
9880                 for x in $ltrpathdirs; do
9881                   if test "X$x" = "X$found_dir"; then
9882                     haveit=yes
9883                     break
9884                   fi
9885                 done
9886                 if test -z "$haveit"; then
9887                   ltrpathdirs="$ltrpathdirs $found_dir"
9888                 fi
9889                                 if test "$hardcode_direct" = yes; then
9890                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9891                 else
9892                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9893                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9894                                                             haveit=
9895                     for x in $rpathdirs; do
9896                       if test "X$x" = "X$found_dir"; then
9897                         haveit=yes
9898                         break
9899                       fi
9900                     done
9901                     if test -z "$haveit"; then
9902                       rpathdirs="$rpathdirs $found_dir"
9903                     fi
9904                   else
9905                                                                                 haveit=
9906                     for x in $LDFLAGS $LIBICONV; 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-L$found_dir"; then
9917                         haveit=yes
9918                         break
9919                       fi
9920                     done
9921                     if test -z "$haveit"; then
9922                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9923                     fi
9924                     if test "$hardcode_minus_L" != no; then
9925                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9926                     else
9927                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9928                     fi
9929                   fi
9930                 fi
9931               fi
9932             else
9933               if test "X$found_a" != "X"; then
9934                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9935               else
9936                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9937               fi
9938             fi
9939                         additional_includedir=
9940             case "$found_dir" in
9941               */lib | */lib/)
9942                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9943                 additional_includedir="$basedir/include"
9944                 ;;
9945             esac
9946             if test "X$additional_includedir" != "X"; then
9947                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9948                 haveit=
9949                 if test "X$additional_includedir" = "X/usr/local/include"; then
9950                   if test -n "$GCC"; then
9951                     case $host_os in
9952                       linux*) haveit=yes;;
9953                     esac
9954                   fi
9955                 fi
9956                 if test -z "$haveit"; then
9957                   for x in $CPPFLAGS $INCICONV; do
9958
9959   acl_save_prefix="$prefix"
9960   prefix="$acl_final_prefix"
9961   acl_save_exec_prefix="$exec_prefix"
9962   exec_prefix="$acl_final_exec_prefix"
9963   eval x=\"$x\"
9964   exec_prefix="$acl_save_exec_prefix"
9965   prefix="$acl_save_prefix"
9966
9967                     if test "X$x" = "X-I$additional_includedir"; then
9968                       haveit=yes
9969                       break
9970                     fi
9971                   done
9972                   if test -z "$haveit"; then
9973                     if test -d "$additional_includedir"; then
9974                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9975                     fi
9976                   fi
9977                 fi
9978               fi
9979             fi
9980                         if test -n "$found_la"; then
9981                                                         save_libdir="$libdir"
9982               case "$found_la" in
9983                 */* | *\\*) . "$found_la" ;;
9984                 *) . "./$found_la" ;;
9985               esac
9986               libdir="$save_libdir"
9987                             for dep in $dependency_libs; do
9988                 case "$dep" in
9989                   -L*)
9990                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9991                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9992                       haveit=
9993                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9994                         if test -n "$GCC"; then
9995                           case $host_os in
9996                             linux*) haveit=yes;;
9997                           esac
9998                         fi
9999                       fi
10000                       if test -z "$haveit"; then
10001                         haveit=
10002                         for x in $LDFLAGS $LIBICONV; do
10003
10004   acl_save_prefix="$prefix"
10005   prefix="$acl_final_prefix"
10006   acl_save_exec_prefix="$exec_prefix"
10007   exec_prefix="$acl_final_exec_prefix"
10008   eval x=\"$x\"
10009   exec_prefix="$acl_save_exec_prefix"
10010   prefix="$acl_save_prefix"
10011
10012                           if test "X$x" = "X-L$additional_libdir"; then
10013                             haveit=yes
10014                             break
10015                           fi
10016                         done
10017                         if test -z "$haveit"; then
10018                           if test -d "$additional_libdir"; then
10019                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10020                           fi
10021                         fi
10022                         haveit=
10023                         for x in $LDFLAGS $LTLIBICONV; do
10024
10025   acl_save_prefix="$prefix"
10026   prefix="$acl_final_prefix"
10027   acl_save_exec_prefix="$exec_prefix"
10028   exec_prefix="$acl_final_exec_prefix"
10029   eval x=\"$x\"
10030   exec_prefix="$acl_save_exec_prefix"
10031   prefix="$acl_save_prefix"
10032
10033                           if test "X$x" = "X-L$additional_libdir"; then
10034                             haveit=yes
10035                             break
10036                           fi
10037                         done
10038                         if test -z "$haveit"; then
10039                           if test -d "$additional_libdir"; then
10040                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10041                           fi
10042                         fi
10043                       fi
10044                     fi
10045                     ;;
10046                   -R*)
10047                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10048                     if test "$enable_rpath" != no; then
10049                                                                   haveit=
10050                       for x in $rpathdirs; do
10051                         if test "X$x" = "X$dir"; then
10052                           haveit=yes
10053                           break
10054                         fi
10055                       done
10056                       if test -z "$haveit"; then
10057                         rpathdirs="$rpathdirs $dir"
10058                       fi
10059                                                                   haveit=
10060                       for x in $ltrpathdirs; do
10061                         if test "X$x" = "X$dir"; then
10062                           haveit=yes
10063                           break
10064                         fi
10065                       done
10066                       if test -z "$haveit"; then
10067                         ltrpathdirs="$ltrpathdirs $dir"
10068                       fi
10069                     fi
10070                     ;;
10071                   -l*)
10072                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10073                     ;;
10074                   *.la)
10075                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10076                     ;;
10077                   *)
10078                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10079                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10080                     ;;
10081                 esac
10082               done
10083             fi
10084           else
10085                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10086             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10087           fi
10088         fi
10089       fi
10090     done
10091   done
10092   if test "X$rpathdirs" != "X"; then
10093     if test -n "$hardcode_libdir_separator"; then
10094                         alldirs=
10095       for found_dir in $rpathdirs; do
10096         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10097       done
10098             acl_save_libdir="$libdir"
10099       libdir="$alldirs"
10100       eval flag=\"$hardcode_libdir_flag_spec\"
10101       libdir="$acl_save_libdir"
10102       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10103     else
10104             for found_dir in $rpathdirs; do
10105         acl_save_libdir="$libdir"
10106         libdir="$found_dir"
10107         eval flag=\"$hardcode_libdir_flag_spec\"
10108         libdir="$acl_save_libdir"
10109         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10110       done
10111     fi
10112   fi
10113   if test "X$ltrpathdirs" != "X"; then
10114             for found_dir in $ltrpathdirs; do
10115       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10116     done
10117   fi
10118
10119
10120
10121
10122
10123
10124
10125           am_save_CPPFLAGS="$CPPFLAGS"
10126
10127   for element in $INCICONV; do
10128     haveit=
10129     for x in $CPPFLAGS; do
10130
10131   acl_save_prefix="$prefix"
10132   prefix="$acl_final_prefix"
10133   acl_save_exec_prefix="$exec_prefix"
10134   exec_prefix="$acl_final_exec_prefix"
10135   eval x=\"$x\"
10136   exec_prefix="$acl_save_exec_prefix"
10137   prefix="$acl_save_prefix"
10138
10139       if test "X$x" = "X$element"; then
10140         haveit=yes
10141         break
10142       fi
10143     done
10144     if test -z "$haveit"; then
10145       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10146     fi
10147   done
10148
10149
10150   echo "$as_me:$LINENO: checking for iconv" >&5
10151 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10152 if test "${am_cv_func_iconv+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155
10156     am_cv_func_iconv="no, consider installing GNU libiconv"
10157     am_cv_lib_iconv=no
10158     if test x$gcc_no_link = xyes; then
10159   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10161    { (exit 1); exit 1; }; }
10162 fi
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169 #include <stdlib.h>
10170 #include <iconv.h>
10171 int
10172 main ()
10173 {
10174 iconv_t cd = iconv_open("","");
10175        iconv(cd,NULL,NULL,NULL,NULL);
10176        iconv_close(cd);
10177   ;
10178   return 0;
10179 }
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183   (eval $ac_link) 2>conftest.er1
10184   ac_status=$?
10185   grep -v '^ *+' conftest.er1 >conftest.err
10186   rm -f conftest.er1
10187   cat conftest.err >&5
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } &&
10190          { ac_try='test -z "$ac_c_werror_flag"
10191                          || test ! -s conftest.err'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; } &&
10197          { ac_try='test -s conftest$ac_exeext'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   am_cv_func_iconv=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 fi
10209 rm -f conftest.err conftest.$ac_objext \
10210       conftest$ac_exeext conftest.$ac_ext
10211     if test "$am_cv_func_iconv" != yes; then
10212       am_save_LIBS="$LIBS"
10213       LIBS="$LIBS $LIBICONV"
10214       if test x$gcc_no_link = xyes; then
10215   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10217    { (exit 1); exit 1; }; }
10218 fi
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 #include <stdlib.h>
10226 #include <iconv.h>
10227 int
10228 main ()
10229 {
10230 iconv_t cd = iconv_open("","");
10231          iconv(cd,NULL,NULL,NULL,NULL);
10232          iconv_close(cd);
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239   (eval $ac_link) 2>conftest.er1
10240   ac_status=$?
10241   grep -v '^ *+' conftest.er1 >conftest.err
10242   rm -f conftest.er1
10243   cat conftest.err >&5
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -z "$ac_c_werror_flag"
10247                          || test ! -s conftest.err'
10248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249   (eval $ac_try) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255   (eval $ac_try) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; }; then
10259   am_cv_lib_iconv=yes
10260         am_cv_func_iconv=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 fi
10266 rm -f conftest.err conftest.$ac_objext \
10267       conftest$ac_exeext conftest.$ac_ext
10268       LIBS="$am_save_LIBS"
10269     fi
10270
10271 fi
10272 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10273 echo "${ECHO_T}$am_cv_func_iconv" >&6
10274   if test "$am_cv_func_iconv" = yes; then
10275
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_ICONV 1
10278 _ACEOF
10279
10280   fi
10281   if test "$am_cv_lib_iconv" = yes; then
10282     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10283 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10284     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10285 echo "${ECHO_T}$LIBICONV" >&6
10286   else
10287             CPPFLAGS="$am_save_CPPFLAGS"
10288     LIBICONV=
10289     LTLIBICONV=
10290   fi
10291
10292
10293
10294   if test "$am_cv_func_iconv" = yes; then
10295     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10296 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10297     if test "${am_cv_proto_iconv+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300
10301       cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h.  */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h.  */
10307
10308 #include <stdlib.h>
10309 #include <iconv.h>
10310 extern
10311 #ifdef __cplusplus
10312 "C"
10313 #endif
10314 #if defined(__STDC__) || defined(__cplusplus)
10315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10316 #else
10317 size_t iconv();
10318 #endif
10319
10320 int
10321 main ()
10322 {
10323
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330   (eval $ac_compile) 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } &&
10337          { ac_try='test -z "$ac_c_werror_flag"
10338                          || test ! -s conftest.err'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; } &&
10344          { ac_try='test -s conftest.$ac_objext'
10345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346   (eval $ac_try) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   am_cv_proto_iconv_arg1=""
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 am_cv_proto_iconv_arg1="const"
10356 fi
10357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10358       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);"
10359 fi
10360
10361     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10362     echo "$as_me:$LINENO: result: ${ac_t:-
10363          }$am_cv_proto_iconv" >&5
10364 echo "${ECHO_T}${ac_t:-
10365          }$am_cv_proto_iconv" >&6
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define ICONV_CONST $am_cv_proto_iconv_arg1
10369 _ACEOF
10370
10371   fi
10372
10373
10374     if test "x${GCC}" = xyes; then
10375
10376             WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
10377
10378
10379             STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
10380
10381
10382             ERROR_CFLAGS=
10383     if test "x${ENABLE_WERROR}" = xyes; then
10384        ERROR_CFLAGS='-Werror'
10385     fi
10386
10387   fi
10388
10389     if test "x${COMPILE_XMLJ}" = xyes; then
10390
10391   succeeded=no
10392
10393   if test -z "$PKG_CONFIG"; then
10394     # Extract the first word of "pkg-config", so it can be a program name with args.
10395 set dummy pkg-config; ac_word=$2
10396 echo "$as_me:$LINENO: checking for $ac_word" >&5
10397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10398 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   case $PKG_CONFIG in
10402   [\\/]* | ?:[\\/]*)
10403   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10404   ;;
10405   *)
10406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10408 do
10409   IFS=$as_save_IFS
10410   test -z "$as_dir" && as_dir=.
10411   for ac_exec_ext in '' $ac_executable_extensions; do
10412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415     break 2
10416   fi
10417 done
10418 done
10419
10420   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10421   ;;
10422 esac
10423 fi
10424 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10425
10426 if test -n "$PKG_CONFIG"; then
10427   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10428 echo "${ECHO_T}$PKG_CONFIG" >&6
10429 else
10430   echo "$as_me:$LINENO: result: no" >&5
10431 echo "${ECHO_T}no" >&6
10432 fi
10433
10434   fi
10435
10436   if test "$PKG_CONFIG" = "no" ; then
10437      echo "*** The pkg-config script could not be found. Make sure it is"
10438      echo "*** in your path, or set the PKG_CONFIG environment variable"
10439      echo "*** to the full path to pkg-config."
10440      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10441   else
10442      PKG_CONFIG_MIN_VERSION=0.9.0
10443      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10444         echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
10445 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
10446
10447         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
10448             echo "$as_me:$LINENO: result: yes" >&5
10449 echo "${ECHO_T}yes" >&6
10450             succeeded=yes
10451
10452             echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
10453 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
10454             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
10455             echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
10456 echo "${ECHO_T}$XML_CFLAGS" >&6
10457
10458             echo "$as_me:$LINENO: checking XML_LIBS" >&5
10459 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
10460             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
10461             echo "$as_me:$LINENO: result: $XML_LIBS" >&5
10462 echo "${ECHO_T}$XML_LIBS" >&6
10463         else
10464             XML_CFLAGS=""
10465             XML_LIBS=""
10466             ## If we have a custom action on failure, don't print errors, but
10467             ## do set a variable so people can do so.
10468             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
10469             echo $XML_PKG_ERRORS
10470         fi
10471
10472
10473
10474      else
10475         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10476         echo "*** See http://www.freedesktop.org/software/pkgconfig"
10477      fi
10478   fi
10479
10480   if test $succeeded = yes; then
10481      :
10482   else
10483      { { 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
10484 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;}
10485    { (exit 1); exit 1; }; }
10486   fi
10487
10488
10489   succeeded=no
10490
10491   if test -z "$PKG_CONFIG"; then
10492     # Extract the first word of "pkg-config", so it can be a program name with args.
10493 set dummy pkg-config; ac_word=$2
10494 echo "$as_me:$LINENO: checking for $ac_word" >&5
10495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10497   echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499   case $PKG_CONFIG in
10500   [\\/]* | ?:[\\/]*)
10501   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10502   ;;
10503   *)
10504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509   for ac_exec_ext in '' $ac_executable_extensions; do
10510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516 done
10517
10518   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10519   ;;
10520 esac
10521 fi
10522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10523
10524 if test -n "$PKG_CONFIG"; then
10525   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10526 echo "${ECHO_T}$PKG_CONFIG" >&6
10527 else
10528   echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6
10530 fi
10531
10532   fi
10533
10534   if test "$PKG_CONFIG" = "no" ; then
10535      echo "*** The pkg-config script could not be found. Make sure it is"
10536      echo "*** in your path, or set the PKG_CONFIG environment variable"
10537      echo "*** to the full path to pkg-config."
10538      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10539   else
10540      PKG_CONFIG_MIN_VERSION=0.9.0
10541      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10542         echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
10543 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
10544
10545         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
10546             echo "$as_me:$LINENO: result: yes" >&5
10547 echo "${ECHO_T}yes" >&6
10548             succeeded=yes
10549
10550             echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
10551 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
10552             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
10553             echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
10554 echo "${ECHO_T}$XSLT_CFLAGS" >&6
10555
10556             echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
10557 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
10558             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
10559             echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
10560 echo "${ECHO_T}$XSLT_LIBS" >&6
10561         else
10562             XSLT_CFLAGS=""
10563             XSLT_LIBS=""
10564             ## If we have a custom action on failure, don't print errors, but
10565             ## do set a variable so people can do so.
10566             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
10567             echo $XSLT_PKG_ERRORS
10568         fi
10569
10570
10571
10572      else
10573         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10574         echo "*** See http://www.freedesktop.org/software/pkgconfig"
10575      fi
10576   fi
10577
10578   if test $succeeded = yes; then
10579      :
10580   else
10581      { { 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
10582 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;}
10583    { (exit 1); exit 1; }; }
10584   fi
10585
10586
10587
10588
10589
10590   fi
10591
10592     if test "x${COMPILE_GTK_PEER}" = xyes; then
10593     echo "$as_me:$LINENO: checking for X" >&5
10594 echo $ECHO_N "checking for X... $ECHO_C" >&6
10595
10596
10597 # Check whether --with-x or --without-x was given.
10598 if test "${with_x+set}" = set; then
10599   withval="$with_x"
10600
10601 fi;
10602 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10603 if test "x$with_x" = xno; then
10604   # The user explicitly disabled X.
10605   have_x=disabled
10606 else
10607   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10608     # Both variables are already set.
10609     have_x=yes
10610   else
10611     if test "${ac_cv_have_x+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   # One or both of the vars are not set, and there is no cached value.
10615 ac_x_includes=no ac_x_libraries=no
10616 rm -fr conftest.dir
10617 if mkdir conftest.dir; then
10618   cd conftest.dir
10619   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10620   cat >Imakefile <<'_ACEOF'
10621 acfindx:
10622         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10623 _ACEOF
10624   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10625     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10626     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10627     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10628     for ac_extension in a so sl; do
10629       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10630          test -f $ac_im_libdir/libX11.$ac_extension; then
10631         ac_im_usrlibdir=$ac_im_libdir; break
10632       fi
10633     done
10634     # Screen out bogus values from the imake configuration.  They are
10635     # bogus both because they are the default anyway, and because
10636     # using them would break gcc on systems where it needs fixed includes.
10637     case $ac_im_incroot in
10638         /usr/include) ;;
10639         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10640     esac
10641     case $ac_im_usrlibdir in
10642         /usr/lib | /lib) ;;
10643         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10644     esac
10645   fi
10646   cd ..
10647   rm -fr conftest.dir
10648 fi
10649
10650 # Standard set of common directories for X headers.
10651 # Check X11 before X11Rn because it is often a symlink to the current release.
10652 ac_x_header_dirs='
10653 /usr/X11/include
10654 /usr/X11R6/include
10655 /usr/X11R5/include
10656 /usr/X11R4/include
10657
10658 /usr/include/X11
10659 /usr/include/X11R6
10660 /usr/include/X11R5
10661 /usr/include/X11R4
10662
10663 /usr/local/X11/include
10664 /usr/local/X11R6/include
10665 /usr/local/X11R5/include
10666 /usr/local/X11R4/include
10667
10668 /usr/local/include/X11
10669 /usr/local/include/X11R6
10670 /usr/local/include/X11R5
10671 /usr/local/include/X11R4
10672
10673 /usr/X386/include
10674 /usr/x386/include
10675 /usr/XFree86/include/X11
10676
10677 /usr/include
10678 /usr/local/include
10679 /usr/unsupported/include
10680 /usr/athena/include
10681 /usr/local/x11r5/include
10682 /usr/lpp/Xamples/include
10683
10684 /usr/openwin/include
10685 /usr/openwin/share/include'
10686
10687 if test "$ac_x_includes" = no; then
10688   # Guess where to find include files, by looking for Xlib.h.
10689   # First, try using that file with no special directory specified.
10690   cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 #include <X11/Xlib.h>
10697 _ACEOF
10698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } >/dev/null; then
10706   if test -s conftest.err; then
10707     ac_cpp_err=$ac_c_preproc_warn_flag
10708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10709   else
10710     ac_cpp_err=
10711   fi
10712 else
10713   ac_cpp_err=yes
10714 fi
10715 if test -z "$ac_cpp_err"; then
10716   # We can compile using X headers with no special include directory.
10717 ac_x_includes=
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722   for ac_dir in $ac_x_header_dirs; do
10723   if test -r "$ac_dir/X11/Xlib.h"; then
10724     ac_x_includes=$ac_dir
10725     break
10726   fi
10727 done
10728 fi
10729 rm -f conftest.err conftest.$ac_ext
10730 fi # $ac_x_includes = no
10731
10732 if test "$ac_x_libraries" = no; then
10733   # Check for the libraries.
10734   # See if we find them without any special options.
10735   # Don't add to $LIBS permanently.
10736   ac_save_LIBS=$LIBS
10737   LIBS="-lXt $LIBS"
10738   if test x$gcc_no_link = xyes; then
10739   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10741    { (exit 1); exit 1; }; }
10742 fi
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h.  */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h.  */
10749 #include <X11/Xlib.h>
10750 int
10751 main ()
10752 {
10753 XrmInitialize ()
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760   (eval $ac_link) 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } &&
10767          { ac_try='test -z "$ac_c_werror_flag"
10768                          || test ! -s conftest.err'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; } &&
10774          { ac_try='test -s conftest$ac_exeext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   LIBS=$ac_save_LIBS
10781 # We can link X programs with no special library path.
10782 ac_x_libraries=
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 LIBS=$ac_save_LIBS
10788 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10789 do
10790   # Don't even attempt the hair of trying to link an X program!
10791   for ac_extension in a so sl; do
10792     if test -r $ac_dir/libXt.$ac_extension; then
10793       ac_x_libraries=$ac_dir
10794       break 2
10795     fi
10796   done
10797 done
10798 fi
10799 rm -f conftest.err conftest.$ac_objext \
10800       conftest$ac_exeext conftest.$ac_ext
10801 fi # $ac_x_libraries = no
10802
10803 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10804   # Didn't find X anywhere.  Cache the known absence of X.
10805   ac_cv_have_x="have_x=no"
10806 else
10807   # Record where we found X for the cache.
10808   ac_cv_have_x="have_x=yes \
10809                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10810 fi
10811 fi
10812
10813   fi
10814   eval "$ac_cv_have_x"
10815 fi # $with_x != no
10816
10817 if test "$have_x" != yes; then
10818   echo "$as_me:$LINENO: result: $have_x" >&5
10819 echo "${ECHO_T}$have_x" >&6
10820   no_x=yes
10821 else
10822   # If each of the values was on the command line, it overrides each guess.
10823   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10824   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10825   # Update the cache value to reflect the command line values.
10826   ac_cv_have_x="have_x=yes \
10827                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10828   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10829 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10830 fi
10831
10832 if test "$no_x" = yes; then
10833   # Not all programs may use this symbol, but it does not hurt to define it.
10834
10835 cat >>confdefs.h <<\_ACEOF
10836 #define X_DISPLAY_MISSING 1
10837 _ACEOF
10838
10839   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10840 else
10841   if test -n "$x_includes"; then
10842     X_CFLAGS="$X_CFLAGS -I$x_includes"
10843   fi
10844
10845   # It would also be nice to do this for all -L options, not just this one.
10846   if test -n "$x_libraries"; then
10847     X_LIBS="$X_LIBS -L$x_libraries"
10848     # For Solaris; some versions of Sun CC require a space after -R and
10849     # others require no space.  Words are not sufficient . . . .
10850     case `(uname -sr) 2>/dev/null` in
10851     "SunOS 5"*)
10852       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10853 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10854       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10855       if test x$gcc_no_link = xyes; then
10856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10858    { (exit 1); exit 1; }; }
10859 fi
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866
10867 int
10868 main ()
10869 {
10870
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877   (eval $ac_link) 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag"
10885                          || test ! -s conftest.err'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10897   ac_R_nospace=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 ac_R_nospace=no
10903 fi
10904 rm -f conftest.err conftest.$ac_objext \
10905       conftest$ac_exeext conftest.$ac_ext
10906       if test $ac_R_nospace = yes; then
10907         echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6
10909         X_LIBS="$X_LIBS -R$x_libraries"
10910       else
10911         LIBS="$ac_xsave_LIBS -R $x_libraries"
10912         if test x$gcc_no_link = xyes; then
10913   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10915    { (exit 1); exit 1; }; }
10916 fi
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923
10924 int
10925 main ()
10926 {
10927
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934   (eval $ac_link) 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag"
10942                          || test ! -s conftest.err'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_R_space=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_R_space=no
10960 fi
10961 rm -f conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963         if test $ac_R_space = yes; then
10964           echo "$as_me:$LINENO: result: yes" >&5
10965 echo "${ECHO_T}yes" >&6
10966           X_LIBS="$X_LIBS -R $x_libraries"
10967         else
10968           echo "$as_me:$LINENO: result: neither works" >&5
10969 echo "${ECHO_T}neither works" >&6
10970         fi
10971       fi
10972       LIBS=$ac_xsave_LIBS
10973     esac
10974   fi
10975
10976   # Check for system-dependent libraries X programs must link with.
10977   # Do this before checking for the system-independent R6 libraries
10978   # (-lICE), since we may need -lsocket or whatever for X linking.
10979
10980   if test "$ISC" = yes; then
10981     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10982   else
10983     # Martyn Johnson says this is needed for Ultrix, if the X
10984     # libraries were built with DECnet support.  And Karl Berry says
10985     # the Alpha needs dnet_stub (dnet does not exist).
10986     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10987     if test x$gcc_no_link = xyes; then
10988   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10990    { (exit 1); exit 1; }; }
10991 fi
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998
10999 /* Override any gcc2 internal prototype to avoid an error.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 /* We use char because int might match the return type of a gcc2
11004    builtin and then its argument prototype would still apply.  */
11005 char XOpenDisplay ();
11006 int
11007 main ()
11008 {
11009 XOpenDisplay ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016   (eval $ac_link) 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
11020   cat conftest.err >&5
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -z "$ac_c_werror_flag"
11024                          || test ! -s conftest.err'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; } &&
11030          { ac_try='test -s conftest$ac_exeext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   :
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11042 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11043 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-ldnet  $LIBS"
11048 if test x$gcc_no_link = xyes; then
11049   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11051    { (exit 1); exit 1; }; }
11052 fi
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 /* Override any gcc2 internal prototype to avoid an error.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 /* We use char because int might match the return type of a gcc2
11065    builtin and then its argument prototype would still apply.  */
11066 char dnet_ntoa ();
11067 int
11068 main ()
11069 {
11070 dnet_ntoa ();
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077   (eval $ac_link) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag"
11085                          || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_lib_dnet_dnet_ntoa=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_lib_dnet_dnet_ntoa=no
11103 fi
11104 rm -f conftest.err conftest.$ac_objext \
11105       conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11109 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11110 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11111   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11112 fi
11113
11114     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11115       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11116 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11117 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   ac_check_lib_save_LIBS=$LIBS
11121 LIBS="-ldnet_stub  $LIBS"
11122 if test x$gcc_no_link = xyes; then
11123   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11125    { (exit 1); exit 1; }; }
11126 fi
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133
11134 /* Override any gcc2 internal prototype to avoid an error.  */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139    builtin and then its argument prototype would still apply.  */
11140 char dnet_ntoa ();
11141 int
11142 main ()
11143 {
11144 dnet_ntoa ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151   (eval $ac_link) 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } &&
11158          { ac_try='test -z "$ac_c_werror_flag"
11159                          || test ! -s conftest.err'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; } &&
11165          { ac_try='test -s conftest$ac_exeext'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; }; then
11171   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ac_cv_lib_dnet_stub_dnet_ntoa=no
11177 fi
11178 rm -f conftest.err conftest.$ac_objext \
11179       conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
11184 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11185   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11186 fi
11187
11188     fi
11189 fi
11190 rm -f conftest.err conftest.$ac_objext \
11191       conftest$ac_exeext conftest.$ac_ext
11192     LIBS="$ac_xsave_LIBS"
11193
11194     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11195     # to get the SysV transport functions.
11196     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11197     # needs -lnsl.
11198     # The nsl library prevents programs from opening the X display
11199     # on Irix 5.2, according to T.E. Dickey.
11200     # The functions gethostbyname, getservbyname, and inet_addr are
11201     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11202     echo "$as_me:$LINENO: checking for gethostbyname" >&5
11203 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11204 if test "${ac_cv_func_gethostbyname+set}" = set; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   if test x$gcc_no_link = xyes; then
11208   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11210    { (exit 1); exit 1; }; }
11211 fi
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11220 #define gethostbyname innocuous_gethostbyname
11221
11222 /* System header to define __stub macros and hopefully few prototypes,
11223     which can conflict with char gethostbyname (); below.
11224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11225     <limits.h> exists even on freestanding compilers.  */
11226
11227 #ifdef __STDC__
11228 # include <limits.h>
11229 #else
11230 # include <assert.h>
11231 #endif
11232
11233 #undef gethostbyname
11234
11235 /* Override any gcc2 internal prototype to avoid an error.  */
11236 #ifdef __cplusplus
11237 extern "C"
11238 {
11239 #endif
11240 /* We use char because int might match the return type of a gcc2
11241    builtin and then its argument prototype would still apply.  */
11242 char gethostbyname ();
11243 /* The GNU C library defines this for functions which it implements
11244     to always fail with ENOSYS.  Some functions are actually named
11245     something starting with __ and the normal name is an alias.  */
11246 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11247 choke me
11248 #else
11249 char (*f) () = gethostbyname;
11250 #endif
11251 #ifdef __cplusplus
11252 }
11253 #endif
11254
11255 int
11256 main ()
11257 {
11258 return f != gethostbyname;
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext conftest$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265   (eval $ac_link) 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag"
11273                          || test ! -s conftest.err'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest$ac_exeext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_func_gethostbyname=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_cv_func_gethostbyname=no
11291 fi
11292 rm -f conftest.err conftest.$ac_objext \
11293       conftest$ac_exeext conftest.$ac_ext
11294 fi
11295 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11296 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11297
11298     if test $ac_cv_func_gethostbyname = no; then
11299       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11300 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
11301 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-lnsl  $LIBS"
11306 if test x$gcc_no_link = xyes; then
11307   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11309    { (exit 1); exit 1; }; }
11310 fi
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317
11318 /* Override any gcc2 internal prototype to avoid an error.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 /* We use char because int might match the return type of a gcc2
11323    builtin and then its argument prototype would still apply.  */
11324 char gethostbyname ();
11325 int
11326 main ()
11327 {
11328 gethostbyname ();
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335   (eval $ac_link) 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -z "$ac_c_werror_flag"
11343                          || test ! -s conftest.err'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; } &&
11349          { ac_try='test -s conftest$ac_exeext'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_cv_lib_nsl_gethostbyname=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 ac_cv_lib_nsl_gethostbyname=no
11361 fi
11362 rm -f conftest.err conftest.$ac_objext \
11363       conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11365 fi
11366 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11367 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
11368 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11369   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11370 fi
11371
11372       if test $ac_cv_lib_nsl_gethostbyname = no; then
11373         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11374 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
11375 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-lbsd  $LIBS"
11380 if test x$gcc_no_link = xyes; then
11381   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11383    { (exit 1); exit 1; }; }
11384 fi
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391
11392 /* Override any gcc2 internal prototype to avoid an error.  */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 /* We use char because int might match the return type of a gcc2
11397    builtin and then its argument prototype would still apply.  */
11398 char gethostbyname ();
11399 int
11400 main ()
11401 {
11402 gethostbyname ();
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409   (eval $ac_link) 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -z "$ac_c_werror_flag"
11417                          || test ! -s conftest.err'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; } &&
11423          { ac_try='test -s conftest$ac_exeext'
11424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425   (eval $ac_try) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; }; then
11429   ac_cv_lib_bsd_gethostbyname=yes
11430 else
11431   echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 ac_cv_lib_bsd_gethostbyname=no
11435 fi
11436 rm -f conftest.err conftest.$ac_objext \
11437       conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11439 fi
11440 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
11441 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
11442 if test $ac_cv_lib_bsd_gethostbyname = yes; then
11443   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11444 fi
11445
11446       fi
11447     fi
11448
11449     # lieder@skyler.mavd.honeywell.com says without -lsocket,
11450     # socket/setsockopt and other routines are undefined under SCO ODT
11451     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11452     # on later versions), says Simon Leinen: it contains gethostby*
11453     # variants that don't use the name server (or something).  -lsocket
11454     # must be given before -lnsl if both are needed.  We assume that
11455     # if connect needs -lnsl, so does gethostbyname.
11456     echo "$as_me:$LINENO: checking for connect" >&5
11457 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11458 if test "${ac_cv_func_connect+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   if test x$gcc_no_link = xyes; then
11462   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11464    { (exit 1); exit 1; }; }
11465 fi
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11474 #define connect innocuous_connect
11475
11476 /* System header to define __stub macros and hopefully few prototypes,
11477     which can conflict with char connect (); below.
11478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479     <limits.h> exists even on freestanding compilers.  */
11480
11481 #ifdef __STDC__
11482 # include <limits.h>
11483 #else
11484 # include <assert.h>
11485 #endif
11486
11487 #undef connect
11488
11489 /* Override any gcc2 internal prototype to avoid an error.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 {
11493 #endif
11494 /* We use char because int might match the return type of a gcc2
11495    builtin and then its argument prototype would still apply.  */
11496 char connect ();
11497 /* The GNU C library defines this for functions which it implements
11498     to always fail with ENOSYS.  Some functions are actually named
11499     something starting with __ and the normal name is an alias.  */
11500 #if defined (__stub_connect) || defined (__stub___connect)
11501 choke me
11502 #else
11503 char (*f) () = connect;
11504 #endif
11505 #ifdef __cplusplus
11506 }
11507 #endif
11508
11509 int
11510 main ()
11511 {
11512 return f != connect;
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 rm -f conftest.$ac_objext conftest$ac_exeext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11519   (eval $ac_link) 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } &&
11526          { ac_try='test -z "$ac_c_werror_flag"
11527                          || test ! -s conftest.err'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; } &&
11533          { ac_try='test -s conftest$ac_exeext'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   ac_cv_func_connect=yes
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_cv_func_connect=no
11545 fi
11546 rm -f conftest.err conftest.$ac_objext \
11547       conftest$ac_exeext conftest.$ac_ext
11548 fi
11549 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11550 echo "${ECHO_T}$ac_cv_func_connect" >&6
11551
11552     if test $ac_cv_func_connect = no; then
11553       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11554 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11555 if test "${ac_cv_lib_socket_connect+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11560 if test x$gcc_no_link = xyes; then
11561   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11563    { (exit 1); exit 1; }; }
11564 fi
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571
11572 /* Override any gcc2 internal prototype to avoid an error.  */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 /* We use char because int might match the return type of a gcc2
11577    builtin and then its argument prototype would still apply.  */
11578 char connect ();
11579 int
11580 main ()
11581 {
11582 connect ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589   (eval $ac_link) 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_c_werror_flag"
11597                          || test ! -s conftest.err'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   ac_cv_lib_socket_connect=yes
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ac_cv_lib_socket_connect=no
11615 fi
11616 rm -f conftest.err conftest.$ac_objext \
11617       conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11619 fi
11620 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11621 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11622 if test $ac_cv_lib_socket_connect = yes; then
11623   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11624 fi
11625
11626     fi
11627
11628     # Guillermo Gomez says -lposix is necessary on A/UX.
11629     echo "$as_me:$LINENO: checking for remove" >&5
11630 echo $ECHO_N "checking for remove... $ECHO_C" >&6
11631 if test "${ac_cv_func_remove+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   if test x$gcc_no_link = xyes; then
11635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11637    { (exit 1); exit 1; }; }
11638 fi
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
11646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11647 #define remove innocuous_remove
11648
11649 /* System header to define __stub macros and hopefully few prototypes,
11650     which can conflict with char remove (); below.
11651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11652     <limits.h> exists even on freestanding compilers.  */
11653
11654 #ifdef __STDC__
11655 # include <limits.h>
11656 #else
11657 # include <assert.h>
11658 #endif
11659
11660 #undef remove
11661
11662 /* Override any gcc2 internal prototype to avoid an error.  */
11663 #ifdef __cplusplus
11664 extern "C"
11665 {
11666 #endif
11667 /* We use char because int might match the return type of a gcc2
11668    builtin and then its argument prototype would still apply.  */
11669 char remove ();
11670 /* The GNU C library defines this for functions which it implements
11671     to always fail with ENOSYS.  Some functions are actually named
11672     something starting with __ and the normal name is an alias.  */
11673 #if defined (__stub_remove) || defined (__stub___remove)
11674 choke me
11675 #else
11676 char (*f) () = remove;
11677 #endif
11678 #ifdef __cplusplus
11679 }
11680 #endif
11681
11682 int
11683 main ()
11684 {
11685 return f != remove;
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692   (eval $ac_link) 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } &&
11699          { ac_try='test -z "$ac_c_werror_flag"
11700                          || test ! -s conftest.err'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; } &&
11706          { ac_try='test -s conftest$ac_exeext'
11707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708   (eval $ac_try) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); }; }; then
11712   ac_cv_func_remove=yes
11713 else
11714   echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_cv_func_remove=no
11718 fi
11719 rm -f conftest.err conftest.$ac_objext \
11720       conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
11723 echo "${ECHO_T}$ac_cv_func_remove" >&6
11724
11725     if test $ac_cv_func_remove = no; then
11726       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
11727 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
11728 if test "${ac_cv_lib_posix_remove+set}" = set; then
11729   echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731   ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-lposix  $LIBS"
11733 if test x$gcc_no_link = xyes; then
11734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11736    { (exit 1); exit 1; }; }
11737 fi
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744
11745 /* Override any gcc2 internal prototype to avoid an error.  */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 /* We use char because int might match the return type of a gcc2
11750    builtin and then its argument prototype would still apply.  */
11751 char remove ();
11752 int
11753 main ()
11754 {
11755 remove ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11762   (eval $ac_link) 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -z "$ac_c_werror_flag"
11770                          || test ! -s conftest.err'
11771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772   (eval $ac_try) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; } &&
11776          { ac_try='test -s conftest$ac_exeext'
11777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778   (eval $ac_try) 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; }; then
11782   ac_cv_lib_posix_remove=yes
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 ac_cv_lib_posix_remove=no
11788 fi
11789 rm -f conftest.err conftest.$ac_objext \
11790       conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11792 fi
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11794 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11795 if test $ac_cv_lib_posix_remove = yes; then
11796   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11797 fi
11798
11799     fi
11800
11801     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11802     echo "$as_me:$LINENO: checking for shmat" >&5
11803 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11804 if test "${ac_cv_func_shmat+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   if test x$gcc_no_link = xyes; then
11808   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11810    { (exit 1); exit 1; }; }
11811 fi
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11820 #define shmat innocuous_shmat
11821
11822 /* System header to define __stub macros and hopefully few prototypes,
11823     which can conflict with char shmat (); below.
11824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825     <limits.h> exists even on freestanding compilers.  */
11826
11827 #ifdef __STDC__
11828 # include <limits.h>
11829 #else
11830 # include <assert.h>
11831 #endif
11832
11833 #undef shmat
11834
11835 /* Override any gcc2 internal prototype to avoid an error.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 {
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841    builtin and then its argument prototype would still apply.  */
11842 char shmat ();
11843 /* The GNU C library defines this for functions which it implements
11844     to always fail with ENOSYS.  Some functions are actually named
11845     something starting with __ and the normal name is an alias.  */
11846 #if defined (__stub_shmat) || defined (__stub___shmat)
11847 choke me
11848 #else
11849 char (*f) () = shmat;
11850 #endif
11851 #ifdef __cplusplus
11852 }
11853 #endif
11854
11855 int
11856 main ()
11857 {
11858 return f != shmat;
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865   (eval $ac_link) 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag"
11873                          || test ! -s conftest.err'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   ac_cv_func_shmat=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 ac_cv_func_shmat=no
11891 fi
11892 rm -f conftest.err conftest.$ac_objext \
11893       conftest$ac_exeext conftest.$ac_ext
11894 fi
11895 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11896 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11897
11898     if test $ac_cv_func_shmat = no; then
11899       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11900 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11901 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lipc  $LIBS"
11906 if test x$gcc_no_link = xyes; then
11907   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11909    { (exit 1); exit 1; }; }
11910 fi
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917
11918 /* Override any gcc2 internal prototype to avoid an error.  */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923    builtin and then its argument prototype would still apply.  */
11924 char shmat ();
11925 int
11926 main ()
11927 {
11928 shmat ();
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935   (eval $ac_link) 2>conftest.er1
11936   ac_status=$?
11937   grep -v '^ *+' conftest.er1 >conftest.err
11938   rm -f conftest.er1
11939   cat conftest.err >&5
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } &&
11942          { ac_try='test -z "$ac_c_werror_flag"
11943                          || test ! -s conftest.err'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; } &&
11949          { ac_try='test -s conftest$ac_exeext'
11950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951   (eval $ac_try) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; }; then
11955   ac_cv_lib_ipc_shmat=yes
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_cv_lib_ipc_shmat=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext \
11963       conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11967 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11968 if test $ac_cv_lib_ipc_shmat = yes; then
11969   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11970 fi
11971
11972     fi
11973   fi
11974
11975   # Check for libraries that X11R6 Xt/Xaw programs need.
11976   ac_save_LDFLAGS=$LDFLAGS
11977   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11978   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11979   # check for ICE first), but we must link in the order -lSM -lICE or
11980   # we get undefined symbols.  So assume we have SM if we have ICE.
11981   # These have to be linked with before -lX11, unlike the other
11982   # libraries we check for below, so use a different variable.
11983   # John Interrante, Karl Berry
11984   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11985 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11986 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11987   echo $ECHO_N "(cached) $ECHO_C" >&6
11988 else
11989   ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11991 if test x$gcc_no_link = xyes; then
11992   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11994    { (exit 1); exit 1; }; }
11995 fi
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002
12003 /* Override any gcc2 internal prototype to avoid an error.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 /* We use char because int might match the return type of a gcc2
12008    builtin and then its argument prototype would still apply.  */
12009 char IceConnectionNumber ();
12010 int
12011 main ()
12012 {
12013 IceConnectionNumber ();
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020   (eval $ac_link) 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag"
12028                          || test ! -s conftest.err'
12029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030   (eval $ac_try) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; } &&
12034          { ac_try='test -s conftest$ac_exeext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   ac_cv_lib_ICE_IceConnectionNumber=yes
12041 else
12042   echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 ac_cv_lib_ICE_IceConnectionNumber=no
12046 fi
12047 rm -f conftest.err conftest.$ac_objext \
12048       conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12052 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12053 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12054   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12055 fi
12056
12057   LDFLAGS=$ac_save_LDFLAGS
12058
12059 fi
12060
12061     if test "$no_x" = yes; then
12062         { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
12063 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
12064    { (exit 1); exit 1; }; }
12065     fi
12066         echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
12067 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
12068 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
12069   echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lXtst ${X_LIBS} $LIBS"
12073 if test x$gcc_no_link = xyes; then
12074   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12076    { (exit 1); exit 1; }; }
12077 fi
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084
12085 /* Override any gcc2 internal prototype to avoid an error.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090    builtin and then its argument prototype would still apply.  */
12091 char XTestQueryExtension ();
12092 int
12093 main ()
12094 {
12095 XTestQueryExtension ();
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102   (eval $ac_link) 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag"
12110                          || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest$ac_exeext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_cv_lib_Xtst_XTestQueryExtension=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_lib_Xtst_XTestQueryExtension=no
12128 fi
12129 rm -f conftest.err conftest.$ac_objext \
12130       conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12132 fi
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
12134 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
12135 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
12136   XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
12137 else
12138   { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
12139 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
12140    { (exit 1); exit 1; }; }
12141 fi
12142
12143
12144
12145   succeeded=no
12146
12147   if test -z "$PKG_CONFIG"; then
12148     # Extract the first word of "pkg-config", so it can be a program name with args.
12149 set dummy pkg-config; ac_word=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   case $PKG_CONFIG in
12156   [\\/]* | ?:[\\/]*)
12157   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12158   ;;
12159   *)
12160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163   IFS=$as_save_IFS
12164   test -z "$as_dir" && as_dir=.
12165   for ac_exec_ext in '' $ac_executable_extensions; do
12166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12169     break 2
12170   fi
12171 done
12172 done
12173
12174   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12175   ;;
12176 esac
12177 fi
12178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12179
12180 if test -n "$PKG_CONFIG"; then
12181   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12182 echo "${ECHO_T}$PKG_CONFIG" >&6
12183 else
12184   echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12186 fi
12187
12188   fi
12189
12190   if test "$PKG_CONFIG" = "no" ; then
12191      echo "*** The pkg-config script could not be found. Make sure it is"
12192      echo "*** in your path, or set the PKG_CONFIG environment variable"
12193      echo "*** to the full path to pkg-config."
12194      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12195   else
12196      PKG_CONFIG_MIN_VERSION=0.9.0
12197      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12198         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
12199 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
12200
12201         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
12202             echo "$as_me:$LINENO: result: yes" >&5
12203 echo "${ECHO_T}yes" >&6
12204             succeeded=yes
12205
12206             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12207 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12208             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12209             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12210 echo "${ECHO_T}$GTK_CFLAGS" >&6
12211
12212             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12213 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12214             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12215             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12216 echo "${ECHO_T}$GTK_LIBS" >&6
12217         else
12218             GTK_CFLAGS=""
12219             GTK_LIBS=""
12220             ## If we have a custom action on failure, don't print errors, but
12221             ## do set a variable so people can do so.
12222             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
12223             echo $GTK_PKG_ERRORS
12224         fi
12225
12226
12227
12228      else
12229         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12231      fi
12232   fi
12233
12234   if test $succeeded = yes; then
12235      :
12236   else
12237      { { 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
12238 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;}
12239    { (exit 1); exit 1; }; }
12240   fi
12241
12242
12243   succeeded=no
12244
12245   if test -z "$PKG_CONFIG"; then
12246     # Extract the first word of "pkg-config", so it can be a program name with args.
12247 set dummy pkg-config; ac_word=$2
12248 echo "$as_me:$LINENO: checking for $ac_word" >&5
12249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12250 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   case $PKG_CONFIG in
12254   [\\/]* | ?:[\\/]*)
12255   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12256   ;;
12257   *)
12258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12260 do
12261   IFS=$as_save_IFS
12262   test -z "$as_dir" && as_dir=.
12263   for ac_exec_ext in '' $ac_executable_extensions; do
12264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12267     break 2
12268   fi
12269 done
12270 done
12271
12272   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12273   ;;
12274 esac
12275 fi
12276 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12277
12278 if test -n "$PKG_CONFIG"; then
12279   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12280 echo "${ECHO_T}$PKG_CONFIG" >&6
12281 else
12282   echo "$as_me:$LINENO: result: no" >&5
12283 echo "${ECHO_T}no" >&6
12284 fi
12285
12286   fi
12287
12288   if test "$PKG_CONFIG" = "no" ; then
12289      echo "*** The pkg-config script could not be found. Make sure it is"
12290      echo "*** in your path, or set the PKG_CONFIG environment variable"
12291      echo "*** to the full path to pkg-config."
12292      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12293   else
12294      PKG_CONFIG_MIN_VERSION=0.9.0
12295      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12296         echo "$as_me:$LINENO: checking for freetype2" >&5
12297 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12298
12299         if $PKG_CONFIG --exists "freetype2" ; then
12300             echo "$as_me:$LINENO: result: yes" >&5
12301 echo "${ECHO_T}yes" >&6
12302             succeeded=yes
12303
12304             echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12305 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
12306             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12307             echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12308 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
12309
12310             echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12311 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
12312             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
12313             echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12314 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
12315         else
12316             FREETYPE2_CFLAGS=""
12317             FREETYPE2_LIBS=""
12318             ## If we have a custom action on failure, don't print errors, but
12319             ## do set a variable so people can do so.
12320             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12321             echo $FREETYPE2_PKG_ERRORS
12322         fi
12323
12324
12325
12326      else
12327         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12328         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12329      fi
12330   fi
12331
12332   if test $succeeded = yes; then
12333      :
12334   else
12335      { { 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
12336 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;}
12337    { (exit 1); exit 1; }; }
12338   fi
12339
12340
12341   succeeded=no
12342
12343   if test -z "$PKG_CONFIG"; then
12344     # Extract the first word of "pkg-config", so it can be a program name with args.
12345 set dummy pkg-config; ac_word=$2
12346 echo "$as_me:$LINENO: checking for $ac_word" >&5
12347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12348 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   case $PKG_CONFIG in
12352   [\\/]* | ?:[\\/]*)
12353   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12354   ;;
12355   *)
12356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361   for ac_exec_ext in '' $ac_executable_extensions; do
12362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12363     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368 done
12369
12370   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12371   ;;
12372 esac
12373 fi
12374 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12375
12376 if test -n "$PKG_CONFIG"; then
12377   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12378 echo "${ECHO_T}$PKG_CONFIG" >&6
12379 else
12380   echo "$as_me:$LINENO: result: no" >&5
12381 echo "${ECHO_T}no" >&6
12382 fi
12383
12384   fi
12385
12386   if test "$PKG_CONFIG" = "no" ; then
12387      echo "*** The pkg-config script could not be found. Make sure it is"
12388      echo "*** in your path, or set the PKG_CONFIG environment variable"
12389      echo "*** to the full path to pkg-config."
12390      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12391   else
12392      PKG_CONFIG_MIN_VERSION=0.9.0
12393      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12394         echo "$as_me:$LINENO: checking for pangoft2" >&5
12395 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
12396
12397         if $PKG_CONFIG --exists "pangoft2" ; then
12398             echo "$as_me:$LINENO: result: yes" >&5
12399 echo "${ECHO_T}yes" >&6
12400             succeeded=yes
12401
12402             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
12403 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
12404             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12405             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
12406 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
12407
12408             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
12409 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
12410             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12411             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
12412 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
12413         else
12414             PANGOFT2_CFLAGS=""
12415             PANGOFT2_LIBS=""
12416             ## If we have a custom action on failure, don't print errors, but
12417             ## do set a variable so people can do so.
12418             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12419             echo $PANGOFT2_PKG_ERRORS
12420         fi
12421
12422
12423
12424      else
12425         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12426         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12427      fi
12428   fi
12429
12430   if test $succeeded = yes; then
12431      :
12432   else
12433      { { 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
12434 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;}
12435    { (exit 1); exit 1; }; }
12436   fi
12437
12438             echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
12439 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
12440 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lXrender ${X_LIBS} $LIBS"
12445 if test x$gcc_no_link = xyes; then
12446   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12448    { (exit 1); exit 1; }; }
12449 fi
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456
12457 /* Override any gcc2 internal prototype to avoid an error.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462    builtin and then its argument prototype would still apply.  */
12463 char XRenderQueryExtension ();
12464 int
12465 main ()
12466 {
12467 XRenderQueryExtension ();
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474   (eval $ac_link) 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -z "$ac_c_werror_flag"
12482                          || test ! -s conftest.err'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; } &&
12488          { ac_try='test -s conftest$ac_exeext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_cv_lib_Xrender_XRenderQueryExtension=yes
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 ac_cv_lib_Xrender_XRenderQueryExtension=no
12500 fi
12501 rm -f conftest.err conftest.$ac_objext \
12502       conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12504 fi
12505 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12506 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
12507 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
12508
12509 cat >>confdefs.h <<\_ACEOF
12510 #define HAVE_XRENDER 1
12511 _ACEOF
12512 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
12513 else
12514   true
12515 fi
12516
12517
12518             echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
12519 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
12520 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   ac_check_lib_save_LIBS=$LIBS
12524 LIBS="-lXrandr ${X_LIBS} $LIBS"
12525 if test x$gcc_no_link = xyes; then
12526   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12528    { (exit 1); exit 1; }; }
12529 fi
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h.  */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h.  */
12536
12537 /* Override any gcc2 internal prototype to avoid an error.  */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 /* We use char because int might match the return type of a gcc2
12542    builtin and then its argument prototype would still apply.  */
12543 char XRRQueryExtension ();
12544 int
12545 main ()
12546 {
12547 XRRQueryExtension ();
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext conftest$ac_exeext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554   (eval $ac_link) 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -z "$ac_c_werror_flag"
12562                          || test ! -s conftest.err'
12563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564   (eval $ac_try) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; } &&
12568          { ac_try='test -s conftest$ac_exeext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_lib_Xrandr_XRRQueryExtension=yes
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_cv_lib_Xrandr_XRRQueryExtension=no
12580 fi
12581 rm -f conftest.err conftest.$ac_objext \
12582       conftest$ac_exeext conftest.$ac_ext
12583 LIBS=$ac_check_lib_save_LIBS
12584 fi
12585 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
12586 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
12587 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
12588
12589 cat >>confdefs.h <<\_ACEOF
12590 #define HAVE_XRANDR 1
12591 _ACEOF
12592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
12593 else
12594   true
12595 fi
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605   fi
12606
12607     if  test "x${COMPILE_GCONF_PEER}" = xyes; then
12608
12609   succeeded=no
12610
12611   if test -z "$PKG_CONFIG"; then
12612     # Extract the first word of "pkg-config", so it can be a program name with args.
12613 set dummy pkg-config; ac_word=$2
12614 echo "$as_me:$LINENO: checking for $ac_word" >&5
12615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12616 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   case $PKG_CONFIG in
12620   [\\/]* | ?:[\\/]*)
12621   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12622   ;;
12623   *)
12624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627   IFS=$as_save_IFS
12628   test -z "$as_dir" && as_dir=.
12629   for ac_exec_ext in '' $ac_executable_extensions; do
12630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12633     break 2
12634   fi
12635 done
12636 done
12637
12638   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12639   ;;
12640 esac
12641 fi
12642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12643
12644 if test -n "$PKG_CONFIG"; then
12645   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12646 echo "${ECHO_T}$PKG_CONFIG" >&6
12647 else
12648   echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12650 fi
12651
12652   fi
12653
12654   if test "$PKG_CONFIG" = "no" ; then
12655      echo "*** The pkg-config script could not be found. Make sure it is"
12656      echo "*** in your path, or set the PKG_CONFIG environment variable"
12657      echo "*** to the full path to pkg-config."
12658      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12659   else
12660      PKG_CONFIG_MIN_VERSION=0.9.0
12661      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12662         echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
12663 echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
12664
12665         if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
12666             echo "$as_me:$LINENO: result: yes" >&5
12667 echo "${ECHO_T}yes" >&6
12668             succeeded=yes
12669
12670             echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12671 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
12672             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
12673             echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12674 echo "${ECHO_T}$GCONF_CFLAGS" >&6
12675
12676             echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12677 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
12678             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
12679             echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12680 echo "${ECHO_T}$GCONF_LIBS" >&6
12681         else
12682             GCONF_CFLAGS=""
12683             GCONF_LIBS=""
12684             ## If we have a custom action on failure, don't print errors, but
12685             ## do set a variable so people can do so.
12686             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
12687             echo $GCONF_PKG_ERRORS
12688         fi
12689
12690
12691
12692      else
12693         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12694         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12695      fi
12696   fi
12697
12698   if test $succeeded = yes; then
12699      :
12700   else
12701      { { 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
12702 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;}
12703    { (exit 1); exit 1; }; }
12704   fi
12705
12706
12707
12708
12709   succeeded=no
12710
12711   if test -z "$PKG_CONFIG"; then
12712     # Extract the first word of "pkg-config", so it can be a program name with args.
12713 set dummy pkg-config; ac_word=$2
12714 echo "$as_me:$LINENO: checking for $ac_word" >&5
12715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12716 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   case $PKG_CONFIG in
12720   [\\/]* | ?:[\\/]*)
12721   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12722   ;;
12723   *)
12724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729   for ac_exec_ext in '' $ac_executable_extensions; do
12730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736 done
12737
12738   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12739   ;;
12740 esac
12741 fi
12742 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12743
12744 if test -n "$PKG_CONFIG"; then
12745   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12746 echo "${ECHO_T}$PKG_CONFIG" >&6
12747 else
12748   echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6
12750 fi
12751
12752   fi
12753
12754   if test "$PKG_CONFIG" = "no" ; then
12755      echo "*** The pkg-config script could not be found. Make sure it is"
12756      echo "*** in your path, or set the PKG_CONFIG environment variable"
12757      echo "*** to the full path to pkg-config."
12758      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12759   else
12760      PKG_CONFIG_MIN_VERSION=0.9.0
12761      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12762         echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
12763 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
12764
12765         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
12766             echo "$as_me:$LINENO: result: yes" >&5
12767 echo "${ECHO_T}yes" >&6
12768             succeeded=yes
12769
12770             echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
12771 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
12772             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
12773             echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
12774 echo "${ECHO_T}$GDK_CFLAGS" >&6
12775
12776             echo "$as_me:$LINENO: checking GDK_LIBS" >&5
12777 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
12778             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
12779             echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
12780 echo "${ECHO_T}$GDK_LIBS" >&6
12781         else
12782             GDK_CFLAGS=""
12783             GDK_LIBS=""
12784             ## If we have a custom action on failure, don't print errors, but
12785             ## do set a variable so people can do so.
12786             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
12787             echo $GDK_PKG_ERRORS
12788         fi
12789
12790
12791
12792      else
12793         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12794         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12795      fi
12796   fi
12797
12798   if test $succeeded = yes; then
12799      :
12800   else
12801      { { 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
12802 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;}
12803    { (exit 1); exit 1; }; }
12804   fi
12805
12806
12807
12808                 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
12809     if test "$USE_GCONF_PREFS_PEER" = ""; then
12810         DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
12811     fi
12812   fi
12813
12814     if test "x${COMPILE_QT_PEER}" = xyes; then
12815
12816   succeeded=no
12817
12818   if test -z "$PKG_CONFIG"; then
12819     # Extract the first word of "pkg-config", so it can be a program name with args.
12820 set dummy pkg-config; ac_word=$2
12821 echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12823 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   case $PKG_CONFIG in
12827   [\\/]* | ?:[\\/]*)
12828   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12829   ;;
12830   *)
12831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836   for ac_exec_ext in '' $ac_executable_extensions; do
12837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12838     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843 done
12844
12845   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12846   ;;
12847 esac
12848 fi
12849 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12850
12851 if test -n "$PKG_CONFIG"; then
12852   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12853 echo "${ECHO_T}$PKG_CONFIG" >&6
12854 else
12855   echo "$as_me:$LINENO: result: no" >&5
12856 echo "${ECHO_T}no" >&6
12857 fi
12858
12859   fi
12860
12861   if test "$PKG_CONFIG" = "no" ; then
12862      echo "*** The pkg-config script could not be found. Make sure it is"
12863      echo "*** in your path, or set the PKG_CONFIG environment variable"
12864      echo "*** to the full path to pkg-config."
12865      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12866   else
12867      PKG_CONFIG_MIN_VERSION=0.9.0
12868      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12869         echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
12870 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
12871
12872         if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
12873             echo "$as_me:$LINENO: result: yes" >&5
12874 echo "${ECHO_T}yes" >&6
12875             succeeded=yes
12876
12877             echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
12878 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
12879             QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
12880             echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
12881 echo "${ECHO_T}$QT_CFLAGS" >&6
12882
12883             echo "$as_me:$LINENO: checking QT_LIBS" >&5
12884 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
12885             QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
12886             echo "$as_me:$LINENO: result: $QT_LIBS" >&5
12887 echo "${ECHO_T}$QT_LIBS" >&6
12888         else
12889             QT_CFLAGS=""
12890             QT_LIBS=""
12891             ## If we have a custom action on failure, don't print errors, but
12892             ## do set a variable so people can do so.
12893             QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
12894
12895         fi
12896
12897
12898
12899      else
12900         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12901         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12902      fi
12903   fi
12904
12905   if test $succeeded = yes; then
12906      HAVE_QT4="yes"
12907   else
12908      HAVE_QT4="no"
12909   fi
12910
12911     if test "x$HAVE_QT4" = "xyes"; then
12912                   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
12913       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
12914       as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12915 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
12916 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12917 if eval "test \"\${$as_ac_File+set}\" = set"; then
12918   echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920   test "$cross_compiling" = yes &&
12921   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12922 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12923    { (exit 1); exit 1; }; }
12924 if test -r "$QT_INCLUDE_DIR/QWidget"; then
12925   eval "$as_ac_File=yes"
12926 else
12927   eval "$as_ac_File=no"
12928 fi
12929 fi
12930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12931 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12932 if test `eval echo '${'$as_ac_File'}'` = yes; then
12933   { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
12934 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
12935 else
12936   as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12937 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
12938 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12939 if eval "test \"\${$as_ac_File+set}\" = set"; then
12940   echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942   test "$cross_compiling" = yes &&
12943   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12944 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12945    { (exit 1); exit 1; }; }
12946 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
12947   eval "$as_ac_File=yes"
12948 else
12949   eval "$as_ac_File=no"
12950 fi
12951 fi
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12954 if test `eval echo '${'$as_ac_File'}'` = yes; then
12955   QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
12956 else
12957   { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
12958 echo "$as_me: WARNING: QWidget not found" >&2;}
12959 fi
12960
12961 fi
12962
12963         # Extract the first word of "moc", so it can be a program name with args.
12964 set dummy moc; ac_word=$2
12965 echo "$as_me:$LINENO: checking for $ac_word" >&5
12966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12967 if test "${ac_cv_prog_MOC+set}" = set; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   if test -n "$MOC"; then
12971   ac_cv_prog_MOC="$MOC" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12975 do
12976   IFS=$as_save_IFS
12977   test -z "$as_dir" && as_dir=.
12978   for ac_exec_ext in '' $ac_executable_extensions; do
12979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980     ac_cv_prog_MOC="moc"
12981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985 done
12986
12987 fi
12988 fi
12989 MOC=$ac_cv_prog_MOC
12990 if test -n "$MOC"; then
12991   echo "$as_me:$LINENO: result: $MOC" >&5
12992 echo "${ECHO_T}$MOC" >&6
12993 else
12994   echo "$as_me:$LINENO: result: no" >&5
12995 echo "${ECHO_T}no" >&6
12996 fi
12997
12998         # Extract the first word of "moc-qt4", so it can be a program name with args.
12999 set dummy moc-qt4; ac_word=$2
13000 echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13002 if test "${ac_cv_prog_MOC+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   if test -n "$MOC"; then
13006   ac_cv_prog_MOC="$MOC" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013   for ac_exec_ext in '' $ac_executable_extensions; do
13014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015     ac_cv_prog_MOC="moc-qt4"
13016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020 done
13021
13022 fi
13023 fi
13024 MOC=$ac_cv_prog_MOC
13025 if test -n "$MOC"; then
13026   echo "$as_me:$LINENO: result: $MOC" >&5
13027 echo "${ECHO_T}$MOC" >&6
13028 else
13029   echo "$as_me:$LINENO: result: no" >&5
13030 echo "${ECHO_T}no" >&6
13031 fi
13032
13033     fi
13034     if test "x$HAVE_QT4" = "xno"; then
13035       { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
13036 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
13037       case "$host_os" in
13038         darwin*)
13039
13040 # Check whether --with-qt4dir or --without-qt4dir was given.
13041 if test "${with_qt4dir+set}" = set; then
13042   withval="$with_qt4dir"
13043   QT4DIR=$withval
13044
13045 fi;
13046           if test x"$QT4DIR" = x ; then
13047             { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
13048 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
13049    { (exit 1); exit 1; }; }
13050           fi
13051           echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
13052 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
13053           # Extract the first word of "moc", so it can be a program name with args.
13054 set dummy moc; ac_word=$2
13055 echo "$as_me:$LINENO: checking for $ac_word" >&5
13056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057 if test "${ac_cv_prog_MOC+set}" = set; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   if test -n "$MOC"; then
13061   ac_cv_prog_MOC="$MOC" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $QT4DIR/bin
13065 do
13066   IFS=$as_save_IFS
13067   test -z "$as_dir" && as_dir=.
13068   for ac_exec_ext in '' $ac_executable_extensions; do
13069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070     ac_cv_prog_MOC="$QT4DIR/bin/moc"
13071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072     break 2
13073   fi
13074 done
13075 done
13076
13077 fi
13078 fi
13079 MOC=$ac_cv_prog_MOC
13080 if test -n "$MOC"; then
13081   echo "$as_me:$LINENO: result: $MOC" >&5
13082 echo "${ECHO_T}$MOC" >&6
13083 else
13084   echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6
13086 fi
13087
13088           if test x"$MOC" = x; then
13089             { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
13090 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
13091    { (exit 1); exit 1; }; }
13092           fi
13093           QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
13094           QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
13095           QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
13096           QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
13097           ;;
13098         *)
13099           { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
13100           of your installed Qt4 installation." >&5
13101 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
13102           of your installed Qt4 installation." >&2;}
13103    { (exit 1); exit 1; }; }
13104           ;;
13105       esac
13106     fi
13107     { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
13108 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
13109
13110
13111   fi
13112         echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
13113 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
13114   cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h.  */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h.  */
13120 #include <sys/socket.h>
13121 int
13122 main ()
13123 {
13124  int f = MSG_NOSIGNAL;
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131   (eval $ac_compile) 2>conftest.er1
13132   ac_status=$?
13133   grep -v '^ *+' conftest.er1 >conftest.err
13134   rm -f conftest.er1
13135   cat conftest.err >&5
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -z "$ac_c_werror_flag"
13139                          || test ! -s conftest.err'
13140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; } &&
13145          { ac_try='test -s conftest.$ac_objext'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; }; then
13151    echo "$as_me:$LINENO: result: yes" >&5
13152 echo "${ECHO_T}yes" >&6
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_MSG_NOSIGNAL 1
13156 _ACEOF
13157
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162  echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6
13164
13165 fi
13166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13167     echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
13168 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
13169  cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175 #include <sys/socket.h>
13176 int
13177 main ()
13178 {
13179  int f = SO_NOSIGPIPE;
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186   (eval $ac_compile) 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } &&
13193          { ac_try='test -z "$ac_c_werror_flag"
13194                          || test ! -s conftest.err'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; } &&
13200          { ac_try='test -s conftest.$ac_objext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206    echo "$as_me:$LINENO: result: yes" >&5
13207 echo "${ECHO_T}yes" >&6
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_SO_NOSIGPIPE 1
13211 _ACEOF
13212
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217  echo "$as_me:$LINENO: result: no" >&5
13218 echo "${ECHO_T}no" >&6
13219
13220 fi
13221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13222
13223     if test "x${COMPILE_PLUGIN}" = xyes; then
13224
13225   succeeded=no
13226
13227   if test -z "$PKG_CONFIG"; then
13228     # Extract the first word of "pkg-config", so it can be a program name with args.
13229 set dummy pkg-config; ac_word=$2
13230 echo "$as_me:$LINENO: checking for $ac_word" >&5
13231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13232 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   case $PKG_CONFIG in
13236   [\\/]* | ?:[\\/]*)
13237   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13238   ;;
13239   *)
13240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245   for ac_exec_ext in '' $ac_executable_extensions; do
13246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13247     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252 done
13253
13254   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13255   ;;
13256 esac
13257 fi
13258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13259
13260 if test -n "$PKG_CONFIG"; then
13261   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13262 echo "${ECHO_T}$PKG_CONFIG" >&6
13263 else
13264   echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6
13266 fi
13267
13268   fi
13269
13270   if test "$PKG_CONFIG" = "no" ; then
13271      echo "*** The pkg-config script could not be found. Make sure it is"
13272      echo "*** in your path, or set the PKG_CONFIG environment variable"
13273      echo "*** to the full path to pkg-config."
13274      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13275   else
13276      PKG_CONFIG_MIN_VERSION=0.9.0
13277      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13278         echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
13279 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
13280
13281         if $PKG_CONFIG --exists "mozilla-plugin" ; then
13282             echo "$as_me:$LINENO: result: yes" >&5
13283 echo "${ECHO_T}yes" >&6
13284             succeeded=yes
13285
13286             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13287 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13288             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
13289             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13290 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13291
13292             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13293 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13294             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
13295             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13296 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13297         else
13298             MOZILLA_CFLAGS=""
13299             MOZILLA_LIBS=""
13300             ## If we have a custom action on failure, don't print errors, but
13301             ## do set a variable so people can do so.
13302             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
13303
13304         fi
13305
13306
13307
13308      else
13309         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13310         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13311      fi
13312   fi
13313
13314   if test $succeeded = yes; then
13315      MOZILLA_FOUND=yes
13316   else
13317      MOZILLA_FOUND=no
13318   fi
13319
13320     if test "x${MOZILLA_FOUND}" = xno; then
13321
13322   succeeded=no
13323
13324   if test -z "$PKG_CONFIG"; then
13325     # Extract the first word of "pkg-config", so it can be a program name with args.
13326 set dummy pkg-config; ac_word=$2
13327 echo "$as_me:$LINENO: checking for $ac_word" >&5
13328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13329 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   case $PKG_CONFIG in
13333   [\\/]* | ?:[\\/]*)
13334   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13335   ;;
13336   *)
13337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13339 do
13340   IFS=$as_save_IFS
13341   test -z "$as_dir" && as_dir=.
13342   for ac_exec_ext in '' $ac_executable_extensions; do
13343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13346     break 2
13347   fi
13348 done
13349 done
13350
13351   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13352   ;;
13353 esac
13354 fi
13355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13356
13357 if test -n "$PKG_CONFIG"; then
13358   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13359 echo "${ECHO_T}$PKG_CONFIG" >&6
13360 else
13361   echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6
13363 fi
13364
13365   fi
13366
13367   if test "$PKG_CONFIG" = "no" ; then
13368      echo "*** The pkg-config script could not be found. Make sure it is"
13369      echo "*** in your path, or set the PKG_CONFIG environment variable"
13370      echo "*** to the full path to pkg-config."
13371      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13372   else
13373      PKG_CONFIG_MIN_VERSION=0.9.0
13374      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13375         echo "$as_me:$LINENO: checking for firefox-plugin" >&5
13376 echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
13377
13378         if $PKG_CONFIG --exists "firefox-plugin" ; then
13379             echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6
13381             succeeded=yes
13382
13383             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13384 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13385             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
13386             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13387 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13388
13389             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13390 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13391             MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
13392             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13393 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13394         else
13395             MOZILLA_CFLAGS=""
13396             MOZILLA_LIBS=""
13397             ## If we have a custom action on failure, don't print errors, but
13398             ## do set a variable so people can do so.
13399             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
13400
13401         fi
13402
13403
13404
13405      else
13406         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13407         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13408      fi
13409   fi
13410
13411   if test $succeeded = yes; then
13412      MOZILLA_FOUND=yes
13413   else
13414      MOZILLA_FOUND=no
13415   fi
13416
13417     fi
13418     if test "x${MOZILLA_FOUND}" = xno; then
13419
13420   succeeded=no
13421
13422   if test -z "$PKG_CONFIG"; then
13423     # Extract the first word of "pkg-config", so it can be a program name with args.
13424 set dummy pkg-config; ac_word=$2
13425 echo "$as_me:$LINENO: checking for $ac_word" >&5
13426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13427 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   case $PKG_CONFIG in
13431   [\\/]* | ?:[\\/]*)
13432   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13433   ;;
13434   *)
13435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438   IFS=$as_save_IFS
13439   test -z "$as_dir" && as_dir=.
13440   for ac_exec_ext in '' $ac_executable_extensions; do
13441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13444     break 2
13445   fi
13446 done
13447 done
13448
13449   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13450   ;;
13451 esac
13452 fi
13453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13454
13455 if test -n "$PKG_CONFIG"; then
13456   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13457 echo "${ECHO_T}$PKG_CONFIG" >&6
13458 else
13459   echo "$as_me:$LINENO: result: no" >&5
13460 echo "${ECHO_T}no" >&6
13461 fi
13462
13463   fi
13464
13465   if test "$PKG_CONFIG" = "no" ; then
13466      echo "*** The pkg-config script could not be found. Make sure it is"
13467      echo "*** in your path, or set the PKG_CONFIG environment variable"
13468      echo "*** to the full path to pkg-config."
13469      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13470   else
13471      PKG_CONFIG_MIN_VERSION=0.9.0
13472      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13473         echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
13474 echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
13475
13476         if $PKG_CONFIG --exists "xulrunner-plugin" ; then
13477             echo "$as_me:$LINENO: result: yes" >&5
13478 echo "${ECHO_T}yes" >&6
13479             succeeded=yes
13480
13481             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13482 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13483             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
13484             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13485 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13486
13487             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13488 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13489             MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
13490             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13491 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13492         else
13493             MOZILLA_CFLAGS=""
13494             MOZILLA_LIBS=""
13495             ## If we have a custom action on failure, don't print errors, but
13496             ## do set a variable so people can do so.
13497             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
13498
13499         fi
13500
13501
13502
13503      else
13504         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13505         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13506      fi
13507   fi
13508
13509   if test $succeeded = yes; then
13510      MOZILLA_FOUND=yes
13511   else
13512      MOZILLA_FOUND=no
13513   fi
13514
13515     fi
13516     if test "x${MOZILLA_FOUND}" = xno; then
13517
13518   succeeded=no
13519
13520   if test -z "$PKG_CONFIG"; then
13521     # Extract the first word of "pkg-config", so it can be a program name with args.
13522 set dummy pkg-config; ac_word=$2
13523 echo "$as_me:$LINENO: checking for $ac_word" >&5
13524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   case $PKG_CONFIG in
13529   [\\/]* | ?:[\\/]*)
13530   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13531   ;;
13532   *)
13533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13535 do
13536   IFS=$as_save_IFS
13537   test -z "$as_dir" && as_dir=.
13538   for ac_exec_ext in '' $ac_executable_extensions; do
13539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13542     break 2
13543   fi
13544 done
13545 done
13546
13547   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13548   ;;
13549 esac
13550 fi
13551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13552
13553 if test -n "$PKG_CONFIG"; then
13554   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13555 echo "${ECHO_T}$PKG_CONFIG" >&6
13556 else
13557   echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6
13559 fi
13560
13561   fi
13562
13563   if test "$PKG_CONFIG" = "no" ; then
13564      echo "*** The pkg-config script could not be found. Make sure it is"
13565      echo "*** in your path, or set the PKG_CONFIG environment variable"
13566      echo "*** to the full path to pkg-config."
13567      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13568   else
13569      PKG_CONFIG_MIN_VERSION=0.9.0
13570      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13571         echo "$as_me:$LINENO: checking for mozilla-firefox-plugin" >&5
13572 echo $ECHO_N "checking for mozilla-firefox-plugin... $ECHO_C" >&6
13573
13574         if $PKG_CONFIG --exists "mozilla-firefox-plugin" ; then
13575             echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6
13577             succeeded=yes
13578
13579             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13580 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13581             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin"`
13582             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13583 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13584
13585             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13586 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13587             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin"`
13588             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13589 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13590         else
13591             MOZILLA_CFLAGS=""
13592             MOZILLA_LIBS=""
13593             ## If we have a custom action on failure, don't print errors, but
13594             ## do set a variable so people can do so.
13595             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin"`
13596
13597         fi
13598
13599
13600
13601      else
13602         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13603         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13604      fi
13605   fi
13606
13607   if test $succeeded = yes; then
13608      MOZILLA_FOUND=yes
13609   else
13610      MOZILLA_FOUND=no
13611   fi
13612
13613     fi
13614     if test "x${MOZILLA_FOUND}" = xno; then
13615
13616   succeeded=no
13617
13618   if test -z "$PKG_CONFIG"; then
13619     # Extract the first word of "pkg-config", so it can be a program name with args.
13620 set dummy pkg-config; ac_word=$2
13621 echo "$as_me:$LINENO: checking for $ac_word" >&5
13622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13623 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   case $PKG_CONFIG in
13627   [\\/]* | ?:[\\/]*)
13628   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13629   ;;
13630   *)
13631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632 for as_dir in $PATH
13633 do
13634   IFS=$as_save_IFS
13635   test -z "$as_dir" && as_dir=.
13636   for ac_exec_ext in '' $ac_executable_extensions; do
13637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13638     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640     break 2
13641   fi
13642 done
13643 done
13644
13645   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13646   ;;
13647 esac
13648 fi
13649 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13650
13651 if test -n "$PKG_CONFIG"; then
13652   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13653 echo "${ECHO_T}$PKG_CONFIG" >&6
13654 else
13655   echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13657 fi
13658
13659   fi
13660
13661   if test "$PKG_CONFIG" = "no" ; then
13662      echo "*** The pkg-config script could not be found. Make sure it is"
13663      echo "*** in your path, or set the PKG_CONFIG environment variable"
13664      echo "*** to the full path to pkg-config."
13665      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13666   else
13667      PKG_CONFIG_MIN_VERSION=0.9.0
13668      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13669         echo "$as_me:$LINENO: checking for seamonkey-plugin" >&5
13670 echo $ECHO_N "checking for seamonkey-plugin... $ECHO_C" >&6
13671
13672         if $PKG_CONFIG --exists "seamonkey-plugin" ; then
13673             echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13675             succeeded=yes
13676
13677             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
13678 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
13679             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin"`
13680             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
13681 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
13682
13683             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
13684 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
13685             MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin"`
13686             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
13687 echo "${ECHO_T}$MOZILLA_LIBS" >&6
13688         else
13689             MOZILLA_CFLAGS=""
13690             MOZILLA_LIBS=""
13691             ## If we have a custom action on failure, don't print errors, but
13692             ## do set a variable so people can do so.
13693             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin"`
13694
13695         fi
13696
13697
13698
13699      else
13700         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13701         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13702      fi
13703   fi
13704
13705   if test $succeeded = yes; then
13706      MOZILLA_FOUND=yes
13707   else
13708      MOZILLA_FOUND=no
13709   fi
13710
13711     fi
13712
13713   succeeded=no
13714
13715   if test -z "$PKG_CONFIG"; then
13716     # Extract the first word of "pkg-config", so it can be a program name with args.
13717 set dummy pkg-config; ac_word=$2
13718 echo "$as_me:$LINENO: checking for $ac_word" >&5
13719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   case $PKG_CONFIG in
13724   [\\/]* | ?:[\\/]*)
13725   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13726   ;;
13727   *)
13728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13730 do
13731   IFS=$as_save_IFS
13732   test -z "$as_dir" && as_dir=.
13733   for ac_exec_ext in '' $ac_executable_extensions; do
13734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13735     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13737     break 2
13738   fi
13739 done
13740 done
13741
13742   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13743   ;;
13744 esac
13745 fi
13746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13747
13748 if test -n "$PKG_CONFIG"; then
13749   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13750 echo "${ECHO_T}$PKG_CONFIG" >&6
13751 else
13752   echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13754 fi
13755
13756   fi
13757
13758   if test "$PKG_CONFIG" = "no" ; then
13759      echo "*** The pkg-config script could not be found. Make sure it is"
13760      echo "*** in your path, or set the PKG_CONFIG environment variable"
13761      echo "*** to the full path to pkg-config."
13762      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13763   else
13764      PKG_CONFIG_MIN_VERSION=0.9.0
13765      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13766         echo "$as_me:$LINENO: checking for glib-2.0" >&5
13767 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
13768
13769         if $PKG_CONFIG --exists "glib-2.0" ; then
13770             echo "$as_me:$LINENO: result: yes" >&5
13771 echo "${ECHO_T}yes" >&6
13772             succeeded=yes
13773
13774             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13775 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13776             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
13777             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13778 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13779
13780             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13781 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13782             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
13783             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13784 echo "${ECHO_T}$GLIB_LIBS" >&6
13785         else
13786             GLIB_CFLAGS=""
13787             GLIB_LIBS=""
13788             ## If we have a custom action on failure, don't print errors, but
13789             ## do set a variable so people can do so.
13790             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
13791             echo $GLIB_PKG_ERRORS
13792         fi
13793
13794
13795
13796      else
13797         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13798         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13799      fi
13800   fi
13801
13802   if test $succeeded = yes; then
13803      :
13804   else
13805      { { 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
13806 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;}
13807    { (exit 1); exit 1; }; }
13808   fi
13809
13810
13811
13812
13813
13814
13815
13816     PLUGIN_DIR=$HOME/.mozilla/plugins/
13817
13818   fi
13819 fi
13820
13821
13822
13823 # Check whether --with-javah or --without-javah was given.
13824 if test "${with_javah+set}" = set; then
13825   withval="$with_javah"
13826
13827     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13828
13829   if test "x${withval}" != x; then
13830     if test -f "${withval}"; then
13831       USER_JAVAH="${withval}"
13832     else
13833       # Extract the first word of ""${withval}"", so it can be a program name with args.
13834 set dummy "${withval}"; ac_word=$2
13835 echo "$as_me:$LINENO: checking for $ac_word" >&5
13836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13837 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   case $USER_JAVAH in
13841   [\\/]* | ?:[\\/]*)
13842   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13843   ;;
13844   *)
13845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13847 do
13848   IFS=$as_save_IFS
13849   test -z "$as_dir" && as_dir=.
13850   for ac_exec_ext in '' $ac_executable_extensions; do
13851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13852     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854     break 2
13855   fi
13856 done
13857 done
13858
13859   ;;
13860 esac
13861 fi
13862 USER_JAVAH=$ac_cv_path_USER_JAVAH
13863
13864 if test -n "$USER_JAVAH"; then
13865   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13866 echo "${ECHO_T}$USER_JAVAH" >&6
13867 else
13868   echo "$as_me:$LINENO: result: no" >&5
13869 echo "${ECHO_T}no" >&6
13870 fi
13871
13872     fi
13873   else
13874     for javah_name in gcjh javah; do
13875       # Extract the first word of ""$javah_name"", so it can be a program name with args.
13876 set dummy "$javah_name"; ac_word=$2
13877 echo "$as_me:$LINENO: checking for $ac_word" >&5
13878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13879 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   case $USER_JAVAH in
13883   [\\/]* | ?:[\\/]*)
13884   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13885   ;;
13886   *)
13887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13889 do
13890   IFS=$as_save_IFS
13891   test -z "$as_dir" && as_dir=.
13892   for ac_exec_ext in '' $ac_executable_extensions; do
13893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13896     break 2
13897   fi
13898 done
13899 done
13900
13901   ;;
13902 esac
13903 fi
13904 USER_JAVAH=$ac_cv_path_USER_JAVAH
13905
13906 if test -n "$USER_JAVAH"; then
13907   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13908 echo "${ECHO_T}$USER_JAVAH" >&6
13909 else
13910   echo "$as_me:$LINENO: result: no" >&5
13911 echo "${ECHO_T}no" >&6
13912 fi
13913
13914       if test "x${USER_JAVAH}" != x; then
13915         break
13916       fi
13917     done
13918   fi
13919
13920 #  if test "x${USER_JAVAH}" = x; then
13921 #    echo "configure: cannot find javah" 1>&2
13922 #    exit 1
13923 #  fi
13924
13925     else
13926
13927   if test "x" != x; then
13928     if test -f ""; then
13929       USER_JAVAH=""
13930     else
13931       # Extract the first word of """", so it can be a program name with args.
13932 set dummy ""; ac_word=$2
13933 echo "$as_me:$LINENO: checking for $ac_word" >&5
13934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13935 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   case $USER_JAVAH in
13939   [\\/]* | ?:[\\/]*)
13940   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13941   ;;
13942   *)
13943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13945 do
13946   IFS=$as_save_IFS
13947   test -z "$as_dir" && as_dir=.
13948   for ac_exec_ext in '' $ac_executable_extensions; do
13949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13950     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952     break 2
13953   fi
13954 done
13955 done
13956
13957   ;;
13958 esac
13959 fi
13960 USER_JAVAH=$ac_cv_path_USER_JAVAH
13961
13962 if test -n "$USER_JAVAH"; then
13963   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13964 echo "${ECHO_T}$USER_JAVAH" >&6
13965 else
13966   echo "$as_me:$LINENO: result: no" >&5
13967 echo "${ECHO_T}no" >&6
13968 fi
13969
13970     fi
13971   else
13972     for javah_name in gcjh javah; do
13973       # Extract the first word of ""$javah_name"", so it can be a program name with args.
13974 set dummy "$javah_name"; ac_word=$2
13975 echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13977 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   case $USER_JAVAH in
13981   [\\/]* | ?:[\\/]*)
13982   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13983   ;;
13984   *)
13985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988   IFS=$as_save_IFS
13989   test -z "$as_dir" && as_dir=.
13990   for ac_exec_ext in '' $ac_executable_extensions; do
13991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13994     break 2
13995   fi
13996 done
13997 done
13998
13999   ;;
14000 esac
14001 fi
14002 USER_JAVAH=$ac_cv_path_USER_JAVAH
14003
14004 if test -n "$USER_JAVAH"; then
14005   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
14006 echo "${ECHO_T}$USER_JAVAH" >&6
14007 else
14008   echo "$as_me:$LINENO: result: no" >&5
14009 echo "${ECHO_T}no" >&6
14010 fi
14011
14012       if test "x${USER_JAVAH}" != x; then
14013         break
14014       fi
14015     done
14016   fi
14017
14018 #  if test "x${USER_JAVAH}" = x; then
14019 #    echo "configure: cannot find javah" 1>&2
14020 #    exit 1
14021 #  fi
14022
14023     fi
14024
14025 else
14026
14027
14028   if test "x" != x; then
14029     if test -f ""; then
14030       USER_JAVAH=""
14031     else
14032       # Extract the first word of """", so it can be a program name with args.
14033 set dummy ""; ac_word=$2
14034 echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14036 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   case $USER_JAVAH in
14040   [\\/]* | ?:[\\/]*)
14041   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
14042   ;;
14043   *)
14044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045 for as_dir in $PATH
14046 do
14047   IFS=$as_save_IFS
14048   test -z "$as_dir" && as_dir=.
14049   for ac_exec_ext in '' $ac_executable_extensions; do
14050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14051     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
14052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14053     break 2
14054   fi
14055 done
14056 done
14057
14058   ;;
14059 esac
14060 fi
14061 USER_JAVAH=$ac_cv_path_USER_JAVAH
14062
14063 if test -n "$USER_JAVAH"; then
14064   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
14065 echo "${ECHO_T}$USER_JAVAH" >&6
14066 else
14067   echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6
14069 fi
14070
14071     fi
14072   else
14073     for javah_name in gcjh javah; do
14074       # Extract the first word of ""$javah_name"", so it can be a program name with args.
14075 set dummy "$javah_name"; ac_word=$2
14076 echo "$as_me:$LINENO: checking for $ac_word" >&5
14077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14078 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   case $USER_JAVAH in
14082   [\\/]* | ?:[\\/]*)
14083   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
14084   ;;
14085   *)
14086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091   for ac_exec_ext in '' $ac_executable_extensions; do
14092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
14094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095     break 2
14096   fi
14097 done
14098 done
14099
14100   ;;
14101 esac
14102 fi
14103 USER_JAVAH=$ac_cv_path_USER_JAVAH
14104
14105 if test -n "$USER_JAVAH"; then
14106   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
14107 echo "${ECHO_T}$USER_JAVAH" >&6
14108 else
14109   echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6
14111 fi
14112
14113       if test "x${USER_JAVAH}" != x; then
14114         break
14115       fi
14116     done
14117   fi
14118
14119 #  if test "x${USER_JAVAH}" = x; then
14120 #    echo "configure: cannot find javah" 1>&2
14121 #    exit 1
14122 #  fi
14123
14124
14125 fi;
14126
14127
14128 if test "x${USER_JAVAH}" != x; then
14129   USER_SPECIFIED_JAVAH_TRUE=
14130   USER_SPECIFIED_JAVAH_FALSE='#'
14131 else
14132   USER_SPECIFIED_JAVAH_TRUE='#'
14133   USER_SPECIFIED_JAVAH_FALSE=
14134 fi
14135
14136
14137
14138
14139 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
14140
14141
14142 if test "x${COMPILE_JNI}" = xyes; then
14143   echo "$as_me:$LINENO: checking jni_md.h support" >&5
14144 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
14145   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
14146     echo "$as_me:$LINENO: result: yes" >&5
14147 echo "${ECHO_T}yes" >&6
14148   else
14149     target_cpu=x86
14150     target_os=linux-gnu
14151     { echo "$as_me:$LINENO: WARNING: no" >&5
14152 echo "$as_me: WARNING: no" >&2;}
14153   fi
14154   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
14155   ac_dests="include/jni_md.h"
14156   while test -n "$ac_sources"; do
14157     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14158     set $ac_sources; ac_source=$1; shift; ac_sources=$*
14159     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14160   done
14161             ac_config_links="$ac_config_links $ac_config_links_1"
14162
14163 fi
14164
14165
14166   user_specified_javac=
14167
14168
14169
14170 # Check whether --with-gcj or --without-gcj was given.
14171 if test "${with_gcj+set}" = set; then
14172   withval="$with_gcj"
14173
14174     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14175
14176   if test "x${withval}" != x; then
14177     if test -f "${withval}"; then
14178       GCJ="${withval}"
14179     else
14180       # Extract the first word of ""${withval}"", so it can be a program name with args.
14181 set dummy "${withval}"; ac_word=$2
14182 echo "$as_me:$LINENO: checking for $ac_word" >&5
14183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184 if test "${ac_cv_path_GCJ+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   case $GCJ in
14188   [\\/]* | ?:[\\/]*)
14189   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14190   ;;
14191   *)
14192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14194 do
14195   IFS=$as_save_IFS
14196   test -z "$as_dir" && as_dir=.
14197   for ac_exec_ext in '' $ac_executable_extensions; do
14198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14199     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14201     break 2
14202   fi
14203 done
14204 done
14205
14206   ;;
14207 esac
14208 fi
14209 GCJ=$ac_cv_path_GCJ
14210
14211 if test -n "$GCJ"; then
14212   echo "$as_me:$LINENO: result: $GCJ" >&5
14213 echo "${ECHO_T}$GCJ" >&6
14214 else
14215   echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217 fi
14218
14219     fi
14220   else
14221     # Extract the first word of ""gcj"", so it can be a program name with args.
14222 set dummy "gcj"; ac_word=$2
14223 echo "$as_me:$LINENO: checking for $ac_word" >&5
14224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14225 if test "${ac_cv_path_GCJ+set}" = set; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228   case $GCJ in
14229   [\\/]* | ?:[\\/]*)
14230   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14231   ;;
14232   *)
14233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14235 do
14236   IFS=$as_save_IFS
14237   test -z "$as_dir" && as_dir=.
14238   for ac_exec_ext in '' $ac_executable_extensions; do
14239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14240     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242     break 2
14243   fi
14244 done
14245 done
14246
14247   ;;
14248 esac
14249 fi
14250 GCJ=$ac_cv_path_GCJ
14251
14252 if test -n "$GCJ"; then
14253   echo "$as_me:$LINENO: result: $GCJ" >&5
14254 echo "${ECHO_T}$GCJ" >&6
14255 else
14256   echo "$as_me:$LINENO: result: no" >&5
14257 echo "${ECHO_T}no" >&6
14258 fi
14259
14260   fi
14261     if test "x$GCJ" != x; then
14262     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14263 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14264     ac_ext=c
14265 ac_cpp='$CPP $CPPFLAGS'
14266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269
14270     cat >conftest.$ac_ext <<_ACEOF
14271 #if __GNUC__ <= 3
14272     #error GCJ 4.0.0 or higher is required
14273     #endif
14274
14275 _ACEOF
14276     $GCJ -E conftest.c > /dev/null
14277     gcj_4_result=$?
14278     if test "x$gcj_4_result" = "x0"; then
14279       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14280 echo "${ECHO_T}4.0 or higher found" >&6
14281     else
14282       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14283 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14284     fi
14285     ac_ext=c
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
14291   fi
14292
14293     else
14294       if test "x${withval}" != xno; then
14295
14296   if test "x" != x; then
14297     if test -f ""; then
14298       GCJ=""
14299     else
14300       # Extract the first word of """", so it can be a program name with args.
14301 set dummy ""; ac_word=$2
14302 echo "$as_me:$LINENO: checking for $ac_word" >&5
14303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14304 if test "${ac_cv_path_GCJ+set}" = set; then
14305   echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307   case $GCJ in
14308   [\\/]* | ?:[\\/]*)
14309   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14310   ;;
14311   *)
14312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14314 do
14315   IFS=$as_save_IFS
14316   test -z "$as_dir" && as_dir=.
14317   for ac_exec_ext in '' $ac_executable_extensions; do
14318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14319     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14321     break 2
14322   fi
14323 done
14324 done
14325
14326   ;;
14327 esac
14328 fi
14329 GCJ=$ac_cv_path_GCJ
14330
14331 if test -n "$GCJ"; then
14332   echo "$as_me:$LINENO: result: $GCJ" >&5
14333 echo "${ECHO_T}$GCJ" >&6
14334 else
14335   echo "$as_me:$LINENO: result: no" >&5
14336 echo "${ECHO_T}no" >&6
14337 fi
14338
14339     fi
14340   else
14341     # Extract the first word of ""gcj"", so it can be a program name with args.
14342 set dummy "gcj"; ac_word=$2
14343 echo "$as_me:$LINENO: checking for $ac_word" >&5
14344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14345 if test "${ac_cv_path_GCJ+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348   case $GCJ in
14349   [\\/]* | ?:[\\/]*)
14350   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14351   ;;
14352   *)
14353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354 for as_dir in $PATH
14355 do
14356   IFS=$as_save_IFS
14357   test -z "$as_dir" && as_dir=.
14358   for ac_exec_ext in '' $ac_executable_extensions; do
14359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14360     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362     break 2
14363   fi
14364 done
14365 done
14366
14367   ;;
14368 esac
14369 fi
14370 GCJ=$ac_cv_path_GCJ
14371
14372 if test -n "$GCJ"; then
14373   echo "$as_me:$LINENO: result: $GCJ" >&5
14374 echo "${ECHO_T}$GCJ" >&6
14375 else
14376   echo "$as_me:$LINENO: result: no" >&5
14377 echo "${ECHO_T}no" >&6
14378 fi
14379
14380   fi
14381     if test "x$GCJ" != x; then
14382     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14383 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14384     ac_ext=c
14385 ac_cpp='$CPP $CPPFLAGS'
14386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389
14390     cat >conftest.$ac_ext <<_ACEOF
14391 #if __GNUC__ <= 3
14392     #error GCJ 4.0.0 or higher is required
14393     #endif
14394
14395 _ACEOF
14396     $GCJ -E conftest.c > /dev/null
14397     gcj_4_result=$?
14398     if test "x$gcj_4_result" = "x0"; then
14399       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14400 echo "${ECHO_T}4.0 or higher found" >&6
14401     else
14402       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14403 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14404     fi
14405     ac_ext=c
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411   fi
14412
14413       fi
14414     fi
14415     user_specified_javac=gcj
14416
14417 else
14418
14419
14420   if test "x" != x; then
14421     if test -f ""; then
14422       GCJ=""
14423     else
14424       # Extract the first word of """", so it can be a program name with args.
14425 set dummy ""; ac_word=$2
14426 echo "$as_me:$LINENO: checking for $ac_word" >&5
14427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14428 if test "${ac_cv_path_GCJ+set}" = set; then
14429   echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431   case $GCJ in
14432   [\\/]* | ?:[\\/]*)
14433   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14434   ;;
14435   *)
14436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437 for as_dir in $PATH
14438 do
14439   IFS=$as_save_IFS
14440   test -z "$as_dir" && as_dir=.
14441   for ac_exec_ext in '' $ac_executable_extensions; do
14442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14443     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14445     break 2
14446   fi
14447 done
14448 done
14449
14450   ;;
14451 esac
14452 fi
14453 GCJ=$ac_cv_path_GCJ
14454
14455 if test -n "$GCJ"; then
14456   echo "$as_me:$LINENO: result: $GCJ" >&5
14457 echo "${ECHO_T}$GCJ" >&6
14458 else
14459   echo "$as_me:$LINENO: result: no" >&5
14460 echo "${ECHO_T}no" >&6
14461 fi
14462
14463     fi
14464   else
14465     # Extract the first word of ""gcj"", so it can be a program name with args.
14466 set dummy "gcj"; ac_word=$2
14467 echo "$as_me:$LINENO: checking for $ac_word" >&5
14468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14469 if test "${ac_cv_path_GCJ+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   case $GCJ in
14473   [\\/]* | ?:[\\/]*)
14474   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
14475   ;;
14476   *)
14477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14479 do
14480   IFS=$as_save_IFS
14481   test -z "$as_dir" && as_dir=.
14482   for ac_exec_ext in '' $ac_executable_extensions; do
14483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14484     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
14485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14486     break 2
14487   fi
14488 done
14489 done
14490
14491   ;;
14492 esac
14493 fi
14494 GCJ=$ac_cv_path_GCJ
14495
14496 if test -n "$GCJ"; then
14497   echo "$as_me:$LINENO: result: $GCJ" >&5
14498 echo "${ECHO_T}$GCJ" >&6
14499 else
14500   echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6
14502 fi
14503
14504   fi
14505     if test "x$GCJ" != x; then
14506     echo "$as_me:$LINENO: checking gcj version 4.0" >&5
14507 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
14508     ac_ext=c
14509 ac_cpp='$CPP $CPPFLAGS'
14510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14513
14514     cat >conftest.$ac_ext <<_ACEOF
14515 #if __GNUC__ <= 3
14516     #error GCJ 4.0.0 or higher is required
14517     #endif
14518
14519 _ACEOF
14520     $GCJ -E conftest.c > /dev/null
14521     gcj_4_result=$?
14522     if test "x$gcj_4_result" = "x0"; then
14523       echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
14524 echo "${ECHO_T}4.0 or higher found" >&6
14525     else
14526       { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
14527 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
14528     fi
14529     ac_ext=c
14530 ac_cpp='$CPP $CPPFLAGS'
14531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14534
14535   fi
14536
14537
14538 fi;
14539
14540
14541
14542
14543 # Check whether --with-jikes or --without-jikes was given.
14544 if test "${with_jikes+set}" = set; then
14545   withval="$with_jikes"
14546
14547     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14548
14549   if test "x${withval}" != x; then
14550     if test -f "${withval}"; then
14551       JIKES="${withval}"
14552     else
14553       # Extract the first word of ""${withval}"", so it can be a program name with args.
14554 set dummy "${withval}"; ac_word=$2
14555 echo "$as_me:$LINENO: checking for $ac_word" >&5
14556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14557 if test "${ac_cv_path_JIKES+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   case $JIKES in
14561   [\\/]* | ?:[\\/]*)
14562   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14563   ;;
14564   *)
14565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14566 for as_dir in $PATH
14567 do
14568   IFS=$as_save_IFS
14569   test -z "$as_dir" && as_dir=.
14570   for ac_exec_ext in '' $ac_executable_extensions; do
14571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14572     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14574     break 2
14575   fi
14576 done
14577 done
14578
14579   ;;
14580 esac
14581 fi
14582 JIKES=$ac_cv_path_JIKES
14583
14584 if test -n "$JIKES"; then
14585   echo "$as_me:$LINENO: result: $JIKES" >&5
14586 echo "${ECHO_T}$JIKES" >&6
14587 else
14588   echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6
14590 fi
14591
14592     fi
14593   else
14594     # Extract the first word of ""jikes"", so it can be a program name with args.
14595 set dummy "jikes"; ac_word=$2
14596 echo "$as_me:$LINENO: checking for $ac_word" >&5
14597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14598 if test "${ac_cv_path_JIKES+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   case $JIKES in
14602   [\\/]* | ?:[\\/]*)
14603   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14604   ;;
14605   *)
14606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607 for as_dir in $PATH
14608 do
14609   IFS=$as_save_IFS
14610   test -z "$as_dir" && as_dir=.
14611   for ac_exec_ext in '' $ac_executable_extensions; do
14612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14613     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14615     break 2
14616   fi
14617 done
14618 done
14619
14620   ;;
14621 esac
14622 fi
14623 JIKES=$ac_cv_path_JIKES
14624
14625 if test -n "$JIKES"; then
14626   echo "$as_me:$LINENO: result: $JIKES" >&5
14627 echo "${ECHO_T}$JIKES" >&6
14628 else
14629   echo "$as_me:$LINENO: result: no" >&5
14630 echo "${ECHO_T}no" >&6
14631 fi
14632
14633   fi
14634   if test "x$JIKES" != "x"; then
14635         echo "$as_me:$LINENO: checking jikes version" >&5
14636 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14637     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14638     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14639     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14640     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14641       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14642         JIKES=""
14643       fi
14644     fi
14645     if test "x$JIKES" != "x"; then
14646       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14647 echo "${ECHO_T}$JIKES_VERSION" >&6
14648     else
14649       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14650 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14651     fi
14652
14653     JIKESENCODING=
14654     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14655       JIKESENCODING='-encoding UTF-8'
14656     fi
14657
14658
14659     JIKESWARNINGS="+Pno-switchcheck"
14660     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14661       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14662         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14663       fi
14664     fi
14665
14666
14667   fi
14668
14669     else
14670       if test "x${withval}" != xno; then
14671
14672   if test "x" != x; then
14673     if test -f ""; then
14674       JIKES=""
14675     else
14676       # Extract the first word of """", so it can be a program name with args.
14677 set dummy ""; ac_word=$2
14678 echo "$as_me:$LINENO: checking for $ac_word" >&5
14679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14680 if test "${ac_cv_path_JIKES+set}" = set; then
14681   echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683   case $JIKES in
14684   [\\/]* | ?:[\\/]*)
14685   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14686   ;;
14687   *)
14688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14690 do
14691   IFS=$as_save_IFS
14692   test -z "$as_dir" && as_dir=.
14693   for ac_exec_ext in '' $ac_executable_extensions; do
14694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14697     break 2
14698   fi
14699 done
14700 done
14701
14702   ;;
14703 esac
14704 fi
14705 JIKES=$ac_cv_path_JIKES
14706
14707 if test -n "$JIKES"; then
14708   echo "$as_me:$LINENO: result: $JIKES" >&5
14709 echo "${ECHO_T}$JIKES" >&6
14710 else
14711   echo "$as_me:$LINENO: result: no" >&5
14712 echo "${ECHO_T}no" >&6
14713 fi
14714
14715     fi
14716   else
14717     # Extract the first word of ""jikes"", so it can be a program name with args.
14718 set dummy "jikes"; ac_word=$2
14719 echo "$as_me:$LINENO: checking for $ac_word" >&5
14720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14721 if test "${ac_cv_path_JIKES+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   case $JIKES in
14725   [\\/]* | ?:[\\/]*)
14726   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14727   ;;
14728   *)
14729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730 for as_dir in $PATH
14731 do
14732   IFS=$as_save_IFS
14733   test -z "$as_dir" && as_dir=.
14734   for ac_exec_ext in '' $ac_executable_extensions; do
14735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14736     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14738     break 2
14739   fi
14740 done
14741 done
14742
14743   ;;
14744 esac
14745 fi
14746 JIKES=$ac_cv_path_JIKES
14747
14748 if test -n "$JIKES"; then
14749   echo "$as_me:$LINENO: result: $JIKES" >&5
14750 echo "${ECHO_T}$JIKES" >&6
14751 else
14752   echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6
14754 fi
14755
14756   fi
14757   if test "x$JIKES" != "x"; then
14758         echo "$as_me:$LINENO: checking jikes version" >&5
14759 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14760     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14761     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14762     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14763     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14764       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14765         JIKES=""
14766       fi
14767     fi
14768     if test "x$JIKES" != "x"; then
14769       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14770 echo "${ECHO_T}$JIKES_VERSION" >&6
14771     else
14772       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14773 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14774     fi
14775
14776     JIKESENCODING=
14777     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14778       JIKESENCODING='-encoding UTF-8'
14779     fi
14780
14781
14782     JIKESWARNINGS="+Pno-switchcheck"
14783     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14784       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14785         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14786       fi
14787     fi
14788
14789
14790   fi
14791
14792       fi
14793     fi
14794     user_specified_javac=jikes
14795
14796 else
14797
14798
14799   if test "x" != x; then
14800     if test -f ""; then
14801       JIKES=""
14802     else
14803       # Extract the first word of """", so it can be a program name with args.
14804 set dummy ""; ac_word=$2
14805 echo "$as_me:$LINENO: checking for $ac_word" >&5
14806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14807 if test "${ac_cv_path_JIKES+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   case $JIKES in
14811   [\\/]* | ?:[\\/]*)
14812   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14813   ;;
14814   *)
14815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14817 do
14818   IFS=$as_save_IFS
14819   test -z "$as_dir" && as_dir=.
14820   for ac_exec_ext in '' $ac_executable_extensions; do
14821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14824     break 2
14825   fi
14826 done
14827 done
14828
14829   ;;
14830 esac
14831 fi
14832 JIKES=$ac_cv_path_JIKES
14833
14834 if test -n "$JIKES"; then
14835   echo "$as_me:$LINENO: result: $JIKES" >&5
14836 echo "${ECHO_T}$JIKES" >&6
14837 else
14838   echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14840 fi
14841
14842     fi
14843   else
14844     # Extract the first word of ""jikes"", so it can be a program name with args.
14845 set dummy "jikes"; ac_word=$2
14846 echo "$as_me:$LINENO: checking for $ac_word" >&5
14847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14848 if test "${ac_cv_path_JIKES+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   case $JIKES in
14852   [\\/]* | ?:[\\/]*)
14853   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
14854   ;;
14855   *)
14856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857 for as_dir in $PATH
14858 do
14859   IFS=$as_save_IFS
14860   test -z "$as_dir" && as_dir=.
14861   for ac_exec_ext in '' $ac_executable_extensions; do
14862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
14864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14865     break 2
14866   fi
14867 done
14868 done
14869
14870   ;;
14871 esac
14872 fi
14873 JIKES=$ac_cv_path_JIKES
14874
14875 if test -n "$JIKES"; then
14876   echo "$as_me:$LINENO: result: $JIKES" >&5
14877 echo "${ECHO_T}$JIKES" >&6
14878 else
14879   echo "$as_me:$LINENO: result: no" >&5
14880 echo "${ECHO_T}no" >&6
14881 fi
14882
14883   fi
14884   if test "x$JIKES" != "x"; then
14885         echo "$as_me:$LINENO: checking jikes version" >&5
14886 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
14887     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
14888     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
14889     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
14890     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
14891       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
14892         JIKES=""
14893       fi
14894     fi
14895     if test "x$JIKES" != "x"; then
14896       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
14897 echo "${ECHO_T}$JIKES_VERSION" >&6
14898     else
14899       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
14900 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
14901     fi
14902
14903     JIKESENCODING=
14904     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
14905       JIKESENCODING='-encoding UTF-8'
14906     fi
14907
14908
14909     JIKESWARNINGS="+Pno-switchcheck"
14910     if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
14911       if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
14912         JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
14913       fi
14914     fi
14915
14916
14917   fi
14918
14919
14920 fi;
14921
14922
14923
14924
14925 # Check whether --with-kjc or --without-kjc was given.
14926 if test "${with_kjc+set}" = set; then
14927   withval="$with_kjc"
14928
14929     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14930
14931   if test "x${withval}" != x; then
14932     if test -f "${withval}"; then
14933       KJC="${withval}"
14934     else
14935       # Extract the first word of ""${withval}"", so it can be a program name with args.
14936 set dummy "${withval}"; ac_word=$2
14937 echo "$as_me:$LINENO: checking for $ac_word" >&5
14938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14939 if test "${ac_cv_path_KJC+set}" = set; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942   case $KJC in
14943   [\\/]* | ?:[\\/]*)
14944   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14945   ;;
14946   *)
14947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14949 do
14950   IFS=$as_save_IFS
14951   test -z "$as_dir" && as_dir=.
14952   for ac_exec_ext in '' $ac_executable_extensions; do
14953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14954     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14956     break 2
14957   fi
14958 done
14959 done
14960
14961   ;;
14962 esac
14963 fi
14964 KJC=$ac_cv_path_KJC
14965
14966 if test -n "$KJC"; then
14967   echo "$as_me:$LINENO: result: $KJC" >&5
14968 echo "${ECHO_T}$KJC" >&6
14969 else
14970   echo "$as_me:$LINENO: result: no" >&5
14971 echo "${ECHO_T}no" >&6
14972 fi
14973
14974     fi
14975   else
14976     # Extract the first word of ""kJC"", so it can be a program name with args.
14977 set dummy "kJC"; ac_word=$2
14978 echo "$as_me:$LINENO: checking for $ac_word" >&5
14979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14980 if test "${ac_cv_path_KJC+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   case $KJC in
14984   [\\/]* | ?:[\\/]*)
14985   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14986   ;;
14987   *)
14988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14989 for as_dir in $PATH
14990 do
14991   IFS=$as_save_IFS
14992   test -z "$as_dir" && as_dir=.
14993   for ac_exec_ext in '' $ac_executable_extensions; do
14994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14995     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14997     break 2
14998   fi
14999 done
15000 done
15001
15002   ;;
15003 esac
15004 fi
15005 KJC=$ac_cv_path_KJC
15006
15007 if test -n "$KJC"; then
15008   echo "$as_me:$LINENO: result: $KJC" >&5
15009 echo "${ECHO_T}$KJC" >&6
15010 else
15011   echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15013 fi
15014
15015   fi
15016
15017     else
15018       if test "x${withval}" != xno; then
15019
15020   if test "x" != x; then
15021     if test -f ""; then
15022       KJC=""
15023     else
15024       # Extract the first word of """", so it can be a program name with args.
15025 set dummy ""; ac_word=$2
15026 echo "$as_me:$LINENO: checking for $ac_word" >&5
15027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15028 if test "${ac_cv_path_KJC+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   case $KJC in
15032   [\\/]* | ?:[\\/]*)
15033   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15034   ;;
15035   *)
15036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $PATH
15038 do
15039   IFS=$as_save_IFS
15040   test -z "$as_dir" && as_dir=.
15041   for ac_exec_ext in '' $ac_executable_extensions; do
15042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15045     break 2
15046   fi
15047 done
15048 done
15049
15050   ;;
15051 esac
15052 fi
15053 KJC=$ac_cv_path_KJC
15054
15055 if test -n "$KJC"; then
15056   echo "$as_me:$LINENO: result: $KJC" >&5
15057 echo "${ECHO_T}$KJC" >&6
15058 else
15059   echo "$as_me:$LINENO: result: no" >&5
15060 echo "${ECHO_T}no" >&6
15061 fi
15062
15063     fi
15064   else
15065     # Extract the first word of ""kJC"", so it can be a program name with args.
15066 set dummy "kJC"; ac_word=$2
15067 echo "$as_me:$LINENO: checking for $ac_word" >&5
15068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15069 if test "${ac_cv_path_KJC+set}" = set; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   case $KJC in
15073   [\\/]* | ?:[\\/]*)
15074   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15075   ;;
15076   *)
15077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15079 do
15080   IFS=$as_save_IFS
15081   test -z "$as_dir" && as_dir=.
15082   for ac_exec_ext in '' $ac_executable_extensions; do
15083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15086     break 2
15087   fi
15088 done
15089 done
15090
15091   ;;
15092 esac
15093 fi
15094 KJC=$ac_cv_path_KJC
15095
15096 if test -n "$KJC"; then
15097   echo "$as_me:$LINENO: result: $KJC" >&5
15098 echo "${ECHO_T}$KJC" >&6
15099 else
15100   echo "$as_me:$LINENO: result: no" >&5
15101 echo "${ECHO_T}no" >&6
15102 fi
15103
15104   fi
15105
15106       fi
15107     fi
15108     user_specified_javac=kjc
15109
15110 else
15111
15112
15113   if test "x" != x; then
15114     if test -f ""; then
15115       KJC=""
15116     else
15117       # Extract the first word of """", so it can be a program name with args.
15118 set dummy ""; ac_word=$2
15119 echo "$as_me:$LINENO: checking for $ac_word" >&5
15120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15121 if test "${ac_cv_path_KJC+set}" = set; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   case $KJC in
15125   [\\/]* | ?:[\\/]*)
15126   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15127   ;;
15128   *)
15129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15130 for as_dir in $PATH
15131 do
15132   IFS=$as_save_IFS
15133   test -z "$as_dir" && as_dir=.
15134   for ac_exec_ext in '' $ac_executable_extensions; do
15135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15136     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15138     break 2
15139   fi
15140 done
15141 done
15142
15143   ;;
15144 esac
15145 fi
15146 KJC=$ac_cv_path_KJC
15147
15148 if test -n "$KJC"; then
15149   echo "$as_me:$LINENO: result: $KJC" >&5
15150 echo "${ECHO_T}$KJC" >&6
15151 else
15152   echo "$as_me:$LINENO: result: no" >&5
15153 echo "${ECHO_T}no" >&6
15154 fi
15155
15156     fi
15157   else
15158     # Extract the first word of ""kJC"", so it can be a program name with args.
15159 set dummy "kJC"; ac_word=$2
15160 echo "$as_me:$LINENO: checking for $ac_word" >&5
15161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15162 if test "${ac_cv_path_KJC+set}" = set; then
15163   echo $ECHO_N "(cached) $ECHO_C" >&6
15164 else
15165   case $KJC in
15166   [\\/]* | ?:[\\/]*)
15167   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
15168   ;;
15169   *)
15170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15172 do
15173   IFS=$as_save_IFS
15174   test -z "$as_dir" && as_dir=.
15175   for ac_exec_ext in '' $ac_executable_extensions; do
15176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
15178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15179     break 2
15180   fi
15181 done
15182 done
15183
15184   ;;
15185 esac
15186 fi
15187 KJC=$ac_cv_path_KJC
15188
15189 if test -n "$KJC"; then
15190   echo "$as_me:$LINENO: result: $KJC" >&5
15191 echo "${ECHO_T}$KJC" >&6
15192 else
15193   echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15195 fi
15196
15197   fi
15198
15199
15200 fi;
15201
15202
15203
15204
15205 # Check whether --with-gcjx or --without-gcjx was given.
15206 if test "${with_gcjx+set}" = set; then
15207   withval="$with_gcjx"
15208
15209     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
15210
15211   if test "x${withval}" != x; then
15212     if test -f "${withval}"; then
15213       GCJX="${withval}"
15214     else
15215       # Extract the first word of ""${withval}"", so it can be a program name with args.
15216 set dummy "${withval}"; ac_word=$2
15217 echo "$as_me:$LINENO: checking for $ac_word" >&5
15218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15219 if test "${ac_cv_path_GCJX+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   case $GCJX in
15223   [\\/]* | ?:[\\/]*)
15224   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15225   ;;
15226   *)
15227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228 for as_dir in $PATH
15229 do
15230   IFS=$as_save_IFS
15231   test -z "$as_dir" && as_dir=.
15232   for ac_exec_ext in '' $ac_executable_extensions; do
15233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15234     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15236     break 2
15237   fi
15238 done
15239 done
15240
15241   ;;
15242 esac
15243 fi
15244 GCJX=$ac_cv_path_GCJX
15245
15246 if test -n "$GCJX"; then
15247   echo "$as_me:$LINENO: result: $GCJX" >&5
15248 echo "${ECHO_T}$GCJX" >&6
15249 else
15250   echo "$as_me:$LINENO: result: no" >&5
15251 echo "${ECHO_T}no" >&6
15252 fi
15253
15254     fi
15255   else
15256     # Extract the first word of ""gcjx"", so it can be a program name with args.
15257 set dummy "gcjx"; ac_word=$2
15258 echo "$as_me:$LINENO: checking for $ac_word" >&5
15259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15260 if test "${ac_cv_path_GCJX+set}" = set; then
15261   echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263   case $GCJX in
15264   [\\/]* | ?:[\\/]*)
15265   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15266   ;;
15267   *)
15268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15269 for as_dir in $PATH
15270 do
15271   IFS=$as_save_IFS
15272   test -z "$as_dir" && as_dir=.
15273   for ac_exec_ext in '' $ac_executable_extensions; do
15274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15275     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15277     break 2
15278   fi
15279 done
15280 done
15281
15282   ;;
15283 esac
15284 fi
15285 GCJX=$ac_cv_path_GCJX
15286
15287 if test -n "$GCJX"; then
15288   echo "$as_me:$LINENO: result: $GCJX" >&5
15289 echo "${ECHO_T}$GCJX" >&6
15290 else
15291   echo "$as_me:$LINENO: result: no" >&5
15292 echo "${ECHO_T}no" >&6
15293 fi
15294
15295   fi
15296
15297     else
15298       if test "x${withval}" != xno; then
15299
15300   if test "x" != x; then
15301     if test -f ""; then
15302       GCJX=""
15303     else
15304       # Extract the first word of """", so it can be a program name with args.
15305 set dummy ""; ac_word=$2
15306 echo "$as_me:$LINENO: checking for $ac_word" >&5
15307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15308 if test "${ac_cv_path_GCJX+set}" = set; then
15309   echo $ECHO_N "(cached) $ECHO_C" >&6
15310 else
15311   case $GCJX in
15312   [\\/]* | ?:[\\/]*)
15313   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15314   ;;
15315   *)
15316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 for as_dir in $PATH
15318 do
15319   IFS=$as_save_IFS
15320   test -z "$as_dir" && as_dir=.
15321   for ac_exec_ext in '' $ac_executable_extensions; do
15322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15323     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15325     break 2
15326   fi
15327 done
15328 done
15329
15330   ;;
15331 esac
15332 fi
15333 GCJX=$ac_cv_path_GCJX
15334
15335 if test -n "$GCJX"; then
15336   echo "$as_me:$LINENO: result: $GCJX" >&5
15337 echo "${ECHO_T}$GCJX" >&6
15338 else
15339   echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15341 fi
15342
15343     fi
15344   else
15345     # Extract the first word of ""gcjx"", so it can be a program name with args.
15346 set dummy "gcjx"; ac_word=$2
15347 echo "$as_me:$LINENO: checking for $ac_word" >&5
15348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15349 if test "${ac_cv_path_GCJX+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   case $GCJX in
15353   [\\/]* | ?:[\\/]*)
15354   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15355   ;;
15356   *)
15357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15358 for as_dir in $PATH
15359 do
15360   IFS=$as_save_IFS
15361   test -z "$as_dir" && as_dir=.
15362   for ac_exec_ext in '' $ac_executable_extensions; do
15363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15364     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15366     break 2
15367   fi
15368 done
15369 done
15370
15371   ;;
15372 esac
15373 fi
15374 GCJX=$ac_cv_path_GCJX
15375
15376 if test -n "$GCJX"; then
15377   echo "$as_me:$LINENO: result: $GCJX" >&5
15378 echo "${ECHO_T}$GCJX" >&6
15379 else
15380   echo "$as_me:$LINENO: result: no" >&5
15381 echo "${ECHO_T}no" >&6
15382 fi
15383
15384   fi
15385
15386       fi
15387     fi
15388     user_specified_javac=gcjx
15389
15390 else
15391
15392
15393   if test "x" != x; then
15394     if test -f ""; then
15395       GCJX=""
15396     else
15397       # Extract the first word of """", so it can be a program name with args.
15398 set dummy ""; ac_word=$2
15399 echo "$as_me:$LINENO: checking for $ac_word" >&5
15400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15401 if test "${ac_cv_path_GCJX+set}" = set; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   case $GCJX in
15405   [\\/]* | ?:[\\/]*)
15406   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15407   ;;
15408   *)
15409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410 for as_dir in $PATH
15411 do
15412   IFS=$as_save_IFS
15413   test -z "$as_dir" && as_dir=.
15414   for ac_exec_ext in '' $ac_executable_extensions; do
15415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15416     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15418     break 2
15419   fi
15420 done
15421 done
15422
15423   ;;
15424 esac
15425 fi
15426 GCJX=$ac_cv_path_GCJX
15427
15428 if test -n "$GCJX"; then
15429   echo "$as_me:$LINENO: result: $GCJX" >&5
15430 echo "${ECHO_T}$GCJX" >&6
15431 else
15432   echo "$as_me:$LINENO: result: no" >&5
15433 echo "${ECHO_T}no" >&6
15434 fi
15435
15436     fi
15437   else
15438     # Extract the first word of ""gcjx"", so it can be a program name with args.
15439 set dummy "gcjx"; ac_word=$2
15440 echo "$as_me:$LINENO: checking for $ac_word" >&5
15441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15442 if test "${ac_cv_path_GCJX+set}" = set; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   case $GCJX in
15446   [\\/]* | ?:[\\/]*)
15447   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
15448   ;;
15449   *)
15450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453   IFS=$as_save_IFS
15454   test -z "$as_dir" && as_dir=.
15455   for ac_exec_ext in '' $ac_executable_extensions; do
15456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15457     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
15458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15459     break 2
15460   fi
15461 done
15462 done
15463
15464   ;;
15465 esac
15466 fi
15467 GCJX=$ac_cv_path_GCJX
15468
15469 if test -n "$GCJX"; then
15470   echo "$as_me:$LINENO: result: $GCJX" >&5
15471 echo "${ECHO_T}$GCJX" >&6
15472 else
15473   echo "$as_me:$LINENO: result: no" >&5
15474 echo "${ECHO_T}no" >&6
15475 fi
15476
15477   fi
15478
15479
15480 fi;
15481
15482
15483
15484
15485 # Check whether --with-ecj or --without-ecj was given.
15486 if test "${with_ecj+set}" = set; then
15487   withval="$with_ecj"
15488
15489     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
15490
15491   if test "x${withval}" != x; then
15492     if test -f "${withval}"; then
15493       ECJ="${withval}"
15494     else
15495       # Extract the first word of ""${withval}"", so it can be a program name with args.
15496 set dummy "${withval}"; ac_word=$2
15497 echo "$as_me:$LINENO: checking for $ac_word" >&5
15498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15499 if test "${ac_cv_path_ECJ+set}" = set; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   case $ECJ in
15503   [\\/]* | ?:[\\/]*)
15504   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15505   ;;
15506   *)
15507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508 for as_dir in $PATH
15509 do
15510   IFS=$as_save_IFS
15511   test -z "$as_dir" && as_dir=.
15512   for ac_exec_ext in '' $ac_executable_extensions; do
15513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15514     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15516     break 2
15517   fi
15518 done
15519 done
15520
15521   ;;
15522 esac
15523 fi
15524 ECJ=$ac_cv_path_ECJ
15525
15526 if test -n "$ECJ"; then
15527   echo "$as_me:$LINENO: result: $ECJ" >&5
15528 echo "${ECHO_T}$ECJ" >&6
15529 else
15530   echo "$as_me:$LINENO: result: no" >&5
15531 echo "${ECHO_T}no" >&6
15532 fi
15533
15534     fi
15535   else
15536     # Extract the first word of ""ecj"", so it can be a program name with args.
15537 set dummy "ecj"; ac_word=$2
15538 echo "$as_me:$LINENO: checking for $ac_word" >&5
15539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15540 if test "${ac_cv_path_ECJ+set}" = set; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543   case $ECJ in
15544   [\\/]* | ?:[\\/]*)
15545   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15546   ;;
15547   *)
15548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15550 do
15551   IFS=$as_save_IFS
15552   test -z "$as_dir" && as_dir=.
15553   for ac_exec_ext in '' $ac_executable_extensions; do
15554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15555     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15557     break 2
15558   fi
15559 done
15560 done
15561
15562   ;;
15563 esac
15564 fi
15565 ECJ=$ac_cv_path_ECJ
15566
15567 if test -n "$ECJ"; then
15568   echo "$as_me:$LINENO: result: $ECJ" >&5
15569 echo "${ECHO_T}$ECJ" >&6
15570 else
15571   echo "$as_me:$LINENO: result: no" >&5
15572 echo "${ECHO_T}no" >&6
15573 fi
15574
15575   fi
15576
15577     else
15578       if test "x${withval}" != xno; then
15579
15580   if test "x" != x; then
15581     if test -f ""; then
15582       ECJ=""
15583     else
15584       # Extract the first word of """", so it can be a program name with args.
15585 set dummy ""; ac_word=$2
15586 echo "$as_me:$LINENO: checking for $ac_word" >&5
15587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15588 if test "${ac_cv_path_ECJ+set}" = set; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591   case $ECJ in
15592   [\\/]* | ?:[\\/]*)
15593   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15594   ;;
15595   *)
15596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15597 for as_dir in $PATH
15598 do
15599   IFS=$as_save_IFS
15600   test -z "$as_dir" && as_dir=.
15601   for ac_exec_ext in '' $ac_executable_extensions; do
15602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15603     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15605     break 2
15606   fi
15607 done
15608 done
15609
15610   ;;
15611 esac
15612 fi
15613 ECJ=$ac_cv_path_ECJ
15614
15615 if test -n "$ECJ"; then
15616   echo "$as_me:$LINENO: result: $ECJ" >&5
15617 echo "${ECHO_T}$ECJ" >&6
15618 else
15619   echo "$as_me:$LINENO: result: no" >&5
15620 echo "${ECHO_T}no" >&6
15621 fi
15622
15623     fi
15624   else
15625     # Extract the first word of ""ecj"", so it can be a program name with args.
15626 set dummy "ecj"; ac_word=$2
15627 echo "$as_me:$LINENO: checking for $ac_word" >&5
15628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15629 if test "${ac_cv_path_ECJ+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   case $ECJ in
15633   [\\/]* | ?:[\\/]*)
15634   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15635   ;;
15636   *)
15637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640   IFS=$as_save_IFS
15641   test -z "$as_dir" && as_dir=.
15642   for ac_exec_ext in '' $ac_executable_extensions; do
15643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15644     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15646     break 2
15647   fi
15648 done
15649 done
15650
15651   ;;
15652 esac
15653 fi
15654 ECJ=$ac_cv_path_ECJ
15655
15656 if test -n "$ECJ"; then
15657   echo "$as_me:$LINENO: result: $ECJ" >&5
15658 echo "${ECHO_T}$ECJ" >&6
15659 else
15660   echo "$as_me:$LINENO: result: no" >&5
15661 echo "${ECHO_T}no" >&6
15662 fi
15663
15664   fi
15665
15666       fi
15667     fi
15668     user_specified_javac=ecj
15669
15670 else
15671
15672
15673   if test "x" != x; then
15674     if test -f ""; then
15675       ECJ=""
15676     else
15677       # Extract the first word of """", so it can be a program name with args.
15678 set dummy ""; ac_word=$2
15679 echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15681 if test "${ac_cv_path_ECJ+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   case $ECJ in
15685   [\\/]* | ?:[\\/]*)
15686   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15687   ;;
15688   *)
15689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15691 do
15692   IFS=$as_save_IFS
15693   test -z "$as_dir" && as_dir=.
15694   for ac_exec_ext in '' $ac_executable_extensions; do
15695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15696     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15698     break 2
15699   fi
15700 done
15701 done
15702
15703   ;;
15704 esac
15705 fi
15706 ECJ=$ac_cv_path_ECJ
15707
15708 if test -n "$ECJ"; then
15709   echo "$as_me:$LINENO: result: $ECJ" >&5
15710 echo "${ECHO_T}$ECJ" >&6
15711 else
15712   echo "$as_me:$LINENO: result: no" >&5
15713 echo "${ECHO_T}no" >&6
15714 fi
15715
15716     fi
15717   else
15718     # Extract the first word of ""ecj"", so it can be a program name with args.
15719 set dummy "ecj"; ac_word=$2
15720 echo "$as_me:$LINENO: checking for $ac_word" >&5
15721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15722 if test "${ac_cv_path_ECJ+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   case $ECJ in
15726   [\\/]* | ?:[\\/]*)
15727   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
15728   ;;
15729   *)
15730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15731 for as_dir in $PATH
15732 do
15733   IFS=$as_save_IFS
15734   test -z "$as_dir" && as_dir=.
15735   for ac_exec_ext in '' $ac_executable_extensions; do
15736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15737     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
15738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15739     break 2
15740   fi
15741 done
15742 done
15743
15744   ;;
15745 esac
15746 fi
15747 ECJ=$ac_cv_path_ECJ
15748
15749 if test -n "$ECJ"; then
15750   echo "$as_me:$LINENO: result: $ECJ" >&5
15751 echo "${ECHO_T}$ECJ" >&6
15752 else
15753   echo "$as_me:$LINENO: result: no" >&5
15754 echo "${ECHO_T}no" >&6
15755 fi
15756
15757   fi
15758
15759
15760 fi;
15761
15762
15763
15764   if test "x${user_specified_javac}" = x; then
15765
15766
15767 if test "x${GCJ}" != x; then
15768   FOUND_GCJ_TRUE=
15769   FOUND_GCJ_FALSE='#'
15770 else
15771   FOUND_GCJ_TRUE='#'
15772   FOUND_GCJ_FALSE=
15773 fi
15774
15775
15776
15777 if test "x${JIKES}" != x; then
15778   FOUND_JIKES_TRUE=
15779   FOUND_JIKES_FALSE='#'
15780 else
15781   FOUND_JIKES_TRUE='#'
15782   FOUND_JIKES_FALSE=
15783 fi
15784
15785
15786
15787 if test "x${ECJ}" != x; then
15788   FOUND_ECJ_TRUE=
15789   FOUND_ECJ_FALSE='#'
15790 else
15791   FOUND_ECJ_TRUE='#'
15792   FOUND_ECJ_FALSE=
15793 fi
15794
15795   else
15796
15797
15798 if test "x${user_specified_javac}" = xgcj; then
15799   FOUND_GCJ_TRUE=
15800   FOUND_GCJ_FALSE='#'
15801 else
15802   FOUND_GCJ_TRUE='#'
15803   FOUND_GCJ_FALSE=
15804 fi
15805
15806
15807
15808 if test "x${user_specified_javac}" = xjikes; then
15809   FOUND_JIKES_TRUE=
15810   FOUND_JIKES_FALSE='#'
15811 else
15812   FOUND_JIKES_TRUE='#'
15813   FOUND_JIKES_FALSE=
15814 fi
15815
15816
15817
15818 if test "x${user_specified_javac}" = xecj; then
15819   FOUND_ECJ_TRUE=
15820   FOUND_ECJ_FALSE='#'
15821 else
15822   FOUND_ECJ_TRUE='#'
15823   FOUND_ECJ_FALSE=
15824 fi
15825
15826   fi
15827
15828
15829 if test "x${user_specified_javac}" = xkjc; then
15830   FOUND_KJC_TRUE=
15831   FOUND_KJC_FALSE='#'
15832 else
15833   FOUND_KJC_TRUE='#'
15834   FOUND_KJC_FALSE=
15835 fi
15836
15837
15838
15839 if test "x${user_specified_javac}" = xgcjx; then
15840   FOUND_GCJX_TRUE=
15841   FOUND_GCJX_FALSE='#'
15842 else
15843   FOUND_GCJX_TRUE='#'
15844   FOUND_GCJX_FALSE=
15845 fi
15846
15847
15848   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
15849       { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
15850 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
15851    { (exit 1); exit 1; }; }
15852   fi
15853
15854
15855
15856
15857 # Check whether --with-classpath or --without-classpath was given.
15858 if test "${with_classpath+set}" = set; then
15859   withval="$with_classpath"
15860
15861     if test "x${withval}" = xyes; then
15862       # set user classpath to CLASSPATH from env
15863       echo "$as_me:$LINENO: checking for classlib" >&5
15864 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
15865       USER_CLASSLIB=${CLASSPATH}
15866
15867       echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
15868 echo "${ECHO_T}${USER_CLASSLIB}" >&6
15869       conditional_with_classlib=true
15870     elif test "x${withval}" != x && test "x${withval}" != xno; then
15871       # set user classpath to specified value
15872       echo "$as_me:$LINENO: checking for classlib" >&5
15873 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
15874       USER_CLASSLIB=${withval}
15875
15876       echo "$as_me:$LINENO: result: ${withval}" >&5
15877 echo "${ECHO_T}${withval}" >&6
15878       conditional_with_classlib=true
15879     fi
15880
15881 else
15882    conditional_with_classlib=false
15883 fi;
15884
15885
15886 if test "x${conditional_with_classlib}" = xtrue; then
15887   USER_SPECIFIED_CLASSLIB_TRUE=
15888   USER_SPECIFIED_CLASSLIB_FALSE='#'
15889 else
15890   USER_SPECIFIED_CLASSLIB_TRUE='#'
15891   USER_SPECIFIED_CLASSLIB_FALSE=
15892 fi
15893
15894
15895
15896 # Check whether --with-vm-classes or --without-vm-classes was given.
15897 if test "${with_vm_classes+set}" = set; then
15898   withval="$with_vm_classes"
15899   vm_classes="$with_vm_classes"
15900 else
15901   vm_classes='${top_srcdir}/vm/reference'
15902 fi;
15903
15904
15905
15906 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15907 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15908     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15909 if test "${enable_maintainer_mode+set}" = set; then
15910   enableval="$enable_maintainer_mode"
15911   USE_MAINTAINER_MODE=$enableval
15912 else
15913   USE_MAINTAINER_MODE=no
15914 fi;
15915   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
15916 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
15917
15918
15919 if test $USE_MAINTAINER_MODE = yes; then
15920   MAINTAINER_MODE_TRUE=
15921   MAINTAINER_MODE_FALSE='#'
15922 else
15923   MAINTAINER_MODE_TRUE='#'
15924   MAINTAINER_MODE_FALSE=
15925 fi
15926
15927   MAINT=$MAINTAINER_MODE_TRUE
15928
15929
15930
15931 # Check whether --enable-debug or --disable-debug was given.
15932 if test "${enable_debug+set}" = set; then
15933   enableval="$enable_debug"
15934   case "${enableval}" in
15935                 yes)
15936                 LIBDEBUG="true"
15937
15938 cat >>confdefs.h <<\_ACEOF
15939 #define DEBUG 1
15940 _ACEOF
15941
15942                 ;;
15943                 no)   LIBDEBUG="false" ;;
15944                 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
15945 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
15946    { (exit 1); exit 1; }; } ;;
15947               esac
15948 else
15949   LIBDEBUG="false"
15950 fi;
15951
15952
15953 # Check whether --enable-load-library or --disable-load-library was given.
15954 if test "${enable_load_library+set}" = set; then
15955   enableval="$enable_load_library"
15956   case "${enableval}" in
15957                 yes) INIT_LOAD_LIBRARY="true" ;;
15958                 no) INIT_LOAD_LIBRARY="false" ;;
15959                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
15960 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
15961    { (exit 1); exit 1; }; } ;;
15962               esac
15963 else
15964   INIT_LOAD_LIBRARY="true"
15965 fi;
15966
15967
15968
15969 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
15970 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
15971   enableval="$enable_java_lang_system_explicit_initialization"
15972   case "${enableval}" in
15973                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
15974                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
15975                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
15976 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
15977    { (exit 1); exit 1; }; } ;;
15978               esac
15979 else
15980   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
15981 fi;
15982
15983
15984
15985 REMOVE=""
15986
15987
15988 # Extract the first word of "mkdir", so it can be a program name with args.
15989 set dummy mkdir; ac_word=$2
15990 echo "$as_me:$LINENO: checking for $ac_word" >&5
15991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15992 if test "${ac_cv_path_MKDIR+set}" = set; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   case $MKDIR in
15996   [\\/]* | ?:[\\/]*)
15997   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
15998   ;;
15999   *)
16000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16001 for as_dir in $PATH
16002 do
16003   IFS=$as_save_IFS
16004   test -z "$as_dir" && as_dir=.
16005   for ac_exec_ext in '' $ac_executable_extensions; do
16006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16007     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
16008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16009     break 2
16010   fi
16011 done
16012 done
16013
16014   ;;
16015 esac
16016 fi
16017 MKDIR=$ac_cv_path_MKDIR
16018
16019 if test -n "$MKDIR"; then
16020   echo "$as_me:$LINENO: result: $MKDIR" >&5
16021 echo "${ECHO_T}$MKDIR" >&6
16022 else
16023   echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6
16025 fi
16026
16027 # Extract the first word of "cp", so it can be a program name with args.
16028 set dummy cp; ac_word=$2
16029 echo "$as_me:$LINENO: checking for $ac_word" >&5
16030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16031 if test "${ac_cv_path_CP+set}" = set; then
16032   echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034   case $CP in
16035   [\\/]* | ?:[\\/]*)
16036   ac_cv_path_CP="$CP" # Let the user override the test with a path.
16037   ;;
16038   *)
16039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16040 for as_dir in $PATH
16041 do
16042   IFS=$as_save_IFS
16043   test -z "$as_dir" && as_dir=.
16044   for ac_exec_ext in '' $ac_executable_extensions; do
16045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16046     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
16047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16048     break 2
16049   fi
16050 done
16051 done
16052
16053   ;;
16054 esac
16055 fi
16056 CP=$ac_cv_path_CP
16057
16058 if test -n "$CP"; then
16059   echo "$as_me:$LINENO: result: $CP" >&5
16060 echo "${ECHO_T}$CP" >&6
16061 else
16062   echo "$as_me:$LINENO: result: no" >&5
16063 echo "${ECHO_T}no" >&6
16064 fi
16065
16066 # Extract the first word of "date", so it can be a program name with args.
16067 set dummy date; ac_word=$2
16068 echo "$as_me:$LINENO: checking for $ac_word" >&5
16069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16070 if test "${ac_cv_path_DATE+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   case $DATE in
16074   [\\/]* | ?:[\\/]*)
16075   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
16076   ;;
16077   *)
16078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16079 for as_dir in $PATH
16080 do
16081   IFS=$as_save_IFS
16082   test -z "$as_dir" && as_dir=.
16083   for ac_exec_ext in '' $ac_executable_extensions; do
16084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16085     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
16086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16087     break 2
16088   fi
16089 done
16090 done
16091
16092   ;;
16093 esac
16094 fi
16095 DATE=$ac_cv_path_DATE
16096
16097 if test -n "$DATE"; then
16098   echo "$as_me:$LINENO: result: $DATE" >&5
16099 echo "${ECHO_T}$DATE" >&6
16100 else
16101   echo "$as_me:$LINENO: result: no" >&5
16102 echo "${ECHO_T}no" >&6
16103 fi
16104
16105
16106 # Extract the first word of "find", so it can be a program name with args.
16107 set dummy find; ac_word=$2
16108 echo "$as_me:$LINENO: checking for $ac_word" >&5
16109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16110 if test "${ac_cv_path_FIND+set}" = set; then
16111   echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113   case $FIND in
16114   [\\/]* | ?:[\\/]*)
16115   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
16116   ;;
16117   *)
16118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $PATH
16120 do
16121   IFS=$as_save_IFS
16122   test -z "$as_dir" && as_dir=.
16123   for ac_exec_ext in '' $ac_executable_extensions; do
16124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16125     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
16126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16127     break 2
16128   fi
16129 done
16130 done
16131
16132   ;;
16133 esac
16134 fi
16135 FIND=$ac_cv_path_FIND
16136
16137 if test -n "$FIND"; then
16138   echo "$as_me:$LINENO: result: $FIND" >&5
16139 echo "${ECHO_T}$FIND" >&6
16140 else
16141   echo "$as_me:$LINENO: result: no" >&5
16142 echo "${ECHO_T}no" >&6
16143 fi
16144
16145
16146
16147   # Extract the first word of "zip", so it can be a program name with args.
16148 set dummy zip; 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_ZIP+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   case $ZIP in
16155   [\\/]* | ?:[\\/]*)
16156   ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP
16177
16178 if test -n "$ZIP"; then
16179   echo "$as_me:$LINENO: result: $ZIP" >&5
16180 echo "${ECHO_T}$ZIP" >&6
16181 else
16182   echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6
16184 fi
16185
16186
16187 # Check whether --with-fastjar or --without-fastjar was given.
16188 if test "${with_fastjar+set}" = set; then
16189   withval="$with_fastjar"
16190
16191                 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
16192 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
16193                 FASTJAR=${withval}
16194                 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
16195 echo "${ECHO_T}${FASTJAR}" >&6
16196
16197 else
16198   # Extract the first word of "fastjar", so it can be a program name with args.
16199 set dummy fastjar; ac_word=$2
16200 echo "$as_me:$LINENO: checking for $ac_word" >&5
16201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16202 if test "${ac_cv_path_FASTJAR+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   case $FASTJAR in
16206   [\\/]* | ?:[\\/]*)
16207   ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
16208   ;;
16209   *)
16210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16211 for as_dir in $PATH
16212 do
16213   IFS=$as_save_IFS
16214   test -z "$as_dir" && as_dir=.
16215   for ac_exec_ext in '' $ac_executable_extensions; do
16216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16217     ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
16218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16219     break 2
16220   fi
16221 done
16222 done
16223
16224   ;;
16225 esac
16226 fi
16227 FASTJAR=$ac_cv_path_FASTJAR
16228
16229 if test -n "$FASTJAR"; then
16230   echo "$as_me:$LINENO: result: $FASTJAR" >&5
16231 echo "${ECHO_T}$FASTJAR" >&6
16232 else
16233   echo "$as_me:$LINENO: result: no" >&5
16234 echo "${ECHO_T}no" >&6
16235 fi
16236
16237 fi;
16238   if test x"${FASTJAR}" != x; then
16239     ZIP=""
16240   fi
16241
16242
16243 # Check whether --with-glibj or --without-glibj was given.
16244 if test "${with_glibj+set}" = set; then
16245   withval="$with_glibj"
16246
16247                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
16248                   install_class_files=no
16249                   build_class_files=yes
16250                   use_zip=yes
16251                 elif test "x${withval}" = xboth; then
16252                   install_class_files=yes
16253                   build_class_files=yes
16254                   use_zip=yes
16255                 elif test "x${withval}" = xflat; then
16256                   install_class_files=yes
16257                   build_class_files=yes
16258                   use_zip=no
16259                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
16260                   install_class_files=no
16261                   build_class_files=no
16262                   use_zip=no
16263                 elif test "x${withval}" = xbuild; then
16264                   install_class_files=no
16265                   build_class_files=yes
16266                   use_zip=no
16267                 else
16268                   { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
16269 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
16270    { (exit 1); exit 1; }; }
16271                 fi
16272
16273 else
16274
16275                 install_class_files=no
16276                 use_zip=yes
16277
16278 fi;
16279
16280
16281 if test "x${use_zip}" = xyes; then
16282   INSTALL_GLIBJ_ZIP_TRUE=
16283   INSTALL_GLIBJ_ZIP_FALSE='#'
16284 else
16285   INSTALL_GLIBJ_ZIP_TRUE='#'
16286   INSTALL_GLIBJ_ZIP_FALSE=
16287 fi
16288
16289
16290
16291 if test "x${install_class_files}" = xyes; then
16292   INSTALL_CLASS_FILES_TRUE=
16293   INSTALL_CLASS_FILES_FALSE='#'
16294 else
16295   INSTALL_CLASS_FILES_TRUE='#'
16296   INSTALL_CLASS_FILES_FALSE=
16297 fi
16298
16299
16300
16301 if test "x${build_class_files}" = xyes; then
16302   BUILD_CLASS_FILES_TRUE=
16303   BUILD_CLASS_FILES_FALSE='#'
16304 else
16305   BUILD_CLASS_FILES_TRUE='#'
16306   BUILD_CLASS_FILES_FALSE=
16307 fi
16308
16309
16310   # Check whether --enable-examples or --disable-examples was given.
16311 if test "${enable_examples+set}" = set; then
16312   enableval="$enable_examples"
16313   case "${enableval}" in
16314                   yes) EXAMPLESDIR="examples" ;;
16315                   no) EXAMPLESDIR="" ;;
16316                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
16317 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
16318    { (exit 1); exit 1; }; } ;;
16319                 esac
16320 else
16321   EXAMPLESDIR="examples"
16322 fi;
16323   if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
16324     EXAMPLESDIR=""
16325   fi
16326
16327
16328
16329
16330
16331 # Check whether --with-gjdoc or --without-gjdoc was given.
16332 if test "${with_gjdoc+set}" = set; then
16333   withval="$with_gjdoc"
16334   if test "x${withval}" = xno; then
16335                  WITH_GJDOC=no;
16336                elif test "x${withval}" = xyes -o "x{withval}" = x; then
16337                  WITH_GJDOC=yes;
16338                  # Extract the first word of "gjdoc", so it can be a program name with args.
16339 set dummy gjdoc; ac_word=$2
16340 echo "$as_me:$LINENO: checking for $ac_word" >&5
16341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16342 if test "${ac_cv_path_GJDOC+set}" = set; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345   case $GJDOC in
16346   [\\/]* | ?:[\\/]*)
16347   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
16348   ;;
16349   *)
16350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16351 for as_dir in $PATH
16352 do
16353   IFS=$as_save_IFS
16354   test -z "$as_dir" && as_dir=.
16355   for ac_exec_ext in '' $ac_executable_extensions; do
16356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16357     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
16358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16359     break 2
16360   fi
16361 done
16362 done
16363
16364   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
16365   ;;
16366 esac
16367 fi
16368 GJDOC=$ac_cv_path_GJDOC
16369
16370 if test -n "$GJDOC"; then
16371   echo "$as_me:$LINENO: result: $GJDOC" >&5
16372 echo "${ECHO_T}$GJDOC" >&6
16373 else
16374   echo "$as_me:$LINENO: result: no" >&5
16375 echo "${ECHO_T}no" >&6
16376 fi
16377
16378                  if test "x${GJDOC}" = xno; then
16379                    { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
16380 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
16381    { (exit 1); exit 1; }; };
16382                  fi
16383                else
16384                  WITH_GJDOC=yes
16385                  GJDOC="${withval}"
16386                  as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
16387 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
16388 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_File+set}\" = set"; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392   test "$cross_compiling" = yes &&
16393   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16394 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16395    { (exit 1); exit 1; }; }
16396 if test -r "${GJDOC}"; then
16397   eval "$as_ac_File=yes"
16398 else
16399   eval "$as_ac_File=no"
16400 fi
16401 fi
16402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
16403 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
16404 if test `eval echo '${'$as_ac_File'}'` = yes; then
16405   :
16406 else
16407   { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
16408 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
16409    { (exit 1); exit 1; }; }
16410 fi
16411
16412                fi
16413 else
16414   WITH_GJDOC=no
16415 fi;
16416
16417
16418
16419 if test "x${WITH_GJDOC}" = xyes; then
16420   CREATE_API_DOCS_TRUE=
16421   CREATE_API_DOCS_FALSE='#'
16422 else
16423   CREATE_API_DOCS_TRUE='#'
16424   CREATE_API_DOCS_FALSE=
16425 fi
16426
16427
16428
16429
16430
16431 # Check whether --with-jay or --without-jay was given.
16432 if test "${with_jay+set}" = set; then
16433   withval="$with_jay"
16434
16435     if test -d "${withval}"; then
16436       JAY_DIR_PATH="${withval}"
16437       # Extract the first word of "jay", so it can be a program name with args.
16438 set dummy jay; ac_word=$2
16439 echo "$as_me:$LINENO: checking for $ac_word" >&5
16440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16441 if test "${ac_cv_path_JAY+set}" = set; then
16442   echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444   case $JAY in
16445   [\\/]* | ?:[\\/]*)
16446   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
16447   ;;
16448   *)
16449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16450 for as_dir in ${JAY_DIR_PATH}
16451 do
16452   IFS=$as_save_IFS
16453   test -z "$as_dir" && as_dir=.
16454   for ac_exec_ext in '' $ac_executable_extensions; do
16455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16456     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
16457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16458     break 2
16459   fi
16460 done
16461 done
16462
16463   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
16464   ;;
16465 esac
16466 fi
16467 JAY=$ac_cv_path_JAY
16468
16469 if test -n "$JAY"; then
16470   echo "$as_me:$LINENO: result: $JAY" >&5
16471 echo "${ECHO_T}$JAY" >&6
16472 else
16473   echo "$as_me:$LINENO: result: no" >&5
16474 echo "${ECHO_T}no" >&6
16475 fi
16476
16477       if test "x${JAY}" = xno; then
16478         { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
16479 echo "$as_me: error: \"jay executable not found\"" >&2;}
16480    { (exit 1); exit 1; }; };
16481       fi
16482     else
16483       JAY_DIR_PATH=`dirname "${withval}"`
16484       JAY="${withval}"
16485
16486     fi
16487     JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
16488     as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
16489 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
16490 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
16491 if eval "test \"\${$as_ac_File+set}\" = set"; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494   test "$cross_compiling" = yes &&
16495   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16496 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16497    { (exit 1); exit 1; }; }
16498 if test -r "${JAY_SKELETON}"; then
16499   eval "$as_ac_File=yes"
16500 else
16501   eval "$as_ac_File=no"
16502 fi
16503 fi
16504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
16505 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
16506 if test `eval echo '${'$as_ac_File'}'` = yes; then
16507   :
16508 else
16509   { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
16510 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
16511    { (exit 1); exit 1; }; }
16512 fi
16513
16514     JAY_FOUND=yes
16515
16516 else
16517
16518     JAY_FOUND=no
16519
16520 fi;
16521
16522
16523 if test "x${JAY_FOUND}" = xyes; then
16524   REGEN_PARSERS_TRUE=
16525   REGEN_PARSERS_FALSE='#'
16526 else
16527   REGEN_PARSERS_TRUE='#'
16528   REGEN_PARSERS_FALSE=
16529 fi
16530
16531
16532
16533 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
16534 if test "${enable_portable_native_sync+set}" = set; then
16535   enableval="$enable_portable_native_sync"
16536   case "${enableval}" in
16537                 yes)
16538
16539 cat >>confdefs.h <<\_ACEOF
16540 #define PORTABLE_NATIVE_SYNC 1
16541 _ACEOF
16542
16543                      ;;
16544                 no)  ;;
16545                 *)
16546                      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
16547 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
16548    { (exit 1); exit 1; }; }
16549                      ;;
16550               esac
16551 fi;
16552
16553 # ------ AX CREATE STDINT H -------------------------------------
16554 echo "$as_me:$LINENO: checking for stdint types" >&5
16555 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
16556 ac_stdint_h=`echo include/config-int.h`
16557 # try to shortcircuit - if the default include path of the compiler
16558 # can find a "stdint.h" header then we assume that all compilers can.
16559 if test "${ac_cv_header_stdint_t+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562
16563 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
16564 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
16565 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
16566 cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h.  */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h.  */
16572 #include <stdint.h>
16573 int
16574 main ()
16575 {
16576 int_least32_t v = 0;
16577   ;
16578   return 0;
16579 }
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16583   (eval $ac_compile) 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } &&
16590          { ac_try='test -z "$ac_c_werror_flag"
16591                          || test ! -s conftest.err'
16592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593   (eval $ac_try) 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; } &&
16597          { ac_try='test -s conftest.$ac_objext'
16598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599   (eval $ac_try) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }; }; then
16603   ac_cv_stdint_result="(assuming C99 compatible system)"
16604  ac_cv_header_stdint_t="stdint.h";
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 ac_cv_header_stdint_t=""
16610 fi
16611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16612 CXXFLAGS="$old_CXXFLAGS"
16613 CPPFLAGS="$old_CPPFLAGS"
16614 CFLAGS="$old_CFLAGS"
16615 fi
16616
16617
16618 v="... $ac_cv_header_stdint_h"
16619 if test "$ac_stdint_h" = "stdint.h" ; then
16620  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
16621 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
16622 elif test "$ac_stdint_h" = "inttypes.h" ; then
16623  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
16624 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
16625 elif test "_$ac_cv_header_stdint_t" = "_" ; then
16626  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
16627 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
16628 else
16629  ac_cv_header_stdint="$ac_cv_header_stdint_t"
16630  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
16631 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
16632 fi
16633
16634 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
16635
16636
16637 inttype_headers=`echo  | sed -e 's/,/ /g'`
16638
16639 ac_cv_stdint_result="(no helpful system typedefs seen)"
16640
16641 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
16642 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
16643 if test "${ac_cv_header_stdint_x+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646
16647  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
16648   echo "$as_me:$LINENO: result: (..)" >&5
16649 echo "${ECHO_T}(..)" >&6
16650   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
16651    unset ac_cv_type_uintptr_t
16652    unset ac_cv_type_uint64_t
16653    echo "$as_me:$LINENO: checking for uintptr_t" >&5
16654 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16655 if test "${ac_cv_type_uintptr_t+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658   cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664 #include <$i>
16665
16666 int
16667 main ()
16668 {
16669 if ((uintptr_t *) 0)
16670   return 0;
16671 if (sizeof (uintptr_t))
16672   return 0;
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16679   (eval $ac_compile) 2>conftest.er1
16680   ac_status=$?
16681   grep -v '^ *+' conftest.er1 >conftest.err
16682   rm -f conftest.er1
16683   cat conftest.err >&5
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); } &&
16686          { ac_try='test -z "$ac_c_werror_flag"
16687                          || test ! -s conftest.err'
16688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689   (eval $ac_try) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; } &&
16693          { ac_try='test -s conftest.$ac_objext'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; }; then
16699   ac_cv_type_uintptr_t=yes
16700 else
16701   echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704 ac_cv_type_uintptr_t=no
16705 fi
16706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16707 fi
16708 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16709 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16710 if test $ac_cv_type_uintptr_t = yes; then
16711   ac_cv_header_stdint_x=$i
16712 else
16713   continue
16714 fi
16715
16716    echo "$as_me:$LINENO: checking for uint64_t" >&5
16717 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16718 if test "${ac_cv_type_uint64_t+set}" = set; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 #include<$i>
16728
16729 int
16730 main ()
16731 {
16732 if ((uint64_t *) 0)
16733   return 0;
16734 if (sizeof (uint64_t))
16735   return 0;
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742   (eval $ac_compile) 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -z "$ac_c_werror_flag"
16750                          || test ! -s conftest.err'
16751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752   (eval $ac_try) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; } &&
16756          { ac_try='test -s conftest.$ac_objext'
16757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758   (eval $ac_try) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; }; then
16762   ac_cv_type_uint64_t=yes
16763 else
16764   echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_cv_type_uint64_t=no
16768 fi
16769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770 fi
16771 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16772 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16773 if test $ac_cv_type_uint64_t = yes; then
16774   and64="/uint64_t"
16775 else
16776   and64=""
16777 fi
16778
16779       stdint.h inttypes.h sys/inttypes.h $inttype_headers
16780  break
16781   done
16782   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
16783 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
16784
16785 fi
16786 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
16787 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
16788
16789
16790 if test "_$ac_cv_header_stdint_x" = "_" ; then
16791
16792 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16793 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16794 if test "${ac_cv_header_stdint_o+set}" = set; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797
16798  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
16799   echo "$as_me:$LINENO: result: (..)" >&5
16800 echo "${ECHO_T}(..)" >&6
16801   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
16802    unset ac_cv_type_uint32_t
16803    unset ac_cv_type_uint64_t
16804    echo "$as_me:$LINENO: checking for uint32_t" >&5
16805 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16806 if test "${ac_cv_type_uint32_t+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 #include <$i>
16816
16817 int
16818 main ()
16819 {
16820 if ((uint32_t *) 0)
16821   return 0;
16822 if (sizeof (uint32_t))
16823   return 0;
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830   (eval $ac_compile) 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -z "$ac_c_werror_flag"
16838                          || test ! -s conftest.err'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; } &&
16844          { ac_try='test -s conftest.$ac_objext'
16845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846   (eval $ac_try) 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; }; then
16850   ac_cv_type_uint32_t=yes
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 ac_cv_type_uint32_t=no
16856 fi
16857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16858 fi
16859 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16860 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16861 if test $ac_cv_type_uint32_t = yes; then
16862   ac_cv_header_stdint_o=$i
16863 else
16864   continue
16865 fi
16866
16867    echo "$as_me:$LINENO: checking for uint64_t" >&5
16868 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16869 if test "${ac_cv_type_uint64_t+set}" = set; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872   cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 #include<$i>
16879
16880 int
16881 main ()
16882 {
16883 if ((uint64_t *) 0)
16884   return 0;
16885 if (sizeof (uint64_t))
16886   return 0;
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893   (eval $ac_compile) 2>conftest.er1
16894   ac_status=$?
16895   grep -v '^ *+' conftest.er1 >conftest.err
16896   rm -f conftest.er1
16897   cat conftest.err >&5
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); } &&
16900          { ac_try='test -z "$ac_c_werror_flag"
16901                          || test ! -s conftest.err'
16902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903   (eval $ac_try) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; } &&
16907          { ac_try='test -s conftest.$ac_objext'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   ac_cv_type_uint64_t=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 ac_cv_type_uint64_t=no
16919 fi
16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921 fi
16922 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16923 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16924 if test $ac_cv_type_uint64_t = yes; then
16925   and64="/uint64_t"
16926 else
16927   and64=""
16928 fi
16929
16930       inttypes.h sys/inttypes.h stdint.h $inttype_headers
16931  break
16932    break;
16933   done
16934   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16935 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16936
16937 fi
16938 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
16939 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
16940
16941 fi
16942
16943 if test "_$ac_cv_header_stdint_x" = "_" ; then
16944 if test "_$ac_cv_header_stdint_o" = "_" ; then
16945
16946 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16947 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16948 if test "${ac_cv_header_stdint_u+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951
16952  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16953   echo "$as_me:$LINENO: result: (..)" >&5
16954 echo "${ECHO_T}(..)" >&6
16955   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16956    unset ac_cv_type_u_int32_t
16957    unset ac_cv_type_u_int64_t
16958    echo "$as_me:$LINENO: checking for u_int32_t" >&5
16959 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16960 if test "${ac_cv_type_u_int32_t+set}" = set; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969 #include <$i>
16970
16971 int
16972 main ()
16973 {
16974 if ((u_int32_t *) 0)
16975   return 0;
16976 if (sizeof (u_int32_t))
16977   return 0;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984   (eval $ac_compile) 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -z "$ac_c_werror_flag"
16992                          || test ! -s conftest.err'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; } &&
16998          { ac_try='test -s conftest.$ac_objext'
16999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000   (eval $ac_try) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; }; then
17004   ac_cv_type_u_int32_t=yes
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_cv_type_u_int32_t=no
17010 fi
17011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17012 fi
17013 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
17014 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
17015 if test $ac_cv_type_u_int32_t = yes; then
17016   ac_cv_header_stdint_u=$i
17017 else
17018   continue
17019 fi
17020
17021    echo "$as_me:$LINENO: checking for u_int64_t" >&5
17022 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
17023 if test "${ac_cv_type_u_int64_t+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032 #include<$i>
17033
17034 int
17035 main ()
17036 {
17037 if ((u_int64_t *) 0)
17038   return 0;
17039 if (sizeof (u_int64_t))
17040   return 0;
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047   (eval $ac_compile) 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } &&
17054          { ac_try='test -z "$ac_c_werror_flag"
17055                          || test ! -s conftest.err'
17056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057   (eval $ac_try) 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } &&
17061          { ac_try='test -s conftest.$ac_objext'
17062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063   (eval $ac_try) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   ac_cv_type_u_int64_t=yes
17068 else
17069   echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 ac_cv_type_u_int64_t=no
17073 fi
17074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17075 fi
17076 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17077 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
17078 if test $ac_cv_type_u_int64_t = yes; then
17079   and64="/u_int64_t"
17080 else
17081   and64=""
17082 fi
17083
17084       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
17085  break
17086    break;
17087   done
17088   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
17089 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
17090
17091 fi
17092 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
17093 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
17094
17095 fi fi
17096
17097 if test "_$ac_cv_header_stdint_x" = "_" ; then
17098    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
17099 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
17100    echo "$as_me:$LINENO: result: (..)" >&5
17101 echo "${ECHO_T}(..)" >&6
17102
17103    echo "$as_me:$LINENO: checking for char" >&5
17104 echo $ECHO_N "checking for char... $ECHO_C" >&6
17105 if test "${ac_cv_type_char+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114 $ac_includes_default
17115 int
17116 main ()
17117 {
17118 if ((char *) 0)
17119   return 0;
17120 if (sizeof (char))
17121   return 0;
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17128   (eval $ac_compile) 2>conftest.er1
17129   ac_status=$?
17130   grep -v '^ *+' conftest.er1 >conftest.err
17131   rm -f conftest.er1
17132   cat conftest.err >&5
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); } &&
17135          { ac_try='test -z "$ac_c_werror_flag"
17136                          || test ! -s conftest.err'
17137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138   (eval $ac_try) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; } &&
17142          { ac_try='test -s conftest.$ac_objext'
17143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144   (eval $ac_try) 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; }; then
17148   ac_cv_type_char=yes
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 ac_cv_type_char=no
17154 fi
17155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17156 fi
17157 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17158 echo "${ECHO_T}$ac_cv_type_char" >&6
17159
17160 echo "$as_me:$LINENO: checking size of char" >&5
17161 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17162 if test "${ac_cv_sizeof_char+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   if test "$ac_cv_type_char" = yes; then
17166   # The cast to unsigned long works around a bug in the HP C Compiler
17167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17169   # This bug is HP SR number 8606223364.
17170   if test "$cross_compiling" = yes; then
17171   # Depending upon the size, compute the lo and hi bounds.
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178 $ac_includes_default
17179 int
17180 main ()
17181 {
17182 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17183 test_array [0] = 0
17184
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191   (eval $ac_compile) 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } &&
17198          { ac_try='test -z "$ac_c_werror_flag"
17199                          || test ! -s conftest.err'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest.$ac_objext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   ac_lo=0 ac_mid=0
17212   while :; do
17213     cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h.  */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h.  */
17219 $ac_includes_default
17220 int
17221 main ()
17222 {
17223 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17224 test_array [0] = 0
17225
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232   (eval $ac_compile) 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -z "$ac_c_werror_flag"
17240                          || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17252   ac_hi=$ac_mid; break
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 ac_lo=`expr $ac_mid + 1`
17258                     if test $ac_lo -le $ac_mid; then
17259                       ac_lo= ac_hi=
17260                       break
17261                     fi
17262                     ac_mid=`expr 2 '*' $ac_mid + 1`
17263 fi
17264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17265   done
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 $ac_includes_default
17277 int
17278 main ()
17279 {
17280 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17281 test_array [0] = 0
17282
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17289   (eval $ac_compile) 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } &&
17296          { ac_try='test -z "$ac_c_werror_flag"
17297                          || test ! -s conftest.err'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; } &&
17303          { ac_try='test -s conftest.$ac_objext'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_hi=-1 ac_mid=-1
17310   while :; do
17311     cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317 $ac_includes_default
17318 int
17319 main ()
17320 {
17321 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17322 test_array [0] = 0
17323
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330   (eval $ac_compile) 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -z "$ac_c_werror_flag"
17338                          || test ! -s conftest.err'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest.$ac_objext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   ac_lo=$ac_mid; break
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_hi=`expr '(' $ac_mid ')' - 1`
17356                        if test $ac_mid -le $ac_hi; then
17357                          ac_lo= ac_hi=
17358                          break
17359                        fi
17360                        ac_mid=`expr 2 '*' $ac_mid`
17361 fi
17362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17363   done
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 ac_lo= ac_hi=
17369 fi
17370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17371 fi
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 # Binary search between lo and hi bounds.
17374 while test "x$ac_lo" != "x$ac_hi"; do
17375   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17376   cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 $ac_includes_default
17383 int
17384 main ()
17385 {
17386 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17387 test_array [0] = 0
17388
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext
17394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17395   (eval $ac_compile) 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } &&
17402          { ac_try='test -z "$ac_c_werror_flag"
17403                          || test ! -s conftest.err'
17404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405   (eval $ac_try) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest.$ac_objext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   ac_hi=$ac_mid
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_lo=`expr '(' $ac_mid ')' + 1`
17421 fi
17422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17423 done
17424 case $ac_lo in
17425 ?*) ac_cv_sizeof_char=$ac_lo;;
17426 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17427 See \`config.log' for more details." >&5
17428 echo "$as_me: error: cannot compute sizeof (char), 77
17429 See \`config.log' for more details." >&2;}
17430    { (exit 1); exit 1; }; } ;;
17431 esac
17432 else
17433   if test "$cross_compiling" = yes; then
17434   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17435 See \`config.log' for more details." >&5
17436 echo "$as_me: error: cannot run test program while cross compiling
17437 See \`config.log' for more details." >&2;}
17438    { (exit 1); exit 1; }; }
17439 else
17440   cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446 $ac_includes_default
17447 long longval () { return (long) (sizeof (char)); }
17448 unsigned long ulongval () { return (long) (sizeof (char)); }
17449 #include <stdio.h>
17450 #include <stdlib.h>
17451 int
17452 main ()
17453 {
17454
17455   FILE *f = fopen ("conftest.val", "w");
17456   if (! f)
17457     exit (1);
17458   if (((long) (sizeof (char))) < 0)
17459     {
17460       long i = longval ();
17461       if (i != ((long) (sizeof (char))))
17462         exit (1);
17463       fprintf (f, "%ld\n", i);
17464     }
17465   else
17466     {
17467       unsigned long i = ulongval ();
17468       if (i != ((long) (sizeof (char))))
17469         exit (1);
17470       fprintf (f, "%lu\n", i);
17471     }
17472   exit (ferror (f) || fclose (f) != 0);
17473
17474   ;
17475   return 0;
17476 }
17477 _ACEOF
17478 rm -f conftest$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480   (eval $ac_link) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   ac_cv_sizeof_char=`cat conftest.val`
17490 else
17491   echo "$as_me: program exited with status $ac_status" >&5
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ( exit $ac_status )
17496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17497 See \`config.log' for more details." >&5
17498 echo "$as_me: error: cannot compute sizeof (char), 77
17499 See \`config.log' for more details." >&2;}
17500    { (exit 1); exit 1; }; }
17501 fi
17502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17503 fi
17504 fi
17505 rm -f conftest.val
17506 else
17507   ac_cv_sizeof_char=0
17508 fi
17509 fi
17510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17511 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17512 cat >>confdefs.h <<_ACEOF
17513 #define SIZEOF_CHAR $ac_cv_sizeof_char
17514 _ACEOF
17515
17516
17517    echo "$as_me:$LINENO: checking for short" >&5
17518 echo $ECHO_N "checking for short... $ECHO_C" >&6
17519 if test "${ac_cv_type_short+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528 $ac_includes_default
17529 int
17530 main ()
17531 {
17532 if ((short *) 0)
17533   return 0;
17534 if (sizeof (short))
17535   return 0;
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542   (eval $ac_compile) 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } &&
17549          { ac_try='test -z "$ac_c_werror_flag"
17550                          || test ! -s conftest.err'
17551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552   (eval $ac_try) 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; } &&
17556          { ac_try='test -s conftest.$ac_objext'
17557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558   (eval $ac_try) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; }; then
17562   ac_cv_type_short=yes
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 ac_cv_type_short=no
17568 fi
17569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17570 fi
17571 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17572 echo "${ECHO_T}$ac_cv_type_short" >&6
17573
17574 echo "$as_me:$LINENO: checking size of short" >&5
17575 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17576 if test "${ac_cv_sizeof_short+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   if test "$ac_cv_type_short" = yes; then
17580   # The cast to unsigned long works around a bug in the HP C Compiler
17581   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17582   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17583   # This bug is HP SR number 8606223364.
17584   if test "$cross_compiling" = yes; then
17585   # Depending upon the size, compute the lo and hi bounds.
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 $ac_includes_default
17593 int
17594 main ()
17595 {
17596 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17597 test_array [0] = 0
17598
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17605   (eval $ac_compile) 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag"
17613                          || test ! -s conftest.err'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; } &&
17619          { ac_try='test -s conftest.$ac_objext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_lo=0 ac_mid=0
17626   while :; do
17627     cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 $ac_includes_default
17634 int
17635 main ()
17636 {
17637 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17638 test_array [0] = 0
17639
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646   (eval $ac_compile) 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_c_werror_flag"
17654                          || test ! -s conftest.err'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; } &&
17660          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17666   ac_hi=$ac_mid; break
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 ac_lo=`expr $ac_mid + 1`
17672                     if test $ac_lo -le $ac_mid; then
17673                       ac_lo= ac_hi=
17674                       break
17675                     fi
17676                     ac_mid=`expr 2 '*' $ac_mid + 1`
17677 fi
17678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17679   done
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690 $ac_includes_default
17691 int
17692 main ()
17693 {
17694 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17695 test_array [0] = 0
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703   (eval $ac_compile) 2>conftest.er1
17704   ac_status=$?
17705   grep -v '^ *+' conftest.er1 >conftest.err
17706   rm -f conftest.er1
17707   cat conftest.err >&5
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); } &&
17710          { ac_try='test -z "$ac_c_werror_flag"
17711                          || test ! -s conftest.err'
17712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713   (eval $ac_try) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; } &&
17717          { ac_try='test -s conftest.$ac_objext'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; }; then
17723   ac_hi=-1 ac_mid=-1
17724   while :; do
17725     cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h.  */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h.  */
17731 $ac_includes_default
17732 int
17733 main ()
17734 {
17735 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17736 test_array [0] = 0
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744   (eval $ac_compile) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_c_werror_flag"
17752                          || test ! -s conftest.err'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest.$ac_objext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_lo=$ac_mid; break
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ac_hi=`expr '(' $ac_mid ')' - 1`
17770                        if test $ac_mid -le $ac_hi; then
17771                          ac_lo= ac_hi=
17772                          break
17773                        fi
17774                        ac_mid=`expr 2 '*' $ac_mid`
17775 fi
17776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777   done
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 ac_lo= ac_hi=
17783 fi
17784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17787 # Binary search between lo and hi bounds.
17788 while test "x$ac_lo" != "x$ac_hi"; do
17789   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796 $ac_includes_default
17797 int
17798 main ()
17799 {
17800 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17801 test_array [0] = 0
17802
17803   ;
17804   return 0;
17805 }
17806 _ACEOF
17807 rm -f conftest.$ac_objext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17809   (eval $ac_compile) 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -z "$ac_c_werror_flag"
17817                          || test ! -s conftest.err'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; } &&
17823          { ac_try='test -s conftest.$ac_objext'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; }; then
17829   ac_hi=$ac_mid
17830 else
17831   echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ac_lo=`expr '(' $ac_mid ')' + 1`
17835 fi
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837 done
17838 case $ac_lo in
17839 ?*) ac_cv_sizeof_short=$ac_lo;;
17840 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17841 See \`config.log' for more details." >&5
17842 echo "$as_me: error: cannot compute sizeof (short), 77
17843 See \`config.log' for more details." >&2;}
17844    { (exit 1); exit 1; }; } ;;
17845 esac
17846 else
17847   if test "$cross_compiling" = yes; then
17848   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17849 See \`config.log' for more details." >&5
17850 echo "$as_me: error: cannot run test program while cross compiling
17851 See \`config.log' for more details." >&2;}
17852    { (exit 1); exit 1; }; }
17853 else
17854   cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 $ac_includes_default
17861 long longval () { return (long) (sizeof (short)); }
17862 unsigned long ulongval () { return (long) (sizeof (short)); }
17863 #include <stdio.h>
17864 #include <stdlib.h>
17865 int
17866 main ()
17867 {
17868
17869   FILE *f = fopen ("conftest.val", "w");
17870   if (! f)
17871     exit (1);
17872   if (((long) (sizeof (short))) < 0)
17873     {
17874       long i = longval ();
17875       if (i != ((long) (sizeof (short))))
17876         exit (1);
17877       fprintf (f, "%ld\n", i);
17878     }
17879   else
17880     {
17881       unsigned long i = ulongval ();
17882       if (i != ((long) (sizeof (short))))
17883         exit (1);
17884       fprintf (f, "%lu\n", i);
17885     }
17886   exit (ferror (f) || fclose (f) != 0);
17887
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest$ac_exeext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894   (eval $ac_link) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899   (eval $ac_try) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   ac_cv_sizeof_short=`cat conftest.val`
17904 else
17905   echo "$as_me: program exited with status $ac_status" >&5
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909 ( exit $ac_status )
17910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17911 See \`config.log' for more details." >&5
17912 echo "$as_me: error: cannot compute sizeof (short), 77
17913 See \`config.log' for more details." >&2;}
17914    { (exit 1); exit 1; }; }
17915 fi
17916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17917 fi
17918 fi
17919 rm -f conftest.val
17920 else
17921   ac_cv_sizeof_short=0
17922 fi
17923 fi
17924 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17925 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17926 cat >>confdefs.h <<_ACEOF
17927 #define SIZEOF_SHORT $ac_cv_sizeof_short
17928 _ACEOF
17929
17930
17931    echo "$as_me:$LINENO: checking for int" >&5
17932 echo $ECHO_N "checking for int... $ECHO_C" >&6
17933 if test "${ac_cv_type_int+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942 $ac_includes_default
17943 int
17944 main ()
17945 {
17946 if ((int *) 0)
17947   return 0;
17948 if (sizeof (int))
17949   return 0;
17950   ;
17951   return 0;
17952 }
17953 _ACEOF
17954 rm -f conftest.$ac_objext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956   (eval $ac_compile) 2>conftest.er1
17957   ac_status=$?
17958   grep -v '^ *+' conftest.er1 >conftest.err
17959   rm -f conftest.er1
17960   cat conftest.err >&5
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } &&
17963          { ac_try='test -z "$ac_c_werror_flag"
17964                          || test ! -s conftest.err'
17965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966   (eval $ac_try) 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; } &&
17970          { ac_try='test -s conftest.$ac_objext'
17971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972   (eval $ac_try) 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976   ac_cv_type_int=yes
17977 else
17978   echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17980
17981 ac_cv_type_int=no
17982 fi
17983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17984 fi
17985 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17986 echo "${ECHO_T}$ac_cv_type_int" >&6
17987
17988 echo "$as_me:$LINENO: checking size of int" >&5
17989 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17990 if test "${ac_cv_sizeof_int+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   if test "$ac_cv_type_int" = yes; then
17994   # The cast to unsigned long works around a bug in the HP C Compiler
17995   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17996   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17997   # This bug is HP SR number 8606223364.
17998   if test "$cross_compiling" = yes; then
17999   # Depending upon the size, compute the lo and hi bounds.
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h.  */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h.  */
18006 $ac_includes_default
18007 int
18008 main ()
18009 {
18010 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18011 test_array [0] = 0
18012
18013   ;
18014   return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019   (eval $ac_compile) 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } &&
18026          { ac_try='test -z "$ac_c_werror_flag"
18027                          || test ! -s conftest.err'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest.$ac_objext'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   ac_lo=0 ac_mid=0
18040   while :; do
18041     cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 $ac_includes_default
18048 int
18049 main ()
18050 {
18051 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18052 test_array [0] = 0
18053
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>conftest.er1
18061   ac_status=$?
18062   grep -v '^ *+' conftest.er1 >conftest.err
18063   rm -f conftest.er1
18064   cat conftest.err >&5
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); } &&
18067          { ac_try='test -z "$ac_c_werror_flag"
18068                          || test ! -s conftest.err'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18080   ac_hi=$ac_mid; break
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 ac_lo=`expr $ac_mid + 1`
18086                     if test $ac_lo -le $ac_mid; then
18087                       ac_lo= ac_hi=
18088                       break
18089                     fi
18090                     ac_mid=`expr 2 '*' $ac_mid + 1`
18091 fi
18092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18093   done
18094 else
18095   echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 $ac_includes_default
18105 int
18106 main ()
18107 {
18108 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18109 test_array [0] = 0
18110
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117   (eval $ac_compile) 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } &&
18124          { ac_try='test -z "$ac_c_werror_flag"
18125                          || test ! -s conftest.err'
18126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127   (eval $ac_try) 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; } &&
18131          { ac_try='test -s conftest.$ac_objext'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   ac_hi=-1 ac_mid=-1
18138   while :; do
18139     cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h.  */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h.  */
18145 $ac_includes_default
18146 int
18147 main ()
18148 {
18149 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18150 test_array [0] = 0
18151
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158   (eval $ac_compile) 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag"
18166                          || test ! -s conftest.err'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; } &&
18172          { ac_try='test -s conftest.$ac_objext'
18173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174   (eval $ac_try) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; }; then
18178   ac_lo=$ac_mid; break
18179 else
18180   echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 ac_hi=`expr '(' $ac_mid ')' - 1`
18184                        if test $ac_mid -le $ac_hi; then
18185                          ac_lo= ac_hi=
18186                          break
18187                        fi
18188                        ac_mid=`expr 2 '*' $ac_mid`
18189 fi
18190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18191   done
18192 else
18193   echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18195
18196 ac_lo= ac_hi=
18197 fi
18198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18199 fi
18200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18201 # Binary search between lo and hi bounds.
18202 while test "x$ac_lo" != "x$ac_hi"; do
18203   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18204   cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210 $ac_includes_default
18211 int
18212 main ()
18213 {
18214 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18215 test_array [0] = 0
18216
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223   (eval $ac_compile) 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag"
18231                          || test ! -s conftest.err'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest.$ac_objext'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243   ac_hi=$ac_mid
18244 else
18245   echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 ac_lo=`expr '(' $ac_mid ')' + 1`
18249 fi
18250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18251 done
18252 case $ac_lo in
18253 ?*) ac_cv_sizeof_int=$ac_lo;;
18254 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18255 See \`config.log' for more details." >&5
18256 echo "$as_me: error: cannot compute sizeof (int), 77
18257 See \`config.log' for more details." >&2;}
18258    { (exit 1); exit 1; }; } ;;
18259 esac
18260 else
18261   if test "$cross_compiling" = yes; then
18262   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18263 See \`config.log' for more details." >&5
18264 echo "$as_me: error: cannot run test program while cross compiling
18265 See \`config.log' for more details." >&2;}
18266    { (exit 1); exit 1; }; }
18267 else
18268   cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274 $ac_includes_default
18275 long longval () { return (long) (sizeof (int)); }
18276 unsigned long ulongval () { return (long) (sizeof (int)); }
18277 #include <stdio.h>
18278 #include <stdlib.h>
18279 int
18280 main ()
18281 {
18282
18283   FILE *f = fopen ("conftest.val", "w");
18284   if (! f)
18285     exit (1);
18286   if (((long) (sizeof (int))) < 0)
18287     {
18288       long i = longval ();
18289       if (i != ((long) (sizeof (int))))
18290         exit (1);
18291       fprintf (f, "%ld\n", i);
18292     }
18293   else
18294     {
18295       unsigned long i = ulongval ();
18296       if (i != ((long) (sizeof (int))))
18297         exit (1);
18298       fprintf (f, "%lu\n", i);
18299     }
18300   exit (ferror (f) || fclose (f) != 0);
18301
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 rm -f conftest$ac_exeext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308   (eval $ac_link) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   ac_cv_sizeof_int=`cat conftest.val`
18318 else
18319   echo "$as_me: program exited with status $ac_status" >&5
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 ( exit $ac_status )
18324 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18325 See \`config.log' for more details." >&5
18326 echo "$as_me: error: cannot compute sizeof (int), 77
18327 See \`config.log' for more details." >&2;}
18328    { (exit 1); exit 1; }; }
18329 fi
18330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18331 fi
18332 fi
18333 rm -f conftest.val
18334 else
18335   ac_cv_sizeof_int=0
18336 fi
18337 fi
18338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18339 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18340 cat >>confdefs.h <<_ACEOF
18341 #define SIZEOF_INT $ac_cv_sizeof_int
18342 _ACEOF
18343
18344
18345    echo "$as_me:$LINENO: checking for long" >&5
18346 echo $ECHO_N "checking for long... $ECHO_C" >&6
18347 if test "${ac_cv_type_long+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 $ac_includes_default
18357 int
18358 main ()
18359 {
18360 if ((long *) 0)
18361   return 0;
18362 if (sizeof (long))
18363   return 0;
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18370   (eval $ac_compile) 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag"
18378                          || test ! -s conftest.err'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest.$ac_objext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_type_long=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_type_long=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18400 echo "${ECHO_T}$ac_cv_type_long" >&6
18401
18402 echo "$as_me:$LINENO: checking size of long" >&5
18403 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18404 if test "${ac_cv_sizeof_long+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   if test "$ac_cv_type_long" = yes; then
18408   # The cast to unsigned long works around a bug in the HP C Compiler
18409   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18410   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18411   # This bug is HP SR number 8606223364.
18412   if test "$cross_compiling" = yes; then
18413   # Depending upon the size, compute the lo and hi bounds.
18414 cat >conftest.$ac_ext <<_ACEOF
18415 /* confdefs.h.  */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h.  */
18420 $ac_includes_default
18421 int
18422 main ()
18423 {
18424 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18425 test_array [0] = 0
18426
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433   (eval $ac_compile) 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } &&
18440          { ac_try='test -z "$ac_c_werror_flag"
18441                          || test ! -s conftest.err'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; } &&
18447          { ac_try='test -s conftest.$ac_objext'
18448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449   (eval $ac_try) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453   ac_lo=0 ac_mid=0
18454   while :; do
18455     cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 $ac_includes_default
18462 int
18463 main ()
18464 {
18465 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18466 test_array [0] = 0
18467
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474   (eval $ac_compile) 2>conftest.er1
18475   ac_status=$?
18476   grep -v '^ *+' conftest.er1 >conftest.err
18477   rm -f conftest.er1
18478   cat conftest.err >&5
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } &&
18481          { ac_try='test -z "$ac_c_werror_flag"
18482                          || test ! -s conftest.err'
18483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484   (eval $ac_try) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; } &&
18488          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18494   ac_hi=$ac_mid; break
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 ac_lo=`expr $ac_mid + 1`
18500                     if test $ac_lo -le $ac_mid; then
18501                       ac_lo= ac_hi=
18502                       break
18503                     fi
18504                     ac_mid=`expr 2 '*' $ac_mid + 1`
18505 fi
18506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18507   done
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 $ac_includes_default
18519 int
18520 main ()
18521 {
18522 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18523 test_array [0] = 0
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531   (eval $ac_compile) 2>conftest.er1
18532   ac_status=$?
18533   grep -v '^ *+' conftest.er1 >conftest.err
18534   rm -f conftest.er1
18535   cat conftest.err >&5
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } &&
18538          { ac_try='test -z "$ac_c_werror_flag"
18539                          || test ! -s conftest.err'
18540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541   (eval $ac_try) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; } &&
18545          { ac_try='test -s conftest.$ac_objext'
18546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547   (eval $ac_try) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; }; then
18551   ac_hi=-1 ac_mid=-1
18552   while :; do
18553     cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h.  */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h.  */
18559 $ac_includes_default
18560 int
18561 main ()
18562 {
18563 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18564 test_array [0] = 0
18565
18566   ;
18567   return 0;
18568 }
18569 _ACEOF
18570 rm -f conftest.$ac_objext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18572   (eval $ac_compile) 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_c_werror_flag"
18580                          || test ! -s conftest.err'
18581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582   (eval $ac_try) 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; } &&
18586          { ac_try='test -s conftest.$ac_objext'
18587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588   (eval $ac_try) 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; }; then
18592   ac_lo=$ac_mid; break
18593 else
18594   echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597 ac_hi=`expr '(' $ac_mid ')' - 1`
18598                        if test $ac_mid -le $ac_hi; then
18599                          ac_lo= ac_hi=
18600                          break
18601                        fi
18602                        ac_mid=`expr 2 '*' $ac_mid`
18603 fi
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605   done
18606 else
18607   echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_lo= ac_hi=
18611 fi
18612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18613 fi
18614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18615 # Binary search between lo and hi bounds.
18616 while test "x$ac_lo" != "x$ac_hi"; do
18617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18618   cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624 $ac_includes_default
18625 int
18626 main ()
18627 {
18628 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18629 test_array [0] = 0
18630
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637   (eval $ac_compile) 2>conftest.er1
18638   ac_status=$?
18639   grep -v '^ *+' conftest.er1 >conftest.err
18640   rm -f conftest.er1
18641   cat conftest.err >&5
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); } &&
18644          { ac_try='test -z "$ac_c_werror_flag"
18645                          || test ! -s conftest.err'
18646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647   (eval $ac_try) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; } &&
18651          { ac_try='test -s conftest.$ac_objext'
18652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653   (eval $ac_try) 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; }; then
18657   ac_hi=$ac_mid
18658 else
18659   echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 ac_lo=`expr '(' $ac_mid ')' + 1`
18663 fi
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 done
18666 case $ac_lo in
18667 ?*) ac_cv_sizeof_long=$ac_lo;;
18668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18669 See \`config.log' for more details." >&5
18670 echo "$as_me: error: cannot compute sizeof (long), 77
18671 See \`config.log' for more details." >&2;}
18672    { (exit 1); exit 1; }; } ;;
18673 esac
18674 else
18675   if test "$cross_compiling" = yes; then
18676   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18677 See \`config.log' for more details." >&5
18678 echo "$as_me: error: cannot run test program while cross compiling
18679 See \`config.log' for more details." >&2;}
18680    { (exit 1); exit 1; }; }
18681 else
18682   cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688 $ac_includes_default
18689 long longval () { return (long) (sizeof (long)); }
18690 unsigned long ulongval () { return (long) (sizeof (long)); }
18691 #include <stdio.h>
18692 #include <stdlib.h>
18693 int
18694 main ()
18695 {
18696
18697   FILE *f = fopen ("conftest.val", "w");
18698   if (! f)
18699     exit (1);
18700   if (((long) (sizeof (long))) < 0)
18701     {
18702       long i = longval ();
18703       if (i != ((long) (sizeof (long))))
18704         exit (1);
18705       fprintf (f, "%ld\n", i);
18706     }
18707   else
18708     {
18709       unsigned long i = ulongval ();
18710       if (i != ((long) (sizeof (long))))
18711         exit (1);
18712       fprintf (f, "%lu\n", i);
18713     }
18714   exit (ferror (f) || fclose (f) != 0);
18715
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 rm -f conftest$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722   (eval $ac_link) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727   (eval $ac_try) 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); }; }; then
18731   ac_cv_sizeof_long=`cat conftest.val`
18732 else
18733   echo "$as_me: program exited with status $ac_status" >&5
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ( exit $ac_status )
18738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18739 See \`config.log' for more details." >&5
18740 echo "$as_me: error: cannot compute sizeof (long), 77
18741 See \`config.log' for more details." >&2;}
18742    { (exit 1); exit 1; }; }
18743 fi
18744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18745 fi
18746 fi
18747 rm -f conftest.val
18748 else
18749   ac_cv_sizeof_long=0
18750 fi
18751 fi
18752 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18753 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18754 cat >>confdefs.h <<_ACEOF
18755 #define SIZEOF_LONG $ac_cv_sizeof_long
18756 _ACEOF
18757
18758
18759    echo "$as_me:$LINENO: checking for void*" >&5
18760 echo $ECHO_N "checking for void*... $ECHO_C" >&6
18761 if test "${ac_cv_type_voidp+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 $ac_includes_default
18771 int
18772 main ()
18773 {
18774 if ((void* *) 0)
18775   return 0;
18776 if (sizeof (void*))
18777   return 0;
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784   (eval $ac_compile) 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag"
18792                          || test ! -s conftest.err'
18793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794   (eval $ac_try) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest.$ac_objext'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   ac_cv_type_voidp=yes
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 ac_cv_type_voidp=no
18810 fi
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 fi
18813 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
18814 echo "${ECHO_T}$ac_cv_type_voidp" >&6
18815
18816 echo "$as_me:$LINENO: checking size of void*" >&5
18817 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
18818 if test "${ac_cv_sizeof_voidp+set}" = set; then
18819   echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821   if test "$ac_cv_type_voidp" = yes; then
18822   # The cast to unsigned long works around a bug in the HP C Compiler
18823   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18824   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18825   # This bug is HP SR number 8606223364.
18826   if test "$cross_compiling" = yes; then
18827   # Depending upon the size, compute the lo and hi bounds.
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h.  */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h.  */
18834 $ac_includes_default
18835 int
18836 main ()
18837 {
18838 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
18839 test_array [0] = 0
18840
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847   (eval $ac_compile) 2>conftest.er1
18848   ac_status=$?
18849   grep -v '^ *+' conftest.er1 >conftest.err
18850   rm -f conftest.er1
18851   cat conftest.err >&5
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); } &&
18854          { ac_try='test -z "$ac_c_werror_flag"
18855                          || test ! -s conftest.err'
18856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857   (eval $ac_try) 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); }; } &&
18861          { ac_try='test -s conftest.$ac_objext'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867   ac_lo=0 ac_mid=0
18868   while :; do
18869     cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 $ac_includes_default
18876 int
18877 main ()
18878 {
18879 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
18880 test_array [0] = 0
18881
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888   (eval $ac_compile) 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -z "$ac_c_werror_flag"
18896                          || test ! -s conftest.err'
18897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898   (eval $ac_try) 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; } &&
18902          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18908   ac_hi=$ac_mid; break
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913 ac_lo=`expr $ac_mid + 1`
18914                     if test $ac_lo -le $ac_mid; then
18915                       ac_lo= ac_hi=
18916                       break
18917                     fi
18918                     ac_mid=`expr 2 '*' $ac_mid + 1`
18919 fi
18920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18921   done
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 $ac_includes_default
18933 int
18934 main ()
18935 {
18936 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
18937 test_array [0] = 0
18938
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945   (eval $ac_compile) 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag"
18953                          || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest.$ac_objext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965   ac_hi=-1 ac_mid=-1
18966   while :; do
18967     cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 $ac_includes_default
18974 int
18975 main ()
18976 {
18977 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
18978 test_array [0] = 0
18979
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986   (eval $ac_compile) 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag"
18994                          || test ! -s conftest.err'
18995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996   (eval $ac_try) 2>&5
18997   ac_status=$?
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); }; } &&
19000          { ac_try='test -s conftest.$ac_objext'
19001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002   (eval $ac_try) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; }; then
19006   ac_lo=$ac_mid; break
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_hi=`expr '(' $ac_mid ')' - 1`
19012                        if test $ac_mid -le $ac_hi; then
19013                          ac_lo= ac_hi=
19014                          break
19015                        fi
19016                        ac_mid=`expr 2 '*' $ac_mid`
19017 fi
19018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19019   done
19020 else
19021   echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_lo= ac_hi=
19025 fi
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027 fi
19028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19029 # Binary search between lo and hi bounds.
19030 while test "x$ac_lo" != "x$ac_hi"; do
19031   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19032   cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038 $ac_includes_default
19039 int
19040 main ()
19041 {
19042 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
19043 test_array [0] = 0
19044
19045   ;
19046   return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19051   (eval $ac_compile) 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } &&
19058          { ac_try='test -z "$ac_c_werror_flag"
19059                          || test ! -s conftest.err'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest.$ac_objext'
19066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067   (eval $ac_try) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); }; }; then
19071   ac_hi=$ac_mid
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 ac_lo=`expr '(' $ac_mid ')' + 1`
19077 fi
19078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19079 done
19080 case $ac_lo in
19081 ?*) ac_cv_sizeof_voidp=$ac_lo;;
19082 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
19083 See \`config.log' for more details." >&5
19084 echo "$as_me: error: cannot compute sizeof (void*), 77
19085 See \`config.log' for more details." >&2;}
19086    { (exit 1); exit 1; }; } ;;
19087 esac
19088 else
19089   if test "$cross_compiling" = yes; then
19090   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19091 See \`config.log' for more details." >&5
19092 echo "$as_me: error: cannot run test program while cross compiling
19093 See \`config.log' for more details." >&2;}
19094    { (exit 1); exit 1; }; }
19095 else
19096   cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h.  */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h.  */
19102 $ac_includes_default
19103 long longval () { return (long) (sizeof (void*)); }
19104 unsigned long ulongval () { return (long) (sizeof (void*)); }
19105 #include <stdio.h>
19106 #include <stdlib.h>
19107 int
19108 main ()
19109 {
19110
19111   FILE *f = fopen ("conftest.val", "w");
19112   if (! f)
19113     exit (1);
19114   if (((long) (sizeof (void*))) < 0)
19115     {
19116       long i = longval ();
19117       if (i != ((long) (sizeof (void*))))
19118         exit (1);
19119       fprintf (f, "%ld\n", i);
19120     }
19121   else
19122     {
19123       unsigned long i = ulongval ();
19124       if (i != ((long) (sizeof (void*))))
19125         exit (1);
19126       fprintf (f, "%lu\n", i);
19127     }
19128   exit (ferror (f) || fclose (f) != 0);
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136   (eval $ac_link) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   ac_cv_sizeof_voidp=`cat conftest.val`
19146 else
19147   echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 ( exit $ac_status )
19152 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
19153 See \`config.log' for more details." >&5
19154 echo "$as_me: error: cannot compute sizeof (void*), 77
19155 See \`config.log' for more details." >&2;}
19156    { (exit 1); exit 1; }; }
19157 fi
19158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19159 fi
19160 fi
19161 rm -f conftest.val
19162 else
19163   ac_cv_sizeof_voidp=0
19164 fi
19165 fi
19166 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
19167 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
19168 cat >>confdefs.h <<_ACEOF
19169 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
19170 _ACEOF
19171
19172
19173    ac_cv_char_data_model=""
19174    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
19175    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
19176    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
19177    ac_cv_long_data_model=""
19178    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
19179    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
19180    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
19181    echo "$as_me:$LINENO: checking data model" >&5
19182 echo $ECHO_N "checking data model... $ECHO_C" >&6
19183    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
19184     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
19185     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
19186     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
19187     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
19188     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
19189     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
19190     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
19191     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
19192     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
19193     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
19194     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
19195     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
19196     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
19197     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
19198     222/*|333/*|444/*|666/*|888/*) :
19199                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
19200      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
19201    esac
19202    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
19203 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
19204
19205 fi
19206
19207 if test "_$ac_cv_header_stdint_x" != "_" ; then
19208    ac_cv_header_stdint="$ac_cv_header_stdint_x"
19209 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
19210    ac_cv_header_stdint="$ac_cv_header_stdint_o"
19211 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
19212    ac_cv_header_stdint="$ac_cv_header_stdint_u"
19213 else
19214    ac_cv_header_stdint="stddef.h"
19215 fi
19216
19217 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
19218 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
19219 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
19220 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
19221 unset ac_cv_type_int_least32_t
19222 unset ac_cv_type_int_fast32_t
19223 echo "$as_me:$LINENO: checking for int_least32_t" >&5
19224 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
19225 if test "${ac_cv_type_int_least32_t+set}" = set; then
19226   echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228   cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 #include <$ac_cv_header_stdint>
19235
19236 int
19237 main ()
19238 {
19239 if ((int_least32_t *) 0)
19240   return 0;
19241 if (sizeof (int_least32_t))
19242   return 0;
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249   (eval $ac_compile) 2>conftest.er1
19250   ac_status=$?
19251   grep -v '^ *+' conftest.er1 >conftest.err
19252   rm -f conftest.er1
19253   cat conftest.err >&5
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -z "$ac_c_werror_flag"
19257                          || test ! -s conftest.err'
19258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259   (eval $ac_try) 2>&5
19260   ac_status=$?
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); }; } &&
19263          { ac_try='test -s conftest.$ac_objext'
19264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265   (eval $ac_try) 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; }; then
19269   ac_cv_type_int_least32_t=yes
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_type_int_least32_t=no
19275 fi
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19277 fi
19278 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
19279 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
19280
19281 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
19282 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
19283 if test "${ac_cv_type_int_fast32_t+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292 #include<$ac_cv_header_stdint>
19293
19294 int
19295 main ()
19296 {
19297 if ((int_fast32_t *) 0)
19298   return 0;
19299 if (sizeof (int_fast32_t))
19300   return 0;
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19307   (eval $ac_compile) 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } &&
19314          { ac_try='test -z "$ac_c_werror_flag"
19315                          || test ! -s conftest.err'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; } &&
19321          { ac_try='test -s conftest.$ac_objext'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; }; then
19327   ac_cv_type_int_fast32_t=yes
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_cv_type_int_fast32_t=no
19333 fi
19334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19335 fi
19336 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
19337 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
19338
19339 echo "$as_me:$LINENO: checking for intmax_t" >&5
19340 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
19341 if test "${ac_cv_type_intmax_t+set}" = set; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344   cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350 #include <$ac_cv_header_stdint>
19351
19352 int
19353 main ()
19354 {
19355 if ((intmax_t *) 0)
19356   return 0;
19357 if (sizeof (intmax_t))
19358   return 0;
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365   (eval $ac_compile) 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_c_werror_flag"
19373                          || test ! -s conftest.err'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
19380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381   (eval $ac_try) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_cv_type_intmax_t=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_cv_type_intmax_t=no
19391 fi
19392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19393 fi
19394 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
19395 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
19396
19397
19398 fi # shortcircut to system "stdint.h"
19399 # ------------------ PREPARE VARIABLES ------------------------------
19400 if test "$GCC" = "yes" ; then
19401 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
19402 else
19403 ac_cv_stdint_message="using $CC"
19404 fi
19405
19406 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
19407 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
19408
19409 # ----------------- DONE inttypes.h checks START header -------------
19410           ac_config_commands="$ac_config_commands $ac_stdint_h"
19411
19412
19413
19414
19415 # Check whether --with-glibj_zip or --without-glibj_zip was given.
19416 if test "${with_glibj_zip+set}" = set; then
19417   withval="$with_glibj_zip"
19418
19419 fi;
19420
19421 case "$with_glibj_zip" in
19422 "")
19423         use_glibj_zip=false
19424         ;;
19425 "no" )
19426         use_glibj_zip=false
19427         ;;
19428 "yes")
19429         { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
19430 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
19431    { (exit 1); exit 1; }; }
19432         ;;
19433 *)
19434         use_glibj_zip=true
19435         PATH_TO_GLIBJ_ZIP=$with_glibj_zip
19436         ;;
19437 esac;
19438
19439
19440
19441 if test x$use_glibj_zip = xtrue; then
19442   USE_PREBUILT_GLIBJ_ZIP_TRUE=
19443   USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
19444 else
19445   USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
19446   USE_PREBUILT_GLIBJ_ZIP_FALSE=
19447 fi
19448
19449
19450
19451
19452 # Check whether --with-escher or --without-escher was given.
19453 if test "${with_escher+set}" = set; then
19454   withval="$with_escher"
19455
19456 fi;
19457 case "$with_escher" in
19458 "")
19459         use_escher=false
19460         ;;
19461 "no")
19462         use_escher=false
19463         ;;
19464 "yes")
19465         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
19466 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
19467    { (exit 1); exit 1; }; }
19468         ;;
19469 *)
19470         use_escher=true
19471         PATH_TO_ESCHER=$with_escher
19472         ;;
19473 esac
19474
19475
19476
19477 if test x$use_escher = xtrue; then
19478   USE_ESCHER_TRUE=
19479   USE_ESCHER_FALSE='#'
19480 else
19481   USE_ESCHER_TRUE='#'
19482   USE_ESCHER_FALSE=
19483 fi
19484
19485
19486
19487 # Check whether --enable-local-sockets or --disable-local-sockets was given.
19488 if test "${enable_local_sockets+set}" = set; then
19489   enableval="$enable_local_sockets"
19490   case "${enableval}" in
19491                 yes)
19492                   ENABLE_LOCAL_SOCKETS=yes
19493                   ;;
19494                 *)
19495                   ENABLE_LOCAL_SOCKETS=no
19496                   ;;
19497                esac
19498 fi;
19499 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
19500 then
19501   if test "${ac_cv_header_sys_un_h+set}" = set; then
19502   echo "$as_me:$LINENO: checking for sys/un.h" >&5
19503 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
19504 if test "${ac_cv_header_sys_un_h+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 fi
19507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
19508 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
19509 else
19510   # Is the header compilable?
19511 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
19512 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 $ac_includes_default
19520 #include <sys/un.h>
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524   (eval $ac_compile) 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } &&
19531          { ac_try='test -z "$ac_c_werror_flag"
19532                          || test ! -s conftest.err'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; } &&
19538          { ac_try='test -s conftest.$ac_objext'
19539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540   (eval $ac_try) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   ac_header_compiler=yes
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ac_header_compiler=no
19550 fi
19551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19553 echo "${ECHO_T}$ac_header_compiler" >&6
19554
19555 # Is the header present?
19556 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
19557 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 #include <sys/un.h>
19565 _ACEOF
19566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } >/dev/null; then
19574   if test -s conftest.err; then
19575     ac_cpp_err=$ac_c_preproc_warn_flag
19576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19577   else
19578     ac_cpp_err=
19579   fi
19580 else
19581   ac_cpp_err=yes
19582 fi
19583 if test -z "$ac_cpp_err"; then
19584   ac_header_preproc=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589   ac_header_preproc=no
19590 fi
19591 rm -f conftest.err conftest.$ac_ext
19592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19593 echo "${ECHO_T}$ac_header_preproc" >&6
19594
19595 # So?  What about this header?
19596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19597   yes:no: )
19598     { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
19599 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19600     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
19601 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
19602     ac_header_preproc=yes
19603     ;;
19604   no:yes:* )
19605     { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
19606 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
19607     { echo "$as_me:$LINENO: WARNING: sys/un.h:     check for missing prerequisite headers?" >&5
19608 echo "$as_me: WARNING: sys/un.h:     check for missing prerequisite headers?" >&2;}
19609     { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
19610 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
19611     { echo "$as_me:$LINENO: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&5
19612 echo "$as_me: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19613     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
19614 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
19615     { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
19616 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
19617     (
19618       cat <<\_ASBOX
19619 ## -------------------------------- ##
19620 ## Report this to classpath@gnu.org ##
19621 ## -------------------------------- ##
19622 _ASBOX
19623     ) |
19624       sed "s/^/$as_me: WARNING:     /" >&2
19625     ;;
19626 esac
19627 echo "$as_me:$LINENO: checking for sys/un.h" >&5
19628 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
19629 if test "${ac_cv_header_sys_un_h+set}" = set; then
19630   echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632   ac_cv_header_sys_un_h=$ac_header_preproc
19633 fi
19634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
19635 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
19636
19637 fi
19638
19639
19640
19641
19642
19643
19644
19645
19646 for ac_func in read write bind listen accept shutdown
19647 do
19648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649 echo "$as_me:$LINENO: checking for $ac_func" >&5
19650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19651 if eval "test \"\${$as_ac_var+set}\" = set"; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   if test x$gcc_no_link = xyes; then
19655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19657    { (exit 1); exit 1; }; }
19658 fi
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19667 #define $ac_func innocuous_$ac_func
19668
19669 /* System header to define __stub macros and hopefully few prototypes,
19670     which can conflict with char $ac_func (); below.
19671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19672     <limits.h> exists even on freestanding compilers.  */
19673
19674 #ifdef __STDC__
19675 # include <limits.h>
19676 #else
19677 # include <assert.h>
19678 #endif
19679
19680 #undef $ac_func
19681
19682 /* Override any gcc2 internal prototype to avoid an error.  */
19683 #ifdef __cplusplus
19684 extern "C"
19685 {
19686 #endif
19687 /* We use char because int might match the return type of a gcc2
19688    builtin and then its argument prototype would still apply.  */
19689 char $ac_func ();
19690 /* The GNU C library defines this for functions which it implements
19691     to always fail with ENOSYS.  Some functions are actually named
19692     something starting with __ and the normal name is an alias.  */
19693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19694 choke me
19695 #else
19696 char (*f) () = $ac_func;
19697 #endif
19698 #ifdef __cplusplus
19699 }
19700 #endif
19701
19702 int
19703 main ()
19704 {
19705 return f != $ac_func;
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712   (eval $ac_link) 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag"
19720                          || test ! -s conftest.err'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   eval "$as_ac_var=yes"
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 eval "$as_ac_var=no"
19738 fi
19739 rm -f conftest.err conftest.$ac_objext \
19740       conftest$ac_exeext conftest.$ac_ext
19741 fi
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19744 if test `eval echo '${'$as_ac_var'}'` = yes; then
19745   cat >>confdefs.h <<_ACEOF
19746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19747 _ACEOF
19748
19749 else
19750   { { echo "$as_me:$LINENO: error: networking support not available" >&5
19751 echo "$as_me: error: networking support not available" >&2;}
19752    { (exit 1); exit 1; }; }
19753 fi
19754 done
19755
19756
19757 cat >>confdefs.h <<\_ACEOF
19758 #define ENABLE_LOCAL_SOCKETS 1
19759 _ACEOF
19760
19761 fi
19762
19763
19764 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
19765   ENABLE_LOCAL_SOCKETS_TRUE=
19766   ENABLE_LOCAL_SOCKETS_FALSE='#'
19767 else
19768   ENABLE_LOCAL_SOCKETS_TRUE='#'
19769   ENABLE_LOCAL_SOCKETS_FALSE=
19770 fi
19771
19772
19773
19774
19775                                                                                                                                                                                                                                                                                                                                                                                                                 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"
19776
19777
19778 if test "x${COMPILE_WRAPPERS}" = xno
19779 then
19780                                                                                                                         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"
19781
19782           ac_config_commands="$ac_config_commands gappletviewer"
19783
19784           ac_config_commands="$ac_config_commands gjarsigner"
19785
19786           ac_config_commands="$ac_config_commands gkeytool"
19787
19788           ac_config_commands="$ac_config_commands gjar"
19789
19790           ac_config_commands="$ac_config_commands gnative2ascii"
19791
19792           ac_config_commands="$ac_config_commands gserialver"
19793
19794           ac_config_commands="$ac_config_commands grmiregistry"
19795
19796           ac_config_commands="$ac_config_commands gtnameserv"
19797
19798           ac_config_commands="$ac_config_commands gorbd"
19799
19800           ac_config_commands="$ac_config_commands grmid"
19801
19802           ac_config_commands="$ac_config_commands grmic"
19803
19804           ac_config_commands="$ac_config_commands gjavah"
19805
19806 fi
19807
19808           ac_config_commands="$ac_config_commands gen-classlist"
19809
19810           ac_config_commands="$ac_config_commands copy-vmresources"
19811
19812 cat >confcache <<\_ACEOF
19813 # This file is a shell script that caches the results of configure
19814 # tests run on this system so they can be shared between configure
19815 # scripts and configure runs, see configure's option --config-cache.
19816 # It is not useful on other systems.  If it contains results you don't
19817 # want to keep, you may remove or edit it.
19818 #
19819 # config.status only pays attention to the cache file if you give it
19820 # the --recheck option to rerun configure.
19821 #
19822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19824 # following values.
19825
19826 _ACEOF
19827
19828 # The following way of writing the cache mishandles newlines in values,
19829 # but we know of no workaround that is simple, portable, and efficient.
19830 # So, don't put newlines in cache variables' values.
19831 # Ultrix sh set writes to stderr and can't be redirected directly,
19832 # and sets the high bit in the cache file unless we assign to the vars.
19833 {
19834   (set) 2>&1 |
19835     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19836     *ac_space=\ *)
19837       # `set' does not quote correctly, so add quotes (double-quote
19838       # substitution turns \\\\ into \\, and sed turns \\ into \).
19839       sed -n \
19840         "s/'/'\\\\''/g;
19841           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19842       ;;
19843     *)
19844       # `set' quotes correctly as required by POSIX, so do not add quotes.
19845       sed -n \
19846         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19847       ;;
19848     esac;
19849 } |
19850   sed '
19851      t clear
19852      : clear
19853      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19854      t end
19855      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19856      : end' >>confcache
19857 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19858   if test -w $cache_file; then
19859     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19860     cat confcache >$cache_file
19861   else
19862     echo "not updating unwritable cache $cache_file"
19863   fi
19864 fi
19865 rm -f confcache
19866
19867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19868 # Let make expand exec_prefix.
19869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19870
19871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19873 # trailing colons and then remove the whole line if VPATH becomes empty
19874 # (actually we leave an empty line to preserve line numbers).
19875 if test "x$srcdir" = x.; then
19876   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19877 s/:*\$(srcdir):*/:/;
19878 s/:*\${srcdir}:*/:/;
19879 s/:*@srcdir@:*/:/;
19880 s/^\([^=]*=[     ]*\):*/\1/;
19881 s/:*$//;
19882 s/^[^=]*=[       ]*$//;
19883 }'
19884 fi
19885
19886 DEFS=-DHAVE_CONFIG_H
19887
19888 ac_libobjs=
19889 ac_ltlibobjs=
19890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19891   # 1. Remove the extension, and $U if already installed.
19892   ac_i=`echo "$ac_i" |
19893          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19894   # 2. Add them.
19895   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19896   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19897 done
19898 LIBOBJS=$ac_libobjs
19899
19900 LTLIBOBJS=$ac_ltlibobjs
19901
19902
19903 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
19904   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908    { (exit 1); exit 1; }; }
19909 fi
19910 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
19911   { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&5
19913 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&2;}
19915    { (exit 1); exit 1; }; }
19916 fi
19917 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
19918   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&5
19920 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&2;}
19922    { (exit 1); exit 1; }; }
19923 fi
19924 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
19925   { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
19926 Usually this means the macro was only invoked conditionally." >&5
19927 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
19928 Usually this means the macro was only invoked conditionally." >&2;}
19929    { (exit 1); exit 1; }; }
19930 fi
19931 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
19932   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
19933 Usually this means the macro was only invoked conditionally." >&5
19934 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
19935 Usually this means the macro was only invoked conditionally." >&2;}
19936    { (exit 1); exit 1; }; }
19937 fi
19938 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
19939   { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19940 Usually this means the macro was only invoked conditionally." >&5
19941 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19942 Usually this means the macro was only invoked conditionally." >&2;}
19943    { (exit 1); exit 1; }; }
19944 fi
19945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19946   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19947 Usually this means the macro was only invoked conditionally." >&5
19948 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19949 Usually this means the macro was only invoked conditionally." >&2;}
19950    { (exit 1); exit 1; }; }
19951 fi
19952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19953   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19954 Usually this means the macro was only invoked conditionally." >&5
19955 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19956 Usually this means the macro was only invoked conditionally." >&2;}
19957    { (exit 1); exit 1; }; }
19958 fi
19959 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
19960   { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19961 Usually this means the macro was only invoked conditionally." >&5
19962 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19963 Usually this means the macro was only invoked conditionally." >&2;}
19964    { (exit 1); exit 1; }; }
19965 fi
19966 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
19967   { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19968 Usually this means the macro was only invoked conditionally." >&5
19969 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19970 Usually this means the macro was only invoked conditionally." >&2;}
19971    { (exit 1); exit 1; }; }
19972 fi
19973 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
19974   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19975 Usually this means the macro was only invoked conditionally." >&5
19976 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19977 Usually this means the macro was only invoked conditionally." >&2;}
19978    { (exit 1); exit 1; }; }
19979 fi
19980 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
19981   { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19982 Usually this means the macro was only invoked conditionally." >&5
19983 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19984 Usually this means the macro was only invoked conditionally." >&2;}
19985    { (exit 1); exit 1; }; }
19986 fi
19987 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
19988   { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
19989 Usually this means the macro was only invoked conditionally." >&5
19990 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
19991 Usually this means the macro was only invoked conditionally." >&2;}
19992    { (exit 1); exit 1; }; }
19993 fi
19994 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
19995   { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
19996 Usually this means the macro was only invoked conditionally." >&5
19997 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
19998 Usually this means the macro was only invoked conditionally." >&2;}
19999    { (exit 1); exit 1; }; }
20000 fi
20001 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
20002   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&5
20004 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
20005 Usually this means the macro was only invoked conditionally." >&2;}
20006    { (exit 1); exit 1; }; }
20007 fi
20008 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
20009   { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&5
20011 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
20012 Usually this means the macro was only invoked conditionally." >&2;}
20013    { (exit 1); exit 1; }; }
20014 fi
20015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20016   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&5
20018 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20019 Usually this means the macro was only invoked conditionally." >&2;}
20020    { (exit 1); exit 1; }; }
20021 fi
20022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20023   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&5
20025 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20026 Usually this means the macro was only invoked conditionally." >&2;}
20027    { (exit 1); exit 1; }; }
20028 fi
20029 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
20030   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034    { (exit 1); exit 1; }; }
20035 fi
20036 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
20037   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&5
20039 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&2;}
20041    { (exit 1); exit 1; }; }
20042 fi
20043 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
20044   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
20045 Usually this means the macro was only invoked conditionally." >&5
20046 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&2;}
20048    { (exit 1); exit 1; }; }
20049 fi
20050 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
20051   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
20052 Usually this means the macro was only invoked conditionally." >&5
20053 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&2;}
20055    { (exit 1); exit 1; }; }
20056 fi
20057 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
20058   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
20059 Usually this means the macro was only invoked conditionally." >&5
20060 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&2;}
20062    { (exit 1); exit 1; }; }
20063 fi
20064 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
20065   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
20066 Usually this means the macro was only invoked conditionally." >&5
20067 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&2;}
20069    { (exit 1); exit 1; }; }
20070 fi
20071 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
20072   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
20073 Usually this means the macro was only invoked conditionally." >&5
20074 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
20075 Usually this means the macro was only invoked conditionally." >&2;}
20076    { (exit 1); exit 1; }; }
20077 fi
20078 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
20079   { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
20080 Usually this means the macro was only invoked conditionally." >&5
20081 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
20082 Usually this means the macro was only invoked conditionally." >&2;}
20083    { (exit 1); exit 1; }; }
20084 fi
20085 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
20086   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
20087 Usually this means the macro was only invoked conditionally." >&5
20088 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
20089 Usually this means the macro was only invoked conditionally." >&2;}
20090    { (exit 1); exit 1; }; }
20091 fi
20092 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
20093   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
20094 Usually this means the macro was only invoked conditionally." >&5
20095 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
20096 Usually this means the macro was only invoked conditionally." >&2;}
20097    { (exit 1); exit 1; }; }
20098 fi
20099 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20100   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20101 Usually this means the macro was only invoked conditionally." >&5
20102 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20103 Usually this means the macro was only invoked conditionally." >&2;}
20104    { (exit 1); exit 1; }; }
20105 fi
20106 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
20107   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
20108 Usually this means the macro was only invoked conditionally." >&5
20109 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
20110 Usually this means the macro was only invoked conditionally." >&2;}
20111    { (exit 1); exit 1; }; }
20112 fi
20113 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
20114   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
20115 Usually this means the macro was only invoked conditionally." >&5
20116 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
20117 Usually this means the macro was only invoked conditionally." >&2;}
20118    { (exit 1); exit 1; }; }
20119 fi
20120 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
20121   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
20122 Usually this means the macro was only invoked conditionally." >&5
20123 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
20124 Usually this means the macro was only invoked conditionally." >&2;}
20125    { (exit 1); exit 1; }; }
20126 fi
20127 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
20128   { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
20129 Usually this means the macro was only invoked conditionally." >&5
20130 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
20131 Usually this means the macro was only invoked conditionally." >&2;}
20132    { (exit 1); exit 1; }; }
20133 fi
20134 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
20135   { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
20136 Usually this means the macro was only invoked conditionally." >&5
20137 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
20138 Usually this means the macro was only invoked conditionally." >&2;}
20139    { (exit 1); exit 1; }; }
20140 fi
20141 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
20142   { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&5
20144 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&2;}
20146    { (exit 1); exit 1; }; }
20147 fi
20148 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
20149   { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&5
20151 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
20152 Usually this means the macro was only invoked conditionally." >&2;}
20153    { (exit 1); exit 1; }; }
20154 fi
20155 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
20156   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
20157 Usually this means the macro was only invoked conditionally." >&5
20158 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
20159 Usually this means the macro was only invoked conditionally." >&2;}
20160    { (exit 1); exit 1; }; }
20161 fi
20162
20163 : ${CONFIG_STATUS=./config.status}
20164 ac_clean_files_save=$ac_clean_files
20165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20168 cat >$CONFIG_STATUS <<_ACEOF
20169 #! $SHELL
20170 # Generated by $as_me.
20171 # Run this file to recreate the current configuration.
20172 # Compiler output produced by configure, useful for debugging
20173 # configure, is in config.log if it exists.
20174
20175 debug=false
20176 ac_cs_recheck=false
20177 ac_cs_silent=false
20178 SHELL=\${CONFIG_SHELL-$SHELL}
20179 _ACEOF
20180
20181 cat >>$CONFIG_STATUS <<\_ACEOF
20182 ## --------------------- ##
20183 ## M4sh Initialization.  ##
20184 ## --------------------- ##
20185
20186 # Be Bourne compatible
20187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20188   emulate sh
20189   NULLCMD=:
20190   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20191   # is contrary to our usage.  Disable this feature.
20192   alias -g '${1+"$@"}'='"$@"'
20193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20194   set -o posix
20195 fi
20196 DUALCASE=1; export DUALCASE # for MKS sh
20197
20198 # Support unset when possible.
20199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20200   as_unset=unset
20201 else
20202   as_unset=false
20203 fi
20204
20205
20206 # Work around bugs in pre-3.0 UWIN ksh.
20207 $as_unset ENV MAIL MAILPATH
20208 PS1='$ '
20209 PS2='> '
20210 PS4='+ '
20211
20212 # NLS nuisances.
20213 for as_var in \
20214   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20215   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20216   LC_TELEPHONE LC_TIME
20217 do
20218   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20219     eval $as_var=C; export $as_var
20220   else
20221     $as_unset $as_var
20222   fi
20223 done
20224
20225 # Required to use basename.
20226 if expr a : '\(a\)' >/dev/null 2>&1; then
20227   as_expr=expr
20228 else
20229   as_expr=false
20230 fi
20231
20232 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20233   as_basename=basename
20234 else
20235   as_basename=false
20236 fi
20237
20238
20239 # Name of the executable.
20240 as_me=`$as_basename "$0" ||
20241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20242          X"$0" : 'X\(//\)$' \| \
20243          X"$0" : 'X\(/\)$' \| \
20244          .     : '\(.\)' 2>/dev/null ||
20245 echo X/"$0" |
20246     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20247           /^X\/\(\/\/\)$/{ s//\1/; q; }
20248           /^X\/\(\/\).*/{ s//\1/; q; }
20249           s/.*/./; q'`
20250
20251
20252 # PATH needs CR, and LINENO needs CR and PATH.
20253 # Avoid depending upon Character Ranges.
20254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20257 as_cr_digits='0123456789'
20258 as_cr_alnum=$as_cr_Letters$as_cr_digits
20259
20260 # The user is always right.
20261 if test "${PATH_SEPARATOR+set}" != set; then
20262   echo "#! /bin/sh" >conf$$.sh
20263   echo  "exit 0"   >>conf$$.sh
20264   chmod +x conf$$.sh
20265   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20266     PATH_SEPARATOR=';'
20267   else
20268     PATH_SEPARATOR=:
20269   fi
20270   rm -f conf$$.sh
20271 fi
20272
20273
20274   as_lineno_1=$LINENO
20275   as_lineno_2=$LINENO
20276   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20277   test "x$as_lineno_1" != "x$as_lineno_2" &&
20278   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20279   # Find who we are.  Look in the path if we contain no path at all
20280   # relative or not.
20281   case $0 in
20282     *[\\/]* ) as_myself=$0 ;;
20283     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20284 for as_dir in $PATH
20285 do
20286   IFS=$as_save_IFS
20287   test -z "$as_dir" && as_dir=.
20288   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20289 done
20290
20291        ;;
20292   esac
20293   # We did not find ourselves, most probably we were run as `sh COMMAND'
20294   # in which case we are not to be found in the path.
20295   if test "x$as_myself" = x; then
20296     as_myself=$0
20297   fi
20298   if test ! -f "$as_myself"; then
20299     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20300 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20301    { (exit 1); exit 1; }; }
20302   fi
20303   case $CONFIG_SHELL in
20304   '')
20305     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20306 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20307 do
20308   IFS=$as_save_IFS
20309   test -z "$as_dir" && as_dir=.
20310   for as_base in sh bash ksh sh5; do
20311          case $as_dir in
20312          /*)
20313            if ("$as_dir/$as_base" -c '
20314   as_lineno_1=$LINENO
20315   as_lineno_2=$LINENO
20316   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20317   test "x$as_lineno_1" != "x$as_lineno_2" &&
20318   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20319              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20320              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20321              CONFIG_SHELL=$as_dir/$as_base
20322              export CONFIG_SHELL
20323              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20324            fi;;
20325          esac
20326        done
20327 done
20328 ;;
20329   esac
20330
20331   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20332   # uniformly replaced by the line number.  The first 'sed' inserts a
20333   # line-number line before each line; the second 'sed' does the real
20334   # work.  The second script uses 'N' to pair each line-number line
20335   # with the numbered line, and appends trailing '-' during
20336   # substitution so that $LINENO is not a special case at line end.
20337   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20338   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20339   sed '=' <$as_myself |
20340     sed '
20341       N
20342       s,$,-,
20343       : loop
20344       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20345       t loop
20346       s,-$,,
20347       s,^['$as_cr_digits']*\n,,
20348     ' >$as_me.lineno &&
20349   chmod +x $as_me.lineno ||
20350     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20351 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20352    { (exit 1); exit 1; }; }
20353
20354   # Don't try to exec as it changes $[0], causing all sort of problems
20355   # (the dirname of $[0] is not the place where we might find the
20356   # original and so on.  Autoconf is especially sensible to this).
20357   . ./$as_me.lineno
20358   # Exit status is that of the last command.
20359   exit
20360 }
20361
20362
20363 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20364   *c*,-n*) ECHO_N= ECHO_C='
20365 ' ECHO_T='      ' ;;
20366   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20367   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20368 esac
20369
20370 if expr a : '\(a\)' >/dev/null 2>&1; then
20371   as_expr=expr
20372 else
20373   as_expr=false
20374 fi
20375
20376 rm -f conf$$ conf$$.exe conf$$.file
20377 echo >conf$$.file
20378 if ln -s conf$$.file conf$$ 2>/dev/null; then
20379   # We could just check for DJGPP; but this test a) works b) is more generic
20380   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20381   if test -f conf$$.exe; then
20382     # Don't use ln at all; we don't have any links
20383     as_ln_s='cp -p'
20384   else
20385     as_ln_s='ln -s'
20386   fi
20387 elif ln conf$$.file conf$$ 2>/dev/null; then
20388   as_ln_s=ln
20389 else
20390   as_ln_s='cp -p'
20391 fi
20392 rm -f conf$$ conf$$.exe conf$$.file
20393
20394 if mkdir -p . 2>/dev/null; then
20395   as_mkdir_p=:
20396 else
20397   test -d ./-p && rmdir ./-p
20398   as_mkdir_p=false
20399 fi
20400
20401 as_executable_p="test -f"
20402
20403 # Sed expression to map a string onto a valid CPP name.
20404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20405
20406 # Sed expression to map a string onto a valid variable name.
20407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20408
20409
20410 # IFS
20411 # We need space, tab and new line, in precisely that order.
20412 as_nl='
20413 '
20414 IFS="   $as_nl"
20415
20416 # CDPATH.
20417 $as_unset CDPATH
20418
20419 exec 6>&1
20420
20421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20422 # report actual input values of CONFIG_FILES etc. instead of their
20423 # values after options handling.  Logging --version etc. is OK.
20424 exec 5>>config.log
20425 {
20426   echo
20427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20428 ## Running $as_me. ##
20429 _ASBOX
20430 } >&5
20431 cat >&5 <<_CSEOF
20432
20433 This file was extended by GNU Classpath $as_me 0.94-pre, which was
20434 generated by GNU Autoconf 2.59.  Invocation command line was
20435
20436   CONFIG_FILES    = $CONFIG_FILES
20437   CONFIG_HEADERS  = $CONFIG_HEADERS
20438   CONFIG_LINKS    = $CONFIG_LINKS
20439   CONFIG_COMMANDS = $CONFIG_COMMANDS
20440   $ $0 $@
20441
20442 _CSEOF
20443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20444 echo >&5
20445 _ACEOF
20446
20447 # Files that config.status was made for.
20448 if test -n "$ac_config_files"; then
20449   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20450 fi
20451
20452 if test -n "$ac_config_headers"; then
20453   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20454 fi
20455
20456 if test -n "$ac_config_links"; then
20457   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20458 fi
20459
20460 if test -n "$ac_config_commands"; then
20461   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20462 fi
20463
20464 cat >>$CONFIG_STATUS <<\_ACEOF
20465
20466 ac_cs_usage="\
20467 \`$as_me' instantiates files from templates according to the
20468 current configuration.
20469
20470 Usage: $0 [OPTIONS] [FILE]...
20471
20472   -h, --help       print this help, then exit
20473   -V, --version    print version number, then exit
20474   -q, --quiet      do not print progress messages
20475   -d, --debug      don't remove temporary files
20476       --recheck    update $as_me by reconfiguring in the same conditions
20477   --file=FILE[:TEMPLATE]
20478                    instantiate the configuration file FILE
20479   --header=FILE[:TEMPLATE]
20480                    instantiate the configuration header FILE
20481
20482 Configuration files:
20483 $config_files
20484
20485 Configuration headers:
20486 $config_headers
20487
20488 Configuration links:
20489 $config_links
20490
20491 Configuration commands:
20492 $config_commands
20493
20494 Report bugs to <bug-autoconf@gnu.org>."
20495 _ACEOF
20496
20497 cat >>$CONFIG_STATUS <<_ACEOF
20498 ac_cs_version="\\
20499 GNU Classpath config.status 0.94-pre
20500 configured by $0, generated by GNU Autoconf 2.59,
20501   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20502
20503 Copyright (C) 2003 Free Software Foundation, Inc.
20504 This config.status script is free software; the Free Software Foundation
20505 gives unlimited permission to copy, distribute and modify it."
20506 srcdir=$srcdir
20507 INSTALL="$INSTALL"
20508 _ACEOF
20509
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20511 # If no file are specified by the user, then we need to provide default
20512 # value.  By we need to know if files were specified by the user.
20513 ac_need_defaults=:
20514 while test $# != 0
20515 do
20516   case $1 in
20517   --*=*)
20518     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20519     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20520     ac_shift=:
20521     ;;
20522   -*)
20523     ac_option=$1
20524     ac_optarg=$2
20525     ac_shift=shift
20526     ;;
20527   *) # This is not an option, so the user has probably given explicit
20528      # arguments.
20529      ac_option=$1
20530      ac_need_defaults=false;;
20531   esac
20532
20533   case $ac_option in
20534   # Handling of the options.
20535 _ACEOF
20536 cat >>$CONFIG_STATUS <<\_ACEOF
20537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20538     ac_cs_recheck=: ;;
20539   --version | --vers* | -V )
20540     echo "$ac_cs_version"; exit 0 ;;
20541   --he | --h)
20542     # Conflict between --help and --header
20543     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20544 Try \`$0 --help' for more information." >&5
20545 echo "$as_me: error: ambiguous option: $1
20546 Try \`$0 --help' for more information." >&2;}
20547    { (exit 1); exit 1; }; };;
20548   --help | --hel | -h )
20549     echo "$ac_cs_usage"; exit 0 ;;
20550   --debug | --d* | -d )
20551     debug=: ;;
20552   --file | --fil | --fi | --f )
20553     $ac_shift
20554     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20555     ac_need_defaults=false;;
20556   --header | --heade | --head | --hea )
20557     $ac_shift
20558     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20559     ac_need_defaults=false;;
20560   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20561   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20562     ac_cs_silent=: ;;
20563
20564   # This is an error.
20565   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20566 Try \`$0 --help' for more information." >&5
20567 echo "$as_me: error: unrecognized option: $1
20568 Try \`$0 --help' for more information." >&2;}
20569    { (exit 1); exit 1; }; } ;;
20570
20571   *) ac_config_targets="$ac_config_targets $1" ;;
20572
20573   esac
20574   shift
20575 done
20576
20577 ac_configure_extra_args=
20578
20579 if $ac_cs_silent; then
20580   exec 6>/dev/null
20581   ac_configure_extra_args="$ac_configure_extra_args --silent"
20582 fi
20583
20584 _ACEOF
20585 cat >>$CONFIG_STATUS <<_ACEOF
20586 if \$ac_cs_recheck; then
20587   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20588   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20589 fi
20590
20591 _ACEOF
20592
20593 cat >>$CONFIG_STATUS <<_ACEOF
20594 #
20595 # INIT-COMMANDS section.
20596 #
20597
20598
20599 srcdir="$srcdir"
20600 host="$host"
20601 target="$target"
20602 with_multisubdir="$with_multisubdir"
20603 with_multisrctop="$with_multisrctop"
20604 with_target_subdir="$with_target_subdir"
20605 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20606 multi_basedir="$multi_basedir"
20607 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20608 CC="$CC"
20609 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20610 # variables for create stdint.h replacement
20611 PACKAGE="$PACKAGE"
20612 VERSION="$VERSION"
20613 ac_stdint_h="$ac_stdint_h"
20614 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
20615 ac_cv_stdint_message="$ac_cv_stdint_message"
20616 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
20617 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
20618 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
20619 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
20620 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20621 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20622 ac_cv_char_data_model="$ac_cv_char_data_model"
20623 ac_cv_long_data_model="$ac_cv_long_data_model"
20624 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20625 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20626 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
20627
20628
20629 _ACEOF
20630
20631
20632
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 for ac_config_target in $ac_config_targets
20635 do
20636   case "$ac_config_target" in
20637   # Handling of arguments.
20638   "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
20639   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20640   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20641   "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
20642   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
20643   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
20644   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
20645   "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
20646   "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
20647   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
20648   "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
20649   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20650   "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
20651   "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
20652   "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
20653   "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
20654   "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
20655   "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
20656   "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
20657   "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
20658   "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
20659   "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
20660   "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
20661   "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
20662   "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
20663   "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
20664   "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
20665   "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
20666   "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
20667   "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
20668   "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
20669   "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
20670   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20671   "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
20672   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20673   "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
20674   "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
20675   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20676   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20677   "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
20678   "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
20679   "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
20680   "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
20681   "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
20682   "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
20683   "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
20684   "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
20685   "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
20686   "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
20687   "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
20688   "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
20689   "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
20690   "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
20691   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
20692   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20693   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20694   "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
20695   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
20696   "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
20697   "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
20698   "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
20699   "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
20700   "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
20701   "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
20702   "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
20703   "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
20704   "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
20705   "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
20706   "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
20707   "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
20708   "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
20709   "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
20710   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20711   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20712 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20713    { (exit 1); exit 1; }; };;
20714   esac
20715 done
20716
20717 # If the user did not use the arguments to specify the items to instantiate,
20718 # then the envvar interface is used.  Set only those that are not.
20719 # We use the long form for the default assignment because of an extremely
20720 # bizarre bug on SunOS 4.1.3.
20721 if $ac_need_defaults; then
20722   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20723   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20724   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20725   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20726 fi
20727
20728 # Have a temporary directory for convenience.  Make it in the build tree
20729 # simply because there is no reason to put it here, and in addition,
20730 # creating and moving files from /tmp can sometimes cause problems.
20731 # Create a temporary directory, and hook for its removal unless debugging.
20732 $debug ||
20733 {
20734   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20735   trap '{ (exit 1); exit 1; }' 1 2 13 15
20736 }
20737
20738 # Create a (secure) tmp directory for tmp files.
20739
20740 {
20741   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20742   test -n "$tmp" && test -d "$tmp"
20743 }  ||
20744 {
20745   tmp=./confstat$$-$RANDOM
20746   (umask 077 && mkdir $tmp)
20747 } ||
20748 {
20749    echo "$me: cannot create a temporary directory in ." >&2
20750    { (exit 1); exit 1; }
20751 }
20752
20753 _ACEOF
20754
20755 cat >>$CONFIG_STATUS <<_ACEOF
20756
20757 #
20758 # CONFIG_FILES section.
20759 #
20760
20761 # No need to generate the scripts if there are no CONFIG_FILES.
20762 # This happens for instance when ./config.status config.h
20763 if test -n "\$CONFIG_FILES"; then
20764   # Protect against being on the right side of a sed subst in config.status.
20765   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20766    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20767 s,@SHELL@,$SHELL,;t t
20768 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20769 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20770 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20771 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20772 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20773 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20774 s,@exec_prefix@,$exec_prefix,;t t
20775 s,@prefix@,$prefix,;t t
20776 s,@program_transform_name@,$program_transform_name,;t t
20777 s,@bindir@,$bindir,;t t
20778 s,@sbindir@,$sbindir,;t t
20779 s,@libexecdir@,$libexecdir,;t t
20780 s,@datadir@,$datadir,;t t
20781 s,@sysconfdir@,$sysconfdir,;t t
20782 s,@sharedstatedir@,$sharedstatedir,;t t
20783 s,@localstatedir@,$localstatedir,;t t
20784 s,@libdir@,$libdir,;t t
20785 s,@includedir@,$includedir,;t t
20786 s,@oldincludedir@,$oldincludedir,;t t
20787 s,@infodir@,$infodir,;t t
20788 s,@mandir@,$mandir,;t t
20789 s,@build_alias@,$build_alias,;t t
20790 s,@host_alias@,$host_alias,;t t
20791 s,@target_alias@,$target_alias,;t t
20792 s,@DEFS@,$DEFS,;t t
20793 s,@ECHO_C@,$ECHO_C,;t t
20794 s,@ECHO_N@,$ECHO_N,;t t
20795 s,@ECHO_T@,$ECHO_T,;t t
20796 s,@LIBS@,$LIBS,;t t
20797 s,@build@,$build,;t t
20798 s,@build_cpu@,$build_cpu,;t t
20799 s,@build_vendor@,$build_vendor,;t t
20800 s,@build_os@,$build_os,;t t
20801 s,@host@,$host,;t t
20802 s,@host_cpu@,$host_cpu,;t t
20803 s,@host_vendor@,$host_vendor,;t t
20804 s,@host_os@,$host_os,;t t
20805 s,@target@,$target,;t t
20806 s,@target_cpu@,$target_cpu,;t t
20807 s,@target_vendor@,$target_vendor,;t t
20808 s,@target_os@,$target_os,;t t
20809 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
20810 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
20811 s,@multi_basedir@,$multi_basedir,;t t
20812 s,@LIBVERSION@,$LIBVERSION,;t t
20813 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
20814 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
20815 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20816 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20817 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20818 s,@CYGPATH_W@,$CYGPATH_W,;t t
20819 s,@PACKAGE@,$PACKAGE,;t t
20820 s,@VERSION@,$VERSION,;t t
20821 s,@ACLOCAL@,$ACLOCAL,;t t
20822 s,@AUTOCONF@,$AUTOCONF,;t t
20823 s,@AUTOMAKE@,$AUTOMAKE,;t t
20824 s,@AUTOHEADER@,$AUTOHEADER,;t t
20825 s,@MAKEINFO@,$MAKEINFO,;t t
20826 s,@install_sh@,$install_sh,;t t
20827 s,@STRIP@,$STRIP,;t t
20828 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20829 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20830 s,@mkdir_p@,$mkdir_p,;t t
20831 s,@AWK@,$AWK,;t t
20832 s,@SET_MAKE@,$SET_MAKE,;t t
20833 s,@am__leading_dot@,$am__leading_dot,;t t
20834 s,@AMTAR@,$AMTAR,;t t
20835 s,@am__tar@,$am__tar,;t t
20836 s,@am__untar@,$am__untar,;t t
20837 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
20838 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
20839 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
20840 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
20841 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
20842 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
20843 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
20844 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
20845 s,@default_toolkit@,$default_toolkit,;t t
20846 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
20847 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
20848 s,@CC@,$CC,;t t
20849 s,@CFLAGS@,$CFLAGS,;t t
20850 s,@LDFLAGS@,$LDFLAGS,;t t
20851 s,@CPPFLAGS@,$CPPFLAGS,;t t
20852 s,@ac_ct_CC@,$ac_ct_CC,;t t
20853 s,@EXEEXT@,$EXEEXT,;t t
20854 s,@OBJEXT@,$OBJEXT,;t t
20855 s,@DEPDIR@,$DEPDIR,;t t
20856 s,@am__include@,$am__include,;t t
20857 s,@am__quote@,$am__quote,;t t
20858 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20859 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20860 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20861 s,@CCDEPMODE@,$CCDEPMODE,;t t
20862 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20863 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20864 s,@CPP@,$CPP,;t t
20865 s,@EGREP@,$EGREP,;t t
20866 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
20867 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
20868 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
20869 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
20870 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
20871 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
20872 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
20873 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
20874 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
20875 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
20876 s,@toolexeclibdir@,$toolexeclibdir,;t t
20877 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
20878 s,@glibjdir@,$glibjdir,;t t
20879 s,@VM_BINARY@,$VM_BINARY,;t t
20880 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
20881 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
20882 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
20883 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
20884 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
20885 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
20886 s,@LN_S@,$LN_S,;t t
20887 s,@RANLIB@,$RANLIB,;t t
20888 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20889 s,@LIBTOOL@,$LIBTOOL,;t t
20890 s,@CXX@,$CXX,;t t
20891 s,@CXXFLAGS@,$CXXFLAGS,;t t
20892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20893 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20894 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20895 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20896 s,@CXXCPP@,$CXXCPP,;t t
20897 s,@PERL@,$PERL,;t t
20898 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
20899 s,@LIBMAGIC@,$LIBMAGIC,;t t
20900 s,@LIBICONV@,$LIBICONV,;t t
20901 s,@LTLIBICONV@,$LTLIBICONV,;t t
20902 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
20903 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
20904 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
20905 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20906 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
20907 s,@XML_LIBS@,$XML_LIBS,;t t
20908 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
20909 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
20910 s,@X_CFLAGS@,$X_CFLAGS,;t t
20911 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20912 s,@X_LIBS@,$X_LIBS,;t t
20913 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20914 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20915 s,@GTK_LIBS@,$GTK_LIBS,;t t
20916 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
20917 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
20918 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
20919 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
20920 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
20921 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
20922 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
20923 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
20924 s,@GDK_LIBS@,$GDK_LIBS,;t t
20925 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
20926 s,@QT_LIBS@,$QT_LIBS,;t t
20927 s,@MOC@,$MOC,;t t
20928 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
20929 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
20930 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
20931 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
20932 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
20933 s,@USER_JAVAH@,$USER_JAVAH,;t t
20934 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
20935 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
20936 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
20937 s,@GCJ@,$GCJ,;t t
20938 s,@JIKES@,$JIKES,;t t
20939 s,@JIKESENCODING@,$JIKESENCODING,;t t
20940 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
20941 s,@KJC@,$KJC,;t t
20942 s,@GCJX@,$GCJX,;t t
20943 s,@ECJ@,$ECJ,;t t
20944 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
20945 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
20946 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
20947 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
20948 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
20949 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
20950 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
20951 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
20952 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
20953 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
20954 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
20955 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
20956 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
20957 s,@vm_classes@,$vm_classes,;t t
20958 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20959 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20960 s,@MAINT@,$MAINT,;t t
20961 s,@LIBDEBUG@,$LIBDEBUG,;t t
20962 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
20963 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
20964 s,@REMOVE@,$REMOVE,;t t
20965 s,@MKDIR@,$MKDIR,;t t
20966 s,@CP@,$CP,;t t
20967 s,@DATE@,$DATE,;t t
20968 s,@FIND@,$FIND,;t t
20969 s,@ZIP@,$ZIP,;t t
20970 s,@FASTJAR@,$FASTJAR,;t t
20971 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
20972 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
20973 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
20974 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
20975 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
20976 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
20977 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
20978 s,@GJDOC@,$GJDOC,;t t
20979 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
20980 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
20981 s,@JAY@,$JAY,;t t
20982 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
20983 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
20984 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
20985 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
20986 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
20987 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
20988 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
20989 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
20990 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
20991 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
20992 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
20993 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
20994 s,@LIBOBJS@,$LIBOBJS,;t t
20995 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20996 CEOF
20997
20998 _ACEOF
20999
21000   cat >>$CONFIG_STATUS <<\_ACEOF
21001   # Split the substitutions into bite-sized pieces for seds with
21002   # small command number limits, like on Digital OSF/1 and HP-UX.
21003   ac_max_sed_lines=48
21004   ac_sed_frag=1 # Number of current file.
21005   ac_beg=1 # First line for current file.
21006   ac_end=$ac_max_sed_lines # Line after last line for current file.
21007   ac_more_lines=:
21008   ac_sed_cmds=
21009   while $ac_more_lines; do
21010     if test $ac_beg -gt 1; then
21011       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21012     else
21013       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21014     fi
21015     if test ! -s $tmp/subs.frag; then
21016       ac_more_lines=false
21017     else
21018       # The purpose of the label and of the branching condition is to
21019       # speed up the sed processing (if there are no `@' at all, there
21020       # is no need to browse any of the substitutions).
21021       # These are the two extra sed commands mentioned above.
21022       (echo ':t
21023   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21024       if test -z "$ac_sed_cmds"; then
21025         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21026       else
21027         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21028       fi
21029       ac_sed_frag=`expr $ac_sed_frag + 1`
21030       ac_beg=$ac_end
21031       ac_end=`expr $ac_end + $ac_max_sed_lines`
21032     fi
21033   done
21034   if test -z "$ac_sed_cmds"; then
21035     ac_sed_cmds=cat
21036   fi
21037 fi # test -n "$CONFIG_FILES"
21038
21039 _ACEOF
21040 cat >>$CONFIG_STATUS <<\_ACEOF
21041 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21042   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21043   case $ac_file in
21044   - | *:- | *:-:* ) # input from stdin
21045         cat >$tmp/stdin
21046         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21048   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21049         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21050   * )   ac_file_in=$ac_file.in ;;
21051   esac
21052
21053   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21054   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21056          X"$ac_file" : 'X\(//\)[^/]' \| \
21057          X"$ac_file" : 'X\(//\)$' \| \
21058          X"$ac_file" : 'X\(/\)' \| \
21059          .     : '\(.\)' 2>/dev/null ||
21060 echo X"$ac_file" |
21061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21062           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21063           /^X\(\/\/\)$/{ s//\1/; q; }
21064           /^X\(\/\).*/{ s//\1/; q; }
21065           s/.*/./; q'`
21066   { if $as_mkdir_p; then
21067     mkdir -p "$ac_dir"
21068   else
21069     as_dir="$ac_dir"
21070     as_dirs=
21071     while test ! -d "$as_dir"; do
21072       as_dirs="$as_dir $as_dirs"
21073       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21075          X"$as_dir" : 'X\(//\)[^/]' \| \
21076          X"$as_dir" : 'X\(//\)$' \| \
21077          X"$as_dir" : 'X\(/\)' \| \
21078          .     : '\(.\)' 2>/dev/null ||
21079 echo X"$as_dir" |
21080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21081           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21082           /^X\(\/\/\)$/{ s//\1/; q; }
21083           /^X\(\/\).*/{ s//\1/; q; }
21084           s/.*/./; q'`
21085     done
21086     test ! -n "$as_dirs" || mkdir $as_dirs
21087   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21089    { (exit 1); exit 1; }; }; }
21090
21091   ac_builddir=.
21092
21093 if test "$ac_dir" != .; then
21094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21095   # A "../" for each directory in $ac_dir_suffix.
21096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21097 else
21098   ac_dir_suffix= ac_top_builddir=
21099 fi
21100
21101 case $srcdir in
21102   .)  # No --srcdir option.  We are building in place.
21103     ac_srcdir=.
21104     if test -z "$ac_top_builddir"; then
21105        ac_top_srcdir=.
21106     else
21107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21108     fi ;;
21109   [\\/]* | ?:[\\/]* )  # Absolute path.
21110     ac_srcdir=$srcdir$ac_dir_suffix;
21111     ac_top_srcdir=$srcdir ;;
21112   *) # Relative path.
21113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21115 esac
21116
21117 # Do not use `cd foo && pwd` to compute absolute paths, because
21118 # the directories may not exist.
21119 case `pwd` in
21120 .) ac_abs_builddir="$ac_dir";;
21121 *)
21122   case "$ac_dir" in
21123   .) ac_abs_builddir=`pwd`;;
21124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21126   esac;;
21127 esac
21128 case $ac_abs_builddir in
21129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21130 *)
21131   case ${ac_top_builddir}. in
21132   .) ac_abs_top_builddir=$ac_abs_builddir;;
21133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21135   esac;;
21136 esac
21137 case $ac_abs_builddir in
21138 .) ac_abs_srcdir=$ac_srcdir;;
21139 *)
21140   case $ac_srcdir in
21141   .) ac_abs_srcdir=$ac_abs_builddir;;
21142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21144   esac;;
21145 esac
21146 case $ac_abs_builddir in
21147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21148 *)
21149   case $ac_top_srcdir in
21150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21153   esac;;
21154 esac
21155
21156
21157   case $INSTALL in
21158   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21159   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21160   esac
21161
21162   if test x"$ac_file" != x-; then
21163     { echo "$as_me:$LINENO: creating $ac_file" >&5
21164 echo "$as_me: creating $ac_file" >&6;}
21165     rm -f "$ac_file"
21166   fi
21167   # Let's still pretend it is `configure' which instantiates (i.e., don't
21168   # use $as_me), people would be surprised to read:
21169   #    /* config.h.  Generated by config.status.  */
21170   if test x"$ac_file" = x-; then
21171     configure_input=
21172   else
21173     configure_input="$ac_file.  "
21174   fi
21175   configure_input=$configure_input"Generated from `echo $ac_file_in |
21176                                      sed 's,.*/,,'` by configure."
21177
21178   # First look for the input files in the build tree, otherwise in the
21179   # src tree.
21180   ac_file_inputs=`IFS=:
21181     for f in $ac_file_in; do
21182       case $f in
21183       -) echo $tmp/stdin ;;
21184       [\\/$]*)
21185          # Absolute (can't be DOS-style, as IFS=:)
21186          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21187 echo "$as_me: error: cannot find input file: $f" >&2;}
21188    { (exit 1); exit 1; }; }
21189          echo "$f";;
21190       *) # Relative
21191          if test -f "$f"; then
21192            # Build tree
21193            echo "$f"
21194          elif test -f "$srcdir/$f"; then
21195            # Source tree
21196            echo "$srcdir/$f"
21197          else
21198            # /dev/null tree
21199            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21200 echo "$as_me: error: cannot find input file: $f" >&2;}
21201    { (exit 1); exit 1; }; }
21202          fi;;
21203       esac
21204     done` || { (exit 1); exit 1; }
21205 _ACEOF
21206 cat >>$CONFIG_STATUS <<_ACEOF
21207   sed "$ac_vpsub
21208 $extrasub
21209 _ACEOF
21210 cat >>$CONFIG_STATUS <<\_ACEOF
21211 :t
21212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21213 s,@configure_input@,$configure_input,;t t
21214 s,@srcdir@,$ac_srcdir,;t t
21215 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21216 s,@top_srcdir@,$ac_top_srcdir,;t t
21217 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21218 s,@builddir@,$ac_builddir,;t t
21219 s,@abs_builddir@,$ac_abs_builddir,;t t
21220 s,@top_builddir@,$ac_top_builddir,;t t
21221 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21222 s,@INSTALL@,$ac_INSTALL,;t t
21223 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21224   rm -f $tmp/stdin
21225   if test x"$ac_file" != x-; then
21226     mv $tmp/out $ac_file
21227   else
21228     cat $tmp/out
21229     rm -f $tmp/out
21230   fi
21231
21232 done
21233 _ACEOF
21234 cat >>$CONFIG_STATUS <<\_ACEOF
21235
21236 #
21237 # CONFIG_HEADER section.
21238 #
21239
21240 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21241 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21242 #
21243 # ac_d sets the value in "#define NAME VALUE" lines.
21244 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21245 ac_dB='[         ].*$,\1#\2'
21246 ac_dC=' '
21247 ac_dD=',;t'
21248 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21249 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21250 ac_uB='$,\1#\2define\3'
21251 ac_uC=' '
21252 ac_uD=',;t'
21253
21254 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21255   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21256   case $ac_file in
21257   - | *:- | *:-:* ) # input from stdin
21258         cat >$tmp/stdin
21259         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21260         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21261   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21262         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21263   * )   ac_file_in=$ac_file.in ;;
21264   esac
21265
21266   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21267 echo "$as_me: creating $ac_file" >&6;}
21268
21269   # First look for the input files in the build tree, otherwise in the
21270   # src tree.
21271   ac_file_inputs=`IFS=:
21272     for f in $ac_file_in; do
21273       case $f in
21274       -) echo $tmp/stdin ;;
21275       [\\/$]*)
21276          # Absolute (can't be DOS-style, as IFS=:)
21277          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21278 echo "$as_me: error: cannot find input file: $f" >&2;}
21279    { (exit 1); exit 1; }; }
21280          # Do quote $f, to prevent DOS paths from being IFS'd.
21281          echo "$f";;
21282       *) # Relative
21283          if test -f "$f"; then
21284            # Build tree
21285            echo "$f"
21286          elif test -f "$srcdir/$f"; then
21287            # Source tree
21288            echo "$srcdir/$f"
21289          else
21290            # /dev/null tree
21291            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21292 echo "$as_me: error: cannot find input file: $f" >&2;}
21293    { (exit 1); exit 1; }; }
21294          fi;;
21295       esac
21296     done` || { (exit 1); exit 1; }
21297   # Remove the trailing spaces.
21298   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21299
21300 _ACEOF
21301
21302 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21303 # `conftest.undefs', that substitutes the proper values into
21304 # config.h.in to produce config.h.  The first handles `#define'
21305 # templates, and the second `#undef' templates.
21306 # And first: Protect against being on the right side of a sed subst in
21307 # config.status.  Protect against being in an unquoted here document
21308 # in config.status.
21309 rm -f conftest.defines conftest.undefs
21310 # Using a here document instead of a string reduces the quoting nightmare.
21311 # Putting comments in sed scripts is not portable.
21312 #
21313 # `end' is used to avoid that the second main sed command (meant for
21314 # 0-ary CPP macros) applies to n-ary macro definitions.
21315 # See the Autoconf documentation for `clear'.
21316 cat >confdef2sed.sed <<\_ACEOF
21317 s/[\\&,]/\\&/g
21318 s,[\\$`],\\&,g
21319 t clear
21320 : clear
21321 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21322 t end
21323 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21324 : end
21325 _ACEOF
21326 # If some macros were called several times there might be several times
21327 # the same #defines, which is useless.  Nevertheless, we may not want to
21328 # sort them, since we want the *last* AC-DEFINE to be honored.
21329 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21330 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21331 rm -f confdef2sed.sed
21332
21333 # This sed command replaces #undef with comments.  This is necessary, for
21334 # example, in the case of _POSIX_SOURCE, which is predefined and required
21335 # on some systems where configure will not decide to define it.
21336 cat >>conftest.undefs <<\_ACEOF
21337 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21338 _ACEOF
21339
21340 # Break up conftest.defines because some shells have a limit on the size
21341 # of here documents, and old seds have small limits too (100 cmds).
21342 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21343 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21344 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21345 echo '  :' >>$CONFIG_STATUS
21346 rm -f conftest.tail
21347 while grep . conftest.defines >/dev/null
21348 do
21349   # Write a limited-size here document to $tmp/defines.sed.
21350   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21351   # Speed up: don't consider the non `#define' lines.
21352   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21353   # Work around the forget-to-reset-the-flag bug.
21354   echo 't clr' >>$CONFIG_STATUS
21355   echo ': clr' >>$CONFIG_STATUS
21356   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21357   echo 'CEOF
21358   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21359   rm -f $tmp/in
21360   mv $tmp/out $tmp/in
21361 ' >>$CONFIG_STATUS
21362   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21363   rm -f conftest.defines
21364   mv conftest.tail conftest.defines
21365 done
21366 rm -f conftest.defines
21367 echo '  fi # grep' >>$CONFIG_STATUS
21368 echo >>$CONFIG_STATUS
21369
21370 # Break up conftest.undefs because some shells have a limit on the size
21371 # of here documents, and old seds have small limits too (100 cmds).
21372 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21373 rm -f conftest.tail
21374 while grep . conftest.undefs >/dev/null
21375 do
21376   # Write a limited-size here document to $tmp/undefs.sed.
21377   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21378   # Speed up: don't consider the non `#undef'
21379   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21380   # Work around the forget-to-reset-the-flag bug.
21381   echo 't clr' >>$CONFIG_STATUS
21382   echo ': clr' >>$CONFIG_STATUS
21383   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21384   echo 'CEOF
21385   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21386   rm -f $tmp/in
21387   mv $tmp/out $tmp/in
21388 ' >>$CONFIG_STATUS
21389   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21390   rm -f conftest.undefs
21391   mv conftest.tail conftest.undefs
21392 done
21393 rm -f conftest.undefs
21394
21395 cat >>$CONFIG_STATUS <<\_ACEOF
21396   # Let's still pretend it is `configure' which instantiates (i.e., don't
21397   # use $as_me), people would be surprised to read:
21398   #    /* config.h.  Generated by config.status.  */
21399   if test x"$ac_file" = x-; then
21400     echo "/* Generated by configure.  */" >$tmp/config.h
21401   else
21402     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21403   fi
21404   cat $tmp/in >>$tmp/config.h
21405   rm -f $tmp/in
21406   if test x"$ac_file" != x-; then
21407     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21408       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21409 echo "$as_me: $ac_file is unchanged" >&6;}
21410     else
21411       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21413          X"$ac_file" : 'X\(//\)[^/]' \| \
21414          X"$ac_file" : 'X\(//\)$' \| \
21415          X"$ac_file" : 'X\(/\)' \| \
21416          .     : '\(.\)' 2>/dev/null ||
21417 echo X"$ac_file" |
21418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21420           /^X\(\/\/\)$/{ s//\1/; q; }
21421           /^X\(\/\).*/{ s//\1/; q; }
21422           s/.*/./; q'`
21423       { if $as_mkdir_p; then
21424     mkdir -p "$ac_dir"
21425   else
21426     as_dir="$ac_dir"
21427     as_dirs=
21428     while test ! -d "$as_dir"; do
21429       as_dirs="$as_dir $as_dirs"
21430       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21432          X"$as_dir" : 'X\(//\)[^/]' \| \
21433          X"$as_dir" : 'X\(//\)$' \| \
21434          X"$as_dir" : 'X\(/\)' \| \
21435          .     : '\(.\)' 2>/dev/null ||
21436 echo X"$as_dir" |
21437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21438           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21439           /^X\(\/\/\)$/{ s//\1/; q; }
21440           /^X\(\/\).*/{ s//\1/; q; }
21441           s/.*/./; q'`
21442     done
21443     test ! -n "$as_dirs" || mkdir $as_dirs
21444   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21446    { (exit 1); exit 1; }; }; }
21447
21448       rm -f $ac_file
21449       mv $tmp/config.h $ac_file
21450     fi
21451   else
21452     cat $tmp/config.h
21453     rm -f $tmp/config.h
21454   fi
21455 # Compute $ac_file's index in $config_headers.
21456 _am_stamp_count=1
21457 for _am_header in $config_headers :; do
21458   case $_am_header in
21459     $ac_file | $ac_file:* )
21460       break ;;
21461     * )
21462       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21463   esac
21464 done
21465 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21466 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21467          X$ac_file : 'X\(//\)[^/]' \| \
21468          X$ac_file : 'X\(//\)$' \| \
21469          X$ac_file : 'X\(/\)' \| \
21470          .     : '\(.\)' 2>/dev/null ||
21471 echo X$ac_file |
21472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21474           /^X\(\/\/\)$/{ s//\1/; q; }
21475           /^X\(\/\).*/{ s//\1/; q; }
21476           s/.*/./; q'`/stamp-h$_am_stamp_count
21477 done
21478 _ACEOF
21479 cat >>$CONFIG_STATUS <<\_ACEOF
21480
21481 #
21482 # CONFIG_LINKS section.
21483 #
21484
21485 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21486   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21487   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21488
21489   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21491
21492   if test ! -r $srcdir/$ac_source; then
21493     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21494 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21495    { (exit 1); exit 1; }; }
21496   fi
21497   rm -f $ac_dest
21498
21499   # Make relative symlinks.
21500   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21502          X"$ac_dest" : 'X\(//\)[^/]' \| \
21503          X"$ac_dest" : 'X\(//\)$' \| \
21504          X"$ac_dest" : 'X\(/\)' \| \
21505          .     : '\(.\)' 2>/dev/null ||
21506 echo X"$ac_dest" |
21507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21509           /^X\(\/\/\)$/{ s//\1/; q; }
21510           /^X\(\/\).*/{ s//\1/; q; }
21511           s/.*/./; q'`
21512   { if $as_mkdir_p; then
21513     mkdir -p "$ac_dest_dir"
21514   else
21515     as_dir="$ac_dest_dir"
21516     as_dirs=
21517     while test ! -d "$as_dir"; do
21518       as_dirs="$as_dir $as_dirs"
21519       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21521          X"$as_dir" : 'X\(//\)[^/]' \| \
21522          X"$as_dir" : 'X\(//\)$' \| \
21523          X"$as_dir" : 'X\(/\)' \| \
21524          .     : '\(.\)' 2>/dev/null ||
21525 echo X"$as_dir" |
21526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21528           /^X\(\/\/\)$/{ s//\1/; q; }
21529           /^X\(\/\).*/{ s//\1/; q; }
21530           s/.*/./; q'`
21531     done
21532     test ! -n "$as_dirs" || mkdir $as_dirs
21533   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21534 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21535    { (exit 1); exit 1; }; }; }
21536
21537   ac_builddir=.
21538
21539 if test "$ac_dest_dir" != .; then
21540   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21541   # A "../" for each directory in $ac_dir_suffix.
21542   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21543 else
21544   ac_dir_suffix= ac_top_builddir=
21545 fi
21546
21547 case $srcdir in
21548   .)  # No --srcdir option.  We are building in place.
21549     ac_srcdir=.
21550     if test -z "$ac_top_builddir"; then
21551        ac_top_srcdir=.
21552     else
21553        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21554     fi ;;
21555   [\\/]* | ?:[\\/]* )  # Absolute path.
21556     ac_srcdir=$srcdir$ac_dir_suffix;
21557     ac_top_srcdir=$srcdir ;;
21558   *) # Relative path.
21559     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21560     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21561 esac
21562
21563 # Do not use `cd foo && pwd` to compute absolute paths, because
21564 # the directories may not exist.
21565 case `pwd` in
21566 .) ac_abs_builddir="$ac_dest_dir";;
21567 *)
21568   case "$ac_dest_dir" in
21569   .) ac_abs_builddir=`pwd`;;
21570   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
21571   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
21572   esac;;
21573 esac
21574 case $ac_abs_builddir in
21575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21576 *)
21577   case ${ac_top_builddir}. in
21578   .) ac_abs_top_builddir=$ac_abs_builddir;;
21579   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21580   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21581   esac;;
21582 esac
21583 case $ac_abs_builddir in
21584 .) ac_abs_srcdir=$ac_srcdir;;
21585 *)
21586   case $ac_srcdir in
21587   .) ac_abs_srcdir=$ac_abs_builddir;;
21588   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21589   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21590   esac;;
21591 esac
21592 case $ac_abs_builddir in
21593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21594 *)
21595   case $ac_top_srcdir in
21596   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21597   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21598   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21599   esac;;
21600 esac
21601
21602
21603   case $srcdir in
21604   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21605       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21606   esac
21607
21608   # Try a symlink, then a hard link, then a copy.
21609   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21610     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21611     cp -p $srcdir/$ac_source $ac_dest ||
21612     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21613 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21614    { (exit 1); exit 1; }; }
21615 done
21616 _ACEOF
21617 cat >>$CONFIG_STATUS <<\_ACEOF
21618
21619 #
21620 # CONFIG_COMMANDS section.
21621 #
21622 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21623   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21624   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21625   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21626 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627          X"$ac_dest" : 'X\(//\)[^/]' \| \
21628          X"$ac_dest" : 'X\(//\)$' \| \
21629          X"$ac_dest" : 'X\(/\)' \| \
21630          .     : '\(.\)' 2>/dev/null ||
21631 echo X"$ac_dest" |
21632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21633           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21634           /^X\(\/\/\)$/{ s//\1/; q; }
21635           /^X\(\/\).*/{ s//\1/; q; }
21636           s/.*/./; q'`
21637   { if $as_mkdir_p; then
21638     mkdir -p "$ac_dir"
21639   else
21640     as_dir="$ac_dir"
21641     as_dirs=
21642     while test ! -d "$as_dir"; do
21643       as_dirs="$as_dir $as_dirs"
21644       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21646          X"$as_dir" : 'X\(//\)[^/]' \| \
21647          X"$as_dir" : 'X\(//\)$' \| \
21648          X"$as_dir" : 'X\(/\)' \| \
21649          .     : '\(.\)' 2>/dev/null ||
21650 echo X"$as_dir" |
21651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21653           /^X\(\/\/\)$/{ s//\1/; q; }
21654           /^X\(\/\).*/{ s//\1/; q; }
21655           s/.*/./; q'`
21656     done
21657     test ! -n "$as_dirs" || mkdir $as_dirs
21658   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21660    { (exit 1); exit 1; }; }; }
21661
21662   ac_builddir=.
21663
21664 if test "$ac_dir" != .; then
21665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21666   # A "../" for each directory in $ac_dir_suffix.
21667   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21668 else
21669   ac_dir_suffix= ac_top_builddir=
21670 fi
21671
21672 case $srcdir in
21673   .)  # No --srcdir option.  We are building in place.
21674     ac_srcdir=.
21675     if test -z "$ac_top_builddir"; then
21676        ac_top_srcdir=.
21677     else
21678        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21679     fi ;;
21680   [\\/]* | ?:[\\/]* )  # Absolute path.
21681     ac_srcdir=$srcdir$ac_dir_suffix;
21682     ac_top_srcdir=$srcdir ;;
21683   *) # Relative path.
21684     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21685     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21686 esac
21687
21688 # Do not use `cd foo && pwd` to compute absolute paths, because
21689 # the directories may not exist.
21690 case `pwd` in
21691 .) ac_abs_builddir="$ac_dir";;
21692 *)
21693   case "$ac_dir" in
21694   .) ac_abs_builddir=`pwd`;;
21695   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21696   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21697   esac;;
21698 esac
21699 case $ac_abs_builddir in
21700 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21701 *)
21702   case ${ac_top_builddir}. in
21703   .) ac_abs_top_builddir=$ac_abs_builddir;;
21704   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21705   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21706   esac;;
21707 esac
21708 case $ac_abs_builddir in
21709 .) ac_abs_srcdir=$ac_srcdir;;
21710 *)
21711   case $ac_srcdir in
21712   .) ac_abs_srcdir=$ac_abs_builddir;;
21713   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21714   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21715   esac;;
21716 esac
21717 case $ac_abs_builddir in
21718 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21719 *)
21720   case $ac_top_srcdir in
21721   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21722   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21723   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21724   esac;;
21725 esac
21726
21727
21728   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21729 echo "$as_me: executing $ac_dest commands" >&6;}
21730   case $ac_dest in
21731     default-1 )
21732 # Only add multilib support code if we just rebuilt the top-level
21733 # Makefile.
21734 case " $CONFIG_FILES " in
21735  *" Makefile "*)
21736    ac_file=Makefile . ${multi_basedir}/config-ml.in
21737    ;;
21738 esac ;;
21739     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21740   # Strip MF so we end up with the name of the file.
21741   mf=`echo "$mf" | sed -e 's/:.*$//'`
21742   # Check whether this is an Automake generated Makefile or not.
21743   # We used to match only the files named `Makefile.in', but
21744   # some people rename them; so instead we look at the file content.
21745   # Grep'ing the first line is not enough: some people post-process
21746   # each Makefile.in and add a new line on top of each file to say so.
21747   # So let's grep whole file.
21748   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21749     dirpart=`(dirname "$mf") 2>/dev/null ||
21750 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751          X"$mf" : 'X\(//\)[^/]' \| \
21752          X"$mf" : 'X\(//\)$' \| \
21753          X"$mf" : 'X\(/\)' \| \
21754          .     : '\(.\)' 2>/dev/null ||
21755 echo X"$mf" |
21756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21757           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21758           /^X\(\/\/\)$/{ s//\1/; q; }
21759           /^X\(\/\).*/{ s//\1/; q; }
21760           s/.*/./; q'`
21761   else
21762     continue
21763   fi
21764   # Extract the definition of DEPDIR, am__include, and am__quote
21765   # from the Makefile without running `make'.
21766   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21767   test -z "$DEPDIR" && continue
21768   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21769   test -z "am__include" && continue
21770   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21771   # When using ansi2knr, U may be empty or an underscore; expand it
21772   U=`sed -n 's/^U = //p' < "$mf"`
21773   # Find all dependency output files, they are included files with
21774   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21775   # simplest approach to changing $(DEPDIR) to its actual value in the
21776   # expansion.
21777   for file in `sed -n "
21778     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21779        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21780     # Make sure the directory exists.
21781     test -f "$dirpart/$file" && continue
21782     fdir=`(dirname "$file") 2>/dev/null ||
21783 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21784          X"$file" : 'X\(//\)[^/]' \| \
21785          X"$file" : 'X\(//\)$' \| \
21786          X"$file" : 'X\(/\)' \| \
21787          .     : '\(.\)' 2>/dev/null ||
21788 echo X"$file" |
21789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21791           /^X\(\/\/\)$/{ s//\1/; q; }
21792           /^X\(\/\).*/{ s//\1/; q; }
21793           s/.*/./; q'`
21794     { if $as_mkdir_p; then
21795     mkdir -p $dirpart/$fdir
21796   else
21797     as_dir=$dirpart/$fdir
21798     as_dirs=
21799     while test ! -d "$as_dir"; do
21800       as_dirs="$as_dir $as_dirs"
21801       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21803          X"$as_dir" : 'X\(//\)[^/]' \| \
21804          X"$as_dir" : 'X\(//\)$' \| \
21805          X"$as_dir" : 'X\(/\)' \| \
21806          .     : '\(.\)' 2>/dev/null ||
21807 echo X"$as_dir" |
21808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21810           /^X\(\/\/\)$/{ s//\1/; q; }
21811           /^X\(\/\).*/{ s//\1/; q; }
21812           s/.*/./; q'`
21813     done
21814     test ! -n "$as_dirs" || mkdir $as_dirs
21815   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21816 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21817    { (exit 1); exit 1; }; }; }
21818
21819     # echo "creating $dirpart/$file"
21820     echo '# dummy' > "$dirpart/$file"
21821   done
21822 done
21823  ;;
21824     mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
21825     $ac_stdint_h )
21826 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
21827 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21828 ac_stdint=$tmp/_stdint.h
21829
21830 echo "#ifndef" $_ac_stdint_h >$ac_stdint
21831 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
21832 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
21833 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
21834 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
21835 if test "_$ac_cv_header_stdint_t" != "_" ; then
21836 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
21837 echo "#include <stdint.h>" >>$ac_stdint
21838 echo "#endif" >>$ac_stdint
21839 echo "#endif" >>$ac_stdint
21840 else
21841
21842 cat >>$ac_stdint <<STDINT_EOF
21843
21844 /* ................... shortcircuit part ........................... */
21845
21846 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
21847 #include <stdint.h>
21848 #else
21849 #include <stddef.h>
21850
21851 /* .................... configured part ............................ */
21852
21853 STDINT_EOF
21854
21855 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
21856 if test "_$ac_cv_header_stdint_x" != "_" ; then
21857   ac_header="$ac_cv_header_stdint_x"
21858   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
21859 else
21860   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
21861 fi
21862
21863 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
21864 if  test "_$ac_cv_header_stdint_o" != "_" ; then
21865   ac_header="$ac_cv_header_stdint_o"
21866   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
21867 else
21868   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
21869 fi
21870
21871 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
21872 if  test "_$ac_cv_header_stdint_u" != "_" ; then
21873   ac_header="$ac_cv_header_stdint_u"
21874   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
21875 else
21876   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
21877 fi
21878
21879 echo "" >>$ac_stdint
21880
21881 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
21882   echo "#include <$ac_header>" >>$ac_stdint
21883   echo "" >>$ac_stdint
21884 fi fi
21885
21886 echo "/* which 64bit typedef has been found */" >>$ac_stdint
21887 if test "$ac_cv_type_uint64_t" = "yes" ; then
21888 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
21889 else
21890 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
21891 fi
21892 if test "$ac_cv_type_u_int64_t" = "yes" ; then
21893 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
21894 else
21895 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
21896 fi
21897 echo "" >>$ac_stdint
21898
21899 echo "/* which type model has been detected */" >>$ac_stdint
21900 if test "_$ac_cv_char_data_model" != "_" ; then
21901 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
21902 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
21903 else
21904 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
21905 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
21906 fi
21907 echo "" >>$ac_stdint
21908
21909 echo "/* whether int_least types were detected */" >>$ac_stdint
21910 if test "$ac_cv_type_int_least32_t" = "yes"; then
21911 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
21912 else
21913 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
21914 fi
21915 echo "/* whether int_fast types were detected */" >>$ac_stdint
21916 if test "$ac_cv_type_int_fast32_t" = "yes"; then
21917 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
21918 else
21919 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
21920 fi
21921 echo "/* whether intmax_t type was detected */" >>$ac_stdint
21922 if test "$ac_cv_type_intmax_t" = "yes"; then
21923 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
21924 else
21925 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
21926 fi
21927 echo "" >>$ac_stdint
21928
21929   cat >>$ac_stdint <<STDINT_EOF
21930 /* .................... detections part ............................ */
21931
21932 /* whether we need to define bitspecific types from compiler base types */
21933 #ifndef _STDINT_HEADER_INTPTR
21934 #ifndef _STDINT_HEADER_UINT32
21935 #ifndef _STDINT_HEADER_U_INT32
21936 #define _STDINT_NEED_INT_MODEL_T
21937 #else
21938 #define _STDINT_HAVE_U_INT_TYPES
21939 #endif
21940 #endif
21941 #endif
21942
21943 #ifdef _STDINT_HAVE_U_INT_TYPES
21944 #undef _STDINT_NEED_INT_MODEL_T
21945 #endif
21946
21947 #ifdef  _STDINT_CHAR_MODEL
21948 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
21949 #ifndef _STDINT_BYTE_MODEL
21950 #define _STDINT_BYTE_MODEL 12
21951 #endif
21952 #endif
21953 #endif
21954
21955 #ifndef _STDINT_HAVE_INT_LEAST32_T
21956 #define _STDINT_NEED_INT_LEAST_T
21957 #endif
21958
21959 #ifndef _STDINT_HAVE_INT_FAST32_T
21960 #define _STDINT_NEED_INT_FAST_T
21961 #endif
21962
21963 #ifndef _STDINT_HEADER_INTPTR
21964 #define _STDINT_NEED_INTPTR_T
21965 #ifndef _STDINT_HAVE_INTMAX_T
21966 #define _STDINT_NEED_INTMAX_T
21967 #endif
21968 #endif
21969
21970
21971 /* .................... definition part ............................ */
21972
21973 /* some system headers have good uint64_t */
21974 #ifndef _HAVE_UINT64_T
21975 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
21976 #define _HAVE_UINT64_T
21977 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21978 #define _HAVE_UINT64_T
21979 typedef u_int64_t uint64_t;
21980 #endif
21981 #endif
21982
21983 #ifndef _HAVE_UINT64_T
21984 /* .. here are some common heuristics using compiler runtime specifics */
21985 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21986 #define _HAVE_UINT64_T
21987 #define _HAVE_LONGLONG_UINT64_T
21988 typedef long long int64_t;
21989 typedef unsigned long long uint64_t;
21990
21991 #elif !defined __STRICT_ANSI__
21992 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21993 #define _HAVE_UINT64_T
21994 typedef __int64 int64_t;
21995 typedef unsigned __int64 uint64_t;
21996
21997 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21998 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21999 #if !defined _NO_LONGLONG
22000 #define _HAVE_UINT64_T
22001 #define _HAVE_LONGLONG_UINT64_T
22002 typedef long long int64_t;
22003 typedef unsigned long long uint64_t;
22004 #endif
22005
22006 #elif defined __alpha || (defined __mips && defined _ABIN32)
22007 #if !defined _NO_LONGLONG
22008 typedef long int64_t;
22009 typedef unsigned long uint64_t;
22010 #endif
22011   /* compiler/cpu type to define int64_t */
22012 #endif
22013 #endif
22014 #endif
22015
22016 #if defined _STDINT_HAVE_U_INT_TYPES
22017 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
22018 typedef u_int8_t uint8_t;
22019 typedef u_int16_t uint16_t;
22020 typedef u_int32_t uint32_t;
22021
22022 /* glibc compatibility */
22023 #ifndef __int8_t_defined
22024 #define __int8_t_defined
22025 #endif
22026 #endif
22027
22028 #ifdef _STDINT_NEED_INT_MODEL_T
22029 /* we must guess all the basic types. Apart from byte-adressable system, */
22030 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
22031 /* (btw, those nibble-addressable systems are way off, or so we assume) */
22032
22033
22034 #if defined _STDINT_BYTE_MODEL
22035 #if _STDINT_LONG_MODEL+0 == 242
22036 /* 2:4:2 =  IP16 = a normal 16-bit system                */
22037 typedef unsigned char   uint8_t;
22038 typedef unsigned short  uint16_t;
22039 typedef unsigned long   uint32_t;
22040 #ifndef __int8_t_defined
22041 #define __int8_t_defined
22042 typedef          char    int8_t;
22043 typedef          short   int16_t;
22044 typedef          long    int32_t;
22045 #endif
22046 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
22047 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
22048 /* 4:4:4 = ILP32 = a normal 32-bit system                */
22049 typedef unsigned char   uint8_t;
22050 typedef unsigned short  uint16_t;
22051 typedef unsigned int    uint32_t;
22052 #ifndef __int8_t_defined
22053 #define __int8_t_defined
22054 typedef          char    int8_t;
22055 typedef          short   int16_t;
22056 typedef          int     int32_t;
22057 #endif
22058 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
22059 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
22060 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
22061 typedef unsigned char   uint8_t;
22062 typedef unsigned short  uint16_t;
22063 typedef unsigned int    uint32_t;
22064 #ifndef __int8_t_defined
22065 #define __int8_t_defined
22066 typedef          char    int8_t;
22067 typedef          short   int16_t;
22068 typedef          int     int32_t;
22069 #endif
22070 /* this system has a "long" of 64bit */
22071 #ifndef _HAVE_UINT64_T
22072 #define _HAVE_UINT64_T
22073 typedef unsigned long   uint64_t;
22074 typedef          long    int64_t;
22075 #endif
22076 #elif _STDINT_LONG_MODEL+0 == 448
22077 /*      LLP64   a 64-bit system derived from a 32-bit system */
22078 typedef unsigned char   uint8_t;
22079 typedef unsigned short  uint16_t;
22080 typedef unsigned int    uint32_t;
22081 #ifndef __int8_t_defined
22082 #define __int8_t_defined
22083 typedef          char    int8_t;
22084 typedef          short   int16_t;
22085 typedef          int     int32_t;
22086 #endif
22087 /* assuming the system has a "long long" */
22088 #ifndef _HAVE_UINT64_T
22089 #define _HAVE_UINT64_T
22090 #define _HAVE_LONGLONG_UINT64_T
22091 typedef unsigned long long uint64_t;
22092 typedef          long long  int64_t;
22093 #endif
22094 #else
22095 #define _STDINT_NO_INT32_T
22096 #endif
22097 #else
22098 #define _STDINT_NO_INT8_T
22099 #define _STDINT_NO_INT32_T
22100 #endif
22101 #endif
22102
22103 /*
22104  * quote from SunOS-5.8 sys/inttypes.h:
22105  * Use at your own risk.  As of February 1996, the committee is squarely
22106  * behind the fixed sized types; the "least" and "fast" types are still being
22107  * discussed.  The probability that the "fast" types may be removed before
22108  * the standard is finalized is high enough that they are not currently
22109  * implemented.
22110  */
22111
22112 #if defined _STDINT_NEED_INT_LEAST_T
22113 typedef  int8_t    int_least8_t;
22114 typedef  int16_t   int_least16_t;
22115 typedef  int32_t   int_least32_t;
22116 #ifdef _HAVE_UINT64_T
22117 typedef  int64_t   int_least64_t;
22118 #endif
22119
22120 typedef uint8_t   uint_least8_t;
22121 typedef uint16_t  uint_least16_t;
22122 typedef uint32_t  uint_least32_t;
22123 #ifdef _HAVE_UINT64_T
22124 typedef uint64_t  uint_least64_t;
22125 #endif
22126   /* least types */
22127 #endif
22128
22129 #if defined _STDINT_NEED_INT_FAST_T
22130 typedef  int8_t    int_fast8_t;
22131 typedef  int       int_fast16_t;
22132 typedef  int32_t   int_fast32_t;
22133 #ifdef _HAVE_UINT64_T
22134 typedef  int64_t   int_fast64_t;
22135 #endif
22136
22137 typedef uint8_t   uint_fast8_t;
22138 typedef unsigned  uint_fast16_t;
22139 typedef uint32_t  uint_fast32_t;
22140 #ifdef _HAVE_UINT64_T
22141 typedef uint64_t  uint_fast64_t;
22142 #endif
22143   /* fast types */
22144 #endif
22145
22146 #ifdef _STDINT_NEED_INTMAX_T
22147 #ifdef _HAVE_UINT64_T
22148 typedef  int64_t       intmax_t;
22149 typedef uint64_t      uintmax_t;
22150 #else
22151 typedef          long  intmax_t;
22152 typedef unsigned long uintmax_t;
22153 #endif
22154 #endif
22155
22156 #ifdef _STDINT_NEED_INTPTR_T
22157 #ifndef __intptr_t_defined
22158 #define __intptr_t_defined
22159 /* we encourage using "long" to store pointer values, never use "int" ! */
22160 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
22161 typedef  unsigned int   uintptr_t;
22162 typedef           int    intptr_t;
22163 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
22164 typedef  unsigned long  uintptr_t;
22165 typedef           long   intptr_t;
22166 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
22167 typedef        uint64_t uintptr_t;
22168 typedef         int64_t  intptr_t;
22169 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
22170 typedef  unsigned long  uintptr_t;
22171 typedef           long   intptr_t;
22172 #endif
22173 #endif
22174 #endif
22175
22176 /* The ISO C99 standard specifies that in C++ implementations these
22177    should only be defined if explicitly requested.  */
22178 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
22179 #ifndef UINT32_C
22180
22181 /* Signed.  */
22182 # define INT8_C(c)      c
22183 # define INT16_C(c)     c
22184 # define INT32_C(c)     c
22185 # ifdef _HAVE_LONGLONG_UINT64_T
22186 #  define INT64_C(c)    c ## L
22187 # else
22188 #  define INT64_C(c)    c ## LL
22189 # endif
22190
22191 /* Unsigned.  */
22192 # define UINT8_C(c)     c ## U
22193 # define UINT16_C(c)    c ## U
22194 # define UINT32_C(c)    c ## U
22195 # ifdef _HAVE_LONGLONG_UINT64_T
22196 #  define UINT64_C(c)   c ## UL
22197 # else
22198 #  define UINT64_C(c)   c ## ULL
22199 # endif
22200
22201 /* Maximal type.  */
22202 # ifdef _HAVE_LONGLONG_UINT64_T
22203 #  define INTMAX_C(c)   c ## L
22204 #  define UINTMAX_C(c)  c ## UL
22205 # else
22206 #  define INTMAX_C(c)   c ## LL
22207 #  define UINTMAX_C(c)  c ## ULL
22208 # endif
22209
22210   /* literalnumbers */
22211 #endif
22212 #endif
22213
22214 /* These limits are merily those of a two complement byte-oriented system */
22215
22216 /* Minimum of signed integral types.  */
22217 # define INT8_MIN               (-128)
22218 # define INT16_MIN              (-32767-1)
22219 # define INT32_MIN              (-2147483647-1)
22220 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
22221 /* Maximum of signed integral types.  */
22222 # define INT8_MAX               (127)
22223 # define INT16_MAX              (32767)
22224 # define INT32_MAX              (2147483647)
22225 # define INT64_MAX              (__INT64_C(9223372036854775807))
22226
22227 /* Maximum of unsigned integral types.  */
22228 # define UINT8_MAX              (255)
22229 # define UINT16_MAX             (65535)
22230 # define UINT32_MAX             (4294967295U)
22231 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
22232
22233 /* Minimum of signed integral types having a minimum size.  */
22234 # define INT_LEAST8_MIN         INT8_MIN
22235 # define INT_LEAST16_MIN        INT16_MIN
22236 # define INT_LEAST32_MIN        INT32_MIN
22237 # define INT_LEAST64_MIN        INT64_MIN
22238 /* Maximum of signed integral types having a minimum size.  */
22239 # define INT_LEAST8_MAX         INT8_MAX
22240 # define INT_LEAST16_MAX        INT16_MAX
22241 # define INT_LEAST32_MAX        INT32_MAX
22242 # define INT_LEAST64_MAX        INT64_MAX
22243
22244 /* Maximum of unsigned integral types having a minimum size.  */
22245 # define UINT_LEAST8_MAX        UINT8_MAX
22246 # define UINT_LEAST16_MAX       UINT16_MAX
22247 # define UINT_LEAST32_MAX       UINT32_MAX
22248 # define UINT_LEAST64_MAX       UINT64_MAX
22249
22250   /* shortcircuit*/
22251 #endif
22252   /* once */
22253 #endif
22254 #endif
22255 STDINT_EOF
22256 fi
22257     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
22258       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
22259 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
22260     else
22261       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
22262 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22263          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
22264          X"$ac_stdint_h" : 'X\(//\)$' \| \
22265          X"$ac_stdint_h" : 'X\(/\)' \| \
22266          .     : '\(.\)' 2>/dev/null ||
22267 echo X"$ac_stdint_h" |
22268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22270           /^X\(\/\/\)$/{ s//\1/; q; }
22271           /^X\(\/\).*/{ s//\1/; q; }
22272           s/.*/./; q'`
22273       { if $as_mkdir_p; then
22274     mkdir -p "$ac_dir"
22275   else
22276     as_dir="$ac_dir"
22277     as_dirs=
22278     while test ! -d "$as_dir"; do
22279       as_dirs="$as_dir $as_dirs"
22280       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22282          X"$as_dir" : 'X\(//\)[^/]' \| \
22283          X"$as_dir" : 'X\(//\)$' \| \
22284          X"$as_dir" : 'X\(/\)' \| \
22285          .     : '\(.\)' 2>/dev/null ||
22286 echo X"$as_dir" |
22287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22289           /^X\(\/\/\)$/{ s//\1/; q; }
22290           /^X\(\/\).*/{ s//\1/; q; }
22291           s/.*/./; q'`
22292     done
22293     test ! -n "$as_dirs" || mkdir $as_dirs
22294   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22295 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22296    { (exit 1); exit 1; }; }; }
22297
22298       rm -f $ac_stdint_h
22299       mv $ac_stdint $ac_stdint_h
22300     fi
22301  ;;
22302     gappletviewer ) chmod 755 tools/gappletviewer ;;
22303     gjarsigner ) chmod 755 tools/gjarsigner ;;
22304     gkeytool ) chmod 755 tools/gkeytool ;;
22305     gjar ) chmod 755 tools/gjar ;;
22306     gnative2ascii ) chmod 755 tools/gnative2ascii ;;
22307     gserialver ) chmod 755 tools/gserialver ;;
22308     grmiregistry ) chmod 755 tools/grmiregistry ;;
22309     gtnameserv ) chmod 755 tools/gtnameserv ;;
22310     gorbd ) chmod 755 tools/gorbd ;;
22311     grmid ) chmod 755 tools/grmid ;;
22312     grmic ) chmod 755 tools/grmic ;;
22313     gjavah ) chmod 755 tools/gjavah ;;
22314     gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
22315     copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
22316   esac
22317 done
22318 _ACEOF
22319
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22321
22322 { (exit 0); exit 0; }
22323 _ACEOF
22324 chmod +x $CONFIG_STATUS
22325 ac_clean_files=$ac_clean_files_save
22326
22327
22328 # configure is writing to config.log, and then calls config.status.
22329 # config.status does its own redirection, appending to config.log.
22330 # Unfortunately, on DOS this fails, as config.log is still kept open
22331 # by configure, so config.status won't be able to write to it; its
22332 # output is simply discarded.  So we exec the FD to /dev/null,
22333 # effectively closing config.log, so it can be properly (re)opened and
22334 # appended to by config.status.  When coming back to configure, we
22335 # need to make the FD available again.
22336 if test "$no_create" != yes; then
22337   ac_cs_success=:
22338   ac_config_status_args=
22339   test "$silent" = yes &&
22340     ac_config_status_args="$ac_config_status_args --quiet"
22341   exec 5>/dev/null
22342   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22343   exec 5>>config.log
22344   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22345   # would make configure fail if this is the last instruction.
22346   $ac_cs_success || { (exit 1); exit 1; }
22347 fi
22348
22349
22350 # Create standard.omit based on decisions we just made.
22351 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
22352 if test x$use_escher != xtrue; then
22353    echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
22354 fi